/* The podcast show page and episode pages (podcast/index.php, podcast/episode.php).
   Colors and fonts come from shared.css. */

.pod-page {
    padding-top: 64px;
}

.pod-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.pod-wrap-narrow {
    max-width: 820px;
}

/* Hero */

.pod-hero {
    background: linear-gradient(135deg, var(--midnight-blue) 0%, var(--ocean-blue) 50%, var(--deep-navy) 100%);
    color: white;
    padding: 4rem 2rem;
}

.pod-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(200px, 320px) 1fr;
    gap: 3rem;
    align-items: center;
}

.pod-cover {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    display: block;
}

.pod-kicker {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--warm-orange);
    margin-bottom: 0.75rem;
}

.pod-title {
    font-size: 2.4rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.pod-title span {
    display: block;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--warm-orange);
    margin-top: 0.35rem;
    letter-spacing: 0;
}

.pod-tagline {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem;
}

.pod-lede {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    max-width: 58ch;
}

/* Buttons */

.pod-subscribe {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.75rem 0 0;
    padding: 0;
}

.pod-button {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.55);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.pod-button:hover,
.pod-button:focus-visible {
    background: white;
    border-color: white;
    color: var(--midnight-blue);
}

/* The first button is the main call to action. */
.pod-subscribe li:first-child .pod-button {
    background: white;
    border-color: white;
    color: var(--midnight-blue);
}

.pod-subscribe li:first-child .pod-button:hover,
.pod-subscribe li:first-child .pod-button:focus-visible {
    background: var(--warm-orange);
    border-color: var(--warm-orange);
}

.pod-button-dark,
.pod-subscribe-compact .pod-button {
    border-color: var(--ocean-blue);
    color: var(--ocean-blue);
}

.pod-button-dark:hover,
.pod-button-dark:focus-visible,
.pod-subscribe-compact .pod-button:hover,
.pod-subscribe-compact .pod-button:focus-visible,
.pod-subscribe-compact li:first-child .pod-button {
    background: var(--ocean-blue);
    border-color: var(--ocean-blue);
    color: white;
}

.pod-subscribe-compact li:first-child .pod-button:hover,
.pod-subscribe-compact li:first-child .pod-button:focus-visible {
    background: var(--midnight-blue);
    border-color: var(--midnight-blue);
    color: white;
}

.pod-subscribe-compact {
    margin: 1.25rem 0 0;
}

.pod-subscribe-compact .pod-button {
    padding: 0.5rem 1.1rem;
    font-size: 0.88rem;
}

/* Sections */

.pod-section {
    padding: 3.5rem 0;
}

.pod-section + .pod-section {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.pod-heading {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 1.75rem;
    color: var(--dark-text);
}

.pod-meta {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--steel-blue);
    margin-bottom: 0.4rem;
}

.pod-subtitle {
    color: var(--dark-text);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pod-summary {
    color: var(--medium-gray);
    line-height: 1.65;
}

.pod-empty {
    color: var(--medium-gray);
}

/* Player */

.pod-player {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--midnight-blue);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.pod-player iframe,
.pod-player-poster,
.pod-player-poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.pod-player-poster img {
    object-fit: cover;
}

.pod-player-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.pod-player-poster:hover .pod-player-button,
.pod-player-poster:focus-visible .pod-player-button {
    background: var(--warm-orange);
    transform: translate(-50%, -50%) scale(1.06);
}

/* Latest episode */

.pod-latest-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2.5rem;
    align-items: center;
}

.pod-latest-title {
    font-size: 1.6rem;
    line-height: 1.3;
    margin-bottom: 0.4rem;
}

.pod-latest-title a,
.pod-item-title a {
    color: var(--dark-text);
    text-decoration: none;
}

.pod-latest-title a:hover,
.pod-item-title a:hover {
    color: var(--steel-blue);
    text-decoration: underline;
}

.pod-latest-text .pod-summary {
    margin-bottom: 1.5rem;
}

/* Episode list */

.pod-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.25rem;
}

