.rt-podcast-page,
.rt-podcast-page * { box-sizing: border-box; }

.rt-podcast-page {
    --podcast-dark: #063f2b;
    --podcast-green: #0c7d43;
    --podcast-gold: #cd9641;
    --podcast-cream: #fffdf3;
    --podcast-line: rgba(6, 63, 43, .2);
    --podcast-crossfade-duration: 5s;
    width: 100%;
    min-height: 60vh;
    padding: clamp(28px, 5vw, 72px) 18px clamp(48px, 7vw, 96px);
    overflow: hidden;
    color: var(--podcast-dark);
    background:
        radial-gradient(circle at 12% 12%, rgba(205, 150, 65, .16), transparent 32%),
        linear-gradient(180deg, #e9fae9 0%, #f6fff5 100%);
}

.rt-podcast-intro,
.rt-podcast-list {
    width: min(1180px, 100%);
    margin-inline: auto;
}

.rt-podcast-intro {
    margin-bottom: clamp(28px, 5vw, 58px);
    text-align: center;
}

.rt-podcast-kicker {
    margin: 0 0 9px;
    color: #8b5d18;
    font-size: .83rem;
    font-weight: 800;
    letter-spacing: .14em;
}

.rt-podcast-intro h1 {
    max-width: 900px;
    margin: 0 auto 16px;
    color: var(--podcast-dark);
    font-size: clamp(2rem, 5vw, 4.15rem);
    line-height: 1.02;
    text-wrap: balance;
}

.rt-podcast-intro > p:last-child {
    max-width: 780px;
    margin: 0 auto;
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    line-height: 1.65;
}

.rt-podcast-list {
    display: grid;
    gap: clamp(22px, 4vw, 38px);
}

.rt-podcast-card {
    display: grid;
    grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 54px);
    align-items: center;
    padding: clamp(18px, 3vw, 34px);
    border: 1px solid var(--podcast-line);
    border-radius: 24px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 18px 48px rgba(6, 63, 43, .1);
}

.rt-podcast-cover-stage {
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
    border: 3px solid var(--podcast-gold);
    border-radius: 22px;
    background: #06110d;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .2);
    will-change: transform, opacity;
}

.rt-podcast-cover {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    object-fit: contain;
}

.rt-podcast-cover-stage.is-visible.spin-right-left {
    animation: podcast-reveal-from-right 6s ease-in-out both;
}

.rt-podcast-cover-stage.is-visible.spin-left-right {
    animation: podcast-reveal-from-left 6s ease-in-out both;
}

.rt-podcast-cover-stage.is-visible.spin-top-bottom {
    animation: podcast-reveal-from-top 6s ease-in-out both;
}

.rt-podcast-cover-stage.is-visible.spin-bottom-top {
    animation: podcast-reveal-from-bottom 6s ease-in-out both;
}

