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

:root {
    --white: #ffffff;
    --bg: #fafafa;
    --bg-card: #ffffff;
    --bg-warm: #fff9f4;
    --bg-soft: #fff4ec;
    --orange: #f77d00;
    --orange-mid: #f58900;
    --orange-dk: #d96b00;
    --orange-lt: rgba(247,125,0,.09);
    --orange-btn: #f77d00;
    --amber: #ffb347;
    --amber-lt: #fff3e0;
    --ink: #1a1a1a;
    --ink2: #333333;
    --sub: #555555;
    --hint: #888888;
    --ghost: #c0c0c0;
    --border: #eeddd0;
    --border2: #e5cfbd;
    --sh1: 0 1px 4px rgba(247,125,0,.07);
    --sh2: 0 3px 12px rgba(247,125,0,.11);
    --sh3: 0 7px 24px rgba(247,125,0,.16);
    --rd: 8px;
    --rd2: 6px;
    --rd3: 12px;
}

html { font-size: 15px; }

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

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

/* ===== WRAPPER ===== */
.bt-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 14px;
}

/* ===== SITE HEADER ===== */
.bt-header {
    background: var(--white);
    border-bottom: 2px solid var(--border);
    padding: 9px 0;
    box-shadow: var(--sh1);
}

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

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

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

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

.bt-domain-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--bg-soft);
    border: 1px solid var(--border2);
    border-radius: 20px;
    padding: 4px 13px;
}

.bt-domain-pill .bdp-hint {
    font-size: .67rem;
    color: var(--hint);
    white-space: nowrap;
}

.bt-domain-pill .bdp-val {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--orange);
    white-space: nowrap;
}

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

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

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

.bt-navline:last-child { border-bottom: none; }

.bt-zone-badge {
    background: var(--orange);
    color: rgba(255,255,255,.92);
    font-size: .67rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 2px;
    width: 62px;
    min-width: 62px;
    border-right: 1px solid rgba(255,255,255,.15);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

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

.bt-catitems a:hover {
    background: var(--orange-lt);
    color: var(--orange);
    border-color: rgba(247,125,0,.2);
}

.bt-catitems a.active {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.bt-searchbar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--rd3);
    padding: 7px 11px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

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

.bt-searchbar input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1.5px solid var(--border2);
    border-radius: 18px;
    padding: 0 16px;
    font-size: .86rem;
    color: var(--ink);
    background: var(--bg-warm);
    outline: none;
    transition: border-color .18s, background .18s;
}

.bt-searchbar input[type="text"]::placeholder { color: var(--ghost); }
.bt-searchbar input[type="text"]:focus {
    border-color: var(--orange);
    background: var(--white);
}

.bt-searchbar button {
    height: 36px;
    padding: 0 13px;
    border: none;
    border-radius: 18px;
    background: var(--ink2);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    flex-shrink: 0;
}

.bt-searchbar button:hover { background: var(--ink); }

.bt-searchbar button[value="1"] {
    background: var(--orange-btn);
    color: #fff;
    font-weight: 700;
}
.bt-searchbar button[value="1"]:hover { background: var(--orange-dk); }

.bt-searchbar button[value="2"] {
    background: var(--amber);
    color: #fff;
    font-weight: 700;
}
.bt-searchbar button[value="2"]:hover { background: #e0982e; }

/* ===== HOT TAGS ===== */
.bt-hotpanel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--rd3);
    padding: 6px 11px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.bt-hotpanel h4 {
    font-size: .74rem;
    font-weight: 700;
    color: var(--hint);
    margin-bottom: 5px;
    letter-spacing: .4px;
}

.bt-hotpanel h4 strong { color: var(--orange); }

.bt-hotlist {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.bt-hotlist .bttag {
    display: inline-block;
    background: var(--bg-warm);
    color: var(--sub);
    border: 1px solid var(--border2);
    border-radius: 14px;
    padding: 2px 10px;
    font-size: .73rem;
    text-decoration: none;
    transition: all .15s;
}

.bt-hotlist .bttag:hover {
    background: var(--orange-lt);
    color: var(--orange);
    border-color: rgba(247,125,0,.25);
}

/* ===== CONTENT SECTION ===== */
.bt-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--rd3);
    padding: 12px 12px 10px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.bt-sect-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bg-soft);
    position: relative;
}

.bt-sect-hd::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 38px;
    height: 2px;
    background: var(--orange);
    border-radius: 2px;
}

.bt-sect-hd h3 {
    font-size: .96rem;
    font-weight: 800;
    color: var(--ink);
}

.bt-sect-hd h3 a { color: var(--ink); }
.bt-sect-hd h3 a:hover { color: var(--orange); }

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

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

.bt-filmgrid li {
    border-radius: var(--rd);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-warm);
    transition: box-shadow .2s, border-color .2s, transform .2s;
}

.bt-filmgrid li:hover {
    box-shadow: var(--sh3);
    border-color: rgba(247,125,0,.35);
    transform: translateY(-2px);
}

