
:root {
    --background: #15120f;
    --background-light: #201b16;
    --panel: #292119;
    --panel-light: #34291f;

    --cream: #f2e5c4;
    --cream-dark: #c9b98e;

    --gold: #c3974e;
    --gold-light: #e0bd76;

    --red: #9f342d;

    --text: #f3ead6;
    --muted: #afa38e;

    --border: rgba(224, 189, 118, 0.18);

    --player-height: 86px;

    --max-width: 1250px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(
            circle at top,
            #292117 0,
            #15120f 42%,
            #100e0c 100%
        );

    color: var(--text);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    line-height: 1.5;

    padding-bottom: var(--player-height);
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    backdrop-filter: blur(15px);

    background:
        rgba(20, 17, 14, 0.94);

    border-bottom:
        1px solid var(--border);
}

.header-inner {
    max-width: var(--max-width);
    margin: auto;

    min-height: 88px;

    padding: 0 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.radio-logo {
    width: 58px;
    height: 48px;

    border-radius: 7px 7px 12px 12px;

    display: grid;
    place-items: center;

    color: #1c1712;

    font-weight: bold;
    letter-spacing: 2px;

    background:
        linear-gradient(
            145deg,
            var(--gold-light),
            var(--gold)
        );

    box-shadow:
        inset 0 0 0 3px #4a341e,
        0 7px 20px rgba(0,0,0,.4);

    position: relative;
}

.radio-logo::before {
    content: "";

    width: 35px;
    height: 8px;

    position: absolute;
    top: -9px;

    border-top:
        2px solid var(--gold);
}

.brand-text h1 {
    font-size: 21px;
    margin: 0;
    letter-spacing: .5px;
}

.brand-text p {
    margin: 2px 0 0;

    color: var(--gold);

    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    gap: 30px;

    font-size: 14px;
}

.main-nav a {
    color: var(--cream-dark);

    transition:
        color .2s,
        transform .2s;
}

.main-nav a:hover {
    color: var(--gold-light);
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;

    border: 0;
    background: transparent;

    color: var(--cream);

    font-size: 28px;
}

.hero {
    min-height: 540px;

    position: relative;

    display: flex;
    align-items: center;

    background:
        radial-gradient(
            circle at 77% 45%,
            rgba(195,151,78,.19),
            transparent 27%
        ),
        linear-gradient(
            90deg,
            rgba(13,11,9,.98) 0%,
            rgba(19,15,12,.90) 47%,
            rgba(23,18,14,.57) 100%
        );
}

.hero::after {
    content: "";

    position: absolute;

    inset: 0;

    opacity: .055;

    pointer-events: none;

    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            #fff 3px
        );
}

.hero-content {
    width: 100%;
    max-width: var(--max-width);

    margin: auto;

    padding: 75px 28px;

    position: relative;
    z-index: 2;
}

.eyebrow,
.small-label {
    color: var(--gold);

    font-size: 12px;
    font-weight: bold;

    letter-spacing: 2.2px;

    text-transform: uppercase;
}

.hero h2 {
    max-width: 790px;

    margin:
        16px 0 22px;

    color: var(--cream);

    font-size:
        clamp(42px, 6vw, 76px);

    line-height: 1.03;

    font-weight: normal;

    text-shadow:
        0 6px 25px rgba(0,0,0,.8);
}

.hero p {
    max-width: 650px;

    margin-bottom: 30px;

    color: var(--cream-dark);

    font-size: 19px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.primary-button,
.secondary-button {
    min-height: 48px;

    padding: 0 22px;

    border-radius: 4px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
    font-weight: bold;

    transition:
        transform .2s,
        filter .2s;
}

.primary-button {
    border: 1px solid var(--gold);

    background:
        linear-gradient(
            180deg,
            #d1a861,
            #a67a39
        );

    color: #18120d;
}

.secondary-button {
    border: 1px solid var(--border);

    background:
        rgba(255,255,255,.04);

    color: var(--cream);
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.07);
}

.section-container {
    width: 100%;
    max-width: var(--max-width);

    margin: auto;

    padding-left: 28px;
    padding-right: 28px;
}

.now-playing-section {
    margin-top: -36px;

    position: relative;
    z-index: 10;
}

.now-playing-card {
    min-height: 110px;

    padding: 22px 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    border:
        1px solid rgba(224,189,118,.28);

    border-radius: 7px;

    background:
        linear-gradient(
            145deg,
            #33281e,
            #211a14
        );

    box-shadow:
        0 15px 40px rgba(0,0,0,.42);
}

.now-playing-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

.live-badge {
    border:
        1px solid rgba(211,86,73,.5);

    border-radius: 30px;

    padding: 7px 12px;

    color: #e8877d;

    font-family:
        Arial,
        sans-serif;

    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;

    display: flex;
    align-items: center;
    gap: 7px;
}

.live-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #d54d41;

    box-shadow:
        0 0 10px #d54d41;

    animation:
        livePulse 1.5s infinite;
}

@keyframes livePulse {
    50% {
        opacity: .35;
    }
}

.now-playing-info h3 {
    margin: 3px 0;

    font-size: 22px;
}

.now-playing-info p {
    margin: 0;

    color: var(--muted);

    font-size: 14px;
}

.round-play-button {
    width: 58px;
    height: 58px;

    flex-shrink: 0;

    border:
        1px solid var(--gold);

    border-radius: 50%;

    background: var(--gold);

    color: #17120d;

    font-size: 19px;

    transition:
        transform .2s;
}

.round-play-button:hover {
    transform: scale(1.06);
}

.search-section {
    padding:
        52px 0 10px;
}

.search-box {
    width: 100%;

    min-height: 58px;

    padding: 0 19px;

    display: flex;
    align-items: center;
    gap: 14px;

    border:
        1px solid var(--border);

    border-radius: 5px;

    background:
        rgba(255,255,255,.035);
}

.search-icon {
    color: var(--gold);

    font-size: 26px;
}

.search-box input {
    flex: 1;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--cream);

    font-size: 17px;
}

.search-box input::placeholder {
    color: #766d60;
}

#searchCount {
    color: var(--muted);

    font-size: 13px;
}

.content-section {
    padding: 65px 0;
}

.alternate-section {
    border-top:
        1px solid rgba(255,255,255,.035);

    border-bottom:
        1px solid rgba(255,255,255,.035);

    background:
        rgba(255,255,255,.015);
}

.section-heading {
    margin-bottom: 30px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;
}

.section-heading h2,
.about-card h2 {
    margin: 4px 0 0;

    color: var(--cream);

    font-size: 36px;

    font-weight: normal;
}

.text-button {
    border: 0;
    background: transparent;

    color: var(--gold);

    font-size: 14px;
}

.programme-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 21px;
}

.programme-card {
    overflow: hidden;

    border:
        1px solid var(--border);

    border-radius: 6px;

    background:
        linear-gradient(
            145deg,
            #2c241c,
            #1c1713
        );

    transition:
        transform .22s,
        border-color .22s,
        box-shadow .22s;

    cursor: pointer;
}

.programme-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(224,189,118,.45);

    box-shadow:
        0 17px 32px rgba(0,0,0,.34);
}

.programme-artwork {
    height: 185px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            circle at center,
            #5a4935,
            #2a2118 58%,
            #19140f
        );
}

.programme-artwork::after {
    content: "";

    position: absolute;

    inset: 0;

    border:
        10px solid rgba(0,0,0,.11);

    pointer-events: none;
}

.programme-initials {
    color:
        rgba(240,222,184,.88);

    font-size: 55px;

    letter-spacing: -2px;

    text-shadow:
        0 4px 18px rgba(0,0,0,.7);
}

.programme-body {
    padding: 18px;
}

.programme-category {
    color: var(--gold);

    font-family:
        Arial,
        sans-serif;

    font-size: 10px;
    font-weight: bold;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}

.programme-body h3 {
    min-height: 49px;

    margin: 7px 0 5px;

    color: var(--cream);

    font-size: 19px;

    line-height: 1.25;
}

.programme-body p {
    margin: 0;

    color: var(--muted);

    font-size: 13px;
}

.category-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}

.category-card {
    min-height: 115px;

    padding: 21px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    border:
        1px solid var(--border);

    border-radius: 5px;

    background:
        linear-gradient(
            145deg,
            #30261c,
            #211a14
        );

    transition:
        transform .2s,
        border-color .2s;

    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-3px);

    border-color:
        rgba(224,189,118,.45);
}

.category-card h3 {
    margin: 0 0 3px;

    font-size: 20px;
}

.category-card span {
    color: var(--muted);

    font-size: 12px;
}

.alphabet {
    display: grid;

    grid-template-columns:
        repeat(13, 1fr);

    gap: 7px;
}

.alphabet button {
    min-height: 45px;

    border:
        1px solid var(--border);

    border-radius: 4px;

    background:
        rgba(255,255,255,.025);

    color: var(--cream-dark);

    transition:
        background .2s,
        color .2s,
        border-color .2s;
}

.alphabet button:hover,
.alphabet button.active {
    background: var(--gold);

    color: #17120d;

    border-color: var(--gold);
}

.alphabet button.disabled {
    cursor: default;

    opacity: .25;
}

.about-section {
    padding:
        45px 0 85px;
}

.about-card {
    min-height: 340px;

    padding: 55px;

    display: grid;

    grid-template-columns:
        1.5fr 1fr;

    align-items: center;

    gap: 70px;

    border:
        1px solid var(--border);

    border-radius: 7px;

    background:
        linear-gradient(
            130deg,
            #30261c,
            #1c1712
        );
}

.about-card p {
    max-width: 700px;

    color: var(--muted);

    font-size: 16px;
}

.vintage-radio {
    width: 270px;
    height: 195px;

    margin: auto;

    padding: 24px;

    position: relative;

    border-radius:
        22px 22px 14px 14px;

    background:
        linear-gradient(
            145deg,
            #7b512f,
            #3f2819
        );

    border:
        6px solid #291a11;

    box-shadow:
        inset 0 0 25px rgba(255,200,120,.12),
        0 20px 35px rgba(0,0,0,.4);
}

.radio-speaker {
    width: 105px;
    height: 105px;

    padding: 15px;

    position: absolute;
    left: 22px;
    top: 29px;

    border-radius: 50%;

    background: #211c17;
}

.radio-speaker div {
    height: 2px;

    margin: 9px 0;

    background:
        rgba(200,170,120,.28);
}

.radio-dial {
    width: 88px;
    height: 59px;

    position: absolute;
    top: 33px;
    right: 22px;

    display: grid;
    place-items: center;

    border:
        4px solid #2d1e14;

    border-radius: 6px;

    background:
        #d7b975;

    color: #3a2918;

    font-size: 12px;
    font-weight: bold;

    box-shadow:
        inset 0 0 15px #765b32;
}

.radio-knobs {
    position: absolute;

    right: 28px;
    bottom: 27px;

    display: flex;
    gap: 15px;
}

.radio-knobs span {
    width: 26px;
    height: 26px;

    border:
        4px solid #1f150e;

    border-radius: 50%;

    background: #5b3b24;
}

.no-results {
    padding: 50px;

    text-align: center;

    color: var(--muted);
}

