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

:root {
    --snow: #ffffff;
    --page: #faf8f5;
    --card: #ffffff;
    --warm: #fff6ee;
    --warm2: #fff0e4;
    --tangerine: #f67c10;
    --tangerine-dk: #d86200;
    --tangerine-lt: rgba(246,124,16,.09);
    --amber2: #ffb238;
    --cream: #fdf3e9;
    --coal: #1a1a1a;
    --charcoal: #2e2e2e;
    --steel: #565656;
    --silver: #8a8a8a;
    --mist: #bdbdbd;
    --fence: #ecddd0;
    --fence2: #e0ccbb;
    --g1: 0 1px 4px rgba(246,124,16,.06);
    --g2: 0 3px 12px rgba(246,124,16,.10);
    --g3: 0 7px 24px rgba(246,124,16,.15);
    --rr: 8px;
    --rr2: 5px;
    --rr3: 12px;
}

html { font-size: 15px; }

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

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

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

/* ===== SITE HEADER ===== */
.ib-topbar {
    background: var(--snow);
    border-bottom: 2px solid var(--fence);
    padding: 9px 0;
    box-shadow: var(--g1);
}

.ib-topbar .ib-frame {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

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

.ib-logolink {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

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

.ib-addr-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--warm2);
    border: 1px solid var(--fence2);
    border-radius: 20px;
    padding: 4px 13px;
}

.ib-addr-pill .iap-label {
    font-size: .67rem;
    color: var(--silver);
    white-space: nowrap;
}

.ib-addr-pill .iap-link {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--tangerine);
    white-space: nowrap;
}

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

/* ===== CATEGORY NAV ===== */
.ib-navcard {
    background: var(--card);
    border: 1px solid var(--fence);
    border-radius: var(--rr3);
    overflow: hidden;
    margin: 3px 0;
    box-shadow: var(--g1);
}

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

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

.ib-zone-badge {
    background: var(--tangerine);
    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,.14);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

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

.ib-catlist a:hover {
    background: var(--tangerine-lt);
    color: var(--tangerine);
    border-color: rgba(246,124,16,.2);
}

.ib-catlist a.active {
    background: var(--tangerine);
    color: #fff;
    border-color: var(--tangerine);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.ib-searchzone {
    background: var(--card);
    border: 1px solid var(--fence);
    border-radius: var(--rr3);
    padding: 8px 12px;
    margin: 3px 0;
    box-shadow: var(--g1);
}

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

.ib-searchzone input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 38px;
    border: 1.5px solid var(--fence2);
    border-radius: 19px;
    padding: 0 16px;
    font-size: .86rem;
    color: var(--coal);
    background: var(--warm);
    outline: none;
    transition: border-color .18s, background .18s;
}

.ib-searchzone input[type="text"]::placeholder { color: var(--mist); }
.ib-searchzone input[type="text"]:focus {
    border-color: var(--tangerine);
    background: var(--snow);
}

.ib-searchzone button {
    height: 38px;
    padding: 0 13px;
    border: none;
    border-radius: var(--rr2);
    background: var(--charcoal);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    flex-shrink: 0;
}

.ib-searchzone button:hover { background: var(--coal); }

.ib-searchzone button[value="1"] {
    background: var(--tangerine);
    color: #fff;
    font-weight: 700;
    border-radius: 19px;
}
.ib-searchzone button[value="1"]:hover { background: var(--tangerine-dk); }

.ib-searchzone button[value="2"] {
    background: var(--amber2);
    color: #fff;
    font-weight: 700;
    border-radius: var(--rr2);
}
.ib-searchzone button[value="2"]:hover { background: #e09820; }

/* ===== HOT TAGS ===== */
.ib-hotstrip {
    background: var(--card);
    border: 1px solid var(--fence);
    border-radius: var(--rr3);
    padding: 6px 12px;
    margin: 3px 0;
    box-shadow: var(--g1);
}

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

.ib-hotstrip h4 strong { color: var(--tangerine); }

.ib-tagrow {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ib-tagrow .ibtag {
    display: inline-block;
    background: var(--warm);
    color: var(--steel);
    border: 1px solid var(--fence2);
    border-radius: 14px;
    padding: 2px 10px;
    font-size: .73rem;
    text-decoration: none;
    transition: all .15s;
}

.ib-tagrow .ibtag:hover {
    background: var(--tangerine-lt);
    color: var(--tangerine);
    border-color: rgba(246,124,16,.25);
}

/* ===== CONTENT SECTION ===== */
.ib-section {
    background: var(--card);
    border: 1px solid var(--fence);
    border-radius: var(--rr3);
    padding: 12px 12px 10px;
    margin: 3px 0;
    box-shadow: var(--g1);
}

.ib-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--warm2);
    position: relative;
}

.ib-section-head::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 38px;
    height: 2px;
    background: var(--tangerine);
    border-radius: 2px;
}

.ib-section-head h3 {
    font-size: .96rem;
    font-weight: 800;
    color: var(--coal);
}

.ib-section-head h3 a { color: var(--coal); }
.ib-section-head h3 a:hover { color: var(--tangerine); }

