.tout-savoir-page {
    --brand-cyan-ink: #17708a;
    --brand-orange-deep: #cc4710;
    --night: #06202f;
    min-height: 100vh;
    background: #fff;
    color: var(--brand-ink);
}

.tout-savoir-page [hidden] {
    display: none !important;
}

.tout-savoir-page #headerBackground {
    height: 70px;
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
}

.tout-savoir-page .header_area::after {
    content: none;
}

.knowledge-nav-link[aria-current="page"] {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.knowledge-main {
    padding-top: 70px;
}

/* style.css centre le contenu de toutes les sections : ici les blocs occupent leur largeur. */
.knowledge-main > section {
    align-items: stretch;
}

.knowledge-main :focus-visible,
.episode-modal :focus-visible {
    outline: 3px solid var(--brand-cyan);
    outline-offset: 3px;
}

/* ----- Hero ----- */

.knowledge-hero {
    width: 100%;
    margin-top: -70px;
    padding: 102px max(24px, calc((100% - 1180px) / 2)) 170px;
    color: #fff;
    background-image: url('../img/bg-img/bg.jpg?v=20260915');
    background-position: bottom center;
    background-size: cover;
}

.knowledge-hero :focus-visible {
    outline-color: #fff;
}

.back-link {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
    color: #fff;
    font-size: 0.88rem;
    text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
    gap: 64px;
    align-items: center;
}

/* ----- Lanceur du guide : pile des premières miniatures ----- */

.hero-launcher {
    display: block;
    color: #fff;
    text-decoration: none;
}

.hero-launcher:hover,
.hero-launcher:focus-visible {
    color: #fff;
    text-decoration: none;
}

.hero-launcher:focus-visible {
    outline: none;
}

.launcher-stack {
    position: relative;
    display: block;
    margin: 26px 30px 0 0;
    aspect-ratio: 16 / 9;
}

.launcher-card {
    position: absolute;
    display: block;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 18px 44px rgba(20, 24, 90, 0.28);
    transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 280ms ease;
}

.launcher-card--back,
.launcher-card--middle {
    border: 2px solid rgba(255, 255, 255, 0.45);
}

.launcher-card--back {
    opacity: 0.6;
    transform: translate(28px, -26px) rotate(5deg) scale(0.88);
}

.launcher-card--middle {
    opacity: 0.85;
    transform: translate(14px, -13px) rotate(2.5deg) scale(0.94);
}

.launcher-card--front {
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.75);
}

.launcher-card--front img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.launcher-card--front::after {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 74% 56%, rgba(6, 32, 47, 0.3), transparent 42%);
    content: "";
}

/* Posé sur la tablette dessinée, à droite : le titre de la miniature reste lisible. */
.launcher-play {
    position: absolute;
    z-index: 1;
    top: 56%;
    left: 74%;
    display: grid;
    width: 76px;
    height: 76px;
    margin: -38px 0 0 -38px;
    place-items: center;
    border: 4px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    background: var(--brand-orange-deep);
    color: #fff;
    box-shadow: 0 10px 26px rgba(6, 32, 48, 0.35);
    animation: launcher-pulse 2.4s ease-out 1s 3;
    transition: transform 220ms ease;
}

.launcher-play i {
    margin-left: 5px;
    font-size: 1.45rem;
}

