:root {
    --bg-page: #f5f5f5;
    --bg-white: #ffffff;
    --bg-dark: #1a1a1a;
    --bg-dark2: #242424;
    --bg-card: #2e2e2e;
    --clr-orange: #ff4444;
    --clr-orange-dark: #e03030;
    --clr-orange-light: #ff6666;
    --clr-orange-soft: rgba(255,68,68,0.12);
    --clr-text: #1a1a1a;
    --clr-text-sec: #555555;
    --clr-text-dim: #999999;
    --clr-text-inv: #ffffff;
    --clr-text-inv-dim: rgba(255,255,255,0.65);
    --clr-border: #e8e8e8;
    --clr-border-dark: #333333;
    --clr-nav-bg: #ffffff;
    --clr-nav-text: #333333;
    --shadow-card: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 20px rgba(255,68,68,0.22);
    --r-xs: 4px;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 20px;
    --trans: 0.18s ease;
    --maxw: 1280px;
}

*, *::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: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
}

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

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

/* ================================================================
   TOP HEADER — white bar with orange accent
   ================================================================ */
.top-header {
    background: var(--bg-white);
    border-bottom: 2px solid var(--clr-border);
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    height: 56px;
    gap: 16px;
}

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

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

.brand-name-str {
    font-size: 20px;
    font-weight: 800;
    color: var(--clr-text);
    font-style: normal;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: -0.3px;
}

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

.newest-url-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--clr-orange-soft);
    border: 1px solid rgba(255,68,68,0.25);
    border-radius: var(--r-xl);
    padding: 3px 14px;
    white-space: nowrap;
}

.url-prefix-tag {
    font-size: 11px;
    color: var(--clr-text-sec);
    letter-spacing: 0.3px;
}

.url-addr-val {
    font-size: 15px;
    font-weight: 700;
    color: var(--clr-orange);
    letter-spacing: 0.3px;
}

/* ================================================================
   PROMO BANNER
   ================================================================ */
.banner-area {
    margin: 6px 0 3px;
    overflow: hidden;
    border-radius: var(--r-md);
}

/* ================================================================
   CATEGORY NAV
   ================================================================ */
.catnav-panel {
    background: var(--bg-white);
    border: 1px solid var(--clr-border);
    border-radius: var(--r-md);
    padding: 6px 10px 4px;
    margin-bottom: 5px;
    box-shadow: var(--shadow-card);
}

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

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

.cat-zone-lbl {
    flex-shrink: 0;
    width: 60px;
    font-size: 10px;
    color: var(--clr-orange);
    font-weight: 700;
    background: var(--clr-orange-soft);
    border-radius: var(--r-xs);
    padding: 3px 3px;
    text-align: center;
    line-height: 1.4;
    margin-right: 8px;
    margin-top: 2px;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.cat-btns-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 5px;
    flex: 1;
    align-items: center;
}

.cat-btns-wrap a {
    color: var(--clr-nav-text);
    font-size: 13px;
    padding: 2px 9px;
    border-radius: var(--r-xl);
    border: 1px solid transparent;
    transition: color var(--trans), border-color var(--trans), background var(--trans);
    white-space: nowrap;
}

.cat-btns-wrap a:hover {
    color: var(--clr-orange);
    background: var(--clr-orange-soft);
    border-color: rgba(255,68,68,0.3);
}

.cat-btns-wrap a.active {
    color: var(--bg-white);
    background: var(--clr-orange);
    border-color: var(--clr-orange);
    font-weight: 600;
}

/* ================================================================
   SEARCH BAR
   ================================================================ */
.search-widget {
    background: var(--bg-white);
    border: 1px solid var(--clr-border);
    border-radius: var(--r-md);
    padding: 7px 10px;
    margin-bottom: 5px;
    box-shadow: var(--shadow-card);
}

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

.search-inline input[type="text"] {
    flex: 1;
    min-width: 0;
    background: var(--bg-page);
    border: 1px solid var(--clr-border);
    border-radius: var(--r-xl);
    color: var(--clr-text);
    font-size: 13px;
    padding: 6px 14px;
    outline: none;
    transition: border-color var(--trans), box-shadow var(--trans);
}

.search-inline input[type="text"]:focus {
    border-color: var(--clr-orange);
    box-shadow: 0 0 0 2px rgba(255,68,68,0.15);
    background: var(--bg-white);
}

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

.search-inline button {
    flex-shrink: 0;
    background: var(--clr-orange);
    color: #fff;
    border: none;
    border-radius: var(--r-xl);
    font-size: 12px;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
    transition: background var(--trans), transform var(--trans);
    letter-spacing: 0.2px;
}

.search-inline button:hover {
    background: var(--clr-orange-dark);
    transform: translateY(-1px);
}

/* ================================================================
   HOT TAG CLOUD
   ================================================================ */
.tags-panel {
    background: var(--bg-white);
    border: 1px solid var(--clr-border);
    border-radius: var(--r-md);
    padding: 7px 10px 5px;
    margin-bottom: 5px;
    box-shadow: var(--shadow-card);
}

