:root {
    --cr-orange: #f47521;
    --cr-orange-dark: #d4631a;
    --cr-orange-glow: rgba(244,117,33,0.25);
    --cr-black: #0f0f0f;
    --cr-dark: #1a1a1a;
    --cr-dark2: #222222;
    --cr-dark3: #2a2a2a;
    --cr-border: #333333;
    --cr-border2: #3d3d3d;
    --cr-text: #f0f0f0;
    --cr-text-dim: #aaaaaa;
    --cr-text-muted: #666666;
    --cr-white: #ffffff;
    --r-sm: 5px;
    --r-md: 8px;
    --r-lg: 12px;
    --r-pill: 30px;
    --sh: 0 2px 12px rgba(0,0,0,0.5);
}

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

body {
    background-color: var(--cr-black);
    color: var(--cr-text);
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--cr-orange); }
img { max-width: 100%; display: block; }

/* ===== LAYOUT ===== */
.outer-shell {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 14px;
}

.cf::after { content: ''; display: table; clear: both; }

/* ===== TOPBAR ===== */
.topbar-brand {
    background: var(--cr-dark);
    border-bottom: 2px solid var(--cr-orange);
}

.topbar-brand .outer-shell {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 9px;
    padding-bottom: 9px;
}

.brand-title-link {
    font-size: 20px;
    font-weight: 800;
    color: var(--cr-white);
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.brand-title-link:hover { color: var(--cr-orange); }

.domain-tag {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(244,117,33,0.1);
    border: 1px solid rgba(244,117,33,0.35);
    border-radius: var(--r-pill);
    padding: 3px 14px;
}

.domain-tag-label {
    font-size: 11px;
    color: var(--cr-text-dim);
    white-space: nowrap;
    font-weight: 500;
}

.domain-tag-url {
    font-size: 15px;
    font-weight: 700;
    color: var(--cr-orange);
}

/* ===== BANNER ===== */
.banner-zone { margin: 5px 0; }
.banner-zone img { border-radius: var(--r-md); }

/* ===== NAV PANEL ===== */
.nav-panel {
    background: var(--cr-dark);
    border: 1px solid var(--cr-border);
    border-radius: var(--r-lg);
    overflow: hidden;
    margin: 5px 0;
}

.nav-zone-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--cr-border);
}

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

.zone-badge {
    background: var(--cr-orange);
    color: var(--cr-white);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    width: 15%;
    min-width: 42px;
    flex-shrink: 0;
    text-align: center;
    line-height: 1.3;
    word-break: break-all;
}

.nav-links-set {
    display: flex;
    flex-wrap: wrap;
    flex: 1;
    padding: 4px 8px;
    gap: 3px;
    align-items: center;
}

.nav-links-set a {
    color: var(--cr-text-dim);
    font-size: 13px;
    padding: 5px 8px;
    border-radius: var(--r-sm);
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.nav-links-set a:hover,
.nav-links-set a.active {
    background: var(--cr-orange);
    color: var(--cr-white);
    font-weight: 600;
}

/* ===== SEARCH ===== */
.search-zone {
    background: var(--cr-dark);
    border: 1px solid var(--cr-border);
    border-radius: var(--r-lg);
    padding: 10px 14px;
    margin: 5px 0;
}

.search-zone form {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.search-zone input[type="text"] {
    flex: 1;
    min-width: 0;
    background: var(--cr-dark3);
    border: 1.5px solid var(--cr-border2);
    border-radius: var(--r-pill);
    color: var(--cr-text);
    font-size: 14px;
    padding: 7px 16px;
    outline: none;
    transition: border-color 0.2s;
}

.search-zone input[type="text"]:focus { border-color: var(--cr-orange); }
.search-zone input[type="text"]::placeholder { color: var(--cr-text-muted); }

.search-zone button {
    background: var(--cr-orange);
    color: var(--cr-white);
    border: none;
    border-radius: var(--r-pill);
    padding: 7px 13px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.1s;
}

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

/* ===== HOT TAGS ===== */
.hot-tags-block {
    background: var(--cr-dark);
    border: 1px solid var(--cr-border);
    border-radius: var(--r-lg);
    padding: 10px 14px;
    margin: 5px 0;
}

.hot-tags-block h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--cr-orange);
    margin-bottom: 8px;
}

.chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
}

.chips-row a {
    display: inline-block;
    background: var(--cr-dark3);
    border: 1px solid var(--cr-border2);
    color: var(--cr-text-dim);
    font-size: 12px;
    padding: 3px 11px;
    border-radius: var(--r-pill);
    transition: all 0.15s;
}

.chips-row a:hover {
    background: var(--cr-orange);
    color: var(--cr-white);
    border-color: var(--cr-orange);
}

/* ===== SECTION HEADING ===== */
.sec-heading {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.sec-heading::before {
    content: '';
    display: block;
    width: 4px;
    height: 18px;
    background: var(--cr-orange);
    border-radius: 2px;
    flex-shrink: 0;
}

.sec-heading h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--cr-white);
}

.sec-heading h3 a { color: inherit; }
.sec-heading h3 a:hover { color: var(--cr-orange); }

.sec-heading h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--cr-white);
}

.count-note {
    font-size: 0.75em;
    font-weight: 400;
    color: var(--cr-text-muted);
    margin-left: 6px;
}

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

.movie-grid li {
    min-width: 0;
    overflow: hidden;
}

.film-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--r-md);
    background: var(--cr-dark3);
    aspect-ratio: 600 / 350;
    box-shadow: var(--sh);
    transition: transform 0.2s;
}

.film-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 55%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.film-thumb:hover { transform: scale(1.03); }
.film-thumb:hover::after { opacity: 1; }

.film-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.film-thumb:hover img { transform: scale(1.06); }

.film-caption { padding: 5px 2px 2px; }

.film-caption h5 {
    font-size: 12px;
    color: var(--cr-text-dim);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 500;
}

.film-caption h5 a:hover { color: var(--cr-orange); }

/* ===== CONTENT BLOCK ===== */
.content-block {
    background: var(--cr-dark);
    border: 1px solid var(--cr-border);
    border-radius: var(--r-lg);
    padding: 14px;
    margin: 5px 0;
}

/* ===== PAGE TITLE ===== */
.page-title-strip {
    background: var(--cr-dark);
    border: 1px solid var(--cr-border);
    border-left: 4px solid var(--cr-orange);
    border-radius: var(--r-md);
    padding: 12px 18px;
    font-size: 16px;
    font-weight: 700;
    word-break: break-all;
    margin: 5px 0;
}

.page-title-strip .cat-ref {
    color: var(--cr-orange);
    margin-right: 8px;
    font-weight: 800;
}

/* ===== TORRENT META ===== */
.torrent-info-box {
    background: var(--cr-dark);
    border: 1px solid var(--cr-border);
    border-radius: var(--r-lg);
    padding: 18px 20px;
    font-size: 15px;
    line-height: 1.9;
    margin: 5px 0;
}

.capture-frame picture,
.capture-frame img {
    width: 100%;
    display: block;
    border-radius: var(--r-md);
    margin-top: 8px;
}

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

.dl-action-btn {
    display: inline-block;
    background: var(--cr-orange);
    color: var(--cr-white);
    font-size: 15px;
    font-weight: 700;
    padding: 10px 26px;
    border-radius: var(--r-pill);
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
    box-shadow: 0 4px 14px var(--cr-orange-glow);
}

.dl-action-btn:hover {
    background: var(--cr-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--cr-orange-glow);
    color: var(--cr-white);
}

/* ===== BT CLIENT ===== */
.client-row {
    text-align: center;
    padding: 8px;
    font-size: 13px;
}

.client-row a { color: var(--cr-orange); font-weight: 600; }
.client-row a:hover { text-decoration: underline; }

