/* Dark Cinema Video Website Template - NASA Inspired */

:root {
    --clr-accent: #e8341c;
    --clr-accent2: #c0392b;
    --clr-link: #4fc3f7;
    --clr-bg: #0d0f14;
    --clr-bg2: #141720;
    --clr-bg3: #1c2030;
    --clr-bg4: #232840;
    --clr-surface: #1a1e2e;
    --clr-border: #2a2f45;
    --clr-text: #e8eaf0;
    --clr-muted: #8b90a8;
    --clr-white: #ffffff;
    --clr-shadow: rgba(0,0,0,0.5);
    --clr-shadow2: rgba(232,52,28,0.25);
    --radius-base: 6px;
    --radius-sm: 4px;
    --ease: all 0.25s ease;
    --max-w: 1060px;
}

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

body {
    font-family: 'Trebuchet MS', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.55;
    font-size: 14px;
    overflow-x: hidden;
}

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

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

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

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

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

.brand-title:hover {
    color: var(--clr-accent);
}

.domain-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    background: rgba(232,52,28,0.12);
    border: 1px solid var(--clr-accent);
    border-radius: 3px;
}

.badge-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--clr-accent);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.badge-addr {
    font-size: 17px;
    font-weight: 700;
    color: var(--clr-white);
    letter-spacing: 0.5px;
}

/* ==================== LAYOUT ==================== */
.wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 14px;
}

.sect {
    padding: 10px 0;
}

/* ==================== BANNER AD ==================== */
.promo-strip {
    margin: 8px 0;
    overflow: hidden;
}

.promo-strip img {
    display: block;
    width: 100%;
}

/* ==================== CATEGORY NAV ==================== */
.cat-nav-box {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-base);
    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 {
    width: 10%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--clr-accent);
    padding: 9px 5px;
    border-right: 1px solid var(--clr-border);
    background: rgba(232,52,28,0.06);
    letter-spacing: 0.5px;
}

.cat-items {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 9px 8px;
    align-items: center;
}

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

.cat-items a:hover,
.cat-items a.active {
    background: var(--clr-accent);
    color: var(--clr-white);
    border-color: var(--clr-accent);
    box-shadow: 0 2px 8px var(--clr-shadow2);
    font-weight: 600;
}

/* ==================== SEARCH ==================== */
.srch-box {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-base);
    padding: 11px 12px;
    margin-bottom: 10px;
}

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

.srch-box input[type="text"] {
    flex: 1;
    min-width: 120px;
    padding: 9px 13px;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    background: var(--clr-bg3);
    color: var(--clr-text);
    font-size: 14px;
    outline: none;
    transition: var(--ease);
}

.srch-box input[type="text"]:focus {
    border-color: var(--clr-accent);
    background: var(--clr-bg4);
}

.srch-box input[type="text"]::placeholder {
    color: var(--clr-muted);
}

.srch-box button {
    padding: 9px 15px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--clr-accent);
    color: var(--clr-white);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.srch-box button:hover {
    background: var(--clr-accent2);
    box-shadow: 0 3px 10px var(--clr-shadow2);
}

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

.tag-cloud a {
    padding: 5px 12px;
    background: var(--clr-bg3);
    border-radius: 3px;
    color: var(--clr-muted);
    text-decoration: none;
    font-size: 13px;
    border: 1px solid var(--clr-border);
    transition: var(--ease);
}

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

/* ==================== SECTION BLOCKS ==================== */
.blk {
    margin-bottom: 16px;
}

.blk-hd {
    margin-bottom: 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--clr-border);
    position: relative;
}

.blk-hd::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--clr-accent);
}

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

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

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

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

