/* ============================================================
   INDIAN ROAD RADIO — DESIGN TOKENS
   ============================================================
   Palette (golden-hour highway, dusk-to-night):
     --dusk-sky-top   #2B1B3D  deep dusk violet
     --dusk-sky-mid   #7A3B4E  faded rose
     --sun-core       #FFB238  low amber sun
     --sun-glow       #FF6B35  burnt orange halo
     --road-tar       #1C1512  near-black asphalt brown
     --dust-gold      #C88A3F  roadside dust / haze
     --cream-ink      #FBF1E4  warm paper cream (text on dark)
     --night-ink      #120C10  night background
   Type:
     Display (Hindi-capable, heavy):     'Baloo Bhaijaan 2'
     Dashboard numerals / labels:        'Teko'
     Body / UI:                          'Hind'
     Mono (code, config):                'Space Mono'
   Signature element: the layered parallax highway scene behind
   everything, with a horn button that's a literal steering wheel.
   ============================================================ */

:root {
  --dusk-sky-top: #2B1B3D;
  --dusk-sky-mid: #7A3B4E;
  --dusk-sky-low: #C9603F;
  --sun-core: #FFB238;
  --sun-glow: #FF6B35;
  --road-tar: #1C1512;
  --road-tar-2: #241A16;
  --dust-gold: #C88A3F;
  --dust-gold-soft: rgba(200, 138, 63, 0.35);
  --cream-ink: #FBF1E4;
  --cream-ink-dim: rgba(251, 241, 228, 0.72);
  --cream-ink-faint: rgba(251, 241, 228, 0.45);
  --night-ink: #0D090C;
  --amber: #FFB238;
  --terracotta: #E0653B;
  --panel-glass: rgba(28, 18, 20, 0.55);
  --panel-glass-light: rgba(251, 241, 228, 0.08);
  --panel-border: rgba(251, 241, 228, 0.14);
  --panel-border-strong: rgba(255, 178, 56, 0.4);
  --shadow-deep: 0 20px 60px rgba(0,0,0,0.45);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;

  --font-display: 'Baloo Bhaijaan 2', 'Hind', sans-serif;
  --font-dash: 'Teko', 'Hind', sans-serif;
  --font-body: 'Hind', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--night-ink);
  color: var(--cream-ink);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

::selection { background: var(--terracotta); color: var(--cream-ink); }

a { color: inherit; }

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

input[type="text"], input[type="range"] { font-family: var(--font-body); }

/* ============================================================
   RIGHTS GATE MODAL
   ============================================================ */
.rights-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 30%, rgba(122,59,78,0.55), var(--night-ink) 75%);
  backdrop-filter: blur(6px);
}
.rights-gate.hidden { display: none; }

.rights-card {
  max-width: 520px;
  width: 100%;
  background: linear-gradient(165deg, rgba(43,27,61,0.9), rgba(13,9,12,0.96));
  border: 1px solid var(--panel-border-strong);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-deep);
}
.rights-eyebrow {
  display: block;
  font-family: var(--font-dash);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--amber);
  margin-bottom: 10px;
}
.rights-card h2 {
  font-family: var(--font-display);
  font-size: 30px;
  margin: 0 0 14px;
  letter-spacing: 0.02em;
}
.rights-hi {
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 10px;
  color: var(--cream-ink);
}
.rights-en {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--cream-ink-dim);
  margin: 0 0 20px;
}
.rights-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--cream-ink);
  margin-bottom: 22px;
  cursor: pointer;
}
.rights-check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--terracotta);
  flex-shrink: 0;
}
.rights-fineprint {
  font-size: 11.5px;
  color: var(--cream-ink-faint);
  margin: 14px 0 0;
  line-height: 1.5;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  font-family: var(--font-dash);
  font-size: 19px;
  letter-spacing: 0.06em;
  padding: 14px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--terracotta));
  color: var(--night-ink);
  font-weight: 700;
  width: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 8px 24px rgba(224,101,59,0.35);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(224,101,59,0.45); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary.btn-small { width: auto; font-size: 16px; padding: 10px 20px; }

.btn-ghost {
  font-family: var(--font-dash);
  font-size: 17px;
  letter-spacing: 0.06em;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--panel-border-strong);
  color: var(--cream-ink);
  background: var(--panel-glass-light);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.btn-ghost:hover { border-color: var(--amber); transform: translateY(-2px); }

