:root {
  --app-accent: #e8b84b;
  --app-accent-dark: #caa038;
  --app-accent-glow: rgba(232, 184, 75, 0.40);
  --cover-glow: rgba(232, 184, 75, 0.28);
  --cover-tint: rgba(232, 184, 75, 0.10);
  --bg-color: #0e0e11;
  --surface-color: #151518;
  --text-high: #ffffff;
  --text-medium: rgba(255, 255, 255, 0.72);
  --text-dim: rgba(255, 255, 255, 0.50);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-color);
  color: var(--text-high);
  font-family: "Roboto Condensed", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  user-select: none;
}

.backdrop-container {
  position: fixed;
  inset: -60px;
  overflow: hidden;
  z-index: 0;
}

.backdrop-base {
  position: absolute;
  inset: 0;
  background-color: var(--bg-color);
}

.backdrop-radial-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 130% 100% at 30% 50%,
    var(--cover-glow) 0%,
    var(--cover-tint) 45%,
    transparent 80%
  );
  transition: background 0.8s ease;
  z-index: 1;
}

.backdrop-cover-layer {
  position: absolute;
  inset: -60px;
  background-size: cover;
  background-position: center;
  transform: scale(1.2);
  filter: blur(85px) brightness(0.45) saturate(1.2);
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.backdrop-cover-layer.visible {
  opacity: 0.30;
}

.scrim-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 22%;
  background: linear-gradient(to bottom, rgba(14, 14, 17, 0.85) 0%, transparent 100%);
  z-index: 3;
}

.scrim-right {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(14, 14, 17, 0.35) 35%,
    rgba(14, 14, 17, 0.75) 75%,
    rgba(14, 14, 17, 0.90) 100%
  );
  z-index: 3;
}

.scrim-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 35%;
  background: linear-gradient(to top, rgba(14, 14, 17, 0.82) 0%, transparent 100%);
  z-index: 3;
}

.tv-stage {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  padding: 30px 56px;
  animation: oledDrift 300s ease-in-out infinite alternate;
}

@keyframes oledDrift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(3px, 2px); }
  50% { transform: translate(-2px, 3px); }
  75% { transform: translate(2px, -2px); }
  100% { transform: translate(0, 0); }
}

.tv-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  width: 100%;
  margin-bottom: 8px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-bar-brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--app-accent);
  transition: color 0.5s ease;
}

.top-bar-divider {
  font-size: 13px;
  color: var(--text-dim);
}

.top-bar-section {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.85);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stream-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--app-accent);
  box-shadow: 0 0 8px var(--app-accent-glow);
  transition: background-color 0.5s ease;
}

.stream-status-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.75);
}

.tv-track-banner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.banner-text-group {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.marquee-wrapper {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.track-title {
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-high);
  display: inline-block;
  letter-spacing: -0.2px;
}

.track-title.animate-marquee {
  animation: marqueeScroll 18s linear infinite;
}

.banner-subtitle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
}

.track-artist {
  font-weight: 500;
  color: var(--text-high);
}

.track-sub-sep {
  color: var(--text-dim);
  font-size: 16px;
}

.track-album {
  font-weight: 400;
  color: var(--text-medium);
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  15% { transform: translateX(0); }
  85% { transform: translateX(var(--marquee-distance, -40%)); }
  100% { transform: translateX(var(--marquee-distance, -40%)); }
}

.format-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 12px;
  background-color: rgba(232, 184, 75, 0.10);
  border: 1px solid rgba(232, 184, 75, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.format-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--app-accent);
  box-shadow: 0 0 6px var(--app-accent-glow);
}

.format-text {
  font-size: 13px;
  font-family: monospace;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #ffffff;
}

.tv-main-stage {
  display: flex;
  flex: 1;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 56px;
  min-height: 0;
}