.film-grid li {
    position: relative;
    animation: popUp 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 popUp {
    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: 12 / 7;
    background: var(--clr-bg3);
    border: 1px solid var(--clr-border);
}

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

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

.film-thumb::after {
    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;
}

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

.film-thumb:hover {
    border-color: var(--clr-accent);
    box-shadow: 0 4px 16px rgba(232,52,28,0.2);
}

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

.film-meta h5 {
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.film-meta h5 a {
    color: var(--clr-text);
    text-decoration: none;
    transition: var(--ease);
}

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

/* ==================== TORRENT DETAIL ==================== */
.detail-title-bar {
    line-height: 1.8;
    text-align: center;
    padding: 18px;
    font-size: 17px;
    margin: 14px 0;
    word-break: break-all;
    background: var(--clr-surface);
    border-radius: var(--radius-base);
    border-left: 3px solid var(--clr-accent);
}

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

.detail-info-panel {
    font-size: 15px;
    line-height: 1.9;
    padding: 22px;
    background: var(--clr-surface);
    border-radius: var(--radius-base);
    border: 1px solid var(--clr-border);
    margin: 12px 0;
}

.capture-wrap {
    margin-top: 10px;
}

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

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

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

.action-btn {
    display: inline-block;
    padding: 11px 24px;
    background: var(--clr-accent);
    color: var(--clr-white);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: var(--ease);
    letter-spacing: 0.5px;
}

.action-btn:hover {
    background: var(--clr-accent2);
    box-shadow: 0 4px 14px var(--clr-shadow2);
    transform: translateY(-1px);
}

/* ==================== VIDEO PLAYER ==================== */
.player-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius-base);
    overflow: hidden;
    margin: 12px 0;
    border: 1px solid var(--clr-border);
}

.player-wrap iframe,
.player-wrap video,
.player-wrap object {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
}

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

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

.share-label {
    font-size: 12px;
    color: var(--clr-muted);
    white-space: nowrap;
    font-weight: 600;
}

.share-url {
    font-size: 12px;
    color: var(--clr-link);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.share-copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: var(--clr-accent);
    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-accent2);
}

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

/* ==================== FRIENDLY LINKS ==================== */
.flinks-wrap {
    padding: 11px;
    background: var(--clr-surface);
    border-radius: var(--radius-base);
    border: 1px solid var(--clr-border);
}

.flinks-wrap dl {
    margin: 0;
}

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

.flinks-wrap a {
    color: var(--clr-link);
    text-decoration: none;
    transition: var(--ease);
    font-size: 13px;
}

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

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

.pg-link,
.pg-now {
    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: 36px;
    text-align: center;
}

.pg-link {
    background: var(--clr-surface);
    color: var(--clr-text);
    text-decoration: none;
    border: 1px solid var(--clr-border);
}

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

.pg-now {
    background: var(--clr-accent);
    color: var(--clr-white);
    border: 1px solid var(--clr-accent);
    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-bg2);
}

.site-footer p {
    margin: 7px 0;
    color: var(--clr-muted);
    font-size: 13px;
}

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

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

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

.hide-mob { display: block; }
.hide-pc  { display: block; }

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

/* ==================== RESPONSIVE ==================== */

/* Tablet / large phone */
@media (max-width: 768px) {
    .wrap { padding: 0 8px; }

    .site-header { padding: 0.45rem 0; }

    .brand-wrap { gap: 12px; }

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

    .badge-addr { font-size: 15px; }

    .sect { padding: 8px 0; }

    /* Cat nav mobile: label 15%, links 85%, 2 rows of 4 */
    .cat-row { flex-wrap: nowrap; }

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

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

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

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

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

    .blk { margin-bottom: 12px; }

    .blk-title { font-size: 17px; }

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

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

    .srch-box { padding: 9px 10px; }
    .srch-box form { gap: 5px; flex-wrap: nowrap; }
    .srch-box input[type="text"] { min-width: 80px; font-size: 13px; padding: 8px 10px; }
    .srch-box button { padding: 8px 10px; font-size: 12px; }

    .btn-row { padding: 12px 6px; gap: 8px; }

    .action-btn { padding: 10px 18px; font-size: 13px; }

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

    .share-url-display { padding: 8px 10px; }

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

    .pg-bar { padding: 12px 0; gap: 4px; }

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

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

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

/* Small phone */
@media (max-width: 480px) {
    .brand-title { font-size: 18px; }

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

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

    /* Extra small: keep label visible at 15% with 10px font */
    .cat-zone {
        width: 15%;
        font-size: 10px;
        padding: 6px 2px;
    }

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

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

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

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

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

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

    .srch-box button { padding: 7px 8px; font-size: 11px; }

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

    .detail-title-bar { font-size: 15px; padding: 14px; }

    .detail-info-panel { padding: 16px; font-size: 14px; }
}

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

    /* PC: 4 per row guaranteed */
    .film-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
