/* ==========================================================================
   Old is Gold — 119 Timeless Bollywood Retro Classics
   Deluxe Vintage Glassmorphism & Immersive Music Player Design System
   Curated by Aman • Slitzee
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Rozha+One&family=Yatra+One&family=Tiro+Devanagari+Hindi:wght@400;700&display=swap');

:root {
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-serif: 'Cinzel', serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-hindi: 'Rozha One', 'Yatra One', 'Tiro Devanagari Hindi', serif;

  /* Color Palette - Vintage Golden Era, Warm Amber & Vinyl Mahogany */
  --bg-dark: #090807;
  --bg-mahogany: #140f0c;
  --glass-bg: rgba(22, 17, 14, 0.76);
  --glass-bg-hover: rgba(35, 26, 21, 0.88);
  --glass-border: rgba(212, 175, 55, 0.24);
  --glass-border-highlight: rgba(245, 197, 66, 0.5);
  --glass-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(212, 175, 55, 0.15) inset;
  
  --accent-gold: #d4af37;
  --accent-gold-light: #f3d069;
  --accent-gold-glow: rgba(212, 175, 55, 0.45);
  --accent-amber: #e69138;
  --accent-warm: #f6ad55;
  --accent-green: #10b981;

  --text-pure: #ffffff;
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 240, 220, 0.82);
  --text-muted: rgba(255, 235, 205, 0.55);

  --radius-full: 9999px;
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --------------------------------------------------------------------------
   Reset & Base Styles (No Scrolling, Fullscreen Viewport)
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  position: fixed;
  background-color: var(--bg-dark);
  font-family: var(--font-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  -webkit-user-select: none;
}

/* Accessibility / Screen Reader Utility (Hidden from visual UI) */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Hidden YouTube Background Audio Engine Target */
#yt-player-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  opacity: 0.001;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

#yt-player-container iframe,
#ytPlayer {
  width: 200px;
  height: 200px;
  pointer-events: none;
}

/* Viewport Root Container */
.viewport-root,
.viewport-wrapper {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   Hero Atmospheric Background
   -------------------------------------------------------------------------- */
.hero-background,
.hero-background-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  background-image: url('assets/gold_bg_desktop.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: translateZ(0);
}

@media (max-width: 768px) {
  .hero-background,
  .hero-background-canvas {
    background-image: url('assets/gold_bg_mobile.jpg');
  }
}

.atmosphere-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 35%, rgba(10, 7, 5, 0.6) 100%),
              linear-gradient(180deg, rgba(10, 7, 5, 0.65) 0%, transparent 25%, transparent 60%, rgba(10, 7, 5, 0.88) 100%);
  z-index: 2;
}

.atmosphere-golden-glow,
.atmosphere-heat-haze {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(243, 208, 105, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.7;
  z-index: 3;
}

/* --------------------------------------------------------------------------
   Top Navigation HUD
   -------------------------------------------------------------------------- */
.top-hud {
  position: fixed;
  top: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 30;
  pointer-events: none;
}

.top-hud > * {
  pointer-events: auto;
}

.hud-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hud-pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid var(--glass-border);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: var(--glass-shadow);
  color: var(--text-primary);
  font-size: 0.825rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all var(--transition-normal);
  cursor: default;
  text-decoration: none;
}

button.hud-pill {
  cursor: pointer;
  outline: none;
  border: 1px solid var(--glass-border);
}

button.hud-pill:hover,
a.hud-pill:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-highlight);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -4px rgba(212, 175, 55, 0.25);
  color: var(--accent-gold-light);
}

.hud-hub-pill {
  color: var(--text-secondary);
}

.route-badge {
  font-family: var(--font-display);
}

.route-tag {
  background: linear-gradient(135deg, var(--accent-gold), #b8860b);
  color: #000;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.route-text {
  color: var(--accent-gold-light);
}

.time-clock {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 0.55rem;
}

.live-beacon {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.beacon-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold);
  animation: beacon-glow 2s infinite ease-in-out;
}