footer {
    padding:
        34px 0 38px;

    border-top:
        1px solid var(--border);

    background: #0e0c0a;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

footer p {
    margin: 4px 0 0;

    color: var(--muted);

    font-size: 13px;
}

.footer-right {
    color: var(--muted);

    font-size: 12px;
}

/* AUDIO PLAYER */

.audio-player {
    height: var(--player-height);

    padding: 12px 30px;

    position: fixed;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 200;

    display: grid;

    grid-template-columns:
        1fr auto 1fr;

    align-items: center;

    gap: 25px;

    border-top:
        1px solid rgba(224,189,118,.35);

    background:
        rgba(20,16,13,.97);

    backdrop-filter:
        blur(18px);

    box-shadow:
        0 -10px 35px rgba(0,0,0,.45);
}

.player-info {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.player-status {
    color: var(--gold);

    font-family:
        Arial,
        sans-serif;

    font-size: 9px;
    font-weight: bold;

    letter-spacing: 1.6px;
}

.player-info strong {
    overflow: hidden;

    margin-top: 2px;

    color: var(--cream);

    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 14px;
}

.player-info > span:last-child {
    overflow: hidden;

    color: var(--muted);

    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 11px;
}

.player-play-button {
    width: 48px;
    height: 48px;

    border: 0;

    border-radius: 50%;

    background: var(--gold);

    color: #16110d;

    font-size: 17px;
}

.volume-control {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;
}

.volume-control input {
    width: 125px;

    accent-color: var(--gold);
}

@media (max-width: 950px) {

    .programme-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .category-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .alphabet {
        grid-template-columns:
            repeat(9, 1fr);
    }

    .about-card {
        grid-template-columns: 1fr;

        gap: 40px;
    }
}

@media (max-width: 720px) {

    :root {
        --player-height: 74px;
    }

    .header-inner {
        min-height: 72px;
    }

    .brand-text h1 {
        font-size: 17px;
    }

    .brand-text p {
        font-size: 9px;
    }

    .radio-logo {
        width: 49px;
        height: 42px;
    }

    .mobile-menu-button {
        display: block;
    }

    .main-nav {
        display: none;

        padding: 20px 28px;

        position: absolute;

        top: 72px;
        left: 0;
        right: 0;

        flex-direction: column;

        background: #17130f;

        border-bottom:
            1px solid var(--border);
    }

    .main-nav.open {
        display: flex;
    }

    .hero {
        min-height: 490px;
    }

    .hero-content {
        padding-top: 55px;
        padding-bottom: 75px;
    }

    .hero h2 {
        font-size: 43px;
    }

    .now-playing-card {
        padding: 20px;
    }

    .now-playing-left {
        gap: 15px;
    }

    .live-badge {
        display: none;
    }

    .programme-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .alphabet {
        grid-template-columns:
            repeat(6, 1fr);
    }

    .about-card {
        padding: 30px 24px;
    }

    .vintage-radio {
        transform: scale(.88);
    }

    .audio-player {
        padding: 10px 16px;

        grid-template-columns:
            1fr auto;
    }

    .volume-control {
        display: none;
    }

    .player-play-button {
        width: 45px;
        height: 45px;
    }
}


/* PROGRAMME DETAIL */

.programme-detail {
    padding: 55px 0 90px;

    border-top:
        1px solid var(--border);

    background:
        linear-gradient(
            180deg,
            #1b1713,
            #100e0c
        );
}

.back-button {
    margin-bottom: 35px;

    padding: 0;

    border: 0;

    background: transparent;

    color: var(--gold);

    font-size: 14px;
}

.programme-detail-header {
    margin-bottom: 45px;

    display: flex;
    align-items: center;

    gap: 30px;
}

.programme-detail-art {
    width: 135px;
    height: 135px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border:
        1px solid var(--border);

    border-radius: 7px;

    background:
        radial-gradient(
            circle,
            #645038,
            #2a2118 65%,
            #17120e
        );

    color: var(--cream);

    font-size: 44px;

    box-shadow:
        0 15px 35px
        rgba(0,0,0,.35);
}

.programme-detail-header h2 {
    margin: 6px 0;

    color: var(--cream);

    font-size:
        clamp(35px, 5vw, 55px);

    font-weight: normal;
}

.programme-detail-header p {
    margin: 0;

    color: var(--muted);
}

.programme-detail-content {
    display: grid;

    gap: 35px;
}

.episode-group h3 {
    margin:
        0 0 12px;

    color: var(--gold-light);

    font-size: 22px;

    font-weight: normal;
}

.episode-list {
    overflow: hidden;

    border:
        1px solid var(--border);

    border-radius: 6px;
}

.episode-row {
    width: 100%;

    min-height: 58px;

    padding:
        10px 16px;

    display: flex;
    align-items: center;

    gap: 16px;

    text-align: left;

    border: 0;
    border-bottom:
        1px solid rgba(224,189,118,.10);

    background:
        rgba(255,255,255,.025);

    color: var(--cream);

    transition:
        background .15s;
}

.episode-row:last-child {
    border-bottom: 0;
}

.episode-row:hover {
    background:
        rgba(195,151,78,.12);
}

.episode-play {
    width: 32px;
    height: 32px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border:
        1px solid var(--gold);

    border-radius: 50%;

    color: var(--gold);

    font-size: 11px;
}

.episode-name {
    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 14px;
}

@media (max-width: 600px) {

    .programme-detail-header {
        align-items: flex-start;
    }

    .programme-detail-art {
        width: 85px;
        height: 85px;

        font-size: 28px;
    }

    .episode-name {
        white-space: normal;
    }
}


/* ==============================
   ENHANCED LIVE RADIO
   ============================== */

.now-playing-extras {
    margin-top: 18px;
}

.live-progress-card {
    padding: 18px 22px;

    border: 1px solid var(--border);
    border-radius: 6px;

    background:
        rgba(255,255,255,.025);
}

.live-progress-heading {
    display: flex;
    justify-content: space-between;

    margin-bottom: 8px;

    color: var(--muted);

    font-family: Arial, sans-serif;
    font-size: 11px;
}

.live-progress-track {
    height: 5px;

    overflow: hidden;

    border-radius: 5px;

    background:
        rgba(255,255,255,.08);
}

.live-progress-fill {
    height: 100%;

    background:
        linear-gradient(
            90deg,
            var(--gold),
            var(--gold-light)
        );

    transition:
        width .5s linear;
}

.live-now-summary {
    margin-top: 13px;

    display: flex;
    flex-direction: column;
}

.live-now-summary strong {
    color: var(--cream);
}

.live-now-summary span {
    color: var(--muted);
    font-size: 13px;
}

.radio-info-grid {
    margin-top: 18px;

    display: grid;
    grid-template-columns: 1fr 1.6fr;

    gap: 18px;
}

.radio-info-card {
    padding: 22px;

    border: 1px solid var(--border);
    border-radius: 6px;

    background:
        linear-gradient(
            145deg,
            #2c231b,
            #1c1713
        );
}

.radio-info-card h3 {
    margin: 7px 0 3px;

    color: var(--cream);

    font-size: 20px;
}

.radio-info-card p {
    margin: 0;

    color: var(--muted);

    font-size: 13px;
}

.history-list {
    margin-top: 12px;

    display: grid;

    gap: 9px;
}

.history-item {
    padding-bottom: 9px;

    border-bottom:
        1px solid rgba(224,189,118,.1);

    display: flex;
    flex-direction: column;
}

.history-item:last-child {
    border-bottom: 0;
}

.history-item strong {
    color: var(--cream);

    font-size: 13px;
}

.history-item span {
    color: var(--muted);

    font-size: 11px;
}


/* ==============================
   ENHANCED EPISODE LIST
   ============================== */

.episode-row {
    justify-content: flex-start;
}

.episode-number {
    width: 38px;

    flex-shrink: 0;

    color: var(--muted);

    font-family: Arial, sans-serif;
    font-size: 11px;

    text-align: center;
}

.episode-name {
    flex: 1;
}

.episode-row.playing {
    background:
        rgba(195,151,78,.18);
}

.episode-row.playing .episode-name {
    color: var(--gold-light);
}

.episode-row.playing .episode-play {
    background: var(--gold);

    color: #17120d;
}

.programme-groups {
    margin-top: 4px !important;

    font-size: 13px;
}


/* ==============================
   CATEGORY CARDS
   ============================== */

.category-card {
    position: relative;

    overflow: hidden;
}

.category-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    bottom: 0;

    width: 3px;

    background: var(--gold);

    opacity: .65;
}


/* ==============================
   RESPONSIVE
   ============================== */

@media (max-width: 760px) {

    .radio-info-grid {
        grid-template-columns: 1fr;
    }

    .episode-number {
        display: none;
    }

}

/* ==========================================================
   JC OLD TIME RADIO - ARTWORK
   ========================================================== */

.live-artwork {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
}

.live-artwork-inner,
.artwork-wrapper,
.artwork-fallback {
    width: 100%;
    height: 100%;
}

.artwork-wrapper {
    overflow: hidden;
    border: 1px solid rgba(224,189,118,.28);
    border-radius: 5px;
    background: #211a14;
}

.artwork-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.artwork-fallback {
    display: grid;
    place-items: center;

    border: 1px solid rgba(224,189,118,.22);
    border-radius: 5px;

    background:
        radial-gradient(
            circle,
            #604d36,
            #292018
        );

    color: var(--cream);
    font-size: 20px;
    font-weight: bold;
}

.next-up-content {
    margin-top: 13px;

    display: flex;
    align-items: center;

    gap: 15px;
}

.next-artwork {
    width: 74px;
    height: 74px;
    flex: 0 0 74px;
}

.next-up-content h3 {
    margin: 0 0 4px;
}

.enhanced-history-item {
    min-height: 53px;
    padding-bottom: 9px;

    flex-direction: row;
    align-items: center;

    gap: 11px;
}

.history-artwork {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
}

.history-artwork .artwork-fallback {
    font-size: 11px;
}

.history-text {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.history-text strong,
.history-text span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.live-progress-fill {
    width: 0;
    transition: width 1s linear;
}

@media (max-width: 720px) {

    .live-artwork {
        width: 58px;
        height: 58px;
    }

    .now-playing-left {
        align-items: center;
    }

    .next-artwork {
        width: 60px;
        height: 60px;
        flex-basis: 60px;
    }
}


/* PROGRAMME COVER IMAGES */

.programme-cover {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;
}

.programme-initials-fallback {
    width: 100%;
    height: 100%;

    display: none;

    align-items: center;
    justify-content: center;
}

/* Programme artwork - square full-cover display */

.programme-artwork {
    height: auto;
    aspect-ratio: 1 / 1;
}

.programme-cover {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Programme detail cover */

.programme-detail-art {
    overflow: hidden;
    position: relative;
}

.programme-detail-cover {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
    object-position: center;
}

.programme-detail-fallback {
    width: 100%;
    height: 100%;

    display: none;

    place-items: center;

    color: var(--cream);

    font-size: 44px;
}

@media (max-width: 600px) {

    .programme-detail-fallback {
        font-size: 28px;
    }

}

/* ==========================================================
   ARCHIVE PLAYER PROGRESS
   ========================================================== */

.archive-progress {
    display: flex;
    align-items: center;

    gap: 10px;

    min-width: 250px;

    color: var(--muted);

    font-family: Arial, sans-serif;
    font-size: 10px;
}

.archive-progress[hidden] {
    display: none;
}

.archive-progress input {
    width: 180px;

    accent-color: var(--gold);
}

@media (max-width: 950px) {

    .archive-progress {
        min-width: 180px;
    }

    .archive-progress input {
        width: 110px;
    }
}

@media (max-width: 720px) {

    .archive-progress {
        display: none !important;
    }

}

@media (min-width: 721px) {

    .audio-player {
        grid-template-columns:
            minmax(220px, 1fr)
            auto
            auto
            minmax(150px, 1fr);
    }

}


/* ==========================================================
   PROGRAMME EPISODE BROWSER
   ========================================================== */

.programme-detail-tools {
    margin-bottom: 30px;

    padding: 18px;

    border:
        1px solid var(--border);

    border-radius: 6px;

    background:
        rgba(255,255,255,.025);
}


/* Episode search */

.episode-search-box {
    min-height: 54px;

    padding:
        0 15px;

    display: flex;
    align-items: center;

    gap: 12px;

    border:
        1px solid rgba(224,189,118,.18);

    border-radius: 5px;

    background:
        rgba(0,0,0,.18);
}

.episode-search-icon {
    color: var(--gold);

    font-size: 24px;
}

.episode-search-input {
    min-width: 0;

    flex: 1;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--cream);

    font-size: 15px;
}

.episode-search-input::placeholder {
    color: #766d60;
}

.episode-search-clear {
    padding:
        5px 9px;

    border:
        1px solid var(--border);

    border-radius: 4px;

    background:
        transparent;

    color: var(--gold);

    font-size: 11px;
}


/* Search actions */

.episode-browser-actions {
    margin-top: 13px;

    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 10px;
}

.episode-result-count {
    margin-right: auto;

    color: var(--muted);

    font-family:
        Arial,
        sans-serif;

    font-size: 11px;
}

.episode-browser-button {
    padding:
        7px 11px;

    border:
        1px solid var(--border);

    border-radius: 4px;

    background:
        rgba(255,255,255,.025);

    color: var(--cream-dark);

    font-size: 11px;
}

.episode-browser-button:hover {
    border-color:
        rgba(224,189,118,.45);

    color: var(--gold-light);
}


/* Collapsible series/year headings */

.episode-group-heading {
    margin:
        0 0 10px !important;
}

.episode-group-toggle {
    width: 100%;

    padding:
        12px 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border:
        1px solid var(--border);

    border-radius: 5px;

    background:
        linear-gradient(
            145deg,
            rgba(54,43,32,.75),
            rgba(30,24,19,.75)
        );

    color: var(--cream);

    text-align: left;
}

.episode-group-toggle:hover {
    border-color:
        rgba(224,189,118,.42);
}

.episode-group-name {
    color: var(--gold-light);

    font-size: 18px;
}

.episode-group-meta {
    flex-shrink: 0;

    color: var(--muted);

    font-family:
        Arial,
        sans-serif;

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: .7px;
}

.episode-group-chevron {
    margin-left: 8px;

    display: inline-block;

    color: var(--gold);

    font-size: 14px;

    transition:
        transform .2s ease;
}

.episode-group.collapsed
.episode-group-chevron {
    transform:
        rotate(-90deg);
}


/* Search highlighting */

.episode-row[hidden] {
    display: none;
}


/* Mobile */

@media (max-width: 600px) {

    .programme-detail-tools {
        padding: 12px;
    }

    .episode-browser-actions {
        align-items: stretch;
    }

    .episode-result-count {
        width: 100%;

        margin-right: 0;
        margin-bottom: 3px;
    }

    .episode-browser-button {
        flex: 1;
    }

    .episode-group-name {
        font-size: 15px;
    }

    .episode-group-meta {
        font-size: 9px;
    }

}



/* ==========================================================
   PROGRAMME EPISODE BROWSER
   ========================================================== */

.programme-detail-tools {
    margin-bottom: 30px;

    padding: 18px;

    border:
        1px solid var(--border);

    border-radius: 6px;

    background:
        rgba(255,255,255,.025);
}


/* Episode search */

.episode-search-box {
    min-height: 54px;

    padding:
        0 15px;

    display: flex;
    align-items: center;

    gap: 12px;

    border:
        1px solid rgba(224,189,118,.18);

    border-radius: 5px;

    background:
        rgba(0,0,0,.18);
}

.episode-search-icon {
    color: var(--gold);

    font-size: 24px;
}

.episode-search-input {
    min-width: 0;

    flex: 1;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--cream);

    font-size: 15px;
}

.episode-search-input::placeholder {
    color: #766d60;
}

.episode-search-clear {
    padding:
        5px 9px;

    border:
        1px solid var(--border);

    border-radius: 4px;

    background:
        transparent;

    color: var(--gold);

    font-size: 11px;
}


/* Search actions */

.episode-browser-actions {
    margin-top: 13px;

    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 10px;
}

.episode-result-count {
    margin-right: auto;

    color: var(--muted);

    font-family:
        Arial,
        sans-serif;

    font-size: 11px;
}

.episode-browser-button {
    padding:
        7px 11px;

    border:
        1px solid var(--border);

    border-radius: 4px;

    background:
        rgba(255,255,255,.025);

    color: var(--cream-dark);

    font-size: 11px;
}

.episode-browser-button:hover {
    border-color:
        rgba(224,189,118,.45);

    color: var(--gold-light);
}


/* Collapsible series/year headings */

.episode-group-heading {
    margin:
        0 0 10px !important;
}

.episode-group-toggle {
    width: 100%;

    padding:
        12px 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border:
        1px solid var(--border);

    border-radius: 5px;

    background:
        linear-gradient(
            145deg,
            rgba(54,43,32,.75),
            rgba(30,24,19,.75)
        );

    color: var(--cream);

    text-align: left;
}

.episode-group-toggle:hover {
    border-color:
        rgba(224,189,118,.42);
}

.episode-group-name {
    color: var(--gold-light);

    font-size: 18px;
}

.episode-group-meta {
    flex-shrink: 0;

    color: var(--muted);

    font-family:
        Arial,
        sans-serif;

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: .7px;
}

.episode-group-chevron {
    margin-left: 8px;

    display: inline-block;

    color: var(--gold);

    font-size: 14px;

    transition:
        transform .2s ease;
}

.episode-group.collapsed
.episode-group-chevron {
    transform:
        rotate(-90deg);
}


/* Search highlighting */

.episode-row[hidden] {
    display: none;
}


/* Mobile */

@media (max-width: 600px) {

    .programme-detail-tools {
        padding: 12px;
    }

    .episode-browser-actions {
        align-items: stretch;
    }

    .episode-result-count {
        width: 100%;

        margin-right: 0;
        margin-bottom: 3px;
    }

    .episode-browser-button {
        flex: 1;
    }

    .episode-group-name {
        font-size: 15px;
    }

    .episode-group-meta {
        font-size: 9px;
    }

}


/* Episode duration */

.episode-duration {
    min-width: 66px;

    flex-shrink: 0;

    color: var(--muted);

    font-family:
        Arial,
        sans-serif;

    font-size: 11px;

    text-align: right;
}

.episode-row.playing .episode-duration {
    color: var(--gold-light);
}

@media (max-width: 600px) {

    .episode-duration {
        min-width: 52px;
        font-size: 10px;
    }

}

/* ==========================================================
   RESUME PLAYBACK
   ========================================================== */

.programme-resume-button {
    margin-top: 18px;

    max-width: 520px;

    padding:
        11px 15px;

    display: flex;
    align-items: center;

    gap: 12px;

    border:
        1px solid rgba(224,189,118,.35);

    border-radius: 5px;

    background:
        rgba(195,151,78,.08);

    color: var(--cream);

    text-align: left;

    transition:
        background .15s,
        border-color .15s,
        transform .15s;
}

.programme-resume-button:hover {
    background:
        rgba(195,151,78,.16);

    border-color:
        rgba(224,189,118,.6);

    transform:
        translateY(-1px);
}

.resume-play-icon {
    width: 36px;
    height: 36px;

    flex:
        0 0 36px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        var(--gold);

    color:
        #17120d;

    font-size: 12px;
}

.programme-resume-button strong {
    display: block;

    color:
        var(--gold-light);

    font-size: 13px;
}

.programme-resume-button small {
    margin-top: 2px;

    display: block;

    color:
        var(--muted);

    font-size: 11px;
}


/* ==========================================================
   RECENTLY LISTENED
   ========================================================== */

.recent-listened-section {
    border-top:
        1px solid rgba(255,255,255,.035);

    border-bottom:
        1px solid rgba(255,255,255,.035);

    background:
        rgba(255,255,255,.012);
}

.recent-listened-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}

