:root {
  --pink: #ff4fc3;
  --pink2: #ff9fe4;
  --blue: #4f96ff;
  --blue2: #93c4ff;
  --violet: #8a5cff;
  --bg: #04050d;
  --card: rgba(7, 9, 24, 0.76);
  --card2: rgba(10, 12, 32, 0.66);
  --stroke: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --muted: #c8c9e8;
  --soft: rgba(255, 255, 255, 0.08);
  --shadow: rgba(0, 0, 0, 0.72);
}

* { box-sizing: border-box; }

html, body { width: 100%; height: 100%; }

body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  background:
    linear-gradient(90deg, rgba(2,3,9,.82), rgba(2,3,9,.25) 44%, rgba(2,3,9,.82)),
    radial-gradient(circle at 16% 22%, rgba(255,79,195,.20), transparent 25%),
    radial-gradient(circle at 78% 67%, rgba(79,150,255,.18), transparent 26%),
    url("../assets/background.png") center / cover no-repeat fixed,
    #050611;
  overflow: hidden;
}

button, input { font: inherit; }

.app {
  width: 100%;
  height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(10px, 2.1vmin, 24px);
}

.player {
  position: relative;
  width: min(1120px, 96vw);
  height: min(690px, calc(100svh - clamp(20px, 4.2vmin, 48px)));
  min-height: 510px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.035)),
    rgba(4, 6, 17, .72);
  box-shadow:
    0 34px 90px var(--shadow),
    inset 0 1px 0 rgba(255,255,255,.18),
    0 0 52px rgba(79,150,255,.18),
    0 0 64px rgba(255,79,195,.12);
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(16px, 2.3vmin, 28px);
}

.player::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255,255,255,.12), transparent 32%),
    linear-gradient(90deg, transparent, rgba(255,79,195,.10), rgba(79,150,255,.10), transparent);
  opacity: .9;
}

.player__glow {
  position: absolute;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  filter: blur(35px);
  opacity: .24;
  pointer-events: none;
}

.player__glow--pink { left: -120px; bottom: -130px; background: var(--pink); }
.player__glow--blue { right: -120px; top: -120px; background: var(--blue); }

.player-header,
.player-grid {
  position: relative;
  z-index: 1;
}

.player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: clamp(12px, 2vmin, 22px);
}

.brand { min-width: 0; }

.brand__sub {
  display: block;
  color: var(--blue2);
  font-size: clamp(.72rem, 1.3vw, .86rem);
  text-transform: uppercase;
  letter-spacing: .28em;
  margin-bottom: 5px;
}

.brand h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5.4vw, 4.45rem);
  line-height: .9;
  font-weight: 500;
  font-style: italic;
  letter-spacing: .015em;
  background: linear-gradient(90deg, var(--pink), #ffd4f2 45%, var(--blue2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 32px rgba(255, 79, 195, .22);
}


.quick-links {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.quick-link,
.info-btn {
  position: relative;
  z-index: 2;
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .02em;
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 12px 24px rgba(0,0,0,.22);
}

.quick-link:hover,
.info-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }

.info-btn {
  width: 38px;
  padding: 0;
  cursor: pointer;
  font-style: italic;
  background: linear-gradient(145deg, rgba(255,79,195,.72), rgba(79,150,255,.62));
}

.live-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  background: rgba(255,79,195,.12);
  border: 1px solid rgba(255,255,255,.12);
  color: #ffd7f3;
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .12em;
  box-shadow: inset 0 0 18px rgba(255,79,195,.13), 0 0 24px rgba(255,79,195,.16);
}

.live-badge span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 15px var(--pink);
  animation: pulse 1.35s infinite;
}

@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.65); opacity: .45; }
}

.player-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 340px);
  gap: clamp(14px, 2.2vmin, 24px);
}

.now-card,
.playlist-card {
  min-height: 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: clamp(18px, 2.6vw, 28px);
  background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.035)), var(--card);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 20px 44px rgba(0,0,0,.35);
}

.now-card {
  display: grid;
  grid-template-columns: minmax(180px, 255px) minmax(0, 1fr);
  gap: clamp(16px, 2.4vmin, 26px);
  align-items: center;
  padding: clamp(16px, 2.5vmin, 28px);
}

.cover-wrap { display: grid; place-items: center; min-width: 0; }

.cover {
  width: min(240px, 100%);
  aspect-ratio: 1;
  border-radius: clamp(20px, 3vw, 32px);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,79,195,.46), rgba(79,150,255,.30)),
    url("https://images.unsplash.com/photo-1493225457124-a3eb161ffa5f?auto=format&fit=crop&w=700&q=80") center / cover;
  box-shadow:
    0 25px 55px rgba(0,0,0,.55),
    0 0 36px rgba(255,79,195,.20),
    0 0 42px rgba(79,150,255,.16),
    inset 0 0 0 1px rgba(255,255,255,.18);
  transform: perspective(900px) rotateY(-7deg) rotateX(4deg);
}