@keyframes beacon-glow {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 10px var(--accent-gold); }
  50% { opacity: 0.4; transform: scale(0.85); box-shadow: 0 0 2px var(--accent-gold); }
}

.passenger-count {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-gold-light);
}

.hud-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hud-pill.icon-only,
.hud-btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

.hud-btn-icon svg,
.hud-pill.icon-only svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   Grand Hindi Banner (Centered Backdrop Text)
   -------------------------------------------------------------------------- */
.grand-hindi-banner {
  position: fixed;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  text-align: center;
  pointer-events: none;
  width: 90vw;
  max-width: 1200px;
}

.hindi-main-title {
  font-family: var(--font-hindi);
  font-size: clamp(3.2rem, 9vw, 8.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: transparent;
  background: linear-gradient(180deg, #fff2cc 0%, #d4af37 55%, #8c6d1f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 50px rgba(212, 175, 55, 0.25);
  letter-spacing: 0.04em;
  opacity: 0.92;
}

.hindi-sub-title {
  font-family: var(--font-serif);
  font-size: clamp(0.9rem, 2vw, 1.4rem);
  color: var(--accent-gold-light);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-top: 0.35rem;
  opacity: 0.85;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.9);
}

/* --------------------------------------------------------------------------
   Floating Audio Player Bar (Minimalist Luxury Glassmorphic Pill)
   -------------------------------------------------------------------------- */
.player-container {
  position: fixed;
  bottom: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(94vw, 900px);
  z-index: 40;
}

.player-card {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  background: var(--glass-bg);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 34px;
  padding: 1.35rem 1.8rem;
  min-height: 106px;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.player-card:hover {
  border-color: var(--glass-border-highlight);
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.8), 0 0 35px -5px rgba(212, 175, 55, 0.25);
}

/* Spinning Vinyl Album Art Disc */
.vinyl-disc-wrapper {
  position: relative;
  width: 82px;
  height: 82px;
  flex-shrink: 0;
  cursor: pointer;
  perspective: 600px;
}

.vinyl-disc {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, #2a221d 0%, #15110e 65%, #050403 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.75), 0 0 0 2px rgba(212, 175, 55, 0.3);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-spring);
}

.vinyl-disc-wrapper:hover .vinyl-disc {
  transform: scale(1.05);
}

.vinyl-image {
  position: absolute;
  width: 48%;
  height: 48%;
  border-radius: 50%;
  object-fit: cover;
  z-index: 2;
  border: 2px solid #d4af37;
}

.vinyl-grooves {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    transparent 0,
    transparent 4px,
    rgba(255, 255, 255, 0.05) 5px,
    transparent 6px
  );
  z-index: 3;
  pointer-events: none;
}

.vinyl-center-spindle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f3d069;
  box-shadow: 0 0 4px #000;
  z-index: 4;
}

/* Vinyl rotation animation when playing */
.is-playing .vinyl-disc,
.vinyl-disc.spinning {
  animation: spin-vinyl 12s linear infinite;
}

@keyframes spin-vinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Middle Track Info & Seek Scrubber */
.track-info-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.track-text-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  overflow: hidden;
  width: 100%;
}

.track-title {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-pure);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
  width: 100%;
}

.track-artist {
  font-size: 0.88rem;
  color: var(--accent-gold-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  width: 100%;
  opacity: 0.88;
}

/* Seek Scrubber & Progress Bar */
.scrubber-container {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
}

.seek-bar-track {
  position: relative;
  flex: 1;
  height: 24px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}

.seek-rail {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: height var(--transition-fast);
}

.seek-bar-track:hover .seek-rail {
  height: 8px;
}

.seek-buffer {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-full);
  transition: width 0.2s ease;
}

.seek-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #d4af37, #f3d069);
  box-shadow: 0 0 12px rgba(243, 208, 105, 0.6);
  border-radius: var(--radius-full);
}

