/* 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; }

body {
  margin: 0;
  min-height: 100vh;
  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: fixed;
  background-repeat: no-repeat;
  overflow-x: hidden;
}

.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%);
}

.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);
  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;
}

.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.45rem 0.15rem;
  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);
  margin: 0 auto;
  animation: rise 0.9s ease 0.08s both;
}

.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;
  transition: opacity 0.75s ease, transform 0.75s ease, filter 0.75s ease;
}

.brand-badge .brand-logo {
  object-fit: contain;
  padding: 4%;
  background: radial-gradient(circle at 40% 35%, #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);
}

.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);
}

.brand-badge.has-art::after {
  content: "CDH RADIO";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  width: auto;
  height: auto;
  transform: none;
  border-radius: 0;
  background: none;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3.6vw, 1.55rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  color: rgba(255, 248, 240, 0.78);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
  opacity: 0.28;
  filter: none;
  z-index: 4;
  pointer-events: none;
}

.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-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);
}

.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;
}

.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;
}

.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;
}

.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-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); }
}

@media (max-width: 700px) {
  :root { --badge: min(62vw, 240px); }
  .nav-brand span { display: none; }
  .site-header { padding-inline: 1rem; }
  .stage {
    min-height: calc(100svh - 66px);
    padding-top: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}

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