/* Film & Media Website — Clean Light Theme */

:root {
    --clr-accent: #e8572a;
    --clr-accent-dark: #c94420;
    --clr-navy: #1d3557;
    --clr-navy-light: #457b9d;
    --clr-gold: #f4a261;
    --clr-bg: #f5f5f0;
    --clr-surface: #ffffff;
    --clr-surface2: #f0eeea;
    --clr-text: #1a1a2e;
    --clr-text-muted: #5a5a72;
    --clr-text-light: #8a8a9a;
    --clr-border: #e0ddd8;
    --clr-border-soft: #ece9e4;
    --shadow-xs: 0 1px 3px rgba(0,0,0,0.07);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.09);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
    --rad: 6px;
    --rad-sm: 4px;
    --rad-lg: 10px;
    --ease: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --grad-accent: linear-gradient(135deg, var(--clr-accent) 0%, var(--clr-gold) 100%);
    --grad-navy: linear-gradient(135deg, var(--clr-navy) 0%, var(--clr-navy-light) 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.55;
    font-size: 14px;
    overflow-x: hidden;
}

/* ─────────────────────────────────────────
   SITE HEADER — not sticky
───────────────────────────────────────── */
.site-header {
    background: var(--clr-surface);
    border-bottom: 1px solid var(--clr-border);
    padding: 10px 0;
    box-shadow: var(--shadow-xs);
}

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

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

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

.brand-title {
    font-size: 26px;
    font-weight: 900;
    color: var(--clr-accent);
    letter-spacing: -0.5px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    line-height: 1;
}

.brand-title:visited,
.brand-title:hover {
    text-decoration: none;
    border-bottom: none;
}

.domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--clr-navy);
    border-radius: 4px;
    padding: 5px 12px;
}

.badge-tag {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.badge-url {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
    font-family: 'SF Mono', 'Courier New', monospace;
}

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

.sect {
    padding: 8px 0;
}

/* ─────────────────────────────────────────
   CATEGORY NAVIGATION
───────────────────────────────────────── */
.cat-nav-box {
    background: var(--clr-surface);
    border-radius: var(--rad-lg);
    border: 1px solid var(--clr-border);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    margin-bottom: 8px;
}

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

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

.cat-zone-label {
    width: 9%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--clr-surface);
    background: var(--clr-navy);
    padding: 10px 6px;
    flex-shrink: 0;
    text-align: center;
    border-right: none;
    writing-mode: horizontal-tb;
}

.cat-links-area {
    width: 91%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px 10px;
    align-items: center;
}

.cat-links-area a {
    display: inline-block;
    color: var(--clr-text-muted);
    text-decoration: none;
    padding: 4px 0;
    border-radius: var(--rad-sm);
    transition: var(--ease);
    background: var(--clr-surface2);
    border: 1px solid var(--clr-border);
    white-space: nowrap;
    text-align: center;
    font-size: 13px;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
}

.cat-links-area a:hover {
    background: var(--clr-accent);
    color: #fff;
    border-color: var(--clr-accent);
    box-shadow: var(--shadow-sm);
}

.cat-links-area a.active {
    background: var(--clr-accent);
    color: #fff;
    border-color: var(--clr-accent);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* ─────────────────────────────────────────
   SEARCH BAR
───────────────────────────────────────── */
.search-bar-wrap {
    background: var(--clr-surface);
    border-radius: var(--rad-lg);
    padding: 12px 14px;
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-xs);
    margin-bottom: 8px;
}

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

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

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

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

.search-bar-wrap button {
    padding: 9px 15px;
    border: none;
    border-radius: var(--rad);
    background: var(--grad-accent);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.2px;
}

.search-bar-wrap button:hover {
    box-shadow: var(--shadow-md);
    opacity: 0.92;
}

/* ─────────────────────────────────────────
   HOT SEARCH TAGS
───────────────────────────────────────── */
.hot-tags-block {
    background: var(--clr-surface);
    border-radius: var(--rad-lg);
    border: 1px solid var(--clr-border);
    padding: 10px 14px;
    margin-bottom: 8px;
    box-shadow: var(--shadow-xs);
}

.hot-tags-block h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--clr-text);
    margin-bottom: 8px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
}

.tag-cloud .tag-item {
    display: inline-block;
    padding: 4px 12px;
    background: var(--clr-surface2);
    border-radius: 30px;
    color: var(--clr-text-muted);
    text-decoration: none;
    font-size: 12px;
    transition: var(--ease);
    border: 1px solid var(--clr-border);
}

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

/* ─────────────────────────────────────────
   CONTENT SECTIONS
───────────────────────────────────────── */
.media-section {
    margin-bottom: 14px;
}

.section-block {
    background: var(--clr-surface);
    border-radius: var(--rad-lg);
    border: 1px solid var(--clr-border);
    padding: 14px;
    box-shadow: var(--shadow-xs);
}

.section-hd {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--clr-border-soft);
    position: relative;
}

.section-hd::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--clr-accent);
    border-radius: 2px;
}

.section-ttl {
    font-size: 18px;
    font-weight: 700;
    color: var(--clr-text);
    letter-spacing: -0.2px;
    margin: 0;
}

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

