/* Video Site Template - Bold Commercial Style */

:root {
    --clr-red: #cc0000;
    --clr-red-deep: #a80000;
    --clr-red-light: #ff1a1a;
    --clr-navy: #1a1a2e;
    --clr-dark: #111111;
    --clr-mid: #444444;
    --clr-muted: #888888;
    --clr-border: #e0e0e0;
    --clr-bg: #f5f5f5;
    --clr-surface: #ffffff;
    --clr-surface2: #fafafa;
    --clr-tag-bg: #f0f0f0;
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 3px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 6px 24px rgba(0,0,0,0.16);
    --radius-xs: 3px;
    --radius-sm: 5px;
    --radius-md: 8px;
    --ease: all 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    background: var(--clr-bg);
    color: var(--clr-dark);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===================== HEADER ===================== */
.site-topbar {
    background: var(--clr-surface);
    border-bottom: 3px solid var(--clr-red);
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.brand-link {
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.brand-title {
    font-size: 26px;
    font-weight: 900;
    color: var(--clr-red);
    letter-spacing: -0.5px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    line-height: 1;
}

.site-domain-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--clr-red);
    border-radius: var(--radius-xs);
    padding: 4px 12px;
}

.domain-tag {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.domain-addr {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

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

.content {
    padding: 10px 0;
}

/* ===================== NAV ===================== */
.nav-panel {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
}

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

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

.zone-badge {
    width: 10%;
    background: var(--clr-red);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 4px;
    flex-shrink: 0;
    white-space: nowrap;
    writing-mode: horizontal-tb;
    line-height: 1.3;
}

.zone-items {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px 10px;
    align-items: center;
}

.zone-items a {
    display: inline-block;
    color: var(--clr-mid);
    text-decoration: none;
    padding: 4px 3px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--clr-border);
    background: var(--clr-bg);
    font-size: 13px;
    white-space: nowrap;
    text-align: center;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
    transition: var(--ease);
}

.zone-items a:hover {
    background: var(--clr-red);
    color: #fff;
    border-color: var(--clr-red);
}

.zone-items a.active {
    background: var(--clr-red);
    color: #fff;
    border-color: var(--clr-red);
    font-weight: 700;
}

/* ===================== SEARCH ===================== */
.search-wrap {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
}

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

.search-wrap input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 9px 14px;
    border: 2px solid var(--clr-border);
    border-radius: var(--radius-xs);
    background: var(--clr-bg);
    color: var(--clr-dark);
    font-size: 14px;
    outline: none;
    transition: var(--ease);
}

.search-wrap input[type="text"]:focus {
    border-color: var(--clr-red);
    background: #fff;
}

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

.search-wrap button {
    padding: 9px 14px;
    border: none;
    border-radius: var(--radius-xs);
    background: var(--clr-red);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--ease);
    letter-spacing: 0.2px;
}

.search-wrap button:hover {
    background: var(--clr-red-deep);
    box-shadow: var(--shadow-md);
}

/* ===================== HOT TAGS ===================== */
.tag-block {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    padding: 10px 12px;
    box-shadow: var(--shadow-sm);
}

.tag-block h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--clr-dark);
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--clr-red);
    display: inline-block;
}

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

.tag-item {
    padding: 4px 12px;
    background: var(--clr-tag-bg);
    border-radius: 20px;
    color: var(--clr-mid);
    text-decoration: none;
    font-size: 13px;
    border: 1px solid var(--clr-border);
    transition: var(--ease);
}

.tag-item:hover {
    background: var(--clr-red);
    color: #fff;
    border-color: var(--clr-red);
}

/* ===================== SECTION ===================== */
.film-section {
    margin-bottom: 16px;
}

.section-hd {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--clr-border);
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-hd::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--clr-red);
}

.section-hd h3 {
    font-size: 18px;
    font-weight: 900;
    color: var(--clr-dark);
    letter-spacing: -0.2px;
    margin: 0;
}

.section-hd h3 a {
    color: var(--clr-dark);
    text-decoration: none;
    transition: var(--ease);
}

