/* =========================================================
   BRANNEDARTSLIGA · PREMIUM SOUND CONSOLE
   One-screen, glass/metal, vinyl stage, liga accents
   ========================================================= */
:root {
  --p-gold: #f0d36a;
  --p-gold-2: #e4c24a;
  --p-gold-deep: #b88716;
  --p-red: #e31c23;
  --p-green: #22c55e;
  --p-text: #f7f3ea;
  --p-muted: #b9aea0;
  --p-line: rgba(255, 220, 140, 0.22);
  --p-glass: rgba(16, 14, 18, 0.72);
  --hp-track-h: 1.78rem;
}

html, body.player-page {
  margin: 0;
  height: 100%;
}
body.player-page {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  color: var(--p-text);
  background: #07080b;
  font-family: "Outfit", system-ui, sans-serif;
  display: flex;
  flex-direction: column;
}

/* ---- Atmosphere ---- */
.player-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(90% 70% at 12% 18%, rgba(227, 28, 35, 0.14), transparent 55%),
    radial-gradient(80% 60% at 88% 22%, rgba(34, 197, 94, 0.1), transparent 50%),
    radial-gradient(70% 55% at 50% 100%, rgba(240, 211, 106, 0.1), transparent 55%),
    linear-gradient(160deg, #141018 0%, #0a0b10 45%, #100c10 100%);
}
.player-bg-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.25), transparent 28%, transparent 72%, rgba(0,0,0,0.45)),
    radial-gradient(circle at 50% 40%, transparent 0%, rgba(0,0,0,0.35) 100%);
}
.player-bg-orb {
  --orb-boost: 1;
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.28;
  animation: orbFloat 12s ease-in-out infinite;
  transform: scale(var(--orb-boost));
  will-change: transform, opacity;
}
.player-bg-orb--a {
  width: 280px; height: 280px; left: 8%; top: 18%;
  background: rgba(227, 28, 35, 0.35);
}
.player-bg-orb--b {
  width: 240px; height: 240px; right: 10%; top: 28%;
  background: rgba(34, 197, 94, 0.28);
  animation-delay: -4s;
}
.player-bg-orb--c {
  width: 320px; height: 320px; left: 40%; bottom: -8%;
  background: rgba(240, 211, 106, 0.22);
  animation-delay: -7s;
}
@keyframes orbFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 12px -16px; }
}
body.is-playing .player-bg-orb {
  opacity: calc(0.28 + (var(--energy, 0) * 0.45));
  filter: blur(calc(42px - (var(--energy, 0) * 10px)));
}

.player-top,
.player-shell,
.player-foot { position: relative; z-index: 1; }

