/* Yellow Cake Radio — styles
   Built from the FigCraft design: cream page, black type, signal-orange gradients.
   Type: Archivo (display, variable width 62–125), Inter Tight (UI/body), JetBrains Mono (labels). */

:root {
  --cream: #F2EEE5;
  --ink: #0D0D0D;
  --signal: #FF4D12;
  --ember: #D91E0B;
  --yolk: #FFC21A;
  --mute: #6E6A62;
  --grad-signal: linear-gradient(90deg, var(--yolk) 0%, var(--signal) 45%, var(--ember) 100%);
  --grad-card: linear-gradient(180deg, #120E0C 0%, #3A120A 45%, var(--signal) 78%, #FFB21A 100%);

  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-ui: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", Consolas, "Courier New", monospace;

  --gutter: clamp(16px, 2.2vw, 32px);
  --max: 1440px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 500 15px/1.4 var(--f-ui);
  letter-spacing: -0.01em;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--cream); padding: 8px 12px; }
.mono { font-family: var(--f-mono); font-weight: 500; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; }
.selectable { user-select: all; text-transform: none; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); vertical-align: middle; }
.dot.is-live { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .dot.is-live { animation: none; } }

/* ── Header ─────────────────────────────────────────── */
.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding-block: 18px 14px;
  border-bottom: 1px solid var(--ink);
  max-width: calc(var(--max));
  background-clip: content-box;
  position: relative;
}
.site-header::after { content: none; }
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark__name { font: 900 26px/1 var(--f-display); font-stretch: 125%; letter-spacing: -0.03em; white-space: nowrap; }
.wordmark__tag { font-size: 9px; line-height: 1.2; letter-spacing: .04em; }
.header-meta { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-size: 11px; line-height: 1.25; justify-self: start; margin-left: clamp(0px, 8vw, 120px); }
.header-meta .dot { margin-top: 3px; }
.site-nav { display: flex; gap: clamp(16px, 2.2vw, 30px); }
.site-nav a { text-decoration: none; font-size: 13px; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-nav__live { color: var(--signal); font-weight: 600; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { display: block; width: 36px; height: 2px; background: var(--ink); position: relative; content: ""; }
.menu-toggle__bars::before { position: absolute; top: -8px; }
.menu-toggle__bars::after { position: absolute; top: 8px; }

/* ── Hero ───────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.58fr);
  gap: clamp(16px, 2.5vw, 36px);
  padding-block: 14px 20px;
}
.hero__type {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "l1 deco"
    "l2 l2"
    "l3 support";
  column-gap: clamp(16px, 2.6vw, 40px);
  position: relative;
  min-width: 0;
}
.hero__headline { display: contents; margin: 0; }
.h-line {
  font: 900 clamp(56px, 9.2vw, 132px)/0.84 var(--f-display);
  font-stretch: 62%;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.h-line--1 { grid-area: l1; }
.h-line--2 { grid-area: l2; padding-left: clamp(40px, 8.3vw, 120px); margin-top: 0.02em; }
.h-line--3 {
  grid-area: l3; font-style: italic; margin-top: 0.02em;
  background: var(--grad-signal); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .08em;
}
.hero__deco { grid-area: deco; display: flex; align-items: center; gap: 12px; align-self: center; white-space: nowrap; }
.hero__rule { width: clamp(40px, 6.6vw, 96px); height: 3px; background: var(--ink); }
.hero__deco sup { font-size: 18px; align-self: flex-start; }
.hero__num { font: 400 clamp(36px, 4.4vw, 64px)/1 var(--f-display); letter-spacing: -0.05em; }
.hero__listeners {
  position: absolute; right: 0; top: 44%;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.avatars { display: flex; }
.avatars i { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--cream); margin-left: -14px; background: center/cover no-repeat; }
.avatars i:nth-child(1) { margin-left: 0; background-image: radial-gradient(var(--yolk), var(--ember)); }
.avatars i:nth-child(2) { background-image: url("../assets/images/nadia-vex.jpg"); }
.avatars i:nth-child(3) { background-image: url("../assets/images/dj-sol.jpg"); }
.hero__listeners .mono { font-size: 9px; }
.hero__support { grid-area: support; align-self: end; max-width: 320px; padding-bottom: 6px; }
.hero__support p { margin: 0 0 14px; font-size: 15px; line-height: 1.28; }
.hero__ctas { display: flex; gap: 8px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 18px; font-weight: 600; font-size: 14px; text-decoration: none;
  border: 1.5px solid var(--ink); background: none;
}
.btn--solid { background: var(--ink); color: var(--cream); }
.btn--solid:hover { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--cream); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.btn--solid:hover .pulse { background: var(--ink); }

/* Live card */
.live-card {
  position: relative; overflow: hidden; border-radius: 4px;
  background: var(--grad-card); color: var(--cream);
  min-height: 372px; padding: 18px 20px 20px;
  display: grid; grid-template-rows: auto 1fr auto auto auto; gap: 8px;
  isolation: isolate;
}
.live-card__photo {
  position: absolute; z-index: -1; right: 11%; top: 30px; width: 40%; height: 78%;
  border-radius: 999px 999px 0 0; overflow: hidden;
}
.live-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; }
.live-card__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(255, 90, 20, .9)); }
.live-card__time-deco {
  position: absolute; z-index: -1; right: 4%; bottom: 18%;
  font: 100 clamp(110px, 13vw, 190px)/0.8 var(--f-display); font-stretch: 62%; font-style: italic;
  letter-spacing: -0.06em; color: var(--signal); pointer-events: none;
}
.live-card__top { display: flex; justify-content: space-between; align-items: flex-start; }
.live-card__status { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; font-size: 11px; letter-spacing: .08em; }
.live-card__slot { margin: 0; text-align: right; }
.live-card__genres { margin: 6px 0 0; font: 300 18px/1.12 var(--f-ui); color: #FF6A2A; letter-spacing: -0.02em; max-width: 50%; }
.live-card__genres span { display: block; }
.live-card__genres span:nth-child(2) { padding-left: 2em; }
.live-card__genres span:nth-child(3) { padding-left: 0.7em; }
.live-card__title { margin: 0; font: 850 clamp(34px, 3.4vw, 48px)/0.86 var(--f-display); font-stretch: 70%; letter-spacing: -0.03em; text-transform: uppercase; max-width: 75%; text-wrap: balance; }
.live-card__desc { margin: 0; font-size: 12px; line-height: 1.3; color: var(--cream); max-width: 52%; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 8px rgba(13,13,13,.6); }
.live-card__track { color: var(--ink); max-width: calc(100% - 72px); display: grid; gap: 6px; }
.track { display: flex; gap: 10px; align-items: center; }
.track__art { width: 36px; height: 36px; object-fit: cover; border: 1px solid rgba(13,13,13,.4); }
.track__text { display: grid; min-width: 0; }
.track__label { font-size: 9px; font-weight: 700; }
.track__song { font-weight: 600; font-size: 13px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track__progress { height: 2px; background: rgba(13,13,13,.25); }
.track__progress span { display: block; height: 100%; width: 0; background: var(--ink); transition: width 1s linear; }
.track__next { margin: 0; font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.play-btn {
  position: absolute; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%;
  border: 0; background: var(--ink); display: grid; place-items: center;
}
.play-btn svg { width: 20px; height: 20px; fill: var(--signal); }
.play-btn:hover { transform: scale(1.06); }

/* Connecting: a spinner replaces the play icon until the stream actually starts */
[data-play].is-connecting { cursor: progress; }
.play-btn.is-connecting::after, .mini-player__btn.is-connecting::after {
  content: ""; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid var(--signal); border-right-color: transparent;
  animation: spin .8s linear infinite;
}
.mini-player__btn.is-connecting::after { width: 16px; height: 16px; border-color: var(--ink); border-right-color: transparent; }
.btn--solid.is-connecting .pulse { animation: pulse .7s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .play-btn.is-connecting::after, .mini-player__btn.is-connecting::after { animation: pulse 1.2s ease-in-out infinite; }
}

/* Optional live video (config.video.hlsUrl) */
.live-card__video { position: absolute; inset: 0; z-index: 3; background: var(--ink); }
.live-card__video video { width: 100%; height: 100%; object-fit: cover; }
.live-card__video p { color: var(--cream); padding: 20px; }
.live-card__watch { position: absolute; z-index: 4; right: 88px; bottom: 34px; background: var(--cream); color: var(--ink); border: 0; padding: 6px 10px; font-weight: 700; }

/* Live365 embedded player (config.provider = "live365") */
.mini-player__embed { flex: 1 1 100%; }
.mini-player__embed iframe { width: 100%; height: 90px; border: 0; display: block; }
body.has-live365 .mini-player { flex-wrap: wrap; }
body.has-live365 .mini-player__vol { display: none; }
body.has-live365.has-player { padding-bottom: 170px; }

/* ── Ticker ─────────────────────────────────────────── */
.ticker { background: var(--ink); color: var(--cream); overflow: hidden; height: 38px; display: flex; align-items: center; margin-block: 12px 22px; }
.ticker__track { display: flex; gap: 18px; white-space: nowrap; animation: ticker 40s linear infinite; padding-left: 18px; }
.ticker__track span { font-size: 17px; letter-spacing: -0.02em; }
.ticker__track b { color: var(--signal); font-weight: 400; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ── Lower grid ─────────────────────────────────────── */
.lower {
  display: grid;
  grid-template-columns: minmax(0, 468fr) minmax(0, 452fr) minmax(0, 378fr);
  gap: clamp(20px, 2.8vw, 40px);
  align-items: start;
}
.section-label { display: flex; align-items: center; gap: 14px; }
.section-label .mono { font-size: 9px; }
.section-label__rule { width: 120px; height: 2px; background: var(--ink); }

/* Schedule */
.schedule__head { display: flex; justify-content: space-between; align-items: flex-start; margin: 12px 0 22px; }
.h2-wide { margin: 0; font: 820 36px/0.88 var(--f-display); letter-spacing: -0.05em; display: grid; }
.h2-wide .indent { padding-left: 2.1em; }
.circle-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--ink); background: none; font-size: 18px; line-height: 1; display: grid; place-items: center; transition: transform .2s; }
.circle-btn[aria-expanded="true"] { transform: rotate(45deg); background: var(--ink); color: var(--cream); }
.shows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--ink); }
.show {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: 0;
  border-top: 1px solid var(--ink); padding: 8px 0 10px; min-height: 62px;
}
.show__idx { font-size: 10px; padding-top: 4px; }
.show__title { font: 900 28px/1 var(--f-display); font-stretch: 68%; letter-spacing: -0.03em; text-transform: uppercase; overflow-wrap: anywhere; }
.show__host { font-size: 12px; margin-top: 4px; }
.show__time { text-align: right; font-size: 10px; line-height: 1.4; padding-top: 4px; white-space: nowrap; }
.show.is-live .show__idx, .show.is-live .show__title, .show.is-live .show__time { color: var(--signal); }
.week { margin-top: 18px; display: grid; gap: 14px; }
.week__day h3 { margin: 0 0 4px; font-size: 10px; }
.week__day ul { list-style: none; margin: 0; padding: 0; }
.week__day li { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(13,13,13,.2); padding: 5px 0; font-size: 13px; }
.week__day li span:last-child { font-family: var(--f-mono); font-size: 11px; white-space: nowrap; }
.week__day li.is-today { color: var(--signal); }

