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

:root {
    --bg: #0a3828;
    --bg-card: #0f4433;
    --bg-raise: #155040;
    --bg-lift: #1a5c4a;
    --topbar: #f0f2f0;
    --mint: #00e676;
    --mint-dk: #00c860;
    --mint-lt: rgba(0,230,118,.12);
    --mint-glow: 0 0 16px rgba(0,230,118,.22);
    --mint-text: #0a3828;
    --white: #ffffff;
    --txt: #e8f0ec;
    --txt2: #b8ccc4;
    --txt3: #7a9e90;
    --txt4: #4a7060;
    --border: #1c5c48;
    --border2: #246050;
    --sh1: 0 2px 8px rgba(0,0,0,.3);
    --sh2: 0 4px 20px rgba(0,0,0,.45);
    --r: 6px;
    --r2: 4px;
    --r3: 10px;
}

html { font-size: 15px; }

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

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

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

/* ===== SITE HEADER ===== */
.bs-hd {
    background: var(--topbar);
    padding: 9px 0;
    border-bottom: 1px solid #d8dcd8;
}

.bs-hd .bs-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}

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

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

.bs-sitename {
    font-size: 1.28rem;
    font-weight: 900;
    color: var(--bg);
    letter-spacing: -.3px;
    border-bottom: none;
    text-decoration: none;
    font-style: normal;
}

.bs-domain-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r2);
    padding: 3px 12px;
}

.bs-domain-box .bdb-lbl {
    font-size: 0.66rem;
    color: var(--txt3);
    white-space: nowrap;
}

.bs-domain-box .bdb-url {
    font-size: 1.10rem;
    font-weight: 800;
    color: var(--mint);
    white-space: nowrap;
    letter-spacing: .1px;
}

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

/* ===== CATEGORY NAV ===== */
.bs-nav {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.bs-nav-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
    min-height: 37px;
}

.bs-nav-row:last-child { border-bottom: none; }

.bs-zone-lbl {
    background: var(--bg-raise);
    color: var(--txt3);
    font-size: .68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 2px;
    width: 62px;
    min-width: 62px;
    border-right: 2px solid var(--mint);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .2px;
    flex-shrink: 0;
}

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

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

.bs-nav-links a:hover {
    background: var(--mint-lt);
    color: var(--mint);
    border-color: rgba(0,230,118,.25);
}

.bs-nav-links a.active {
    background: var(--mint);
    color: var(--mint-text);
    border-color: var(--mint);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.bs-search {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 7px 12px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

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

.bs-search input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 35px;
    border: 1px solid var(--border2);
    border-radius: var(--r2);
    padding: 0 12px;
    font-size: .87rem;
    color: var(--txt);
    background: var(--bg-raise);
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

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

.bs-search input[type="text"]:focus {
    border-color: var(--mint);
    box-shadow: 0 0 0 2px rgba(0,230,118,.15);
}

.bs-search button {
    height: 35px;
    padding: 0 12px;
    border: 1px solid var(--border2);
    border-radius: var(--r2);
    background: var(--bg-raise);
    color: var(--txt2);
    font-size: .81rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s;
    flex-shrink: 0;
}

.bs-search button:hover { background: var(--bg-lift); color: var(--txt); border-color: var(--border2); }

.bs-search button[value="1"] {
    background: var(--mint);
    color: var(--mint-text);
    border-color: var(--mint);
    font-weight: 700;
}
.bs-search button[value="1"]:hover { background: var(--mint-dk); border-color: var(--mint-dk); }

.bs-search button[value="2"] {
    background: var(--bg-lift);
    color: var(--mint);
    border-color: var(--border2);
    font-weight: 600;
}
.bs-search button[value="2"]:hover { background: var(--mint-lt); }

/* ===== HOT TAGS ===== */
.bs-hot {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 6px 12px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.bs-hot h4 {
    font-size: .77rem;
    font-weight: 700;
    color: var(--txt2);
    margin-bottom: 5px;
}

.bs-kwds {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.bs-kwds .bs-kwd {
    display: inline-block;
    background: var(--bg-raise);
    color: var(--txt2);
    border: 1px solid var(--border2);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: .75rem;
    text-decoration: none;
    transition: all .15s;
}

.bs-kwds .bs-kwd:hover {
    background: var(--mint-lt);
    color: var(--mint);
    border-color: rgba(0,230,118,.3);
}

/* ===== CONTENT SECTION ===== */
.bs-sect {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r3);
    padding: 12px 12px 10px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

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

.bs-sect-hd::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 36px;
    height: 2px;
    background: var(--mint);
    border-radius: 2px;
}

.bs-sect-hd h3 {
    font-size: .97rem;
    font-weight: 800;
    color: var(--txt);
    letter-spacing: .1px;
}

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

.bs-sect-hd h4 {
    font-size: .94rem;
    font-weight: 800;
    color: var(--txt);
}

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

.bs-grid li {
    border-radius: var(--r);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-raise);
    transition: box-shadow .2s, transform .2s, border-color .2s;
}

.bs-grid li:hover {
    box-shadow: var(--sh2);
    transform: translateY(-2px);
    border-color: var(--border2);
}

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

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

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

.bs-cap {
    padding: 5px 7px 7px;
}

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

.bs-cap h5 a { color: var(--txt2); }
.bs-cap h5 a:hover { color: var(--mint); }

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

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

.bs-pager-btns a.bpb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    background: var(--bg-card);
    border: 1px solid var(--border2);
    border-radius: var(--r2);
    font-size: .83rem;
    color: var(--txt2);
    text-decoration: none;
    transition: all .15s;
}

.bs-pager-btns a.bpb:hover {
    background: var(--mint-lt);
    border-color: rgba(0,230,118,.3);
    color: var(--mint);
}

.bs-pager-btns a.bpb-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    background: var(--mint);
    border: 1px solid var(--mint);
    border-radius: var(--r2);
    font-size: .83rem;
    font-weight: 700;
    color: var(--mint-text);
    cursor: default;
}

