/* Film & Media Website Template - Oxford Deep Navy Design */

:root {
    --primary: #c0392b;
    --primary-hover: #e74c3c;
    --accent-blue: #2980b9;
    --accent-light: #3498db;
    --navy: #0d1b2e;
    --navy-mid: #162032;
    --navy-card: #1a2840;
    --navy-border: #243450;
    --text-main: #e8edf5;
    --text-sub: #9daec4;
    --text-muted: #6b7f99;
    --line-color: #2a3d5c;
    --highlight: #e74c3c;
    --btn-grad: linear-gradient(135deg, #c0392b 0%, #2980b9 100%);
    --card-shadow: 0 4px 18px rgba(0,0,0,0.35);
    --hover-shadow: 0 8px 28px rgba(0,0,0,0.5);
    --corner: 7px;
    --corner-sm: 5px;
    --speed: all 0.28s ease;
    --page-bg: #0a1520;
    --section-bg: #111e30;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', Arial, sans-serif;
    background: var(--page-bg);
    color: var(--text-main);
    line-height: 1.55;
    font-size: 15px;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== Top Header Bar ===== */
.site-header-bar {
    background: linear-gradient(180deg, #0d1b2e 0%, #111e30 100%);
    border-bottom: 1px solid var(--navy-border);
    padding: 10px 0;
}

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

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

.site-title-text {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    border-bottom: none;
    font-style: normal;
    text-shadow: 0 0 20px rgba(192, 57, 43, 0.5);
}

.site-domain-block {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(41, 128, 185, 0.15);
    border: 1px solid rgba(41, 128, 185, 0.4);
    border-radius: 4px;
    padding: 5px 14px;
}

.domain-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-light);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.domain-address {
    font-size: 17px;
    font-weight: 700;
    color: #f0c040;
    letter-spacing: 0.5px;
    font-family: 'Courier New', monospace;
}

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

.content {
    padding: 10px 0;
}

/* ===== Navigation Block ===== */
.cat-nav-block {
    background: var(--navy-card);
    border-radius: var(--corner);
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid var(--navy-border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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

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

.cat-nav-row .zone-label {
    font-weight: 700;
    font-size: 13px;
    color: var(--accent-light);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    border-right: 1px solid var(--navy-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    flex-shrink: 0;
    background: rgba(41,128,185,0.08);
}

.cat-nav-row .zone-links {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 10px;
    align-items: center;
}

.cat-nav-row .zone-links a {
    display: inline-block;
    color: var(--text-sub);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--corner-sm);
    transition: var(--speed);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--navy-border);
    white-space: nowrap;
    text-align: center;
    font-size: 13px;
    width: calc((100% - 42px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.cat-nav-row .zone-links a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(192,57,43,0.4);
}

.cat-nav-row .zone-links a.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(192,57,43,0.4);
}

/* ===== Search Box ===== */
.search-wrap {
    background: var(--navy-card);
    border-radius: var(--corner);
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--navy-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.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 13px;
    border: 1px solid var(--navy-border);
    border-radius: var(--corner-sm);
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    font-size: 14px;
    transition: var(--speed);
    outline: none;
}

.search-wrap input[type="text"]:focus {
    border-color: var(--accent-light);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 2px rgba(52,152,219,0.2);
}

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

.search-wrap button {
    padding: 9px 14px;
    border: none;
    border-radius: var(--corner-sm);
    background: var(--btn-grad);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--speed);
    white-space: nowrap;
    flex-shrink: 0;
}

.search-wrap button:hover {
    opacity: 0.88;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ===== Hot Tags ===== */
.tag-cloud-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    padding: 10px 12px;
    background: var(--navy-card);
    border-radius: var(--corner);
    margin-bottom: 10px;
    border: 1px solid var(--navy-border);
}

.tag-cloud-item {
    padding: 5px 13px;
    background: rgba(255,255,255,0.05);
    border-radius: 14px;
    color: var(--text-sub);
    text-decoration: none;
    font-size: 13px;
    transition: var(--speed);
    border: 1px solid var(--navy-border);
}

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

/* ===== Section Headings ===== */
.media-section {
    margin-bottom: 16px;
}

.section-header-bar {
    margin-bottom: 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--navy-border);
    position: relative;
}

.section-header-bar::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.section-heading {
    font-size: 19px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.2px;
    color: var(--text-main);
}

.section-heading a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--speed);
}

.section-heading a:hover {
    color: var(--primary);
}

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

.film-grid li {
    position: relative;
    animation: fadeUp 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 fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.film-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--corner);
    aspect-ratio: 600 / 350;
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

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

.film-thumb:hover {
    box-shadow: var(--hover-shadow);
    border-color: rgba(192,57,43,0.5);
}

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

.film-thumb::before {
    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;
    z-index: 1;
}

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

.film-caption {
    padding: 8px 0;
}

.film-caption h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-sub);
}

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

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

/* ===== Video Player ===== */
.video-container {
    width: 100%;
    height: 640px;
    max-height: 640px;
    margin-bottom: 16px;
    background: #000;
    border-radius: var(--corner);
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.5);
    position: relative;
}

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

.MacPlayer {
    background: #000;
    border-radius: var(--corner);
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.5);
}

