/* Film & Media Portal - Clean Professional Theme */

:root {
    --clr-accent: #2563eb;
    --clr-accent-deep: #1d4ed8;
    --clr-highlight: #f97316;
    --clr-highlight-dark: #ea6b0c;
    --clr-text: #1e293b;
    --clr-text-sub: #475569;
    --clr-text-muted: #94a3b8;
    --clr-surface: #ffffff;
    --clr-base: #f1f5f9;
    --clr-card: #ffffff;
    --clr-border: #e2e8f0;
    --clr-border-light: #f1f5f9;
    --clr-shadow: rgba(15, 23, 42, 0.07);
    --clr-shadow-md: rgba(15, 23, 42, 0.13);
    --clr-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #f97316 100%);
    --clr-gradient-btn: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --radius-xs: 4px;
    --radius-sm: 7px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --ease: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    background: var(--clr-base);
    color: var(--clr-text);
    line-height: 1.55;
    font-size: 14px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== SITE HEADER ===== */
.site-header {
    background: var(--clr-surface);
    border-bottom: 1px solid var(--clr-border);
    padding: 0.55rem 0;
    box-shadow: 0 1px 6px var(--clr-shadow);
}

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

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

.brand-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.brand-name {
    font-size: 26px;
    font-weight: 800;
    background: var(--clr-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
}

.latest-domain {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
    border: 1.5px solid rgba(37, 99, 235, 0.3);
    border-radius: 6px;
    padding: 5px 12px;
}

.latest-domain .lbl-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--clr-accent);
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.latest-domain .lbl-url {
    font-size: 15px;
    font-weight: 700;
    color: var(--clr-text);
    letter-spacing: 0.2px;
}

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

.sec-pad {
    padding: 10px 0;
}

/* ===== CATEGORY NAVIGATION ===== */
.cat-nav-box {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 1px 5px var(--clr-shadow);
}

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

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

.cat-zone-label {
    font-weight: 700;
    font-size: 13px;
    color: var(--clr-surface);
    background: var(--clr-accent);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 5px;
    flex-shrink: 0;
    letter-spacing: 0.2px;
}

.cat-link-zone {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px 10px;
    align-items: center;
    background: var(--clr-surface);
}

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

.cat-link-zone a:hover,
.cat-link-zone a.active {
    background: var(--clr-accent);
    color: #fff;
    border-color: var(--clr-accent);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    font-weight: 600;
}

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

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

.search-bar-wrap input[type="text"] {
    flex: 1;
    min-width: 80px;
    padding: 9px 13px;
    border: 1.5px solid var(--clr-border);
    border-radius: var(--radius-sm);
    background: var(--clr-base);
    color: var(--clr-text);
    font-size: 14px;
    outline: none;
    transition: var(--ease);
    font-family: inherit;
}

.search-bar-wrap input[type="text"]:focus {
    border-color: var(--clr-accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

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

.search-bar-wrap button:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ===== HOT TAGS ===== */
.hot-tags-panel {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 11px 12px;
    background: var(--clr-surface);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    border: 1px solid var(--clr-border);
    box-shadow: 0 1px 5px var(--clr-shadow);
}

.hot-tags-panel a {
    padding: 5px 12px;
    background: var(--clr-base);
    border-radius: 20px;
    color: var(--clr-text-sub);
    text-decoration: none;
    font-size: 13px;
    transition: var(--ease);
    border: 1px solid var(--clr-border);
}

.hot-tags-panel a:hover {
    background: var(--clr-highlight);
    color: #fff;
    border-color: var(--clr-highlight);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.2);
}

/* ===== SECTION BLOCKS ===== */
.module-block {
    margin-bottom: 14px;
}

.module-head {
    margin-bottom: 12px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--clr-border);
    position: relative;
}

.module-head::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--clr-gradient);
    border-radius: 2px;
}

.module-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--clr-text);
    letter-spacing: -0.3px;
}

.module-title a {
    color: var(--clr-text);
    text-decoration: none;
    transition: var(--ease);
}

.module-title a:hover {
    color: var(--clr-accent);
}

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

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

.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(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

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

.film-thumb:hover {
    box-shadow: 0 6px 20px var(--clr-shadow-md);
}

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

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

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

.film-meta {
    padding: 8px 0 2px;
}

.film-meta h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--clr-text);
}

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

.film-meta h5 a:hover {
    color: var(--clr-accent);
}

/* ===== VIDEO PLAYER ===== */
.player-wrap {
    width: 100%;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 4px 18px var(--clr-shadow-md);
    height: 600px;
    max-height: 600px;
    position: relative;
}

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

.MacPlayer {
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 5px 20px var(--clr-shadow-md);
}

/* ===== TORRENT CAPTURE ===== */
.capture-zone {
    width: 100%;
}

.capture-zone img,
.capture-zone .img_item img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--clr-border);
    display: block;
}

.capture-zone .img_item {
    width: 100%;
}

/* ===== DOWNLOAD BUTTONS ===== */
.action-btns {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 14px;
    background: var(--clr-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
    box-shadow: 0 1px 5px var(--clr-shadow);
    margin: 14px 0;
}

.btn-dl {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: var(--clr-gradient-btn);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--ease);
    border: none;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.2px;
}