.section-hd h3 a:hover {
    color: var(--clr-red);
}

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

.film-grid li {
    position: relative;
}

.film-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    aspect-ratio: 600 / 350;
    background: var(--clr-tag-bg);
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-sm);
    transition: var(--ease);
}

.film-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.film-thumb:hover {
    border-color: var(--clr-red);
    box-shadow: var(--shadow-md);
}

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

.film-thumb::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    width: 40px;
    height: 40px;
    background: rgba(204,0,0,0.85);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: var(--ease);
    line-height: 40px;
    text-align: center;
}

.film-thumb:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.film-caption {
    padding: 6px 2px 0;
}

.film-caption h5 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.film-caption h5 a {
    color: var(--clr-dark);
    text-decoration: none;
    transition: var(--ease);
}

.film-caption h5 a:hover {
    color: var(--clr-red);
}

/* ===================== TORRENT PAGE ===================== */
.film-detail-title {
    line-height: 1.8;
    text-align: center;
    padding: 16px 20px;
    font-size: 17px;
    margin: 12px 0;
    word-break: break-all;
    background: var(--clr-surface);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--clr-red);
    box-shadow: var(--shadow-sm);
}

.film-detail-title a {
    color: var(--clr-red);
    text-decoration: none;
    font-weight: 700;
    margin-right: 8px;
}

.film-meta-block {
    font-size: 15px;
    line-height: 2;
    padding: 20px 24px;
    background: var(--clr-surface);
    border-radius: var(--radius-md);
    margin: 12px 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--clr-border);
}

.torrent-img-grid {
    margin-top: 10px;
}

.torrent-img-grid picture {
    display: block;
    width: 100%;
}

.torrent-img-grid picture img,
.torrent-img-grid img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

/* Download Buttons */
.dl-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 16px 0;
    margin: 12px 0;
    flex-wrap: wrap;
}

.dl-btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--clr-red);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-xs);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--ease);
    letter-spacing: 0.3px;
}

.dl-btn:hover {
    background: var(--clr-red-deep);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.dl-client-pc {
    text-align: center;
    padding: 12px 0;
}

.dl-client-pc a {
    color: var(--clr-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.dl-client-mobile {
    text-align: center;
    padding: 12px 0;
}

.dl-client-mobile a {
    color: var(--clr-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

/* Share Section */
.url-share-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin: 12px 0;
    box-shadow: var(--shadow-sm);
    flex-wrap: nowrap;
}

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

.url-share-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--clr-red);
    white-space: nowrap;
    flex-shrink: 0;
}

.url-share-text {
    font-size: 12px;
    color: var(--clr-mid);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.url-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 16px;
    background: var(--clr-red);
    color: #fff;
    border: none;
    border-radius: var(--radius-xs);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--ease);
}

.url-copy-btn:hover {
    background: var(--clr-red-deep);
}

.copy-icon {
    font-size: 15px;
}

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

.pg-link {
    display: inline-block;
    padding: 7px 13px;
    border-radius: var(--radius-xs);
    font-size: 13px;
    text-decoration: none;
    transition: var(--ease);
    min-width: 36px;
    text-align: center;
}

.a_page_info {
    background: var(--clr-surface);
    color: var(--clr-dark);
    border: 1px solid var(--clr-border);
}

.a_page_info:hover {
    background: var(--clr-red);
    border-color: var(--clr-red);
    color: #fff;
}

.page_info_focus {
    background: var(--clr-red);
    color: #fff;
    border: 1px solid var(--clr-red);
    cursor: default;
    font-weight: 700;
}

/* ===================== FOOTER ===================== */
.friend-links-section {
    margin-bottom: 6px;
}

.fl-heading {
    font-size: 14px;
    font-weight: 800;
    color: var(--clr-dark);
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--clr-red);
    display: inline-block;
}

.fl-list {
    padding: 10px 12px;
    background: var(--clr-surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--clr-border);
}

.fl-list dl {
    margin: 0;
}

.fl-list dd {
    display: inline-block;
    margin: 3px 4px;
}

.fl-list a {
    color: var(--clr-mid);
    text-decoration: none;
    font-size: 13px;
    transition: var(--ease);
}

