/* "Listen to this page" narration player. Injected under the page title
   band by {% narration_player %}. Matches the site's card language:
   white, #e6e9ef border, rounded, blue accents. */

.nrr-player {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 0.9rem;
    background: #ffffff;
    border: 1px solid #e6e9ef;
    border-radius: 9999px;
    padding: 0.45rem 0.9rem 0.45rem 0.55rem;
    max-width: 46rem;
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

/* Black headphones beside the button — same glyph and size (38px, the
   button's height) as the poster callout's icon. */
.nrr-headphones {
    color: #0b1220;
    flex: none;
    display: inline-flex;
}
.nrr-headphones svg {
    width: 38px;
    height: 38px;
    display: block;
}

/* The site's "listen" pink (#ec4899) — shared with the Bonus Content
   bubble and the poster read-aloud callout, per Jeff. */
.nrr-play {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 0;
    border-radius: 9999px;
    background: #ec4899;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.5rem 1.1rem;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(236, 72, 153, 0.35);
}
.nrr-play:hover { background: #db2777; }
.nrr-play:focus-visible,
.nrr-player input:focus-visible,
.nrr-player select:focus-visible {
    outline: 2px solid #ec4899;
    outline-offset: 2px;
}
.nrr-play[disabled] { opacity: 0.6; cursor: wait; }

.nrr-times {
    font-variant-numeric: tabular-nums;
    font-size: 0.8rem;
    color: #5a6b80;
    white-space: nowrap;
}

.nrr-seek {
    flex: 1 1 8rem;
    min-width: 6rem;
    accent-color: #ec4899;
    height: 1.1rem;
    cursor: pointer;
}

.nrr-part {
    font-size: 0.75rem;
    font-weight: 700;
    color: #5a6b80;
    white-space: nowrap;
}

.nrr-speed {
    border: 1px solid #e6e9ef;
    border-radius: 0.5rem;
    background: #f7f9fc;
    color: #0b1220;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.35rem;
    cursor: pointer;
}

.nrr-volume {
    width: 4.5rem;
    accent-color: #ec4899;
    cursor: pointer;
}

.nrr-status {
    font-size: 0.8rem;
    color: #5a6b80;
    white-space: nowrap;
}
.nrr-status--error { color: #b91c1c; font-weight: 600; }

.nrr-manage {
    font-size: 0.75rem;
    font-weight: 700;
    color: #3b82f6;
    text-decoration: none;
    white-space: nowrap;
}
.nrr-manage:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .nrr-player { border-radius: 1.1rem; }
    .nrr-volume { display: none; } /* phones control volume in hardware */
    /* A long label (Stage 3's "Course Narration Stage 3, Including
       Podcasters' Wisdom Podcasts") must wrap on a phone. With nowrap the
       button ran ~500px wide on a 390px screen and most of it sat off the
       right edge (2026-10-07). */
    .nrr-play {
        white-space: normal;
        text-align: center;
        line-height: 1.3;
        max-width: 100%;
        min-width: 0;
    }
}
