/* =========================================================
   TOBWENE STORY + EPISODE PLAYER
   ========================================================= */

.story-detail-page {
    min-height: 100vh;
    background: #07080b;
}

.story-detail-hero {
    position: relative;
    min-height: 690px;
    background-size: cover;
    background-position: center;
}

.story-detail-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,.95), rgba(0,0,0,.55) 48%, rgba(0,0,0,.16)),
        linear-gradient(0deg, #07080b 0%, transparent 38%);
}

.story-detail-content {
    position: relative;
    z-index: 2;
    min-height: 690px;
    max-width: 1500px;
    margin: 0 auto;
    padding: 140px 4vw 80px;
    display: flex;
    align-items: flex-end;
    gap: 34px;
}

.story-detail-poster {
    width: 240px;
    flex: 0 0 240px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 26px 60px rgba(0,0,0,.45);
}

.story-detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-detail-copy {
    max-width: 760px;
}

.story-detail-kicker,
.episode-kicker {
    color: #ff6159;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .17em;
}

.story-detail-copy h1,
.episode-details h1,
.episode-lock-screen h1 {
    margin: 8px 0 14px;
    font-size: clamp(2.8rem,5vw,5.5rem);
    line-height: .96;
    letter-spacing: -.06em;
}

.story-detail-copy p,
.episode-details p,
.episode-lock-screen p {
    color: #c4c6cc;
    line-height: 1.6;
}

.story-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.story-detail-meta span,
.story-detail-meta a,
.story-episode-access span {
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: #d6d8dd;
    font-size: .72rem;
}

.story-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.story-play-btn,
.story-list-btn {
    min-height: 48px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
}

.story-play-btn {
    background: #fff;
    color: #111318;
}

.story-list-btn {
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.10);
    color: #fff;
}

.story-episodes-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 4vw 80px;
}

.story-section-head span {
    color: #ff6159;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .16em;
}

.story-section-head h2 {
    margin: 5px 0 18px;
    font-size: 2rem;
}

.story-episode-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.story-episode-row {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 16px;
    background: #101218;
}

.story-episode-row:hover {
    background: #151820;
}

.story-episode-number {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #1a1d24;
    font-weight: 800;
}

.story-episode-info {
    min-width: 0;
    flex: 1;
}

.story-episode-info strong {
    color: #fff;
}

.story-episode-info p {
    margin: 5px 0 8px;
    color: #8f929a;
    font-size: .83rem;
}

.story-episode-access {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.story-access-free {
    color: #71e4b6 !important;
}

.story-episode-play {
    color: #fff;
}

.story-empty {
    padding: 28px;
    border: 1px dashed rgba(255,255,255,.09);
    border-radius: 16px;
    color: #8c9098;
}

.episode-page {
    min-height: 100vh;
    padding: 88px 4vw 80px;
    background: #050609;
}

.episode-topbar {
    max-width: 1400px;
    margin: 0 auto 18px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #aeb1b9;
    font-size: .82rem;
}

.episode-player-shell {
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    background: #000;
}

.episode-video {
    width: 100%;
    max-height: 78vh;
    display: block;
    background: #000;
}

.episode-audio-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.episode-audio-card img {
    width: min(340px,80vw);
    border-radius: 18px;
}

.episode-audio-card audio {
    width: min(700px,100%);
}

.episode-text-story {
    max-width: 850px;
    margin: 0 auto;
    padding: 48px;
    color: #e5e6ea;
    font-size: 1.05rem;
    line-height: 1.85;
}

.episode-placeholder {
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b8f97;
}

.episode-details {
    max-width: 1100px;
    margin: 28px auto 0;
}

.episode-details h1 {
    font-size: clamp(2.4rem,4vw,4.2rem);
}

.episode-lock-screen {
    max-width: 720px;
    margin: 90px auto 0;
    padding: 42px;
    text-align: center;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 0%,rgba(255,59,48,.16),transparent 32%),
        #101218;
}

.episode-lock-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.episode-lock-screen h1 {
    font-size: clamp(2.4rem,5vw,4rem);
}

.episode-unlock-options {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.episode-unlock-options a,
.episode-unlock-options button {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #111318;
    font: inherit;
    font-weight: 800;
}

.episode-unlock-options button[disabled] {
    opacity: .55;
    cursor: not-allowed;
}

.episode-signin-link {
    display: inline-block;
    margin-top: 18px;
    color: #ff655d;
    font-weight: 700;
}

@media (max-width: 760px) {
    .story-detail-content {
        min-height: 650px;
        padding: 120px 18px 60px;
        align-items: flex-end;
    }

    .story-detail-poster {
        display: none;
    }

    .story-detail-copy {
        max-width: 100%;
    }

    .story-episodes-section {
        padding: 24px 18px 100px;
    }

    .episode-page {
        padding: 78px 16px 100px;
    }

    .episode-text-story {
        padding: 26px 20px;
    }

    .episode-lock-screen {
        margin-top: 50px;
        padding: 28px 20px;
    }
}
