/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --rb-red:      #e8192c;
    --rb-red-dk:   #c01020;
    --rb-red-lt:   #fff0f1;
    --rb-dark:     #0a0a0f;
    --rb-dark2:    #111118;
    --rb-dark3:    #16161f;
    --rb-dark4:    #1c1c28;
    --rb-dark5:    #22222f;
    --rb-gray:     #2a2a38;
    --rb-gray2:    #3a3a4e;
    --rb-silver:   #c0c0d0;
    --rb-silver2:  #a0a0b8;
    --txt:         #f0f0f8;
    --txt2:        #c8c8d8;
    --txt3:        #787890;
    --txt4:        #484858;
    --border:      rgba(255,255,255,.08);
    --border2:     rgba(255,255,255,.14);
    --sh1: 0 2px 8px rgba(0,0,0,.5);
    --sh2: 0 4px 20px rgba(0,0,0,.65);
    --sh3: 0 8px 32px rgba(232,25,44,.22);
    --rd:   8px;
    --rd-sm: 4px;
    --rd-lg: 12px;
    --rd-pill: 30px;
}

html { font-size: 15px; }

body {
    background: var(--rb-dark);
    color: var(--txt);
    font-family: 'PingFang SC','Hiragino Sans GB','Microsoft YaHei','Helvetica Neue',Arial,sans-serif;
    line-height: 1.6;
}

a { color: var(--rb-red); text-decoration: none; transition: color .15s; }
a:hover { color: #ff3a4d; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.cf::after { content: ''; display: table; clear: both; }

/* ===== WRAPPER ===== */
.rb-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== SITE HEADER ===== */
.rb-header {
    background: var(--rb-dark2);
    border-bottom: 1px solid var(--border);
    padding: 9px 0;
}

.rb-header .rb-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

.rb-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.rb-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.rb-site-name {
    font-size: 1.36rem;
    font-weight: 900;
    color: var(--txt);
    letter-spacing: -.4px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
}

.rb-site-name em {
    color: var(--rb-red);
    font-style: normal;
}

.rb-domain-capsule {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--rb-red);
    border-radius: var(--rd-pill);
    padding: 5px 16px;
    box-shadow: 0 0 14px rgba(232,25,44,.35);
}

.rb-domain-capsule .dc-label {
    font-size: 0.63rem;
    color: rgba(255,255,255,.65);
    white-space: nowrap;
}

.rb-domain-capsule .dc-url {
    font-size: 1.06rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}

/* ===== BANNER ===== */
.rb-promo {
    margin: 4px 0 3px;
}
.rb-promo img { border-radius: var(--rd); width: 100%; }

/* ===== CATEGORY NAV ===== */
.rb-channels {
    background: var(--rb-dark3);
    border: 1px solid var(--border);
    border-radius: var(--rd-lg);
    overflow: hidden;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.rb-ch-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
    min-height: 38px;
}

.rb-ch-row:last-child { border-bottom: none; }

.rb-ch-label {
    background: var(--rb-red);
    color: rgba(255,255,255,.88);
    font-size: .67rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 2px;
    width: 62px;
    min-width: 62px;
    border-right: 1px solid rgba(255,255,255,.1);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .4px;
    flex-shrink: 0;
}

.rb-ch-links {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    align-items: center;
    padding: 4px 8px;
    gap: 3px;
    flex: 1;
}

