/* CDH RADIO — On-Air Studio theme */
:root {
  /* Surfaces */
  --void: #080605;
  --stage-deep: #120e0c;
  --glass: rgba(10, 7, 6, 0.62);
  --glass-strong: rgba(8, 5, 4, 0.78);
  --line: rgba(255, 214, 160, 0.14);
  --line-strong: rgba(255, 214, 160, 0.22);

  /* Brand signal */
  --signal: #e11d2e;
  --signal-hot: #ff3b4a;
  --signal-deep: #9a1020;

  /* Warm metals / type */
  --gold: #f0c94a;
  --gold-bright: #ffe566;
  --rose: #f0b7a8;
  --rose-soft: #f4c4b6;
  --ivory: #fff8f0;
  --ink: #f6f0e8;
  --muted: #cbb6aa;

  /* Effects */
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  --glow-gold: 0 0 0 1px rgba(240, 201, 74, 0.4);
  --glow-signal: 0 0 0 5px rgba(225, 29, 46, 0.16);

  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --badge: min(38vw, 250px);
  --stage-max: 720px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Keep hash targets (#about / #contact) clear of sticky/fixed chrome */
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.5;
  background-color: var(--void);
  background-image: url("/wallpaper.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  background-repeat: no-repeat;
  overflow-x: clip;
  max-width: 100vw;
}

@media (min-width: 701px) {
  body { background-attachment: fixed; }
}

/* Desktop-only sticky header chrome stays classic above 700px when tall enough */
@media (min-width: 701px) and (min-height: 481px) {
  .mobile-playing-bar { display: none !important; }
}

.page-veil {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% 12%, rgba(225, 29, 46, 0.12), transparent 62%),
    radial-gradient(ellipse 90% 60% at 80% 0%, rgba(240, 201, 74, 0.06), transparent 55%),
    linear-gradient(180deg,
      rgba(8, 6, 5, 0.42) 0%,
      rgba(8, 6, 5, 0.58) 42%,
      rgba(8, 6, 5, 0.82) 100%);
  transition: background 0.9s ease, opacity 0.9s ease;
}

/* Cinema / Music Choice focus mode — idle while playing */
body.is-cinema .page-veil {
  background:
    radial-gradient(ellipse 55% 42% at 50% 28%, rgba(225, 29, 46, 0.08), transparent 58%),
    linear-gradient(180deg,
      rgba(4, 3, 2, 0.72) 0%,
      rgba(4, 3, 2, 0.78) 45%,
      rgba(2, 1, 1, 0.9) 100%);
}

/* Header chrome retracts upward (desktop sticky + mobile Playing bar) */
body.is-cinema .site-header,
body.is-cinema .mobile-playing-bar {
  animation: none;
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  border-bottom-color: transparent;
}

body.is-cinema .site-header,
body.is-cinema .mobile-playing-bar {
  transition: transform 0.7s cubic-bezier(0.22, 0.8, 0.2, 1), opacity 0.55s ease, border-color 0.55s ease;
}

body:not(.is-cinema) .site-header,
body:not(.is-cinema) .mobile-playing-bar {
  transition: transform 0.55s cubic-bezier(0.22, 0.8, 0.2, 1), opacity 0.4s ease, border-color 0.4s ease, background 0.2s ease;
}

body.is-cinema .play-toggle,
body.is-cinema .player-hint {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

body.is-cinema .play-toggle,
body.is-cinema .player-hint {
  transition: opacity 0.85s ease, transform 0.85s ease;
}

body:not(.is-cinema) .play-toggle,
body:not(.is-cinema) .player-hint {
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.2s ease, box-shadow 0.35s ease;
}

body.is-cinema .panel,
body.is-cinema .site-footer {
  opacity: 0.18;
  transition: opacity 0.9s ease;
}

body:not(.is-cinema) .panel,
body:not(.is-cinema) .site-footer {
  transition: opacity 0.45s ease;
}

body.is-cinema .stage {
  min-height: 100svh;
}

body.is-cinema .brand-badge {
  --badge-size: min(42vw, 280px);
  transition: width 0.9s ease, height 0.9s ease;
}

body.is-cinema .now-label,
body.is-cinema .track-info {
  transition: opacity 0.7s ease, transform 0.7s ease;
}

body.is-cinema .now-label {
  letter-spacing: 0.42em;
  opacity: 0.92;
}

.site-header,
.stage,
.panel,
.site-footer {
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 3vw, 2rem);
  padding-top: max(0.85rem, env(safe-area-inset-top));
  padding-left: max(clamp(1rem, 3vw, 2rem), env(safe-area-inset-left));
  padding-right: max(clamp(1rem, 3vw, 2rem), env(safe-area-inset-right));
  background: linear-gradient(180deg, var(--glass-strong), rgba(8, 5, 4, 0.28));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  animation: rise 0.8s ease both;
  transition: transform 0.7s cubic-bezier(0.22, 0.8, 0.2, 1), opacity 0.55s ease, border-color 0.55s ease;
  will-change: transform;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ivory);
}

