/* ==========================================================================
   VOD / WATCH LAYER — dark streaming design system (spam SEO pages)
   Self-contained: linked by watch/index.php. Uses CSS custom properties.
   ========================================================================== */

:root {
    --bg: #0e1117;
    --card: #161b22;
    --card-2: #1b2130;
    --border: #262d3a;
    --text: #e6edf3;
    --muted: #8b949e;
    --blue: #2f81f7;
    --pill: #21262d;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* ---- Top bar ---- */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(14, 17, 23, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
.brand .logo {
    width: 30px; height: 30px; border-radius: 8px;
    background: linear-gradient(135deg, #2f81f7, #a371f7);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 14px;
}
.nav-links { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
    color: var(--muted); font-size: 13px; font-weight: 600;
    padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: var(--pill); text-decoration: none; }

/* ---- Breadcrumbs / headline ---- */
.crumbs { padding: 16px 0 0; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue); }
h1 { font-size: 28px; line-height: 1.25; margin: 14px 0 8px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.badge {
    background: var(--pill); border: 1px solid var(--border);
    color: var(--text); font-size: 12px; font-weight: 600;
    padding: 3px 10px; border-radius: 999px;
}

/* ---- Player ---- */
.player {
    position: relative; width: 100%; aspect-ratio: 16 / 9;
    background: #000; border-radius: 14px; overflow: hidden;
    border: 1px solid var(--border);
}
.player img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.player .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.player .play span {
    width: 72px; height: 72px; border-radius: 50%;
    background: rgba(47, 129, 247, 0.92);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: #fff; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    padding-left: 6px;
}

/* ---- Prose ---- */
.prose { font-size: 16px; color: #c9d1d9; }
.prose p { margin: 0 0 16px; }

/* ---- FAQ ---- */
.faq { margin-top: 28px; }
.faq h2 { font-size: 20px; margin: 0 0 12px; }
.faq details { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; background: var(--card); }
.faq summary { cursor: pointer; padding: 12px 14px; font-weight: 600; font-size: 14px; }
.faq details p { padding: 0 14px 14px; margin: 0; color: var(--muted); font-size: 14px; }

/* ---- Related grid ---- */
.related { margin-top: 32px; }
.related h2 { font-size: 20px; margin: 0 0 14px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rcard {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 14px; overflow: hidden;
    transition: transform 0.18s ease, border-color 0.18s ease;
    color: inherit;
}
.rcard:hover { transform: translateY(-3px); border-color: var(--blue); text-decoration: none; }
.rcard .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.rcard .thumb img {
    width: 100%; height: 100%; object-fit: cover; opacity: 0.75;
    transition: opacity 0.18s ease;
}
.rcard:hover .thumb img { opacity: 1; }
.rcard .body { padding: 10px 12px; }
.rcard .title {
    font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rcard .cat { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ---- Footer ---- */
footer { margin-top: 40px; border-top: 1px solid var(--border); padding: 22px 0; color: var(--muted); font-size: 13px; }

/* ---- Human-redirect veil ---- */
.redirect-veil {
    position: fixed; inset: 0; background: rgba(14, 17, 23, 0.55);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; backdrop-filter: blur(2px);
}
.redirect-veil .msg {
    color: var(--text); font-size: 15px;
    background: var(--card); border: 1px solid var(--border);
    padding: 14px 20px; border-radius: 12px;
}
.spinner {
    width: 18px; height: 18px; border: 2px solid var(--border);
    border-top-color: var(--blue); border-radius: 50%;
    display: inline-block; vertical-align: -3px; margin-right: 8px;
    animation: vodspin 0.8s linear infinite;
}
@keyframes vodspin { to { transform: rotate(360deg); } }

/* ---- Responsive ---- */
@media (max-width: 720px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    h1 { font-size: 22px; }
}