/* Video Site Template - Bold Yellow & Dark Design */

:root {
    --brand: #f5c518;
    --brand-dark: #e6b800;
    --brand-hover: #ffd700;
    --ink: #1a1a1a;
    --ink-soft: #2d2d2d;
    --ink-muted: #555555;
    --surface: #ffffff;
    --surface-warm: #fffdf0;
    --surface-card: #ffffff;
    --rule: #e8e0c0;
    --rule-light: #f0e8c8;
    --text-main: #1a1a1a;
    --text-sub: #444444;
    --text-muted: #777777;
    --chip-bg: #f5f0e0;
    --radius-lg: 6px;
    --radius-sm: 4px;
    --easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --speed: 0.22s;
    --ink-shadow: rgba(26, 26, 26, 0.1);
    --ink-shadow-lg: rgba(26, 26, 26, 0.18);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', 'Noto Serif SC', serif;
    background: #fafaf5;
    color: var(--text-main);
    line-height: 1.55;
    font-size: 15px;
    overflow-x: hidden;
}

/* ===================== HEADER ===================== */
.site-header {
    background: var(--ink);
    padding: 0.75rem 0;
    border-bottom: 4px solid var(--brand);
}

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

.brand-link {
    text-decoration: none;
    display: inline-block;
    line-height: 1;
}

.brand-name {
    font-size: 26px;
    font-weight: 900;
    color: var(--brand);
    letter-spacing: -0.5px;
    font-family: 'Georgia', serif;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
}

.brand-divider {
    width: 3px;
    height: 28px;
    background: var(--brand);
    opacity: 0.5;
    border-radius: 2px;
    flex-shrink: 0;
}

.domain-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.domain-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(245, 197, 24, 0.15);
    padding: 3px 8px;
    border-radius: 3px;
    border: 1px solid rgba(245, 197, 24, 0.35);
    white-space: nowrap;
    font-family: sans-serif;
}

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

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

.section-gap {
    padding: 10px 0;
}

/* ===================== NAV BLOCK ===================== */
.nav-block {
    background: var(--surface);
    border: 2px solid var(--ink);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 4px 4px 0 var(--ink);
}

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

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

.nav-zone-name {
    font-weight: 800;
    font-size: 13px;
    color: var(--ink);
    background: var(--brand);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    flex-shrink: 0;
    letter-spacing: 0.2px;
    border-right: 2px solid var(--ink);
    font-family: sans-serif;
}

.nav-items {
    font-size: 13px;
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px 10px;
    align-items: center;
    background: var(--surface-warm);
}

.nav-items a {
    display: inline-block;
    color: var(--ink-soft);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--radius-sm);
    transition: background var(--speed) var(--easing), color var(--speed) var(--easing);
    background: var(--surface);
    border: 1.5px solid var(--rule);
    white-space: nowrap;
    text-align: center;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
    font-family: sans-serif;
    font-size: 13px;
}

.nav-items a:hover {
    background: var(--brand);
    color: var(--ink);
    border-color: var(--brand-dark);
    font-weight: 700;
}

.nav-items a.active {
    background: var(--ink);
    color: var(--brand);
    border-color: var(--ink);
    font-weight: 700;
}

/* ===================== SEARCH ===================== */
.search-bar {
    background: var(--surface);
    border: 2px solid var(--ink);
    border-radius: var(--radius-lg);
    padding: 12px 14px;
    margin-bottom: 10px;
    box-shadow: 3px 3px 0 var(--ink);
}

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

.search-bar input[type="text"] {
    flex: 1;
    min-width: 120px;
    padding: 9px 14px;
    border: 2px solid var(--rule);
    border-radius: var(--radius-sm);
    background: var(--surface-warm);
    color: var(--ink);
    font-size: 14px;
    transition: border-color var(--speed);
    outline: none;
    font-family: sans-serif;
}

.search-bar input[type="text"]:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.25);
}

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

.search-bar button {
    padding: 9px 15px;
    border: 2px solid var(--ink);
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: var(--ink);
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: background var(--speed), box-shadow var(--speed);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: sans-serif;
    box-shadow: 2px 2px 0 var(--ink);
}