.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,.22), transparent 38%), radial-gradient(circle at 72% 20%, rgba(255,255,255,.20), transparent 19%);
  pointer-events: none;
}

.cover__fallback {
  position: absolute;
  inset: auto 18px 10px auto;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  color: rgba(255,255,255,.44);
  text-shadow: 0 0 20px rgba(255,79,195,.65);
}

.now-info { min-width: 0; display: flex; flex-direction: column; justify-content: center; }

.label {
  color: var(--blue2);
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .22em;
}

.now-info h2 {
  margin: 8px 0 5px;
  font-size: clamp(1.7rem, 3.4vw, 3.2rem);
  line-height: 1.05;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 30px rgba(79,150,255,.16);
}

.now-info p {
  margin: 0 0 clamp(12px, 2vmin, 20px);
  color: var(--muted);
  font-size: clamp(.98rem, 1.8vw, 1.2rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.visualizer {
  height: clamp(56px, 10.5vmin, 86px);
  display: flex;
  align-items: end;
  gap: clamp(4px, .8vmin, 8px);
  padding: clamp(10px, 1.6vmin, 14px);
  border-radius: 20px;
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 0 24px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.08);
  margin-bottom: clamp(12px, 2vmin, 20px);
}

.visualizer i {
  flex: 1;
  min-width: 3px;
  height: 18%;
  border-radius: 999px;
  background: linear-gradient(to top, var(--violet), var(--blue), var(--pink));
  box-shadow: 0 0 16px rgba(255,79,195,.34);
  opacity: .5;
}

.player.is-playing .visualizer i {
  opacity: 1;
  animation: bars 1s infinite ease-in-out;
}
.player.is-playing .visualizer i:nth-child(2n) { animation-duration: .72s; }
.player.is-playing .visualizer i:nth-child(3n) { animation-duration: 1.18s; }
.player.is-playing .visualizer i:nth-child(4n) { animation-duration: .92s; }
.player.is-playing .visualizer i:nth-child(5n) { animation-duration: 1.34s; }

@keyframes bars {
  0%,100% { height: 18%; }
  25% { height: 86%; }
  50% { height: 38%; }
  75% { height: 100%; }
}

.controls {
  display: grid;
  grid-template-columns: minmax(78px, 104px) minmax(78px, 104px) minmax(86px, 108px) minmax(118px, 140px);
  justify-content: start;
  gap: 9px;
  align-items: center;
}

.btn {
  min-width: 0;
  min-height: 50px;
  border: 0;
  border-radius: 17px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 900;
  box-shadow: 0 15px 30px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.32);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.btn:hover { transform: translateY(-2px); filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn--play { background: linear-gradient(145deg, rgba(255,79,195,.96), rgba(138,92,255,.96)); }
.btn--stop { background: linear-gradient(145deg, rgba(79,150,255,.94), rgba(34,43,116,.96)); }
.btn--mute { background: linear-gradient(145deg, rgba(138,92,255,.90), rgba(255,79,195,.74)); }

.volume {
  width: min(140px, 100%);
  min-width: 0;
  min-height: 50px;
  display: grid;
  grid-template-columns: 18px minmax(54px, 1fr) 34px;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border-radius: 17px;
  background: rgba(255,255,255,.075);
  box-shadow: inset 0 0 18px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.06);
}
.volume input { width: 100%; min-width: 0; accent-color: var(--pink); cursor: pointer; }
.volume__icon { font-size: .9rem; line-height: 1; }
.volume__value { color: var(--muted); font-size: .76rem; text-align: right; }

.status {
  margin-top: 12px;
  color: var(--muted);
  font-size: .88rem;
  min-height: 1.2em;
}

.playlist-card {
  padding: clamp(14px, 2vmin, 20px);
  display: grid;
  grid-template-rows: auto 1fr;
}

.playlist-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 12px;
}

.playlist-head h3 {
  margin: 5px 0 0;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}

.amazon-tag {
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.075);
  color: #ffd9f4;
  font-size: .72rem;
  font-weight: 800;
}

.playlist {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.playlist-empty {
  height: 100%;
  min-height: 160px;
  display: grid;
  place-items: center;
  text-align: center;
  color: rgba(255,255,255,.55);
  padding: 20px;
  border: 1px dashed rgba(255,255,255,.15);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  font-size: .9rem;
}

.track {
  min-height: 68px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border-radius: 17px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.track__cover {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,79,195,.45), rgba(79,150,255,.35)), url("https://images.unsplash.com/photo-1493225457124-a3eb161ffa5f?auto=format&fit=crop&w=200&q=70") center / cover;
  box-shadow: 0 8px 18px rgba(0,0,0,.33);
}