.nav-brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--glow-gold);
}

.nav-brand span {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--ivory);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 2vw, 1.4rem);
}

.site-nav a {
  color: rgba(255, 248, 240, 0.78);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.55rem 0.35rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  position: relative;
  transition: color 0.25s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ivory);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

/* Stage */
.stage {
  min-height: calc(100svh - 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(0.75rem, 2.5vh, 1.75rem) 1.25rem 1.75rem;
  max-width: var(--stage-max);
  width: 100%;
  margin: 0 auto;
  animation: rise 0.9s ease 0.08s both;
  overflow-x: clip;
}

.brand-badge {
  --badge-size: var(--badge);
  position: relative;
  width: var(--badge-size);
  height: var(--badge-size);
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--stage-deep);
  isolation: isolate;
  box-shadow: var(--glow-gold), var(--glow-signal), var(--shadow);
  animation: badge-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both;
}

.brand-badge .brand-logo,
.brand-badge .brand-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  transition: opacity 0.75s ease, transform 0.75s ease, filter 0.75s ease;
}

.brand-badge .brand-logo {
  object-fit: contain;
  /* Logo asset is left-weighted — nudge for optical center in the circle */
  object-position: 58% 50%;
  padding: 8%;
  background: radial-gradient(circle at 50% 42%, #2a1210 0%, var(--stage-deep) 72%);
  opacity: 1;
  z-index: 1;
}

.brand-badge .brand-art {
  opacity: 0;
  transform: scale(1.08);
  filter: saturate(1.06) contrast(1.04);
  z-index: 2;
  color: transparent; /* hide broken-image alt text */
  font-size: 0;
}

.brand-badge.has-art .brand-logo {
  opacity: 0;
  transform: scale(0.92);
  filter: blur(2px);
}

.brand-badge.has-art .brand-art {
  opacity: 1;
  transform: scale(1);
  object-position: center center;
}

.brand-ring {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 3;
  box-shadow:
    inset 0 0 0 1px rgba(255, 248, 240, 0.14),
    inset 0 0 30px rgba(0, 0, 0, 0.4);
}

/* Stream load / buffer spinner over the art circle */
.brand-spinner {
  pointer-events: none;
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  z-index: 5;
  opacity: 0;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(240, 201, 74, 0.05) 40deg,
    var(--gold-bright) 110deg,
    var(--signal-hot) 160deg,
    transparent 220deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  transition: opacity 0.35s ease;
}

.brand-badge.is-loading .brand-spinner,
.brand-badge.is-buffering .brand-spinner {
  opacity: 1;
  animation: spin-ring 1.05s linear infinite;
}

.brand-badge.is-loading .brand-logo,
.brand-badge.is-loading .brand-art,
.brand-badge.is-buffering .brand-logo,
.brand-badge.is-buffering .brand-art {
  filter: brightness(0.72) saturate(0.9);
}

.brand-badge.is-loading {
  box-shadow: var(--glow-gold), 0 0 0 6px rgba(240, 201, 74, 0.12), var(--shadow);
}

.brand-badge.is-buffering {
  box-shadow: var(--glow-signal), 0 0 0 7px rgba(225, 29, 46, 0.18), var(--shadow);
  animation: badge-pulse 1.4s ease-in-out infinite;
}

.brand-badge.is-loading .brand-ring {
  box-shadow:
    inset 0 0 0 1px rgba(255, 230, 140, 0.35),
    inset 0 0 30px rgba(0, 0, 0, 0.45);
}

.brand-badge.is-buffering .brand-ring {
  box-shadow:
    inset 0 0 0 1px rgba(255, 80, 90, 0.4),
    inset 0 0 34px rgba(0, 0, 0, 0.5);
}

.now-label {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold-bright);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55), 0 10px 28px rgba(0, 0, 0, 0.4);
}

