/* Personal podcast — gold / glass RTL */

:root {
    --bottom-nav-offset: calc(15px + 68px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 768px) {
    :root {
        --bottom-nav-offset: calc(12px + 56px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 360px) {
    :root {
        --bottom-nav-offset: calc(8px + 50px + env(safe-area-inset-bottom, 0px));
    }
}

.podcast-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 4px 0 calc(var(--bottom-nav-offset, 83px) + 16px);
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: clip;
}

.podcast-hero {
    text-align: center;
    margin-bottom: 36px;
    animation: podcast-fade-up .55s ease both;
    min-width: 0;
    max-width: 100%;
}

.podcast-hero--season {
    text-align: right;
}

.podcast-hero__lead--season {
    margin-inline: auto;
    max-width: 640px;
    text-align: center;
}

.podcast-hero__eyebrow {
    display: inline-block;
    color: var(--primary-color, #dab25d);
    font-family: 'Kalameh', sans-serif;
    font-size: .95rem;
    letter-spacing: .04em;
    margin-bottom: 10px;
}

.podcast-hero__title {
    margin: 0 0 12px;
    font-family: 'Kalameh', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--text-heading, var(--text-primary));
}

.podcast-hero__lead {
    margin: 0 auto;
    max-width: 640px;
    color: var(--text-secondary);
    line-height: 2;
    font-size: 1.05rem;
    font-family: 'Kalameh', sans-serif;
}

.podcast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
    gap: 20px;
}

.podcast-season-card,
.podcast-episode-row,
.podcast-player {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.podcast-season-card__link {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    color: inherit;
    text-decoration: none;
    min-width: 0;
}

.podcast-season-card__footer {
    display: flex;
    justify-content: flex-end;
    padding: 0 16px 14px;
}

.podcast-season-card {
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    animation: podcast-fade-up .6s ease both;
}

.podcast-season-card:hover {
    transform: translateY(-4px);
    border-color: rgba(218, 178, 93, .45);
    box-shadow: var(--glass-shadow), 0 0 0 1px rgba(218, 178, 93, .12);
}

.podcast-season-card__cover {
    aspect-ratio: 8 / 5;
    background:
        radial-gradient(circle at 30% 20%, rgba(218, 178, 93, .28), transparent 55%),
        linear-gradient(145deg, rgba(10, 45, 48, .85), rgba(8, 28, 32, .95));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.podcast-season-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.podcast-season-card__cover-icon {
    color: var(--primary-color, #dab25d);
    opacity: .85;
}

.podcast-season-card__body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.podcast-season-card__meta,
.podcast-episode-row__meta,
.podcast-player__meta {
    color: var(--primary-color, #dab25d);
    font-size: .85rem;
    font-family: 'Kalameh', sans-serif;
}

.podcast-season-card__title,
.podcast-episode-row__title,
.podcast-player__title {
    margin: 0;
    font-family: 'Kalameh', sans-serif;
    color: var(--text-heading, var(--text-primary));
    font-weight: 700;
    line-height: 1.5;
    min-width: 0;
    overflow-wrap: anywhere;
}

.podcast-season-card__title { font-size: 1.2rem; }
.podcast-episode-row__title { font-size: 1.05rem; }
.podcast-player__title { font-size: clamp(1.4rem, 3vw, 2rem); }

.podcast-season-card__desc,
.podcast-episode-row__desc,
.podcast-player__desc {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: .95rem;
}

.podcast-empty {
    border-radius: 18px;
    padding: 40px 24px;
    text-align: center;
    color: var(--text-muted, var(--text-secondary));
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.podcast-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 22px;
    font-size: .92rem;
    font-family: 'Kalameh', sans-serif;
}

.podcast-breadcrumb a {
    color: var(--primary-color, #dab25d);
    text-decoration: none;
}

.podcast-breadcrumb span {
    color: var(--text-muted, var(--text-secondary));
}

.podcast-episode-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
}

.podcast-episode-row {
    border-radius: 16px;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
    animation: podcast-fade-up .55s ease both;
}

.podcast-episode-row:hover {
    border-color: rgba(218, 178, 93, .4);
    transform: translateX(-3px);
}

.podcast-episode-row.is-active {
    border-color: rgba(218, 178, 93, .55);
    box-shadow: 0 0 0 1px rgba(218, 178, 93, .18);
}

.podcast-episode-row__play {
    appearance: none;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    position: relative;
    color: inherit;
    font: inherit;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.podcast-episode-row__cover {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
    display: block;
    transition: opacity .2s ease, filter .2s ease;
    background:
        radial-gradient(circle at 30% 20%, rgba(218, 178, 93, .28), transparent 55%),
        linear-gradient(145deg, rgba(10, 45, 48, .85), rgba(8, 28, 32, .95));
}

.podcast-episode-row__play:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.podcast-episode-row__play:focus-visible {
    outline: 2px solid rgba(218, 178, 93, .75);
    outline-offset: 3px;
    border-radius: 14px;
}

.podcast-episode-row__num {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(218, 178, 93, .14);
    color: var(--primary-color, #dab25d);
    font-family: 'Kalameh', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    transition: opacity .2s ease, transform .2s ease;
}

.podcast-episode-row__play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(226, 191, 114, .95), rgba(196, 157, 74, .92));
    color: #1a160f;
    opacity: 0;
    transform: scale(.88);
    transition: opacity .2s ease, transform .2s ease;
    box-shadow: 0 6px 16px rgba(218, 178, 93, .28);
}

.podcast-episode-row__play:hover .podcast-episode-row__play-icon,
.podcast-episode-row.is-active .podcast-episode-row__play-icon,
.podcast-episode-row__play[aria-pressed="true"] .podcast-episode-row__play-icon {
    opacity: 1;
    transform: scale(1);
}

.podcast-episode-row__play:hover .podcast-episode-row__num,
.podcast-episode-row.is-active .podcast-episode-row__num,
.podcast-episode-row__play[aria-pressed="true"] .podcast-episode-row__num {
    opacity: 0;
}

.podcast-episode-row__play:hover .podcast-episode-row__cover,
.podcast-episode-row.is-active .podcast-episode-row__cover,
.podcast-episode-row__play[aria-pressed="true"] .podcast-episode-row__cover {
    opacity: .42;
    filter: brightness(.72);
}

.podcast-episode-row__body {
    appearance: none;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    min-width: 0;
    width: 100%;
    text-align: inherit;
    color: inherit;
    font: inherit;
    cursor: pointer;
    display: block;
}

.podcast-episode-row__body:focus-visible {
    outline: 2px solid rgba(218, 178, 93, .75);
    outline-offset: 3px;
    border-radius: 10px;
}

.podcast-episode-row__duration {
    appearance: none;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    color: var(--text-muted, var(--text-secondary));
    font-size: .88rem;
    white-space: nowrap;
    font-family: 'Kalameh', sans-serif;
    cursor: pointer;
}

.podcast-episode-row__duration:focus-visible {
    outline: 2px solid rgba(218, 178, 93, .75);
    outline-offset: 2px;
    border-radius: 6px;
}

.podcast-episode-row__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.podcast-episode-row__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.podcast-episode-row__desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.podcast-hero__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 0;
}

.podcast-hero__row .podcast-hero__title {
    margin: 0;
    flex: 1 1 12rem;
    min-width: 0;
}

/* —— Sticky mini-player (above mobile-nav) —— */
.podcast-mini {
    position: fixed;
    z-index: 1001;
    bottom: calc(var(--bottom-nav-offset, 83px) + 10px);
    left: 15px;
    right: 15px;
    height: auto;
    min-height: 68px;
    max-width: calc(100vw - 30px);
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1.2fr) auto minmax(0, 1fr);
    grid-template-areas:
        "art viz meta controls progress";
    align-items: center;
    gap: 8px 12px;
    padding: 10px 14px;
    border-radius: 18px;
    background: rgba(12, 28, 32, 0.72);
    border: 1px solid rgba(218, 178, 93, 0.28);
    box-shadow:
        0 10px 32px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    font-family: 'Kalameh', sans-serif;
    color: var(--text-primary);
}

.podcast-mini > .podcast-mini__art { grid-area: art; }
.podcast-mini > .podcast-mini__viz-btn { grid-area: viz; }
.podcast-mini > .podcast-mini__meta { grid-area: meta; }
.podcast-mini > .podcast-mini__controls { grid-area: controls; }
.podcast-mini > .podcast-mini__progress-wrap { grid-area: progress; }
.podcast-mini > .podcast-mini__caption { grid-area: caption; }

.podcast-mini.has-caption {
    grid-template-columns: auto auto minmax(0, 1.2fr) auto minmax(0, 1fr);
    grid-template-areas:
        "art viz meta controls progress"
        "caption caption caption caption caption";
    padding-bottom: 12px;
    gap: 6px 12px;
}

.podcast-mini__caption {
    margin: 0;
    min-width: 0;
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(218, 178, 93, 0.22);
    background: rgba(8, 22, 26, 0.55);
    color: var(--text-primary, #f2f5f4);
    font-family: 'Kalameh', sans-serif;
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.65;
    text-align: center;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.podcast-mini__caption[hidden] {
    display: none !important;
}

[data-theme="light"] .podcast-mini__caption {
    background: rgba(255, 250, 240, 0.78);
    border-color: rgba(196, 157, 74, 0.28);
    color: var(--text-primary, #1a1f1e);
}

/* Native <audio> must not occupy a grid cell (it overflows 320–480px). */
.podcast-mini > audio,
.podcast-mini__audio {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    border: 0;
    pointer-events: none;
}

[data-theme="light"] .podcast-mini {
    background: rgba(250, 244, 232, 0.94);
    border-color: rgba(160, 120, 42, 0.40);
    box-shadow:
        0 8px 26px rgba(55, 38, 12, 0.12),
        inset 0 1px 0 rgba(255, 250, 240, 0.82);
}

[data-theme="light"] .podcast-mini__art {
    background: #e8dfcf;
}

.podcast-mini[hidden] {
    display: none !important;
}

.podcast-mini__art {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(218, 178, 93, 0.22);
    background: rgba(8, 28, 32, 0.45);
}

.podcast-mini__art[hidden] {
    display: none !important;
}

.podcast-mini__art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.podcast-mini__viz-btn {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    padding: 0;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(218, 178, 93, 0.22);
    background: linear-gradient(160deg, rgba(218, 178, 93, 0.16), rgba(8, 28, 32, 0.4));
    color: #f3c668;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .15s ease, color .2s ease;
}

.podcast-mini__viz-btn:hover {
    border-color: rgba(218, 178, 93, 0.45);
    box-shadow: 0 0 0 1px rgba(218, 178, 93, 0.14);
    color: #f6dba0;
}

.podcast-mini__viz-btn:active {
    transform: scale(0.96);
}

.podcast-mini__viz-btn:focus-visible {
    outline: 2px solid rgba(218, 178, 93, .75);
    outline-offset: 2px;
}

.podcast-mini__viz-btn svg {
    display: block;
    pointer-events: none;
}

/* Fullscreen / overlay visualizer stage */
.podcast-viz-stage[hidden] {
    display: none !important;
}

.podcast-viz-stage.is-fullscreen,
.podcast-viz-stage:fullscreen,
.podcast-viz-stage:-webkit-full-screen {
    position: fixed;
    inset: 0;
    z-index: 1200;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding:
        max(12px, env(safe-area-inset-top, 0px))
        max(14px, env(safe-area-inset-right, 0px))
        max(16px, env(safe-area-inset-bottom, 0px))
        max(14px, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
    border: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 28%, rgba(218, 178, 93, 0.16), transparent 52%),
        linear-gradient(165deg, #071618 0%, #0c1c20 45%, #081c20 100%);
    color: #f2f5f4;
    font-family: 'Kalameh', sans-serif;
}

.podcast-viz-stage__chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    min-width: 0;
}

.podcast-viz-stage__title {
    margin: 0;
    min-width: 0;
    font-size: .95rem;
    font-weight: 700;
    color: #f3c668;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.podcast-viz-stage__close {
    appearance: none;
    border: 1px solid rgba(218, 178, 93, 0.28);
    background: rgba(8, 28, 32, 0.55);
    color: #f3c668;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.podcast-viz-stage__close:hover {
    background: rgba(218, 178, 93, 0.14);
}

.podcast-viz-stage__close:focus-visible {
    outline: 2px solid rgba(218, 178, 93, .75);
    outline-offset: 2px;
}

.podcast-viz-stage__viz {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    width: 100%;
    max-width: 100%;
}

.podcast-viz-stage.is-fullscreen .podcast-viz-stage__viz canvas,
.podcast-viz-stage:fullscreen .podcast-viz-stage__viz canvas,
.podcast-viz-stage:-webkit-full-screen .podcast-viz-stage__viz canvas {
    width: min(92vw, 1100px);
    height: min(34vh, 280px);
    max-width: 100%;
    display: block;
}

.podcast-viz-stage__transcript {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
}

.podcast-viz-stage__transcript[hidden] {
    display: none !important;
}

.podcast-viz-stage__transcript-label {
    margin: 0;
    flex-shrink: 0;
    color: #dab25d;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.podcast-viz-stage__transcript-list {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 2px 2px 10px;
    scroll-padding-block: 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(218, 178, 93, 0.45) transparent;
}

.podcast-viz-stage__transcript-list::-webkit-scrollbar {
    width: 6px;
}

.podcast-viz-stage__transcript-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(218, 178, 93, 0.42);
}

.podcast-viz-stage__transcript-seg {
    appearance: none;
    border: 1px solid transparent;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: start;
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    gap: 8px 10px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background .15s ease, border-color .15s ease;
}

.podcast-viz-stage__transcript-seg:hover {
    background: rgba(218, 178, 93, 0.08);
    border-color: rgba(218, 178, 93, 0.16);
}

.podcast-viz-stage__transcript-seg:focus-visible {
    outline: 2px solid rgba(218, 178, 93, .75);
    outline-offset: 2px;
}

.podcast-viz-stage__transcript-seg.is-active {
    background: rgba(218, 178, 93, 0.14);
    border-color: rgba(218, 178, 93, 0.34);
}

.podcast-viz-stage__transcript-time {
    color: rgba(218, 178, 93, 0.72);
    font-size: .75rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.5;
}

.podcast-viz-stage__transcript-seg.is-active .podcast-viz-stage__transcript-time {
    color: #f3c668;
    font-weight: 700;
}

.podcast-viz-stage__transcript-text {
    color: rgba(242, 245, 244, 0.78);
    font-size: .92rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.podcast-viz-stage__transcript-seg.is-active .podcast-viz-stage__transcript-text {
    color: #fff;
    font-weight: 600;
}

.podcast-viz-stage__transcript-plain {
    margin: 0;
    color: rgba(242, 245, 244, 0.88);
    font-size: .95rem;
    line-height: 1.85;
    overflow-y: auto;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.podcast-viz-stage__transcript-plain[hidden] {
    display: none !important;
}

.podcast-viz-stage__transcript-hint,
.podcast-sheet__transcript-hint {
    margin: 0 0 10px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px dashed rgba(218, 178, 93, 0.35);
    background: rgba(218, 178, 93, 0.08);
    color: rgba(242, 245, 244, 0.82);
    font-size: .86rem;
    line-height: 1.55;
}

.podcast-viz-stage__transcript-hint[hidden],
.podcast-sheet__transcript-hint[hidden] {
    display: none !important;
}

[data-theme="light"] .podcast-viz-stage__transcript-hint,
[data-theme="light"] .podcast-sheet__transcript-hint {
    background: rgba(196, 157, 74, 0.1);
    border-color: rgba(196, 157, 74, 0.35);
    color: var(--text-secondary, #4a524f);
}

@media (max-width: 480px) {
    .podcast-viz-stage.is-fullscreen .podcast-viz-stage__viz canvas,
    .podcast-viz-stage:fullscreen .podcast-viz-stage__viz canvas,
    .podcast-viz-stage:-webkit-full-screen .podcast-viz-stage__viz canvas {
        height: min(28vh, 200px);
    }
}

.podcast-mini__meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.podcast-mini__eyebrow {
    font-size: .68rem;
    color: var(--primary-color, #dab25d);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.podcast-mini__title {
    font-size: .92rem;
    font-weight: 700;
    color: var(--text-heading, var(--text-primary));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
}

.podcast-mini__controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    flex-shrink: 0;
    min-width: 0;
}

.podcast-mini__btn {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
}

.podcast-mini__btn:hover:not(:disabled) {
    background: rgba(218, 178, 93, 0.14);
    color: #f3c668;
}

.podcast-mini__btn:active:not(:disabled) {
    transform: scale(0.96);
}

.podcast-mini__btn:disabled {
    opacity: .35;
    cursor: default;
}

.podcast-mini__btn:focus-visible {
    outline: 2px solid rgba(218, 178, 93, .75);
    outline-offset: 2px;
}

.podcast-mini__btn--skip {
    color: rgba(255, 255, 255, 0.82);
}

[data-theme="light"] .podcast-mini__btn--skip {
    color: var(--text-primary);
}

.podcast-mini__btn--play {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f0d08a 0%, #e2bf72 42%, #c49d4a 100%);
    color: #1a160f;
    box-shadow:
        0 8px 20px rgba(218, 178, 93, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.podcast-mini__btn--play::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid rgba(218, 178, 93, 0.35);
    opacity: 0;
    transition: opacity .2s ease;
    pointer-events: none;
}

.podcast-mini.is-playing .podcast-mini__btn--play::before {
    opacity: 1;
}

.podcast-mini__btn--play:hover:not(:disabled) {
    background: linear-gradient(145deg, #f6dba0 0%, #ecd08a 42%, #d4ad5a 100%);
    color: #1a160f;
    box-shadow:
        0 10px 24px rgba(218, 178, 93, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.podcast-mini__btn--play:active:not(:disabled) {
    transform: scale(0.94);
}

.podcast-mini__play-face {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    line-height: 0;
}

/* Optical center for play triangle inside the circle */
.podcast-mini__btn--play .icon-play {
    transform: translateX(1px);
}

.podcast-mini.is-buffering .podcast-mini__btn--play {
    animation: podcast-play-pulse 1.1s ease-in-out infinite;
}

@keyframes podcast-play-pulse {
    0%, 100% { box-shadow: 0 8px 20px rgba(218, 178, 93, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
    50% { box-shadow: 0 8px 22px rgba(218, 178, 93, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
}

/* Force LTR scrubber on RTL pages: fill grows left → right */
.podcast-mini__progress-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    direction: ltr;
    unicode-bidi: isolate;
}

.podcast-mini__time {
    font-size: .72rem;
    color: var(--text-muted, var(--text-secondary));
    font-variant-numeric: tabular-nums;
    min-width: 2.4em;
    text-align: center;
    flex-shrink: 0;
}

.podcast-mini__seek-track {
    --seek-pct: 0%;
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    height: 32px;
    border-radius: 10px;
    overflow: hidden;
    isolation: isolate;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
    background:
        linear-gradient(180deg, rgba(218, 178, 93, 0.10), rgba(8, 28, 32, 0.38)),
        rgba(6, 18, 20, 0.35);
    border: 1px solid rgba(218, 178, 93, 0.20);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .podcast-mini__seek-track {
    background:
        linear-gradient(180deg, rgba(218, 178, 93, 0.14), rgba(255, 252, 245, 0.55));
    border-color: rgba(196, 157, 74, 0.30);
}

.podcast-mini__seek-track:focus-within,
.podcast-mini__seek-track.is-seeking {
    border-color: rgba(218, 178, 93, 0.48);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(218, 178, 93, 0.16);
}

.podcast-mini__seek-track:focus-within {
    outline: 2px solid rgba(218, 178, 93, .75);
    outline-offset: 2px;
}

.podcast-mini__seek-viz {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    z-index: 1;
}

.podcast-mini__seek-elapsed {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--seek-pct, 0%);
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(
        90deg,
        rgba(226, 191, 114, 0.16) 0%,
        rgba(218, 178, 93, 0.06) 100%
    );
}

.podcast-mini__playhead {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: var(--seek-pct, 0%);
    width: 2px;
    margin-left: -1px;
    border-radius: 2px;
    pointer-events: none;
    z-index: 3;
    background: linear-gradient(180deg, #f6dba0, #e2bf72 40%, #c49d4a);
    box-shadow: 0 0 8px rgba(243, 198, 104, 0.55);
}

.podcast-mini__playhead::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    margin: -4.5px 0 0 -4.5px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f3c668, #c49d4a);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}

.podcast-mini__seek-track.is-seeking .podcast-mini__playhead::after {
    width: 11px;
    height: 11px;
    margin: -5.5px 0 0 -5.5px;
}

.podcast-mini__seek {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    direction: ltr;
    cursor: pointer;
    background: transparent;
    opacity: 0;
    z-index: 4;
    pointer-events: none;
}

.podcast-mini__seek::-webkit-slider-runnable-track,
.podcast-mini__seek::-webkit-slider-thumb,
.podcast-mini__seek::-moz-range-track,
.podcast-mini__seek::-moz-range-progress,
.podcast-mini__seek::-moz-range-thumb {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    width: 1px;
    height: 1px;
}

body.podcast-player-active .site-main {
    padding-bottom: calc(var(--bottom-nav-offset, 83px) + 118px);
}

body.podcast-player-active:has(.podcast-mini.has-caption) .site-main {
    padding-bottom: calc(var(--bottom-nav-offset, 83px) + 168px);
}

@media (max-width: 768px) {
    body.podcast-player-active .site-main {
        padding-bottom: calc(var(--bottom-nav-offset, 75px) + 136px);
    }

    body.podcast-player-active:has(.podcast-mini.has-caption) .site-main {
        padding-bottom: calc(var(--bottom-nav-offset, 75px) + 196px);
    }
}

.podcast-player {
    border-radius: 22px;
    padding: 28px 24px;
    animation: podcast-fade-up .5s ease both;
}

.podcast-player__layout {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
    align-items: start;
}

.podcast-player__cover {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1;
    background:
        radial-gradient(circle at 35% 25%, rgba(218, 178, 93, .35), transparent 60%),
        linear-gradient(160deg, rgba(10, 45, 48, .9), rgba(8, 28, 32, .98));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(218, 178, 93, .22);
}

.podcast-player__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.podcast-player__cover-icon {
    color: var(--primary-color, #dab25d);
}

.podcast-player audio {
    width: 100%;
    margin-top: 18px;
    border-radius: 999px;
    outline: none;
}

.podcast-player__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.podcast-player__actions a {
    text-decoration: none;
}

@keyframes podcast-fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .podcast-mini {
        bottom: calc(var(--bottom-nav-offset, 75px) + 8px);
        left: 10px;
        right: 10px;
        width: auto;
        max-width: calc(100vw - 20px);
        height: auto;
        min-height: 80px;
        padding: 10px 10px 8px;
        gap: 6px 8px;
        grid-template-columns: auto auto minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        grid-template-areas:
            "art viz meta controls"
            "progress progress progress progress";
        align-items: center;
    }

    .podcast-mini.has-caption {
        grid-template-columns: auto auto minmax(0, 1fr) auto;
        grid-template-areas:
            "art viz meta controls"
            "caption caption caption caption"
            "progress progress progress progress";
        min-height: 0;
        padding-bottom: 10px;
    }

    .podcast-mini__caption {
        font-size: .92rem;
        line-height: 1.55;
        padding: 7px 10px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        text-align: start;
    }

    .podcast-mini__art {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        grid-area: art;
    }

    .podcast-mini__viz-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        grid-area: viz;
    }

    .podcast-mini__meta {
        grid-area: meta;
        min-width: 0;
    }

    .podcast-mini__controls {
        grid-area: controls;
        gap: 2px;
        min-width: 0;
    }

    .podcast-mini__progress-wrap {
        grid-area: progress;
        min-width: 0;
        width: 100%;
        padding-top: 2px;
    }

    .podcast-mini__seek-track {
        height: 40px;
        border-radius: 12px;
    }

    .podcast-mini__title {
        font-size: .82rem;
    }

    .podcast-mini__btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .podcast-mini__btn--play {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .podcast-mini {
        grid-template-columns: auto auto minmax(0, 1fr) auto;
        grid-template-areas:
            "art viz meta controls"
            "progress progress progress progress";
    }

    .podcast-mini.has-caption {
        grid-template-areas:
            "art viz meta controls"
            "caption caption caption caption"
            "progress progress progress progress";
    }

    .podcast-mini__viz-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        grid-area: viz;
    }
}

@media (max-width: 480px) {
    .podcast-mini__progress-wrap {
        gap: 6px;
    }

    .podcast-mini__seek-track {
        height: 40px;
    }
}

@media (max-width: 360px) {
    .podcast-mini {
        left: 8px;
        right: 8px;
        max-width: calc(100vw - 16px);
        padding: 8px 8px 6px;
        gap: 4px 6px;
    }

    .podcast-mini__btn--skip {
        width: 40px;
        min-width: 40px;
    }

    .podcast-mini__time {
        min-width: 2em;
        font-size: .68rem;
    }
}

@media (min-width: 769px) {
    .podcast-mini {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: min(720px, 92vw);
        max-width: min(720px, calc(100vw - 32px));
        bottom: calc(var(--bottom-nav-offset, 83px) + 12px);
    }
}

@media (max-width: 720px) {
    .podcast-page { padding: 0 0 16px; }
    .podcast-hero { margin-bottom: 24px; }
    .podcast-hero__title { font-size: clamp(1.45rem, 6vw, 1.9rem); }
    .podcast-hero__lead { font-size: 0.95rem; line-height: 1.85; overflow-wrap: anywhere; }
    .podcast-grid { grid-template-columns: 1fr; gap: 14px; }
    .podcast-player { padding: 18px 14px; }
    .podcast-player__layout { grid-template-columns: 1fr; }
    .podcast-player__cover { max-width: min(220px, 100%); margin: 0 auto; }
    .podcast-episode-row {
        grid-template-columns: 56px minmax(0, 1fr);
        grid-template-areas:
            "play body"
            "actions actions";
        gap: 8px 12px;
        padding: 12px;
        min-width: 0;
    }
    .podcast-episode-row__play {
        grid-area: play;
        width: 56px;
        height: 56px;
        min-width: 44px;
        min-height: 44px;
    }
    .podcast-episode-row__cover {
        width: 56px;
        height: 56px;
        object-fit: cover;
    }
    .podcast-episode-row__num {
        width: 56px;
        height: 56px;
    }
    .podcast-episode-row__body {
        grid-area: body;
    }
    .podcast-episode-row__actions {
        grid-area: actions;
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .podcast-episode-row__duration {
        white-space: nowrap;
    }
    .podcast-episode-row__title {
        overflow-wrap: anywhere;
        font-size: 0.95rem;
    }
    .podcast-breadcrumb {
        min-width: 0;
        max-width: 100%;
    }
    .podcast-breadcrumb span {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

/* —— Episode notes bottom sheet (premium RTL gold/glass card) —— */
.podcast-sheet {
    --sheet-drag: 0px;
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 0 calc(var(--bottom-nav-offset, 83px) + 10px);
    margin: 0;
    max-width: 100vw;
    overflow: hidden;
    box-sizing: border-box;
    pointer-events: none;
}

body.podcast-player-active .podcast-sheet {
    padding-bottom: calc(var(--bottom-nav-offset, 83px) + 96px);
}

body.podcast-player-active:has(.podcast-mini.has-caption) .podcast-sheet {
    padding-bottom: calc(var(--bottom-nav-offset, 83px) + 148px);
}

.podcast-sheet[hidden] {
    display: none !important;
}

.podcast-sheet.is-open,
.podcast-sheet.is-closing {
    pointer-events: auto;
}

.podcast-sheet__backdrop {
    appearance: none;
    border: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: rgba(4, 14, 16, 0.58);
    cursor: pointer;
    opacity: 0;
    transition: opacity .32s ease;
}

.podcast-sheet.is-open .podcast-sheet__backdrop {
    opacity: 1;
}

.podcast-sheet.is-closing .podcast-sheet__backdrop {
    opacity: 0;
    transition-duration: .28s;
}

.podcast-sheet__panel {
    --sheet-shift: var(--sheet-drag, 0px);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(560px, 100%);
    max-width: 100vw;
    max-height: min(88dvh, calc(100dvh - var(--bottom-nav-offset, 83px) - 20px));
    margin: 0;
    padding: 0;
    border-radius: 24px 24px 0 0;
    background: rgba(12, 28, 32, 0.94);
    border: 1px solid rgba(218, 178, 93, 0.34);
    border-bottom: none;
    box-shadow:
        0 -18px 48px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px) saturate(1.18);
    -webkit-backdrop-filter: blur(24px) saturate(1.18);
    box-sizing: border-box;
    overflow: hidden;
    color: var(--text-primary, #f3f6f4);
    direction: inherit;
    transform: translateY(108%);
    transition: transform .42s cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
}

.podcast-sheet.has-synced-transcript .podcast-sheet__panel {
    max-height: min(92dvh, calc(100dvh - var(--bottom-nav-offset, 83px) - 12px));
    width: min(580px, 100%);
}

.podcast-sheet.is-open .podcast-sheet__panel {
    transform: translateY(var(--sheet-shift));
}

.podcast-sheet.is-closing .podcast-sheet__panel {
    transform: translateY(108%);
    transition-duration: .32s;
}

.podcast-sheet.is-dragging .podcast-sheet__panel {
    transition: none;
}

.podcast-sheet__chrome {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 0;
    background: transparent;
    border-bottom: 1px solid rgba(218, 178, 93, 0.14);
}

.podcast-sheet__grab {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 4;
    width: 88px;
    height: 28px;
    margin: 0;
    transform: translateX(-50%);
    cursor: grab;
    touch-action: none;
}

.podcast-sheet__grab::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 44px;
    height: 4px;
    border-radius: 999px;
    background: rgba(218, 178, 93, 0.55);
    transform: translateX(-50%);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.podcast-sheet__close {
    appearance: none;
    position: absolute;
    top: 12px;
    left: 12px;
    right: auto;
    z-index: 5;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(218, 178, 93, 0.38);
    background: rgba(8, 20, 22, 0.62);
    color: #f3c668;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
    -webkit-tap-highlight-color: transparent;
}

.podcast-sheet__close:hover {
    background: rgba(8, 20, 22, 0.78);
    border-color: rgba(218, 178, 93, 0.55);
}

.podcast-sheet__close:focus-visible {
    outline: 2px solid rgba(218, 178, 93, .85);
    outline-offset: 2px;
}

.podcast-sheet__cover-wrap {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background:
        radial-gradient(circle at 32% 18%, rgba(218, 178, 93, .38), transparent 52%),
        linear-gradient(155deg, rgba(10, 45, 48, .95), rgba(8, 22, 26, .98));
    touch-action: none;
}

.podcast-sheet__cover-wrap::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(8, 20, 22, 0.72));
    z-index: 1;
}

.podcast-sheet__cover {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.podcast-sheet__cover[hidden] {
    display: none !important;
}

.podcast-sheet__cover-fallback {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    color: rgba(243, 198, 104, 0.78);
}

.podcast-sheet__cover-wrap.is-empty .podcast-sheet__cover-fallback {
    display: flex;
}

.podcast-sheet__heading {
    min-width: 0;
    max-width: 100%;
    padding: 12px 18px 12px;
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

.podcast-sheet__kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    min-width: 0;
}

.podcast-sheet__meta {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin: 0;
    padding: 4px 11px;
    border-radius: 999px;
    border: 1px solid rgba(218, 178, 93, 0.38);
    background: rgba(218, 178, 93, 0.12);
    color: var(--primary-color, #dab25d);
    font-family: 'Kalameh', sans-serif;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .01em;
    overflow-wrap: anywhere;
}

.podcast-sheet__meta:empty,
.podcast-sheet__meta[hidden] {
    display: none;
}

.podcast-sheet__duration {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted, var(--text-secondary));
    font-family: 'Kalameh', sans-serif;
    font-size: .82rem;
    line-height: 1.4;
}

.podcast-sheet__duration:empty,
.podcast-sheet__duration[hidden] {
    display: none;
}

.podcast-sheet__title {
    margin: 0 0 6px;
    color: var(--text-heading, var(--text-primary));
    font-family: 'Kalameh', sans-serif;
    font-size: clamp(1.08rem, 3.6vw, 1.34rem);
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.podcast-sheet__season {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 8px;
    color: var(--text-muted, var(--text-secondary));
    font-size: .88rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
    min-width: 0;
}

.podcast-sheet__season[hidden] {
    display: none;
}

.podcast-sheet__season-label {
    color: var(--primary-color, #dab25d);
    font-weight: 700;
    font-size: .78rem;
}

.podcast-sheet__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding: 4px 18px 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(218, 178, 93, 0.45) transparent;
}

.podcast-sheet__scroll::-webkit-scrollbar {
    width: 6px;
}

.podcast-sheet__scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(218, 178, 93, 0.42);
}

.podcast-sheet__info {
    min-width: 0;
    max-width: 100%;
}

.podcast-sheet__footer {
    flex-shrink: 0;
    padding: 10px 18px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(218, 178, 93, 0.16);
    background: rgba(12, 28, 32, 0.96);
}

.podcast-sheet__lead {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(218, 178, 93, 0.28);
    background:
        linear-gradient(165deg, rgba(218, 178, 93, 0.12), rgba(218, 178, 93, 0.04));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: var(--text-primary, #f3f1ec);
    font-family: 'Kalameh', sans-serif;
    font-size: 1rem;
    line-height: 1.9;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: pre-line;
    max-width: 100%;
}

.podcast-sheet__lead:empty,
.podcast-sheet__lead[hidden] {
    display: none;
}

.podcast-sheet__notes {
    min-width: 0;
    max-width: 100%;
}

.podcast-sheet__notes[hidden] {
    display: none;
}

.podcast-sheet__notes-label {
    margin: 0 0 10px;
    color: var(--primary-color, #dab25d);
    font-family: 'Kalameh', sans-serif;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.podcast-sheet__transcript {
    margin: 18px 0 0;
    min-width: 0;
    max-width: 100%;
}

.podcast-sheet__transcript.is-synced {
    position: sticky;
    bottom: 0;
    z-index: 1;
    margin-top: 20px;
    padding: 12px 10px 10px;
    border-radius: 16px 16px 0 0;
    border: 1px solid rgba(218, 178, 93, 0.28);
    border-bottom: none;
    background:
        linear-gradient(180deg, rgba(12, 28, 32, 0.98), rgba(10, 24, 28, 0.99));
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.28);
}

.podcast-sheet__transcript[hidden] {
    display: none;
}

.podcast-sheet__transcript-label {
    margin: 0 0 10px;
    color: var(--primary-color, #dab25d);
    font-family: 'Kalameh', sans-serif;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.podcast-sheet__transcript-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: min(48vh, 380px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 4px 2px 10px;
    scroll-padding-block: 20px;
}

.podcast-sheet__transcript.is-synced .podcast-sheet__transcript-list {
    max-height: min(52vh, 440px);
    min-height: min(13.5rem, 36vh);
}

.podcast-sheet__transcript-list::-webkit-scrollbar {
    width: 4px;
}

.podcast-sheet__transcript-list::-webkit-scrollbar-thumb {
    background: rgba(218, 178, 93, 0.35);
    border-radius: 4px;
}

.podcast-sheet__transcript-seg {
    display: grid;
    grid-template-columns: 3.4rem minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    width: 100%;
    margin: 0;
    padding: 11px 13px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: inherit;
    text-align: start;
    cursor: pointer;
    font: inherit;
    transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.podcast-sheet__transcript-seg:hover {
    background: rgba(218, 178, 93, 0.08);
    border-color: rgba(218, 178, 93, 0.18);
}

.podcast-sheet__transcript-seg:focus-visible {
    outline: 2px solid rgba(218, 178, 93, 0.65);
    outline-offset: 2px;
}

.podcast-sheet__transcript-seg.is-active {
    background: rgba(218, 178, 93, 0.22);
    border-color: rgba(218, 178, 93, 0.55);
    box-shadow:
        0 0 0 1px rgba(218, 178, 93, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.podcast-sheet__transcript-time {
    font-variant-numeric: tabular-nums;
    font-size: .8rem;
    line-height: 1.65;
    color: var(--text-muted, var(--text-secondary));
    opacity: .85;
}

.podcast-sheet__transcript-seg.is-active .podcast-sheet__transcript-time {
    color: var(--primary-color, #dab25d);
    opacity: 1;
    font-weight: 700;
}

.podcast-sheet__transcript-text {
    font-family: 'Kalameh', sans-serif;
    font-size: 1.02rem;
    line-height: 1.9;
    color: var(--text-secondary, #c5d0cc);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.podcast-sheet__transcript-seg.is-active .podcast-sheet__transcript-text {
    color: var(--text-primary, #f2f5f4);
    font-weight: 700;
    font-size: 1.06rem;
}

.podcast-sheet__transcript-plain {
    margin: 0;
    color: var(--text-secondary, #c5d0cc);
    font-family: 'Kalameh', sans-serif;
    font-size: 1.02rem;
    line-height: 1.95;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.podcast-sheet__transcript-plain[hidden] {
    display: none;
}

[data-theme="light"] .podcast-sheet__transcript.is-synced {
    background:
        linear-gradient(180deg, rgba(250, 244, 232, 0.98), rgba(246, 239, 224, 0.99));
    border-color: rgba(160, 120, 42, 0.34);
    box-shadow: 0 -10px 24px rgba(55, 38, 12, 0.12);
}

[data-theme="light"] .podcast-sheet__transcript-seg:hover {
    background: rgba(196, 157, 74, 0.08);
}

[data-theme="light"] .podcast-sheet__transcript-seg.is-active {
    background: rgba(196, 157, 74, 0.18);
    border-color: rgba(196, 157, 74, 0.42);
}

[data-theme="light"] .podcast-sheet__transcript-seg.is-active .podcast-sheet__transcript-text {
    color: var(--text-primary, #1a1f1e);
}

.podcast-sheet__empty {
    margin: 4px 0 0;
    color: var(--text-muted, var(--text-secondary));
    font-family: 'Kalameh', sans-serif;
    font-size: .92rem;
    line-height: 1.8;
}

.podcast-sheet__empty[hidden] {
    display: none;
}

.podcast-sheet__desc {
    margin: 0;
    color: var(--text-secondary, #c5d0cc);
    font-family: 'Kalameh', sans-serif;
    font-size: .98rem;
    line-height: 1.95;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}

.podcast-sheet__desc p {
    margin: 0 0 0.9em;
}

.podcast-sheet__desc p:last-child,
.podcast-sheet__desc > :last-child {
    margin-bottom: 0;
}

.podcast-sheet__desc-kicker {
    color: var(--text-heading, var(--text-primary));
    font-weight: 700;
}

.podcast-sheet__desc h1,
.podcast-sheet__desc h2,
.podcast-sheet__desc h3,
.podcast-sheet__desc h4 {
    margin: 1.1em 0 0.45em;
    color: var(--text-heading, var(--text-primary));
    font-family: 'Kalameh', sans-serif;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.podcast-sheet__desc h1 { font-size: 1.18em; }
.podcast-sheet__desc h2 { font-size: 1.1em; }
.podcast-sheet__desc h3,
.podcast-sheet__desc h4 { font-size: 1.02em; }

.podcast-sheet__desc h1:first-child,
.podcast-sheet__desc h2:first-child,
.podcast-sheet__desc h3:first-child {
    margin-top: 0;
}

.podcast-sheet__desc ul,
.podcast-sheet__desc ol {
    margin: 0 0 0.95em;
    padding-inline-start: 1.25em;
}

.podcast-sheet__desc li {
    margin: 0 0 0.45em;
    padding-inline-start: 0.15em;
}

.podcast-sheet__desc li:last-child {
    margin-bottom: 0;
}

.podcast-sheet__desc a {
    color: var(--primary-color, #dab25d);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.podcast-sheet__desc strong,
.podcast-sheet__desc b {
    color: var(--text-heading, var(--text-primary));
    font-weight: 700;
}

.podcast-sheet__desc blockquote {
    margin: 0 0 0.95em;
    padding: 10px 14px;
    border-inline-start: 3px solid var(--primary-color, #dab25d);
    border-start-start-radius: 0;
    border-end-start-radius: 0;
    border-start-end-radius: 12px;
    border-end-end-radius: 12px;
    background: rgba(218, 178, 93, 0.08);
    color: var(--text-primary, #f3f1ec);
}

.podcast-sheet__desc hr {
    margin: 1em 0;
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(218, 178, 93, 0.45), transparent);
}

.podcast-sheet__desc img,
.podcast-sheet__desc video,
.podcast-sheet__desc iframe {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0.6em 0 1em;
    border-radius: 12px;
}

.podcast-sheet__desc iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    background: rgba(0, 0, 0, 0.2);
}

.podcast-sheet__desc pre,
.podcast-sheet__desc table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

.podcast-sheet__desc code {
    font-size: .9em;
    overflow-wrap: anywhere;
}

.podcast-sheet__desc:empty,
.podcast-sheet__desc[hidden] {
    display: none;
}

.podcast-episode-row__content[hidden] {
    display: none !important;
}

.podcast-sheet__play {
    appearance: none;
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid rgba(218, 178, 93, 0.4);
    background: linear-gradient(145deg, rgba(226, 191, 114, .95), rgba(196, 157, 74, .92));
    color: #1a160f;
    font-family: 'Kalameh', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: 0 8px 20px rgba(218, 178, 93, .22);
}

.podcast-sheet__play:hover:not(:disabled) {
    filter: brightness(1.04);
}

.podcast-sheet__play:disabled {
    opacity: .45;
    cursor: not-allowed;
    box-shadow: none;
}

.podcast-sheet__play:focus-visible {
    outline: 2px solid rgba(255, 236, 180, .9);
    outline-offset: 3px;
}

body.podcast-sheet-open {
    overflow: hidden;
}

body.podcast-sheet-open .mobile-nav,
body.podcast-sheet-open .site-footer {
    opacity: 0.35;
    pointer-events: none;
}

@media (max-width: 768px) {
    body.podcast-player-active .podcast-sheet {
        padding-bottom: calc(var(--bottom-nav-offset, 75px) + 112px);
    }

    body.podcast-player-active:has(.podcast-mini.has-caption) .podcast-sheet {
        padding-bottom: calc(var(--bottom-nav-offset, 75px) + 168px);
    }

    body.podcast-player-active .podcast-sheet__panel {
        max-height: min(80dvh, calc(100dvh - var(--bottom-nav-offset, 75px) - 118px));
    }

    body.podcast-player-active:has(.podcast-mini.has-caption) .podcast-sheet__panel,
    body.podcast-player-active .podcast-sheet.has-synced-transcript .podcast-sheet__panel {
        max-height: min(82dvh, calc(100dvh - var(--bottom-nav-offset, 75px) - 168px));
    }
}

@media (max-width: 640px) {
    .podcast-sheet {
        padding-inline: 0;
    }

    .podcast-sheet__panel {
        width: 100%;
        max-height: min(90dvh, calc(100dvh - var(--bottom-nav-offset, 75px) - 16px));
        border-radius: 20px 20px 0 0;
    }

    .podcast-sheet.has-synced-transcript .podcast-sheet__panel {
        max-height: min(92dvh, calc(100dvh - var(--bottom-nav-offset, 75px) - 12px));
    }

    .podcast-sheet__heading,
    .podcast-sheet__scroll {
        padding-inline: 14px;
    }

    .podcast-sheet__footer {
        padding-inline: 14px;
    }

    .podcast-sheet__transcript.is-synced {
        margin-inline: -4px;
        padding-inline: 8px;
    }

    .podcast-sheet__transcript.is-synced .podcast-sheet__transcript-list {
        max-height: min(42vh, 320px);
        min-height: min(11.5rem, 32vh);
    }
}

@media (max-width: 375px) {
    .podcast-sheet__title {
        font-size: 1.05rem;
    }

    .podcast-sheet__lead,
    .podcast-sheet__desc {
        font-size: .94rem;
        line-height: 1.85;
    }

    .podcast-sheet__lead {
        padding: 10px 12px;
    }

    .podcast-sheet__transcript-text {
        font-size: .98rem;
    }

    .podcast-sheet__transcript-seg.is-active .podcast-sheet__transcript-text {
        font-size: 1.02rem;
    }

    .podcast-mini__caption {
        font-size: .88rem;
    }
}

[data-theme="light"] .podcast-season-card__cover {
    background:
        radial-gradient(circle at 30% 20%, rgba(201, 162, 55, .26), transparent 55%),
        linear-gradient(145deg, #f3ece0, #e5dccb);
}

[data-theme="light"] .podcast-sheet__panel {
    background: rgba(250, 244, 232, 0.98);
    border-color: rgba(160, 120, 42, 0.40);
    box-shadow:
        0 -14px 40px rgba(55, 38, 12, 0.16),
        inset 0 1px 0 rgba(255, 250, 240, 0.88);
}

[data-theme="light"] .podcast-sheet__cover-wrap {
    background:
        radial-gradient(circle at 32% 18%, rgba(201, 162, 55, .30), transparent 52%),
        linear-gradient(155deg, #ebe2d1, #e0d4bc);
}

[data-theme="light"] .podcast-sheet__cover-wrap::after {
    background: linear-gradient(180deg, transparent, rgba(250, 244, 232, 0.60));
}

[data-theme="light"] .podcast-sheet__footer {
    background: rgba(250, 244, 232, 0.98);
    border-top-color: rgba(160, 120, 42, 0.28);
}

[data-theme="light"] .podcast-sheet__close {
    background: rgba(250, 244, 232, 0.90);
    color: #7a5618;
    border-color: rgba(160, 120, 42, 0.44);
    box-shadow: 0 4px 12px rgba(55, 38, 12, 0.12);
}

[data-theme="light"] .podcast-sheet__backdrop {
    background: rgba(40, 32, 18, 0.38);
}

[data-theme="light"] .podcast-sheet__desc {
    color: var(--text-secondary, #3a3329);
}

[data-theme="light"] .podcast-sheet__lead {
    background: linear-gradient(165deg, rgba(201, 162, 55, 0.20), rgba(250, 244, 232, 0.82));
    border-color: rgba(160, 120, 42, 0.38);
    color: var(--text-primary, #1a1510);
    box-shadow: inset 0 1px 0 rgba(255, 250, 240, 0.85);
}

[data-theme="light"] .podcast-sheet__meta {
    background: rgba(201, 162, 55, 0.18);
    border-color: rgba(160, 120, 42, 0.46);
    color: var(--gold-ink, #7a5618);
}

[data-theme="light"] .podcast-sheet__notes-label,
[data-theme="light"] .podcast-sheet__season-label {
    color: var(--gold-ink, #7a5618);
}

[data-theme="light"] .podcast-sheet__desc blockquote {
    background: rgba(201, 162, 55, 0.12);
    color: var(--text-primary, #1a1510);
}

[data-theme="light"] .podcast-sheet__scroll {
    scrollbar-color: rgba(122, 86, 24, 0.45) transparent;
}

[data-theme="light"] .podcast-sheet__cover-fallback {
    color: rgba(122, 86, 24, 0.72);
}

@media (prefers-reduced-motion: reduce) {
    .podcast-sheet__backdrop,
    .podcast-sheet__panel {
        animation: none !important;
        transition: none !important;
    }
    .podcast-sheet.is-open .podcast-sheet__panel,
    .podcast-sheet.is-closing .podcast-sheet__panel {
        transform: none !important;
    }
    .podcast-hero,
    .podcast-season-card,
    .podcast-episode-row,
    .podcast-player {
        animation: none !important;
    }
    .podcast-season-card:hover,
    .podcast-episode-row:hover {
        transform: none !important;
    }
    .podcast-mini.is-buffering .podcast-mini__btn--play {
        animation: none !important;
    }
    .podcast-mini__playhead,
    .podcast-mini__seek-elapsed {
        transition: none !important;
    }
}
