:root {
    --bg-dark: #0d0d12;
    --bg-darker: #08080b;
    --panel: #15151d;
    --gold: #c9a24b;
    --gold-light: #e8c876;
    --text: #eae6da;
    --text-muted: #a8a49b;
    --danger: #7a1f1f;
    --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a { color: inherit; }

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 10, 14, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(201, 162, 75, 0.25);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--gold-light);
    font-size: 1.1rem;
}

.brand-icon { font-size: 1.3rem; }

.nav-links { display: flex; gap: 20px; }
.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold-light); }

/* Hero */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        linear-gradient(rgba(5,5,8,0.75), rgba(5,5,8,0.9)),
        radial-gradient(circle at 50% 20%, #2b2110 0%, #0d0d12 65%);
    padding: 60px 20px;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    margin: 0 0 12px;
    color: var(--gold-light);
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.hero .dash { color: var(--text-muted); }

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 34px;
}

.stat { display: flex; flex-direction: column; align-items: center; }
.stat-number { font-size: 2rem; font-weight: 700; color: var(--gold); }
.stat-label { color: var(--text-muted); font-size: 0.9rem; }

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), #8a6a24);
    color: #1a1408;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 162, 75, 0.35);
}

/* About */
.about {
    padding: 70px 0;
    background: var(--bg-darker);
    border-top: 1px solid rgba(201,162,75,0.15);
    border-bottom: 1px solid rgba(201,162,75,0.15);
}
.about h2 {
    color: var(--gold-light);
    font-size: 2rem;
    margin-bottom: 20px;
}
.about .lead { font-size: 1.1rem; color: var(--text); }
.about p { color: var(--text-muted); }
.about strong { color: var(--text); }

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 36px;
}
.about-card {
    background: var(--panel);
    border: 1px solid rgba(201,162,75,0.2);
    border-radius: var(--radius);
    padding: 24px;
}
.about-icon { font-size: 2rem; }
.about-card h3 { color: var(--gold-light); font-size: 1.1rem; margin: 10px 0; }
.about-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* Episodes */
.episodes { padding: 70px 0 100px; }
.episodes-header { text-align: center; margin-bottom: 40px; }
.episodes-header h2 { color: var(--gold-light); font-size: 2rem; margin-bottom: 8px; }
.text-muted { color: var(--text-muted); }

.search-box {
    display: block;
    max-width: 480px;
    margin: 24px auto 6px;
}
.search-box input {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 1px solid rgba(201,162,75,0.35);
    background: var(--panel);
    color: var(--text);
    font-size: 1rem;
}
.search-box input:focus {
    outline: none;
    border-color: var(--gold);
}
.search-status { font-size: 0.9rem; color: var(--text-muted); min-height: 1.2em; }

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.video-card {
    background: var(--panel);
    border: 1px solid rgba(201,162,75,0.18);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.4);
    border-color: rgba(201,162,75,0.5);
}

.video-link { text-decoration: none; color: inherit; display: block; }

.thumb-wrap { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.thumb { width: 100%; height: 100%; object-fit: cover; display: block; }

.play-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: rgba(255,255,255,0.85);
    background: rgba(0,0,0,0.25);
    opacity: 0;
    transition: opacity 0.2s;
}
.video-card:hover .play-badge { opacity: 1; }

.ep-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.75);
    color: var(--gold-light);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.video-title {
    font-size: 0.95rem;
    margin: 12px 14px 4px;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.video-date { margin: 0 14px 14px; font-size: 0.8rem; color: var(--text-muted); }

.video-card.is-hidden { display: none; }

/* Footer */
.site-footer { background: var(--bg-darker); padding: 60px 0 20px; border-top: 1px solid rgba(201,162,75,0.2); }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}
.site-footer h3, .site-footer h4 { color: var(--gold-light); }
.social-links { display: flex; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.social-links a { text-decoration: none; color: var(--text-muted); font-weight: 600; }
.social-links a:hover { color: var(--gold-light); }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { text-decoration: none; color: var(--text-muted); }
.footer-links a:hover { color: var(--gold-light); }

.footer-bottom {
    border-top: 1px solid rgba(201,162,75,0.15);
    padding-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 700px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: #1a1408;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
