/* Dark Professional Video Site Theme */

:root {
    --c-red: #e8001e;
    --c-red-deep: #c0001a;
    --c-red-glow: rgba(232, 0, 30, 0.25);
    --c-blue: #1565c0;
    --c-bg: #0d1117;
    --c-bg2: #161b22;
    --c-bg3: #1c2333;
    --c-bg4: #21262d;
    --c-line: #30363d;
    --c-line2: #21262d;
    --c-txt: #e6edf3;
    --c-txt2: #8b949e;
    --c-txt3: #6e7681;
    --c-white: #ffffff;
    --c-shadow: rgba(0, 0, 0, 0.4);
    --c-shadow2: rgba(0, 0, 0, 0.7);
    --r-base: 6px;
    --r-sm: 4px;
    --ease: all 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
    background: var(--c-bg);
    color: var(--c-txt);
    line-height: 1.55;
    font-size: 14px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   TOP HEADER — NOT STICKY
   ========================================= */
.top-bar {
    background: #0a0e14;
    border-bottom: 3px solid var(--c-red);
    padding: 0.7rem 0;
}

.top-bar-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

.brand-anchor {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--ease);
}

.brand-anchor:hover {
    opacity: 0.85;
}

.brand-name {
    font-size: 26px;
    font-weight: 900;
    color: var(--c-white);
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.brand-name::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 22px;
    background: var(--c-red);
    border-radius: 2px;
    margin-right: 8px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.mirror-info {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(232, 0, 30, 0.12);
    border: 1px solid rgba(232, 0, 30, 0.4);
    border-radius: 3px;
    padding: 5px 12px;
}

.mirror-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--c-red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.mirror-addr {
    font-size: 14px;
    font-weight: 700;
    color: var(--c-txt);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* =========================================
   LAYOUT
   ========================================= */
.pg-wrap {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 14px;
}

.row-gap {
    padding: 12px 0;
}

/* =========================================
   CATEGORY NAVIGATION
   ========================================= */
.cate-wrap {
    background: var(--c-bg2);
    border: 1px solid var(--c-line);
    border-radius: var(--r-base);
    overflow: hidden;
    margin-bottom: 14px;
}

.cate-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--c-line);
}

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

.cate-zone {
    font-weight: 700;
    font-size: 13px;
    color: var(--c-white);
    white-space: nowrap;
    width: 10%;
    min-width: 52px;
    text-align: center;
    border-right: 1px solid var(--c-line);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 4px;
    flex-shrink: 0;
    background: rgba(232, 0, 30, 0.1);
}

.cate-list {
    width: 90%;
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    padding: 9px 8px;
    align-items: center;
}

.cate-list a {
    display: inline-block;
    color: var(--c-txt2);
    text-decoration: none;
    padding: 5px 3px;
    border-radius: var(--r-sm);
    transition: var(--ease);
    background: var(--c-bg3);
    border: 1px solid var(--c-line);
    white-space: nowrap;
    text-align: center;
    font-size: 13px;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.cate-list a:hover {
    background: var(--c-red);
    color: var(--c-white);
    border-color: var(--c-red);
}

.cate-list a.active {
    background: var(--c-red);
    color: var(--c-white);
    border-color: var(--c-red);
    font-weight: 600;
}

/* =========================================
   SEARCH BOX
   ========================================= */
.search-wrap {
    background: var(--c-bg2);
    border: 1px solid var(--c-line);
    border-radius: var(--r-base);
    padding: 12px;
    margin-bottom: 14px;
}

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

.search-wrap input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 9px 14px;
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    background: var(--c-bg3);
    color: var(--c-txt);
    font-size: 13px;
    transition: var(--ease);
    outline: none;
}

.search-wrap input[type="text"]:focus {
    border-color: var(--c-red);
    background: var(--c-bg4);
    box-shadow: 0 0 0 3px var(--c-red-glow);
}

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

.search-wrap button {
    padding: 9px 15px;
    border: none;
    border-radius: var(--r-sm);
    background: var(--c-red);
    color: var(--c-white);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
}

.search-wrap button:hover {
    background: var(--c-red-deep);
    box-shadow: 0 4px 12px var(--c-red-glow);
}

/* =========================================
   TAG CLOUD (HOT SEARCHES)
   ========================================= */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    padding: 12px;
    background: var(--c-bg2);
    border-radius: var(--r-base);
    border: 1px solid var(--c-line);
    margin-bottom: 14px;
}

.tag-entry {
    padding: 5px 12px;
    background: var(--c-bg3);
    border-radius: 3px;
    color: var(--c-txt2);
    text-decoration: none;
    font-size: 12px;
    transition: var(--ease);
    border: 1px solid var(--c-line);
}

.tag-entry:hover {
    background: var(--c-red);
    color: var(--c-white);
    border-color: var(--c-red);
}

