:root {
    --bg-page: #ffffff;
    --bg-surface: #f8f8f8;
    --bg-hover: #f2f2f2;
    --clr-primary: #c0392b;
    --clr-primary-dark: #962d22;
    --clr-primary-soft: rgba(192,57,43,0.1);
    --clr-accent: #e74c3c;
    --clr-text: #1a1a1a;
    --clr-text-sec: #444444;
    --clr-text-muted: #767676;
    --clr-text-dim: #aaaaaa;
    --clr-border: #e0e0e0;
    --clr-border-strong: #cccccc;
    --clr-link: #1a1a1a;
    --clr-link-hover: #c0392b;
    --r-xs: 2px;
    --r-sm: 4px;
    --r-md: 6px;
    --trans: 0.15s ease;
    --maxw: 1240px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg-page);
    color: var(--clr-text);
    font-family: 'Georgia', 'PingFang SC', 'Microsoft YaHei', 'Times New Roman', serif;
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--clr-link); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--clr-link-hover); }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
.xcf::after { content: ''; display: table; clear: both; }

/* ================================================================
   LAYOUT
   ================================================================ */
.global-shell {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 16px;
}

/* ================================================================
   SITE MASTHEAD
   ================================================================ */
.site-masthead {
    background: var(--bg-page);
    border-bottom: 1px solid var(--clr-border);
    padding: 8px 0 0;
}

.masthead-top {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 8px;
    flex-wrap: nowrap;
}

.brand-unit {
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: nowrap;
    min-width: 0;
}

.brand-name-lnk { text-decoration: none; }

.brand-name-str {
    font-family: 'Georgia', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--clr-text);
    font-style: normal;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: -0.3px;
}

.brand-name-str:hover { color: var(--clr-primary); }

.domain-notice {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-left: 2px solid var(--clr-border-strong);
    padding-left: 12px;
    white-space: nowrap;
}

.domain-notice-lbl {
    font-size: 11px;
    color: var(--clr-text-muted);
    font-family: sans-serif;
    letter-spacing: 0.3px;
}

.domain-notice-val {
    font-size: 15px;
    font-weight: 700;
    color: var(--clr-primary);
    font-family: sans-serif;
    letter-spacing: 0.3px;
}

/* ================================================================
   PROMO BANNER
   ================================================================ */
.promo-row {
    margin: 5px 0 3px;
    overflow: hidden;
}

/* ================================================================
   CATEGORY NAV
   ================================================================ */
.catnav-section {
    background: var(--bg-page);
    border-bottom: 1px solid var(--clr-border);
    padding: 4px 0 3px;
    margin-bottom: 4px;
}

.zone-nav-row {
    display: flex;
    align-items: flex-start;
    padding: 3px 0;
    border-bottom: 1px solid var(--clr-border);
    gap: 0;
}

.zone-nav-row:last-child { border-bottom: none; padding-bottom: 0; }

.zone-label-cell {
    flex-shrink: 0;
    width: 60px;
    font-size: 10px;
    font-family: sans-serif;
    color: var(--clr-primary);
    font-weight: 700;
    background: var(--clr-primary-soft);
    border-radius: var(--r-xs);
    padding: 3px 3px;
    text-align: center;
    line-height: 1.4;
    margin-right: 10px;
    margin-top: 2px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    text-transform: uppercase;
}

.zone-link-cells {
    display: flex;
    flex-wrap: wrap;
    gap: 1px 4px;
    flex: 1;
    align-items: center;
}

.zone-link-cells a {
    color: var(--clr-text-sec);
    font-size: 13px;
    font-family: sans-serif;
    padding: 2px 8px;
    border-radius: var(--r-xs);
    border-bottom: 2px solid transparent;
    transition: color var(--trans), border-color var(--trans), background var(--trans);
    white-space: nowrap;
}

.zone-link-cells a:hover {
    color: var(--clr-primary);
    border-bottom-color: var(--clr-primary);
    background: var(--clr-primary-soft);
}

.zone-link-cells a.active {
    color: var(--clr-primary);
    border-bottom-color: var(--clr-primary);
    font-weight: 600;
    background: var(--clr-primary-soft);
}

/* ================================================================
   SEARCH BAR
   ================================================================ */
.search-section {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--clr-border);
    padding: 6px 0;
    margin-bottom: 4px;
}

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

.search-form-row input[type="text"] {
    flex: 1;
    min-width: 0;
    background: var(--bg-page);
    border: 1px solid var(--clr-border-strong);
    border-radius: 20px;
    color: var(--clr-text);
    font-size: 13px;
    font-family: sans-serif;
    padding: 6px 16px;
    outline: none;
    transition: border-color var(--trans), box-shadow var(--trans);
}