.pod-item {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    align-items: center;
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pod-item:hover {
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.pod-item-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: var(--deep-navy);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.pod-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pod-item-title {
    font-size: 1.2rem;
    line-height: 1.35;
    margin-bottom: 0.3rem;
}

/* How this show is made */

.pod-made {
    background: white;
}

.pod-made h3 {
    font-size: 1.05rem;
    margin: 1.75rem 0 0.75rem;
    color: var(--steel-blue);
}

.pod-made-lede {
    font-size: 1.15rem;
    line-height: 1.7;
}

.pod-made-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.pod-made ul {
    padding-left: 1.2rem;
    color: var(--dark-text);
}

.pod-made li {
    margin-bottom: 0.6rem;
    line-height: 1.6;
}

.pod-made p {
    line-height: 1.7;
}

/* Episode page */

.pod-episode {
    padding: 2.5rem 0 1rem;
}

.pod-back {
    display: inline-block;
    color: var(--ocean-blue);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.pod-back:hover {
    text-decoration: underline;
}

.pod-episode-header {
    margin-bottom: 1.5rem;
}

.pod-episode-title {
    font-size: 2.1rem;
    line-height: 1.25;
    letter-spacing: -0.5px;
    color: var(--dark-text);
}

.pod-episode-subtitle {
    font-size: 1.25rem;
    color: var(--steel-blue);
    font-weight: 600;
    margin-top: 0.4rem;
}

.pod-block {
    margin-top: 2.75rem;
}

.pod-block h2 {
    font-size: 1.3rem;
    letter-spacing: -0.2px;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.pod-block h3 {
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--steel-blue);
    margin: 1.5rem 0 0.5rem;
}

.pod-block p {
    line-height: 1.75;
    margin-bottom: 1rem;
}

.pod-block a {
    color: var(--ocean-blue);
}

.pod-about p:first-child {
    font-size: 1.12rem;
}

.pod-disclaimer,
.pod-ai-note,
.pod-sources-note {
    font-size: 0.92rem;
    color: var(--medium-gray);
}

.pod-corrections {
    background: #fff7ed;
    border-left: 4px solid var(--warm-orange);
    border-radius: 0 12px 12px 0;
    padding: 1.25rem 1.5rem;
}

.pod-corrections ul {
    padding-left: 1.2rem;
}

.pod-corrections li {
    line-height: 1.65;
    margin-bottom: 0.4rem;
}

.pod-chapters {
    list-style: none;
    padding: 0;
    margin: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.pod-chapters li + li {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.pod-chapters li > a,
.pod-chapters li > span:first-child {
    display: flex;
    gap: 1rem;
    padding: 0.7rem 1.1rem;
    color: var(--dark-text);
    text-decoration: none;
}

.pod-chapters li > a:hover,
.pod-chapters li > a:focus-visible {
    background: var(--soft-gray);
}

.pod-chapter-time {
    flex: 0 0 3.2rem;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--steel-blue);
}

.pod-points,
.pod-sources ul {
    padding-left: 1.2rem;
}

.pod-points li,
.pod-sources li {
    line-height: 1.65;
    margin-bottom: 0.5rem;
}

.pod-sources li {
    color: var(--dark-text);
    font-size: 0.97rem;
    overflow-wrap: anywhere;
}

.pod-transcript {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 1rem 1.25rem;
}

.pod-transcript summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--ocean-blue);
}

.pod-transcript[open] summary {
    margin-bottom: 1rem;
}

.pod-transcript p {
    font-size: 0.98rem;
}

.pod-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 3.5rem;
}

.pod-pager-link {
    display: block;
    background: white;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 600;
    line-height: 1.4;
}

a.pod-pager-link:hover,
a.pod-pager-link:focus-visible {
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
    color: var(--steel-blue);
}

.pod-pager-link span {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--steel-blue);
    margin-bottom: 0.25rem;
}

.pod-pager-next {
    text-align: right;
}

.pod-pager-soon {
    font-weight: 400;
    color: var(--medium-gray);
    box-shadow: none;
    border: 1px dashed rgba(0, 0, 0, 0.15);
    background: transparent;
}

@media (max-width: 768px) {
    .pod-wrap {
        padding: 0 1.25rem;
    }

    .pod-hero {
        padding: 2.5rem 1.25rem;
    }

    .pod-hero-inner {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .pod-cover {
        max-width: 220px;
    }

    .pod-title {
        font-size: 1.8rem;
    }

    .pod-title span {
        font-size: 1.2rem;
    }

    .pod-latest-grid,
    .pod-made-grid,
    .pod-item {
        grid-template-columns: 1fr;
    }

    .pod-made-grid {
        gap: 0;
    }

    .pod-episode-title {
        font-size: 1.6rem;
    }

    .pod-pager {
        grid-template-columns: 1fr;
    }

    .pod-pager-next {
        text-align: left;
    }
}
