:root {
    --bg-color: #0a0608;
    --bg-elevated: #110c0f;
    --text-primary: #f0ebe3;
    --text-secondary: rgba(240, 235, 227, 0.5);
    --accent: #c9a84c;
    --accent-hover: #e0bc55;
    --rose: #8b3a4a;
    --rose-soft: rgba(139, 58, 74, 0.3);
    --glass-bg: rgba(17, 12, 15, 0.7);
    --glass-border: rgba(201, 168, 76, 0.15);
    --gold-faint: rgba(201, 168, 76, 0.12);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
}

::selection {
    background: var(--rose);
    color: var(--text-primary);
}

.scrolly-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Video Panel (Sticky on Desktop) */
.video-panel {
    flex: 6;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(139, 58, 74, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(201, 168, 76, 0.05) 0%, transparent 55%),
        var(--bg-color);
    border-right: 1px solid var(--glass-border);
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow:
        0 0 60px rgba(201, 168, 76, 0.06),
        0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background-color: #000;
    border: 1px solid var(--gold-faint);
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-details {
    width: 100%;
    max-width: 800px;
    margin-top: 1.5rem;
    text-align: center;
}

.book-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 400;
    font-style: italic;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.scene-title {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.3em;
}

.cta-container {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    max-width: 320px;
}

.btn-primary, .btn-secondary {
    text-align: center;
    padding: 12px 24px;
    border-radius: 24px;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-color);
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(201, 168, 76, 0.25);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: rgba(240, 235, 227, 0.6);
    border: 1px solid rgba(240, 235, 227, 0.08);
}

.btn-secondary:hover {
    border-color: rgba(240, 235, 227, 0.2);
    color: var(--text-primary);
}

/* Transcript Panel (Scrollable) */
.transcript-panel {
    flex: 4;
    padding: 4rem;
    overflow-y: auto;
}

.transcript-intro {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.transcript-intro h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.transcript-intro .subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.2em;
}

.transcript-line {
    padding: 1.5rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    transition: all 0.4s ease;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.transcript-line:hover {
    background: rgba(240, 235, 227, 0.02);
    color: rgba(240, 235, 227, 0.7);
}

/* Active highlighting when video reaches this timestamp */
.transcript-line.active {
    color: var(--text-primary);
    background: var(--glass-bg);
    border-left: 3px solid var(--accent);
    transform: scale(1.01);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .scrolly-container {
        flex-direction: column;
    }

    .video-panel {
        height: auto;
        position: relative;
        padding: 1.5rem;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .video-wrapper {
        position: sticky;
        top: 0.5rem;
        z-index: 10;
    }

    .video-details {
        margin-top: 1rem;
    }

    .cta-container {
        margin-top: 1.5rem;
    }

    .transcript-panel {
        padding: 2rem 1.5rem;
    }

    .transcript-intro h1 {
        font-size: 2rem;
    }

    .transcript-line {
        font-size: 1.1rem;
        padding: 1.2rem 1rem;
    }
}