.btn-dl:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 5px 14px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.btn-dl:active {
    transform: translateY(0);
}

/* ===== SHARE SECTION ===== */
.share-strip {
    background: var(--clr-surface);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin: 14px 0;
    border: 1px solid var(--clr-border);
    box-shadow: 0 1px 5px var(--clr-shadow);
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-url-box {
    background: var(--clr-base);
    border: 1.5px solid var(--clr-border);
    border-radius: var(--radius-sm);
    padding: 10px 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

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

.share-addr {
    font-size: 12px;
    color: var(--clr-text-sub);
    word-break: break-all;
    flex: 1;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.share-copy-btn {
    padding: 10px 18px;
    background: var(--clr-gradient-btn);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

.share-copy-btn:hover {
    box-shadow: 0 5px 14px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.share-copy-btn:active {
    transform: translateY(0);
}

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

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

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

.pg-link:hover {
    background: var(--clr-accent);
    border-color: var(--clr-accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.pg-current {
    background: var(--clr-accent);
    color: #fff;
    border: 1px solid var(--clr-accent);
    cursor: default;
    display: inline-block;
    padding: 7px 13px;
    border-radius: var(--radius-xs);
    font-weight: 700;
    font-size: 13px;
    min-width: 36px;
    text-align: center;
}

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

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

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

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

/* ===== FRIEND LINKS ===== */
.links-grid {
    padding: 11px;
    background: var(--clr-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
}

.links-grid dl {
    margin: 0;
}

.links-grid dd {
    display: inline-block;
    margin: 3px;
}

.links-grid a {
    color: var(--clr-accent);
    text-decoration: none;
    transition: var(--ease);
    font-size: 13px;
}

.links-grid a:hover {
    color: var(--clr-highlight);
}

/* ===== DETAIL PAGE INFO BOX ===== */
.detail-title-bar {
    line-height: 1.8;
    text-align: center;
    padding: 16px 20px;
    font-size: 17px;
    margin: 14px 0;
    word-break: break-all;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(124, 58, 237, 0.06) 100%);
    border-radius: var(--radius-md);
    border: 1px solid rgba(37, 99, 235, 0.15);
}

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

.detail-title-bar a:hover {
    color: var(--clr-accent-deep);
}

.detail-info-box {
    font-size: 15px;
    line-height: 1.85;
    padding: 20px 22px;
    background: var(--clr-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
    margin: 14px 0;
    box-shadow: 0 1px 5px var(--clr-shadow);
}

/* ===== HIDE UTILS ===== */
.pc-only {
    display: block;
}

.mobile-only {
    display: block;
}

@media (max-width: 768px) {
    .pc-only {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

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

/* ===== LAZY LOAD PLACEHOLDER ===== */
img[data-original] {
    background: var(--clr-base);
}

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

/* Large phones: 481px ~ 768px */
@media (min-width: 481px) and (max-width: 768px) {
    .wrap {
        padding: 0 10px;
    }

    .sec-pad {
        padding: 8px 0;
    }

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

    .latest-domain .lbl-tag {
        font-size: 10px;
    }

    .latest-domain .lbl-url {
        font-size: 14px;
    }

    /* 导航: 左15% 区域名称, 右85% 链接 */
    .cat-zone-label {
        width: 15%;
        font-size: 10px;
        padding: 7px 2px;
    }

    .cat-link-zone {
        width: 85%;
        gap: 4px;
        padding: 7px 6px;
        font-size: 13px;
    }

    .cat-link-zone a {
        font-size: 13px;
        padding: 4px 2px;
        width: calc((100% - 12px) / 4);
    }

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

    .search-bar-wrap button {
        padding: 9px 10px;
        font-size: 12px;
    }

    .player-wrap {
        height: 56.25vw;
        max-height: 400px;
    }
}

/* Small phones: <= 480px */
@media (max-width: 480px) {
    .wrap {
        padding: 0 8px;
    }

    .sec-pad {
        padding: 7px 0;
    }

    .site-header {
        padding: 0.45rem 0;
    }

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

    .latest-domain .lbl-tag {
        font-size: 10px;
    }

    .latest-domain .lbl-url {
        font-size: 13px;
    }

    /* 导航: 左15% 区域名称, 右85% 链接, 每行4个 */
    .cat-zone-label {
        width: 15%;
        font-size: 10px;
        padding: 6px 2px;
    }

    .cat-link-zone {
        width: 85%;
        gap: 3px;
        padding: 6px 4px;
    }

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

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

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

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

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

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

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

    .action-btns {
        gap: 6px;
        padding: 10px 8px;
    }

    .share-strip {
        padding: 10px;
        gap: 7px;
        flex-wrap: nowrap;
    }

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

    .share-tag {
        font-size: 11px;
    }

    .share-addr {
        font-size: 10px;
    }

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

    .player-wrap {
        height: 56.25vw;
        max-height: 300px;
    }

    .pg-link, .pg-current {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 30px;
    }
}