.recent-listened-card {
    overflow: hidden;

    border:
        1px solid var(--border);

    border-radius: 6px;

    background:
        linear-gradient(
            145deg,
            #2b231b,
            #1c1713
        );

    box-shadow:
        0 10px 25px
        rgba(0,0,0,.18);
}

.recent-listened-artwork {
    aspect-ratio: 1 / 1;

    position: relative;

    overflow: hidden;

    background:
        #1b1712;
}

.recent-listened-artwork img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
}

.recent-listened-fallback {
    width: 100%;
    height: 100%;

    display: grid;
    place-items: center;

    background:
        radial-gradient(
            circle,
            #5b4935,
            #251d16 65%,
            #17120e
        );

    color: var(--cream);

    font-size: 60px;

    font-weight: bold;
}

.recent-listened-body {
    padding: 18px;
}

.recent-listened-body h3 {
    margin:
        7px 0 4px;

    color: var(--cream);

    font-size: 20px;
}

.recent-listened-episode {
    min-height: 40px;

    margin:
        0 0 15px;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.4;
}

.recent-listened-progress {
    margin-bottom: 13px;
}

.recent-listened-progress-track {
    height: 4px;

    overflow: hidden;

    border-radius: 4px;

    background:
        rgba(255,255,255,.08);
}

.recent-listened-progress-fill {
    height: 100%;

    background:
        linear-gradient(
            90deg,
            var(--gold),
            var(--gold-light)
        );
}

.recent-listened-times {
    margin-top: 5px;

    display: flex;
    justify-content: space-between;

    color: var(--muted);

    font-family:
        Arial,
        sans-serif;

    font-size: 9px;
}

.recent-listened-resume {
    width: 100%;

    min-height: 40px;

    border:
        1px solid rgba(224,189,118,.35);

    border-radius: 4px;

    background:
        rgba(195,151,78,.10);

    color: var(--gold-light);

    font-weight: bold;

    transition:
        background .15s,
        border-color .15s;
}

.recent-listened-resume:hover {
    background:
        rgba(195,151,78,.19);

    border-color:
        rgba(224,189,118,.58);
}

@media (max-width: 950px) {

    .recent-listened-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

    .recent-listened-grid {
        grid-template-columns: 1fr;
    }

}


/* ==========================================================
   PROGRAMME CARD ACTIONS
   ========================================================== */

.programme-heading-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.programme-card-actions {
    margin-top: 16px;

    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}

.programme-card-button {
    min-height: 34px;

    padding:
        6px 11px;

    border:
        1px solid var(--border);

    border-radius: 4px;

    background:
        rgba(255,255,255,.025);

    color:
        var(--cream-dark);

    font-size: 11px;

    transition:
        background .15s,
        border-color .15s,
        color .15s;
}

.programme-card-button:hover {
    border-color:
        rgba(224,189,118,.55);

    color:
        var(--gold-light);

    background:
        rgba(195,151,78,.10);
}

.programme-card-continue {
    border-color:
        rgba(224,189,118,.38);

    background:
        rgba(195,151,78,.12);

    color:
        var(--gold-light);
}

@media (max-width: 600px) {

    .programme-heading-actions {
        gap: 10px;
    }

    .programme-card-actions {
        flex-direction: column;
    }

    .programme-card-button {
        width: 100%;
    }

}

/* ==========================================================
   RECENTLY ADDED
   ========================================================== */

.recently-added-section {
    background:
        rgba(255,255,255,.01);
}

.recently-added-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}

.recently-added-card {
    overflow: hidden;

    border:
        1px solid var(--border);

    border-radius: 6px;

    background:
        linear-gradient(
            145deg,
            #2b231b,
            #191510
        );

    cursor: pointer;

    transition:
        transform .18s,
        border-color .18s,
        box-shadow .18s;
}

.recently-added-card:hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(224,189,118,.45);

    box-shadow:
        0 12px 28px
        rgba(0,0,0,.28);
}

.recently-added-art {
    aspect-ratio:
        1 / 1;

    overflow: hidden;

    background:
        #17130f;
}

.recently-added-art img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
}

.recently-added-body {
    padding: 15px;
}

.recently-added-body h3 {
    margin:
        5px 0 4px;

    color:
        var(--cream);

    font-size: 17px;
}

.recently-added-body p {
    min-height: 38px;

    margin:
        0 0 12px;

    overflow: hidden;

    color:
        var(--muted);

    font-size: 12px;

    line-height: 1.45;

    display:
        -webkit-box;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.recently-added-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    color:
        var(--muted);

    font-family:
        Arial,
        sans-serif;

    font-size: 10px;
}

.recently-added-play {
    min-height: 32px;

    padding:
        5px 11px;

    border:
        1px solid
        rgba(224,189,118,.35);

    border-radius: 4px;

    background:
        rgba(195,151,78,.10);

    color:
        var(--gold-light);

    font-size: 11px;
}

.recently-added-play:hover {
    background:
        rgba(195,151,78,.2);
}


@media (max-width: 950px) {

    .recently-added-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    .recently-added-grid {
        grid-template-columns:
            1fr;
    }

}


/* ==========================================================
   FAVOURITES
   ========================================================== */

.favourites-section {
    background:
        rgba(255,255,255,.012);
}

.favourites-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}

.favourite-card {
    overflow: hidden;

    border:
        1px solid var(--border);

    border-radius: 6px;

    background:
        linear-gradient(
            145deg,
            #2b231b,
            #191510
        );

    cursor: pointer;

    transition:
        transform .18s,
        border-color .18s,
        box-shadow .18s;
}

.favourite-card:hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(224,189,118,.45);

    box-shadow:
        0 12px 28px
        rgba(0,0,0,.28);
}

.favourite-artwork {
    aspect-ratio:
        1 / 1;

    position: relative;

    overflow: hidden;

    background:
        #17130f;
}

.favourite-artwork img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
}

.favourite-remove {
    width: 38px;
    height: 38px;

    position: absolute;

    top: 10px;
    right: 10px;

    border:
        1px solid rgba(224,189,118,.5);

    border-radius: 50%;

    background:
        rgba(20,16,13,.88);

    color:
        var(--gold-light);

    font-size: 18px;
}

.favourite-body {
    padding: 16px;
}

.favourite-body h3 {
    margin:
        6px 0 4px;

    color:
        var(--cream);

    font-size: 18px;
}

.favourite-body p {
    margin:
        0 0 13px;

    color:
        var(--muted);

    font-size: 12px;
}

.favourite-open {
    width: 100%;

    min-height: 35px;

    border:
        1px solid rgba(224,189,118,.32);

    border-radius: 4px;

    background:
        rgba(195,151,78,.10);

    color:
        var(--gold-light);

    font-size: 11px;
}

.programme-card-favourite {
    color:
        var(--gold-light);
}

@media (max-width: 950px) {

    .favourites-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

    .favourites-grid {
        grid-template-columns:
            1fr;
    }

}


/* ==========================================================
   CONTINUE LISTENING
   ========================================================== */

.continue-listening-section {
    background:
        rgba(255,255,255,.012);
}

.continue-listening-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}

.continue-listening-card {
    overflow: hidden;

    border:
        1px solid var(--border);

    border-radius: 6px;

    background:
        linear-gradient(
            145deg,
            #2b231b,
            #1b1612
        );
}

.continue-listening-art {
    aspect-ratio: 1 / 1;

    overflow: hidden;

    background:
        #17130f;
}

.continue-listening-art img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
}

.continue-listening-fallback {
    width: 100%;
    height: 100%;

    display: grid;
    place-items: center;

    background:
        radial-gradient(
            circle,
            #5a4935,
            #241c15
        );

    color:
        var(--cream);

    font-size: 55px;
}

.continue-listening-body {
    padding: 17px;
}

.continue-listening-body h3 {
    margin:
        6px 0 4px;

    color:
        var(--cream);

    font-size: 19px;
}

.continue-listening-body p {
    min-height: 40px;

    margin:
        0 0 14px;

    color:
        var(--muted);

    font-size: 12px;

    line-height: 1.45;
}

.continue-listening-progress {
    margin-bottom: 12px;
}

.continue-listening-track {
    height: 4px;

    overflow: hidden;

    border-radius: 4px;

    background:
        rgba(255,255,255,.08);
}

.continue-listening-fill {
    height: 100%;

    background:
        linear-gradient(
            90deg,
            var(--gold),
            var(--gold-light)
        );
}

.continue-listening-times {
    margin-top: 5px;

    display: flex;
    justify-content: space-between;

    color:
        var(--muted);

    font-family:
        Arial,
        sans-serif;

    font-size: 9px;
}

.continue-listening-resume {
    width: 100%;

    min-height: 40px;

    border:
        1px solid rgba(224,189,118,.38);

    border-radius: 4px;

    background:
        rgba(195,151,78,.12);

    color:
        var(--gold-light);

    font-weight: bold;
}

.continue-listening-resume:hover {
    background:
        rgba(195,151,78,.2);
}

@media (max-width: 950px) {

    .continue-listening-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

    .continue-listening-grid {
        grid-template-columns:
            1fr;
    }

}

/* ==========================================================
   HOME PERSONAL ROW
   Continue Listening / Favourites / Recently Listened
   ========================================================== */

.home-personal-row {
    max-width: 1280px;

    margin:
        0 auto;

    padding:
        0 24px;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;

    align-items: start;
}

.home-personal-row > section {
    min-width: 0;

    margin: 0;
    padding: 0;

    border: 0;

    background: transparent;
}

.home-personal-row .section-container {
    width: 100%;
    max-width: none;

    padding: 0;
}

.home-personal-row .section-heading {
    margin-bottom: 16px;
}

.home-personal-row .section-heading h2 {
    font-size: 28px;
}


/*
 * Each personal section becomes a single-column shelf
 * within its third of the page.
 */

.home-personal-row .continue-listening-grid,
.home-personal-row .favourites-grid,
.home-personal-row .recent-listened-grid {
    grid-template-columns: 1fr;
}


/*
 * Keep these shelves compact.
 * Show the first few items rather than making the homepage huge.
 */

.home-personal-row .continue-listening-card:nth-child(n+4),
.home-personal-row .favourite-card:nth-child(n+4),
.home-personal-row .recent-listened-card:nth-child(n+4) {
    display: none;
}


/*
 * Slightly smaller artwork inside the three-column layout.
 */

.home-personal-row .continue-listening-art,
.home-personal-row .favourite-artwork,
.home-personal-row .recent-listened-artwork {
    aspect-ratio: 16 / 9;
}

.home-personal-row .continue-listening-art img,
.home-personal-row .favourite-artwork img,
.home-personal-row .recent-listened-artwork img {
    object-fit: contain;
}


/* Tablet */