.seek-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #d4af37;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.9);
  transform: translate(-50%, -50%) scale(0);
  transition: transform var(--transition-fast);
  pointer-events: none;
}

.seek-bar-track:hover .seek-thumb,
.is-seeking .seek-thumb {
  transform: translate(-50%, -50%) scale(1);
}

.time-display {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-shrink: 0;
  min-width: 76px;
  text-align: right;
}

/* Playback Control Buttons (Only Prev, Play/Pause, Next) */
.player-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.control-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
  position: relative;
}

.control-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  transition: transform var(--transition-fast);
}

.control-btn:hover {
  color: var(--accent-gold-light);
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--accent-gold);
  transform: scale(1.08);
}

.control-btn:active {
  transform: scale(0.95);
}

.btn-play-primary {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, #f3d069 0%, #d4af37 100%);
  border: none;
  color: #0d0a08 !important;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.5);
}

.btn-play-primary svg {
  width: 26px;
  height: 26px;
  fill: #0d0a08;
}

.btn-play-primary:hover {
  background: linear-gradient(135deg, #fff0aa 0%, #e5c07b 100%);
  transform: scale(1.08);
  box-shadow: 0 6px 26px rgba(212, 175, 55, 0.7);
}

/* --------------------------------------------------------------------------
   Atmosphere & Ambient Sound Synthesizer Modal
   -------------------------------------------------------------------------- */
.ambient-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.ambient-modal-backdrop.is-visible,
.ambient-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.ambient-card {
  width: min(90vw, 420px);
  background: rgba(22, 17, 13, 0.94);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ambient-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ambient-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-gold-light);
}

.btn-close-drawer {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-close-drawer:hover {
  color: var(--text-pure);
  background: rgba(255, 255, 255, 0.1);
}

.ambient-faders-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fader-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.fader-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.fader-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-secondary);
}

.fader-val {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-gold-light);
}

.fader-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
}

.fader-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.9);
  cursor: pointer;
}

.ambient-modal-footer {
  margin-top: 0.25rem;
}

.btn-ambient-horn,
.btn-radio-chime {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold-light);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-ambient-horn:hover,
.btn-radio-chime:hover {
  background: var(--accent-gold);
  color: #0d0a08;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

.toast-msg {
  background: rgba(25, 20, 16, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  color: var(--accent-gold-light);
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  animation: toast-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --------------------------------------------------------------------------
   Responsive Mobile Adaptations
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .top-hud {
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
  }

  .route-text, .time-clock {
    display: none;
  }

  .live-beacon span:last-child {
    display: none;
  }

  .player-container {
    bottom: 2.25rem;
    width: min(94vw, 500px);
  }

  .player-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    padding: 1rem 1.15rem 0.9rem;
    column-gap: 0.85rem;
    row-gap: 0.65rem;
    border-radius: 26px;
    min-height: auto;
  }

  .vinyl-disc-wrapper {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    width: 54px;
    height: 54px;
    align-self: center;
  }

  .track-info-area {
    display: contents;
  }

  .track-text-header {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
  }

  .track-title {
    font-size: 1rem;
    line-height: 1.25;
  }

  .track-artist {
    font-size: 0.78rem;
    line-height: 1.2;
  }

  .player-controls {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    justify-self: end;
  }

  .btn-play-primary {
    width: 44px;
    height: 44px;
  }

  .btn-play-primary svg {
    width: 20px;
    height: 20px;
  }

  .control-btn {
    width: 36px;
    height: 36px;
  }

  .control-btn svg {
    width: 17px;
    height: 17px;
  }

  /* Full-width Scrubber Bar on Mobile (spanning all columns) */
  .scrubber-container {
    grid-column: 1 / -1;
    grid-row: 2 / 3;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .seek-bar-track {
    height: 22px;
  }

  .seek-rail {
    height: 6px;
  }

  .time-display {
    font-size: 0.75rem;
    min-width: 66px;
    text-align: right;
  }
}