.search-bar button:hover {
    background: var(--brand-dark);
    box-shadow: 1px 1px 0 var(--ink);
    transform: translate(1px, 1px);
}

/* ===================== TAG CLOUD ===================== */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    padding: 12px 14px;
    background: var(--surface);
    border: 2px solid var(--ink);
    border-radius: var(--radius-lg);
    margin-bottom: 10px;
    box-shadow: 3px 3px 0 var(--ink);
}

.tag-item {
    padding: 5px 13px;
    background: var(--chip-bg);
    border-radius: 3px;
    color: var(--text-sub);
    text-decoration: none;
    font-size: 13px;
    transition: all var(--speed) var(--easing);
    border: 1.5px solid var(--rule);
    font-family: sans-serif;
}

.tag-item:hover {
    background: var(--brand);
    color: var(--ink);
    border-color: var(--brand-dark);
    font-weight: 700;
}

/* ===================== SECTION BLOCK ===================== */
.film-block {
    margin-bottom: 14px;
}

.film-block-head {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2.5px solid var(--ink);
    display: flex;
    align-items: center;
    gap: 10px;
}

.film-block-head::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 22px;
    background: var(--brand);
    border-radius: 2px;
    flex-shrink: 0;
    border: 2px solid var(--ink);
}

.film-block-title {
    font-size: 19px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.2px;
    color: var(--ink);
    font-family: sans-serif;
}

.film-block-title a {
    color: var(--ink);
    text-decoration: none;
    transition: color var(--speed);
}

.film-block-title a:hover {
    color: var(--brand-dark);
}

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

.film-grid li {
    animation: revealUp 0.5s var(--easing) 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(20px); }
    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(--chip-bg);
    border: 2px solid var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
    transition: box-shadow var(--speed), transform var(--speed);
}

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

.film-thumb:hover {
    box-shadow: 5px 5px 0 var(--ink);
    transform: translate(-1px, -1px);
}

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

.film-thumb::after {
    content: '▶';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--brand);
    background: rgba(26, 26, 26, 0.55);
    opacity: 0;
    transition: opacity 0.25s;
}

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

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

.film-meta h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    font-family: sans-serif;
}

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

.film-meta h5 a:hover {
    color: var(--brand-dark);
}

/* ===================== VIDEO PLAYER ===================== */
.MacPlayer {
    background: #000;
    border: 2px solid var(--ink);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 5px 5px 0 var(--ink);
}

.video-player-wrap {
    width: 100%;
    height: 640px;
    max-height: 640px;
    margin-bottom: 14px;
    background: #000;
    border: 2px solid var(--ink);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 5px 5px 0 var(--ink);
    position: relative;
}

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

/* ===================== TORRENT CAPTURE ===================== */
.capture-zone {
    /* empty intentional */
}

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

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

/* ===================== DOWNLOAD BUTTONS ===================== */
.action-row {
    text-align: center;
    padding: 14px;
    background: var(--surface-warm);
    border: 2px solid var(--ink);
    border-radius: var(--radius-lg);
    margin: 12px 0;
    box-shadow: 3px 3px 0 var(--ink);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.action-btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--brand);
    color: var(--ink);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 14px;
    transition: all var(--speed) var(--easing);
    border: 2px solid var(--ink);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: sans-serif;
    box-shadow: 2px 2px 0 var(--ink);
    cursor: pointer;
}

.action-btn:hover {
    background: var(--brand-dark);
    box-shadow: none;
    transform: translate(2px, 2px);
}

/* ===================== SHARE SECTION ===================== */
.link-share {
    background: var(--surface);
    border: 2px solid var(--ink);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    margin: 14px 0;
    box-shadow: 3px 3px 0 var(--ink);
    display: flex;
    align-items: center;
    gap: 10px;
}