@keyframes podcast-reveal-from-right {
    from { opacity: .72; transform: translate3d(18px, 0, 0) scale(.78); }
    to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes podcast-reveal-from-left {
    from { opacity: .72; transform: translate3d(-18px, 0, 0) scale(.78); }
    to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes podcast-reveal-from-top {
    from { opacity: .72; transform: translate3d(0, -14px, 0) scale(.78); }
    to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes podcast-reveal-from-bottom {
    from { opacity: .72; transform: translate3d(0, 14px, 0) scale(.78); }
    to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

.rt-podcast-content { min-width: 0; }

.rt-podcast-meta {
    margin: 0 0 8px;
    color: #8b5d18;
    font-size: .88rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.rt-podcast-content h2 {
    margin: 0 0 10px;
    overflow-wrap: anywhere;
    color: var(--podcast-dark);
    font-size: clamp(1.65rem, 3.5vw, 2.65rem);
    line-height: 1.08;
    text-wrap: balance;
}

.rt-podcast-subtitle {
    margin: 0 0 16px;
    color: #7e571c;
    font-size: 1.08rem;
    font-weight: 750;
}

.rt-podcast-summary {
    margin: 0 0 22px;
    overflow-wrap: anywhere;
    font-size: 1.05rem;
    line-height: 1.7;
}

.rt-podcast-player {
    padding: 14px;
    border: 1px solid var(--podcast-line);
    border-radius: 14px;
    background: var(--podcast-cream);
}

.rt-podcast-player strong {
    display: block;
    margin-bottom: 9px;
}

.rt-podcast-player audio {
    display: block;
    width: 100%;
    max-width: 680px;
}

.rt-podcast-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.rt-podcast-actions a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border: 1px solid var(--podcast-green);
    border-radius: 999px;
    color: #fff;
    background: var(--podcast-green);
    font-weight: 800;
    text-decoration: none;
}

.rt-podcast-actions a + a {
    color: var(--podcast-dark);
    background: #fff;
}

.rt-podcast-actions a:hover,
.rt-podcast-actions a:focus-visible {
    outline: 3px solid rgba(205, 150, 65, .55);
    outline-offset: 2px;
}

.rt-podcast-empty {
    margin: 0;
    padding: 28px;
    border: 1px solid var(--podcast-line);
    border-radius: 18px;
    background: #fff;
    text-align: center;
    font-size: 1.08rem;
}

.rt-podcast-detail-wrap {
    width: min(1180px, 100%);
    margin-inline: auto;
}

.rt-podcast-back,
.rt-podcast-download {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border: 1px solid var(--podcast-green);
    border-radius: 999px;
    color: var(--podcast-dark);
    background: #fff;
    font-weight: 800;
    text-decoration: none;
}

.rt-podcast-detail-heading {
    max-width: 940px;
    margin: clamp(24px, 4vw, 44px) 0 24px;
}

.rt-podcast-detail-heading h1 {
    margin: 0 0 10px;
    overflow-wrap: anywhere;
    color: var(--podcast-dark);
    font-size: clamp(2rem, 5vw, 4.2rem);
    line-height: 1.03;
    text-wrap: balance;
}

.rt-podcast-detail-heading p {
    margin: 0;
    color: #7e571c;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 750;
}

.rt-podcast-detail-player {
    overflow: hidden;
    border: 2px solid var(--podcast-gold);
    border-radius: 24px;
    background: #e8f3df;
    box-shadow: 0 22px 58px rgba(6, 63, 43, .16);
}

.rt-podcast-slider {
    position: relative;
    width: 100%;
    min-height: clamp(360px, 62vw, 690px);
    overflow: hidden;
    background: linear-gradient(145deg, #dcefd8, #fdf4dd);
}

.rt-podcast-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity var(--podcast-crossfade-duration) ease,
        visibility var(--podcast-crossfade-duration) ease;
}

.rt-podcast-slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
}

.rt-podcast-slide picture,
.rt-podcast-slide img {
    display: block;
    width: 100%;
    height: 100%;
}

.rt-podcast-slide img {
    object-fit: cover;
}

.rt-podcast-slide figcaption {
    position: absolute;
    right: clamp(14px, 3vw, 34px);
    bottom: clamp(16px, 3vw, 32px);
    left: clamp(14px, 3vw, 34px);
    z-index: 2;
    width: fit-content;
    max-width: min(720px, calc(100% - 28px));
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 12px;
    color: #fff;
    background: rgba(3, 43, 27, .82);
    box-shadow: 0 8px 26px rgba(0, 0, 0, .2);
    backdrop-filter: blur(6px);
}

.rt-podcast-slide figcaption strong {
    display: block;
    margin-bottom: 3px;
}

.rt-podcast-slide figcaption p {
    margin: 0;
}

.rt-podcast-audio-panel {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: auto minmax(240px, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px clamp(16px, 3vw, 30px);
    border-top: 2px solid var(--podcast-gold);
    background: rgba(255, 253, 243, .98);
}

.rt-podcast-play-toggle {
    min-height: 52px;
    padding: 12px 22px;
    border: 2px solid var(--podcast-dark);
    border-radius: 999px;
    color: #fff;
    background: var(--podcast-dark);
    font: inherit;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.rt-podcast-play-toggle:hover,
.rt-podcast-play-toggle:focus-visible {
    border-color: var(--podcast-gold);
    outline: 3px solid rgba(205, 150, 65, .38);
    outline-offset: 2px;
}

.rt-podcast-play-toggle.is-playing {
    color: var(--podcast-dark);
    background: var(--podcast-gold);
}

.rt-podcast-audio-panel audio {
    display: block;
    width: 100%;
}

.rt-podcast-detail-copy,
.rt-podcast-transcript {
    margin-top: 24px;
    padding: clamp(18px, 3vw, 32px);
    border: 1px solid var(--podcast-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .92);
    font-size: 1.04rem;
    line-height: 1.7;
}

.rt-podcast-transcript summary {
    cursor: pointer;
    color: var(--podcast-dark);
    font-size: 1.15rem;
    font-weight: 800;
}

.rt-podcast-transcript > div {
    margin-top: 18px;
}

.rt-podcast-read-aloud {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px 20px;
    align-items: center;
    margin-top: 24px;
    padding: clamp(18px, 3vw, 26px);
    border: 2px solid var(--podcast-gold);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 253, 243, .98), rgba(232, 243, 223, .98));
    box-shadow: 0 12px 30px rgba(6, 63, 43, .1);
}

.rt-podcast-read-aloud[hidden] {
    display: none;
}

.rt-podcast-read-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rt-podcast-read-heading > strong {
    color: var(--podcast-dark);
    font-size: 1.15rem;
}

.rt-podcast-read-languages {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.rt-podcast-read-languages button {
    display: inline-grid;
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    border: 2px solid var(--podcast-gold);
    border-radius: 50%;
    color: var(--podcast-dark);
    background: #fffdf3;
    font: inherit;
    font-size: .83rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.rt-podcast-read-languages button.is-active {
    border-color: var(--podcast-dark);
    color: #fff;
    background: var(--podcast-dark);
    box-shadow: 0 0 0 3px rgba(205, 150, 65, .3);
}

.rt-podcast-read-languages button:hover,
.rt-podcast-read-languages button:focus-visible {
    outline: 3px solid rgba(205, 150, 65, .35);
    outline-offset: 2px;
}

.rt-podcast-read-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rt-podcast-read-controls button {
    min-height: 46px;
    padding: 10px 18px;
    border: 1px solid var(--podcast-dark);
    border-radius: 10px;
    color: #fff;
    background: var(--podcast-dark);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.rt-podcast-read-controls button:hover:not(:disabled),
.rt-podcast-read-controls button:focus-visible {
    border-color: var(--podcast-gold);
    outline: 3px solid rgba(205, 150, 65, .35);
    outline-offset: 2px;
}

.rt-podcast-read-controls button:disabled {
    cursor: not-allowed;
    opacity: .48;
}

.rt-podcast-read-status {
    grid-column: 1 / -1;
    min-height: 1.4em;
    margin: 0;
    color: #365548;
    font-size: .95rem;
}

.rt-podcast-ai-voice-notice {
    grid-column: 1 / -1;
    margin: 0;
    color: #52665d;
    font-size: .84rem;
    line-height: 1.45;
}

.rt-podcast-ai-voice-notice[hidden] {
    display: none;
}

@media (max-width: 760px) {
    .rt-podcast-page { padding-inline: 14px; }
    .rt-podcast-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        border-radius: 18px;
    }
    .rt-podcast-cover-stage { width: min(100%, 330px); }
    .rt-podcast-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
    .rt-podcast-actions a { width: 100%; }
    .rt-podcast-detail-player { border-radius: 17px; }
    .rt-podcast-slider { min-height: min(118vw, 560px); }
    .rt-podcast-slide figcaption { bottom: 12px; font-size: .92rem; }
    .rt-podcast-audio-panel { grid-template-columns: 1fr; }
    .rt-podcast-play-toggle { width: 100%; white-space: normal; }
    .rt-podcast-download { width: 100%; }
    .rt-podcast-read-aloud { grid-template-columns: 1fr; }
    .rt-podcast-read-controls { display: grid; grid-template-columns: 1fr; }
    .rt-podcast-read-controls button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .rt-podcast-cover-stage.is-visible {
        animation: none !important;
        transform: none !important;
    }
    .rt-podcast-slide { transition: none; }
}