.track__meta { min-width: 0; }
.track__title,
.track__artist {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.track__title { font-size: .88rem; font-weight: 850; }
.track__artist { font-size: .76rem; color: var(--muted); margin-top: 2px; }
.track__buy {
  border: 0;
  border-radius: 999px;
  padding: 8px 10px;
  color: #fff;
  text-decoration: none;
  font-size: .72rem;
  font-weight: 900;
  background: linear-gradient(145deg, rgba(255,79,195,.82), rgba(79,150,255,.75));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}


.player-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 12px;
  color: rgba(255,255,255,.72);
  font-size: .76rem;
}

.player-footer a {
  color: #ffd7f3;
  text-decoration: none;
  font-weight: 900;
}

.player-footer a:hover { text-decoration: underline; }

.info-dialog {
  width: min(440px, calc(100vw - 36px));
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(145deg, rgba(20,22,48,.96), rgba(8,10,24,.96));
  box-shadow: 0 28px 70px rgba(0,0,0,.65);
  padding: 24px;
}

.info-dialog::backdrop { background: rgba(0,0,0,.62); backdrop-filter: blur(5px); }
.info-dialog h2 { margin: 0 0 10px; font-size: 1.35rem; }
.info-dialog p { margin: 0 0 18px; color: var(--muted); line-height: 1.5; }
.btn--dialog { width: 100%; background: linear-gradient(145deg, rgba(255,79,195,.96), rgba(79,150,255,.88)); }

.context-info {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(2, 3, 10, .66);
  backdrop-filter: blur(8px);
}

.context-info.is-visible { display: grid; }

.context-info__box {
  position: relative;
  width: min(410px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  padding: 26px;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.035)),
    radial-gradient(circle at 18% 15%, rgba(255,79,195,.34), transparent 32%),
    radial-gradient(circle at 82% 72%, rgba(79,150,255,.28), transparent 34%),
    rgba(7, 9, 24, .96);
  box-shadow:
    0 30px 80px rgba(0,0,0,.70),
    inset 0 1px 0 rgba(255,255,255,.20),
    0 0 44px rgba(255,79,195,.18),
    0 0 48px rgba(79,150,255,.14);
}

.context-info__box::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.16), transparent 38%);
}

.context-info__badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: #ffd7f3;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: rgba(255,79,195,.12);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 0 18px rgba(255,79,195,.13);
}

.context-info h2 {
  position: relative;
  margin: 15px 0 8px;
  font-size: clamp(1.45rem, 5vw, 2rem);
  line-height: 1.08;
  font-style: italic;
  background: linear-gradient(90deg, var(--pink), #ffd4f2 46%, var(--blue2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.context-info p {
  position: relative;
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.55;
}

.context-info__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  background: rgba(255,255,255,.08);
}

.context-info__close:hover { filter: brightness(1.15); transform: translateY(-1px); }

