/* Film Portal - News Portal Style (Sina-inspired) */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700;900&display=swap');

:root {
    --red: #cc0000;
    --red-hover: #aa0000;
    --navy: #003366;
    --navy-dark: #002244;
    --navy-light: #0044aa;
    --gold: #ff6600;
    --dark: #1a1a1a;
    --text: #333333;
    --text-mid: #555555;
    --text-muted: #888888;
    --border: #dddddd;
    --border-light: #eeeeee;
    --panel: #ffffff;
    --surface: #f4f4f4;
    --surface2: #f9f9f9;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.10);
    --shadow: 0 2px 8px rgba(0,0,0,0.12);
    --radius: 2px;
}

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

body {
    font-family: 'Noto Sans SC', 'SimSun', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* HEADER */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: nowrap;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

.brand-logo {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.brand-logo:hover { opacity: 0.85; }

.brand-icon {
    width: 32px;
    height: 32px;
    background: var(--red);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.brand-name {
    font-size: 24px;
    font-weight: 900;
    color: var(--red);
    letter-spacing: 1px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-domain-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff5f5;
    border: 1px solid #ffcccc;
    border-radius: 2px;
    padding: 4px 12px;
    flex-shrink: 0;
}

.domain-tag {
    font-size: 11px;
    font-weight: 700;
    background: var(--red);
    color: #fff;
    padding: 1px 5px;
    border-radius: 1px;
    white-space: nowrap;
}

.domain-str {
    font-size: 14px;
    font-weight: 700;
    color: var(--red);
    font-family: 'Courier New', 'Consolas', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* CONTAINER */
.container { max-width: 1060px; margin: 0 auto; padding: 0 14px; }
.content { padding: 8px 0; }

/* CATEGORY NAV - Sina blue bar style */
.category-nav-block {
    background: var(--navy);
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
}

.category-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.category-row:last-child { border-bottom: none; }

.category-zone {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--navy-dark);
    white-space: nowrap;
    width: 9%;
    min-width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 3px;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    border-right: 1px solid rgba(255,255,255,0.15);
}

.category-links {
    display: flex;
    flex-wrap: nowrap;
    padding: 0;
    width: 91%;
    align-items: stretch;
}

.category-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ddeeff;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 0;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-align: center;
    flex: 1;
    border-right: 1px solid rgba(255,255,255,0.08);
}
.category-links a:last-child { border-right: none; }
.category-links a:hover { color: #fff; background: rgba(255,255,255,0.12); }
.category-links a.active { color: #fff; background: var(--red); font-weight: 700; }

/* SEARCH */
.search-wrap {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 10px 14px;
    margin-bottom: 8px;
}

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

.search-wrap input[type="text"] {
    flex: 1;
    min-width: 120px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--dark);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}
.search-wrap input[type="text"]:focus { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(0,51,102,0.1); }
.search-wrap input[type="text"]::placeholder { color: #bbb; }

.search-wrap button {
    padding: 8px 14px;
    border: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.search-wrap button[value="1"],
.search-wrap button[value="2"] { background: var(--navy); color: #fff; }
.search-wrap button[value="1"]:hover,
.search-wrap button[value="2"]:hover { background: var(--navy-dark); }
.search-wrap button:not([value]) { background: var(--surface2); color: var(--text-mid); border: 1px solid var(--border); }
.search-wrap button:not([value]):hover { background: var(--red); color: #fff; border-color: var(--red); }

/* HOT SEARCH */
.hot-search-panel {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 10px 14px;
    margin-bottom: 8px;
}

.hot-search-panel h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--red);
    border-left: 3px solid var(--red);
    padding-left: 8px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tag-list a,
.tag-item {
    display: inline-block;
    padding: 3px 10px;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text-mid);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s ease;
}
.tag-list a:hover,
.tag-item:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* SECTION BLOCKS */
.section-block {
    background: var(--panel);
    border: 1px solid var(--border);
    margin-bottom: 12px;
}

.section-head {
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--navy);
    background: var(--panel);
}

.section-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: var(--navy);
    padding: 7px 24px 7px 12px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.section-title a { color: #fff; text-decoration: none; }
.section-title a:hover { color: #ffdddd; }
.section-title span { font-size: 0.8em; font-weight: 400; color: rgba(255,255,255,0.7); margin-left: 6px; }

.section-body { padding: 14px; }

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

.film-grid li { animation: fadeUp 0.4s ease backwards; }
.film-grid li:nth-child(1) { animation-delay: 0.03s; }
.film-grid li:nth-child(2) { animation-delay: 0.06s; }
.film-grid li:nth-child(3) { animation-delay: 0.09s; }
.film-grid li:nth-child(4) { animation-delay: 0.12s; }
.film-grid li:nth-child(5) { animation-delay: 0.15s; }
.film-grid li:nth-child(6) { animation-delay: 0.18s; }
.film-grid li:nth-child(7) { animation-delay: 0.21s; }
.film-grid li:nth-child(8) { animation-delay: 0.24s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.film-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 600 / 350;
    background: var(--surface);
    border: 1px solid var(--border-light);
}
.film-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; display: block; }
.film-thumb:hover img { transform: scale(1.06); }
.film-thumb::after {
    content: '▶';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: rgba(255,255,255,0.9);
    background: rgba(0,0,0,0.25);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.film-thumb:hover::after { opacity: 1; }

.film-info { padding: 6px 0 2px; }
.film-info h5 { margin: 0; font-size: 12px; font-weight: 400; line-height: 1.5; }
.film-info h5 a {
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.film-info h5 a:hover { color: var(--red); }

/* VIDEO PLAYER */
.video-container { width: 100%; height: 600px; background: #000; margin-bottom: 12px; overflow: hidden; }
.video-container iframe, .video-container video, .video-container #video-container { width: 100%; height: 100%; border: none; }
.MacPlayer { background: #000; overflow: hidden; margin-bottom: 12px; }

/* DETAIL TITLE */
.detail-title-bar {
    line-height: 1.8;
    text-align: center;
    padding: 14px 16px;
    font-size: 16px;
    margin: 10px 0;
    word-break: break-all;
    background: #fff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--red);
}
.detail-title-bar a { color: var(--navy); text-decoration: none; font-weight: 700; margin-right: 8px; }
.detail-title-bar a:hover { color: var(--red); }

/* META BOX */
.meta-info-box {
    font-size: 14px;
    line-height: 2;
    padding: 16px 20px;
    background: var(--panel);
    border: 1px solid var(--border);
    margin: 10px 0;
}

/* TORRENT PREVIEW */
.preview-image-wrap { width: 100%; margin: 8px 0; }
.preview-image-wrap picture,
.preview-image-wrap img { display: block; width: 100%; height: auto; border: 1px solid var(--border); }

/* DOWNLOAD BUTTONS */
.btn-group-center {
    text-align: center;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--border);
    margin: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.btn-action {
    display: inline-block;
    padding: 9px 22px;
    background: var(--navy);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.3px;
}
.btn-action:hover { background: var(--red); box-shadow: 0 2px 8px rgba(204,0,0,0.3); }

/* SHARE */
.share-section {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 12px 14px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-url-display {
    background: var(--surface2);
    border: 1px solid var(--border);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.share-label {
    font-weight: 700;
    font-size: 11px;
    background: var(--navy);
    color: #fff;
    padding: 2px 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.share-url {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.share-copy-btn {
    padding: 9px 16px;
    background: var(--navy);
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}
.share-copy-btn:hover { background: var(--red); }
.share-icon { font-size: 14px; }

/* PAGINATION */
.page_info_div { display: flex; justify-content: center; align-items: center; gap: 4px; flex-wrap: wrap; padding: 18px 0; }

.a_page_info,
.page_info_focus {
    display: inline-block;
    padding: 6px 12px;
    text-decoration: none;
    font-weight: 400;
    font-size: 13px;
    transition: all 0.2s ease;
    min-width: 34px;
    text-align: center;
    border: 1px solid var(--border);
}
.a_page_info { background: var(--panel); color: var(--navy); }
.a_page_info:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.page_info_focus { background: var(--red); color: #fff; border: 1px solid var(--red); cursor: default; font-weight: 700; }

/* FRIEND LINKS */
.link-panel { background: var(--panel); border: 1px solid var(--border); padding: 12px 14px; margin-bottom: 8px; }
.link-panel-head {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: var(--navy);
    padding: 6px 14px 6px 10px;
    margin: -12px -14px 10px;
    border-left: 3px solid var(--red);
    display: flex;
    align-items: center;
}
.link-grid dl { margin: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.link-grid dd { margin: 0; }
.link-grid a {
    display: inline-block;
    padding: 3px 10px;
    color: var(--navy);
    text-decoration: none;
    font-size: 12px;
    border: 1px solid var(--border);
    background: var(--surface2);
    transition: all 0.2s ease;
}
.link-grid a:hover { color: var(--red); border-color: var(--red); background: #fff5f5; }

/* FOOTER */
.site-footer { background: var(--navy-dark); padding: 18px 0; margin-top: 16px; text-align: center; }
.site-footer p { color: rgba(255,255,255,0.55); font-size: 12px; margin: 4px 0; line-height: 1.8; }
.site-footer a { color: rgba(255,255,255,0.65); text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* CLIENT DOWNLOAD */
.client-dl-pc, .client-dl-mobile { text-align: center; padding: 10px 14px; }
.client-dl-pc a, .client-dl-mobile a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 13px; transition: all 0.2s ease; }
.client-dl-pc a:hover, .client-dl-mobile a:hover { color: var(--red); }

/* HIDE UTILS */
.hide_mobile { display: block; }
.hide_pc { display: block; }
@media (max-width: 768px) { .hide_mobile { display: none !important; } }
@media (min-width: 769px) { .hide_pc { display: none !important; } }

/* CLEARFIX */
.clearfix::after { content: ""; display: table; clear: both; }
img[data-original] { background: var(--surface); }

/* RESPONSIVE 768px */
@media (max-width: 768px) {
    .container { padding: 0 6px; }
    .content { padding: 6px 0; }

    .site-branding { gap: 8px; flex-wrap: nowrap; }
    .site-domain-wrap { padding: 3px 8px; flex-shrink: 0; }
    .brand-name { font-size: 20px; }
    .domain-str { font-size: 12px; max-width: 130px; }
    .domain-tag { font-size: 10px; }

    .category-zone { width: 16%; min-width: 38px; font-size: 10px; padding: 5px 2px; letter-spacing: 0; }
    .category-links { width: 84%; flex-wrap: wrap; }
    .category-links a {
        font-size: 14px;
        padding: 7px 2px;
        width: 25%;
        flex: none;
        border-right: 1px solid rgba(255,255,255,0.08);
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .film-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .film-info h5 { font-size: 12px; }
    .section-title { font-size: 14px; }
    .section-body { padding: 10px; }
    .video-container { height: 56.25vw; max-height: 360px; }

    .btn-group-center { padding: 12px 8px; gap: 6px; }
    .btn-action { padding: 9px 12px; font-size: 12px; }

    .share-section { padding: 10px; gap: 6px; flex-wrap: nowrap; }
    .share-url-display { padding: 7px 8px; }
    .share-url { font-size: 11px; }
    .share-copy-btn { padding: 8px 10px; font-size: 11px; }

    .search-wrap { padding: 8px 10px; }
    .search-wrap button { padding: 8px 8px; font-size: 12px; }
    .search-wrap input[type="text"] { min-width: 80px; padding: 8px 10px; font-size: 13px; }
    .hot-search-panel { padding: 8px 10px; }

    .page_info_div { padding: 12px 0; gap: 3px; }
    .a_page_info, .page_info_focus { padding: 5px 10px; font-size: 12px; min-width: 30px; }
    .detail-title-bar { padding: 12px; font-size: 14px; }
    .meta-info-box { padding: 12px 14px; font-size: 13px; }
}

/* RESPONSIVE 480px */
@media (max-width: 480px) {
    .brand-name { font-size: 18px; }
    .brand-icon { width: 28px; height: 28px; font-size: 15px; }
    .domain-tag { display: none; }
    .domain-str { font-size: 12px; max-width: 120px; }

    .category-zone { width: 15%; min-width: 34px; font-size: 9px; padding: 4px 1px; }
    .category-links { width: 85%; }
    .category-links a { font-size: 13px; padding: 6px 1px; width: 25%; }

    .film-grid { gap: 6px; }
    .film-info h5 { font-size: 11px; }
    .section-title { font-size: 13px; }
    .video-container { height: 56.25vw; max-height: 260px; }
    .btn-action { padding: 8px 8px; font-size: 11px; }
    .share-copy-btn { padding: 7px 8px; font-size: 11px; }
}