.track-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin: 0 auto 1.15rem;
  max-width: 34rem;
  min-height: 3.6rem;
}

.np-meta,
.np-station,
.mobile-playing-bar,
.audio-viz,
.play-toggle .icon-play,
.play-toggle .icon-pause {
  display: none;
}

.np-artist {
  color: var(--rose-soft);
  font-size: clamp(0.8rem, 1.9vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.np-title {
  margin: 0;
  color: var(--ivory);
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
  overflow-wrap: anywhere;
  max-width: 100%;
}

.player-slot {
  width: min(100%, 520px);
  margin: 0 auto;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.5));
  animation: rise 1s ease 0.25s both;
}

.local-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.transport {
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-toggle {
  appearance: none;
  border: 0;
  cursor: pointer;
  min-width: 9.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  background: var(--signal);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: background 0.2s ease, transform 0.15s ease, opacity 0.4s ease, box-shadow 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.play-toggle:hover {
  background: var(--signal-hot);
}

.play-toggle.is-playing {
  background: var(--signal-deep);
}

.player-hint {
  margin: 0;
  max-width: 22rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
}

/* Panels */
.panel {
  max-width: 38rem;
  margin: 0 auto;
  padding: clamp(4rem, 10vh, 6.5rem) 1.4rem 1.25rem;
  text-align: center;
  width: 100%;
}

#about,
#contact {
  scroll-margin-top: 1.25rem;
}

.panel-kicker {
  margin: 0 0 0.55rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose-soft);
}

.panel h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  letter-spacing: 0.32em;
  color: var(--gold-bright);
  font-weight: 400;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55), 0 10px 28px rgba(0, 0, 0, 0.35);
}

.panel-lead {
  margin: 0 auto;
  max-width: 32rem;
  color: var(--ivory);
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  font-weight: 500;
  line-height: 1.65;
  text-wrap: pretty;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
}

.panel-about {
  border-top: 1px solid var(--line);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.75rem;
  margin-top: 2rem;
  padding: 2rem 1.25rem 2.75rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(8, 5, 4, 0.45));
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ivory);
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--glow-gold);
}

.footer-brand span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  color: var(--ivory);
}

.footer-social {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 0.85rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ivory);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.28rem 0.45rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.footer-social-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.footer-social-label {
  line-height: 1;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  color: var(--gold-bright);
  background: rgba(240, 201, 74, 0.08);
}

.footer-mail {
  color: var(--rose-soft);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-mail:hover {
  color: var(--gold-bright);
  border-bottom-color: currentColor;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes badge-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes spin-ring {
  to { transform: rotate(360deg); }
}

@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.018); }
}