.left-hero-section {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art-container {
  position: relative;
  width: clamp(360px, 44vh, 440px);
  height: clamp(360px, 44vh, 440px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.75);
  background-color: #141418;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-album-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-album-art.loaded {
  opacity: 1;
}

.art-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl-disc {
  width: 90%;
  height: 90%;
  border-radius: 50%;
  background: radial-gradient(circle at center, #242429 0%, #151518 45%, #0e0e11 85%);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9), 0 10px 30px rgba(0, 0, 0, 0.6);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.vinyl-groove {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.groove-1 { width: 78%; height: 78%; }
.groove-2 { width: 62%; height: 62%; }
.groove-3 { width: 46%; height: 46%; }

.vinyl-label {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, #25262c 0%, #16171b 100%);
  border: 2px solid rgba(232, 184, 75, 0.35);
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.right-interactive-section {
  flex: 1;
  min-width: 0;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.transport-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.transport-btn {
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-high);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  width: 46px;
  height: 46px;
}

.transport-btn-skip {
  width: 52px;
  height: 52px;
}

.transport-btn:active {
  transform: scale(0.92);
}

.transport-btn:focus-visible,
.transport-btn:focus,
.transport-btn.focused {
  outline: none;
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px var(--app-accent), 0 0 22px var(--app-accent-glow);
  transform: scale(1.14);
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.15);
}

.play-pause-disc {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: transparent;
  border: none;
  position: relative;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.50);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.play-pause-disc::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 2.5px;
  background: conic-gradient(
    from 140deg at 50% 50%,
    #2a2b30 0deg,
    #b0b5c4 60deg,
    #454750 120deg,
    #2a2b30 180deg,
    #b0b5c4 240deg,
    #454750 300deg,
    #2a2b30 360deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.play-pause-disc svg {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.90));
}

.play-pause-disc:active {
  transform: scale(0.94);
}

.play-pause-disc:focus-visible,
.play-pause-disc:focus,
.play-pause-disc.focused {
  outline: none;
  box-shadow:
    0 0 0 3px #ffffff,
    0 0 0 6px var(--app-accent),
    0 0 30px var(--app-accent-glow);
  transform: scale(1.10);
}

.play-pause-disc.buffering {
  animation: pulseBuffering 1.4s ease-in-out infinite;
}

@keyframes pulseBuffering {
  0% { transform: scale(1); box-shadow: 0 0 12px rgba(175, 180, 192, 0.25); opacity: 0.85; }
  50% { transform: scale(1.08); box-shadow: 0 0 28px rgba(175, 180, 192, 0.50); opacity: 1; }
  100% { transform: scale(1); box-shadow: 0 0 12px rgba(175, 180, 192, 0.25); opacity: 0.85; }
}

.scrubber-section {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 6px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.scrubber-section:focus-visible,
.scrubber-section:focus,
.scrubber-section.focused {
  outline: none;
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 2px var(--app-accent), 0 0 20px var(--app-accent-glow);
  transform: scale(1.02);
}

.scrubber-time {
  font-size: 14px;
  font-family: monospace;
  font-weight: 500;
  color: var(--text-medium);
  min-width: 40px;
  text-align: center;
}

.scrubber-track {
  position: relative;
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.16);
}

.scrubber-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(to right, var(--app-accent-dark), var(--app-accent));
  box-shadow: 0 0 10px var(--app-accent-glow);
}

.scrubber-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6), 0 0 8px var(--app-accent-glow);
  transform: translate(-50%, -50%) scale(0.9);
  transition: transform 0.15s ease;
}

.scrubber-section:focus-visible .scrubber-thumb,
.scrubber-section:focus .scrubber-thumb,
.scrubber-section.focused .scrubber-thumb,
.scrubber-section:hover .scrubber-thumb {
  transform: translate(-50%, -50%) scale(1.2);
}

.up-next-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.up-next-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.up-next-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--app-accent);
}

.up-next-caption {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--text-dim);
}

.upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.tv-track-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.tv-track-card:focus-visible,
.tv-track-card:focus,
.tv-track-card.focused {
  outline: none;
  border-color: var(--app-accent);
  box-shadow: 0 0 0 2.5px var(--app-accent), 0 0 18px var(--app-accent-glow);
  background-color: rgba(255, 255, 255, 0.14);
  transform: scale(1.02);
}

.tv-track-card:hover {
  background-color: rgba(255, 255, 255, 0.10);
}

.tv-track-card-idx {
  font-size: 14px;
  font-weight: 700;
  font-family: monospace;
  color: var(--text-dim);
  width: 22px;
  text-align: center;
}

.tv-track-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tv-track-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-high);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-track-card-artist {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-medium);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-track-card-dur {
  font-size: 13px;
  font-family: monospace;
  font-weight: 500;
  color: var(--text-dim);
}