.link-display-area {
    background: var(--surface-warm);
    border: 1.5px solid var(--rule);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.link-caption {
    font-weight: 800;
    font-size: 12px;
    color: var(--ink);
    white-space: nowrap;
    flex-shrink: 0;
    background: var(--brand);
    padding: 2px 8px;
    border-radius: 2px;
    font-family: sans-serif;
}

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

.link-copy-btn {
    padding: 10px 18px;
    background: var(--ink);
    color: var(--brand);
    border: 2px solid var(--ink);
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: all var(--speed);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: sans-serif;
}

.link-copy-btn:hover {
    background: var(--brand);
    color: var(--ink);
    box-shadow: none;
}

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

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

.pager-link,
.pager-current {
    display: inline-block;
    padding: 7px 13px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: all var(--speed);
    min-width: 36px;
    text-align: center;
    font-family: sans-serif;
}

.pager-link {
    background: var(--surface);
    color: var(--ink);
    border: 2px solid var(--ink);
    box-shadow: 2px 2px 0 var(--ink);
}

.pager-link:hover {
    background: var(--brand);
    border-color: var(--ink);
    box-shadow: none;
    transform: translate(1px, 1px);
}

.pager-current {
    background: var(--ink);
    color: var(--brand);
    border: 2px solid var(--ink);
    cursor: default;
}

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

.site-footer p {
    margin: 7px 0;
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    font-family: sans-serif;
}

.site-footer a {
    color: var(--brand);
    text-decoration: none;
    transition: opacity var(--speed);
}

.site-footer a:hover {
    opacity: 0.75;
}

/* ===================== FRIENDLY LINKS ===================== */
.flinks-box {
    padding: 12px 14px;
    background: var(--surface);
    border: 2px solid var(--ink);
    border-radius: var(--radius-lg);
    box-shadow: 3px 3px 0 var(--ink);
}

.flinks-box dl {
    margin: 0;
}

.flinks-box dd {
    display: inline-block;
    margin: 4px;
}

.flinks-box a {
    color: var(--text-sub);
    text-decoration: none;
    transition: color var(--speed);
    font-family: sans-serif;
    font-size: 13px;
}

.flinks-box a:hover {
    color: var(--brand-dark);
}

/* ===================== INFO HEADER (torrent/video page) ===================== */
.entry-banner {
    line-height: 1.8;
    text-align: center;
    padding: 18px 20px;
    font-size: 17px;
    margin: 14px 0;
    word-break: break-all;
    background: var(--surface);
    border: 2px solid var(--ink);
    border-radius: var(--radius-lg);
    box-shadow: 4px 4px 0 var(--ink);
}

.entry-banner a {
    color: var(--brand-dark);
    text-decoration: none;
    font-weight: 800;
    margin-right: 8px;
    font-family: sans-serif;
}

.entry-details {
    font-size: 15px;
    line-height: 1.9;
    padding: 20px 24px;
    background: var(--surface);
    border: 2px solid var(--ink);
    border-radius: var(--radius-lg);
    margin: 14px 0;
    box-shadow: 4px 4px 0 var(--ink);
    font-family: sans-serif;
}

/* ===================== UTILITY ===================== */
.hide-mobile { display: block; }
.hide-pc     { display: block; }

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

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

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
    .film-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .wrap { padding: 0 8px; }

    .site-header-inner {
        gap: 10px;
    }

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

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

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

    .section-gap { padding: 6px 0; }

    /* Mobile nav: label 15%, links 85% */
    .nav-strip {
        display: flex;
        align-items: stretch;
    }

    .nav-zone-name {
        width: 15%;
        font-size: 10px;
        padding: 8px 3px;
        letter-spacing: 0;
        word-break: break-all;
        line-height: 1.3;
    }

    .nav-items {
        width: 85%;
        font-size: 12px;
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        padding: 7px 5px;
    }

    .nav-items a {
        padding: 4px 2px;
        font-size: 12px;
        text-align: center;
        /* 4 per row, 2 rows = 8 total */
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

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

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

    .action-row {
        padding: 10px 6px;
        gap: 7px;
    }

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

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

    .link-share {
        padding: 10px 12px;
        gap: 7px;
    }

    .link-caption { font-size: 11px; }
    .link-value   { font-size: 10px; }

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

    .hide-mobile { display: none !important; }
}

@media (max-width: 540px) {
    .nav-zone-name {
        width: 15%;
        font-size: 10px;
    }

    .nav-items {
        width: 85%;
        gap: 3px;
        padding: 6px 3px;
    }

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

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

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

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

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

    .link-share {
        flex-wrap: nowrap;
        padding: 8px;
    }
}

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

    .nav-items a {
        width: calc((100% - 35px) / 8);
    }
}