.fl-list a:hover {
    color: var(--clr-red);
}

.site-footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--clr-border);
    margin-top: 10px;
    background: var(--clr-surface);
}

.site-footer p {
    color: var(--clr-muted);
    font-size: 13px;
    margin: 5px 0;
}

.site-footer a {
    color: var(--clr-muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--clr-red);
}

/* ===================== CLEARFIX ===================== */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ===================== UTILITIES ===================== */
.hide_mobile { display: block; }
.hide_pc { display: block; }

img[data-original] {
    background: var(--clr-tag-bg);
}

/* ===================== VIDEO PLAYER ===================== */
.video-player-wrap {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 12px;
}

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

/* Large phones: 481px - 768px */
@media (max-width: 768px) {
    .container {
        padding: 0 8px;
    }

    .content {
        padding: 6px 0;
    }

    .hide_mobile {
        display: none !important;
    }

    /* Brand */
    .brand-title {
        font-size: 20px;
    }

    .domain-addr {
        font-size: 14px;
    }

    .domain-tag {
        font-size: 9px;
    }

    /* Nav - mobile: label 15%, links 85%, 4 items per row */
    .zone-badge {
        width: 15%;
        font-size: 10px;
        padding: 6px 2px;
    }

    .zone-items {
        width: 85%;
        gap: 4px;
        padding: 6px 5px;
        font-size: 13px;
    }

    .zone-items a {
        font-size: 13px;
        padding: 4px 2px;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    /* Search - all in one row */
    .search-wrap form {
        flex-wrap: nowrap;
        gap: 5px;
    }

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

    .search-wrap button {
        padding: 8px 10px;
        font-size: 12px;
        flex-shrink: 0;
    }

    /* Film grid - 2 per row on mobile */
    .film-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .film-caption h5 {
        font-size: 12px;
    }

    /* Section heading */
    .section-hd h3 {
        font-size: 16px;
    }

    .film-section {
        margin-bottom: 12px;
    }

    /* Tags */
    .tag-item {
        font-size: 12px;
        padding: 3px 10px;
    }

    /* Download buttons */
    .dl-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    /* Share */
    .url-share-box {
        flex-wrap: nowrap;
        padding: 8px 10px;
        gap: 6px;
    }

    .url-share-label {
        font-size: 11px;
    }

    .url-share-text {
        font-size: 11px;
    }

    .url-copy-btn {
        padding: 8px 10px;
        font-size: 12px;
    }

    /* Pagination */
    .pg-link, .a_page_info, .page_info_focus {
        padding: 6px 11px;
        font-size: 12px;
        min-width: 32px;
    }
}

/* Small phones: <= 480px */
@media (max-width: 480px) {
    .hide_pc {
        display: block;
    }

    .brand-title {
        font-size: 18px;
    }

    .domain-addr {
        font-size: 13px;
    }

    /* Nav label narrower, font smaller for very small screens */
    .zone-badge {
        width: 15%;
        font-size: 10px;
        padding: 5px 2px;
    }

    .zone-items {
        width: 85%;
        gap: 3px;
        padding: 5px 3px;
    }

    .zone-items a {
        font-size: 12px;
        padding: 3px 1px;
        width: calc((100% - 9px) / 4);
    }

    /* Search */
    .search-wrap input[type="text"] {
        font-size: 12px;
        padding: 7px 8px;
    }

    .search-wrap button {
        padding: 7px 8px;
        font-size: 11px;
    }

    /* Film grid - 2 per row */
    .film-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
    }

    .film-caption h5 {
        font-size: 12px;
    }

    .section-hd h3 {
        font-size: 15px;
    }

    .dl-btn {
        padding: 9px 12px;
        font-size: 12px;
    }
}

/* PC - ensure hide_pc is hidden */
@media (min-width: 769px) {
    .hide_pc {
        display: none !important;
    }

    /* PC: 4 items per row, fill width */
    .film-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* PC nav: 8 items fill 90% width */
    .zone-items a {
        width: calc((100% - 35px) / 8);
    }
}