/* ---- Top bar ---- */
.player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 1.1rem;
  flex: 0 0 auto;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: linear-gradient(180deg, rgba(0,0,0,0.35), transparent);
}
.player-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--p-text);
  font-weight: 800;
  letter-spacing: 0.05em;
  font-size: 0.86rem;
}
.player-brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(228, 194, 74, 0.35), 0 0 18px rgba(228,194,74,0.15);
}
.player-top-right {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.player-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 211, 106, 0.28);
  background: rgba(240, 211, 106, 0.08);
  color: var(--p-gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.player-live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--p-gold);
  box-shadow: 0 0 10px rgba(240, 211, 106, 0.8);
  animation: livePulse 1.8s ease-in-out infinite;
}
.player-live-pill.is-onair {
  color: #ffe5e5;
  border-color: rgba(227, 28, 35, 0.55);
  background: rgba(227, 28, 35, 0.22);
  box-shadow: 0 0 18px rgba(227, 28, 35, 0.28);
}
.player-live-pill.is-onair i {
  background: #ff4d4d;
  box-shadow: 0 0 12px rgba(255, 70, 70, 0.95);
  animation-duration: 0.9s;
}
@keyframes livePulse {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}
.player-back {
  color: var(--p-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.86rem;
}
.player-back:hover { color: var(--p-gold-2); }

/* ---- Shell ---- */
.player-shell {
  width: min(1180px, calc(100% - 1.5rem));
  margin: 0 auto;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-bottom: 0.15rem;
}
.player-intro {
  text-align: center;
  flex: 0 0 auto;
}
.player-kicker {
  margin: 0;
  font-family: "Share Tech Mono", ui-monospace, monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--p-gold);
  font-size: 0.66rem;
  opacity: 0.9;
}
.player-intro h1 {
  margin: 0.15rem 0 0;
  font-family: "Cinzel", "Times New Roman", serif;
  font-weight: 650;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(92deg, #fff8e6 0%, #f0d36a 40%, #fffdf5 72%, #e4c24a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

/* ---- Console ---- */
.player-console {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--p-line);
  background:
    linear-gradient(155deg, rgba(40, 34, 28, 0.55), rgba(12, 11, 14, 0.82) 45%, rgba(18, 12, 14, 0.9)),
    var(--p-glass);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 24px 60px rgba(0, 0, 0, 0.45);
}
.player-console-rim {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 5;
  box-shadow:
    inset 0 0 0 1px rgba(255, 220, 140, 0.08),
    inset 0 0 40px rgba(0, 0, 0, 0.25);
}
.player-console-grid {
  position: relative;
  z-index: 3;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(280px, 40%) minmax(0, 1fr);
  gap: 0;
}

/* Stage / Vinyl – maximal groß in der linken Spalte */
.player-stage {
  position: relative;
  container-type: size;
  display: grid;
  place-items: center;
  padding: 0.4rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 220, 140, 0.06), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 40%);
  min-height: 0;
  overflow: hidden;
}
.player-stage-frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  /* so groß wie die Stage-Spalte hergibt */
  width: min(100cqmin, 100%);
  max-width: 100%;
  max-height: 100%;
}
@supports not (width: 1cqmin) {
  .player-stage-frame {
    width: min(100%, 460px);
  }
}
.player-viz {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.9;
}
.player-turntable {
  position: relative;
  width: 90%;
  aspect-ratio: 1;
  z-index: 2;
  transform: scale(var(--beat-scale, 1));
  transform-origin: center center;
  will-change: transform;
}
.player-disc {
  --beat-scale: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.08), transparent 28%),
    repeating-radial-gradient(circle at center,
      #0b0b0e 0 1px,
      #17171c 1px 3px,
      #0e0e12 3px 5px);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.05),
    0 0 0 6px rgba(228, 194, 74, 0.16),
    0 18px 36px rgba(0, 0, 0, 0.55),
    inset 0 0 24px rgba(0, 0, 0, 0.55);
  transition: box-shadow 0.12s ease;
}
.player-disc.is-spinning {
  animation: playerDiscSpin 5.67s linear infinite;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.06),
    0 0 0 6px rgba(228, 194, 74, 0.22),
    0 0 calc(12px + (var(--beat, 0) * 28px)) rgba(240, 211, 106, calc(0.15 + var(--beat, 0) * 0.35)),
    0 18px 36px rgba(0, 0, 0, 0.55),
    inset 0 0 24px rgba(0, 0, 0, 0.55);
}
@keyframes playerDiscSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.player-disc-grooves {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.035);
  z-index: 0;
}
.player-disc-label {
  position: relative;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  z-index: 1;
  background: transparent;
  -webkit-mask-image: radial-gradient(circle at center, #000 28%, rgba(0, 0, 0, 0.45) 58%, transparent 78%);
  mask-image: radial-gradient(circle at center, #000 28%, rgba(0, 0, 0, 0.45) 58%, transparent 78%);
}
.player-disc-label img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  z-index: 1;
}
.player-disc-reflect {
  position: absolute;
  inset: -20%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 38%,
    rgba(255, 255, 255, 0.03) 46%,
    rgba(255, 245, 210, 0.22) 50%,
    rgba(255, 255, 255, 0.03) 54%,
    transparent 62%
  );
  filter: blur(1.2px);
  transform: translateX(-120%) rotate(18deg);
  opacity: 0;
}
body.is-playing .player-disc-reflect {
  opacity: 1;
  animation: vinylReflectSweep 7.8s ease-in-out infinite;
}
@keyframes vinylReflectSweep {
  0%, 22% { transform: translateX(-130%) rotate(18deg); opacity: 0; }
  38% { opacity: 0.45; }
  58% { transform: translateX(120%) rotate(18deg); opacity: 0.22; }
  72%, 100% { transform: translateX(140%) rotate(18deg); opacity: 0; }
}
.player-disc-arm {
  position: absolute;
  top: 7%;
  right: -4%;
  width: 54px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ececec, #7a7a7a);
  transform-origin: 92% 50%;
  transform: rotate(8deg);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 3;
}
.player-disc-arm.is-down {
  transform: rotate(24deg);
}
.player-disc-arm::after {
  content: "";
  position: absolute;
  left: -2px;
  top: 50%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle at 35% 35%, #fff, #999 55%, #444);
}

