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

:root {
    --bg: #ffffff;
    --bg-soft: #f6f6f7;
    --bg-muted: #eaeaec;
    --cf-org: #f6821f;
    --cf-org-dk: #d06510;
    --cf-org-md: #e87010;
    --cf-org-lt: #fff5ec;
    --cf-org-pale: #fef0e0;
    --cf-dark: #1d1d1f;
    --cf-dark2: #2c2c2e;
    --cf-dark3: #404042;
    --txt: #1d1d1f;
    --txt2: #4a4a4e;
    --txt3: #9a9aa0;
    --bdr: #e2e2e6;
    --bdr2: #d0d0d6;
    --sh1: 0 1px 4px rgba(0,0,0,.06);
    --sh2: 0 3px 12px rgba(0,0,0,.09);
    --sh3: 0 6px 24px rgba(0,0,0,.12);
    --rr: 6px;
    --rr2: 4px;
    --rr3: 10px;
}

html { font-size: 15px; }

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

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

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

/* ===== SITE HEADER ===== */
.head-bar {
    background: var(--bg);
    border-bottom: 1px solid var(--bdr);
    padding: 9px 0;
    box-shadow: var(--sh1);
    position: relative;
    overflow: hidden;
}

/* subtle orange top accent line */
.head-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cf-org) 0%, var(--cf-org-md) 60%, #f9b060 100%);
}

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

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

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

.hb-sitename {
    font-size: 1.38rem;
    font-weight: 800;
    color: var(--cf-dark);
    font-style: normal;
    letter-spacing: -0.4px;
    border-bottom: none;
    text-decoration: none;
}

.hb-sitename span {
    color: var(--cf-org);
}

.domain-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--cf-org) 0%, var(--cf-org-md) 100%);
    border-radius: 30px;
    padding: 4px 14px;
    box-shadow: 0 2px 8px rgba(246,130,31,.28);
}

.domain-tag .dtag-lbl {
    font-size: 0.67rem;
    color: rgba(255,255,255,.72);
    white-space: nowrap;
}

.domain-tag .dtag-url {
    font-size: 1.08rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
}

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

/* ===== CATEGORY NAV ===== */
.nav-panel {
    background: var(--bg);
    border: 1px solid var(--bdr);
    border-radius: var(--rr3);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--sh1);
    position: relative;
}

/* left orange accent border */
.nav-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--cf-org) 0%, var(--cf-org-md) 100%);
}

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

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

.nav-tag {
    background: linear-gradient(135deg, var(--cf-org) 0%, var(--cf-org-md) 100%);
    color: rgba(255,255,255,.95);
    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;
}

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

.nav-links a {
    font-size: .81rem;
    color: var(--txt2);
    padding: 3px 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;
}

.nav-links a:hover {
    background: var(--cf-org-lt);
    color: var(--cf-org-dk);
    border-color: #f5c080;
}

.nav-links a.active {
    background: var(--cf-org);
    color: #fff;
    border-color: var(--cf-org);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.search-unit {
    background: var(--bg);
    border: 1px solid var(--bdr);
    border-radius: var(--rr);
    padding: 8px 12px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

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

.search-unit input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1.5px solid var(--bdr2);
    border-radius: 30px;
    padding: 0 14px;
    font-size: .87rem;
    color: var(--txt);
    background: var(--bg-soft);
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

.search-unit input[type="text"]:focus {
    border-color: var(--cf-org);
    background: var(--bg);
    box-shadow: 0 0 0 3px rgba(246,130,31,.14);
}

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

.search-unit button:hover { background: var(--cf-dark); }

.search-unit button[value="1"] {
    background: linear-gradient(135deg, var(--cf-org) 0%, var(--cf-org-md) 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(246,130,31,.3);
}
.search-unit button[value="1"]:hover {
    background: var(--cf-org-dk);
    box-shadow: none;
}

.search-unit button[value="2"] {
    background: linear-gradient(135deg, #e87010 0%, #c05808 100%);
    color: #fff;
}
.search-unit button[value="2"]:hover { background: var(--cf-org-dk); }

/* ===== HOT TAGS ===== */
.hot-block {
    background: var(--bg);
    border: 1px solid var(--bdr);
    border-radius: var(--rr);
    padding: 7px 12px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

.hot-block h4 {
    font-size: .78rem;
    font-weight: 700;
    color: var(--cf-dark);
    margin-bottom: 5px;
}

.word-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.word-tags .wt {
    display: inline-block;
    background: var(--cf-org-pale);
    color: var(--txt2);
    border: 1px solid #f5c888;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: .75rem;
    text-decoration: none;
    transition: all .15s;
}

.word-tags .wt:hover {
    background: var(--cf-org);
    color: #fff;
    border-color: var(--cf-org);
    box-shadow: 0 2px 8px rgba(246,130,31,.25);
}

/* ===== CONTENT SECTION ===== */
.content-unit {
    background: var(--bg);
    border: 1px solid var(--bdr);
    border-radius: var(--rr3);
    padding: 12px 12px 9px;
    margin: 4px 0;
    box-shadow: var(--sh1);
    position: relative;
    overflow: hidden;
}

/* subtle top-right orange decor */
.content-unit::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(246,130,31,.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

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

.unit-hd::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 38px;
    height: 2px;
    background: var(--cf-org);
    border-radius: 2px;
}

.unit-hd h3 {
    font-size: .97rem;
    font-weight: 800;
    color: var(--cf-dark);
}

.unit-hd h3 a { color: var(--cf-dark); }
.unit-hd h3 a:hover { color: var(--cf-org); }

.unit-hd h4 {
    font-size: .94rem;
    font-weight: 800;
    color: var(--cf-dark);
}

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

.show-grid li {
    border-radius: var(--rr);
    overflow: hidden;
    border: 1px solid var(--bdr);
    background: var(--bg-soft);
    transition: box-shadow .2s, transform .18s;
}

.show-grid li:hover {
    box-shadow: var(--sh3);
    transform: translateY(-2px);
    border-color: #f5c080;
}

.show-cover {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--bg-muted);
}

.show-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .28s;
}

.show-cover:hover img { transform: scale(1.05); }

.show-desc {
    padding: 5px 7px 7px;
    border-top: 2px solid var(--cf-org-pale);
}

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

.show-desc h5 a { color: var(--txt); }
.show-desc h5 a:hover { color: var(--cf-org); }

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

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

.pager-items a.pi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--bg);
    border: 1px solid var(--bdr2);
    border-radius: var(--rr2);
    font-size: .83rem;
    color: var(--txt2);
    text-decoration: none;
    transition: all .15s;
}

.pager-items a.pi:hover {
    background: var(--cf-org-lt);
    border-color: var(--cf-org);
    color: var(--cf-org-dk);
}

.pager-items a.pi-sel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: linear-gradient(135deg, var(--cf-org) 0%, var(--cf-org-md) 100%);
    border: 1px solid var(--cf-org);
    border-radius: var(--rr2);
    font-size: .83rem;
    font-weight: 800;
    color: #fff;
    cursor: default;
    box-shadow: 0 2px 8px rgba(246,130,31,.3);
}

