:root {
  color-scheme: dark;
  --bg-top: #14213d;
  --bg-bottom: #050816;
  --panel: rgba(11, 17, 32, 0.82);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text-main: #f7f3e9;
  --text-muted: #b9c2d0;
  --accent: #fca311;
  --accent-soft: rgba(252, 163, 17, 0.2);
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
  font-family: "Segoe UI Variable Text", "Aptos", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(252, 163, 17, 0.16), transparent 32%),
    linear-gradient(160deg, var(--bg-top), var(--bg-bottom));
  background-size: 110% 110%, 120% 120%;
  animation: ambient-breathe 18s ease-in-out infinite;
  color: var(--text-main);
}

@keyframes ambient-breathe {
  0% {
    background-position: 0% 0%, 0% 0%;
    filter: saturate(1);
  }

  50% {
    background-position: 6% 4%, 3% 6%;
    filter: saturate(1.06);
  }

  100% {
    background-position: 0% 0%, 0% 0%;
    filter: saturate(1);
  }
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.player-card {
  width: min(100%, 540px);
  padding: 32px;
  border-radius: 28px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.eyebrow,
.label,
.status-text,
.track-timing,
.track-meta,
.volume-control span {
  color: var(--text-muted);
}

.eyebrow,
.label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

h1 {
  margin: 0 0 28px;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1;
}

.track-block {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.track-block h2 {
  margin: 10px 0 8px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.12;
}

.cover-art-shell {
  width: min(100%, 240px);
  margin-top: 18px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.24);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

.cover-art-shell img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.track-meta,
.track-timing,
.status-text {
  margin: 8px 0 0;
  line-height: 1.5;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
}

.primary-button {
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  background: var(--accent);
  color: #111827;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
  box-shadow: 0 12px 24px rgba(252, 163, 17, 0.28);
}

.primary-button:hover {
  transform: translateY(-1px);
}

.volume-control {
  flex: 1 1 220px;
  display: grid;
  gap: 8px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.timeline-container {
  margin-top: 24px;
  display: grid;
  gap: 8px;
}

.timeline-bar {
  width: 100%;
  height: 6px;
  background: var(--accent-soft);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
}

.timeline-progress {
  height: 100%;
  background: var(--accent);
  width: 0%;
  border-radius: 3px;
  transition: width 100ms linear;
}

.timeline-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.time-label {
  font-variant-numeric: tabular-nums;
}

.queue-preview {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--panel-border);
}

.tracks-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}

.tracks-list li {
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.tracks-list li.placeholder {
  color: var(--text-muted);
  font-style: italic;
}

@media (max-width: 640px) {
  .player-card {
    padding: 24px;
  }

  .controls {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-button {
    width: 100%;
  }
}
