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

:root {
    --blue:       #4a90e2;
    --blue-dark:  #0056b3;
    --blue-light: #e8f1fb;
    --orange:     #f5a623;
    --orange-dark:#d4891a;
    --text:       #1a1a2e;
    --muted:      #6b7280;
    --bg:         #f8f9fb;
    --card-bg:    #ffffff;
    --white:      #ffffff;
    --border:     #e5e7eb;
    --radius:     10px;
    --shadow:     0 1px 4px rgba(0,0,0,0.08);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
}

html[data-theme="dark"] {
    --text:       #e5e7eb;
    --muted:      #9ca3af;
    --bg:         #0f172a;
    --card-bg:    #1e293b;
    --border:     #334155;
    --blue-light: #1e3a5f;
    --shadow:     0 1px 4px rgba(0,0,0,0.4);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.5);
}

@media (prefers-color-scheme: dark) {
    html:not([data-theme]) {
        --text:       #e5e7eb;
        --muted:      #9ca3af;
        --bg:         #0f172a;
        --card-bg:    #1e293b;
        --border:     #334155;
        --blue-light: #1e3a5f;
        --shadow:     0 1px 4px rgba(0,0,0,0.4);
        --shadow-md:  0 4px 16px rgba(0,0,0,0.5);
    }
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 15px;
    transition: background 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: var(--blue);
    transition: color 0.15s;
}

a:hover {
    color: var(--blue-dark);
}

/* ── Header ──────────────────────────────────────── */
header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 200;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo-link img {
    height: 36px;
    display: block;
}

.main-nav {
    display: flex;
    gap: 4px;
    flex: 1;
}

.main-nav a {
    padding: 6px 14px;
    border-radius: var(--radius);
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.15s, color 0.15s;
}

.main-nav a:hover {
    background: var(--blue-light);
    color: var(--blue-dark);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.search-container {
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.15s;
}

.search-container:focus-within {
    border-color: var(--blue);
}

.search-container input {
    border: none;
    background: transparent;
    padding: 6px 12px;
    font-size: 0.875rem;
    width: 180px;
    outline: none;
    color: var(--text);
}

.search-container button {
    border: none;
    background: transparent;
    padding: 6px 10px;
    cursor: pointer;
    color: var(--muted);
    font-size: 0.9rem;
    transition: color 0.15s;
}

.search-container button:hover {
    color: var(--blue);
}

.btn-play {
    padding: 7px 18px;
    background: var(--orange);
    color: var(--white);
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: var(--radius);
    letter-spacing: 0.02em;
    transition: background 0.15s, transform 0.1s;
    white-space: nowrap;
}

.btn-play:hover {
    background: var(--orange-dark);
    color: var(--white);
    transform: translateY(-1px);
}

.theme-toggle {
    border: none;
    background: transparent;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    border-radius: var(--radius);
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

.theme-toggle:hover {
    background: var(--blue-light);
}

/* ── Hero ────────────────────────────────────────── */
.hero {
    background: linear-gradient(to bottom, #c9e4f8, #e8f4fd);
    padding: 28px 24px;
    transition: background 0.3s ease;
}

html[data-theme="dark"] .hero {
    background: linear-gradient(to bottom, #1e3a5f, #0f172a);
}

.hero img {
    display: block;
    max-width: 1152px;
    width: 100%;
    margin: 0 auto;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
}

/* ── Layout ──────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 60px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
}

/* ── Cards ───────────────────────────────────────── */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 32px;
    box-shadow: var(--shadow);
}

.card-label {
    display: inline-block;
    background: var(--blue-light);
    color: var(--blue-dark);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}

h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.section-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 10px;
    margin-top: 4px;
}

.subtitle {
    font-size: 0.975rem;
    color: var(--muted);
    margin-bottom: 20px;
    font-weight: 500;
}

p {
    margin-bottom: 16px;
    color: var(--text);
}

/* ── Content Slider ───────────────────────────────── */
.content-slider {
    position: relative;
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    margin: 24px 0 8px;
    background: #111;
}

.slider-track {
    display: grid;
}

.slide {
    grid-area: 1 / 1;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Arrow buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(0,0,0,0.35);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.25s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-slider:hover .slider-btn {
    opacity: 1;
}

.slider-btn:hover {
    background: rgba(0,0,0,0.6);
}

.slider-prev { left: 10px; }
.slider-next { right: 10px; }

/* Dot indicators */
.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.8);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
}

.dot.active {
    background: #fff;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255,255,255,0.5);
}

.caption {
    text-align: center;
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 20px;
}

/* ── Sidebar ─────────────────────────────────────── */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-card {
    padding: 20px 24px;
}

.sidebar-card-header {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue-dark);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--blue-light);
}

.link-list {
    list-style: none;
}

.link-list li {
    border-bottom: 1px solid var(--border);
}

.link-list li:last-child {
    border-bottom: none;
}

.link-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    color: var(--text);
    font-size: 0.9rem;
    transition: color 0.15s, padding-left 0.15s;
}

.link-list a::after {
    content: '›';
    color: var(--muted);
    font-size: 1.1rem;
}

.link-list a:hover {
    color: var(--blue);
    padding-left: 4px;
}

.play-cta {
    display: block;
    background: var(--orange);
    color: var(--white);
    text-align: center;
    padding: 13px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.03em;
    transition: background 0.15s, transform 0.1s;
    box-shadow: 0 2px 8px rgba(245,166,35,0.35);
}

.play-cta:hover {
    background: var(--orange-dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* ── Footer ──────────────────────────────────────── */
footer {
    background: linear-gradient(135deg, #1a2a4e 0%, #0f172a 100%);
    color: var(--muted);
    padding: 36px 24px;
}

html[data-theme="light"] footer {
    background: #111827;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 32px;
}

.footer-brand {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-right: auto;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--muted);
    font-size: 0.875rem;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-copy {
    width: 100%;
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-card {
        flex: 1 1 220px;
    }

    .play-cta {
        flex: 1 1 100%;
    }
}

@media (max-width: 640px) {
    .header-inner {
        gap: 16px;
    }

    .main-nav a {
        padding: 6px 10px;
        font-size: 0.82rem;
    }

    .search-container input {
        width: 110px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-brand {
        margin-right: 0;
    }
}