.btn-outline {
  font-family: var(--font-dash);
  letter-spacing: 0.04em;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  color: var(--cream-ink-dim);
  padding: 8px 16px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-outline:hover { border-color: var(--amber); color: var(--amber); }
.btn-tiny { font-size: 14px; padding: 6px 14px; }

/* ============================================================
   BACKDROP SCENE (layered parallax highway)
   ============================================================ */
.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.sky {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--dusk-sky-top) 0%, var(--dusk-sky-mid) 45%, var(--dusk-sky-low) 78%, var(--road-tar) 100%);
  transition: background 0.8s ease;
}
.sun {
  position: absolute;
  left: 50%; top: 32%;
  width: 220px; height: 220px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--sun-core) 0%, var(--sun-glow) 55%, rgba(255,107,53,0) 75%);
  filter: blur(2px);
  transition: opacity 0.8s ease, top 0.8s ease;
}
.stars {
  position: absolute; inset: 0;
  opacity: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 15%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 25% 8%, #fff, transparent),
    radial-gradient(1px 1px at 40% 20%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 60% 12%, #fff, transparent),
    radial-gradient(1px 1px at 75% 22%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 88% 10%, #fff, transparent),
    radial-gradient(1px 1px at 15% 30%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 50% 28%, #fff, transparent),
    radial-gradient(1px 1px at 95% 32%, #fff, transparent);
  transition: opacity 0.8s ease;
}
.clouds { position: absolute; inset: 0; }
.cloud {
  position: absolute;
  border-radius: 50%;
  background: rgba(251,241,228,0.12);
  filter: blur(6px);
}
.cloud.c1 { width: 260px; height: 60px; top: 18%; left: -10%; animation: driftCloud 90s linear infinite; }
.cloud.c2 { width: 180px; height: 45px; top: 26%; left: -20%; animation: driftCloud 130s linear infinite; animation-delay: -30s; }
.cloud.c3 { width: 320px; height: 70px; top: 12%; left: -15%; animation: driftCloud 160s linear infinite; animation-delay: -80s; }
@keyframes driftCloud { from { transform: translateX(0); } to { transform: translateX(140vw); } }

.haze {
  position: absolute; left: 0; right: 0; bottom: 26%; height: 30%;
  background: linear-gradient(180deg, rgba(200,138,63,0) 0%, rgba(200,138,63,0.25) 100%);
}
.poles { position: absolute; bottom: 30%; left: 0; right: 0; height: 22%; display: flex; justify-content: space-between; padding: 0 4%; }
.pole {
  width: 3px; height: 100%;
  background: linear-gradient(180deg, rgba(28,21,18,0.6), rgba(28,21,18,0.9));
  align-self: flex-end;
}
.pole:nth-child(2) { height: 85%; }
.pole:nth-child(3) { height: 100%; }
.pole:nth-child(4) { height: 78%; }
.pole:nth-child(5) { height: 92%; }

.roadside { position: absolute; bottom: 22%; left: 0; right: 0; height: 12%; }
.tea-stall {
  position: absolute; left: 6%; bottom: 0; width: 90px; height: 60px;
  background: linear-gradient(180deg, #3A2418, #241509);
  border-radius: 4px 4px 0 0;
  opacity: 0.85;
}
.tea-stall::before {
  content: ""; position: absolute; top: -14px; left: -8px; right: -8px; height: 16px;
  background: var(--terracotta); border-radius: 3px;
}
.field {
  position: absolute; bottom: 0; height: 40px;
  background: linear-gradient(180deg, rgba(122,59,78,0.3), rgba(28,21,18,0.5));
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.field1 { right: 8%; width: 220px; }
.field2 { right: 30%; width: 150px; height: 28px; }

.road {
  position: absolute; left: 0; right: 0; bottom: 0; height: 22%;
  background: linear-gradient(180deg, var(--road-tar-2), var(--road-tar));
}
.road-line {
  position: absolute; top: 12%; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(90deg, var(--dust-gold) 0 60px, transparent 60px 120px);
  animation: roadDash 1.2s linear infinite;
  opacity: 0.85;
}
@keyframes roadDash { from { background-position-x: 0; } to { background-position-x: -120px; } }

.dust {
  position: absolute; left: 0; right: 0; bottom: 18%; height: 10%;
  background: linear-gradient(180deg, rgba(200,138,63,0), rgba(200,138,63,0.3));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.dust.active { opacity: 1; animation: dustPulse 1.4s ease-in-out infinite alternate; }
@keyframes dustPulse { from { transform: translateX(0); opacity: 0.6; } to { transform: translateX(-14px); opacity: 1; } }

.grain {
  position: absolute; inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Night mode overrides */
body.night-mode .sky { background: linear-gradient(180deg, #05060F 0%, #0E0E1D 45%, #1A1420 78%, var(--road-tar) 100%); }
body.night-mode .sun { opacity: 0; }
body.night-mode .stars { opacity: 1; }
body.night-mode .haze { background: linear-gradient(180deg, rgba(40,40,70,0) 0%, rgba(40,40,70,0.25) 100%); }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  background: linear-gradient(180deg, rgba(13,9,12,0.75), rgba(13,9,12,0));
  backdrop-filter: blur(6px);
}
.topbar-left { display: flex; align-items: center; gap: 10px; }
.logo-mark { font-size: 22px; }
.logo-text {
  font-family: var(--font-dash);
  font-size: 22px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.logo-text em { color: var(--amber); font-style: normal; }
.topbar-right { display: flex; align-items: center; gap: 10px; }

.chip {
  font-family: var(--font-dash);
  font-size: 16px;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--panel-glass);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.speed-chip small { font-size: 11px; color: var(--cream-ink-faint); letter-spacing: 0.08em; margin-left: 3px; }
.icon-btn { font-size: 17px; padding: 7px 12px; }
.toggle-chip { font-family: var(--font-dash); font-size: 14px; padding: 6px 14px; }
.toggle-chip.on { color: var(--amber); border-color: var(--panel-border-strong); }

/* ============================================================
   HERO
   ============================================================ */
main { position: relative; z-index: 1; }

.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 28px 60px;
  position: relative;
}
.hero-copy { max-width: 720px; }
.hero-eyebrow {
  font-family: var(--font-dash);
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 14px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  margin: 0;
  line-height: 0.92;
  letter-spacing: -0.01em;
}
.hero-title .line {
  display: block;
  font-size: clamp(52px, 11vw, 128px);
  background: linear-gradient(120deg, var(--cream-ink) 30%, var(--amber) 65%, var(--terracotta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,0.4));
}
.hero-title .line-2 { margin-top: -0.06em; }

.hero-name-wrap { margin: 26px 0 10px; }
.hero-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 46px);
  color: var(--cream-ink);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.hero-subtitle {
  display: block;
  font-family: var(--font-dash);
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--cream-ink-dim);
  margin-top: 4px;
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 24px);
  color: var(--cream-ink-dim);
  margin: 4px 0 30px;
}
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Vehicle stage in hero */
.vehicle-stage {
  position: absolute;
  right: 4%;
  bottom: 8%;
  width: min(46vw, 560px);
  pointer-events: none;
}
.vehicle-shadow {
  position: absolute;
  bottom: -6px; left: 8%; right: 8%;
  height: 22px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.55), transparent 70%);
  filter: blur(2px);
}
.vehicle-wrap {
  position: relative;
  width: 100%;
  animation: idleBounce 3.2s ease-in-out infinite;
}
.vehicle-wrap.driving { animation: driveBounce 0.5s ease-in-out infinite; }
@keyframes idleBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes driveBounce { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-3px) rotate(-0.4deg); } }
.vehicle-wrap svg { width: 100%; height: auto; display: block; overflow: visible; }

@media (max-width: 880px) {
  .vehicle-stage { position: static; width: 78vw; max-width: 420px; margin: 34px auto 0; }
  .hero { text-align: left; }
}
/* ============================================================
   HORN SECTION
   ============================================================ */
.horn-section {
  display: flex; flex-direction: column; align-items: center;
  padding: 50px 20px 70px;
  position: relative;
}
.horn-btn {
  position: relative;
  width: 168px; height: 168px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.08s ease;
}
.horn-btn:active { transform: scale(0.94); }
.horn-btn.pressed .horn-core { animation: hornPress 0.35s ease; }
@keyframes hornPress { 0% { transform: scale(1); } 40% { transform: scale(0.9); } 100% { transform: scale(1); } }

.horn-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 3px solid var(--panel-border-strong);
  opacity: 0;
}
.ring2 { border-color: rgba(255,178,56,0.25); }
.horn-btn.pressed .horn-ring { animation: ringPulse 0.9s ease-out; }
.horn-btn.pressed .ring2 { animation: ringPulse 0.9s ease-out 0.12s; }
@keyframes ringPulse {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(1.55); opacity: 0; }
}