/* Panel / controls */
.player-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 20%);
}
.player-now.hp-main {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "play meta"
    "transport transport";
  gap: 0.65rem 0.9rem;
  align-items: center;
  padding: 0.85rem 1rem 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.player-now .hp-play { grid-area: play; }
.player-now .hp-meta { grid-area: meta; min-width: 0; }
.player-now .player-transport {
  grid-area: transport;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem 0.75rem;
  width: 100%;
  min-width: 0;
}
.player-deck .hp-list-btn {
  display: none !important;
}
.player-deck .hp-transport {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  min-width: 0;
  flex: none;
}
.player-deck .hp-seek-row {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  max-width: none;
}
.player-deck .hp-seek {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0.25rem 0;
}
.player-deck .hp-seek-track {
  display: block;
  width: 100%;
  min-width: 0;
}
.player-deck .hp-vol {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  max-width: 7.5rem;
  min-width: 5rem;
}
.player-deck .hp-vol input[type="range"] {
  width: 100%;
  min-width: 4.5rem;
}

.player-deck .hp-play {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 34%),
    linear-gradient(155deg, #f7fbff 0%, #b9d7fb 14%, #4d8ed4 36%, #1d569e 58%, #12386e 80%, #7eb0e6 100%);
  color: #111;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 -10px 14px rgba(8, 28, 64, 0.45) inset,
    0 0 0 1px rgba(180, 214, 255, 0.55) inset,
    0 0 0 4px rgba(62, 130, 210, 0.2),
    0 12px 26px rgba(16, 52, 110, 0.42);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.player-deck .hp-play:hover {
  transform: scale(1.04);
}
.player-deck.is-playing .hp-play {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 -10px 14px rgba(8, 28, 64, 0.45) inset,
    0 0 0 1px rgba(180, 214, 255, 0.55) inset,
    0 0 0 5px rgba(80, 150, 230, 0.28),
    0 0 26px rgba(70, 150, 240, 0.4),
    0 12px 26px rgba(16, 52, 110, 0.42);
}
.player-deck .hp-play-icon {
  border-color: transparent transparent transparent #111;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.35));
}
.player-deck.is-playing .hp-play-icon {
  background:
    linear-gradient(#111, #111) 0 0 / 3.5px 100% no-repeat,
    linear-gradient(#111, #111) 100% 0 / 3.5px 100% no-repeat;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.35));
}
.player-deck .hp-title {
  margin: 0.08rem 0 0;
  font-family: "Syne", "Outfit", system-ui, sans-serif;
  font-size: clamp(1.2rem, 2.1vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: #4da3ff;
  background: none;
  -webkit-text-fill-color: #4da3ff;
  filter: drop-shadow(0 0 8px rgba(77, 163, 255, 0.28));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: filter 0.25s ease;
}
/* Farbwechsel erst während Wiedergabe */
.player-deck.is-playing .hp-title {
  background: linear-gradient(
    105deg,
    #3d8bfd 0%,
    #6eb6ff 28%,
    #e31c23 48%,
    #22c55e 68%,
    #f0d36a 88%,
    #4da3ff 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: titleLigaFlow 4.8s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(77, 163, 255, 0.35));
}
@keyframes titleLigaFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.player-deck .hp-sub {
  margin: 0.12rem 0 0;
  color: var(--p-muted);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-deck .hp-kicker {
  color: var(--p-gold);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
}
.player-deck .hp-index {
  font-size: 0.7rem;
  opacity: 0.8;
}
.player-deck .hp-btn {
  min-height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--p-text);
  padding: 0.3rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}
.player-deck .hp-btn:hover {
  border-color: rgba(240, 211, 106, 0.35);
  background: rgba(240, 211, 106, 0.08);
}
.player-deck .hp-seek-track {
  background: rgba(255,255,255,0.08);
  height: 5px;
  border-radius: 99px;
}
.player-deck .hp-seek-fill {
  background: linear-gradient(90deg, var(--p-red), var(--p-gold-2), var(--p-green));
  box-shadow: 0 0 12px rgba(240, 211, 106, 0.25);
}
.player-deck .hp-seek-knob {
  background: #fff6d6;
  box-shadow: 0 0 0 3px rgba(240, 211, 106, 0.25);
}
.player-deck .hp-vol input[type="range"] {
  accent-color: var(--p-gold-2);
}

/* Playlist */
.player-deck .hp-playlist,
.player-deck .hp-playlist.is-open {
  --hp-track-h: 1.72rem;
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none !important;
  opacity: 1 !important;
  transform: none;
  transition: none;
  border-top: 0;
  background: transparent;
  overflow: hidden;
}
.player-deck .hp-playlist-inner {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0.35rem 0.7rem 0.55rem;
  opacity: 1 !important;
  transform: none;
}
.player-deck .hp-playlist-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.15rem 0.35rem 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--p-muted);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 0.35rem;
}
.player-deck .hp-playlist-hint { opacity: 0.7; }
.player-deck .hp-playlist-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none !important;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.02rem;
  margin: 0;
  padding: 0;
  list-style: none;
  -webkit-overflow-scrolling: touch;
}
.player-deck .hp-playlist-list > li {
  flex: 0 0 auto;
  display: flex;
  width: 100%;
}
.player-deck .hp-track {
  flex: 0 0 auto;
  width: 100%;
  min-height: 1.52rem !important;
  height: 1.52rem !important;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0 0.4rem;
  cursor: pointer;
  animation: none !important;
  transition: background 0.15s ease, border-color 0.15s ease;
  box-sizing: border-box;
}
.player-deck .hp-track:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.06);
}
.player-deck .hp-track.is-active {
  position: relative;
  background: linear-gradient(90deg, rgba(240, 211, 106, 0.14), rgba(240, 211, 106, 0.04));
  border-color: rgba(240, 211, 106, 0.28);
  box-shadow: inset 3px 0 0 var(--p-gold-2);
  overflow: hidden;
}
.player-deck.is-playing .hp-track.is-active {
  box-shadow:
    inset 3px 0 0 var(--p-gold-2),
    0 0 16px rgba(240, 211, 106, 0.12);
}
.player-deck.is-playing .hp-track.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(227, 28, 35, 0.18) 25%,
    rgba(34, 197, 94, 0.18) 50%,
    rgba(240, 211, 106, 0.22) 75%,
    transparent 100%
  );
  background-size: 220% 100%;
  animation: activeTrackGlow 2.8s linear infinite;
  mix-blend-mode: soft-light;
}
@keyframes activeTrackGlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}
.player-deck .hp-track-num {
  width: 1.3rem;
  font-size: 0.62rem;
  font-family: "Share Tech Mono", ui-monospace, monospace;
  color: var(--p-muted);
  flex: 0 0 auto;
}
.player-deck .hp-track-cover {
  width: 1.32rem;
  height: 1.32rem;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  -webkit-mask-image: radial-gradient(circle at center, #000 34%, transparent 78%);
  mask-image: radial-gradient(circle at center, #000 34%, transparent 78%);
}
.player-deck .hp-track.is-active .hp-track-num { color: var(--p-gold); }
.player-deck .hp-track-body {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
}
.player-deck .hp-track-title {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-deck .hp-track-meta { display: none; }
.player-deck .hp-track-dur {
  font-size: 0.58rem;
  color: var(--p-muted);
  flex: 0 0 auto;
}

/* Metal shine (mittelweg) */
.player-console > .metal-shine {
  position: absolute;
  top: -6%;
  left: -48%;
  width: 30%;
  height: 112%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: soft-light;
  background: linear-gradient(
    108deg,
    transparent 0%,
    transparent 36%,
    rgba(255, 255, 255, 0.04) 45%,
    rgba(255, 248, 230, 0.2) 50%,
    rgba(255, 255, 255, 0.04) 55%,
    transparent 64%,
    transparent 100%
  );
  filter: blur(0.55px);
  transform: skewX(-15deg);
}
.player-console > .metal-shine--soft {
  width: 38%;
  filter: blur(1px);
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.03) 47%,
    rgba(255, 255, 255, 0.13) 50%,
    rgba(255, 255, 255, 0.03) 53%,
    transparent 60%,
    transparent 100%
  );
}
.player-console > .metal-shine--liga-a {
  width: 24%;
  background: linear-gradient(108deg, transparent 0%, transparent 40%, rgba(227,28,35,0.05) 46%, rgba(255,90,90,0.3) 50%, rgba(227,28,35,0.05) 54%, transparent 60%, transparent 100%);
}
.player-console > .metal-shine--liga-b {
  width: 24%;
  background: linear-gradient(108deg, transparent 0%, transparent 40%, rgba(34,197,94,0.05) 46%, rgba(110,230,150,0.28) 50%, rgba(34,197,94,0.05) 54%, transparent 60%, transparent 100%);
}
.player-console > .metal-shine--liga-c {
  width: 24%;
  background: linear-gradient(108deg, transparent 0%, transparent 40%, rgba(245,197,24,0.05) 46%, rgba(255,220,110,0.32) 50%, rgba(245,197,24,0.05) 54%, transparent 60%, transparent 100%);
}
.player-console > .metal-shine.is-running {
  animation-name: player-metal-sweep;
  animation-timing-function: cubic-bezier(0.42, 0.05, 0.2, 1);
  animation-fill-mode: forwards;
}
@keyframes player-metal-sweep {
  0% { transform: skewX(-15deg) translateX(0); opacity: 0; }
  10% { opacity: 0.7; }
  55% { opacity: 0.45; }
  100% { transform: skewX(-15deg) translateX(450%); opacity: 0; }
}
.player-arena-glow {
  position: absolute;
  inset: -20% 10% auto;
  height: 50%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 70% at 35% 40%, rgba(227, 28, 35, 0.1), transparent 70%),
    radial-gradient(ellipse 45% 65% at 55% 45%, rgba(34, 197, 94, 0.09), transparent 68%),
    radial-gradient(ellipse 40% 60% at 72% 50%, rgba(245, 197, 24, 0.09), transparent 65%);
  filter: blur(10px);
  opacity: 0.55;
  animation: player-arena-breathe 7.5s ease-in-out infinite;
  transition: background 0.45s ease, opacity 0.45s ease;
}
@keyframes player-arena-breathe {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(1.03); }
}

