* { box-sizing: border-box; }
:root { --accent: #ffb238; }
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  background: #100a18;
}

.stage {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: #1b1f4b;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity .9s ease;
}

#heroBase { opacity: 1; }
#heroOverlay { opacity: 0; }

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.15), transparent 40%, rgba(0,0,0,.55));
  pointer-events: none;
}

.clock {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 20;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.clock .blink { animation: blink 1s step-end infinite; }

.online-pill {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 16px 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.dot-wrap { position: relative; display: inline-flex; width: 10px; height: 10px; }
.dot-ping {
  position: absolute; inset: 0;
  border-radius: 999px;
  background: #4ade80;
  opacity: .75;
  animation: ping 1.6s cubic-bezier(0,0,.2,1) infinite;
}
.dot {
  position: relative;
  width: 10px; height: 10px;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74,222,128,.9);
}
.dim { color: rgba(255,255,255,.7); }

.festival-banner {
  position: fixed;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 19;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  background: color-mix(in srgb, var(--accent) 55%, rgba(20,10,10,.7));
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
  animation: bannerIn .5s ease both;
}
@keyframes bannerIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.link-pills {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pill {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
  transition: opacity .15s, transform .1s;
}
.pill:hover { opacity: .8; }
.pill:active { transform: scale(.95); }
.pill-label { display: none; }
.ext { opacity: .5; transform: rotate(-45deg); }
@media (min-width: 900px) {
  .pill { padding: 8px 14px 8px 12px; }
  .pill-label { display: inline; }
}

.pill-select-wrap {
  position: relative;
  background-color: rgba(255,255,255,.08);
}
.pill-select-icon { font-size: 15px; line-height: 1; flex-shrink: 0; }
.pill-select-wrap .pill-label {
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pill-select-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.pill-select-input option { color: #1a1220; }

.bell-fab {
  position: fixed;
  right: 18px;
  bottom: 132px;
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(30,15,20,.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffd28a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  transition: background .15s, transform .1s;
  transform-origin: 50% 0%;
}
.bell-fab:hover { background: rgba(50,25,25,.7); }
.bell-fab:active { transform: scale(.92); }
.bell-fab.ringing { animation: bellSwing .55s ease; }
@keyframes bellSwing {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(18deg); }
  40% { transform: rotate(-14deg); }
  60% { transform: rotate(9deg); }
  80% { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}
@media (max-width: 480px) {
  .bell-fab { bottom: 116px; right: 14px; width: 40px; height: 40px; }
  /* Four icon pills at right + a centered online-pill don't fit on one
     375px-wide row without colliding — give the pills their own row. */
  .link-pills { top: 60px; gap: 6px; }
  .festival-banner { top: 100px; }
}

.logo {
  position: relative;
  z-index: 10;
  margin: 0;
  font-family: 'Tiro Devanagari Hindi', serif;
  font-weight: 400;
  font-size: clamp(56px, 12vw, 128px);
  line-height: 1.05;
  color: #fff8ec;
  text-align: center;
  text-shadow: 0 4px 30px rgba(0,0,0,.45), 0 1px 0 rgba(0,0,0,.3);
  padding: 0 16px;
}

.player {
  position: relative;
  z-index: 20;
  margin-bottom: 28px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(70,35,30,.75), rgba(30,15,20,.75));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  padding: 10px 18px 10px 10px;
  max-width: calc(100vw - 32px);
  width: 460px;
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}

.cover {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  background: #3a2420;
}

.track-info {
  flex: 1;
  min-width: 0;
}
.track-title {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-artist-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.track-artist {
  flex: 1;
  min-width: 0;
  color: rgba(255,255,255,.65);
  font-size: 12px;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lyrics-toggle {
  flex-shrink: 0;
  border: none;
  background: none;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  font-family: 'Tiro Devanagari Hindi', serif;
  cursor: pointer;
  padding: 0;
  opacity: .9;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lyrics-toggle:hover { opacity: 1; }
.lyrics-toggle[aria-expanded="true"] { color: #fff; }
.seek {
  width: 100%;
  margin-top: 6px;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,.25);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}
.seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px; height: 11px;
  border-radius: 999px;
  background: var(--accent);
  cursor: pointer;
}
.seek::-moz-range-thumb {
  width: 11px; height: 11px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  cursor: pointer;
}
.time {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255,255,255,.55);
  font-variant-numeric: tabular-nums;
}

.controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.ctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.ctrl:hover { background: rgba(255,255,255,.12); }
.ctrl:active { transform: scale(.9); }
.ctrl-play {
  width: 40px; height: 40px;
  background: #fff;
  color: #3a1a14;
}
.ctrl-play:hover { background: #ffe6c7; }

.lyrics-panel {
  position: relative;
  z-index: 20;
  margin-top: -14px;
  margin-bottom: 28px;
  width: 460px;
  max-width: calc(100vw - 32px);
  max-height: 220px;
  overflow-y: auto;
  background: linear-gradient(135deg, rgba(50,25,25,.8), rgba(20,10,15,.85));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
  animation: panelIn .25s ease both;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.lyrics-panel-title {
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.lyrics-text {
  font-family: 'Tiro Devanagari Hindi', serif;
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255,255,255,.92);
  white-space: pre-line;
}

@keyframes blink { 50% { opacity: 0; } }
@keyframes ping {
  75%, 100% { transform: scale(2.1); opacity: 0; }
}