/* ===== SHARE STRIP ===== */
.share-strip {
    background: var(--cr-dark);
    border: 1px solid var(--cr-border);
    border-radius: var(--r-md);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 5px 0;
}

.share-url-part {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    overflow: hidden;
}

.share-lbl {
    font-size: 11px;
    color: var(--cr-text-muted);
    white-space: nowrap;
    font-weight: 600;
    background: var(--cr-dark3);
    padding: 2px 8px;
    border-radius: var(--r-sm);
}

.share-val {
    font-size: 12px;
    color: var(--cr-text-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.share-btn {
    background: var(--cr-dark3);
    color: var(--cr-text);
    border: 1px solid var(--cr-border2);
    border-radius: var(--r-sm);
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s;
    flex-shrink: 0;
}

.share-btn:hover {
    background: var(--cr-orange);
    border-color: var(--cr-orange);
    color: var(--cr-white);
}

/* ===== PLAYER ===== */
.player-shell {
    background: #000;
    border-radius: var(--r-lg);
    overflow: hidden;
    margin: 5px 0;
}

/* ===== PAGINATION ===== */
.pager-row {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    padding: 14px 0;
}

.pager-row a, .pager-cur {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.15s;
}

.pager-row a {
    background: var(--cr-dark);
    border: 1px solid var(--cr-border);
    color: var(--cr-text-dim);
}

.pager-row a:hover {
    background: var(--cr-orange);
    border-color: var(--cr-orange);
    color: var(--cr-white);
}

.pager-cur {
    background: var(--cr-orange);
    color: var(--cr-white);
    border: 1px solid var(--cr-orange);
}

/* ===== FOOTER ===== */
.footer-links-panel {
    background: var(--cr-dark);
    border: 1px solid var(--cr-border);
    border-radius: var(--r-lg);
    padding: 12px 16px;
    margin: 5px 0;
}

.footer-links-panel dl { display: flex; flex-wrap: wrap; gap: 7px; }
.footer-links-panel dd { margin: 0; }

.flink-item {
    display: inline-block;
    padding: 3px 11px;
    background: var(--cr-dark3);
    border: 1px solid var(--cr-border);
    border-radius: var(--r-pill);
    color: var(--cr-text-muted);
    font-size: 12px;
    transition: all 0.15s;
}

.flink-item:hover {
    background: var(--cr-orange);
    color: var(--cr-white);
    border-color: var(--cr-orange);
}

.footer-cr {
    text-align: center;
    padding: 12px 0 8px;
    font-size: 12px;
    color: var(--cr-text-muted);
    border-top: 1px solid var(--cr-border);
    margin-top: 5px;
}

/* ===== UTILS ===== */
.hide-mobile { display: block; }
.hide-pc { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .movie-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .hide-mobile { display: none !important; }
    .hide-pc { display: block !important; }
    .zone-badge { font-size: 10px; width: 15%; min-width: 38px; padding: 4px 2px; }
    .nav-links-set { width: 85%; }
    .nav-links-set a { font-size: 12px; padding: 4px 5px; }
}

@media (max-width: 640px) {
    .nav-links-set { display: grid; grid-template-columns: repeat(4, 1fr); }
    .nav-links-set a { font-size: 12px; text-align: center; }
    .brand-title-link { font-size: 17px; }
    .domain-tag-url { font-size: 13px; }
    .search-zone button { padding: 7px 9px; font-size: 12px; }
}

@media (min-width: 641px) and (max-width: 960px) {
    .nav-links-set { display: grid; grid-template-columns: repeat(4, 1fr); }
    .nav-links-set a { font-size: 13px; text-align: center; }
}

@media (min-width: 961px) {
    .zone-badge { font-size: 13px; width: auto; min-width: 72px; padding: 6px 10px; }
    .nav-links-set { display: flex; flex-wrap: nowrap; }
    .nav-links-set a { flex: 1; text-align: center; }
    .movie-grid { grid-template-columns: repeat(4, 1fr); }
}