.search-form-row input[type="text"]:focus {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 2px var(--clr-primary-soft);
}

.search-form-row input[type="text"]::placeholder {
    color: var(--clr-text-dim);
}

.search-form-row button {
    flex-shrink: 0;
    background: var(--clr-primary);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    font-family: sans-serif;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    transition: background var(--trans);
    letter-spacing: 0.2px;
}

.search-form-row button:hover { background: var(--clr-primary-dark); }

/* ================================================================
   HOT TAGS
   ================================================================ */
.hot-section {
    padding: 5px 0 3px;
    border-bottom: 1px solid var(--clr-border);
    margin-bottom: 4px;
}

.hot-section-lbl {
    font-size: 11px;
    font-weight: 700;
    color: var(--clr-text-muted);
    font-family: sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 5px;
}

.hot-section-lbl strong { color: var(--clr-primary); }

.tags-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
}

.tags-inline .tag-entry {
    color: var(--clr-primary);
    font-size: 12px;
    font-family: sans-serif;
    border-bottom: 1px solid rgba(192,57,43,0.3);
    white-space: nowrap;
    transition: color var(--trans), border-color var(--trans);
}

.tags-inline .tag-entry:hover {
    color: var(--clr-primary-dark);
    border-bottom-color: var(--clr-primary-dark);
}

/* ================================================================
   CONTENT SECTIONS
   ================================================================ */
.editorial-block {
    padding: 7px 0 4px;
    border-bottom: 1px solid var(--clr-border);
    margin-bottom: 4px;
}

.editorial-block:last-child { border-bottom: none; }

.editorial-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--clr-text);
}

.editorial-head h3 {
    font-family: 'Georgia', serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--clr-text);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.editorial-head h3 a { color: var(--clr-text); font-weight: 700; }
.editorial-head h3 a:hover { color: var(--clr-primary); }

.item-tally {
    font-size: 11px;
    color: var(--clr-text-muted);
    font-family: sans-serif;
}

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

.film-tile-grid li { display: flex; flex-direction: column; }

.tile-img-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--r-sm);
    background: #eeeeee;
    aspect-ratio: 600 / 350;
    border: 1px solid var(--clr-border);
    transition: border-color var(--trans), box-shadow var(--trans);
}

.tile-img-wrap:hover {
    border-color: var(--clr-primary);
    box-shadow: 0 2px 10px rgba(192,57,43,0.15);
}

.tile-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease;
}

.tile-img-wrap:hover img { transform: scale(1.03); }

.tile-caption { padding: 4px 1px 2px; }

.tile-caption h5 {
    font-family: sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--clr-text-muted);
}

.tile-caption h5 a { color: var(--clr-text-muted); }
.tile-caption h5 a:hover { color: var(--clr-primary); }

/* ================================================================
   DETAIL PAGE
   ================================================================ */
.item-banner-title {
    text-align: center;
    padding: 14px 16px;
    font-size: 16px;
    line-height: 1.8;
    word-break: break-all;
    border-bottom: 1px solid var(--clr-border);
    margin-bottom: 10px;
    color: var(--clr-text);
    font-family: 'Georgia', serif;
}

.item-banner-title a {
    color: var(--clr-primary);
    font-weight: 700;
    margin-right: 6px;
}

.item-spec-panel {
    background: var(--bg-surface);
    border: 1px solid var(--clr-border);
    border-left: 3px solid var(--clr-primary);
    border-radius: var(--r-sm);
    font-size: 14px;
    font-family: sans-serif;
    line-height: 1.9;
    padding: 14px 18px;
    margin-bottom: 10px;
    color: var(--clr-text);
}

.capture-display { margin-top: 10px; width: 100%; }
.capture-display picture { display: block; width: 100%; }
.capture-display picture img,
.capture-display img {
    width: 100%; height: auto;
    border-radius: var(--r-sm);
    display: block;
    border: 1px solid var(--clr-border);
}

/* ================================================================
   DOWNLOAD BUTTONS
   ================================================================ */
.action-btn-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 14px 0;
}

