/* Film Media - Dark Editorial Style */

:root {
    --clr-accent: #e8b423;
    --clr-accent-dark: #c99a10;
    --clr-accent2: #3a86c8;
    --clr-bg: #0f1117;
    --clr-bg2: #181c25;
    --clr-bg3: #1e2330;
    --clr-surface: #242937;
    --clr-border: #2e3444;
    --clr-text: #e2e6f0;
    --clr-text-muted: #8a91a8;
    --clr-text-dim: #5c6278;
    --clr-white: #ffffff;
    --clr-danger: #e63c3c;
    --radius-xs: 3px;
    --radius-sm: 5px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --trans: all 0.25s var(--ease);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.55;
    font-size: 15px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===================== HEADER ===================== */
.site-header {
    background: var(--clr-bg2);
    border-bottom: 2px solid var(--clr-accent);
    padding: 10px 0;
}

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

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

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

.brand-title {
    font-family: 'Georgia', serif;
    font-size: 30px;
    font-weight: 700;
    font-style: normal;
    color: var(--clr-accent);
    letter-spacing: 1px;
    line-height: 1;
    text-decoration: none;
    border-bottom: none;
}

.brand-separator {
    width: 1px;
    height: 28px;
    background: var(--clr-border);
    flex-shrink: 0;
}

.domain-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.domain-tag {
    font-family: 'Georgia', serif;
    font-size: 10px;
    font-weight: 700;
    font-style: normal;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

.domain-val {
    font-family: 'Courier New', 'Lucida Console', monospace;
    font-size: 17px;
    font-weight: 700;
    color: var(--clr-accent);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

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

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

/* ===================== NAVIGATION ===================== */
.nav-panel {
    background: var(--clr-bg2);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 10px;
}

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

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

.zone-tag {
    font-family: 'Georgia', serif;
    font-size: 14px;
    font-weight: 700;
    font-style: normal;
    color: var(--clr-bg2);
    background: var(--clr-accent);
    white-space: nowrap;
    width: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    flex-shrink: 0;
    text-align: center;
    letter-spacing: 0.3px;
}

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

.zone-links a {
    display: inline-block;
    color: var(--clr-text-muted);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--radius-xs);
    transition: var(--trans);
    background: var(--clr-bg2);
    border: 1px solid var(--clr-border);
    white-space: nowrap;
    text-align: center;
    font-family: 'Georgia', serif;
    font-size: 13px;
    font-style: normal;
    width: calc((100% - 42px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.zone-links a:hover {
    background: var(--clr-accent);
    color: var(--clr-bg);
    border-color: var(--clr-accent);
    box-shadow: 0 2px 8px rgba(232, 180, 35, 0.3);
}

.zone-links a.active {
    background: var(--clr-accent);
    color: var(--clr-bg);
    border-color: var(--clr-accent);
    font-weight: 700;
}

/* ===================== SEARCH ===================== */
.search-module {
    background: var(--clr-bg2);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 10px;
}

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

.search-module input[type="text"] {
    flex: 1;
    min-width: 80px;
    padding: 10px 14px;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    background: var(--clr-bg3);
    color: var(--clr-text);
    font-family: 'Georgia', serif;
    font-size: 14px;
    outline: none;
    transition: var(--trans);
}

.search-module input[type="text"]:focus {
    border-color: var(--clr-accent);
    background: var(--clr-bg);
    box-shadow: 0 0 0 2px rgba(232, 180, 35, 0.15);
}

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

.search-module button {
    padding: 10px 14px;
    border: 1px solid var(--clr-accent);
    border-radius: var(--radius-sm);
    background: var(--clr-accent);
    color: var(--clr-bg);
    font-family: 'Georgia', serif;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--trans);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.search-module button:hover {
    background: var(--clr-accent-dark);
    border-color: var(--clr-accent-dark);
}

/* ===================== HOT TAGS ===================== */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    padding: 12px;
    background: var(--clr-bg2);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}

.tag-cloud-item {
    padding: 5px 12px;
    background: var(--clr-bg3);
    border-radius: var(--radius-sm);
    color: var(--clr-text-muted);
    text-decoration: none;
    font-family: 'Georgia', serif;
    font-size: 13px;
    transition: var(--trans);
    border: 1px solid var(--clr-border);
}

.tag-cloud-item:hover {
    background: var(--clr-accent);
    color: var(--clr-bg);
    border-color: var(--clr-accent);
}

/* ===================== SECTION HEADINGS ===================== */
.media-block {
    margin-bottom: 18px;
}

.media-block-head {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--clr-border);
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.media-block-head::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--clr-accent);
}

.media-block-title {
    font-family: 'Georgia', serif;
    font-size: 19px;
    font-weight: 700;
    font-style: normal;
    margin: 0;
    color: var(--clr-white);
    letter-spacing: 0.2px;
}

.media-block-title a {
    color: var(--clr-white);
    text-decoration: none;
    transition: var(--trans);
}

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

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

.card-grid li {
    position: relative;
}

.card-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    aspect-ratio: 600 / 350;
    background: var(--clr-bg3);
    border: 1px solid var(--clr-border);
}

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

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

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

.card-thumb:hover::after {
    opacity: 0.9;
}

.card-thumb::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    color: rgba(255,255,255,0.9);
    font-size: 22px;
    z-index: 2;
    opacity: 0;
    transition: all 0.25s ease;
}

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

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

.card-caption h5 {
    margin: 0;
    font-family: 'Georgia', serif;
    font-size: 13px;
    font-weight: 700;
    font-style: normal;
    line-height: 1.4;
}

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

.card-caption h5 a:hover {
    color: var(--clr-accent);
}

