/* ------------------------------------------------------------------
   SERIOUS RADIO
   A single ambient YouTube video loops full-bleed behind everything,
   purely for atmosphere — it has nothing to do with what's playing.
   The actual track (YouTube video or SoundCloud artwork) shows in a
   small centered frame. Scroll past the hero and the page becomes
   flat black with white text for the About / Programme sections.
------------------------------------------------------------------- */

:root{
    --ink:        #100d0a;
    --paper:      #efe8d8;
    --paper-fade: #a89f8c;
    --rust:       #c9502f;

    --font-display: 'Clash Display', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

    --sidebar-w: 84px;
}

*{ box-sizing: border-box; }
html,body{ height: 100%; }

body{
    margin: 0;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-mono);
    -webkit-font-smoothing: antialiased;
    position: relative;
}

a{ color: inherit; }

button{
    font-family: var(--font-mono);
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
}

button:focus-visible,
a:focus-visible{
    outline: 2px solid var(--rust);
    outline-offset: 3px;
}

/* ------------------------- fixed background ------------------------ */

.bg-visual{
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    background: var(--ink);
}

.bg-visual__ambient{
    position: absolute;
    inset: 0;
    pointer-events: none; /* pure ambience — never clickable, no audio */
}

/* the source clip is old and low-res, so it's zoomed/cropped hard
   enough to fill the viewport at any aspect ratio with no letterboxing */
.bg-visual__ambient iframe{
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 56.25vw;      /* 16:9 */
    min-height: 100vh;
    min-width: 177.78vh;  /* keeps full cover at any aspect ratio */
    border: 0;
    pointer-events: none;
}

/* faint scanlines for a tape-ish texture over the ambient loop */
.bg-visual__scan{
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: repeating-linear-gradient(
        rgba(0,0,0,0) 0px, rgba(0,0,0,0) 2px,
        rgba(0,0,0,.18) 3px, rgba(0,0,0,0) 4px
    );
    mix-blend-mode: overlay;
    opacity: .5;
}

/* dark scrim over the hero sections so foreground text stays legible */
.gate::before,
.deck::before{
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 0;
}

/* ---------------------------- sidebar ---------------------------- */

.spine{
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--sidebar-w);
    background: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0;
    z-index: 20;
}

.spine__mark{
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: .04em;
    text-decoration: none;
    color: #fff;
}

.spine__contact{
    writing-mode: vertical-rl;
    font-size: .7rem;
    letter-spacing: .08em;
    text-decoration: none;
    color: rgba(255,255,255,.6);
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
}

.spine__contact:hover{
    color: var(--rust);
    border-bottom-color: var(--rust);
}

/* ----------------------------- stage ------------------------------ */

.stage{
    margin-left: var(--sidebar-w);
    position: relative;
    z-index: 2;
}

/* ------------------------------ gate ------------------------------ */

.gate{
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8vh 8vw;
    max-width: 720px;
    transition: opacity .0s ease, transform .0s ease;
}

.gate.is-leaving{
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
}

.gate__eyebrow{
    position: relative; z-index: 1;
    font-size: .78rem;
    letter-spacing: .06em;
    color: var(--paper-fade);
    margin: 0 0 18px;
}

.gate__mark{
    position: relative; z-index: 1;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(3.4rem, 12vw, 7.5rem);
    line-height: .92;
    margin: 0 0 36px;
}

.gate__button{
    position: relative; z-index: 1;
    align-self: flex-start;
    font-size: .95rem;
    letter-spacing: .04em;
    padding: 14px 26px;
    border: 1px solid var(--paper);
    transition: background .25s ease, color .25s ease;
}

.gate__button:hover{
    background: var(--paper);
    color: var(--ink);
}

/* ------------------------------ deck ------------------------------ */

.deck{
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6vh 8vw;
    text-align: center;
}

.deck__inner{
    position: relative;
    z-index: 1;
    max-width: 640px;
    width: 100%;
}

/* the small centered frame showing whatever's actually playing —
   the real track's YouTube video, or SoundCloud artwork */
.now-playing{
    position: relative;
    width: min(80vw, 560px);
    aspect-ratio: 16 / 9;
    margin: 0 auto 30px;
    background: #000;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,.5);
}

.now-playing__video{
    position: absolute;
    inset: 0;
    pointer-events: none; /* never clickable through to YouTube */
    opacity: 0;
    transition: opacity .5s ease;
}

.now-playing.is-video .now-playing__video{ opacity: 1; }

