/* ============================================
   2024-EP Series Theme — Dark Orange
   Shared across 2024-ep01.html through 2024-ep11.html
   ============================================ */

:root {
    --bg: #0f0f14;
    --card: rgba(255, 255, 255, 0.06);
    --card-hover: rgba(255, 255, 255, 0.10);
    --ink: #e8e8ee;
    --muted: #9a9ab0;
    --accent: #f97316;
    --accent2: #fb923c;
    --accent-glow: rgba(249, 115, 22, 0.25);
    --green: #22c55e;
    --radius: 18px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Prompt', sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.7;
    min-height: 100vh;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: linear-gradient(135deg, #ea580c, #f97316, #fb923c);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.3);
}

.navbar a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.navbar a:hover {
    opacity: 0.85;
}

.nav-brand {
    font-size: 1.1rem;
    font-weight: 700;
}

.hero {
    padding: 60px 20px 50px;
    text-align: center;
    background:
        radial-gradient(ellipse at 30% 10%, rgba(249, 115, 22, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(251, 146, 60, 0.1) 0%, transparent 60%),
        var(--bg);
}

.hero-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    background: linear-gradient(135deg, #ea580c, #fb923c);
    color: #fff;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.3;
    max-width: 800px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #f97316, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.wrap {
    width: min(900px, 92vw);
    margin: 0 auto;
    padding: 30px 0 80px;
}

.video-section {
    margin-bottom: 30px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.section-card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.section-card:hover {
    background: var(--card-hover);
    border-color: rgba(249, 115, 22, 0.2);
    transform: translateY(-2px);
}

.section-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--accent);
}

.section-card p {
    color: var(--muted);
    margin-bottom: 14px;
}

.section-card ul {
    list-style: none;
    padding: 0;
}

.section-card li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--ink);
    font-size: 0.95rem;
}

.section-card li:last-child {
    border-bottom: none;
}

.pt-icon {
    flex-shrink: 0;
    color: var(--green);
}

.link-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(251, 146, 60, 0.08));
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.link-box a {
    color: var(--accent2);
    text-decoration: none;
    font-weight: 600;
    word-break: break-all;
}

.link-box a:hover {
    text-decoration: underline;
}

/* Overview */
.overview-box {
    background: linear-gradient(135deg, #ea580c, #fb923c);
    color: #fff;
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.25);
}

.overview-box h2 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.overview-box p {
    opacity: 0.94;
    line-height: 1.85;
}

/* TOC */
.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin: 15px 0;
    padding: 0;
    list-style: none;
}

.toc-grid a {
    display: block;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--accent);
    transition: var(--transition);
    text-decoration: none;
    color: var(--ink);
}

.toc-grid a:hover {
    transform: translateX(5px);
    border-color: var(--accent);
    background: var(--card-hover);
}

.toc-grid strong {
    display: block;
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

/* Chapter */
.chapter {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 26px;
    margin: 18px 0;
    scroll-margin-top: 80px;
    transition: var(--transition);
}

.chapter:hover {
    box-shadow: var(--shadow);
    border-color: rgba(249, 115, 22, 0.2);
}

.chapter h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ink);
}

.time-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.83rem;
    font-weight: 700;
    margin-bottom: 14px;
    background: rgba(249, 115, 22, 0.12);
    color: var(--accent);
    border: 1px solid rgba(249, 115, 22, 0.25);
}

.time-tag a {
    color: inherit;
    text-decoration: none;
}

.time-tag a:hover {
    text-decoration: underline;
}

.quote-block {
    margin: 10px 0;
    padding: 14px 18px;
    border-left: 4px solid var(--accent);
    background: rgba(249, 115, 22, 0.06);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 0.93rem;
    color: var(--muted);
    line-height: 1.8;
}

.ch-points {
    margin-top: 14px;
    padding: 0;
    list-style: none;
}

.ch-points li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.93rem;
    color: var(--ink);
}

.ch-points li:last-child {
    border-bottom: none;
}

/* Transcript */
.transcript-section {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    margin-bottom: 20px;
    overflow: hidden;
}

.transcript-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

.transcript-header:hover {
    background: var(--card-hover);
}

.transcript-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0;
}

.transcript-toggle {
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.transcript-toggle.open {
    transform: rotate(180deg);
}

.transcript-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.transcript-body.open {
    max-height: none;
}

.transcript-content {
    padding: 0 28px 28px;
}

.ts-block {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ts-block:last-child {
    border-bottom: none;
}

.ts-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    background: rgba(249, 115, 22, 0.15);
    color: var(--accent);
    text-decoration: none;
    margin-bottom: 6px;
    transition: var(--transition);
}

.ts-badge:hover {
    background: rgba(249, 115, 22, 0.3);
}

.ts-block p {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.8;
    margin: 0;
}

/* Nav */
.page-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 30px;
}

.nav-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--ink);
}

.nav-btn:hover {
    background: var(--card-hover);
    border-color: var(--accent);
    color: var(--accent);
}

.nav-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
}

footer {
    text-align: center;
    padding: 30px;
    color: var(--muted);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 30px 0 18px;
}

.section-heading::before {
    content: '';
    width: 5px;
    height: 28px;
    border-radius: 5px;
    background: linear-gradient(180deg, #ea580c, #fb923c);
    flex-shrink: 0;
}

.section-heading h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}

/* Chapter Thumbnail */
.ch-thumb {
    display: block;
    margin: 14px 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.ch-thumb:hover {
    border-color: rgba(249, 115, 22, 0.35);
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.15);
}

.ch-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.ch-thumb figcaption {
    padding: 10px 14px;
    font-size: 0.84rem;
    color: var(--muted);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    line-height: 1.5;
}

@media (max-width: 640px) {
    .navbar {
        padding: 12px 16px;
    }

    .hero {
        padding: 40px 16px 35px;
    }

    .wrap {
        padding: 20px 0 60px;
    }

    .section-card,
    .chapter {
        padding: 20px;
    }

    .transcript-header {
        padding: 16px 20px;
    }

    .transcript-content {
        padding: 0 20px 20px;
    }

    .page-nav {
        flex-direction: column;
    }

    .toc-grid {
        grid-template-columns: 1fr;
    }
}