.horn-core {
  position: relative;
  width: 132px; height: 132px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3a2620, var(--road-tar) 70%);
  border: 6px solid var(--road-tar-2);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.5),
    inset 0 2px 6px rgba(255,255,255,0.08),
    inset 0 -6px 12px rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
}
.horn-spokes {
  position: absolute; inset: 10px;
  border-radius: 50%;
  border: 4px solid rgba(200,138,63,0.5);
}
.horn-spokes::before, .horn-spokes::after {
  content: "";
  position: absolute;
  background: rgba(200,138,63,0.5);
}
.horn-spokes::before { top: 50%; left: -4px; right: -4px; height: 4px; transform: translateY(-50%); }
.horn-spokes::after { left: 50%; top: -4px; bottom: -4px; width: 4px; transform: translateX(-50%); }
.horn-label {
  font-family: var(--font-dash);
  font-size: 22px;
  letter-spacing: 0.12em;
  color: var(--amber);
  z-index: 1;
}

.soundwave {
  display: flex; align-items: flex-end; gap: 4px;
  height: 32px; margin-top: 18px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.soundwave.active { opacity: 1; }
.soundwave span {
  width: 4px; border-radius: 3px;
  background: linear-gradient(180deg, var(--amber), var(--terracotta));
  height: 10%;
}
.soundwave.active span { animation: waveBounce 0.7s ease-in-out infinite; }
.soundwave span:nth-child(1) { animation-delay: 0s; }
.soundwave span:nth-child(2) { animation-delay: 0.08s; }
.soundwave span:nth-child(3) { animation-delay: 0.16s; }
.soundwave span:nth-child(4) { animation-delay: 0.24s; }
.soundwave span:nth-child(5) { animation-delay: 0.16s; }
.soundwave span:nth-child(6) { animation-delay: 0.08s; }
.soundwave span:nth-child(7) { animation-delay: 0s; }
@keyframes waveBounce { 0%, 100% { height: 15%; } 50% { height: 100%; } }

.horn-caption {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--cream-ink-faint);
  margin-top: 14px;
}