/* ===== FOOTER ===== */
.links-footer {
    background: var(--bg);
    border: 1px solid var(--bdr);
    border-radius: var(--rr);
    padding: 9px 12px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

.links-footer-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.links-footer-list dd { display: inline; }

.links-footer-list a {
    display: inline-block;
    font-size: .76rem;
    color: var(--txt3);
    padding: 2px 9px;
    border-radius: 3px;
    border: 1px solid var(--bdr);
    background: var(--bg-soft);
    text-decoration: none;
    transition: all .15s;
}

.links-footer-list a:hover {
    color: var(--cf-org-dk);
    border-color: var(--cf-org);
    background: var(--cf-org-lt);
}

.foot-copy {
    text-align: center;
    padding: 8px 0 14px;
    color: var(--txt3);
    font-size: .75rem;
}

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

.entry-title a {
    color: var(--cf-org);
    font-weight: 800;
    margin-right: 6px;
}

.entry-specs {
    font-size: .89rem;
    line-height: 1.95;
    padding: 14px 17px;
    background: var(--bg);
    border: 1px solid var(--bdr);
    border-radius: var(--rr);
    box-shadow: var(--sh1);
    margin: 4px 0;
}

.snap-area {
    display: block;
    width: 100%;
    margin-top: 10px;
}

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

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

.dl-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--cf-org) 0%, var(--cf-org-md) 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: .89rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .18s;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(246,130,31,.32);
}

.dl-cta:hover {
    background: var(--cf-org-dk);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(246,130,31,.4);
}

.client-line {
    text-align: center;
    padding: 6px;
    font-size: .81rem;
}

.client-line a { color: var(--cf-org); font-weight: 600; }
.client-line a:hover { color: var(--cf-org-dk); }

/* ===== SHARE ===== */
.share-unit {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--cf-org-pale);
    border: 1px solid #f5c888;
    border-radius: var(--rr);
    padding: 8px 12px;
    margin: 4px 0;
    flex-wrap: wrap;
}

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

.share-unit .su-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--cf-org) 0%, var(--cf-org-md) 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: .79rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(246,130,31,.28);
}

.share-unit .su-btn:hover {
    background: var(--cf-org-dk);
    box-shadow: none;
}

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

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

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

    .hb-sitename { font-size: 1.06rem; }
    .domain-tag .dtag-url { font-size: .93rem; }

    .nav-entry { align-items: stretch; }

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

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

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

    /* Search: single row, no wrap */
    .search-unit form {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .search-unit input[type="text"] {
        height: 34px;
        font-size: .77rem;
        padding: 0 9px;
    }

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

    /* Film grid: 2 columns */
    .show-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .show-cover { aspect-ratio: 600 / 350; }
    .show-desc h5 { font-size: .71rem; }
    .content-unit { padding: 8px 8px 6px; }
    .dl-cta { padding: 9px 16px; font-size: .83rem; }
}

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

@media (max-width: 380px) {
    .nav-tag { font-size: 10px; }
    .nav-links a { font-size: 12px; }
    .search-unit button { padding: 0 5px; font-size: .67rem; }
}