@media (max-width: 1050px) {

    .home-personal-row {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* Mobile */

@media (max-width: 700px) {

    .home-personal-row {
        grid-template-columns: 1fr;

        padding:
            0 16px;
    }

    .home-personal-row .section-heading h2 {
        font-size: 25px;
    }

}


/* ==========================================================
   HOME PERSONAL ROW - FOUR COLUMN DESKTOP LAYOUT
   ========================================================== */

@media (min-width: 1201px) {

    .home-personal-row {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        gap: 18px;
    }

    .home-personal-row .section-heading h2 {
        font-size: 24px;
    }

    .home-personal-row .continue-listening-body,
    .home-personal-row .favourite-card-body,
    .home-personal-row .recent-listened-body {
        padding: 16px;
    }

}

/* ==========================================================
   HOME PERSONAL ROW - 4 CARD DESKTOP LAYOUT
   ========================================================== */

@media (min-width: 1201px) {

    .home-personal-row {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        gap: 18px;
    }

    /*
     * Continue Listening = column 1
     * Favourites         = column 2
     * Recently Listened  = columns 3 + 4
     */

    .home-personal-row
    #recentlyListenedSection {
        grid-column: span 2;
    }

    .home-personal-row
    #recentlyListenedSection
    .recent-listened-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 18px;
    }

    /*
     * Keep only the first two recent items
     * in the compact desktop row.
     */

    .home-personal-row
    #recentlyListenedSection
    .recent-listened-card:nth-child(n+3) {
        display: none;
    }

}

/* ==========================================================
   SPACING ABOVE PERSONAL LISTENING ROW
   ========================================================== */

.home-personal-row {
    margin-top: 42px;
}

@media (max-width: 700px) {

    .home-personal-row {
        margin-top: 28px;
    }

}

/* ==========================================================
   USER ACCOUNT
   ========================================================== */

.account-button {
    padding:
        8px 13px;

    border:
        1px solid rgba(224,189,118,.38);

    border-radius: 4px;

    background:
        rgba(195,151,78,.08);

    color:
        var(--gold-light);

    font-size: 12px;

    cursor: pointer;
}

.account-button:hover {
    background:
        rgba(195,151,78,.16);
}


.account-overlay {
    position: fixed;

    inset: 0;

    z-index: 10000;

    padding: 20px;

    display: grid;
    place-items: center;

    background:
        rgba(5,4,3,.82);

    backdrop-filter:
        blur(5px);
}

.account-overlay[hidden] {
    display: none;
}


.account-dialog {
    width:
        min(430px, 100%);

    position: relative;

    padding:
        34px;

    border:
        1px solid
        rgba(224,189,118,.38);

    border-radius: 8px;

    background:
        linear-gradient(
            145deg,
            #30261d,
            #17130f
        );

    box-shadow:
        0 30px 80px
        rgba(0,0,0,.55);
}


.account-dialog h2 {
    margin:
        5px 0 15px;

    color:
        var(--cream);

    font-size: 32px;

    font-weight: normal;
}


.account-close {
    position: absolute;

    top: 12px;
    right: 14px;

    width: 34px;
    height: 34px;

    border: 0;

    background:
        transparent;

    color:
        var(--muted);

    font-size: 26px;
}


.account-intro,
.account-sync-status {
    color:
        var(--muted);

    font-size: 13px;

    line-height: 1.55;
}


#accountLoginForm {
    margin-top: 22px;

    display: grid;

    gap: 17px;
}


#accountLoginForm label {
    display: grid;

    gap: 7px;

    color:
        var(--gold-light);

    font-size: 12px;
}


#accountLoginForm input {
    width: 100%;

    min-height: 44px;

    padding:
        8px 11px;

    border:
        1px solid
        rgba(224,189,118,.25);

    border-radius: 4px;

    outline: 0;

    background:
        rgba(0,0,0,.25);

    color:
        var(--cream);

    font-size: 15px;
}


#accountLoginForm input:focus {
    border-color:
        rgba(224,189,118,.65);
}


.account-submit {
    min-height: 43px;

    padding:
        8px 16px;

    border:
        1px solid
        rgba(224,189,118,.45);

    border-radius: 4px;

    background:
        var(--gold);

    color:
        #17120d;

    font-weight: bold;
}


.account-signout {
    margin-top: 17px;

    width: 100%;
}


.account-error {
    margin: 0;

    padding:
        9px 11px;

    border:
        1px solid
        rgba(190,80,65,.55);

    border-radius: 4px;

    background:
        rgba(150,50,40,.12);

    color:
        #efb4aa;

    font-size: 12px;
}


.account-welcome {
    margin:
        15px 0 8px;

    color:
        var(--cream);
}


@media (max-width: 700px) {

    .account-dialog {
        padding:
            28px 20px;
    }

}


/* ==========================================================
   PERSONAL HOMEPAGE CARDS - EQUAL HEIGHT
   ========================================================== */

@media (min-width: 1201px) {

    .home-personal-row {
        align-items: stretch;
    }

    .home-personal-row > section {
        height: 100%;
    }

    .home-personal-row .section-container {
        height: 100%;

        display: flex;
        flex-direction: column;
    }

    .home-personal-row .continue-listening-grid,
    .home-personal-row .favourites-grid,
    .home-personal-row .recent-listened-grid {
        height: 100%;

        align-items: stretch;
    }

    .home-personal-row .continue-listening-card,
    .home-personal-row .favourite-card,
    .home-personal-row .recent-listened-card {
        height: 100%;

        display: flex;
        flex-direction: column;
    }

    .home-personal-row .continue-listening-body,
    .home-personal-row .favourite-body,
    .home-personal-row .recent-listened-body {
        flex: 1;

        display: flex;
        flex-direction: column;
    }

    .home-personal-row .continue-listening-resume,
    .home-personal-row .favourite-open,
    .home-personal-row .recent-listened-resume {
        margin-top: auto;
    }

    .home-personal-row .continue-listening-art,
    .home-personal-row .favourite-artwork,
    .home-personal-row .recent-listened-artwork {
        aspect-ratio: 1 / 1;
    }

}

/* ==========================================================
   PERSONAL HOMEPAGE CARDS - COMPACT HEIGHT
   ========================================================== */

@media (min-width: 1201px) {

    /*
     * Don't stretch the cards vertically.
     */
    .home-personal-row {
        align-items: start;
    }

    .home-personal-row > section,
    .home-personal-row .section-container,
    .home-personal-row .continue-listening-grid,
    .home-personal-row .favourites-grid,
    .home-personal-row .recent-listened-grid,
    .home-personal-row .continue-listening-card,
    .home-personal-row .favourite-card,
    .home-personal-row .recent-listened-card {
        height: auto;
        min-height: 0;
    }

    /*
     * Compact the content inside each card.
     */
    .home-personal-row .continue-listening-body,
    .home-personal-row .favourite-body,
    .home-personal-row .recent-listened-body {
        flex: 0 0 auto;
        min-height: 0;
    }

    /*
     * Don't force Resume/Open to the bottom of
     * an artificially tall card.
     */
    .home-personal-row .continue-listening-resume,
    .home-personal-row .favourite-open,
    .home-personal-row .recent-listened-resume {
        margin-top: 10px;
    }

    /*
     * Reduce unnecessary vertical spacing around
     * the progress/timeline area.
     */
    .home-personal-row .continue-listening-progress {
        margin-bottom: 8px;
    }

}

/* ==========================================================
   HERO TITLE
   ========================================================== */

.hero-title-line {
    display: block;
}

@media (min-width: 1000px) {

    .hero-title-line {
        white-space: nowrap;
    }

    .hero-title {
        max-width: none;
    }

}


/* ==========================================================
   LOGGED-OUT LANDING PAGE
   ========================================================== */

.guest-landing {
    min-height: 680px;

    border-bottom:
        1px solid rgba(224,189,118,.18);

    background:
        radial-gradient(
            circle at 78% 42%,
            rgba(135,92,42,.18),
            transparent 34%
        ),
        linear-gradient(
            110deg,
            #0c0b09 0%,
            #12100d 48%,
            #241d15 100%
        );
}

.guest-landing[hidden] {
    display: none;
}

.guest-landing-inner {
    width: min(1280px, calc(100% - 48px));

    min-height: 680px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(340px, .85fr);

    align-items: center;

    gap: 70px;
}

.guest-kicker {
    display: block;

    margin-bottom: 22px;

    color: var(--gold);

    font-size: 13px;

    font-weight: bold;

    letter-spacing: .18em;
}

.guest-landing h1 {
    margin: 0;

    color: var(--cream);

    font-size:
        clamp(52px, 5vw, 82px);

    font-weight: normal;

    line-height: 1.02;

    letter-spacing: -.025em;
}

.guest-landing h1 span {
    display: block;
}

@media (min-width: 1000px) {

    .guest-landing h1 span {
        white-space: nowrap;
    }

}

.guest-intro {
    max-width: 680px;

    margin:
        27px 0 0;

    color: var(--muted);

    font-size: 17px;

    line-height: 1.65;
}

.guest-actions {
    margin-top: 30px;

    display: flex;

    gap: 14px;
}

.guest-signin {
    min-width: 210px;

    min-height: 52px;

    padding:
        10px 28px;

    border:
        1px solid var(--gold);

    border-radius: 5px;

    background:
        linear-gradient(
            180deg,
            var(--gold-light),
            var(--gold)
        );

    color: #17120d;

    font-family: inherit;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;
}

.guest-signin:hover {
    filter: brightness(1.08);
}

.guest-account-note {
    margin-top: 20px;

    color: var(--gold);

    font-size: 12px;

    letter-spacing: .03em;
}


/* Decorative vintage radio */

.guest-radio {
    display: flex;

    justify-content: center;
    align-items: center;
}

.guest-radio-case {
    width: min(410px, 100%);

    padding:
        30px 30px 25px;

    border:
        2px solid rgba(203,155,75,.55);

    border-radius:
        48% 48% 12px 12px / 26% 26% 12px 12px;

    background:
        linear-gradient(
            145deg,
            #4a301c,
            #24170f 62%,
            #120e0a
        );

    box-shadow:
        inset 0 0 0 7px
        rgba(14,10,7,.52),
        0 25px 55px
        rgba(0,0,0,.45);
}

.guest-radio-brand {
    margin-bottom: 18px;

    color: var(--gold-light);

    font-size: 11px;

    text-align: center;

    letter-spacing: .16em;
}

.guest-radio-grille {
    min-height: 330px;

    display: grid;
    place-items: center;

    border:
        2px solid rgba(204,159,82,.45);

    border-radius:
        46% 46% 20px 20px / 32% 32% 20px 20px;

    background:
        repeating-linear-gradient(
            90deg,
            rgba(205,160,84,.12) 0,
            rgba(205,160,84,.12) 4px,
            rgba(0,0,0,.22) 4px,
            rgba(0,0,0,.22) 13px
        ),
        radial-gradient(
            circle,
            #392719,
            #110d09 68%
        );
}

.guest-radio-dial {
    width: 145px;
    height: 145px;

    display: grid;
    place-items: center;

    border:
        4px solid
        rgba(209,165,83,.65);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            #5a3f24,
            #19110b 72%
        );

    box-shadow:
        0 0 0 7px
        rgba(8,6,4,.5);
}

.guest-radio-dial span {
    color: var(--cream);

    font-size: 55px;

    font-weight: bold;
}

.guest-radio-controls {
    margin-top: 22px;

    display: flex;

    justify-content: center;

    gap: 36px;
}

.guest-radio-controls span {
    width: 28px;
    height: 28px;

    display: block;

    border:
        2px solid rgba(203,155,75,.5);

    border-radius: 50%;

    background: #17100b;
}


/* ==========================================================
   FULL SITE ACCESS GATE
   ========================================================== */

/*
 * When logged out, hide every normal body-level
 * application element except:
 *
 * - the header
 * - the guest landing page
 * - the account login overlay
 * - script/style elements (irrelevant visually)
 */

body.auth-guest
> *:not(header):not(#guestLanding):not(#jcSpectrumSection):not(#accountOverlay):not(script):not(style) {
    display: none !important;
}


/*
 * Keep branding + Sign In available in the header,
 * but hide normal navigation links until authenticated.
 */

body.auth-guest #mainNav a {
    display: none !important;
}


/*
 * Prevent access to page content by scrolling behind
 * the landing page.
 */

body.auth-guest {
    min-height: 100%;
}


/* Logged-in state */

body.auth-user #guestLanding {
    display: none;
}


/* Responsive */

@media (max-width: 900px) {

    .guest-landing-inner {
        grid-template-columns: 1fr;

        padding:
            70px 0;

        gap: 45px;
    }

    .guest-radio {
        order: -1;
    }

    .guest-radio-case {
        width: min(320px, 90%);
    }

    .guest-radio-grille {
        min-height: 250px;
    }

    .guest-landing h1 span {
        white-space: normal;
    }

}

@media (max-width: 600px) {

    .guest-landing-inner {
        width:
            min(100% - 32px, 1280px);
    }

    .guest-landing h1 {
        font-size: 46px;
    }

    .guest-actions {
        display: block;
    }

    .guest-signin {
        width: 100%;
    }

}


/* ==========================================================
   GUEST LANDING - RADIO LEFT / TEXT RIGHT
   ========================================================== */

@media (min-width: 901px) {

    .guest-landing-inner {
        grid-template-columns:
            minmax(330px, .75fr)
            minmax(0, 1.35fr);

        gap: 65px;
    }

    .guest-radio {
        order: 1;

        justify-content: flex-start;

        transform: translateX(-30px);
    }

    .guest-landing-copy {
        order: 2;
    }

    .guest-radio-case {
        width: min(370px, 100%);
    }

    .guest-landing h1 {
        font-size:
            clamp(54px, 4.6vw, 78px);
    }

    .guest-landing h1 span {
        white-space: nowrap;
    }

}

/* ==========================================================
   LOGGED-IN HERO - VINTAGE RADIO LEFT / CONTENT RIGHT
   ========================================================== */

