/*
 * pages/series-episode.css — String Theory + Striking a Chord shared template.
 *
 * One stylesheet drives both series (video + podcast); series-specific accents
 * hang off the .series-episode--stringtheory / --strikingachord modifiers.
 */

.series-episode {
    --se-pink: #ff10a4;
    /* The pink AS TEXT on white. #ff10a4 is 3.58:1 there (WAVE on the eyebrow
       and current-episode label, 2026-09-21); the brand's AA accent-text pink
       is 5.83:1. --se-pink stays for fills, rules and focus backgrounds. */
    --se-pink-text: var(--brand-accent-text, #c00c7f);
    padding-bottom: 4rem;
}

/* ── Featured block ─────────────────────────────────────────────────────── */

.se-featured {
    padding: 2.5rem 0 1rem;
}

.se-featured__grid {
    display: grid;
    /* minmax(0, 1fr) — NOT 1fr — so the media column (which can hold a Swiper /
       iframe with a wide intrinsic content width) can shrink below its content
       and never blow the row (and the page) out horizontally. */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    /* LEFT column = media + quote (spans both rows); RIGHT column = title header
       (row 1) over the Featured Strings / share body (row 2). The row gap is 0 so
       the header sits tight above the body; the column gap keeps the two columns
       apart. */
    grid-template-areas:
        "media header"
        "media body";
    grid-template-rows: auto 1fr;
    column-gap: 2.5rem;
    row-gap: 0;
    align-items: start;
}

.se-featured__media-col {
    grid-area: media;
}

.se-featured__header {
    grid-area: header;
}

.se-featured__body {
    grid-area: body;
}

.se-featured__media-col,
.se-featured__header,
.se-featured__body {
    min-width: 0;
}

.se-featured__image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 8px;
}

.se-featured__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8125rem;
    color: var(--se-pink-text);
    margin: 0 0 0.5rem;
}

.se-featured__name {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.05;
    margin: 0;
}

.se-featured__band {
    font-size: 1.25rem;
    font-weight: 400;
    color: #666;
    margin: 0.35rem 0 0;
}

.se-featured__rule {
    display: block;
    width: 64px;
    height: 4px;
    background: var(--se-pink);
    margin: 1.25rem 0;
    border-radius: 2px;
}

.se-featured__description {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #333;
}

/* Artist pull-quote: the description is the guest speaking, so wrap it in
   quotation marks and give it a quote-y treatment. */
.se-featured__quote {
    quotes: "\201C" "\201D" "\2018" "\2019";
    position: relative;
    /* Sits directly beneath the media in the left column. */
    margin: 1.5rem 0 0;
    padding-left: 1.5rem;
    border-left: 4px solid var(--se-pink);
    font-style: italic;
    color: #2a2a2a;
}

.se-featured__quote::before {
    content: open-quote;
}

.se-featured__quote::after {
    content: close-quote;
}

/* ── Video facade (String Theory) ───────────────────────────────────────── */

.se-video {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.se-video__facade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    cursor: pointer;
    background-color: #000;
    background-image: var(--se-video-poster);
    background-size: cover;
    background-position: center;
}

.se-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
}

.se-video__play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 14px 0 14px 24px;
    border-color: transparent transparent transparent #fff;
}

.se-video__facade:focus-visible {
    outline: 3px solid var(--se-pink);
    outline-offset: -3px;
}

.se-video__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ── Podcast player + platforms ─────────────────────────────────────────── */

.se-soundcloud {
    margin: 1.5rem 0;
}

.se-soundcloud iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    border-radius: 6px;
}

.se-platforms {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0;
    margin: 0 0 1.5rem;
}

.se-platform {
    display: inline-block;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    border: 2px solid #222;
    font-weight: 600;
    text-decoration: none;
    color: #222;
}

.se-platform:hover,
.se-platform:focus-visible {
    background: #222;
    color: #fff;
}

/* ── Social share ───────────────────────────────────────────────────────── */