/* ============================================================
   SECTION HEAD (shared)
   ============================================================ */
.section-head { max-width: 900px; margin: 0 auto 34px; padding: 0 28px; text-align: center; }
.section-eyebrow {
  font-family: var(--font-dash);
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 6px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 44px);
  margin: 0;
  color: var(--cream-ink);
}

/* ============================================================
   VEHICLE SELECT
   ============================================================ */
.vehicle-select { padding: 60px 28px 80px; max-width: 1100px; margin: 0 auto; }

.vehicle-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 44px;
}
.vehicle-card {
  position: relative;
  background: var(--panel-glass);
  border: 1.5px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 22px 16px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, transform 0.15s ease, background 0.2s ease;
}
.vehicle-card:hover { transform: translateY(-4px); border-color: var(--panel-border-strong); }
.vehicle-card.selected {
  border-color: var(--amber);
  background: linear-gradient(165deg, rgba(255,178,56,0.14), var(--panel-glass));
  box-shadow: 0 0 0 1px var(--panel-border-strong), 0 12px 28px rgba(255,178,56,0.15);
}
.vehicle-card-emoji { font-size: 36px; display: block; margin-bottom: 10px; }
.vehicle-card-label {
  font-family: var(--font-dash);
  font-size: 19px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.vehicle-card-check {
  position: absolute; top: 10px; right: 12px;
  font-size: 14px; color: var(--amber);
  opacity: 0; transition: opacity 0.2s ease;
}
.vehicle-card.selected .vehicle-card-check { opacity: 1; }

.custom-name-box {
  background: var(--panel-glass);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  backdrop-filter: blur(10px);
}
.custom-name-box label {
  display: block;
  font-family: var(--font-dash);
  font-size: 18px;
  letter-spacing: 0.03em;
  color: var(--cream-ink-dim);
  margin-bottom: 12px;
}
.custom-name-row { display: flex; gap: 10px; flex-wrap: wrap; }
#customNameInput {
  flex: 1; min-width: 200px;
  background: rgba(13,9,12,0.5);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 12px 20px;
  color: var(--cream-ink);
  font-size: 17px;
  font-family: var(--font-display);
}
#customNameInput::placeholder { color: var(--cream-ink-faint); }
#customNameInput:focus { border-color: var(--amber); outline: none; }