/* ===== FOOTER ===== */
.bs-foot {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 8px 12px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

.bs-flinks {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.bs-flinks dd { display: inline; }

.bs-flinks a {
    display: inline-block;
    font-size: .76rem;
    color: var(--txt3);
    padding: 2px 9px;
    border-radius: var(--r2);
    border: 1px solid var(--border);
    background: var(--bg-raise);
    text-decoration: none;
    transition: all .15s;
}

.bs-flinks a:hover { color: var(--mint); border-color: rgba(0,230,118,.3); }

.bs-copy {
    text-align: center;
    padding: 7px 0 12px;
    color: var(--txt4);
    font-size: .74rem;
}

/* ===== DETAIL PAGES ===== */
.bs-dtl-title {
    line-height: 1.8;
    text-align: center;
    padding: 12px 15px;
    font-size: .97rem;
    margin: 4px 0;
    word-break: break-all;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--mint);
    border-radius: var(--r);
    box-shadow: var(--sh1);
}

.bs-dtl-title a {
    color: var(--mint);
    font-weight: 700;
    margin-right: 6px;
}

.bs-dtl-body {
    font-size: .9rem;
    line-height: 2;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--sh1);
    margin: 4px 0;
    color: var(--txt2);
}

.bs-pic-zone {
    display: block;
    width: 100%;
    margin-top: 10px;
}

.bs-pic-zone picture,
.bs-pic-zone img {
    width: 100%;
    height: auto;
    border-radius: var(--r2);
    display: block;
}

/* ===== DL BUTTONS ===== */
.bs-dl-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

.bs-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 22px;
    background: var(--mint);
    color: var(--mint-text);
    border: none;
    border-radius: var(--r);
    font-size: .88rem;
    font-weight: 800;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    letter-spacing: .2px;
}

.bs-dl-btn:hover {
    background: var(--mint-dk);
    color: var(--mint-text);
    transform: translateY(-1px);
    box-shadow: var(--mint-glow);
}

.bs-cli-tip {
    text-align: center;
    padding: 6px;
    font-size: .81rem;
}

.bs-cli-tip a { color: var(--mint); font-weight: 600; }
.bs-cli-tip a:hover { color: var(--mint-dk); }

/* ===== SHARE ===== */
.bs-share {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--bg-raise);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 7px 12px;
    margin: 4px 0;
    flex-wrap: wrap;
}

.bs-share .bss-lbl { font-size: .76rem; color: var(--txt3); white-space: nowrap; }
.bs-share .bss-url { font-size: .78rem; color: var(--txt2); flex: 1; min-width: 0; word-break: break-all; }

.bs-share .bss-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 13px;
    background: var(--bg-lift);
    color: var(--txt2);
    border: 1px solid var(--border2);
    border-radius: var(--r2);
    font-size: .79rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    flex-shrink: 0;
}

.bs-share .bss-btn:hover {
    background: var(--mint-lt);
    color: var(--mint);
    border-color: rgba(0,230,118,.3);
}

/* ===== VIS HELPERS ===== */
.bs-pc { display: block; }
.bs-mb { display: none; }

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

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

    .bs-sitename { font-size: 1.05rem; }
    .bs-domain-box .bdb-url { font-size: .95rem; }

    .bs-nav-row { align-items: stretch; }

    .bs-zone-lbl {
        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;
    }

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

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

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

    .bs-search input[type="text"] {
        height: 32px;
        font-size: .77rem;
        padding: 0 7px;
    }

    .bs-search button {
        height: 32px;
        padding: 0 7px;
        font-size: .72rem;
    }

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

    .bs-thumb { aspect-ratio: 600 / 350; }
    .bs-cap h5 { font-size: .71rem; }
    .bs-sect { padding: 9px 9px 7px; }
    .bs-dl-btn { padding: 9px 16px; font-size: .83rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .bs-zone-lbl { font-size: 10px; }
    .bs-nav-links a { font-size: 13px; }
}

@media (max-width: 380px) {
    .bs-zone-lbl { font-size: 10px; }
    .bs-nav-links a { font-size: 12px; }
    .bs-search button { padding: 0 5px; font-size: .66rem; }
}
