/* Dark Cinema Theme - Netflix-inspired */

:root {
    --clr-red: #e50914;
    --clr-red-hover: #f40612;
    --clr-gold: #f5c518;
    --clr-blue: #1c6ea4;
    --clr-bg: #141414;
    --clr-bg2: #1a1a1a;
    --clr-bg3: #222222;
    --clr-bg4: #2a2a2a;
    --clr-surface: #181818;
    --clr-border: #333333;
    --clr-border2: #3d3d3d;
    --clr-text: #e5e5e5;
    --clr-text2: #b3b3b3;
    --clr-text3: #808080;
    --clr-white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.6);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.8);
    --radius-xs: 3px;
    --radius-sm: 5px;
    --radius-md: 8px;
    --ease: all 0.25s ease;
    --grad-red: linear-gradient(135deg, #e50914 0%, #b20710 100%);
    --grad-dark: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 100%);
}

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

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.5;
    font-size: 14px;
    overflow-x: hidden;
}

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

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

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

.brand-logo {
    text-decoration: none;
    display: inline-block;
}

.brand-title {
    font-size: 30px;
    font-weight: 900;
    color: var(--clr-red);
    letter-spacing: -1px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    display: inline-block;
}

.domain-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: var(--clr-bg3);
    border: 1px solid var(--clr-border2);
    border-radius: 4px;
}

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

.domain-val {
    font-size: 17px;
    font-weight: 700;
    color: var(--clr-gold);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.3px;
}

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

.blk {
    padding: 10px 0;
}

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

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

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

.cat-zone {
    font-weight: 700;
    font-size: 13px;
    color: var(--clr-text2);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    border-right: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 6px;
    flex-shrink: 0;
    background: var(--clr-bg3);
}

.cat-links {
    font-size: 13px;
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 9px 8px;
    align-items: center;
}

.cat-links a {
    display: inline-block;
    color: var(--clr-text2);
    text-decoration: none;
    padding: 4px 3px;
    border-radius: var(--radius-xs);
    transition: var(--ease);
    background: var(--clr-bg3);
    border: 1px solid var(--clr-border);
    white-space: nowrap;
    text-align: center;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.cat-links a:hover {
    background: var(--clr-red);
    color: var(--clr-white);
    border-color: var(--clr-red);
    box-shadow: 0 2px 8px rgba(229,9,20,0.4);
}

.cat-links a.active {
    background: var(--clr-red);
    color: var(--clr-white);
    border-color: var(--clr-red);
    font-weight: 600;
}

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

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

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

.search-bar input[type="text"]:focus {
    border-color: var(--clr-red);
    background: var(--clr-bg3);
    box-shadow: 0 0 0 2px rgba(229,9,20,0.2);
}

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

.search-bar button {
    padding: 9px 14px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--clr-red);
    color: var(--clr-white);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.search-bar button:hover {
    background: var(--clr-red-hover);
    box-shadow: 0 2px 10px rgba(229,9,20,0.5);
}

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

.tag-item {
    padding: 5px 12px;
    background: var(--clr-bg4);
    border-radius: 3px;
    color: var(--clr-text2);
    text-decoration: none;
    font-size: 12px;
    transition: var(--ease);
    border: 1px solid var(--clr-border);
}

.tag-item:hover {
    background: var(--clr-red);
    color: var(--clr-white);
    border-color: var(--clr-red);
}

/* ========== SECTIONS ========== */
.sec-block {
    margin-bottom: 16px;
}

.sec-head {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--clr-border);
    position: relative;
}

.sec-head::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--clr-red);
}

.sec-title {
    font-size: 19px;
    font-weight: 700;
    margin: 0;
    color: var(--clr-white);
    letter-spacing: -0.3px;
}

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

.sec-title a:hover { color: var(--clr-red); }

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

.card-grid li {
    position: relative;
    animation: riseUp 0.5s ease backwards;
}

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

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

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

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

.card-thumb:hover { box-shadow: var(--shadow-md); }
.card-thumb:hover img { transform: scale(1.08); }

.card-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-dark);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.card-info { padding: 7px 0; }

.card-info h5 {
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
    color: var(--clr-text2);
}

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

.card-info h5 a:hover { color: var(--clr-white); }

/* ========== VIDEO PLAYER ========== */
.media-wrap {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.media-wrap iframe,
.media-wrap video,
.media-wrap object,
.media-wrap embed {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
    border: none;
}

/* ========== TORRENT PREVIEW ========== */
.capture-frame {
    width: 100%;
    text-align: center;
}

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

.capture-frame picture img,
.capture-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

/* ========== DOWNLOAD BUTTONS ========== */
.dl-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 10px;
    margin: 12px 0;
    background: var(--clr-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
}

.down_btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--clr-red);
    color: var(--clr-white);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--ease);
    border: none;
    letter-spacing: 0.3px;
}