/* DJs collage */
.collage { position: relative; aspect-ratio: 452 / 270; margin-top: 12px; }
.dj { position: absolute; margin: 0; }
.dj img { width: 100%; height: 100%; object-fit: cover; }
.dj figcaption { font-family: var(--f-mono); font-size: 9px; letter-spacing: .03em; line-height: 1.35; margin-top: 6px; text-transform: uppercase; }
.dj figcaption span { text-transform: none; }
.dj__frame { position: relative; overflow: hidden; height: 100%; }
.dj.is-live .dj__frame::after { content: "ON AIR"; position: absolute; left: 6px; top: 6px; background: var(--signal); color: var(--ink); font: 700 9px var(--f-mono); padding: 2px 5px; }
.dj:nth-child(1) { left: 0; top: 0; width: 33.2%; height: 72.6%; }
.dj:nth-child(1) .dj__frame::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, var(--yolk), #FF6A2A 55%, var(--ember)); mix-blend-mode: multiply; opacity: .9; z-index: 1; }
.dj:nth-child(1) img { filter: grayscale(1) contrast(1.1); }
.dj:nth-child(2) { left: 36.7%; top: 17.8%; width: 27%; height: 55.5%; }
.dj:nth-child(3) { left: 68.1%; top: 0; width: 30.1%; height: 41.5%; }
.dj:nth-child(3) img { object-position: 50% 25%; }
.dj:nth-child(4) { left: 79.6%; top: 57%; width: 18.6%; aspect-ratio: 1; height: auto; }
.dj:nth-child(4) .dj__frame { border-radius: 50%; aspect-ratio: 1; }
.dj:nth-child(4) figcaption { position: absolute; right: calc(100% + 8px); top: 75%; text-align: right; white-space: nowrap; }
.dj__scatter { position: absolute; z-index: 2; left: 8px; top: 10px; color: var(--cream); font: 300 14px/1.08 var(--f-ui); letter-spacing: -0.02em; }
.h2-cond { margin: 6px 0 0 36.7%; font: 900 52px/0.9 var(--f-display); font-stretch: 62%; letter-spacing: -0.04em; }