.rb-ch-links a {
    font-size: .81rem;
    color: var(--txt2);
    padding: 4px 5px;
    border-radius: var(--rd-sm);
    transition: all .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.rb-ch-links a:hover {
    background: rgba(232,25,44,.18);
    color: #ff5566;
    border-color: rgba(232,25,44,.3);
}

.rb-ch-links a.active {
    background: var(--rb-red);
    color: #fff;
    border-color: var(--rb-red);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.rb-search {
    background: var(--rb-dark3);
    border: 1px solid var(--border);
    border-radius: var(--rd-lg);
    padding: 9px 14px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.rb-search form {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

.rb-search input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 38px;
    border: 1px solid var(--border2);
    border-radius: var(--rd-pill);
    padding: 0 16px;
    font-size: .87rem;
    color: var(--txt);
    background: var(--rb-dark);
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

.rb-search input[type="text"]::placeholder { color: var(--txt3); }

.rb-search input[type="text"]:focus {
    border-color: var(--rb-red);
    box-shadow: 0 0 0 2px rgba(232,25,44,.2);
}

.rb-search button {
    height: 38px;
    padding: 0 14px;
    border: none;
    border-radius: var(--rd-pill);
    background: var(--rb-gray);
    color: var(--txt2);
    font-size: .81rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}

.rb-search button:hover { background: var(--rb-gray2); color: var(--txt); }
.rb-search button[value="1"] { background: var(--rb-red); color: #fff; }
.rb-search button[value="1"]:hover { background: var(--rb-red-dk); }
.rb-search button[value="2"] { background: var(--rb-dark4); color: var(--rb-silver); border: 1px solid var(--border2); }
.rb-search button[value="2"]:hover { background: var(--rb-gray); color: #fff; }

/* ===== HOT TAGS ===== */
.rb-trending {
    background: var(--rb-dark3);
    border: 1px solid var(--border);
    border-radius: var(--rd-lg);
    padding: 7px 13px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.rb-trending h4 {
    font-size: .76rem;
    font-weight: 700;
    color: var(--txt2);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.rb-tag-set {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.rb-tag-set .rbt {
    display: inline-block;
    background: var(--rb-dark4);
    color: var(--txt2);
    border: 1px solid var(--border2);
    border-radius: var(--rd-pill);
    padding: 2px 11px;
    font-size: .74rem;
    text-decoration: none;
    transition: all .15s;
}

.rb-tag-set .rbt:hover {
    background: var(--rb-red);
    color: #fff;
    border-color: var(--rb-red);
}

/* ===== CONTENT SECTION ===== */
.rb-section {
    background: var(--rb-dark2);
    border: 1px solid var(--border);
    border-radius: var(--rd-lg);
    padding: 13px 14px 11px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

.rb-sect-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.rb-sect-hd::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 32px;
    height: 2px;
    background: var(--rb-red);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(232,25,44,.5);
}

.rb-sect-hd h3 {
    font-size: .98rem;
    font-weight: 800;
    color: var(--txt);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.rb-sect-hd h3 a { color: var(--txt); }
.rb-sect-hd h3 a:hover { color: var(--rb-red); }

.rb-sect-hd h4 {
    font-size: .95rem;
    font-weight: 800;
    color: var(--txt);
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ===== FILM GRID ===== */
.rb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.rb-grid li {
    border-radius: var(--rd);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--rb-dark3);
    transition: box-shadow .2s, transform .2s, border-color .2s;
}

.rb-grid li:hover {
    box-shadow: var(--sh3);
    transform: translateY(-2px);
    border-color: rgba(232,25,44,.35);
}

.rb-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--rb-dark4);
}

.rb-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.rb-thumb:hover img { transform: scale(1.05); }

.rb-caption {
    padding: 5px 7px 8px;
}

.rb-caption h5 {
    font-size: .77rem;
    font-weight: 600;
    color: var(--txt2);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rb-caption h5 a { color: var(--txt2); }
.rb-caption h5 a:hover { color: #ff5566; }

/* ===== PAGINATION ===== */
.rb-pager {
    margin: 12px 0 5px;
    display: flex;
    justify-content: center;
}

.rb-pager-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.rb-pager-row a.rp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--rb-dark3);
    border: 1px solid var(--border2);
    border-radius: var(--rd-sm);
    font-size: .83rem;
    color: var(--txt2);
    text-decoration: none;
    transition: all .15s;
}

.rb-pager-row a.rp-btn:hover {
    background: rgba(232,25,44,.15);
    border-color: var(--rb-red);
    color: #ff5566;
}

.rb-pager-row a.rp-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--rb-red);
    border: 1px solid var(--rb-red);
    border-radius: var(--rd-sm);
    font-size: .83rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
    box-shadow: 0 0 10px rgba(232,25,44,.4);
}

/* ===== FOOTER ===== */
.rb-footer-links {
    background: var(--rb-dark2);
    border: 1px solid var(--border);
    border-radius: var(--rd-lg);
    padding: 9px 14px;
    margin: 4px 0;
}

.rb-flink-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.rb-flink-list dd { display: inline; }

.rb-flink-list a {
    display: inline-block;
    font-size: .75rem;
    color: var(--txt3);
    padding: 2px 9px;
    border-radius: var(--rd-sm);
    border: 1px solid var(--border);
    background: var(--rb-dark3);
    text-decoration: none;
    transition: all .15s;
}

.rb-flink-list a:hover {
    color: #ff5566;
    border-color: rgba(232,25,44,.4);
    background: rgba(232,25,44,.1);
}

.rb-copyright {
    text-align: center;
    padding: 8px 0 14px;
    color: var(--txt4);
    font-size: .74rem;
}

/* ===== DETAIL PAGES ===== */
.rb-entry-title {
    line-height: 1.8;
    padding: 12px 16px;
    font-size: .97rem;
    margin: 4px 0;
    word-break: break-all;
    background: var(--rb-dark3);
    border: 1px solid var(--border);
    border-left: 3px solid var(--rb-red);
    border-radius: var(--rd);
    box-shadow: var(--sh1);
    color: var(--txt);
}

.rb-entry-title a {
    color: var(--rb-red);
    font-weight: 700;
    margin-right: 8px;
    font-size: .77rem;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.rb-entry-title b { color: var(--txt); }

.rb-entry-body {
    font-size: .9rem;
    line-height: 1.9;
    padding: 14px 18px;
    background: var(--rb-dark2);
    border: 1px solid var(--border);
    border-radius: var(--rd);
    box-shadow: var(--sh1);
    margin: 4px 0;
    color: var(--txt2);
}

.rb-preview {
    display: block;
    width: 100%;
    margin-top: 10px;
}

.rb-preview picture,
.rb-preview img {
    width: 100%;
    height: auto;
    border-radius: var(--rd-sm);
    display: block;
}

/* ===== ACTION BUTTONS ===== */
.rb-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

.rb-act-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 26px;
    background: var(--rb-red);
    color: #fff;
    border: none;
    border-radius: var(--rd-pill);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s, transform .15s, box-shadow .18s;
    text-decoration: none;
    box-shadow: 0 0 14px rgba(232,25,44,.35);
}

.rb-act-btn:hover {
    background: var(--rb-red-dk);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 0 22px rgba(232,25,44,.5);
}

.rb-dl-hint {
    text-align: center;
    padding: 6px;
    font-size: .81rem;
}

.rb-dl-hint a { color: var(--txt3); font-weight: 600; }
.rb-dl-hint a:hover { color: #ff5566; }

/* ===== SHARE BAR ===== */
.rb-share {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--rb-dark3);
    border: 1px solid var(--border);
    border-radius: var(--rd-lg);
    padding: 8px 14px;
    margin: 4px 0;
    flex-wrap: wrap;
}

.rb-share .rs-lbl { font-size: .74rem; color: var(--txt3); white-space: nowrap; text-transform: uppercase; letter-spacing: .5px; }
.rb-share .rs-url { font-size: .78rem; color: var(--txt2); flex: 1; min-width: 0; word-break: break-all; }

.rb-share .rs-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--rb-red);
    color: #fff;
    border: none;
    border-radius: var(--rd-pill);
    font-size: .79rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
}

.rb-share .rs-btn:hover { background: var(--rb-red-dk); }

/* ===== VISIBILITY ===== */
.rb-pc { display: block; }
.rb-mb { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .rb-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .rb-pc { display: none; }
    .rb-mb { display: block; }
}

@media (max-width: 768px) {
    html { font-size: 14px; }

    .rb-site-name { font-size: 1.08rem; }
    .rb-domain-capsule .dc-url { font-size: .9rem; }

    .rb-ch-row { align-items: stretch; }

    .rb-ch-label {
        width: 15%;
        min-width: 15%;
        max-width: 15%;
        font-size: 10px;
        padding: 4px 2px;
        letter-spacing: 0;
        line-height: 1.4;
        word-break: break-all;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .rb-ch-links {
        width: 85%;
        flex: 1;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 3px;
        padding: 4px 4px;
        align-items: center;
    }

    .rb-ch-links a {
        font-size: 13px;
        padding: 5px 2px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

    .rb-search form {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .rb-search input[type="text"] {
        height: 34px;
        font-size: .78rem;
        padding: 0 10px;
    }

    .rb-search button {
        height: 34px;
        padding: 0 8px;
        font-size: .73rem;
    }

    .rb-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
    }

    .rb-thumb { aspect-ratio: 600 / 350; }
    .rb-caption h5 { font-size: .71rem; }
    .rb-section { padding: 9px 9px 7px; }
    .rb-act-btn { padding: 9px 16px; font-size: .83rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .rb-ch-label { font-size: 10px; }
    .rb-ch-links a { font-size: 13px; }
}

@media (max-width: 380px) {
    .rb-ch-label { font-size: 10px; }
    .rb-ch-links a { font-size: 12px; }
    .rb-search button { padding: 0 6px; font-size: .67rem; }
}