.down_btn:hover {
    background: var(--clr-red-hover);
    box-shadow: 0 4px 14px rgba(229,9,20,0.5);
    transform: translateY(-1px);
}

/* ========== SHARE ========== */
.share-section {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    margin: 12px 0;
    flex-wrap: nowrap;
}

.share-url-display {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    background: var(--clr-bg4);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    overflow: hidden;
}

.share-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--clr-text3);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

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

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

.share-copy-btn:hover {
    background: var(--clr-red-hover);
    box-shadow: 0 2px 10px rgba(229,9,20,0.4);
}

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

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

.a_page_info, .page_info_focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    transition: var(--ease);
    min-width: 38px;
    text-align: center;
    text-decoration: none;
}

.a_page_info {
    background: var(--clr-surface);
    color: var(--clr-text2);
    border: 1px solid var(--clr-border);
}

.a_page_info:hover {
    background: var(--clr-red);
    border-color: var(--clr-red);
    color: var(--clr-white);
}

.page_info_focus {
    background: var(--clr-red);
    color: var(--clr-white);
    border: 1px solid var(--clr-red);
    cursor: default;
    font-weight: 700;
}

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

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

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

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

.flink-box {
    padding: 10px 12px;
    background: var(--clr-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
}

.flink-box dl { margin: 0; }
.flink-box dd { display: inline-block; margin: 3px 4px; }

.flink-box a {
    color: var(--clr-text3);
    text-decoration: none;
    font-size: 13px;
    transition: var(--ease);
}

.flink-box a:hover { color: var(--clr-red); }

/* ========== INFO BLOCKS ========== */
.info-panel {
    font-size: 15px;
    line-height: 1.9;
    padding: 20px 22px;
    background: var(--clr-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
    margin: 12px 0;
    color: var(--clr-text);
}

.info-panel a {
    color: var(--clr-red);
    text-decoration: none;
    font-weight: 600;
}

.info-panel b { color: var(--clr-white); }

.title-strip {
    line-height: 1.8;
    text-align: center;
    padding: 16px 18px;
    font-size: 17px;
    margin: 12px 0;
    word-break: break-all;
    background: var(--clr-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
}

.title-strip a {
    color: var(--clr-red);
    text-decoration: none;
    font-weight: 600;
    margin-right: 6px;
}

.title-strip b { color: var(--clr-white); }

/* ========== UTILITY ========== */
.clearfix::after { content: ""; display: table; clear: both; }
.pd5 { padding: 0 5px; }

.mhlleset-main { width: 100%; }

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

/* ========== 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 ========== */
@media (max-width: 768px) {
    .wrap { padding: 0 8px; }

    .blk { padding: 7px 0; }

    .brand-wrap { gap: 10px; }

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

    .domain-badge { padding: 4px 10px; gap: 6px; }
    .domain-tag { font-size: 10px; }
    .domain-val { font-size: 15px; }

    /* Mobile nav: label 15%, links 85%, 4 items per row (2 rows) */
    .cat-row { display: flex; align-items: stretch; }

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

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

    .cat-links a {
        font-size: 12px;
        padding: 4px 2px;
        /* 4 per row: (100% - 3 gaps * 4px) / 4 */
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

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

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

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

    .sec-block { margin-bottom: 12px; }

    .search-bar { padding: 8px 10px; }
    .search-bar form { flex-wrap: nowrap; gap: 5px; }
    .search-bar input[type="text"] { min-width: 70px; padding: 8px 10px; font-size: 12px; }
    .search-bar button { padding: 8px 10px; font-size: 12px; }

    .tag-strip { padding: 9px 10px; gap: 5px; }
    .tag-item { padding: 4px 10px; font-size: 11px; }

    .dl-row { padding: 12px 8px; gap: 8px; }
    .down_btn { padding: 9px 16px; font-size: 13px; }

    .share-section { padding: 10px 10px; margin: 10px 0; gap: 7px; }
    .share-url-display { padding: 7px 10px; }
    .share-label { font-size: 10px; }
    .share-url { font-size: 10px; }
    .share-copy-btn { padding: 8px 12px; font-size: 12px; }

    .pg-wrap { padding: 12px 0; gap: 4px; }
    .a_page_info, .page_info_focus { 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: 20px; }
    .domain-tag { font-size: 9px; }
    .domain-val { font-size: 14px; }

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

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

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

    .card-grid { gap: 7px; }
    .card-info h5 { font-size: 11px; }

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

    .down_btn { padding: 8px 14px; font-size: 12px; }

    .sec-title { font-size: 15px; }
}

/* Large screens: keep 4 columns */
@media (min-width: 769px) {
    .card-grid { grid-template-columns: repeat(4, 1fr); }
}