.now-playing__video iframe{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

.now-playing__art{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .5s ease;
}

.now-playing.is-audio .now-playing__art{ opacity: 1; }

.deck__show{
    font-size: .78rem;
    letter-spacing: .04em;
    color: var(--paper-fade);
    margin: 0 0 10px;
}

.deck__show::before{
    content: "on air \2014 ";
}

.deck__title{
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    line-height: 1.08;
    margin: 0 0 8px;
}

.deck__artist{
    font-size: .95rem;
    color: var(--paper-fade);
    margin: 0 0 28px;
}

.deck__control{
    font-size: .82rem;
    letter-spacing: .05em;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--paper);
}

.deck__control:hover{
    color: var(--rust);
    border-bottom-color: var(--rust);
}

.deck__scroll{
    position: absolute;
    z-index: 1;
    right: 6vw;
    bottom: 6vh;
    margin: 0;
    writing-mode: vertical-rl;
    font-size: .7rem;
    letter-spacing: .1em;
    color: var(--paper-fade);
}

.deck__scroll::after{
    content: "";
    display: block;
    width: 1px;
    height: 34px;
    margin: 10px auto 0;
    background: var(--paper-fade);
    animation: scrollcue 2.4s ease-in-out infinite;
    transform-origin: top;
}

@keyframes scrollcue{
    0%, 100% { transform: scaleY(.3); opacity: .4; }
    50%      { transform: scaleY(1); opacity: 1; }
}

/* ------------------------------ about ------------------------------ */

.about{
    position: relative;
    background: #000;
    color: #fff;
    padding: 12vh 8vw 10vh;
}

.about__block{
    max-width: 640px;
    margin: 0 0 8vh;
}

.about__block:last-of-type{ margin-bottom: 5vh; }

.about__heading{
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.6rem, 3.4vw, 2.2rem);
    margin: 0 0 24px;
}

.about__block p{
    font-family: var(--font-body);
    font-size: 1.08rem;
    line-height: 1.65;
    max-width: 52ch;
    margin: 0 0 20px;
    color: rgba(255,255,255,.88);
}

.schedule{
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    max-width: 50ch;
    border-top: 1px solid rgba(255,255,255,.18);
}

.schedule__item{
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,.18);
    font-size: .9rem;
}

.schedule__index{
    color: rgba(255,255,255,.4);
    flex-shrink: 0;
    width: 1.6em;
}

.schedule__time{
    color: rgba(255,255,255,.6);
    flex-shrink: 0;
    width: 11ch;
}

.schedule__name{ flex: 1; color: rgba(255,255,255,.88); }

.schedule__item.is-now .schedule__name{ color: #fff; }
.schedule__item.is-now .schedule__index,
.schedule__item.is-now .schedule__time{ color: var(--rust); }

.schedule__now{
    font-size: .68rem;
    letter-spacing: .06em;
    color: var(--rust);
    border: 1px solid var(--rust);
    padding: 2px 7px;
    flex-shrink: 0;
}

.about__tz{
    font-size: .76rem;
    color: rgba(255,255,255,.5);
    margin: 0;
}

.about__contact{
    display: inline-block;
    font-size: .9rem;
    letter-spacing: .03em;
    text-decoration: none;
    color: #fff;
    border-bottom: 1px solid #fff;
}

.about__contact:hover{
    color: var(--rust);
    border-bottom-color: var(--rust);
}

/* -------------------------- simple pages --------------------------- */

.page{
    position: relative;
    z-index: 1;
    max-width: 640px;
    padding: 14vh 8vw 10vh;
}

.page__eyebrow{
    font-size: .78rem;
    letter-spacing: .06em;
    color: var(--paper-fade);
    margin: 0 0 14px;
}

.page__title{
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    margin: 0 0 26px;
}

.page__text{
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 50ch;
    margin: 0 0 40px;
}

.page__details{
    display: grid;
    gap: 20px;
    margin: 0;
}

.page__details dt{
    font-size: .72rem;
    letter-spacing: .06em;
    color: var(--paper-fade);
    margin-bottom: 4px;
}

.page__details dd{
    margin: 0;
    font-size: 1rem;
}

.page__details a{
    border-bottom: 1px solid var(--paper);
    text-decoration: none;
}

.page__details a:hover{
    color: var(--rust);
    border-bottom-color: var(--rust);
}

/* ------------------------------ misc ------------------------------- */

@media (prefers-reduced-motion: reduce){
    .deck__scroll::after{ animation: none; }
    .gate{ transition: none; }
}

@media (max-width: 760px){
    :root{ --sidebar-w: 56px; }
    .spine{ padding: 18px 0; }
    .spine__mark{ font-size: .85rem; }
    .now-playing{ width: 84vw; }
    .deck__scroll{ right: 4vw; }
}