/* ===== Torrent Preview Image ===== */
.torrent-capture-grid {
    width: 100%;
}

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

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

.torrent-capture-grid .img_item {
    width: 100%;
}

/* ===== Download / Action Buttons ===== */
.dl-action-bar {
    text-align: center;
    padding: 14px;
    background: var(--navy-card);
    border-radius: var(--corner);
    margin: 14px 0;
    border: 1px solid var(--navy-border);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.action-btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--btn-grad);
    color: #fff;
    text-decoration: none;
    border-radius: var(--corner-sm);
    font-weight: 600;
    font-size: 14px;
    transition: var(--speed);
    margin: 0;
    border: 1px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
}

.action-btn:hover {
    opacity: 0.85;
    box-shadow: 0 5px 16px rgba(0,0,0,0.4);
    transform: translateY(-1px);
}

/* ===== Share Section ===== */
.share-section {
    background: var(--navy-card);
    border-radius: var(--corner);
    padding: 16px;
    margin: 16px 0;
    border: 1px solid var(--navy-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-url-display {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--navy-border);
    border-radius: var(--corner-sm);
    padding: 10px 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

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

.share-url {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    word-break: break-all;
    flex: 1;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-copy-btn {
    padding: 10px 20px;
    background: var(--btn-grad);
    color: #fff;
    border: none;
    border-radius: var(--corner-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--speed);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.share-copy-btn:hover {
    opacity: 0.85;
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

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

/* ===== Pagination ===== */
.page_info_div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    padding: 16px 0;
}

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

.a_page_info {
    background: var(--navy-card);
    color: var(--text-sub);
    border: 1px solid var(--navy-border);
}

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

.page_info_focus {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
    cursor: default;
}

/* ===== Footer ===== */
.page-footer-section {
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--navy-border);
    margin-top: 20px;
    background: var(--navy-card);
}

.page-footer-section p {
    margin: 6px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.page-footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--speed);
}

.page-footer-section a:hover {
    color: var(--primary-hover);
}

/* ===== Friendly Links ===== */
.friend-links-wrap {
    padding: 10px;
    background: var(--navy-card);
    border-radius: var(--corner);
    border: 1px solid var(--navy-border);
}

.friend-links-wrap dl {
    margin: 0;
}

.friend-links-wrap dd {
    display: inline-block;
    margin: 3px 4px;
}

.friend-links-wrap a {
    color: var(--accent-light);
    text-decoration: none;
    font-size: 13px;
    transition: var(--speed);
}

.friend-links-wrap a:hover {
    color: var(--primary-hover);
}

.pd5 {
    padding: 3px 0;
    display: inline-block;
}

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

img[data-original] {
    background: var(--navy-card);
}

/* ===== Hide Utilities ===== */
.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;
    }
}

/* ===== Responsive: Tablet / Large Phone (481px - 768px) ===== */
@media (max-width: 768px) {

    .container {
        padding: 0 8px;
    }

    .content {
        padding: 8px 0;
    }

    .site-header-bar {
        padding: 8px 0;
    }

    .site-title-text {
        font-size: 20px;
    }

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

    .domain-address {
        font-size: 15px;
    }

    /* Mobile Nav: label 15% + links 85%, 8 items in 2 rows of 4 */
    .cat-nav-row .zone-label {
        width: 15%;
        font-size: 10px;
        padding: 8px 3px;
        text-align: center;
    }

    .cat-nav-row .zone-links {
        width: 85%;
        gap: 4px;
        padding: 6px 5px;
        font-size: 13px;
    }

    .cat-nav-row .zone-links a {
        padding: 5px 2px;
        font-size: 13px;
        text-align: center;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

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

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

    /* 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;
    }

    .section-heading {
        font-size: 17px;
    }

    .tag-cloud-list {
        gap: 5px;
        padding: 8px 10px;
    }

    .tag-cloud-item {
        padding: 4px 10px;
        font-size: 12px;
    }

    .dl-action-bar {
        padding: 10px 8px;
        margin: 10px 0;
        gap: 7px;
    }

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

    .share-section {
        padding: 10px;
        margin: 12px 0;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .share-url-display {
        padding: 8px 10px;
        flex: 1;
        min-width: 0;
    }

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

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

    .share-copy-btn {
        padding: 9px 11px;
        font-size: 12px;
        flex-shrink: 0;
    }

    .video-container {
        height: 56.25vw;
        max-height: 400px;
        margin-bottom: 12px;
    }

    .page_info_div {
        padding: 12px 0;
        gap: 4px;
    }

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

/* ===== Responsive: Small Phone (max 480px) ===== */
@media (max-width: 480px) {

    .site-title-text {
        font-size: 18px;
    }

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

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

    .cat-nav-row .zone-label {
        width: 15%;
        font-size: 10px;
        padding: 6px 2px;
    }

    .cat-nav-row .zone-links {
        width: 85%;
        gap: 3px;
        padding: 5px 3px;
    }

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

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

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

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

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

    .section-heading {
        font-size: 16px;
    }

    .video-container {
        height: 56.25vw;
        max-height: 280px;
        margin-bottom: 10px;
    }

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

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

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

/* ===== PC: ensure 4 columns stay ===== */
@media (min-width: 769px) {
    .film-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