.tags-heading {
    font-size: 13px;
    font-weight: 700;
    color: var(--clr-text);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tags-heading strong { color: var(--clr-orange); }

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

.tags-flow .tag-node {
    display: inline-block;
    background: var(--bg-page);
    border: 1px solid var(--clr-border);
    color: var(--clr-text-sec);
    font-size: 12px;
    padding: 3px 10px;
    border-radius: var(--r-xl);
    white-space: nowrap;
    transition: background var(--trans), color var(--trans), border-color var(--trans);
}

.tags-flow .tag-node:hover {
    background: var(--clr-orange-soft);
    color: var(--clr-orange);
    border-color: rgba(255,68,68,0.35);
}

/* ================================================================
   CONTENT SECTIONS
   ================================================================ */
.content-module {
    background: var(--bg-white);
    border: 1px solid var(--clr-border);
    border-radius: var(--r-md);
    padding: 10px 12px 8px;
    margin-bottom: 5px;
    box-shadow: var(--shadow-card);
}

.module-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--clr-border);
}

.module-head h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--clr-text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.module-head h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: var(--clr-orange);
    border-radius: 3px;
}

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

.qty-note { font-size: 12px; color: var(--clr-text-dim); font-weight: normal; }

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

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

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

.film-img-link:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

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

.film-img-link:hover img { transform: scale(1.04); }

.film-text-info { padding: 4px 2px 2px; }

.film-text-info h5 {
    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-sec);
}

.film-text-info h5 a { color: var(--clr-text-sec); }
.film-text-info h5 a:hover { color: var(--clr-orange); }

/* ================================================================
   DETAIL PAGES
   ================================================================ */
.detail-title-row {
    text-align: center;
    padding: 14px 16px;
    font-size: 16px;
    line-height: 1.8;
    word-break: break-all;
    background: var(--bg-white);
    border: 1px solid var(--clr-border);
    border-radius: var(--r-md);
    margin-bottom: 8px;
    box-shadow: var(--shadow-card);
    color: var(--clr-text);
}

.detail-title-row a {
    color: var(--clr-orange);
    font-weight: 700;
    margin-right: 6px;
}

.detail-spec-box {
    background: var(--bg-dark);
    border: 1px solid var(--clr-border-dark);
    border-left: 4px solid var(--clr-orange);
    border-radius: var(--r-md);
    font-size: 14px;
    line-height: 1.9;
    padding: 14px 18px;
    margin-bottom: 8px;
    color: var(--clr-text-inv);
}

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

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

.dl-pill-btn {
    display: inline-flex;
    align-items: center;
    background: var(--clr-orange);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: var(--r-xl);
    cursor: pointer;
    border: none;
    transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
    text-decoration: none;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.dl-pill-btn:hover {
    background: var(--clr-orange-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255,68,68,0.4);
}

.dl-hint-line { text-align: center; padding: 7px 0; font-size: 13px; }
.dl-hint-line a { color: var(--clr-orange); font-weight: 600; }
.dl-hint-line a:hover { color: var(--clr-orange-dark); }

/* ================================================================
   SHARE PANEL
   ================================================================ */
.share-strip {
    background: var(--bg-white);
    border: 1px solid var(--clr-border);
    border-radius: var(--r-md);
    padding: 9px 13px;
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-card);
}

.share-lbl-node { font-size: 12px; color: var(--clr-text-dim); white-space: nowrap; font-weight: 600; }

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

.share-cpy-btn {
    flex-shrink: 0;
    background: var(--clr-orange);
    border: none;
    color: #fff;
    border-radius: var(--r-xl);
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--trans);
    white-space: nowrap;
}

.share-cpy-btn:hover { background: var(--clr-orange-dark); }

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

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

.page-lnk {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; height: 34px; padding: 0 10px;
    background: var(--bg-white);
    border: 1px solid var(--clr-border);
    border-radius: var(--r-sm);
    color: var(--clr-text-sec);
    font-size: 13px;
    transition: background var(--trans), color var(--trans), border-color var(--trans);
}

.page-lnk:hover {
    background: var(--clr-orange-soft);
    color: var(--clr-orange);
    border-color: rgba(255,68,68,0.4);
}

.page-now {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; height: 34px; padding: 0 10px;
    background: var(--clr-orange);
    border: 1px solid var(--clr-orange);
    border-radius: var(--r-sm);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

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

/* ================================================================
   FOOTER LINKS
   ================================================================ */
.flinks-module {
    background: var(--bg-white);
    border: 1px solid var(--clr-border);
    border-radius: var(--r-md);
    padding: 8px 12px;
    margin-top: 6px;
    box-shadow: var(--shadow-card);
}

.flinks-heading {
    font-size: 12px; font-weight: 700; color: var(--clr-text);
    margin-bottom: 6px; letter-spacing: 0.3px;
    display: flex; align-items: center; gap: 5px;
}

.flinks-heading::before {
    content: '';
    display: inline-block;
    width: 3px; height: 13px;
    background: var(--clr-orange);
    border-radius: 2px;
}

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

.flinks-items dd { margin: 0; }

.flinks-items a {
    color: var(--clr-text-sec); font-size: 12px;
    transition: color var(--trans);
}

.flinks-items a:hover { color: var(--clr-orange); }

.footer-bottom {
    background: var(--bg-dark);
    color: var(--clr-text-inv-dim);
    padding: 10px 0;
    margin-top: 5px;
    border-radius: var(--r-md) var(--r-md) 0 0;
}

.footer-txt-inner {
    text-align: center; font-size: 12px;
    color: rgba(255,255,255,0.55); line-height: 1.8;
}

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

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

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

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

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