:root {
    --bg: #0f1117;
    --bg-secondary: #171923;
    --surface: rgba(255,255,255,0.04);
    --surface-hover: rgba(255,255,255,0.08);
    --border: rgba(255,255,255,0.08);
    --text: #f5f7fb;
    --muted: #a4adbf;
    --primary: #ff0033;
    --primary-soft: rgba(255, 0, 51, 0.12);
    --shadow: 0 10px 40px rgba(0,0,0,0.35);
    --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top right, rgba(255,0,51,0.18), transparent 25%), linear-gradient(180deg, #0f1117 0%, #090b10 100%);
    color: var(--text);
    min-height: 100vh;
}
body.light {
    --bg: #f4f6fb;
    --bg-secondary: #ffffff;
    --surface: rgba(255,255,255,0.75);
    --surface-hover: rgba(0,0,0,0.04);
    --border: rgba(0,0,0,0.08);
    --text: #111827;
    --muted: #5f6675;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    background: linear-gradient(180deg, #eef2ff 0%, #f9fafb 100%);
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(10, 12, 18, 0.82);
    border-bottom: 1px solid var(--border);
}
.navbar { padding: 1rem 0; }
.brand { display: flex; align-items: center; gap: 0.9rem; color: var(--text); text-decoration: none; }
.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff0033, #ff5c7c);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    font-size: 1.1rem;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy small { color: var(--muted); }
.search-form { width: min(100%, 720px); }
.search-form .input-group {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    backdrop-filter: blur(18px);
}
.search-form input { background: transparent; border: 0; color: var(--text); padding: 0.9rem 1.2rem; }
.search-form input:focus { background: transparent; color: var(--text); box-shadow: none; }
.search-form input::placeholder { color: var(--muted); }
.btn-search { background: transparent; border: 0; color: var(--muted); width: 60px; }
.btn-search:hover { color: var(--text); }
.btn-ghost, .btn-primary-soft { border-radius: 999px; padding: 0.75rem 1.2rem; border: 1px solid var(--border); transition: 0.2s ease; }
.btn-ghost { background: var(--surface); color: var(--text); }
.btn-ghost:hover, .btn-primary-soft:hover { transform: translateY(-1px); background: var(--surface-hover); color: var(--text); }
.btn-primary-soft { background: var(--primary-soft); color: #ff6f8f; border-color: rgba(255,0,51,0.2); }
.hero-card, .watch-panel, .side-section, .glass-alert, .empty-state, .video-meta {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}
.hero-card { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 2rem; }
.hero-card h1 { font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: 1rem; font-weight: 800; }
.hero-card p { max-width: 760px; color: var(--muted); margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.9rem; border-radius: 999px; background: var(--primary-soft); color: #ff6f8f; font-size: 0.85rem; margin-bottom: 1rem; }
.hero-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.8rem; }
.hero-badges span { padding: 0.8rem 1rem; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); font-size: 0.9rem; }
.layout-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(320px, 0.9fr); gap: 1.5rem; }
.watch-panel { padding: 1rem; }
.player-shell { position: relative; width: 100%; padding-top: 56.25%; overflow: hidden; border-radius: 16px; background: #000; }
.player-shell iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-meta { margin-top: 1rem; padding: 1.4rem; }
.video-meta h2 { font-size: clamp(1.4rem, 2vw, 2rem); margin-bottom: 0.9rem; }
.video-stats { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--muted); margin-bottom: 1rem; }
.description-box { margin-top: 1rem; padding: 1rem; border-radius: 14px; background: rgba(255,255,255,0.03); }
.description-box summary { cursor: pointer; font-weight: 600; margin-bottom: 0.8rem; }
.description-box p { color: var(--muted); white-space: pre-wrap; margin-bottom: 0; }
.action-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.side-panel { display: flex; flex-direction: column; gap: 1.5rem; }
.side-section { padding: 1.2rem; }
.section-title { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.section-title h3 { margin: 0; font-size: 1.1rem; }
.short-card, .suggestion-card { text-decoration: none; color: inherit; }
.suggestions { display: flex; flex-direction: column; gap: 1rem; }
.suggestion-card { display: grid; grid-template-columns: 180px 1fr; gap: 0.9rem; padding: 0.6rem; border-radius: 16px; transition: background 0.2s ease; }
.suggestion-card:hover { background: rgba(255,255,255,0.04); }
.thumb-wrap { position: relative; }
.thumb-wrap img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }
.duration { position: absolute; right: 0.6rem; bottom: 0.6rem; background: rgba(0,0,0,0.82); color: #fff; font-size: 0.75rem; padding: 0.2rem 0.45rem; border-radius: 8px; }
.suggestion-content { display: flex; flex-direction: column; gap: 0.4rem; }
.suggestion-content strong { line-height: 1.35; }
.suggestion-content small, .muted { color: var(--muted); }
.site-footer { margin-top: 3rem; padding: 2rem; text-align: center; border-top: 1px solid var(--border); color: var(--muted); }
.site-footer a { color: #ff6f8f; text-decoration: none; }
code { background: rgba(255,255,255,0.08); color: #ff6f8f; padding: 0.2rem 0.45rem; border-radius: 8px; }
@media (max-width: 1200px) { .layout-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .hero-card { flex-direction: column; align-items: flex-start; } .suggestion-card { grid-template-columns: 1fr; } .search-form { margin: 1rem 0; } }
