html,
body,
#root {
  min-height: 100%;
}

body.webapp-body {
  margin: 0;
  background: #05070b;
  color: #e2e8f0;
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  overflow-x: hidden;
  touch-action: manipulation;
}

button,
input,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
}

.app-background {
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.14), transparent 22%),
    linear-gradient(180deg, #05070b 0%, #090d14 44%, #040507 100%);
}

.vinyl-disc {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.vinyl-disc.is-spinning {
  animation: vinylSpin 9s linear infinite;
  will-change: transform;
}

.speaker-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-safe {
  min-width: 0;
}

.wave-card {
  position: relative;
  isolation: isolate;
}

.recognition-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), transparent 34%),
    radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(9, 17, 28, 0.88), rgba(10, 14, 24, 0.72));
}

.recognition-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.08), transparent 24%, transparent 76%, rgba(255,255,255,0.04)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 28px);
  pointer-events: none;
  opacity: 0.75;
}

.wave-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% auto;
  width: 9rem;
  height: 9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(28px);
  z-index: -1;
}

.theme-light {
  color: #0f172a;
}

.theme-light .text-white {
  color: #0f172a !important;
}

.theme-light .text-slate-200,
.theme-light .text-slate-300,
.theme-light .text-slate-400,
.theme-light .text-slate-500,
.theme-light .text-white\/70,
.theme-light .text-white\/78,
.theme-light .text-white\/80,
.theme-light .text-white\/90 {
  color: #475569 !important;
}

.theme-light .bg-white\/5 {
  background: rgba(255, 255, 255, 0.58) !important;
}

.theme-light .bg-white\/8,
.theme-light .bg-white\/10,
.theme-light .bg-black\/10,
.theme-light .bg-black\/18,
.theme-light .bg-black\/20,
.theme-light .bg-black\/30 {
  background: rgba(255, 255, 255, 0.72) !important;
}

.theme-light .border-white\/5,
.theme-light .border-white\/8,
.theme-light .border-white\/10,
.theme-light .border-white\/15,
.theme-light .border-white\/20 {
  border-color: rgba(148, 163, 184, 0.28) !important;
}

.theme-light .bg-slate-950\/70,
.theme-light .bg-slate-950\/82,
.theme-light .bg-rose-950\/40,
.theme-light .bg-\[\#09111c\] {
  background: rgba(255, 255, 255, 0.86) !important;
}

.theme-light .shadow-glass,
.theme-light .vinyl-disc {
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.music-player-shell {
  transform-origin: center bottom;
  will-change: transform, border-radius, width, bottom;
}

.music-player-shell-compact {
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.music-player-toggle {
  min-width: 1.95rem;
  letter-spacing: -0.08em;
}

.compact-player-progress {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}

.compact-player-progress__fill {
  display: block;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
}

.compact-player-title-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 2px;
  margin-bottom: 2px;
  text-align: center;
  pointer-events: none;
}

.compact-player-title {
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.88rem;
  line-height: 1.05rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.compact-player-title__inner {
  display: inline-block;
  min-width: 100%;
  padding-left: 100%;
  will-change: transform;
  animation: compactTrackTitleMarquee 10s linear infinite;
}

.normal-player-title {
  max-width: 34rem;
}

.player-range {
  -webkit-appearance: none;
  appearance: none;
}

.player-range::-webkit-slider-runnable-track {
  height: 0.5rem;
  border-radius: 999px;
}

.player-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  margin-top: -0.25rem;
  border: 0;
}

.player-range::-moz-range-track {
  height: 0.5rem;
  border-radius: 999px;
}

.player-range::-moz-range-thumb {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 0;
}

.player-range-dark::-webkit-slider-runnable-track {
  background: rgba(255, 255, 255, 0.1);
}

.player-range-dark::-webkit-slider-thumb {
  background: #ffffff;
}

.player-range-dark::-moz-range-track {
  background: rgba(255, 255, 255, 0.1);
}

.player-range-dark::-moz-range-thumb {
  background: #ffffff;
}

.player-range-light::-webkit-slider-runnable-track {
  background: rgba(15, 23, 42, 0.32);
}

.player-range-light::-webkit-slider-thumb {
  background: #0f172a;
}

.player-range-light::-moz-range-track {
  background: rgba(15, 23, 42, 0.32);
}

.player-range-light::-moz-range-thumb {
  background: #0f172a;
}

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

@keyframes compactTrackTitleMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}