/* Track-Drop Flash */
.track-drop-flash {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 240, 180, 0.28), transparent 42%),
    linear-gradient(
      105deg,
      transparent 20%,
      rgba(227, 28, 35, 0.18) 40%,
      rgba(34, 197, 94, 0.16) 55%,
      rgba(240, 211, 106, 0.28) 70%,
      transparent 85%
    );
  mix-blend-mode: soft-light;
}
.track-drop-flash.is-on {
  animation: trackDropFlash 0.42s ease-out forwards;
}
@keyframes trackDropFlash {
  0% { opacity: 0; }
  18% { opacity: 1; }
  100% { opacity: 0; }
}

/* Theme pro Track-Typ */
body[data-track-theme="gold"] .player-arena-glow,
.player-console[data-track-theme="gold"] .player-arena-glow {
  background:
    radial-gradient(ellipse 55% 70% at 50% 40%, rgba(240, 211, 106, 0.22), transparent 70%),
    radial-gradient(ellipse 40% 55% at 70% 55%, rgba(227, 28, 35, 0.06), transparent 65%);
}
body[data-track-theme="green"] .player-arena-glow,
.player-console[data-track-theme="green"] .player-arena-glow {
  background:
    radial-gradient(ellipse 55% 70% at 50% 40%, rgba(34, 197, 94, 0.22), transparent 70%),
    radial-gradient(ellipse 40% 55% at 30% 55%, rgba(240, 211, 106, 0.08), transparent 65%);
}
body[data-track-theme="red"] .player-arena-glow,
.player-console[data-track-theme="red"] .player-arena-glow {
  background:
    radial-gradient(ellipse 55% 70% at 50% 40%, rgba(227, 28, 35, 0.24), transparent 70%),
    radial-gradient(ellipse 40% 55% at 70% 55%, rgba(240, 211, 106, 0.08), transparent 65%);
}