@keyframes launcher-pulse {
    0% {
        box-shadow: 0 10px 26px rgba(6, 32, 48, 0.35), 0 0 0 0 rgba(255, 255, 255, 0.55);
    }
    70% {
        box-shadow: 0 10px 26px rgba(6, 32, 48, 0.35), 0 0 0 20px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 10px 26px rgba(6, 32, 48, 0.35), 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.hero-launcher:hover .launcher-card--back,
.hero-launcher:focus-visible .launcher-card--back {
    transform: translate(36px, -32px) rotate(7deg) scale(0.88);
}

.hero-launcher:hover .launcher-card--middle,
.hero-launcher:focus-visible .launcher-card--middle {
    transform: translate(18px, -16px) rotate(3.5deg) scale(0.94);
}

.hero-launcher:hover .launcher-card--front,
.hero-launcher:focus-visible .launcher-card--front {
    box-shadow: 0 24px 54px rgba(20, 24, 90, 0.36);
    transform: translateY(-3px);
}

.hero-launcher:focus-visible .launcher-card--front {
    border-color: #fff;
    box-shadow: 0 0 0 3px #fff, 0 24px 54px rgba(20, 24, 90, 0.36);
}

.hero-launcher:hover .launcher-play,
.hero-launcher:focus-visible .launcher-play {
    transform: scale(1.08);
}

.launcher-caption {
    display: block;
    margin: 16px 30px 0 0;
}

.launcher-meta {
    color: #dff4f9;
    font-size: 0.84rem;
    white-space: nowrap;
}

.hero-kicker {
    margin-bottom: 12px;
    color: #a8e7f5;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 720px;
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.04;
}

.hero-lead {
    max-width: 700px;
    margin: 0;
    color: #e6f4f8;
    font-size: clamp(1rem, 1.6vw, 1.16rem);
    line-height: 1.65;
}

/* ----- Parcours : chapitres et cartes ----- */

.episodes-section {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 56px 0 72px;
}

.episodes-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 36px;
}

.episodes-heading .section-kicker,
.next-steps .section-kicker {
    margin-bottom: 8px;
    color: var(--brand-cyan-ink);
    text-align: left;
}

.episodes-heading h2,
.next-steps h2 {
    margin: 0;
    color: var(--brand-ink);
    font-size: clamp(1.6rem, 2.8vw, 2.15rem);
    font-weight: 550;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.episodes-heading > p {
    max-width: 450px;
    margin: 0;
    color: var(--brand-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.chapter + .chapter {
    margin-top: 48px;
}

.chapter-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--brand-line);
    color: var(--brand-ink);
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.chapter-index {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-cyan-ink);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

.chapter-title small {
    margin-left: auto;
    color: var(--brand-muted);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0;
    white-space: nowrap;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.episode-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dfe8ed;
    border-radius: 18px;
    background: #fff;
    color: var(--brand-ink);
    box-shadow: 0 4px 16px rgba(19, 55, 72, 0.04);
    text-decoration: none;
    scroll-margin-top: 96px;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.episode-card:hover,
.episode-card:focus-visible {
    border-color: #8ac8d9;
    color: var(--brand-ink);
    box-shadow: 0 16px 36px rgba(19, 55, 72, 0.13);
    text-decoration: none;
    transform: translateY(-4px);
}

.episode-visual {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #d9e8ee;
}

.episode-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.episode-card:hover .episode-visual img,
.episode-card:focus-visible .episode-visual img {
    transform: scale(1.025);
}

.episode-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(6, 32, 47, 0.86);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    box-shadow: 0 4px 12px rgba(6, 32, 48, 0.22);
}

.episode-badge::before {
    font-family: 'Font Awesome 5 Free';
    font-size: 0.6rem;
    font-weight: 900;
    content: "\f00c";
}

.play-button {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    background: var(--brand-orange-deep);
    color: #fff;
    box-shadow: 0 8px 20px rgba(6, 32, 48, 0.24);
    transition: transform 180ms ease;
}

.play-button i {
    margin-left: 3px;
    font-size: 0.85rem;
}

.episode-card:hover .play-button,
.episode-card:focus-visible .play-button {
    transform: scale(1.08);
}

.is-watched .play-button {
    background: rgba(6, 32, 47, 0.86);
}

.episode-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.episode-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--brand-cyan-ink);
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.episode-meta span:last-child {
    color: var(--brand-muted);
    letter-spacing: 0;
    text-transform: none;
}

.episode-title {
    margin: 0 0 12px;
    color: var(--brand-ink);
    font-size: 1.08rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.episode-description {
    flex: 1;
    margin: 0;
    color: var(--brand-muted);
    font-size: 0.86rem;
    line-height: 1.65;
}

/* ----- Et maintenant ? ----- */

.next-steps {
    padding: 56px 24px 64px;
    background: var(--brand-wash);
}

.next-steps-inner {
    display: grid;
    width: min(1180px, 100%);
    margin: 0 auto;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px 48px;
    align-items: center;
}

.next-steps-copy p:last-child {
    max-width: 620px;
    margin: 12px 0 0;
    color: var(--brand-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.next-steps-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cta-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border: 1px solid #cbdde5;
    border-radius: 12px;
    background: #fff;
    color: var(--brand-cyan-ink);
    font-size: 0.92rem;
    font-weight: 650;
    text-decoration: none;
    transition: filter 160ms ease, transform 160ms ease;
}

.cta-button--primary {
    border-color: var(--brand-orange-deep);
    background: var(--brand-orange-deep);
    color: #fff;
}

.cta-button:hover,
.cta-button:focus-visible {
    color: var(--brand-cyan-ink);
    text-decoration: none;
    filter: brightness(0.96);
    transform: translateY(-1px);
}

.cta-button--primary:hover,
.cta-button--primary:focus-visible {
    color: #fff;
}

.next-steps-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin: 0;
    padding-top: 22px;
    border-top: 1px solid #dbe6ec;
    grid-column: 1 / -1;
    font-size: 0.86rem;
}

.next-steps-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-muted);
    text-decoration: none;
}

.next-steps-links a:hover,
.next-steps-links a:focus-visible {
    color: var(--brand-cyan-ink);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.next-steps-links i {
    color: var(--brand-cyan-ink);
}

/* ----- Lecteur ----- */

.episode-modal:not([open]) {
    display: none;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.episode-modal {
    width: min(960px, calc(100% - 40px));
    max-width: none;
    max-height: calc(100dvh - 40px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: 20px;
    background: #fff;
    color: var(--brand-ink);
    box-shadow: 0 30px 100px rgba(3, 20, 30, 0.45);
}

.episode-modal::backdrop {
    background: rgba(4, 20, 30, 0.82);
    backdrop-filter: blur(5px);
}

.modal-shell {
    padding: 20px;
}

.modal-topline {
    display: flex;
    min-height: 40px;
    align-items: center;
    gap: 18px;
    padding: 0 0 16px;
}

.modal-position {
    color: var(--brand-cyan-ink);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.modal-steps {
    display: flex;
    gap: 6px;
    margin: 0 0 0 auto;
    padding: 0;
    list-style: none;
}

.modal-steps button {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    padding: 0;
    border: 1px solid #cbdde5;
    border-radius: 50%;
    background: #fff;
    color: var(--brand-cyan-ink);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
}

.modal-steps button:hover {
    border-color: var(--brand-cyan-ink);
    background: var(--brand-wash);
}

.modal-steps button.is-watched {
    border-color: var(--brand-orange-deep);
    background: var(--brand-orange-deep);
    color: #fff;
}

.modal-steps button.is-current {
    border-color: var(--night);
    background: var(--night);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(6, 32, 47, 0.16);
}

.modal-close {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border: 1px solid var(--brand-line);
    border-radius: 50%;
    background: #fff;
    color: var(--brand-ink);
    cursor: pointer;
}

.modal-close:hover {
    background: var(--brand-wash);
}

.player-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    background: #07131a;
}

.player-frame > #episode-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* À la fin d'un épisode, le lecteur cède la place à l'écran de fin (rien n'est posé par-dessus). */
.player-frame.is-ended > #episode-player {
    visibility: hidden;
}

.player-frame:fullscreen {
    width: 100%;
    height: 100%;
    border-radius: 0;
    aspect-ratio: auto;
}

.player-frame.is-loading::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    border: 4px solid rgba(255, 255, 255, 0.22);
    border-top-color: #fff;
    border-radius: 50%;
    animation: player-spin 800ms linear infinite;
    content: "";
}

@keyframes player-spin {
    to {
        transform: rotate(360deg);
    }
}

.player-overlay {
    position: absolute;
    z-index: 2;
    display: grid;
    inset: 0;
    place-items: center;
    padding: 24px;
    background: #06151d;
    color: #fff;
}

.overlay-panel {
    width: min(100%, 680px);
    text-align: center;
}

.overlay-panel--next {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    text-align: left;
}

.overlay-thumbnail {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}

.overlay-kicker {
    margin: 0 0 8px;
    color: #a8e7f5;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.overlay-title {
    margin: 0;
    color: #fff;
    font-size: clamp(1.05rem, 2.6vw, 1.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.overlay-text,
.overlay-countdown {
    margin: 8px 0 0;
    color: #cfe0e7;
    font-size: 0.88rem;
}

.overlay-countdown {
    font-variant-numeric: tabular-nums;
}

.overlay-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.overlay-panel:not(.overlay-panel--next) .overlay-actions {
    justify-content: center;
}

.overlay-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 10px;
    background: transparent;
    color: #fff;
    font-size: 0.84rem;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
}

.overlay-button:hover,
.overlay-button:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
}

.overlay-button--primary {
    border-color: var(--brand-orange-deep);
    background: var(--brand-orange-deep);
}

.overlay-button--primary:hover,
.overlay-button--primary:focus-visible {
    background: #b83f0d;
}

.overlay-button--primary i {
    font-size: 0.7rem;
}

.overlay-button--quiet {
    border-color: transparent;
    color: #cfe0e7;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.player-overlay :focus-visible {
    outline-color: #fff;
}

.modal-navigation {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
}

.modal-nav-button {
    display: flex;
    min-width: 0;
    min-height: 52px;
    max-width: 48%;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border: 1px solid #cbdde5;
    border-radius: 10px;
    background: #fff;
    color: var(--brand-cyan-ink);
    text-align: left;
    cursor: pointer;
}

.modal-nav-button--next {
    border-color: var(--brand-orange-deep);
    background: var(--brand-orange-deep);
    color: #fff;
    text-align: right;
}

.modal-nav-text {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.modal-nav-label {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
}

.modal-nav-title {
    overflow: hidden;
    font-size: 0.84rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal-nav-button:hover:not(:disabled) {
    filter: brightness(0.96);
}

.modal-nav-button:disabled {
    border-color: #dce4e8;
    background: #edf2f4;
    color: #6e7c85;
    cursor: not-allowed;
}

.modal-details {
    padding: 22px 4px 18px;
}

.modal-details h2 {
    margin: 0 0 10px;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    letter-spacing: -0.025em;
}

.modal-details p {
    max-width: 760px;
    margin: 0;
    color: var(--brand-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.modal-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
    padding: 14px 4px 2px;
    border-top: 1px solid var(--brand-line);
    color: var(--brand-muted);
    font-size: 0.8rem;
}

.autoplay-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    cursor: pointer;
}

.autoplay-toggle input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 0;
    accent-color: var(--brand-orange-deep);
    cursor: pointer;
}

.modal-option-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.modal-youtube-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--brand-muted);
    font-size: inherit;
    text-decoration: none;
    cursor: pointer;
}

.modal-youtube-link:hover,
.modal-youtube-link:focus-visible {
    color: var(--brand-cyan-ink);
    text-decoration: underline;
    text-underline-offset: 4px;
}

body:has(.episode-modal[open]) {
    overflow: hidden;
}

/* ----- Pied de page ----- */

.tout-savoir-page footer.footer-social-icon {
    margin-bottom: 0;
    background: #556abd url('../img/bg-img/bg.jpg?v=20260915') bottom center / cover;
}

.tout-savoir-page .footer-text img {
    width: min(220px, 45%);
}

/* ----- Tablette ----- */

@media (max-width: 1023px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hero-launcher {
        width: min(100%, 460px);
    }

    .episodes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .episodes-heading {
        align-items: start;
        flex-direction: column;
        gap: 14px;
    }

    .next-steps-inner {
        grid-template-columns: 1fr;
    }
}

/* ----- Téléphone : le parcours devient une liste compacte ----- */

@media (max-width: 767px) {
    .knowledge-hero {
        padding: 96px 24px 110px;
    }

    .back-link {
        margin-bottom: 30px;
    }

    .launcher-stack {
        margin: 20px 22px 0 0;
    }

    .launcher-card--back {
        transform: translate(20px, -18px) rotate(4.5deg) scale(0.88);
    }

    .launcher-card--middle {
        transform: translate(10px, -9px) rotate(2.2deg) scale(0.94);
    }

    .launcher-play {
        width: 62px;
        height: 62px;
        margin: -31px 0 0 -31px;
        border-width: 3px;
    }

    .launcher-play i {
        margin-left: 4px;
        font-size: 1.15rem;
    }

    .launcher-caption {
        margin-right: 22px;
    }

    .hero-copy h1 {
        font-size: clamp(2.25rem, 12vw, 3.2rem);
    }

    .episodes-section {
        width: min(100% - 32px, 560px);
        padding: 40px 0 48px;
    }

    .episodes-heading {
        margin-bottom: 28px;
    }

    .chapter + .chapter {
        margin-top: 36px;
    }

    .chapter-title {
        margin-bottom: 14px;
        padding-bottom: 12px;
        font-size: 1rem;
    }

    .episodes-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .episode-card {
        flex-direction: row;
        align-items: center;
        gap: 14px;
        padding: 10px;
        border-radius: 14px;
    }

    .episode-card:hover,
    .episode-card:focus-visible {
        transform: none;
    }

    .episode-visual {
        flex: 0 0 43%;
        border-radius: 9px;
    }

    .episode-badge {
        top: 6px;
        right: auto;
        left: 6px;
        padding: 3px 7px;
        font-size: 0.62rem;
    }

    .play-button {
        right: 6px;
        bottom: 6px;
        width: 30px;
        height: 30px;
        border-width: 2px;
    }

    .play-button i {
        margin-left: 2px;
        font-size: 0.6rem;
    }

    .episode-content {
        min-width: 0;
        padding: 0 4px 0 0;
    }

    .episode-meta {
        margin-bottom: 6px;
        font-size: 0.64rem;
    }

    .episode-title {
        margin: 0;
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .episode-description {
        display: none;
    }

    .next-steps {
        padding: 40px 16px 48px;
    }

    .next-steps-inner {
        width: min(100%, 560px);
    }

    .cta-button {
        flex: 1 1 150px;
    }

    .episode-modal {
        width: calc(100% - 20px);
        max-height: calc(100dvh - 20px);
        border-radius: 14px;
    }

    .modal-shell {
        padding: 12px;
    }

    .modal-topline {
        flex-wrap: wrap;
        gap: 10px;
        padding: 2px 0 12px;
    }

    .modal-close {
        margin-left: auto;
    }

    .modal-steps {
        order: 3;
        width: 100%;
        justify-content: space-between;
        margin: 0;
    }

    .modal-steps button {
        width: 30px;
        height: 30px;
    }

    .player-frame {
        border-radius: 8px;
    }

    .player-overlay {
        padding: 12px;
    }

    .overlay-panel--next {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .overlay-thumbnail,
    .overlay-text,
    .overlay-button--quiet {
        display: none;
    }

    .overlay-kicker {
        margin-bottom: 4px;
        font-size: 0.64rem;
    }

    .overlay-countdown {
        margin-top: 4px;
        font-size: 0.78rem;
    }

    .overlay-actions,
    .overlay-panel--next .overlay-actions {
        justify-content: center;
        gap: 8px;
        margin-top: 10px;
    }

    .overlay-button {
        min-height: 38px;
        padding: 7px 14px;
        font-size: 0.78rem;
    }

    .modal-navigation {
        gap: 10px;
        padding-top: 12px;
    }

    .modal-nav-button {
        max-width: none;
        flex: 1 1 0;
        gap: 8px;
        padding: 8px 12px;
    }

    .modal-nav-title {
        display: -webkit-box;
        font-size: 0.76rem;
        line-height: 1.3;
        white-space: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .modal-details {
        padding: 18px 2px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .launcher-card,
    .launcher-play {
        transition: none;
        animation: none;
    }

    .hero-launcher:hover .launcher-card--front,
    .hero-launcher:hover .launcher-play {
        transform: none;
    }

    .episode-card,
    .episode-visual img,
    .play-button,
    .cta-button {
        transition: none;
    }

    .episode-card:hover,
    .episode-card:focus-visible,
    .cta-button:hover {
        transform: none;
    }

    .episode-card:hover .episode-visual img,
    .episode-card:hover .play-button {
        transform: none;
    }

    .player-frame.is-loading::after {
        animation-duration: 2400ms;
    }
}