/* =========================================
   MODULE BLOCKS (SECTION HEADINGS)
   ========================================= */
.module-block {
    margin-bottom: 20px;
}

.module-head {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--c-line);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.module-head::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--c-red);
}

.module-caption {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.2px;
    color: var(--c-white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.module-caption::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--c-red);
    border-radius: 2px;
    flex-shrink: 0;
}

.module-caption a {
    color: var(--c-white);
    text-decoration: none;
    transition: var(--ease);
}

.module-caption a:hover {
    color: var(--c-red);
}

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

.film-grid li {
    position: relative;
    opacity: 0;
    animation: revealUp 0.5s ease forwards;
}

.film-grid li:nth-child(1) { animation-delay: 0.04s; }
.film-grid li:nth-child(2) { animation-delay: 0.08s; }
.film-grid li:nth-child(3) { animation-delay: 0.12s; }
.film-grid li:nth-child(4) { animation-delay: 0.16s; }
.film-grid li:nth-child(5) { animation-delay: 0.20s; }
.film-grid li:nth-child(6) { animation-delay: 0.24s; }
.film-grid li:nth-child(7) { animation-delay: 0.28s; }
.film-grid li:nth-child(8) { animation-delay: 0.32s; }

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

.film-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--r-base);
    aspect-ratio: 12 / 7;
    background: var(--c-bg3);
    border: 1px solid var(--c-line);
}

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

.film-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.film-thumb:hover::after {
    opacity: 1;
}