.preset-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.preset-pill {
  font-family: var(--font-body);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  color: var(--cream-ink-faint);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.preset-pill:hover { border-color: var(--amber); color: var(--amber); }

/* ============================================================
   PLAYER SECTION
   ============================================================ */
.player-section { padding: 60px 28px 80px; max-width: 1100px; margin: 0 auto; }

.player-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 820px) {
  .player-layout { grid-template-columns: 1fr; }
}

.player-card {
  background: linear-gradient(165deg, rgba(122,59,78,0.22), var(--panel-glass));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-deep);
}

.artwork-wrap { position: relative; margin-bottom: 20px; }
.artwork {
  width: 100%; aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #3a2620, var(--road-tar));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--panel-border), 0 10px 30px rgba(0,0,0,0.4);
}
.artwork img { width: 100%; height: 100%; object-fit: cover; }
.artwork-fallback { font-size: 48px; opacity: 0.4; }

.eq-bars {
  position: absolute; bottom: 12px; left: 12px;
  display: flex; align-items: flex-end; gap: 3px;
  height: 26px;
  background: rgba(13,9,12,0.5);
  padding: 6px 8px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}
.eq-bars span {
  width: 3px; border-radius: 2px;
  background: var(--amber);
  height: 20%;
}
.eq-bars.playing span { animation: eqBounce 0.9s ease-in-out infinite; }
.eq-bars span:nth-child(odd) { animation-delay: 0.1s; }
.eq-bars span:nth-child(3n) { animation-delay: 0.25s; }
@keyframes eqBounce { 0%, 100% { height: 20%; } 50% { height: 90%; } }

.track-meta { text-align: center; margin-bottom: 18px; }
.track-title { font-family: var(--font-display); font-weight: 700; font-size: 21px; margin: 0 0 4px; }
.track-artist { font-size: 14px; color: var(--cream-ink-dim); margin: 0 0 4px; }
.track-playlist { font-family: var(--font-dash); font-size: 13px; letter-spacing: 0.08em; color: var(--terracotta); margin: 0; text-transform: uppercase; }

.progress-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.time-el { font-family: var(--font-mono); font-size: 11px; color: var(--cream-ink-faint); min-width: 34px; }
.progress-bar, .volume-bar {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 5px; border-radius: 999px;
  background: rgba(251,241,228,0.15);
  outline: none;
}
.progress-bar::-webkit-slider-thumb, .volume-bar::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(255,178,56,0.2);
  cursor: pointer;
}
.progress-bar::-moz-range-thumb, .volume-bar::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; border: none;
  background: var(--amber);
  cursor: pointer;
}

.controls-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 18px; }
.ctrl-btn {
  font-size: 18px;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel-glass-light);
  border: 1px solid var(--panel-border);
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.ctrl-btn:hover { border-color: var(--panel-border-strong); transform: translateY(-2px); }
.ctrl-btn.active { color: var(--amber); border-color: var(--panel-border-strong); }
.play-btn { width: 58px; height: 58px; font-size: 22px; background: linear-gradient(135deg, var(--amber), var(--terracotta)); color: var(--night-ink); border: none; }
.ctrl-btn.small { width: 34px; height: 34px; font-size: 15px; }

.volume-row { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }

.state-pill {
  text-align: center;
  font-family: var(--font-dash);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--cream-ink-faint);
  border: 1px dashed var(--panel-border);
  border-radius: 999px;
  padding: 6px 12px;
}
.state-pill.playing { color: var(--amber); border-color: var(--panel-border-strong); border-style: solid; }
.state-pill.paused { color: var(--cream-ink-dim); }

/* Playlist */
.playlist-card {
  background: var(--panel-glass);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(14px);
  max-height: 560px;
  display: flex; flex-direction: column;
}
.playlist-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.playlist-head h3 { font-family: var(--font-dash); font-size: 20px; letter-spacing: 0.08em; margin: 0; }