body[data-track-theme="gold"] .player-live-pill.is-onair {
  border-color: rgba(240, 211, 106, 0.55);
  background: rgba(240, 211, 106, 0.18);
  color: #ffe9a8;
  box-shadow: 0 0 18px rgba(240, 211, 106, 0.28);
}
body[data-track-theme="gold"] .player-live-pill.is-onair i {
  background: #f0d36a;
  box-shadow: 0 0 12px rgba(240, 211, 106, 0.95);
}
body[data-track-theme="green"] .player-live-pill.is-onair {
  border-color: rgba(34, 197, 94, 0.55);
  background: rgba(34, 197, 94, 0.18);
  color: #d8ffe8;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.28);
}
body[data-track-theme="green"] .player-live-pill.is-onair i {
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.95);
}
body[data-track-theme="red"] .player-live-pill.is-onair {
  border-color: rgba(227, 28, 35, 0.55);
  background: rgba(227, 28, 35, 0.22);
  color: #ffe5e5;
  box-shadow: 0 0 18px rgba(227, 28, 35, 0.28);
}

body[data-track-theme="gold"].is-playing .player-bg-orb--c { opacity: 0.55; }
body[data-track-theme="green"].is-playing .player-bg-orb--b { opacity: 0.55; }
body[data-track-theme="red"].is-playing .player-bg-orb--a { opacity: 0.55; }