/* ===================== VIDEO PLAYER ===================== */
.player-wrap {
    width: 100%;
    margin-bottom: 18px;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

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

/* ===================== DETAIL TITLE ===================== */
.detail-title-bar {
    line-height: 1.7;
    text-align: center;
    padding: 18px 20px;
    font-size: 17px;
    margin: 14px 0;
    word-break: break-all;
    background: var(--clr-bg2);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
}

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

/* ===================== TORRENT INFO ===================== */
.torrent-info-box {
    font-family: 'Georgia', serif;
    font-size: 15px;
    font-style: normal;
    line-height: 1.9;
    padding: 22px 24px;
    background: var(--clr-bg2);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    margin: 14px 0;
    color: var(--clr-text);
}

.torrent-preview-wrap {
    margin-top: 14px;
}

.torrent-preview-wrap picture,
.torrent-preview-wrap picture img {
    display: block;
    width: 100%;
}

.torrent-preview-wrap img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--clr-border);
    display: block;
}

/* ===================== DOWNLOAD BUTTONS ===================== */
.btn-group {
    text-align: center;
    padding: 18px 14px;
    background: var(--clr-bg2);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    margin: 14px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
}

.action-btn {
    display: inline-block;
    padding: 11px 22px;
    background: var(--clr-accent);
    color: var(--clr-bg);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-family: 'Georgia', serif;
    font-weight: 700;
    font-size: 14px;
    transition: var(--trans);
    margin: 0;
    border: 2px solid var(--clr-accent);
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.action-btn:hover {
    background: var(--clr-accent-dark);
    border-color: var(--clr-accent-dark);
    box-shadow: 0 4px 14px rgba(232, 180, 35, 0.35);
}

/* ===================== SHARE SECTION ===================== */
.link-share-panel {
    background: var(--clr-bg2);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin: 14px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.link-label-text {
    font-family: 'Georgia', serif;
    font-weight: 700;
    font-size: 12px;
    color: var(--clr-accent);
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.link-copy-btn {
    padding: 10px 20px;
    background: var(--clr-accent);
    color: var(--clr-bg);
    border: 2px solid var(--clr-accent);
    border-radius: var(--radius-sm);
    font-family: 'Georgia', serif;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--trans);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.link-copy-btn:hover {
    background: var(--clr-accent-dark);
    border-color: var(--clr-accent-dark);
    box-shadow: 0 4px 14px rgba(232, 180, 35, 0.3);
}

.link-copy-btn:active {
    transform: scale(0.97);
}

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

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

.pg-link {
    display: inline-block;
    padding: 7px 13px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-family: 'Georgia', serif;
    font-size: 13px;
    font-weight: 700;
    transition: var(--trans);
    min-width: 36px;
    text-align: center;
    background: var(--clr-bg2);
    color: var(--clr-text);
    border: 1px solid var(--clr-border);
}

.pg-link:hover {
    background: var(--clr-accent);
    border-color: var(--clr-accent);
    color: var(--clr-bg);
}

.pg-current {
    background: var(--clr-accent);
    color: var(--clr-bg);
    border: 1px solid var(--clr-accent);
    cursor: default;
}

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

.site-footer p {
    margin: 6px 0;
    color: var(--clr-text-dim);
    font-family: 'Georgia', serif;
    font-size: 13px;
}

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

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

.friend-links-wrap {
    padding: 12px;
    background: var(--clr-bg2);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
}

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

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

.friend-links-wrap a {
    color: var(--clr-text-muted);
    text-decoration: none;
    font-family: 'Georgia', serif;
    font-size: 13px;
    transition: var(--trans);
}

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

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

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

.vis-pc {
    display: block;
}

.vis-mob {
    display: block;
}

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

/* ===================== RESPONSIVE - TABLET ===================== */
@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

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

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

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

    .brand-separator {
        height: 22px;
    }

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

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

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

    /* Mobile nav: label 15% + links 85%, 2 rows of 4 */
    .nav-zone {
        display: flex;
        align-items: stretch;
    }

    .zone-tag {
        width: 15%;
        font-size: 10px;
        padding: 8px 3px;
        text-align: center;
        letter-spacing: 0;
        line-height: 1.3;
    }

    .zone-links {
        width: 85%;
        gap: 4px;
        padding: 7px 5px;
    }

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

    /* Search: single row */
    .search-module {
        padding: 10px 10px;
    }

    .search-module form {
        flex-wrap: nowrap;
        gap: 5px;
    }

    .search-module input[type="text"] {
        min-width: 70px;
        padding: 9px 10px;
        font-size: 13px;
    }

    .search-module button {
        padding: 9px 9px;
        font-size: 12px;
    }

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

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

    .media-block {
        margin-bottom: 14px;
    }

    .media-block-title {
        font-size: 17px;
    }

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

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

    .btn-group {
        padding: 14px 10px;
        gap: 8px;
    }

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

    .link-share-panel {
        padding: 12px;
        gap: 8px;
    }

    .link-display-box {
        padding: 8px 10px;
    }

    .link-label-text {
        font-size: 11px;
    }

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

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

    .pager-row {
        gap: 4px;
        padding: 15px 0;
    }

    .pg-link {
        padding: 6px 11px;
        font-size: 12px;
        min-width: 32px;
    }

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

@media (max-width: 480px) {
    .brand-title {
        font-size: 19px;
    }

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

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

    .zone-tag {
        width: 15%;
        font-size: 10px;
        padding: 6px 2px;
    }

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

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

    .search-module input[type="text"] {
        min-width: 60px;
        padding: 8px 8px;
        font-size: 12px;
    }

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

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

    .media-block-title {
        font-size: 15px;
    }

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

/* ===================== HIDE UTILITIES ===================== */
@media (max-width: 768px) {
    .vis-pc {
        display: none !important;
    }
}

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