@media (max-width: 900px) {
  .player { width: min(720px, 96vw); }
  .player-grid { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .now-card { grid-template-columns: 170px minmax(0, 1fr); }
  .controls { grid-template-columns: minmax(74px, 1fr) minmax(74px, 1fr) minmax(78px, 1fr) minmax(112px, 132px); }
  .volume { width: min(132px, 100%); }
  .cover { width: 170px; }
  .playlist-card { padding: 13px; }
  .playlist-head { margin-bottom: 9px; }
  .playlist { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
  .playlist-empty { grid-column: 1 / -1; min-height: 70px; }
  .track { min-height: 108px; grid-template-columns: 1fr; grid-template-rows: 42px minmax(0, 1fr) auto; gap: 6px; padding: 7px; text-align: center; }
  .track__cover { width: 42px; height: 42px; justify-self: center; }
  .track__title { font-size: .72rem; }
  .track__artist { font-size: .66rem; }
  .track__buy { padding: 5px 8px; font-size: .65rem; justify-self: center; }
}

@media (max-width: 680px) {
  .app { padding: 8px; }
  .player { width: 100%; height: calc(100svh - 16px); min-height: 0; padding: 13px; border-radius: 22px; }
  .player-header { padding-bottom: 10px; flex-wrap: wrap; }
  .quick-links { order: 3; width: 100%; justify-content: center; }
  .brand__sub { font-size: .62rem; letter-spacing: .22em; }
  .brand h1 { font-size: clamp(2rem, 11vw, 3.2rem); }
  
.quick-links {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.quick-link,
.info-btn {
  position: relative;
  z-index: 2;
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .02em;
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 12px 24px rgba(0,0,0,.22);
}

.quick-link:hover,
.info-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }

.info-btn {
  width: 38px;
  padding: 0;
  cursor: pointer;
  font-style: italic;
  background: linear-gradient(145deg, rgba(255,79,195,.72), rgba(79,150,255,.62));
}

.live-badge { min-height: 32px; padding: 0 10px; font-size: .7rem; }
  .now-card { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; padding: 12px; gap: 10px; }
  .cover { width: min(38svh, 190px, 68vw); border-radius: 22px; transform: none; }
  .now-info { text-align: center; }
  .now-info h2 { font-size: clamp(1.25rem, 6.2vw, 1.85rem); white-space: nowrap; }
  .now-info p { font-size: .94rem; margin-bottom: 9px; }
  .visualizer { height: 48px; margin-bottom: 10px; padding: 8px; border-radius: 15px; }
  .controls { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; justify-content: stretch; }
  .btn { min-height: 44px; border-radius: 14px; }
  .btn b { display: none; }
  .volume {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(235px, 100%);
    min-height: 42px;
    grid-template-columns: 18px minmax(74px, 1fr) 34px;
    border-radius: 14px;
  }
  .player-footer { flex-direction: column; gap: 5px; text-align: center; padding-top: 8px; font-size: .68rem; }
  .status { margin-top: 8px; font-size: .78rem; }
  .playlist-card { padding: 10px; border-radius: 18px; }
  .playlist-head { align-items: center; margin-bottom: 7px; }
  .playlist-head h3 { font-size: .98rem; margin-top: 2px; }
  .amazon-tag { display: none; }
  .playlist { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
  .track { min-height: 75px; grid-template-rows: 30px minmax(0, 1fr); padding: 5px; }
  .track__cover { width: 30px; height: 30px; border-radius: 8px; }
  .track__artist { display: none; }
  .track__title { font-size: .61rem; line-height: 1.15; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .track__buy { display: none; }
}

@media (max-width: 420px) {
  .player { padding: 10px; }
  .player-grid { gap: 8px; }
  .cover { width: min(34svh, 160px, 64vw); }
  .controls { gap: 6px; }
  .volume { width: min(205px, 100%); padding: 0 8px; }
  .label { font-size: .62rem; }
  .visualizer i:nth-child(n+13) { display: none; }
  .playlist-head .label { display: none; }
  .playlist-head h3 { font-size: .88rem; }
  .track { min-height: 64px; }
}

@media (max-height: 620px) and (min-width: 681px) {
  .player { min-height: 0; }
  .brand h1 { font-size: 3rem; }
  .now-card { grid-template-columns: 175px minmax(0,1fr); padding: 16px; }
  .cover { width: 175px; }
  .visualizer { height: 54px; margin-bottom: 10px; }
  .track { min-height: 58px; }
  .track__cover { width: 40px; height: 40px; }
}

@media (max-height: 560px) {
  .brand__sub, .playlist-head .label, .status, .player-footer span { display: none; }
  .player-header { padding-bottom: 8px; }
  .visualizer { height: 40px; }
  .playlist-head { margin-bottom: 5px; }
}

/* Mobile-Fix: Songhistory darf die Bedienelemente nicht überdecken.
   Auf Smartphones wird der Player deshalb nicht mehr in eine feste Höhe gepresst,
   sondern kann sauber nach unten wachsen und bei Bedarf scrollen. */
@media (max-width: 680px) {
  html,
  body {
    min-height: 100%;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .app {
    min-height: 100svh;
    height: auto;
    align-items: start;
    place-items: start center;
  }

  .player {
    height: auto;
    min-height: calc(100svh - 16px);
    overflow: visible;
    display: flex;
    flex-direction: column;
  }

  .player-grid {
    display: flex;
    flex-direction: column;
    min-height: auto;
    gap: 10px;
  }

  .now-card {
    position: relative;
    z-index: 3;
    min-height: auto;
  }

  .controls {
    position: relative;
    z-index: 5;
  }

  .playlist-card {
    position: relative;
    z-index: 1;
    min-height: auto;
    max-height: none;
  }

  .playlist {
    display: flex;
    flex-direction: row;
    gap: 7px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 3px;
    -webkit-overflow-scrolling: touch;
  }

  .playlist-empty {
    min-width: 100%;
    min-height: 66px;
  }

  .track {
    flex: 0 0 108px;
    min-height: 72px;
  }
}

@media (max-width: 420px) {
  .playlist {
    gap: 6px;
  }

  .track {
    flex-basis: 96px;
  }

  .volume { width: min(190px, 100%); }
}