@media (min-width: 901px) {

    .hero {
        min-height: 600px;

        display: grid;

        grid-template-columns:
            minmax(300px, 380px)
            minmax(0, 1fr);

        align-items: center;

        column-gap: 60px;

        padding:
            55px max(48px, calc((100% - 1280px) / 2));

        overflow: hidden;
    }

    .hero-overlay {
        position: absolute;

        inset: 0;

        pointer-events: none;
    }

    .hero-radio,
    .hero-content {
        position: relative;

        z-index: 1;
    }

    .hero-radio {
        display: flex;

        justify-content: flex-start;
        align-items: center;

        transform:
            translateX(-15px);
    }

    .hero-content {
        width: 100%;

        max-width: none;

        margin: 0;
        padding: 0;
    }

    .logged-hero-title {
        width: 100%;

        max-width: none;

        margin:
            18px 0 24px;

        font-size:
            clamp(52px, 4vw, 76px);

        line-height: 1.04;

        letter-spacing:
            -.025em;
    }

    .logged-hero-title span {
        display: block;

        white-space: nowrap;
    }

    .hero-content > p {
        max-width: 720px;
    }


    /* Vintage radio */

    .hero-radio-case {
        width: min(350px, 100%);

        padding:
            27px 27px 23px;

        border:
            2px solid rgba(203,155,75,.55);

        border-radius:
            48% 48% 12px 12px /
            26% 26% 12px 12px;

        background:
            linear-gradient(
                145deg,
                #4a301c,
                #24170f 62%,
                #120e0a
            );

        box-shadow:
            inset 0 0 0 7px
                rgba(14,10,7,.52),
            0 25px 55px
                rgba(0,0,0,.45);
    }

    .hero-radio-brand {
        margin-bottom: 16px;

        color:
            var(--gold-light);

        font-size: 10px;

        text-align: center;

        letter-spacing: .16em;
    }

    .hero-radio-grille {
        min-height: 295px;

        display: grid;
        place-items: center;

        border:
            2px solid rgba(204,159,82,.45);

        border-radius:
            46% 46% 20px 20px /
            32% 32% 20px 20px;

        background:
            repeating-linear-gradient(
                90deg,
                rgba(205,160,84,.12) 0,
                rgba(205,160,84,.12) 4px,
                rgba(0,0,0,.22) 4px,
                rgba(0,0,0,.22) 13px
            ),
            radial-gradient(
                circle,
                #392719,
                #110d09 68%
            );
    }

    .hero-radio-dial {
        width: 130px;
        height: 130px;

        display: grid;
        place-items: center;

        border:
            4px solid rgba(209,165,83,.65);

        border-radius: 50%;

        background:
            radial-gradient(
                circle,
                #5a3f24,
                #19110b 72%
            );

        box-shadow:
            0 0 0 7px rgba(8,6,4,.5);
    }

    .hero-radio-dial span {
        color:
            var(--cream);

        font-size: 50px;

        font-weight: bold;
    }

    .hero-radio-controls {
        margin-top: 20px;

        display: flex;

        justify-content: center;

        gap: 32px;
    }

    .hero-radio-controls span {
        width: 26px;
        height: 26px;

        display: block;

        border:
            2px solid rgba(203,155,75,.5);

        border-radius: 50%;

        background:
            #17100b;
    }

}


/* ==========================================================
   LOGGED-IN HERO - MOBILE
   ========================================================== */

@media (max-width: 900px) {

    .hero-radio {
        display: none;
    }

    .logged-hero-title span {
        display: block;

        white-space: normal;
    }

}


/* ==========================================================
   PERSONAL HOMEPAGE - MATCHED ACTION BUTTONS
   ========================================================== */

@media (min-width: 1201px) {

    .home-personal-row .continue-listening-body > button,
    .home-personal-row .favourite-body > button,
    .home-personal-row .recent-listened-body > button {
        width: 100%;
        height: 52px;
        min-height: 52px;

        padding: 0 16px;
        margin-top: 14px;

        display: flex;
        align-items: center;
        justify-content: center;

        box-sizing: border-box;

        border:
            1px solid rgba(224,189,118,.42);

        border-radius: 4px;

        background:
            rgba(195,151,78,.10);

        color:
            var(--gold-light);

        font-family: inherit;
        font-size: 16px;
        font-weight: bold;

        line-height: 1;
    }

}

/* ==========================================================
   ACCOUNT REGISTRATION
   ========================================================== */

.account-register-choice {
    margin-top: 18px;

    padding-top: 17px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    border-top:
        1px solid rgba(224,189,118,.16);

    color:
        var(--muted);

    font-size: 12px;
}


.account-secondary {
    min-height: 38px;

    padding:
        7px 14px;

    border:
        1px solid rgba(224,189,118,.38);

    border-radius: 4px;

    background:
        rgba(195,151,78,.08);

    color:
        var(--gold-light);

    font-family: inherit;

    cursor: pointer;
}


.account-secondary:hover {
    background:
        rgba(195,151,78,.16);

    border-color:
        rgba(224,189,118,.62);
}


.account-register-panel {
    margin-top: 20px;
}


.account-register-panel[hidden] {
    display: none;
}


.account-register-divider {
    margin-bottom: 16px;

    display: flex;
    align-items: center;

    gap: 12px;

    color:
        var(--gold);

    font-size: 11px;

    letter-spacing: .08em;

    text-transform: uppercase;
}


.account-register-divider::before,
.account-register-divider::after {
    content: "";

    height: 1px;

    flex: 1;

    background:
        rgba(224,189,118,.18);
}


#accountRegisterForm {
    margin-top: 20px;

    display: grid;

    gap: 17px;
}


#accountRegisterForm label {
    display: grid;

    gap: 7px;

    color:
        var(--gold-light);

    font-size: 12px;
}


#accountRegisterForm input {
    width: 100%;

    min-height: 44px;

    padding:
        8px 11px;

    box-sizing: border-box;

    border:
        1px solid rgba(224,189,118,.25);

    border-radius: 4px;

    outline: 0;

    background:
        rgba(0,0,0,.25);

    color:
        var(--cream);

    font-size: 15px;
}


#accountRegisterForm input:focus {
    border-color:
        rgba(224,189,118,.65);
}


.account-back-login {
    width: 100%;
}


/* Landing page Create Account button */

.guest-register {
    min-width: 210px;

    min-height: 52px;

    padding:
        10px 28px;

    border:
        1px solid rgba(224,189,118,.55);

    border-radius: 5px;

    background:
        transparent;

    color:
        var(--gold-light);

    font-family: inherit;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;
}


.guest-register:hover {
    background:
        rgba(195,151,78,.12);
}


@media (max-width: 600px) {

    .guest-register {
        width: 100%;

        margin-top: 10px;
    }

    .account-register-choice {
        flex-direction: column;

        align-items: stretch;
    }

}



/* ==========================================================
   FIX ACCOUNT LOGIN / REGISTER VIEW SWITCHING
   ========================================================== */

/*
 * Always honour the HTML hidden attribute inside
 * the account window.
 */
#accountSignedOut [hidden] {
    display: none !important;
}

#accountLoginForm[hidden] {
    display: none !important;
}

#accountRegisterPanel[hidden] {
    display: none !important;
}

.account-register-choice[hidden] {
    display: none !important;
}

#accountSignedOut > .account-intro[hidden] {
    display: none !important;
}


/* ==========================================================
   ACCOUNT APPROVAL
   ========================================================== */

.account-pending {
    padding: 10px 0;

    text-align: center;
}

.account-pending h3 {
    margin:
        10px 0 14px;

    color:
        var(--cream);

    font-size: 26px;
}

.account-pending p {
    color:
        var(--muted);

    line-height: 1.55;
}

.account-pending .account-secondary {
    width: 100%;

    margin-top: 15px;
}


/* ==========================================================
   ADMIN PANEL
   ========================================================== */

.admin-button {
    border-color:
        rgba(224,189,118,.55);

    color:
        var(--gold-light);
}

.admin-button[hidden] {
    display: none !important;
}


.admin-dialog {
    width:
        min(680px, 100%);

    max-height: 80vh;

    overflow-y: auto;
}


.admin-status {
    margin:
        18px 0;

    padding:
        10px 12px;

    border:
        1px solid rgba(224,189,118,.18);

    border-radius: 4px;

    background:
        rgba(195,151,78,.06);

    color:
        var(--muted);

    font-size: 12px;
}


.admin-section-heading {
    margin:
        24px 0 10px;

    color:
        var(--gold-light);

    font-size: 17px;

    font-weight: normal;
}


.admin-user-row {
    padding:
        13px 0;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border-bottom:
        1px solid rgba(224,189,118,.12);
}


.admin-user-info {
    min-width: 0;
}


.admin-user-info strong {
    display: block;

    color:
        var(--cream);

    font-size: 14px;
}


.admin-user-info small {
    margin-top: 3px;

    display: block;

    color:
        var(--muted);

    font-size: 10px;
}


.admin-user-actions {
    flex-shrink: 0;

    display: flex;

    gap: 8px;
}


.admin-approve,
.admin-reject {
    min-height: 34px;

    padding:
        6px 11px;

    border-radius: 4px;

    font-family: inherit;

    cursor: pointer;
}


.admin-approve {
    border:
        1px solid rgba(224,189,118,.48);

    background:
        rgba(195,151,78,.14);

    color:
        var(--gold-light);
}


.admin-reject {
    border:
        1px solid rgba(190,80,65,.45);

    background:
        rgba(150,50,40,.10);

    color:
        #e9a49b;
}


@media (max-width: 600px) {

    .admin-user-row {
        align-items: stretch;

        flex-direction: column;
    }

    .admin-user-actions {
        width: 100%;
    }

    .admin-approve,
    .admin-reject {
        flex: 1;
    }

}

/* ==========================================================
   PASSWORD MANAGEMENT
   ========================================================== */

.account-change-password {
    width: 100%;

    margin-top: 16px;
}


.account-password-panel {
    margin-top: 15px;

    padding-top: 15px;

    border-top:
        1px solid rgba(224,189,118,.16);
}


.account-password-panel[hidden] {
    display: none;
}


#accountPasswordForm {
    display: grid;

    gap: 14px;
}


#accountPasswordForm label {
    display: grid;

    gap: 6px;

    color:
        var(--gold-light);

    font-size: 12px;
}


#accountPasswordForm input {
    width: 100%;

    min-height: 42px;

    box-sizing: border-box;

    padding: 8px 10px;

    border:
        1px solid rgba(224,189,118,.25);

    border-radius: 4px;

    background:
        rgba(0,0,0,.25);

    color:
        var(--cream);

    font-size: 15px;
}


.account-success {
    margin: 0;

    padding: 9px 11px;

    border:
        1px solid rgba(100,170,100,.45);

    border-radius: 4px;

    background:
        rgba(70,140,70,.10);

    color:
        #b9dfb2;

    font-size: 12px;
}


.account-success[hidden] {
    display: none;
}


.admin-reset-password {
    min-height: 34px;

    padding:
        6px 11px;

    border:
        1px solid rgba(224,189,118,.35);

    border-radius: 4px;

    background:
        rgba(195,151,78,.08);

    color:
        var(--gold-light);

    font-family: inherit;

    cursor: pointer;
}


/* ==========================================================
   ADMIN PANEL V2
   ========================================================== */

.admin-role {
    display: inline-block;

    margin-top: 6px;
    margin-right: 6px;

    padding:
        3px 7px;

    border-radius: 3px;

    font-size: 9px;
    font-weight: bold;

    letter-spacing: .1em;
}


.admin-role-admin {
    border:
        1px solid rgba(224,189,118,.48);

    background:
        rgba(195,151,78,.13);

    color:
        var(--gold-light);
}


.admin-role-user {
    border:
        1px solid rgba(180,180,170,.22);

    color:
        var(--muted);
}


.admin-role-button,
.admin-delete-user {
    min-height: 34px;

    padding:
        6px 11px;

    border-radius: 4px;

    font-family: inherit;

    cursor: pointer;
}


.admin-role-button {
    border:
        1px solid rgba(224,189,118,.38);

    background:
        rgba(195,151,78,.08);

    color:
        var(--gold-light);
}


.admin-delete-user {
    border:
        1px solid rgba(190,80,65,.48);

    background:
        rgba(150,50,40,.12);

    color:
        #efaaa0;
}


.admin-user-actions {
    flex-wrap: wrap;

    justify-content: flex-end;
}


/* Styled Admin password reset */

.admin-password-panel {
    margin-top: 25px;

    padding-top: 22px;

    border-top:
        1px solid rgba(224,189,118,.18);
}


.admin-password-panel[hidden] {
    display: none !important;
}


.admin-password-box h3 {
    margin:
        7px 0 8px;

    color:
        var(--cream);

    font-size: 24px;
}


.admin-password-box > p {
    margin-bottom: 18px;

    color:
        var(--muted);
}


#adminPasswordForm {
    display: grid;

    gap: 15px;
}


#adminPasswordForm label {
    display: grid;

    gap: 7px;

    color:
        var(--gold-light);

    font-size: 12px;
}


#adminPasswordForm input {
    width: 100%;

    min-height: 43px;

    box-sizing: border-box;

    padding:
        8px 11px;

    border:
        1px solid rgba(224,189,118,.25);

    border-radius: 4px;

    background:
        rgba(0,0,0,.25);

    color:
        var(--cream);

    font-size: 15px;
}


.admin-password-actions {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 10px;
}


@media (max-width: 700px) {

    .admin-user-actions {
        justify-content: stretch;
    }

    .admin-user-actions button {
        flex: 1;
    }

    .admin-password-actions {
        grid-template-columns: 1fr;
    }

}


/* ==========================================================
   MY ACCOUNT
   ========================================================== */

.my-account-summary {
    margin-top: 20px;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;
}


.my-account-item {
    min-height: 68px;

    padding:
        12px 14px;

    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border:
        1px solid rgba(224,189,118,.18);

    border-radius: 5px;

    background:
        rgba(195,151,78,.055);
}


.my-account-item span {
    margin-bottom: 5px;

    color:
        var(--muted);

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: .08em;
}


.my-account-item strong {
    color:
        var(--cream);

    font-size: 16px;

    font-weight: normal;
}


.account-status-approved {
    color:
        var(--gold-light) !important;
}


.account-role-admin {
    color:
        var(--gold-light) !important;
}


@media (max-width: 500px) {

    .my-account-summary {
        grid-template-columns: 1fr;
    }

}


/* ==========================================================
   JCOTR SEARCH V2
   ========================================================== */

