@import url('https://fonts.googleapis.com/css2?family=Rozha+One&family=Yatra+One&family=Teko:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&family=Mukta:wght@400;600;700;800&display=swap');

:root {
  --bg-dark: #0A0C0E;
  --text-white: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.7);
  --text-dim: rgba(255, 255, 255, 0.45);
  --glass-bg: rgba(22, 22, 26, 0.75);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-hover: rgba(255, 255, 255, 0.22);
  --accent-yellow: #F5B014;
  --accent-green: #34C759;
  --led-red: #FF3B30;
  --font-devanagari: 'Mukta', 'Yatra One', 'Rozha One', sans-serif;
  --font-digital: 'Teko', sans-serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-dark);
  font-family: var(--font-body);
  color: var(--text-white);
}

/* FULLSCREEN BACKGROUND ARTWORK */
.bg-viewport {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  overflow: hidden;
}

.bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: brightness(0.78) contrast(1.08) saturate(1.1);
  transform: scale(1.02);
  transition: transform 10s ease-out;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 50%, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
}

.noise-layer {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* TOP NAVBAR */
.top-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

@media (max-width: 640px) {
  .top-navbar {
    padding: 1rem 1.25rem;
  }
}

.nav-time {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.nav-online-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.4);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.5; transform: scale(0.9); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-pill-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
}

.nav-pill-link:hover {
  color: #FFF;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* CENTER HERO SECTION (TITLE WITH CHILDISH AUTO ICON) */
.hero-center {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 5;
  pointer-events: none;
  padding: 0 1rem;
}

.title-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  pointer-events: auto;
}

.childish-auto-icon {
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  display: inline-block;
  animation: auto-wiggle 3s ease-in-out infinite;
  filter: drop-shadow(0 8px 15px rgba(0,0,0,0.6));
  cursor: pointer;
  transition: transform 0.3s ease;
}

.childish-auto-icon:hover {
  transform: scale(1.2) rotate(-8deg);
}

@keyframes auto-wiggle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-6px) rotate(-4deg); }
  75% { transform: translateY(-3px) rotate(4deg); }
}

.hindi-title {
  font-family: var(--font-devanagari);
  font-size: clamp(4.5rem, 12vw, 10.5rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
  letter-spacing: -1px;
  text-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.7),
    0 2px 10px rgba(0, 0, 0, 0.9);
  transition: transform 0.3s ease;
}

.hindi-title:hover {
  transform: scale(1.02);
}

.hero-subtitle {
  font-family: var(--font-devanagari);
  font-size: clamp(1.2rem, 3.2vw, 2rem);
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 1rem;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
}

.hero-subtitle:hover {
  color: #FFF;
}

.refresh-icon {
  font-size: 1.1rem;
  opacity: 0.7;
  transition: transform 0.3s ease;
}

.hero-subtitle:hover .refresh-icon {
  transform: rotate(180deg);
  opacity: 1;
}

/* FLOATING HORN BUTTON (LEFT SIDE) */
.horn-pill-wrapper {
  position: fixed;
  left: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
}

@media (max-width: 768px) {
  .horn-pill-wrapper {
    left: 1rem;
    top: auto;
    bottom: 6.5rem;
    transform: none;
  }
}