.film-thumb:hover {
    border-color: var(--c-red);
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.film-meta {
    padding: 7px 0 3px;
}

.film-meta h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.film-meta h5 a {
    color: var(--c-txt2);
    text-decoration: none;
    transition: var(--ease);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.film-meta h5 a:hover {
    color: var(--c-red);
}

/* =========================================
   VIDEO PLAYER
   ========================================= */
.player-wrap {
    width: 100%;
    height: 620px;
    max-height: 620px;
    margin-bottom: 18px;
    background: #000;
    border-radius: var(--r-base);
    overflow: hidden;
    box-shadow: 0 6px 24px var(--c-shadow2);
    position: relative;
    border: 1px solid var(--c-line);
}

.player-wrap iframe,
.player-wrap video,
.player-wrap #video-container {
    width: 100%;
    height: 100%;
    border: none;
}

.MacPlayer {
    background: #000;
    border-radius: var(--r-base);
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 6px 24px var(--c-shadow2);
    border: 1px solid var(--c-line);
}

/* =========================================
   TORRENT PREVIEW
   ========================================= */
.preview-pics {
    width: 100%;
}

.preview-pics img,
.preview-pics .img_item img {
    width: 100%;
    height: auto;
    border-radius: var(--r-sm);
    border: 1px solid var(--c-line);
    display: block;
}

.preview-pics .img_item {
    width: 100%;
}

/* =========================================
   ACTION BUTTONS (DOWNLOAD / TORRENT)
   ========================================= */
.action-bar {
    text-align: center;
    padding: 14px;
    background: var(--c-bg2);
    border-radius: var(--r-base);
    margin: 14px 0;
    border: 1px solid var(--c-line);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.btn-action {
    display: inline-block;
    padding: 10px 22px;
    background: var(--c-red);
    color: var(--c-white);
    text-decoration: none;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 14px;
    transition: var(--ease);
    margin: 0;
    border: 2px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
}

.btn-action:hover {
    background: var(--c-red-deep);
    box-shadow: 0 4px 14px var(--c-red-glow);
}

/* =========================================
   SHARE / LINK PANEL
   ========================================= */
.link-panel {
    background: var(--c-bg2);
    border-radius: var(--r-base);
    padding: 16px;
    margin: 16px 0;
    border: 1px solid var(--c-line);
    display: flex;
    align-items: center;
    gap: 10px;
}

.url-box {
    background: var(--c-bg3);
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

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

.url-text {
    font-size: 12px;
    color: var(--c-txt3);
    word-break: break-all;
    flex: 1;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-copy {
    padding: 10px 20px;
    background: var(--c-red);
    color: var(--c-white);
    border: 2px solid transparent;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-copy:hover {
    background: var(--c-red-deep);
    box-shadow: 0 4px 12px var(--c-red-glow);
}

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

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

.a_page_info,
.page_info_focus {
    display: inline-block;
    padding: 7px 13px;
    border-radius: var(--r-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--ease);
    min-width: 36px;
    text-align: center;
}

.a_page_info {
    background: var(--c-bg2);
    color: var(--c-txt);
    border: 1px solid var(--c-line);
}

.a_page_info:hover {
    background: var(--c-red);
    border-color: var(--c-red);
    color: var(--c-white);
}

.page_info_focus {
    background: var(--c-red);
    color: var(--c-white);
    border: 1px solid var(--c-red);
    cursor: default;
}

/* =========================================
   FRIENDS / EXTERNAL LINKS
   ========================================= */
.friends-link {
    padding: 12px;
    background: var(--c-bg2);
    border-radius: var(--r-base);
    border: 1px solid var(--c-line);
}

.friends-link dl {
    margin: 0;
}

.friends-link dd {
    display: inline-block;
    margin: 3px;
}

.friends-link a {
    color: var(--c-txt2);
    text-decoration: none;
    transition: var(--ease);
    font-size: 13px;
}

.friends-link a:hover {
    color: var(--c-red);
}

.pd5 {
    padding: 3px 6px;
}

/* =========================================
   FOOTER
   ========================================= */
.site-foot {
    padding: 22px 0;
    text-align: center;
    border-top: 1px solid var(--c-line);
    margin-top: 28px;
    background: var(--c-bg2);
}

.site-foot p {
    margin: 6px 0;
    color: var(--c-txt3);
    font-size: 12px;
}

.site-foot a {
    color: var(--c-txt3);
    text-decoration: none;
    transition: var(--ease);
}

.site-foot a:hover {
    color: var(--c-red);
}

.copyright {
    display: block;
}

/* =========================================
   UTILITY
   ========================================= */
.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

.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; }
}

img[data-original] {
    background: var(--c-bg3);
}

/* =========================================
   RESPONSIVE — TABLET / MOBILE ≤768px
   ========================================= */
@media (max-width: 768px) {

    .pg-wrap {
        padding: 0 8px;
    }

    .top-bar {
        padding: 0.5rem 0;
    }

    .brand-group {
        gap: 10px;
    }

    .brand-name {
        font-size: 20px;
    }

    .brand-name::before {
        width: 4px;
        height: 17px;
        margin-right: 6px;
    }

    .mirror-info {
        padding: 4px 10px;
    }

    .mirror-tag {
        font-size: 10px;
    }

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

    .row-gap {
        padding: 8px 0;
    }

    /* NAV MOBILE: compact label + wider links area, 2 rows of 4 */
    .cate-row {
        display: flex;
        align-items: stretch;
    }

    .cate-zone {
        width: auto;
        min-width: 0;
        white-space: nowrap;
        font-size: 12px;
        padding: 6px 5px;
        flex-shrink: 0;
        letter-spacing: 0;
    }

    .cate-list {
        flex: 1;
        min-width: 0;
        font-size: 14px;
        flex-wrap: wrap;
        gap: 4px;
        padding: 6px 5px;
    }

    .cate-list a {
        font-size: 14px;
        padding: 6px 2px;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    /* FILM GRID: 2 columns */
    .film-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

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

    .module-caption {
        font-size: 16px;
    }

    .module-caption::before {
        height: 15px;
    }

    .module-head {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .tag-cloud {
        padding: 9px;
        gap: 5px;
    }

    .tag-entry {
        padding: 4px 10px;
        font-size: 11px;
    }

    .search-wrap {
        padding: 9px;
    }

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

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

    .player-wrap {
        height: 56.25vw;
        max-height: 380px;
        margin-bottom: 12px;
    }

    .action-bar {
        padding: 11px 8px;
        gap: 7px;
    }

    .btn-action {
        padding: 9px 15px;
        font-size: 13px;
    }

    .link-panel {
        padding: 11px;
        gap: 7px;
    }

    .pgn-row {
        padding: 14px 0;
        gap: 4px;
    }

    .a_page_info,
    .page_info_focus {
        padding: 6px 11px;
        font-size: 12px;
        min-width: 32px;
    }

    .site-foot {
        padding: 18px 0;
        margin-top: 18px;
    }
}

/* =========================================
   RESPONSIVE — SMALL MOBILE ≤480px
   ========================================= */
@media (max-width: 480px) {

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

    .cate-zone {
        width: auto;
        min-width: 0;
        font-size: 12px;
        padding: 5px 4px;
        flex-shrink: 0;
    }

    .cate-list {
        flex: 1;
        min-width: 0;
        gap: 3px;
        padding: 5px 4px;
        font-size: 13px;
    }

    .cate-list a {
        font-size: 13px;
        padding: 5px 1px;
        width: calc((100% - 9px) / 4);
    }

    .film-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .film-meta h5 {
        font-size: 11px;
    }

    .module-caption {
        font-size: 14px;
    }

    .player-wrap {
        height: 56.25vw;
        max-height: 280px;
        margin-bottom: 10px;
    }

    .action-bar {
        padding: 9px 4px;
        gap: 5px;
    }

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

    .link-panel {
        padding: 8px;
        gap: 6px;
        flex-wrap: nowrap;
    }

    .url-box {
        padding: 8px 10px;
        gap: 5px;
    }

    .url-tag {
        font-size: 10px;
    }

    .url-text {
        font-size: 10px;
    }

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

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