.clear-programme-search {
    width: 32px;
    height: 32px;

    flex:
        0 0 32px;

    display: grid;
    place-items: center;

    padding: 0;

    border:
        1px solid rgba(224,189,118,.20);

    border-radius: 50%;

    background:
        rgba(195,151,78,.06);

    color:
        var(--muted);

    font-family: inherit;
    font-size: 20px;
    line-height: 1;

    cursor: pointer;

    transition:
        color .18s,
        border-color .18s,
        background .18s;
}


.clear-programme-search:hover {
    border-color:
        rgba(224,189,118,.50);

    background:
        rgba(195,151,78,.12);

    color:
        var(--gold-light);
}


.clear-programme-search[hidden] {
    display: none !important;
}


@media (max-width: 600px) {

    #searchCount {
        display: none;
    }

}


/* ==========================================================
   SEARCH ARCHIVE EMPHASIS
   ========================================================== */

.search-box {
    transition:
        border-color .2s,
        box-shadow .2s,
        background .2s;
}

.search-box:focus-within {
    border-color:
        rgba(224,189,118,.65);

    background:
        rgba(195,151,78,.055);

    box-shadow:
        0 0 0 3px
        rgba(195,151,78,.07);
}


/* ==========================================================
   JCOTR SEARCH SUGGESTIONS
   ========================================================== */

.search-section .section-container {
    position: relative;
}


.search-suggestions {
    position: absolute;

    left: 0;
    right: 0;

    top: calc(100% + 8px);

    z-index: 80;

    max-height: 520px;

    overflow-y: auto;

    border:
        1px solid rgba(224,189,118,.28);

    border-radius: 5px;

    background:
        linear-gradient(
            180deg,
            #211a14,
            #15110d
        );

    box-shadow:
        0 20px 40px
        rgba(0,0,0,.50);
}


.search-suggestions[hidden] {
    display: none !important;
}


.search-suggestion-heading {
    padding:
        12px 16px 7px;

    color:
        var(--gold);

    font-size: 10px;

    font-weight: bold;

    letter-spacing: .14em;
}


.search-suggestion-item {
    width: 100%;

    padding:
        11px 16px;

    display: flex;
    flex-direction: column;

    gap: 3px;

    border: 0;

    border-top:
        1px solid rgba(224,189,118,.08);

    background:
        transparent;

    text-align: left;

    font-family: inherit;

    cursor: pointer;
}


.search-suggestion-item:hover {
    background:
        rgba(195,151,78,.09);
}


.search-suggestion-main {
    color:
        var(--cream);

    font-size: 14px;
}


.search-suggestion-meta {
    color:
        var(--muted);

    font-size: 10px;
}


.search-suggestion-empty {
    padding: 18px;

    color:
        var(--muted);

    font-size: 12px;
}


.search-suggestion-programme
.search-suggestion-main {
    color:
        var(--gold-light);
}


/* ==========================================================
   JCOTR PLAYER V2
   ========================================================== */

.player-controls {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 11px;
}


.player-skip-button {
    min-width: 46px;
    height: 38px;

    padding:
        0 9px;

    border:
        1px solid rgba(224,189,118,.28);

    border-radius: 19px;

    background:
        rgba(195,151,78,.07);

    color:
        var(--gold-light);

    font-size: 11px;
    font-weight: bold;

    transition:
        background .18s,
        border-color .18s,
        opacity .18s;
}


.player-skip-button:hover:not(:disabled) {
    border-color:
        rgba(224,189,118,.60);

    background:
        rgba(195,151,78,.16);
}


.player-skip-button:disabled {
    opacity: .25;

    cursor: default;
}


.player-mute-button {
    width: 38px;
    height: 38px;

    flex:
        0 0 38px;

    display: grid;
    place-items: center;

    padding: 0;

    border:
        1px solid rgba(224,189,118,.20);

    border-radius: 50%;

    background:
        rgba(195,151,78,.06);

    color:
        var(--cream);

    font-size: 15px;
}


.player-mute-button:hover {
    border-color:
        rgba(224,189,118,.50);

    background:
        rgba(195,151,78,.12);
}


.player-status-live {
    color:
        #d87366;
}


.player-status-archive {
    color:
        var(--gold);
}


@media (max-width: 720px) {

    .player-skip-button {
        min-width: 40px;

        padding:
            0 7px;

        font-size: 10px;
    }

}



/* ==========================================================
   JCOTR INLINE LIVE PROGRESS
   ========================================================== */

.live-inline-progress {
    width: min(700px, 60vw);
    max-width: 100%;

    margin-top: 14px;
}

.live-inline-times {
    margin-bottom: 7px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    color: var(--muted);

    font-family: Arial, sans-serif;
    font-size: 11px;
}

.live-inline-progress .live-progress-track {
    width: 100%;
    height: 4px;

    overflow: hidden;

    border-radius: 5px;

    background:
        rgba(255,255,255,.09);
}

.live-inline-progress .live-progress-fill {
    height: 100%;

    background:
        linear-gradient(
            90deg,
            var(--gold),
            var(--gold-light)
        );

    transition:
        width 1s linear;
}


@media (max-width: 720px) {

    .live-inline-progress {
        width: 100%;
        margin-top: 12px;
    }

    .live-inline-times {
        font-size: 10px;
    }

}

/* ==========================================================
   JCOTR GUEST NOW PLAYING
   ========================================================== */

.guest-now-playing {
    max-width: 680px;
    margin: 26px 0;
    padding: 18px 20px;

    border:
        1px solid rgba(224,189,118,.22);

    border-radius: 7px;

    background:
        rgba(195,151,78,.06);
}

.guest-now-playing-header {
    margin-bottom: 13px;

    display: flex;
    align-items: center;

    gap: 8px;

    color:
        var(--gold-light);

    font-size: 10px;
    letter-spacing: .14em;
}

.guest-live-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        var(--gold-light);

    box-shadow:
        0 0 8px
        rgba(224,189,118,.65);
}

.guest-now-playing-body {
    display: flex;
    align-items: center;

    gap: 16px;
}

.guest-now-playing-artwork {
    width: 80px;
    height: 80px;

    flex: 0 0 80px;
}

.guest-now-playing-artwork
.artwork-wrapper,
.guest-now-playing-artwork
.artwork-fallback,
.guest-artwork-fallback {
    width: 80px;
    height: 80px;

    overflow: hidden;

    display: grid;
    place-items: center;

    border-radius: 5px;

    background:
        rgba(0,0,0,.25);

    color:
        var(--gold-light);
}

.guest-now-playing-artwork img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.guest-now-playing-info {
    min-width: 0;
    flex: 1;
}

.guest-now-playing-info strong {
    display: block;

    overflow: hidden;

    color:
        var(--cream);

    font-size: 17px;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.guest-now-playing-info span {
    display: block;

    margin-top: 3px;

    overflow: hidden;

    color:
        var(--muted);

    font-size: 12px;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.guest-listen-live {
    margin-top: 12px;

    padding:
        7px 14px;

    border:
        1px solid
        rgba(224,189,118,.42);

    border-radius: 4px;

    background:
        rgba(195,151,78,.08);

    color:
        var(--gold-light);

    font-family: inherit;

    cursor: pointer;
}

.guest-listen-live:hover {
    background:
        rgba(195,151,78,.16);
}

@media (max-width: 600px) {

    .guest-now-playing-artwork,
    .guest-now-playing-artwork
    .artwork-wrapper,
    .guest-now-playing-artwork
    .artwork-fallback,
    .guest-artwork-fallback {
        width: 64px;
        height: 64px;
    }
}




/* ==========================================================
   JCOTR PERSISTENT PLAYER ARTWORK
   ========================================================== */

.player-artwork {
    width: 58px;
    height: 58px;

    flex:
        0 0 58px;

    overflow: hidden;

    border:
        1px solid rgba(224,189,118,.24);

    border-radius: 7px;

    background:
        linear-gradient(
            145deg,
            rgba(66,52,37,.95),
            rgba(28,23,18,.95)
        );

    box-shadow:
        0 4px 16px
        rgba(0,0,0,.24);
}


.player-artwork img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


.player-artwork-fallback {
    width: 100%;
    height: 100%;

    display: grid;
    place-items: center;

    color:
        var(--gold-light);

    font-size: 17px;
    font-weight: 600;

    letter-spacing: 1px;
}


@media (max-width: 700px) {

    .player-artwork {
        width: 48px;
        height: 48px;

        flex-basis: 48px;
    }

}


@media (max-width: 480px) {

    .player-artwork {
        width: 42px;
        height: 42px;

        flex-basis: 42px;
    }

}

/* ==========================================================
   JCOTR GUEST RADIO FACE SPLASH
   ========================================================== */

.guest-radio-case {

    width:
        min(470px, 100%)
        !important;

    aspect-ratio:
        500 / 600;

    padding:
        0 !important;

    overflow:
        visible !important;

    border:
        0 !important;

    background:
        url("/images/jcotr-radio-face-20260822-023528.svg")
        center center /
        contain
        no-repeat
        !important;

    box-shadow:
        none !important;
}


.guest-radio-case > * {
    display:
        none !important;
}


@media (min-width: 901px) {

    .guest-radio {

        align-items:
            center !important;

        justify-content:
            flex-start !important;

        transform:
            translateX(-18px)
            !important;
    }
}


@media (max-width: 900px) {

    .guest-radio-case {

        width:
            min(360px, 92vw)
            !important;
    }
}


@media (max-width: 600px) {

    .guest-radio-case {

        width:
            min(310px, 90vw)
            !important;
    }
}







/* ==========================================================
   JCOTR FINAL GUEST SPLASH LAYOUT
   ========================================================== */

@media (min-width: 901px) {

    /*
     * Main right-hand content column.
     */

    #guestNowPlaying {
        width:
            var(--jcotr-guest-content-width)
            !important;

        max-width:
            none !important;

        box-sizing:
            border-box !important;

        border:
            1px solid
            rgba(214,164,76,.72)
            !important;

        border-radius:
            8px !important;
    }


    /*
     * Two account buttons share exactly
     * the same overall width as Now Playing.
     */

    .guest-actions {
        width:
            var(--jcotr-guest-content-width)
            !important;

        max-width:
            none !important;

        display:
            grid !important;

        grid-template-columns:
            minmax(0,1fr)
            minmax(0,1fr)
            !important;

        gap:
            16px !important;

        box-sizing:
            border-box !important;
    }


    .guest-actions button,
    .guest-actions a {
        width:
            100% !important;

        min-width:
            0 !important;

        box-sizing:
            border-box !important;

        min-height:
            68px !important;

        border-radius:
            7px !important;

        font-size:
            18px !important;

        font-weight:
            600 !important;
    }


    /*
     * Sign In — gold filled.
     */

    .guest-actions > :first-child {
        background:
            linear-gradient(
                180deg,
                #e6ba66 0%,
                #ca9744 100%
            )
            !important;

        border:
            1px solid
            #e2b35b
            !important;

        color:
            #1b120c
            !important;
    }


    /*
     * Create Account — dark with gold edge.
     */

    .guest-actions > :last-child {
        background:
            rgba(24,18,13,.82)
            !important;

        border:
            1px solid
            rgba(213,164,77,.72)
            !important;

        color:
            var(--gold-light)
            !important;
    }


    /*
     * Slightly stronger Now Playing treatment.
     */

    .guest-now-playing-header {
        color:
            var(--gold-light)
            !important;
    }


    .guest-listen-live {
        border:
            1px solid
            rgba(218,169,78,.65)
            !important;

        background:
            rgba(33,25,17,.55)
            !important;
    }

}


/*
 * Mobile returns to natural full width.
 */

@media (max-width: 900px) {

    #guestNowPlaying,
    .guest-actions {
        width:
            100% !important;

        max-width:
            100% !important;
    }

}


/* ==========================================================
   JCOTR FINAL TWO PANEL SPLASH
   ========================================================== */


/*
 * NOW PLAYING + WHAT'S NEXT
 */

.jcotr-guest-radio-row {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, .95fr)
        minmax(0, 1.05fr);

    gap: 16px;

    margin:
        25px 0 18px;

    box-sizing: border-box;
}


.jcotr-guest-radio-row
#guestNowPlaying {

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;

    box-sizing: border-box !important;

    border:
        1px solid
        rgba(210,157,67,.72)
        !important;

    border-radius:
        8px !important;
}


/*
 * WHAT'S NEXT PANEL
 */

#guestWhatsNext {

    min-width: 0;

    padding:
        24px 28px;

    box-sizing:
        border-box;

    border:
        1px solid
        rgba(210,157,67,.72);

    border-radius:
        8px;

    background:
        linear-gradient(
            135deg,
            rgba(38,28,18,.86),
            rgba(23,18,13,.82)
        );

    color:
        var(--cream);
}


.guest-whats-next-heading {

    margin-bottom:
        14px;

    display:
        flex;

    align-items:
        center;

    gap:
        10px;

    color:
        var(--gold-light);

    font-size:
        13px;

    font-weight:
        700;

    letter-spacing:
        .16em;

    text-transform:
        uppercase;
}


.guest-whats-next-dot {

    width: 9px;
    height: 9px;

    flex:
        0 0 9px;

    border-radius:
        50%;

    background:
        var(--gold-light);

    box-shadow:
        0 0 10px
        rgba(224,189,118,.65);
}


.guest-whats-next-list {

    display:
        flex;

    flex-direction:
        column;
}


.guest-next-item {

    display:
        grid;

    grid-template-columns:
        56px
        minmax(0,1fr);

    gap:
        12px;

    padding:
        10px 0;

    border-bottom:
        1px solid
        rgba(213,164,77,.24);
}


.guest-next-item:last-child {

    border-bottom:
        0;
}


.guest-next-time {

    padding-top:
        2px;

    color:
        var(--gold-light);

    font-size:
        13px;

    font-weight:
        700;
}


.guest-next-title {

    color:
        var(--cream);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        16px;

    font-weight:
        700;

    line-height:
        1.2;
}


.guest-next-subtitle {

    margin-top:
        3px;

    color:
        var(--muted);

    font-size:
        12px;

    line-height:
        1.25;
}


.guest-next-empty {

    padding:
        15px 0;

    color:
        var(--muted);

    font-style:
        italic;
}