@media (max-width: 700px), (orientation: landscape) and (max-height: 480px) and (max-width: 960px) {
  :root {
    --badge: min(52vw, 220px);
    --mobile-bar-h: 56px;
  }

  html {
    scroll-padding-top: calc(var(--mobile-bar-h) + env(safe-area-inset-top, 0px) + 0.5rem);
  }

  #about,
  #contact {
    scroll-margin-top: calc(var(--mobile-bar-h) + env(safe-area-inset-top, 0px) + 0.65rem);
  }

  /* First mobile Now Playing chrome: hide classic site header, show Playing bar */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  body.is-cinema .site-header {
    animation: none;
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .mobile-playing-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 0.35rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    height: calc(var(--mobile-bar-h) + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) max(0.5rem, env(safe-area-inset-right, 0px)) 0 max(0.5rem, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(8, 5, 4, 0.92), rgba(8, 5, 4, 0.35));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transform: translateY(0);
    opacity: 1;
    will-change: transform, opacity;
    max-width: 100vw;
  }

  body.is-cinema .mobile-playing-bar {
    animation: none;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
  }

  .mobile-bar-side {
    display: flex;
    align-items: center;
    min-height: 44px;
    min-width: 0;
  }

  .mobile-bar-side--left {
    justify-content: flex-start;
    justify-self: stretch;
  }

  .mobile-bar-side--right {
    justify-content: flex-end;
    justify-self: stretch;
  }

  .mobile-bar-logo {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    text-decoration: none;
    flex-shrink: 0;
    line-height: 0;
  }

  .mobile-bar-logo img {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 0 0 1px rgba(240, 201, 74, 0.4), 0 0 0 3px rgba(225, 29, 46, 0.12);
  }

  .mobile-playing-title {
    margin: 0;
    justify-self: center;
    text-align: center;
    font-family: var(--font-body);
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1;
    color: var(--ivory);
    white-space: nowrap;
  }

  .mobile-playing-nav {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.1rem;
    min-width: 0;
  }

  .mobile-playing-nav a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: rgba(255, 248, 240, 0.78);
    text-decoration: none;
    border-radius: 50%;
    transition: color 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
  }

  .mobile-playing-nav a:hover,
  .mobile-playing-nav a.is-active {
    color: var(--gold-bright);
    background: rgba(240, 201, 74, 0.08);
  }

  .mobile-playing-nav svg {
    display: block;
    width: 20px;
    height: 20px;
  }

  .stage {
    position: relative;
    min-height: 100svh;
    min-height: 100dvh;
    width: 100%;
    max-width: min(var(--stage-max), 100%);
    margin-inline: auto;
    padding:
      calc(var(--mobile-bar-h) + env(safe-area-inset-top, 0px) + 0.85rem)
      max(1rem, env(safe-area-inset-right, 0px))
      max(1.25rem, env(safe-area-inset-bottom, 0px))
      max(1rem, env(safe-area-inset-left, 0px));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 0;
    animation: fade-in 0.75s ease 0.04s both;
    overflow-x: clip;
  }

  .stage > * {
    position: relative;
    z-index: 1;
    align-self: center;
    text-align: center;
    max-width: 100%;
  }

  @keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  /* Soft ambient gold/red glow — blends player into studio wallpaper */
  .stage::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 18%;
    width: min(90%, 100%);
    height: 42%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse 55% 50% at 50% 40%, rgba(240, 201, 74, 0.12), transparent 70%);
  }

  .stage::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6%;
    /* Keep within stage — 150% previously caused ~110px horizontal overflow */
    width: min(100%, 420px);
    height: 58%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
    background:
      radial-gradient(ellipse 58% 48% at 50% 88%, rgba(240, 201, 74, 0.2), transparent 72%),
      radial-gradient(ellipse 42% 36% at 50% 94%, rgba(225, 29, 46, 0.16), transparent 68%);
  }

  /* Mobile stack: station → art → track → viz → play → hint */
  .np-station {
    display: block;
    order: 0;
    width: 100%;
    margin: 0.1rem auto 0.7rem;
    color: var(--ivory);
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 6.5vw, 2.05rem);
    font-weight: 400;
    letter-spacing: 0.1em;
    line-height: 1.1;
    text-align: center;
    text-shadow: 0 2px 22px rgba(0, 0, 0, 0.55), 0 0 28px rgba(240, 201, 74, 0.12);
    overflow-wrap: anywhere;
  }

  .brand-badge {
    order: 1;
    width: var(--badge-size);
    max-width: min(var(--badge-size), 100%);
    height: var(--badge-size);
    margin: 0 auto 0.95rem;
    box-shadow:
      0 0 0 1px rgba(240, 201, 74, 0.35),
      0 0 0 6px rgba(225, 29, 46, 0.1),
      0 18px 48px rgba(0, 0, 0, 0.45),
      0 0 60px rgba(240, 201, 74, 0.12);
  }

  /* Keep spinner ring readable on small art circles */
  .brand-spinner {
    inset: -4px;
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  }

  .brand-ring {
    box-shadow:
      inset 0 0 0 1px rgba(255, 248, 240, 0.1),
      inset 0 0 36px rgba(0, 0, 0, 0.35);
  }

  body.is-cinema .brand-badge {
    --badge-size: min(58vw, 240px);
  }

  body.is-cinema .page-veil {
    background:
      radial-gradient(ellipse 58% 38% at 50% 32%, rgba(240, 201, 74, 0.07), transparent 62%),
      radial-gradient(ellipse 48% 34% at 50% 86%, rgba(225, 29, 46, 0.1), transparent 60%),
      linear-gradient(180deg,
        rgba(4, 3, 2, 0.62) 0%,
        rgba(4, 3, 2, 0.72) 48%,
        rgba(2, 1, 1, 0.88) 100%);
  }

  .now-label,
  .np-artist,
  .np-title {
    display: none;
  }

  .track-info {
    order: 2;
    gap: 0.4rem;
    margin: 0 auto 1rem;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    align-items: center;
  }

  .np-meta {
    display: block;
    width: 100%;
    max-width: min(20rem, 100%);
    margin: 0 auto;
    padding: 0 0.25rem;
    color: rgba(244, 196, 182, 0.78);
    font-size: clamp(0.74rem, 3.4vw, 0.84rem);
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.35;
    text-align: center;
    text-wrap: balance;
    overflow-wrap: anywhere;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
  }

  .audio-viz {
    order: 3;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    width: min(78vw, 280px);
    max-width: 100%;
    height: 52px;
    margin: 0 auto 1.25rem;
    opacity: 0.5;
    transition: opacity 0.45s ease;
    filter: drop-shadow(0 0 14px rgba(240, 201, 74, 0.22));
  }

  .audio-viz.is-active {
    opacity: 1;
  }

  .audio-viz .viz-bar {
    flex: 1 1 0;
    min-width: 3px;
    max-width: 7px;
    height: 28%;
    min-height: 8px;
    border-radius: 99px;
    background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 36%, var(--signal-hot) 78%, var(--signal) 100%);
    box-shadow: 0 0 10px rgba(240, 201, 74, 0.28);
    transform-origin: bottom center;
    will-change: height;
  }

  .player-slot {
    order: 4;
    width: 100%;
    max-width: 100%;
    margin-top: auto;
    margin-inline: auto;
    filter: none;
  }

  .local-player {
    gap: 0.65rem;
    padding-bottom: 0.15rem;
    align-items: center;
    width: 100%;
  }

  .transport {
    position: relative;
  }

  .transport::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 120px;
    height: 120px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(225, 29, 46, 0.28) 0%, rgba(240, 201, 74, 0.1) 42%, transparent 68%);
  }

  .play-toggle {
    min-width: 0;
    width: 72px;
    height: 72px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 28%, #ff4a58, var(--signal) 52%, var(--signal-deep));
    box-shadow:
      0 0 0 1px rgba(255, 214, 160, 0.18),
      0 0 22px rgba(225, 29, 46, 0.4),
      0 0 48px rgba(240, 201, 74, 0.14),
      0 10px 28px rgba(0, 0, 0, 0.4);
  }

  .play-toggle:hover {
    background: radial-gradient(circle at 34% 28%, #ff6570, var(--signal-hot) 52%, var(--signal));
  }

  .play-toggle.is-playing {
    background: radial-gradient(circle at 34% 28%, var(--signal-hot), var(--signal) 48%, #6e0b16);
  }

  .play-toggle-label {
    display: none;
  }

  .play-toggle .icon-play {
    display: block;
    margin-left: 3px;
  }

  .play-toggle .icon-pause {
    display: none;
  }

  .play-toggle.is-playing .icon-play {
    display: none;
  }

  .play-toggle.is-playing .icon-pause {
    display: block;
  }

  .player-hint {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    max-width: min(15rem, 92%);
    color: rgba(203, 182, 170, 0.62);
    opacity: 1;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
    overflow-wrap: anywhere;
  }

  .panel {
    padding:
      calc(var(--mobile-bar-h) + env(safe-area-inset-top, 0px) + 2.25rem)
      max(1.15rem, env(safe-area-inset-right, 0px))
      1.25rem
      max(1.15rem, env(safe-area-inset-left, 0px));
    width: 100%;
    max-width: min(38rem, 100%);
  }

  .panel-lead {
    font-size: clamp(0.98rem, 3.8vw, 1.12rem);
    max-width: 100%;
  }

  .site-footer {
    padding:
      1.75rem
      max(1.15rem, env(safe-area-inset-right, 0px))
      max(2.5rem, env(safe-area-inset-bottom, 0px))
      max(1.15rem, env(safe-area-inset-left, 0px));
    gap: 0.75rem 1.25rem;
  }

  .footer-social {
    gap: 0.35rem;
  }

  .footer-social-link {
    place-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    gap: 0;
    border-radius: 50%;
  }

  .footer-social-link:hover,
  .footer-social-link:focus-visible {
    color: var(--gold-bright);
    background: rgba(240, 201, 74, 0.08);
  }

  .footer-social-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .footer-social-icon {
    width: 20px;
    height: 20px;
  }

  .footer-mail {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body.is-cinema .stage {
    min-height: 100svh;
    min-height: 100dvh;
  }

  body.is-cinema .audio-viz {
    opacity: 0.95;
  }

  body.is-cinema .panel,
  body.is-cinema .site-footer {
    opacity: 0.12;
  }
}

/* Very narrow phones */
@media (max-width: 360px) {
  :root {
    --badge: min(50vw, 188px);
    --mobile-bar-h: 52px;
  }

  .mobile-playing-title {
    font-size: 0.92rem;
  }

  .mobile-playing-nav {
    gap: 0;
  }

  .mobile-bar-logo img {
    width: 28px;
    height: 28px;
  }

  .np-station {
    font-size: clamp(1.3rem, 7vw, 1.7rem);
    letter-spacing: 0.08em;
    margin-bottom: 0.55rem;
  }

  .np-meta {
    font-size: 0.72rem;
  }

  .audio-viz {
    height: 44px;
    margin-bottom: 1rem;
  }

  .play-toggle {
    width: 64px;
    height: 64px;
  }

  .transport::before {
    width: 100px;
    height: 100px;
  }
}

/* Short viewports (phone landscape / short windows) — compact Now Playing */
@media (max-height: 480px) and (max-width: 960px) {
  :root {
    --badge: min(30vh, 118px);
    --mobile-bar-h: 48px;
  }

  .mobile-playing-bar {
    height: calc(var(--mobile-bar-h) + env(safe-area-inset-top, 0px));
  }

  .stage {
    min-height: auto;
    padding-top: calc(var(--mobile-bar-h) + env(safe-area-inset-top, 0px) + 0.35rem);
    padding-bottom: max(0.55rem, env(safe-area-inset-bottom, 0px));
    justify-content: flex-start;
  }

  .np-station {
    font-size: clamp(1.05rem, 4.2vh, 1.35rem);
    margin: 0 auto 0.25rem;
  }

  .brand-badge {
    --badge-size: min(30vh, 118px);
    width: var(--badge-size);
    height: var(--badge-size);
    margin-bottom: 0.3rem;
  }

  body.is-cinema .brand-badge {
    --badge-size: min(34vh, 132px);
  }

  .track-info {
    margin-bottom: 0.3rem;
  }

  .np-meta {
    font-size: 0.7rem;
    max-width: min(28rem, 92%);
  }

  .audio-viz {
    height: 28px;
    margin-bottom: 0.4rem;
    width: min(48vw, 220px);
  }

  .player-slot {
    margin-top: 0.2rem;
  }

  .play-toggle {
    width: 52px;
    height: 52px;
  }

  .transport::before {
    width: 80px;
    height: 80px;
  }

  .player-hint {
    font-size: 0.6rem;
    max-width: 18rem;
  }

  .panel {
    padding-top: calc(var(--mobile-bar-h) + env(safe-area-inset-top, 0px) + 1.35rem);
  }
}

/* Tablet: classic desktop chrome, slightly larger stage breathing room */
@media (min-width: 701px) and (max-width: 1024px) and (min-height: 481px) {
  :root { --badge: min(34vw, 230px); }

  .stage {
    padding-inline: 1.5rem;
  }

  .site-nav {
    gap: clamp(0.55rem, 1.8vw, 1.1rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
  .brand-badge.is-loading .brand-spinner,
  .brand-badge.is-buffering .brand-spinner {
    opacity: 0.85;
  }
  body.is-cinema .site-header,
  body.is-cinema .mobile-playing-bar {
    transform: translateY(-110%);
  }
}

.cover-artwork { display: none !important; }