.bt-coverwrap {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: #fde8d4;
}

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

.bt-coverwrap:hover img { transform: scale(1.04); }

.bt-coverinfo {
    padding: 5px 7px 7px;
}

.bt-coverinfo h5 {
    font-size: .75rem;
    font-weight: 400;
    color: var(--sub);
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bt-coverinfo h5 a { color: var(--sub); }
.bt-coverinfo h5 a:hover { color: var(--orange); }

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

.bt-pglinks {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.bt-pglinks a.btpg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--bg-card);
    border: 1.5px solid var(--border2);
    border-radius: var(--rd2);
    font-size: .82rem;
    color: var(--sub);
    text-decoration: none;
    transition: all .15s;
}

.bt-pglinks a.btpg:hover {
    background: var(--orange-lt);
    border-color: var(--orange);
    color: var(--orange);
}

.bt-pglinks a.btpg-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--orange);
    border: 1.5px solid var(--orange);
    border-radius: var(--rd2);
    font-size: .82rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
}

/* ===== FOOTER ===== */
.bt-flinksect {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--rd);
    padding: 8px 12px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.bt-flrow {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.bt-flrow dd { display: inline; }

.bt-flrow a {
    display: inline-block;
    font-size: .74rem;
    color: var(--ghost);
    padding: 2px 9px;
    border-radius: var(--rd2);
    border: 1px solid var(--border);
    background: var(--bg);
    text-decoration: none;
    transition: all .15s;
}

.bt-flrow a:hover { color: var(--orange); border-color: rgba(247,125,0,.3); }

.bt-footcopy {
    text-align: center;
    padding: 7px 0 13px;
    color: var(--ghost);
    font-size: .73rem;
}

/* ===== DETAIL PAGES ===== */
.bt-itemttl {
    line-height: 1.8;
    text-align: center;
    padding: 11px 14px;
    font-size: .96rem;
    margin: 3px 0;
    word-break: break-all;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--orange);
    border-radius: var(--rd);
    box-shadow: var(--sh1);
    color: var(--ink);
}

.bt-itemttl a {
    color: var(--orange);
    font-weight: 700;
    margin-right: 6px;
}

.bt-itembody {
    font-size: .88rem;
    line-height: 2;
    padding: 13px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--rd);
    box-shadow: var(--sh1);
    margin: 3px 0;
    color: var(--sub);
}

.bt-preview {
    display: block;
    width: 100%;
    margin-top: 9px;
}

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

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

.bt-actbtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: var(--orange-btn);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s, transform .15s, box-shadow .18s;
    text-decoration: none;
    letter-spacing: .2px;
    box-shadow: 0 4px 14px rgba(247,125,0,.28);
}

.bt-actbtn:hover {
    background: var(--orange-dk);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(247,125,0,.38);
}

.bt-clinote {
    text-align: center;
    padding: 6px;
    font-size: .8rem;
}

.bt-clinote a { color: var(--hint); font-weight: 600; }
.bt-clinote a:hover { color: var(--orange); }

/* ===== SHARE ===== */
.bt-sharerow {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: var(--rd);
    padding: 7px 12px;
    margin: 3px 0;
    flex-wrap: wrap;
}

.bt-sharerow .bsr-lbl { font-size: .73rem; color: var(--ghost); white-space: nowrap; }
.bt-sharerow .bsr-url { font-size: .76rem; color: var(--sub); flex: 1; min-width: 0; word-break: break-all; }

.bt-sharerow .bsr-copy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--orange-btn);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
}

.bt-sharerow .bsr-copy:hover { background: var(--orange-dk); }

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

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

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

    .bt-sitename { font-size: 1.07rem; }
    .bt-domain-pill .bdp-val { font-size: .9rem; }

    .bt-navline { align-items: stretch; }

    .bt-zone-badge {
        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;
    }

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

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

    /* Search: NO wrap, all in one row */
    .bt-searchbar form {
        flex-wrap: nowrap;
        gap: 3px;
    }

    .bt-searchbar input[type="text"] {
        height: 32px;
        font-size: .77rem;
        padding: 0 9px;
        border-radius: 16px;
    }

    .bt-searchbar button {
        height: 32px;
        padding: 0 6px;
        font-size: .72rem;
        border-radius: 6px;
    }

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

    .bt-coverwrap { aspect-ratio: 600 / 350; }
    .bt-coverinfo h5 { font-size: .7rem; }
    .bt-section { padding: 8px 8px 6px; }
    .bt-actbtn { padding: 9px 16px; font-size: .84rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .bt-zone-badge { font-size: 10px; }
    .bt-catitems a { font-size: 13px; }
}

@media (max-width: 380px) {
    .bt-zone-badge { font-size: 10px; }
    .bt-catitems a { font-size: 12px; }
    .bt-searchbar button { padding: 0 4px; font-size: .66rem; }
}