.ib-section-head h4 {
    font-size: .94rem;
    font-weight: 800;
    color: var(--coal);
}

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

.ib-vidgrid li {
    border-radius: var(--rr);
    overflow: hidden;
    border: 1px solid var(--fence);
    background: var(--warm);
    transition: box-shadow .2s, border-color .2s, transform .2s;
}

.ib-vidgrid li:hover {
    box-shadow: var(--g3);
    border-color: rgba(246,124,16,.35);
    transform: translateY(-2px);
}

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

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

.ib-poster:hover img { transform: scale(1.04); }

.ib-poster-foot {
    padding: 5px 7px 7px;
}

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

.ib-poster-foot h5 a { color: var(--steel); }
.ib-poster-foot h5 a:hover { color: var(--tangerine); }

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

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

.ib-pglist a.ibpg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--card);
    border: 1.5px solid var(--fence2);
    border-radius: var(--rr2);
    font-size: .82rem;
    color: var(--steel);
    text-decoration: none;
    transition: all .15s;
}

.ib-pglist a.ibpg:hover {
    background: var(--tangerine-lt);
    border-color: var(--tangerine);
    color: var(--tangerine);
}

.ib-pglist a.ibpg-cur {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--tangerine);
    border: 1.5px solid var(--tangerine);
    border-radius: var(--rr2);
    font-size: .82rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
}

/* ===== FOOTER ===== */
.ib-flinks-box {
    background: var(--card);
    border: 1px solid var(--fence);
    border-radius: var(--rr);
    padding: 8px 12px;
    margin: 3px 0;
    box-shadow: var(--g1);
}

.ib-flinks-dl {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ib-flinks-dl dd { display: inline; }

.ib-flinks-dl a {
    display: inline-block;
    font-size: .74rem;
    color: var(--mist);
    padding: 2px 9px;
    border-radius: var(--rr2);
    border: 1px solid var(--fence);
    background: var(--page);
    text-decoration: none;
    transition: all .15s;
}

.ib-flinks-dl a:hover { color: var(--tangerine); border-color: rgba(246,124,16,.3); }

.ib-copyright {
    text-align: center;
    padding: 7px 0 13px;
    color: var(--mist);
    font-size: .73rem;
}

/* ===== DETAIL PAGES ===== */
.ib-item-hd {
    line-height: 1.8;
    text-align: center;
    padding: 11px 14px;
    font-size: .96rem;
    margin: 3px 0;
    word-break: break-all;
    background: var(--card);
    border: 1px solid var(--fence);
    border-left: 4px solid var(--tangerine);
    border-radius: var(--rr);
    box-shadow: var(--g1);
    color: var(--coal);
}

.ib-item-hd a {
    color: var(--tangerine);
    font-weight: 700;
    margin-right: 6px;
}

.ib-item-info {
    font-size: .88rem;
    line-height: 2;
    padding: 13px 16px;
    background: var(--card);
    border: 1px solid var(--fence);
    border-radius: var(--rr);
    box-shadow: var(--g1);
    margin: 3px 0;
    color: var(--steel);
}

.ib-capview {
    display: block;
    width: 100%;
    margin-top: 9px;
}

.ib-capview picture,
.ib-capview img {
    width: 100%;
    height: auto;
    border-radius: var(--rr2);
    display: block;
}

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

.ib-dlbtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 26px;
    background: var(--tangerine);
    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(246,124,16,.28);
}

.ib-dlbtn:hover {
    background: var(--tangerine-dk);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(246,124,16,.38);
}

.ib-app-note {
    text-align: center;
    padding: 6px;
    font-size: .8rem;
}

.ib-app-note a { color: var(--silver); font-weight: 600; }
.ib-app-note a:hover { color: var(--tangerine); }

/* ===== SHARE ===== */
.ib-share-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--warm);
    border: 1px solid var(--fence);
    border-radius: var(--rr);
    padding: 7px 12px;
    margin: 3px 0;
    flex-wrap: wrap;
}

.ib-share-bar .isb-lbl { font-size: .73rem; color: var(--mist); white-space: nowrap; }
.ib-share-bar .isb-url { font-size: .76rem; color: var(--steel); flex: 1; min-width: 0; word-break: break-all; }

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

.ib-share-bar .isb-copy:hover { background: var(--tangerine-dk); }

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

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

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

    .ib-sitename { font-size: 1.07rem; }
    .ib-addr-pill .iap-link { font-size: .9rem; }

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

    .ib-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;
    }

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

    .ib-catlist 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 */
    .ib-searchzone form {
        flex-wrap: nowrap;
        gap: 3px;
    }

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

    .ib-searchzone button {
        height: 32px;
        padding: 0 6px;
        font-size: .72rem;
    }

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

    .ib-poster { aspect-ratio: 600 / 350; }
    .ib-poster-foot h5 { font-size: .7rem; }
    .ib-section { padding: 8px 8px 6px; }
    .ib-dlbtn { padding: 9px 18px; font-size: .84rem; }
}

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

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