.action-solid-btn {
    display: inline-flex;
    align-items: center;
    background: var(--clr-primary);
    color: #fff;
    font-size: 13px;
    font-family: sans-serif;
    font-weight: 700;
    padding: 9px 22px;
    border-radius: 20px;
    cursor: pointer;
    border: none;
    transition: background var(--trans), transform var(--trans);
    text-decoration: none;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.action-solid-btn:hover {
    background: var(--clr-primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

.dl-text-note { text-align: center; padding: 7px 0; font-size: 13px; font-family: sans-serif; }
.dl-text-note a { color: var(--clr-primary); font-weight: 600; }
.dl-text-note a:hover { color: var(--clr-primary-dark); }

/* ================================================================
   SHARE
   ================================================================ */
.share-unit {
    background: var(--bg-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--r-sm);
    padding: 9px 13px;
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.share-prefix { font-size: 12px; color: var(--clr-text-muted); white-space: nowrap; font-family: sans-serif; }

.share-url-span {
    flex: 1; font-size: 12px; color: var(--clr-text-dim);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
    font-family: monospace;
}

.share-copy-action {
    flex-shrink: 0;
    background: var(--clr-text);
    border: none;
    color: #fff;
    border-radius: 20px;
    padding: 5px 13px;
    font-size: 12px;
    font-family: sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--trans);
    white-space: nowrap;
}

.share-copy-action:hover { background: var(--clr-primary); }

/* ================================================================
   PAGINATION
   ================================================================ */
.pager-area { margin-top: 14px; padding-bottom: 8px; }

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

.pager-link {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 32px; height: 32px; padding: 0 9px;
    background: var(--bg-page);
    border: 1px solid var(--clr-border);
    border-radius: var(--r-sm);
    color: var(--clr-text-sec);
    font-size: 13px;
    font-family: sans-serif;
    transition: background var(--trans), color var(--trans), border-color var(--trans);
}

.pager-link:hover {
    background: var(--clr-primary-soft);
    color: var(--clr-primary);
    border-color: rgba(192,57,43,0.4);
}

.pager-current {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 32px; height: 32px; padding: 0 9px;
    background: var(--clr-primary);
    border: 1px solid var(--clr-primary);
    border-radius: var(--r-sm);
    color: #fff;
    font-size: 13px;
    font-family: sans-serif;
    font-weight: 700;
}

/* ================================================================
   PLAYER
   ================================================================ */
.player-container {
    margin: 8px 0;
    border-radius: var(--r-sm);
    overflow: hidden;
    background: #000;
    border: 1px solid var(--clr-border);
}

/* ================================================================
   FOOTER
   ================================================================ */
.flink-area {
    background: var(--bg-surface);
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
    padding: 8px 0;
    margin-top: 6px;
}

.flink-head {
    font-size: 11px;
    font-weight: 700;
    color: var(--clr-text-muted);
    font-family: sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

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

.flink-list dd { margin: 0; }

.flink-list a {
    color: var(--clr-text-sec);
    font-size: 12px;
    font-family: sans-serif;
    border-bottom: 1px solid var(--clr-border);
    transition: color var(--trans), border-color var(--trans);
}

.flink-list a:hover { color: var(--clr-primary); border-bottom-color: var(--clr-primary); }

.page-foot-bar {
    background: var(--clr-text);
    color: rgba(255,255,255,0.6);
    padding: 10px 0;
    margin-top: 5px;
}

.foot-bar-txt {
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    font-family: sans-serif;
    line-height: 1.8;
}

/* ================================================================
   HELPERS
   ================================================================ */
@media (max-width: 768px) { .no-mobile { display: none !important; } }
@media (min-width: 769px) { .no-desktop { display: none !important; } }

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* ≤480px small phones */
@media (max-width: 480px) {
    .zone-label-cell {
        width: 15%; font-size: 10px; padding: 2px 2px; margin-right: 4px;
    }
    .zone-link-cells { width: 85%; }
    /* 8 nav items → 4 per row = 2 rows */
    .zone-link-cells a {
        font-size: 12px; padding: 2px 4px;
        width: calc(25% - 4px); text-align: center;
    }
    /* Film 2 cols */
    .film-tile-grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
    /* Brand */
    .brand-name-str { font-size: 17px; }
    .domain-notice-val { font-size: 13px; }
    /* Search single row, no wrap */
    .search-form-row { flex-wrap: nowrap; }
    .search-form-row input[type="text"] { font-size: 12px; }
    .search-form-row button { font-size: 11px; padding: 6px 8px; }
}

/* 481–768px medium phones */
@media (min-width: 481px) and (max-width: 768px) {
    .zone-label-cell {
        width: 15%; font-size: 10px; padding: 2px 3px; margin-right: 5px;
    }
    .zone-link-cells { width: 85%; }
    .zone-link-cells a {
        font-size: 13px; padding: 2px 5px;
        width: calc(25% - 5px); text-align: center;
    }
    .film-tile-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .search-form-row { flex-wrap: nowrap; }
}

/* PC ≥769px */
@media (min-width: 769px) {
    .zone-link-cells a { flex: 1; text-align: center; }
    .film-tile-grid { grid-template-columns: repeat(4, 1fr); }
}
