/* ───────────────────────────────────────────────────────────
   Sonarium · Liquid Glass system
   Brand: Fundación San Juan de Ávila
   ─────────────────────────────────────────────────────────── */

:root {
  --navy-900: #0a1a2e;
  --navy-800: #102542;
  --navy-700: #1b3a66;
  --navy-600: #25538f;
  --navy-400: #6a8fbf;
  --navy-200: #b6cae3;

  --burg-900: #5a1620;
  --burg-700: #8b2332;
  --burg-500: #b7404f;

  --gold-700: #b88727;
  --gold-500: #e5a93a;
  --gold-300: #f3d27e;

  --cream-50: #f7f1e3;
  --cream-100: #efe6d0;

  --ink: #0a1320;

  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

/* Glass surfaces — composited from: blur+saturate layer, tint, shine, edge */
.glass {
  position: relative;
  isolation: isolate;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.18),
    0 12px 32px -10px rgba(0, 0, 0, 0.45),
    0 2px 6px rgba(0, 0, 0, 0.18);
}
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(120% 80% at 20% -10%, rgba(255, 255, 255, 0.28), transparent 55%),
    radial-gradient(80% 60% at 110% 110%, rgba(229, 169, 58, 0.18), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.9;
}
.glass > * { position: relative; z-index: 1; }

.glass-soft {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-radius: 18px;
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.25),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.12);
}

.glass-light {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 0 0 0.5px rgba(10, 26, 46, 0.06),
    0 8px 24px -6px rgba(10, 26, 46, 0.15);
}

.glass-pill {
  border-radius: 9999px;
  position: relative;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.22),
    0 4px 12px -4px rgba(0, 0, 0, 0.3);
}

/* Aurora backdrop — used behind glass to make the blur actually show something */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at top, #1b3a66 0%, #0a1a2e 55%, #050d18 100%);
}
.aurora::before,
.aurora::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.85;
}
.aurora::before {
  width: 60%; height: 60%;
  top: -10%; left: -15%;
  background: radial-gradient(circle, var(--burg-700), transparent 65%);
}
.aurora::after {
  width: 70%; height: 70%;
  bottom: -20%; right: -20%;
  background: radial-gradient(circle, var(--gold-500), transparent 60%);
  opacity: 0.55;
}
.aurora .orb-mid {
  position: absolute;
  width: 50%; height: 50%;
  top: 30%; left: 35%;
  background: radial-gradient(circle, var(--navy-600), transparent 65%);
  filter: blur(60px);
  opacity: 0.7;
  border-radius: 50%;
}

/* Grain — barely-there film noise on top of glass scenes */
.grain::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.18;
}

/* Typography utilities */
.serif { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }
.mono { font-family: var(--font-mono); }
.tnum { font-variant-numeric: tabular-nums; }

/* Scrollbar hidden inside frames */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

/* Buttons */
.btn-gold {
  background: linear-gradient(180deg, var(--gold-500), var(--gold-700));
  color: #1a1208;
  border: none;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 6px 18px -4px rgba(229, 169, 58, 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-gold:hover { transform: translateY(-1px); }
.btn-gold:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 0.5px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }

/* Equalizer bars */
@keyframes eq {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}
.eq-bar {
  display: inline-block;
  width: 3px;
  height: 16px;
  margin: 0 1.5px;
  background: var(--gold-500);
  border-radius: 2px;
  transform-origin: bottom;
  animation: eq 1s ease-in-out infinite;
}
.eq-bar:nth-child(2) { animation-delay: 0.15s; height: 22px; }
.eq-bar:nth-child(3) { animation-delay: 0.3s; height: 12px; }
.eq-bar:nth-child(4) { animation-delay: 0.45s; height: 20px; }
.eq-bar:nth-child(5) { animation-delay: 0.6s; height: 14px; }

/* Spinning vinyl */
@keyframes spin { to { transform: rotate(360deg); } }
.vinyl-spin { animation: spin 8s linear infinite; }

/* Glass input */
.glass-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.glass-input::placeholder { color: rgba(255, 255, 255, 0.4); }
.glass-input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold-500);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 0 3px rgba(229, 169, 58, 0.18);
}

/* Marquee */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-track { animation: marquee 22s linear infinite; display: inline-flex; gap: 60px; }

/* DJ console responsive grid */
.dj-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 360px;
}
@media (max-width: 1180px) {
  .dj-grid { grid-template-columns: minmax(0, 1fr); }
}

/* TV display: shrink-to-fit on narrow previews via container scale */
.tv-fit { width: 100%; }

/* Soft pulse for "live" dot */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.92); }
}
.live-dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff5e5e;
  box-shadow: 0 0 12px rgba(255, 94, 94, 0.8);
  animation: pulse 1.6s ease-in-out infinite;
}

/* ── Live view · responsive layout ──────────────────────── */
.tv-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
  padding: 16px 20px;
  align-items: start;
}
@media (max-width: 800px) {
  .tv-body {
    grid-template-columns: 1fr;
  }
}

.tv-now-art {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 0;
}
@media (max-width: 480px) {
  .tv-now-art {
    flex-direction: column;
  }
}