.se-share__label {
    margin: 1.5rem 0 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #444;
}

.se-share {
    list-style: none;
    display: flex;
    gap: 0.75rem;
    padding: 0;
    margin: 0 0 1.5rem;
}

.se-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f1f1;
    color: #222;
    text-decoration: none;
}

.se-share a:hover,
.se-share a:focus-visible {
    background: var(--brand-primary-fill, var(--brand-primary));
    color: var(--brand-on-primary, #fff);
}

/* ── Featured Strings (product cards, in the featured info column) ───────── */

.se-products--featured {
    margin: 1.5rem 0;
}

.se-products__heading {
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 1rem;
}

/* ── Tabs ───────────────────────────────────────────────────────────────── */

.se-tabs {
    padding: 1rem 0 2rem;
}

.se-tabs__list {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e5e5e5;
    margin-bottom: 1.75rem;
}

.se-tabs__tab {
    appearance: none;
    background: none;
    border: 0;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
}

.se-tabs__tab[aria-selected="true"] {
    color: #111;
    border-bottom-color: var(--se-pink);
}

.se-tabs__tab:focus-visible {
    outline: 3px solid var(--se-pink);
    outline-offset: 2px;
}

.se-panel__heading {
    font-size: 1.25rem;
    margin: 0 0 1rem;
}

/* ── Recent-episodes carousel ───────────────────────────────────────────── */

.se-recent {
    position: relative;
    min-width: 0;
    margin-bottom: 2.5rem;
}

.se-recent__swiper {
    width: 100%;
    /* Belt-and-braces with the min-width:0 above: cap the track so an
       un-enhanced Swiper (JS failed / not yet loaded) stays a horizontally
       scrollable row instead of stacking every slide full-width and ballooning
       the page. */
    overflow: hidden;
}

.se-recent:not(.is-enhanced) .se-recent__swiper {
    overflow-x: auto;
}

.se-recent:not(.is-enhanced) .se-recent__swiper .swiper-wrapper {
    display: flex;
    gap: 16px;
}

.se-recent:not(.is-enhanced) .se-recent__slide {
    flex: 0 0 clamp(160px, 42vw, 240px);
}

.se-recent__nav {
    display: none;
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.se-recent.is-enhanced .se-recent__nav {
    display: block;
}

.se-recent__nav--prev { left: 0; }
.se-recent__nav--next { right: 0; }

/* ── Cards (carousel + grid share .se-card) ─────────────────────────────── */

.se-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.se-card {
    display: block;
    text-decoration: none;
    color: #222;
    min-width: 0;
}

.se-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f1f1f1;
    border-radius: 8px;
    overflow: hidden;
}

.se-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.se-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.se-card__label {
    display: block;
    margin-top: 0.6rem;
    font-weight: 600;
    line-height: 1.3;
}

.se-card:hover .se-card__label,
.se-card:focus-visible .se-card__label {
    color: var(--se-pink-text);
}

.se-card[aria-current="page"] .se-card__label {
    color: var(--se-pink-text);
}

/* ── Transcript ─────────────────────────────────────────────────────────── */

.se-transcript {
    max-width: 72ch;
    line-height: 1.75;
    color: #333;
}

.se-transcript p {
    margin: 0 0 1rem;
}

.se-transcript__empty {
    color: #6b6b75; /* 5.27:1 on white; #777 was 4.48:1 */
    font-style: italic;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    /* Single-column stack, re-ordered so it reads: title (eyebrow/name/band)
       → media + quote → Featured Strings / share. This keeps the H1 above the
       media instead of the raw DOM order (media first). */
    .se-featured__grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "header"
            "media"
            "body";
        grid-template-rows: auto;
        row-gap: 1.5rem;
    }

    /* The header rule doubles as the divider from the media below on mobile;
       drop its extra bottom margin so spacing stays even with the row gap. */
    .se-featured__header .se-featured__rule {
        margin-bottom: 0;
    }
}