.horn-pill-btn {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 0.75rem 1.25rem;
  color: var(--text-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.horn-pill-btn:hover {
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

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

.horn-pill-btn.honking {
  animation: pill-bounce 0.3s ease infinite;
  background: rgba(245, 176, 20, 0.35);
  border-color: var(--accent-yellow);
}

@keyframes pill-bounce {
  0% { transform: scale(0.96) rotate(0deg); }
  50% { transform: scale(1.08) rotate(3deg); }
  100% { transform: scale(0.96) rotate(0deg); }
}

.horn-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.horn-text-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.horn-hindi-text {
  font-family: var(--font-devanagari);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.1;
}

.horn-sub-text {
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* FLOATING AUTO RICKSHAW METER STARTED OVERLAY WIDGET */
.meter-started-widget {
  position: fixed;
  right: 2.5rem;
  top: 50%;
  transform: translateY(-50%) translateX(120%);
  z-index: 22;
  width: 260px;
  background: rgba(18, 22, 20, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 2px solid var(--accent-yellow);
  border-radius: 20px;
  padding: 1rem 1.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.meter-started-widget.active {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .meter-started-widget {
    top: auto;
    bottom: 6.5rem;
    right: 1rem;
    transform: translateY(120%);
    width: 220px;
    padding: 0.85rem 1rem;
  }
  .meter-started-widget.active {
    transform: translateY(0);
  }
}

.meter-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

.meter-badge-tag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-green);
  letter-spacing: 0.5px;
}

.meter-led-box {
  background: #080A0C;
  border: 2px solid #222B35;
  border-radius: 12px;
  padding: 0.75rem;
  text-align: center;
  margin-bottom: 0.75rem;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.9);
}

.meter-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.meter-fare-digit {
  font-family: var(--font-digital);
  font-size: 3rem;
  color: var(--led-red);
  line-height: 1;
  text-shadow: 0 0 12px rgba(255, 59, 48, 0.7);
  letter-spacing: 2px;
}

.meter-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.4rem;
  border-radius: 8px;
}

.meter-detail-val {
  font-family: var(--font-digital);
  font-size: 1.4rem;
  color: var(--accent-yellow);
  line-height: 1;
}

/* FLOATING BOTTOM MUSIC PLAYER BAR */
.player-bar-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  width: calc(100% - 3rem);
  max-width: 680px;
}

@media (max-width: 640px) {
  .player-bar-container {
    bottom: 1.25rem;
    width: calc(100% - 1.5rem);
  }
}

.player-bar {
  background: rgba(20, 20, 24, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.player-track-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex: 1;
}

.track-art-wrapper {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.track-art-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.track-art-img.spinning {
  animation: spin-art 12s linear infinite;
}

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

.track-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.player-song-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-artist-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-progress-bar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  width: 100%;
}

.progress-track {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--text-white);
  border-radius: 2px;
  transition: width 0.1s linear;
}

.progress-time {
  font-size: 0.65rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  min-width: 50px;
}

/* PLAYER CONTROLS (RIGHT) */
.player-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.icon-btn {
  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;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  color: #FFF;
  background: rgba(255, 255, 255, 0.1);
}

.play-pause-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #000000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.play-pause-circle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.5);
}

.play-pause-circle:active {
  transform: scale(0.94);
}

/* QUEUE / PLAYLIST MODAL DRAWER */
.playlist-modal {
  position: fixed;
  bottom: 6.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: calc(100% - 3rem);
  max-width: 480px;
  background: rgba(18, 18, 22, 0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 1.25rem;
  z-index: 25;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.playlist-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFF;
  letter-spacing: 0.5px;
}

.tape-vibe-selector {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.vibe-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.vibe-chip:hover, .vibe-chip.active {
  background: rgba(255, 255, 255, 0.2);
  color: #FFF;
  border-color: rgba(255, 255, 255, 0.35);
}

.track-list-scroll {
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.track-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.track-row:hover {
  background: rgba(255, 255, 255, 0.08);
}

.track-row.active {
  background: rgba(255, 255, 255, 0.15);
}

.track-row-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #FFF;
}

.track-row.active .track-row-title {
  color: var(--accent-yellow);
}

.track-row-artist {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.track-row-duration {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* HEADLIGHT FLASH OVERLAY */
.headlight-flash {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 30% 60%, rgba(255, 245, 180, 0.35) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.08s ease;
  z-index: 998;
}

.headlight-flash.active {
  opacity: 1;
}

/* FLOATING HONK BUBBLES */
.honk-bubble {
  position: fixed;
  pointer-events: none;
  font-family: var(--font-devanagari);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-yellow);
  text-shadow: 0 4px 15px rgba(0,0,0,0.9), 0 0 10px rgba(245, 176, 20, 0.8);
  animation: float-up 0.85s ease-out forwards;
  z-index: 999;
}

@keyframes float-up {
  0% { opacity: 1; transform: translateY(0) scale(0.8) rotate(-4deg); }
  50% { transform: translateY(-35px) scale(1.15) rotate(4deg); }
  100% { opacity: 0; transform: translateY(-70px) scale(1) rotate(0deg); }
}

/* TOAST NOTIFICATION */
.toast-notice {
  position: fixed;
  top: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(20, 20, 24, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFF;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1000;
}

.toast-notice.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