/*
 * ACCOUNT BUTTONS
 */

.guest-actions {

    width:
        100% !important;

    max-width:
        none !important;

    display:
        grid !important;

    grid-template-columns:
        minmax(0,1fr)
        minmax(0,1fr)
        !important;

    gap:
        16px !important;

    box-sizing:
        border-box !important;
}


.guest-actions button,
.guest-actions a {

    width:
        100% !important;

    min-width:
        0 !important;

    min-height:
        68px !important;

    box-sizing:
        border-box !important;

    border-radius:
        7px !important;

    font-size:
        18px !important;

    font-weight:
        600 !important;
}


/*
 * SIGN IN
 */

.guest-actions > :first-child {

    background:
        linear-gradient(
            180deg,
            #e7ba65,
            #ca9743
        )
        !important;

    border:
        1px solid
        #e0b05b
        !important;

    color:
        #18100b
        !important;
}


/*
 * CREATE ACCOUNT
 */

.guest-actions > :last-child {

    background:
        rgba(23,18,13,.78)
        !important;

    border:
        1px solid
        rgba(215,165,74,.72)
        !important;

    color:
        var(--gold-light)
        !important;
}


/*
 * TABLET / MOBILE
 */

@media (max-width: 900px) {

    .jcotr-guest-radio-row {

        grid-template-columns:
            1fr;

        gap:
            14px;
    }


    #guestWhatsNext {

        padding:
            20px;
    }

}


@media (max-width: 600px) {

    .guest-actions {

        grid-template-columns:
            1fr !important;
    }


    .guest-next-item {

        grid-template-columns:
            48px
            minmax(0,1fr);
    }

}



/* ==========================================================
   JCOTR LIVE LISTENER COUNTER
   ========================================================== */

.jcotr-listener-counter {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-left: 12px;

    padding: 5px 9px;

    border:
        1px solid
        rgba(224,189,118,.24);

    border-radius: 999px;

    background:
        rgba(195,151,78,.06);

    color:
        var(--muted);

    font-size: 11px;
    font-weight: normal;

    letter-spacing: .04em;

    white-space: nowrap;
}


.jcotr-listener-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background:
        var(--gold-light);

    box-shadow:
        0 0 7px
        rgba(224,189,118,.6);
}


.jcotr-listener-counter strong {
    color:
        var(--gold-light);

    font-weight: 600;
}


@media (max-width: 600px) {

    .jcotr-listener-counter {
        margin-left: 6px;

        padding: 4px 7px;

        font-size: 10px;
    }

}



/* ==========================================================
   JCOTR LIBRARY CARDS - EQUAL HEIGHT
   Continue Listening / Favourites / Recently Listened
   ========================================================== */

/*
 * Equalise the three main personal-library cards.
 */

.continue-listening-card,
.favourites-card,
.favorites-card,
.recently-listened-card,
.recent-listening-card {
    height: 100% !important;
    min-height: 320px !important;

    display: flex !important;
    flex-direction: column !important;

    box-sizing: border-box !important;
}


/*
 * If the cards are inside a grid, stretch every item
 * to the height of the tallest card in the row.
 */

.continue-listening-grid,
.favourites-grid,
.favorites-grid,
.recently-listened-grid,
.recent-listening-grid,
.library-grid,
.personal-library-grid,
.dashboard-grid {
    align-items: stretch !important;
}


/*
 * Common card wrappers used by JCOTR.
 */

.continue-listening-section .programme-card,
.favourites-section .programme-card,
.favorites-section .programme-card,
.recently-listened-section .programme-card,
.recent-listening-section .programme-card {
    height: 100% !important;
}


/*
 * Let card content fill available height.
 */

.continue-listening-card > *,
.favourites-card > *,
.favorites-card > *,
.recently-listened-card > *,
.recent-listening-card > * {
    box-sizing: border-box;
}


/*
 * Keep action/buttons aligned toward the bottom.
 */

.continue-listening-card .card-actions,
.favourites-card .card-actions,
.favorites-card .card-actions,
.recently-listened-card .card-actions,
.recent-listening-card .card-actions,

.continue-listening-card .programme-card-actions,
.favourites-card .programme-card-actions,
.favorites-card .programme-card-actions,
.recently-listened-card .programme-card-actions,
.recent-listening-card .programme-card-actions {
    margin-top: auto !important;
}


/*
 * Desktop: give all three dashboard columns equal height.
 */

@media (min-width: 901px) {

    .continue-listening-section,
    .favourites-section,
    .favorites-section,
    .recently-listened-section,
    .recent-listening-section {
        height: 100% !important;
    }

}


/*
 * Mobile: allow natural height again.
 */

@media (max-width: 600px) {

    .continue-listening-card,
    .favourites-card,
    .favorites-card,
    .recently-listened-card,
    .recent-listening-card {
        min-height: 0 !important;
        height: auto !important;
    }

}



/* ==========================================================
   JCOTR LOGGED-IN LISTENER COUNTER - INLINE
   ========================================================== */

.now-playing-info {
    position: relative;
}


.now-playing-info .small-label {
    display: inline-flex;
    align-items: center;

    gap: 10px;
}


#mainListenerCounter {
    margin-left: 10px !important;

    vertical-align: middle;

    transform: translateY(-1px);
}


/*
 * Keep the listener counter compact inside
 * the logged-in Now Playing card.
 */

#mainListenerCounter.jcotr-listener-counter {
    padding: 4px 8px;

    font-size: 10px;

    line-height: 1;
}


/*
 * Mobile: allow it to wrap naturally.
 */

@media (max-width: 600px) {

    #mainListenerCounter {
        margin-left: 6px !important;
    }

}



/* ==========================================================
   JCOTR LOGGED-IN HERO RADIO MATCH
   ========================================================== */

/*
 * Make the logged-in hero use exactly the same
 * radio artwork as the logged-out splash page.
 */

.hero-radio {
    position: absolute;

    left: max(
        28px,
        calc(
            50% -
            (var(--max-width) / 2)
        )
    );

    top: 50%;

    transform:
        translateY(-50%);

    z-index: 1;

    pointer-events: none;
}


.hero-radio-case {
    width: 430px !important;

    aspect-ratio:
        500 / 620;

    padding: 0 !important;

    overflow: visible !important;

    border: 0 !important;

    border-radius: 0 !important;

    background:
        url("/images/jcotr-radio-face-20260822-023528.svg")
        center center /
        contain
        no-repeat
        !important;

    box-shadow:
        none !important;
}


/*
 * Hide the original CSS-built logged-in radio.
 */

.hero-radio-case > * {
    display: none !important;
}


/*
 * Move the logged-in hero copy to the right
 * so the radio has its own space.
 */

@media (min-width: 1001px) {

    .hero-content {
        padding-left:
            min(
                52vw,
                620px
            ) !important;

        padding-right:
            28px !important;
    }

}


@media (max-width: 1000px) {

    .hero-radio {
        display: none !important;
    }

    .hero-content {
        padding-left:
            28px !important;
    }

}


/* ==========================================================
   JCOTR LOGGED-IN HERO TEXT FIX
   ========================================================== */

@media (min-width: 1001px) {

    /*
     * Keep the radio on the left,
     * but give the text its own proper right-hand column.
     */

    .hero-content {
        max-width: var(--max-width) !important;

        padding-top: 75px !important;
        padding-bottom: 75px !important;

        padding-left: 560px !important;
        padding-right: 28px !important;

        box-sizing: border-box !important;
    }


    .hero-content .eyebrow {
        display: block !important;

        width: auto !important;
        max-width: 760px !important;

        white-space: normal !important;

        line-height: 1.35 !important;
    }


    .hero-content .logged-hero-title,
    .hero-content h2 {
        width: auto !important;
        max-width: 850px !important;

        margin-top: 16px !important;
        margin-bottom: 22px !important;
    }


    .hero-content .logged-hero-title span {
        display: block !important;
        white-space: normal !important;
    }


    .hero-content p {
        width: auto !important;
        max-width: 700px !important;

        white-space: normal !important;

        line-height: 1.6 !important;
    }


    .hero-buttons {
        width: auto !important;
        max-width: 700px !important;
    }

}


@media (max-width: 1000px) {

    .hero-content {
        padding-left: 28px !important;
        padding-right: 28px !important;
    }

}


/* ==========================================================
   JCOTR LOGGED-IN HERO TEXT FIX
   ========================================================== */

@media (min-width: 1001px) {

    /*
     * Keep the radio on the left,
     * but give the text its own proper right-hand column.
     */

    .hero-content {
        max-width: var(--max-width) !important;

        padding-top: 75px !important;
        padding-bottom: 75px !important;

        padding-left: 560px !important;
        padding-right: 28px !important;

        box-sizing: border-box !important;
    }


    .hero-content .eyebrow {
        display: block !important;

        width: auto !important;
        max-width: 760px !important;

        white-space: normal !important;

        line-height: 1.35 !important;
    }


    .hero-content .logged-hero-title,
    .hero-content h2 {
        width: auto !important;
        max-width: 850px !important;

        margin-top: 16px !important;
        margin-bottom: 22px !important;
    }


    .hero-content .logged-hero-title span {
        display: block !important;
        white-space: normal !important;
    }


    .hero-content p {
        width: auto !important;
        max-width: 700px !important;

        white-space: normal !important;

        line-height: 1.6 !important;
    }


    .hero-buttons {
        width: auto !important;
        max-width: 700px !important;
    }

}


@media (max-width: 1000px) {

    .hero-content {
        padding-left: 28px !important;
        padding-right: 28px !important;
    }

}



/* ==========================================================
   JCOTR FINAL LOGGED-IN HERO LAYOUT FIX
   ========================================================== */

@media (min-width: 1001px) {

    /*
     * IMPORTANT:
     * The hero already has separate radio/text columns.
     * Do NOT add 560px left padding to the text column.
     */

    .hero-content {
        width: 100% !important;
        max-width: none !important;

        margin: 0 !important;

        padding-top: 0 !important;
        padding-right: 0 !important;
        padding-bottom: 0 !important;
        padding-left: 0 !important;

        box-sizing: border-box !important;

        min-width: 0 !important;
    }


    /*
     * Broadcasting line
     */

    .hero-content .eyebrow {
        display: block !important;

        width: 100% !important;
        max-width: none !important;

        margin: 0 0 18px 0 !important;

        white-space: normal !important;

        line-height: 1.35 !important;
    }


    /*
     * Main heading
     */

    .hero-content .logged-hero-title,
    .hero-content h2 {
        display: block !important;

        width: 100% !important;
        max-width: none !important;

        margin:
            0 0 24px 0 !important;

        box-sizing: border-box !important;
    }


    .hero-content .logged-hero-title span {
        display: block !important;

        width: 100% !important;

        white-space: nowrap !important;
    }


    /*
     * Description
     */

    .hero-content > p {
        display: block !important;

        width: 100% !important;
        max-width: 720px !important;

        margin:
            0 0 30px 0 !important;

        white-space: normal !important;

        line-height: 1.6 !important;

        box-sizing: border-box !important;
    }


    /*
     * Buttons
     */

    .hero-content .hero-buttons {
        width: 100% !important;
        max-width: 720px !important;

        display: flex !important;

        flex-wrap: wrap !important;

        gap: 13px !important;
    }

}


/*
 * Tablet/mobile remains normal.
 */

@media (max-width: 1000px) {

    .hero-content {
        width: 100% !important;

        padding:
            55px 28px 75px !important;
    }


    .hero-content .logged-hero-title span {
        white-space: normal !important;
    }

}




/* ==========================================================
   JCOTR LOGGED-IN HERO GRID RECOVERY
   ========================================================== */

@media (min-width: 1001px) {

    /*
     * Re-establish the logged-in hero as a genuine
     * two-column layout:
     *
     * RADIO | TEXT
     */

    .hero {
        min-height: 650px !important;

        display: grid !important;

        grid-template-columns:
            440px
            minmax(0, 1fr)
            !important;

        column-gap: 70px !important;

        align-items: center !important;

        padding-left:
            max(
                28px,
                calc(
                    (100vw - var(--max-width)) / 2
                )
            )
            !important;

        padding-right:
            max(
                28px,
                calc(
                    (100vw - var(--max-width)) / 2
                )
            )
            !important;

        box-sizing: border-box !important;
    }


    /*
     * Radio becomes a normal grid column.
     * Undo the absolute-position rule added earlier.
     */

    .hero-radio {
        position: relative !important;

        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;

        width: 440px !important;

        display: flex !important;

        align-items: center !important;
        justify-content: center !important;

        transform: none !important;

        z-index: 2 !important;

        pointer-events: none !important;
    }


    .hero-radio-case {
        width: 430px !important;

        max-width: 430px !important;

        aspect-ratio:
            500 / 620 !important;
    }


    /*
     * Text gets the complete right-hand column.
     */

    .hero-content {
        position: relative !important;

        width: 100% !important;
        min-width: 0 !important;

        max-width: none !important;

        margin: 0 !important;

        padding: 60px 0 !important;

        box-sizing: border-box !important;

        z-index: 2 !important;
    }


    /*
     * Broadcasting line
     */

    .hero-content .eyebrow {
        display: block !important;

        width: 100% !important;
        max-width: 850px !important;

        margin:
            0 0 18px 0 !important;

        white-space: normal !important;

        line-height: 1.4 !important;
    }


    /*
     * Main headline
     */

    .hero-content .logged-hero-title,
    .hero-content h2 {
        display: block !important;

        width: 100% !important;
        max-width: 900px !important;

        margin:
            0 0 25px 0 !important;

        padding: 0 !important;

        font-size:
            clamp(
                48px,
                4.4vw,
                76px
            )
            !important;

        line-height:
            1.04 !important;

        box-sizing:
            border-box !important;
    }


    .hero-content
    .logged-hero-title span {
        display: block !important;

        width: auto !important;

        white-space: normal !important;
    }


    /*
     * Description
     */

    .hero-content > p {
        display: block !important;

        width: 100% !important;
        max-width: 720px !important;

        margin:
            0 0 30px 0 !important;

        padding: 0 !important;

        white-space: normal !important;

        line-height:
            1.6 !important;
    }


    /*
     * Hero buttons
     */

    .hero-content .hero-buttons {
        width: 100% !important;
        max-width: 720px !important;

        display: flex !important;

        align-items: center !important;

        flex-wrap: wrap !important;

        gap: 13px !important;

        margin: 0 !important;
    }

}


