* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: system-ui, -apple-system, sans-serif;
  background-image: url('scene.webp');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0d0d0d;
}

#stage {
  width: 100vw;
  height: 100vh;
  position: relative;
}

/* YouTube Iframe - Keeps Chromium Audio Active */
#youtube-player {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 1px;
  height: 1px;
  opacity: 0.01;
  pointer-events: none;
  z-index: 1;
}

/* Credits Bar */
#credits-bar {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18, 18, 18, 0.85);
  border: 1px solid rgba(250, 204, 21, 0.4);
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  color: #e5e5e5;
  font-size: 0.90rem;
  z-index: 10;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

#credits-bar a { color: #facc15; text-decoration: none; font-weight: bold; }
.sep { color: rgba(255, 255, 255, 0.3); }

/* Hotspots */
.hotspot { position: absolute; cursor: pointer; z-index: 5; }
#hotspot-wall { top: 5%; left: 20%; width: 45%; height: 35%; }
#hotspot-cans { top: 30%; left: 10%; width: 30%; height: 60%; }

/* Saloon Pill Player UI */
#ui-overlay {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 90%;
  max-width: 600px;
}

.saloon-player {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(135, 45, 35, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 60px;
  padding: 10px 24px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75);
  color: #ffffff;
}

.vinyl-wrapper {
  position: relative;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.vinyl-art {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.vinyl-art.spinning {
  animation: spin 8s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.vinyl-hole {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: #1e1e1e;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}

.player-center {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.track-title {
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scrubber-row {
  display: flex;
  align-items: center;
  margin-top: 4px;
}

#scrubber {
  width: 100%;
  height: 4px;
  accent-color: #ffffff;
  cursor: pointer;
}

.time-row {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  cursor: pointer;
}

.play-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  color: #111111;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Modal Styling */
.modal-hidden { display: none !important; }
#ad-modal {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex; justify-content: center; align-items: center;
  z-index: 100; backdrop-filter: blur(6px);
}
.modal-card {
  background: #1e1e1e; border: 1px solid #facc15; border-radius: 16px;
  padding: 24px 32px; text-align: center; color: #ffffff; max-width: 320px; width: 85%;
}
.modal-card h3 { color: #facc15; margin-bottom: 10px; }
.price-tag {
  background: rgba(250, 204, 21, 0.15); color: #facc15; padding: 6px 12px;
  border-radius: 8px; font-weight: bold; margin: 12px 0 16px 0; display: inline-block;
}
#close-modal {
  background: #facc15; color: #121212; border: none; padding: 8px 22px;
  border-radius: 20px; font-weight: bold; cursor: pointer;
}