.tracklist { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.track-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}
.track-item:hover { background: rgba(251,241,228,0.05); cursor: pointer; }
.track-item.current { background: rgba(255,178,56,0.1); }
.track-item-index { font-family: var(--font-mono); font-size: 12px; color: var(--cream-ink-faint); width: 20px; }
.track-item-thumb {
  width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(145deg, #3a2620, var(--road-tar));
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; overflow: hidden;
}
.track-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.track-item-info { flex: 1; min-width: 0; }
.track-item-title { font-size: 14.5px; font-weight: 600; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-item-artist { font-size: 12px; color: var(--cream-ink-faint); margin: 2px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-item-badge {
  font-size: 10px; font-family: var(--font-mono);
  color: var(--cream-ink-faint);
  border: 1px solid var(--panel-border);
  border-radius: 6px; padding: 2px 6px;
  flex-shrink: 0;
}
.track-item.current .track-item-badge { color: var(--amber); border-color: var(--panel-border-strong); }

.playlist-empty { font-size: 13.5px; color: var(--cream-ink-faint); line-height: 1.6; text-align: center; padding: 20px 8px; }

.ambience-row {
  display: flex; align-items: center; gap: 14px;
  max-width: 1100px; margin: 32px auto 0;
  background: var(--panel-glass);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 12px 20px;
}
.ambience-label { font-family: var(--font-dash); font-size: 15px; letter-spacing: 0.05em; white-space: nowrap; }
#ambienceVolume { max-width: 200px; }

/* ============================================================
   PRESETS SHOWCASE
   ============================================================ */
.presets-section { padding: 60px 28px 80px; max-width: 1100px; margin: 0 auto; }
.preset-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.preset-card {
  background: var(--panel-glass);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: transform 0.15s ease, border-color 0.2s ease;
}
.preset-card:hover { transform: translateY(-3px); border-color: var(--panel-border-strong); }
.preset-card-emoji { font-size: 26px; }
.preset-card-name { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin: 10px 0 4px; }
.preset-card-line { font-size: 13.5px; color: var(--cream-ink-dim); margin: 0 0 14px; }
.preset-card-btn {
  font-family: var(--font-dash);
  font-size: 13px; letter-spacing: 0.06em;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 6px 14px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.preset-card-btn:hover { border-color: var(--amber); color: var(--amber); }

/* ============================================================
   DEV GUIDE
   ============================================================ */
.dev-guide { padding: 60px 28px 90px; max-width: 780px; margin: 0 auto; }
.dev-steps { padding-left: 22px; line-height: 1.8; color: var(--cream-ink-dim); font-size: 15px; }
.dev-steps code { font-family: var(--font-mono); font-size: 13px; background: rgba(251,241,228,0.08); padding: 1px 6px; border-radius: 4px; color: var(--amber); }
.code-block {
  background: rgba(13,9,12,0.6);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 20px;
  overflow-x: auto;
  margin: 20px 0;
}
.code-block code { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; color: var(--cream-ink-dim); white-space: pre; }
.dev-note { font-size: 14px; color: var(--cream-ink-faint); line-height: 1.6; }

/* ============================================================
   SHARE MODAL
   ============================================================ */
.share-modal {
  position: fixed; inset: 0; z-index: 150;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(13,9,12,0.85);
  backdrop-filter: blur(8px);
}
.share-modal.hidden { display: none; }
.share-card-wrap { position: relative; max-width: 380px; width: 100%; }
.share-close {
  position: absolute; top: -44px; right: 0;
  font-size: 20px; color: var(--cream-ink);
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--panel-glass); border: 1px solid var(--panel-border);
}
#shareCanvas { width: 100%; height: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-deep); }
.share-actions { margin-top: 16px; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--road-tar);
  border: 1px solid var(--panel-border-strong);
  color: var(--cream-ink);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: 90vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative; z-index: 1;
  padding: 40px 28px 50px;
  border-top: 1px solid var(--panel-border);
  max-width: 900px; margin: 0 auto;
  text-align: center;
}
.footer-rights { font-size: 12px; line-height: 1.7; color: var(--cream-ink-faint); margin: 0 0 14px; }
.footer-credit { font-family: var(--font-dash); font-size: 15px; letter-spacing: 0.05em; color: var(--cream-ink-dim); margin: 0; }

/* ============================================================
   MOBILE ADJUSTMENTS
   ============================================================ */
@media (max-width: 600px) {
  .topbar { padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
  .logo-text { font-size: 18px; }
  .chip { font-size: 13px; padding: 6px 10px; }
  .hero { padding: 24px 18px 40px; min-height: auto; }
  .hero-cta-row { flex-direction: column; }
  .hero-cta-row button { width: 100%; }
  .horn-btn { width: 128px; height: 128px; }
  .horn-core { width: 100px; height: 100px; }
  .horn-label { font-size: 16px; }
  .vehicle-cards { grid-template-columns: repeat(2, 1fr); }
  .player-card, .playlist-card { padding: 18px; }
  .ambience-row { flex-wrap: wrap; border-radius: var(--radius-md); }
}
