:root {
  color-scheme: dark;
  --cream: #fff8ea;
  --paper: #f0d9bf;
  --bus-red: #c42822;
  --rust: #843a2b;
  --maroon: #4a1716;
  --asphalt: #111819;
  --ink: #090b0b;
  --green: #11d47b;
  --glass: rgba(92, 42, 32, 0.72);
  --glass-strong: rgba(108, 45, 36, 0.9);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  font-family: Archivo, system-ui, sans-serif;
}

button,
a {
  font: inherit;
}

.stage {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.scene,
.shade,
.grain {
  position: absolute;
  inset: 0;
}

.scene {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  z-index: -4;
}

.shade {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 245, 214, 0.12), transparent 24rem),
    linear-gradient(180deg, rgba(31, 21, 18, 0.03) 0%, rgba(23, 13, 12, 0.08) 48%, rgba(5, 8, 8, 0.56) 100%),
    linear-gradient(90deg, rgba(3, 7, 7, 0.2), transparent 22%, transparent 76%, rgba(3, 7, 7, 0.22));
  z-index: -3;
}

.grain {
  pointer-events: none;
  opacity: 0.2;
  mix-blend-mode: overlay;
  background-image:
    linear-gradient(115deg, transparent 0 47%, rgba(255, 255, 255, 0.055) 48% 49%, transparent 50% 100%),
    radial-gradient(circle at 18% 38%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1.6px),
    radial-gradient(circle at 76% 62%, rgba(0, 0, 0, 0.22) 0 1px, transparent 1.8px);
  background-size: 100% 100%, 7px 7px, 11px 11px;
  z-index: -2;
}

.topbar {
  position: fixed;
  top: 22px;
  left: clamp(18px, 3vw, 34px);
  right: clamp(18px, 3vw, 34px);
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  color: var(--cream);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}

.clock,
.online,
.links a {
  font-size: clamp(0.78rem, 1.4vw, 0.95rem);
  font-weight: 800;
  line-height: 1;
}

.online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: center;
}

.online b,
.online em {
  font-style: normal;
}

.online span {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
  animation: pulse-dot 2.5s infinite ease-in-out;
}

.links {
  justify-self: end;
  display: flex;
  gap: clamp(12px, 2.5vw, 28px);
  align-items: center;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cream);
  text-decoration: none;
  opacity: 0.92;
}

.links svg {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}

.identity {
  position: fixed;
  top: 11vh;
  left: 50%;
  z-index: 2;
  width: min(720px, 86vw);
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}

.identity p {
  margin: 0 0 6px;
  color: rgba(255, 248, 234, 0.78);
  font-size: clamp(0.74rem, 1.2vw, 0.9rem);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.identity h1 {
  margin: 0;
  color: var(--cream);
  font-family: "Noto Serif Devanagari", serif;
  font-size: clamp(5.4rem, 13.2vw, 13rem);
  font-weight: 900;
  line-height: 0.72;
  text-shadow: 0 8px 0 rgba(74, 23, 22, 0.28), 0 30px 56px rgba(0, 0, 0, 0.28);
}

.route-strip {
  position: fixed;
  left: clamp(18px, 4vw, 58px);
  bottom: clamp(28px, 4vw, 48px);
  z-index: 2;
  display: grid;
  gap: 8px;
  color: rgba(255, 248, 234, 0.72);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.58);
}

.player-shell {
  position: fixed;
  left: 50%;
  bottom: clamp(16px, 4.2vh, 48px);
  z-index: 4;
  width: min(610px, calc(100vw - 28px));
  transform: translateX(-50%);
}

.audio-engine {
  position: fixed;
  left: -320px;
  bottom: 0;
  overflow: hidden;
  width: 240px;
  height: 200px;
  opacity: 0.01;
  pointer-events: none;
}

.player {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 142px;
  align-items: center;
  gap: 16px;
  min-height: 96px;
  padding: 12px 18px 12px 12px;
  border: 1px solid rgba(255, 248, 234, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(64, 45, 35, 0.82), rgba(122, 44, 37, 0.86)),
    var(--glass);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px) saturate(1.3);
}

.cover {
  display: grid;
  place-items: center;
  width: 72px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 248, 234, 0.95) 0 10%, transparent 11%),
    conic-gradient(from 15deg, #191314, #bf2924, #f6cf83, #182322, #8d2b22, #191314);
  box-shadow: inset 0 0 0 5px rgba(255, 248, 234, 0.18), 0 5px 18px rgba(0, 0, 0, 0.38);
}

.cover span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(27, 17, 15, 0.9);
  color: var(--paper);
  font-size: 0.74rem;
  font-weight: 900;
}

.track {
  min-width: 0;
}

.track-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.track-copy strong,
.track-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-copy strong {
  font-size: clamp(0.92rem, 2.4vw, 1.02rem);
  font-weight: 900;
}

.track-copy span {
  color: rgba(255, 248, 234, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
}

.progress {
  position: relative;
  height: 6px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 248, 234, 0.22);
  cursor: pointer;
  transition: height 150ms ease;
}

.progress:hover {
  height: 8px;
}

.progress span {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: rgba(255, 248, 234, 0.58);
  transition: width 150ms linear;
}

.timer {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: rgba(255, 248, 234, 0.75);
  font-size: 0.72rem;
  font-weight: 800;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.icon-button,
.play-button {
  display: inline-grid;
  place-items: center;
  border: 0;
  color: var(--cream);
  cursor: pointer;
}

.icon-button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  opacity: 0.88;
}

.play-button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #d8a2a4;
  color: var(--maroon);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 8px 22px rgba(0, 0, 0, 0.22);
}

.icon-button:hover,
.play-button:hover {
  transform: translateY(-1px);
}

.icon-button:focus-visible,
.play-button:focus-visible,
.links a:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 4px;
}

.controls svg {
  width: 19px;
  height: 19px;
  stroke-width: 3;
}

.play-button svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

@media (max-width: 760px) {
  .topbar {
    top: 18px;
    grid-template-columns: 1fr auto;
  }

  .online {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
  }

  .links {
    gap: 14px;
  }

  .identity {
    top: 16vh;
  }

  .identity p {
    display: none;
  }

  .identity h1 {
    font-size: clamp(4.8rem, 24vw, 8.2rem);
  }

  .route-strip {
    display: none;
  }

  .player-shell {
    bottom: 12px;
    width: min(460px, calc(100vw - 18px));
  }

  .player {
    grid-template-columns: 58px minmax(0, 1fr) 104px;
    gap: 10px;
    min-height: 78px;
    padding: 10px 12px 10px 10px;
  }

  .cover {
    width: 58px;
  }

  .cover span {
    width: 34px;
    height: 34px;
    font-size: 0.64rem;
  }

  .track-copy span,
  .timer {
    font-size: 0.68rem;
  }

  .icon-button {
    width: 28px;
    height: 28px;
  }

  .play-button {
    width: 46px;
    height: 46px;
  }

}

@media (max-width: 460px) {
  .links a:first-child {
    display: none;
  }

  .player {
    grid-template-columns: 54px minmax(0, 1fr) 52px;
  }

  .controls .icon-button {
    display: none;
  }

  .track-copy strong {
    font-size: 0.86rem;
  }
}

@keyframes pulse-dot {
  0% {
    transform: scale(1);
    box-shadow: 0 0 8px var(--green);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.18);
    box-shadow: 0 0 18px var(--green), 0 0 28px var(--green);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 8px var(--green);
    opacity: 0.85;
  }
}

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

.play-button .lucide-loader {
  animation: spin 1s linear infinite;
}