body[data-track-theme="gold"] .player-deck.is-playing .hp-track.is-active {
  box-shadow: inset 3px 0 0 #f0d36a, 0 0 16px rgba(240, 211, 106, 0.14);
}
body[data-track-theme="green"] .player-deck.is-playing .hp-track.is-active {
  box-shadow: inset 3px 0 0 #22c55e, 0 0 16px rgba(34, 197, 94, 0.14);
}
body[data-track-theme="red"] .player-deck.is-playing .hp-track.is-active {
  box-shadow: inset 3px 0 0 #e31c23, 0 0 16px rgba(227, 28, 35, 0.14);
}

.player-foot {
  flex: 0 0 auto;
  text-align: center;
  padding: 0.3rem 1rem 0.45rem;
  color: var(--p-muted);
  font-size: 0.74rem;
}
.player-foot a { color: var(--p-gold-2); text-decoration: none; }

@media (max-width: 980px) {
  html, body.player-page {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    max-height: none;
    min-height: 100dvh;
  }

  .player-top {
    padding: 0.55rem 0.75rem;
    gap: 0.5rem;
  }
  .player-brand span { font-size: 0.78rem; }
  .player-live-pill { display: none; }

  .player-shell {
    width: min(100%, calc(100% - 1rem));
    flex: 0 1 auto;
    gap: 0.65rem;
    padding-bottom: 0.75rem;
  }
  .player-intro h1 {
    font-size: clamp(1.45rem, 7vw, 1.85rem);
  }

  .player-console {
    border-radius: 22px;
    flex: 0 0 auto;
    min-height: 0;
    height: auto;
  }
  .player-console-grid {
    grid-template-columns: 1fr;
    height: auto;
    align-content: start;
  }

  /* Size-Containment würde die Bühne auf 0 Höhe klappen, sobald die
     Konsole nicht mehr die volle Viewport-Höhe hat. */
  .player-stage {
    container-type: normal;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 0.7rem 0.65rem 0.55rem;
    min-height: auto;
    height: auto;
    overflow: visible;
  }
  .player-stage-frame {
    width: min(72vw, 260px);
    height: auto;
    max-height: none;
  }
  .player-turntable {
    width: 86%;
  }
  .player-deck .hp-track-cover {
    width: 1.45rem;
    height: 1.45rem;
  }
  .player-disc-arm {
    width: 48px;
    right: -4%;
  }

  .player-now.hp-main {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "play meta"
      "transport transport";
    gap: 0.7rem;
    padding: 0.85rem 0.75rem;
  }
  .player-now .player-transport {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  .player-deck .hp-transport {
    width: 100%;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.35rem;
  }
  .player-deck .hp-seek-row {
    min-width: 0;
    width: 100%;
  }
  /* Lautstärke auf Mobile wieder zeigen (styles.css blendet sie sonst aus) */
  .player-page .hp-side > .hp-vol,
  .player-deck .hp-vol,
  .player-deck .player-transport > .hp-vol {
    display: inline-flex !important;
    visibility: visible !important;
    width: 100%;
    max-width: none;
    min-width: 0;
    justify-content: flex-start;
  }
  .player-deck .hp-vol input[type="range"] {
    display: block !important;
    width: 100%;
    min-width: 0;
    height: 1.25rem;
  }

  .player-deck .hp-meta {
    min-width: 0;
    max-width: 100%;
  }
  .player-deck .hp-meta-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 0.4rem;
    align-items: start;
  }
  .player-deck .hp-kicker {
    min-width: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    font-size: 0.58rem;
    letter-spacing: 0.05em;
    line-height: 1.3;
  }
  .player-deck .hp-index {
    white-space: nowrap;
  }
  .player-deck .hp-play {
    width: 58px;
    height: 58px;
  }
  .player-deck .hp-title {
    font-size: 1.2rem;
  }
  .player-deck .hp-sub {
    display: block !important;
    min-width: 0;
    max-width: 100%;
    white-space: normal !important;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.35;
  }

  .player-deck .hp-playlist,
  .player-deck .hp-playlist.is-open {
    flex: 0 0 auto;
  }
  .player-deck .hp-playlist-inner {
    padding: 0.35rem 0.65rem 0.75rem;
  }
  /* Mobile: 6 Titel sichtbar, Rest per Scroll / Toggle */
  .player-deck .hp-playlist-list {
    --hp-track-h: 1.7rem;
    max-height: calc(6 * var(--hp-track-h) + 5 * 0.04rem) !important;
    overflow-x: hidden;
    overflow-y: auto;
    gap: 0.04rem;
    -webkit-overflow-scrolling: touch;
  }
  .player-deck .hp-playlist.is-collapsed .hp-playlist-list {
    max-height: 0 !important;
    overflow: hidden;
    margin: 0;
    padding: 0;
  }
  .player-deck .hp-playlist.is-collapsed .hp-playlist-head {
    border-bottom-color: transparent;
    margin-bottom: 0;
    padding-bottom: 0.1rem;
  }
  .player-deck .hp-track {
    min-height: 1.7rem !important;
    height: 1.7rem !important;
  }
  .player-deck .hp-track-title {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.05em;
  }

  .player-foot {
    padding: 0.55rem 0.75rem 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .player-disc.is-spinning,
  .player-bg-orb,
  .player-live-pill i,
  .player-arena-glow,
  .player-deck .hp-title,
  body.is-playing .player-disc-reflect,
  .track-drop-flash.is-on,
  .player-deck.is-playing .hp-track.is-active::after {
    animation: none;
  }
  .player-deck .hp-title {
    background: none;
    -webkit-text-fill-color: #4da3ff;
    color: #4da3ff;
    filter: none;
  }
}