.section-ttl a:hover {
    color: var(--clr-accent);
}

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

.media-grid li {
    animation: revealUp 0.5s ease backwards;
}

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

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

.media-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--rad);
    /* 600:350 ratio = 12:7 */
    aspect-ratio: 12 / 7;
    background: var(--clr-surface2);
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-xs);
}

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

.media-thumb:hover {
    box-shadow: var(--shadow-md);
}

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

.media-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

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

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

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

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

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

/* ─────────────────────────────────────────
   VIDEO PLAYER
───────────────────────────────────────── */
.player-shell {
    width: 100%;
    height: 600px;
    max-height: 600px;
    background: #0a0a0a;
    border-radius: var(--rad-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 16px;
    position: relative;
}

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

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

/* ─────────────────────────────────────────
   TORRENT CAPTURE
───────────────────────────────────────── */
.capture-panel {
    /* grid cleared intentionally, single image occupies 100% */
}

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

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

/* ─────────────────────────────────────────
   DOWNLOAD BUTTONS
───────────────────────────────────────── */
.dl-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    padding: 14px;
    background: var(--clr-surface);
    border-radius: var(--rad-lg);
    margin: 12px 0;
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-xs);
}

.dl-btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--grad-accent);
    color: #fff;
    text-decoration: none;
    border-radius: var(--rad);
    font-weight: 700;
    font-size: 14px;
    transition: var(--ease);
    border: none;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    letter-spacing: 0.2px;
}

.dl-btn:hover {
    box-shadow: var(--shadow-md);
    opacity: 0.9;
}

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

.share-url-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    border-radius: var(--rad);
    padding: 10px 12px;
    flex: 1;
    min-width: 0;
}

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

.share-url-text {
    font-size: 12px;
    color: var(--clr-text-muted);
    font-family: 'SF Mono', 'Courier New', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.share-copy-btn {
    padding: 10px 20px;
    background: var(--grad-navy);
    color: #fff;
    border: none;
    border-radius: var(--rad);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.share-copy-btn:hover {
    box-shadow: var(--shadow-md);
    opacity: 0.9;
}

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

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

/* ─────────────────────────────────────────
   PAGINATION
───────────────────────────────────────── */
.pager-wrap {
    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(--rad-sm);
    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;
}

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

/* ─────────────────────────────────────────
   FRIENDLY LINKS / FOOTER
───────────────────────────────────────── */
.links-panel {
    background: var(--clr-surface);
    border-radius: var(--rad-lg);
    border: 1px solid var(--clr-border);
    padding: 12px 14px;
    box-shadow: var(--shadow-xs);
}

.links-list {
    margin: 0;
}

.links-list dd {
    display: inline-block;
    margin: 3px 5px 3px 0;
}

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

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

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

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

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

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

/* ─────────────────────────────────────────
   DETAIL PAGE INFO PANEL
───────────────────────────────────────── */
.item-title-panel {
    line-height: 1.8;
    text-align: center;
    padding: 16px 20px;
    font-size: 17px;
    margin: 14px 0;
    word-break: break-all;
    background: var(--clr-surface);
    border-radius: var(--rad-lg);
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-xs);
}

.item-info-panel {
    font-size: 15px;
    line-height: 1.9;
    padding: 20px;
    background: var(--clr-surface);
    border-radius: var(--rad-lg);
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-xs);
    margin: 12px 0;
}

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

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

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

/* ─────────────────────────────────────────
   RESPONSIVE — TABLET (≤ 768px)
───────────────────────────────────────── */
@media (max-width: 768px) {
    .wrap {
        padding: 0 8px;
    }

    .sect {
        padding: 5px 0;
    }

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

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

    .badge-url {
        font-size: 14px;
    }

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

    .domain-badge {
        padding: 4px 10px;
        gap: 5px;
    }

    /* Mobile nav */
    .cat-nav-row {
        display: flex;
        align-items: stretch;
    }

    .cat-zone-label {
        width: 15%;
        font-size: 10px;
        padding: 8px 3px;
    }

    .cat-links-area {
        width: 85%;
        gap: 4px;
        padding: 6px 6px;
        font-size: 12px;
    }

    .cat-links-area a {
        font-size: 14px;
        padding: 4px 2px;
        width: calc((100% - 12px) / 4);
    }

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

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

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

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

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

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

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

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

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

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

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

    .search-bar-wrap {
        padding: 10px 10px;
    }

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

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

    .pager-wrap {
        gap: 4px;
        padding: 14px 0;
    }

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

    .section-block {
        padding: 10px;
    }

    .media-section {
        margin-bottom: 8px;
    }
}

/* ─────────────────────────────────────────
   RESPONSIVE — PHONE (≤ 480px)
───────────────────────────────────────── */
@media (max-width: 480px) {
    .brand-title {
        font-size: 18px;
    }

    .badge-url {
        font-size: 13px;
    }

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

    .cat-links-area {
        width: 85%;
        gap: 3px;
        padding: 5px 4px;
    }

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

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

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

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

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

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

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