/* Archive */
.archive { position: relative; overflow: hidden; color: var(--cream); background: linear-gradient(180deg, var(--ink) 0%, #2A0E06 55%, #E8340C 100%); isolation: isolate; min-height: 300px; }
.archive__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; z-index: -1; }
.archive__inner { padding: 16px 18px 18px; display: grid; gap: 10px; position: relative; }
.archive__top { display: flex; justify-content: space-between; font-size: 9px; }
.archive__top .rec { color: var(--signal); font-weight: 700; }
.archive__h { margin: 4px 0 0; font: 900 clamp(60px, 5.8vw, 84px)/0.82 var(--f-display); font-stretch: 62%; font-style: italic; letter-spacing: -0.04em; display: grid; }
.archive__h .indent { padding-left: 1.9em; }
.archive__still { position: absolute; right: 18px; top: 118px; width: 24%; aspect-ratio: 92 / 70; object-fit: cover; }
.archive__types, .archive__latest { list-style: none; margin: 0; padding: 0; }
.archive__types li { display: flex; justify-content: space-between; font-size: 13px; line-height: 1.7; }
.archive__types li span:last-child { font-variant-numeric: tabular-nums; }
.archive__latest { border-top: 1px solid rgba(242,238,229,.35); padding-top: 6px; }
.archive__latest li { font-size: 12px; line-height: 1.5; display: flex; justify-content: space-between; gap: 10px; }
.archive__latest button, .archive__latest a { background: none; border: 0; padding: 0; text-align: left; color: var(--cream); text-decoration: underline; text-underline-offset: 3px; font-size: 12px; }
.archive__latest .mono { font-size: 9px; opacity: .8; white-space: nowrap; }
.archive__embed iframe { width: 100%; height: 60px; border: 0; display: block; }
.archive__cta { color: var(--ink); font-weight: 700; font-size: 13px; text-underline-offset: 3px; }

/* About */
.about { display: grid; grid-template-columns: 160px minmax(0, 60ch); gap: 8px 24px; padding-block: 40px 28px; }
.about__text { margin: 0; font-size: 18px; line-height: 1.35; grid-row: span 2; }
.about .mono { margin: 4px 0 0; }
.about #contact { grid-column: 2; }

/* Footer */
.site-footer__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-block: 0 8px; }
.site-footer__phrase { margin: 0; font-weight: 600; font-size: 13px; }
.site-footer__links { margin: 0; display: flex; gap: 2em; flex-wrap: wrap; font-size: 9px; }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { color: var(--signal); }
.site-footer__band {
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 60%, var(--ember) 85%, #FFB21A 100%);
  height: clamp(52px, 5.3vw, 76px); overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.site-footer__band span {
  display: block; white-space: nowrap; color: var(--cream);
  font: 900 8.4vw/0.8 var(--f-display); font-stretch: 112%; letter-spacing: -0.06em;
  padding: 0.05em 0 0 0.15em; max-width: 100vw;
}
@media (min-width: 1440px) { .site-footer__band span { font-size: 121px; text-align: center; } }

/* Mini player */
.mini-player {
  position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--ink); color: var(--cream); border-top: 2px solid var(--signal);
}
.mini-player__btn { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; background: var(--signal); display: grid; place-items: center; }
.mini-player__btn svg { width: 16px; height: 16px; fill: var(--ink); }
.mini-player__text { display: grid; min-width: 0; flex: 1; }
.mini-player__text > span:last-child { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-player__vol input { width: 110px; accent-color: var(--signal); }
body.has-player { padding-bottom: 64px; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; }
  .hero__listeners { top: 4px; }
  .lower { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .archive { grid-column: 1 / -1; }
  .archive__still { width: 18%; }
}
@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .header-meta { grid-column: 1 / -1; grid-row: 2; margin-left: 0; }
  .menu-toggle { display: block; }
  .site-nav { display: none; grid-column: 1 / -1; flex-direction: column; gap: 10px; padding-top: 6px; }
  .site-nav.is-open { display: flex; }
  .site-nav a { font-size: 22px; font-weight: 600; }
}
@media (max-width: 720px) {
  .hero__type { grid-template-columns: 1fr; grid-template-areas: "l1" "l2" "l3" "deco" "support"; }
  .h-line { font-size: clamp(44px, 15.5vw, 96px); }
  .h-line--2 { padding-left: 0.6em; }
  .hero__deco { margin-top: 14px; }
  .hero__listeners { position: static; flex-direction: row; justify-content: flex-start; margin-top: 12px; order: 9; grid-row: 6; }
  .hero__support { max-width: none; margin-top: 16px; }
  .live-card { min-height: 420px; }
  .live-card__photo { width: 54%; right: 4%; }
  .live-card__desc { max-width: 70%; }
  .lower { grid-template-columns: 1fr; }
  .collage { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .dj, .dj:nth-child(n) { position: static; width: auto; height: auto; }
  .dj__frame, .dj:nth-child(4) .dj__frame { aspect-ratio: 4 / 5; height: auto; border-radius: 0; }
  .dj:nth-child(4) figcaption { position: static; text-align: left; }
  .h2-cond { margin-left: 0; }
  .about { grid-template-columns: 1fr; }
  .about #contact { grid-column: 1; }
  .mini-player__vol { display: none; }
}