/*
 * Smaller screens:
 * return to a normal single-column hero.
 */

@media (max-width: 1000px) {

    .hero {
        display: block !important;

        padding:
            0 !important;
    }


    .hero-radio {
        display: none !important;
    }


    .hero-content {
        width: 100% !important;
        max-width: var(--max-width) !important;

        margin:
            0 auto !important;

        padding:
            55px 28px 75px
            !important;
    }

}


/* ==========================================================
   JCOTR HERO TITLE - KEEP "RADIO" ON FIRST LINE
   ========================================================== */

@media (min-width: 1200px) {

    .hero {
        grid-template-columns:
            420px
            minmax(0, 1fr)
            !important;

        column-gap:
            55px !important;
    }

    .hero-radio {
        width:
            420px !important;
    }

    .hero-radio-case {
        width:
            410px !important;

        max-width:
            410px !important;
    }

    .hero-content .logged-hero-title,
    .hero-content h2 {
        max-width:
            980px !important;

        font-size:
            clamp(
                46px,
                4vw,
                70px
            )
            !important;

        line-height:
            1.03 !important;
    }

    .hero-content .logged-hero-title span:first-child {
        white-space:
            nowrap !important;
    }

}

@media (max-width: 1199px) {

    .hero-content .logged-hero-title span {
        white-space:
            normal !important;
    }

}


/* ==========================================================
   JCOTR PERSONAL HOMEPAGE - FINAL MATCHED CARDS
   ========================================================== */

@media (min-width: 1201px) {

    /*
     * Do not stretch the overall sections or cards.
     */

    .home-personal-row {
        align-items: start !important;
    }


    .home-personal-row > section,
    .home-personal-row .section-container,
    .home-personal-row .continue-listening-grid,
    .home-personal-row .favourites-grid,
    .home-personal-row .recent-listened-grid {
        height: auto !important;
        min-height: 0 !important;
    }


    /*
     * All three actual card types use natural outer height.
     */

    .home-personal-row .continue-listening-card,
    .home-personal-row .favourite-card,
    .home-personal-row .recent-listened-card {
        height: auto !important;
        min-height: 0 !important;

        display: flex !important;
        flex-direction: column !important;

        box-sizing: border-box !important;
    }


    /*
     * Artwork is identical in proportion.
     * This keeps the upper halves aligned.
     */

    .home-personal-row .continue-listening-art,
    .home-personal-row .favourite-artwork,
    .home-personal-row .recent-listened-artwork {
        width: 100% !important;

        aspect-ratio: 1 / 1 !important;

        flex: 0 0 auto !important;
    }


    /*
     * THIS is the important part.
     *
     * Give the lower section of every card exactly the
     * same compact height.
     */

    .home-personal-row .continue-listening-body,
    .home-personal-row .favourite-body,
    .home-personal-row .recent-listened-body {
        height: 230px !important;
        min-height: 230px !important;

        padding: 18px !important;

        display: flex !important;
        flex-direction: column !important;

        box-sizing: border-box !important;

        flex: 0 0 230px !important;
    }


    /*
     * Avoid excessive margins inside the body.
     */

    .home-personal-row .continue-listening-body h3,
    .home-personal-row .favourite-body h3,
    .home-personal-row .recent-listened-body h3 {
        margin-top: 9px !important;
        margin-bottom: 7px !important;
    }


    .home-personal-row .continue-listening-body p,
    .home-personal-row .favourite-body p,
    .home-personal-row .recent-listened-body p {
        margin-top: 0 !important;
        margin-bottom: 8px !important;
    }


    /*
     * Progress area stays compact.
     */

    .home-personal-row .continue-listening-progress,
    .home-personal-row .recent-listened-progress {
        margin-top: auto !important;
        margin-bottom: 10px !important;
    }


    /*
     * All buttons sit against the bottom of the
     * identical 230px body.
     */

    .home-personal-row .continue-listening-resume,
    .home-personal-row .favourite-open,
    .home-personal-row .recent-listened-resume {
        width: 100% !important;

        height: 52px !important;
        min-height: 52px !important;

        margin-top: auto !important;

        flex: 0 0 52px !important;

        box-sizing: border-box !important;
    }

}


/*
 * Tablet and mobile use normal flowing card heights.
 */

@media (max-width: 1200px) {

    .home-personal-row .continue-listening-body,
    .home-personal-row .favourite-body,
    .home-personal-row .recent-listened-body {
        height: auto !important;
        min-height: 0 !important;
        flex: 0 0 auto !important;
    }

}


/* ==========================================================
   JCOTR GUEST HEADER - CENTRED BRAND
   ========================================================== */


/*
 * The real top-right Sign In control is #accountButton.
 * Hide it ONLY while logged out.
 */

body.auth-guest #accountButton {
    display: none !important;
}


/*
 * Normal navigation is already hidden for guests.
 * Keep the nav from occupying space in the header.
 */

body.auth-guest #mainNav {
    display: none !important;
}


/*
 * Centre the complete JC Old Time Radio brand.
 */

body.auth-guest .site-header .header-inner {
    position: relative !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    min-height: 96px !important;

    padding-left: 28px !important;
    padding-right: 28px !important;
}


/*
 * Undo its normal left-hand positioning.
 */

body.auth-guest .site-header .brand {
    position: relative !important;

    left: auto !important;
    right: auto !important;
    top: auto !important;

    margin-left: auto !important;
    margin-right: auto !important;

    transform: none !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    width: max-content !important;

    text-align: left !important;
}


/*
 * Keep the JC icon and wording together.
 */

body.auth-guest .site-header .radio-logo {
    flex: 0 0 auto !important;
}


body.auth-guest .site-header .brand-text {
    flex: 0 0 auto !important;
}


/*
 * Hide hamburger on the guest splash as there is
 * no guest navigation to open.
 */

body.auth-guest #mobileMenuButton {
    display: none !important;
}


/*
 * Mobile guest header.
 */

@media (max-width: 700px) {

    body.auth-guest .site-header .header-inner {
        min-height: 82px !important;
    }


    body.auth-guest .site-header .brand {
        max-width: 100% !important;

        transform: scale(.90) !important;

        transform-origin: center center !important;
    }

}


/* ==========================================================
   END JCOTR GUEST HEADER - CENTRED BRAND
   ========================================================== */


/* ==========================================================
   JCOTR EXACT RADIO IMAGE - GUEST + LOGGED IN
   ========================================================== */

body.auth-guest .guest-radio-case,
body.auth-user .hero-radio-case {
    width: 430px !important;
    max-width: 100% !important;
    aspect-ratio: 530 / 749 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background:
        url("/images/jcotr-radio-final.webp")
        center center / contain no-repeat
        !important;
    box-shadow: none !important;
    overflow: visible !important;
}

body.auth-guest .guest-radio-case > *,
body.auth-user .hero-radio-case > * {
    display: none !important;
}

@media (min-width: 1001px) {
    body.auth-guest .guest-radio,
    body.auth-user .hero-radio {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

@media (max-width: 1000px) {
    body.auth-guest .guest-radio-case {
        width: min(350px, 90vw) !important;
    }
}

/* ==========================================================
   END JCOTR EXACT RADIO IMAGE
   ========================================================== */



/* ==========================================================
   JC OLD TIME RADIO - AUDIO SPECTRUM ANALYSER
   ========================================================== */



/* ==========================================================
   JC OLD TIME RADIO - AUDIO SPECTRUM ANALYSER
   ========================================================== */



/* ==========================================================
   JCOTR WHAT'S NEXT CONTENT
   ========================================================== */

.jcotr-next-heading {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 30px;

    color: var(--gold-light);

    font-size: 17px;
    font-weight: bold;

    letter-spacing: .14em;

    text-transform: uppercase;
}


.jcotr-next-dot {
    width: 10px;
    height: 10px;

    display: block;

    flex: 0 0 10px;

    border-radius: 50%;

    background:
        var(--gold-light);

    box-shadow:
        0 0 12px
        rgba(230,181,83,.65);
}


.jcotr-next-content {
    display: flex;
    align-items: center;

    gap: 24px;
}


.jcotr-next-artwork {
    width: 112px;
    height: 112px;

    flex: 0 0 112px;

    overflow: hidden;

    display: grid;
    place-items: center;

    border:
        1px solid
        rgba(224,189,118,.38);

    border-radius: 5px;

    background:
        #18120d;
}


.jcotr-next-artwork img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


.jcotr-next-fallback {
    width: 100%;
    height: 100%;

    display: grid;
    place-items: center;

    color:
        var(--cream);

    font-size: 30px;
    font-weight: bold;
}


.jcotr-next-info {
    min-width: 0;
}


.jcotr-next-info h3 {
    margin:
        0 0 8px;

    color:
        var(--cream);

    font-size: 24px;

    line-height: 1.2;
}


.jcotr-next-info p {
    margin:
        0 0 12px;

    color:
        var(--muted);

    font-size: 16px;

    line-height: 1.4;
}


.jcotr-next-duration {
    color:
        var(--gold);

    font-size: 12px;

    letter-spacing: .06em;
}


@media (max-width: 700px) {

    .jcotr-next-content {
        align-items: flex-start;

        gap: 15px;
    }


    .jcotr-next-artwork {
        width: 80px;
        height: 80px;

        flex-basis: 80px;
    }


    .jcotr-next-info h3 {
        font-size: 20px;
    }

}



/* ==========================================================
   JCOTR LOGGED-OUT PAGE - REMOVE TOP HEADER
   ========================================================== */

/*
 * Hide the complete site header while logged out.
 *
 * Logged-in users keep the normal navigation/header.
 */

body.auth-guest > header,
body.auth-guest .site-header {
    display: none !important;
}


/*
 * Remove any space that was being reserved below
 * the header so the splash screen starts at the top.
 */

body.auth-guest #guestLanding,
body.auth-guest .guest-landing {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/*
 * Keep the guest splash vertically balanced now
 * that the header has gone.
 */

body.auth-guest .guest-landing-inner {
    min-height: 100vh !important;

    box-sizing: border-box !important;
}


/* ==========================================================
   END JCOTR LOGGED-OUT PAGE - REMOVE TOP HEADER
   ========================================================== */



/* ==========================================================
   END JCOTR SPECTRUM ANALYSER - TOP OF PAGE
   ========================================================== */



/* ==========================================================
   END JCOTR SPECTRUM - TRUE TOP POSITION
   ========================================================== */



/* ==========================================================
   END JCOTR SPECTRUM - STICKY TOP
   ========================================================== */



/* ==========================================================
   END JCOTR SPECTRUM - PERMANENT FIXED TOP
   ========================================================== */


/* ==========================================================
   JCOTR MASTER SPECTRUM - SINGLE FIXED TOP
   ========================================================== */

#jcSpectrumViewport {
    position: fixed !important;

    top: 0 !important;
    left: 0 !important;
    right: 0 !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    z-index: 1000000 !important;

    background:
        #0b0907 !important;

    box-shadow:
        0 6px 20px
        rgba(0,0,0,.55);

    pointer-events: none;
}


#jcSpectrumSection {
    display: block !important;

    position: relative !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    background:
        #0b0907 !important;

    visibility: visible !important;
    opacity: 1 !important;
}


.jc-spectrum-heading {
    height: 28px;

    margin: 0 !important;
    padding: 0 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 18px;

    box-sizing: border-box;
}


.jc-spectrum-title {
    flex: 0 0 auto;

    color:
        #dba448;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: .24em;

    text-transform: uppercase;
}


.jc-spectrum-line {
    display: block;

    height: 1px;

    flex: 1;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(219,164,72,.65),
            transparent
        );
}


.jc-spectrum-frame {
    position: relative;

    width: 100%;

    height: 92px !important;

    overflow: hidden;

    margin: 0;
    padding: 0;

    box-sizing: border-box;

    border-top:
        1px solid
        rgba(219,164,72,.32);

    border-bottom:
        1px solid
        rgba(219,164,72,.32);

    background:
        linear-gradient(
            180deg,
            #0c0906,
            #100c08
        );
}


/*
 * IMPORTANT:
 * Remove old decorative pseudo-layer.
 */

.jc-spectrum-frame::before,
.jc-spectrum-frame::after {
    display: none !important;
    content: none !important;
}


.jc-spectrum-canvas {
    position: absolute !important;

    top: 0 !important;
    left: 0 !important;

    display: block !important;

    width: 100% !important;
    height: 68px !important;

    margin: 0 !important;
    padding: 0 !important;
}


.jc-spectrum-scale {
    position: absolute;

    left: 30px;
    right: 30px;
    bottom: 5px;

    display: flex;
    justify-content: space-between;

    color:
        rgba(219,164,72,.75);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 11px;

    letter-spacing: .12em;

    pointer-events: none;
}


/*
 * Exactly one spacer beneath the fixed analyser.
 */

#jcSpectrumSpacer {
    display: block !important;

    width: 100% !important;

    height: 120px;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent;
}


/*
 * Remove every old body offset.
 */

html,
body,
body.auth-guest,
body.auth-user {
    padding-top: 0 !important;
}


body.auth-guest #guestLanding,
body.auth-guest .guest-landing {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


body.auth-user .site-header {
    margin-top: 0 !important;
}


@media (max-width: 700px) {

    .jc-spectrum-heading {
        height: 24px;

        padding:
            0 14px;
    }


    .jc-spectrum-title {
        font-size:
            10px;

        letter-spacing:
            .16em;
    }


    .jc-spectrum-frame {
        height:
            72px !important;
    }


    .jc-spectrum-canvas {
        height:
            51px !important;
    }


    #jcSpectrumSpacer {
        height:
            96px;
    }

}


/* ==========================================================
   END JCOTR MASTER SPECTRUM - SINGLE FIXED TOP
   ========================================================== */

