:root {
  --bg: #070b12;
  --bg-2: #111a24;
  --panel: rgba(9, 13, 18, 0.72);
  --panel-strong: rgba(12, 18, 23, 0.9);
  --soft: rgba(255, 255, 255, 0.08);
  --soft-strong: rgba(255, 255, 255, 0.15);
  --text: #f4f7fb;
  --muted: rgba(244, 247, 251, 0.72);
  --accent: #f85d7d;
  --accent-2: #ffca62;
  --shadow: rgba(0, 0, 0, 0.38);
  --station-bg: url("https://linefm.de/assets/images/icons/main.png");
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, #060910 0%, #0c141d 100%);
  color: var(--text);
}

body {
  position: relative;
  display: grid;
  place-items: center;
  padding: 24px;
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--station-bg);
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(0.75) saturate(0.85);
  transform: scale(1.3);
  opacity: 0.8;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 11, 18, 0.25),
    rgba(7, 11, 18, 0.65)
  );
  z-index: 0;
}

.player-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  overflow: hidden;
  padding: 20px 18px 18px;
}

.art-wrap {
  position: relative;
  display: grid;
  place-items: center;
  margin: 8px auto 26px;
  width: min(100%, 300px);
  aspect-ratio: 1;
}

.cover-ring {
  position: absolute;
  inset: 12px;
  border-radius: 30px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 18px 36px rgba(0,0,0,0.28);
}

.cover-art {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 25px 50px rgba(0,0,0,0.45);
}

.meta {
  text-align: center;
  margin-bottom: 24px;
}

.meta h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 2.8rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.artist {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 12px;
  margin-bottom: 30px;
}

.control-btn,
.action-btn,
.close-sheet,
.station-item {
  border: none;
  font: inherit;
  cursor: pointer;
}

.control-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all 0.18s ease;
}

.control-btn:hover,
.action-btn:hover,
.close-sheet:hover {
    opacity: 0.9;
}

.control-btn.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1.2rem;
}

.control-btn.primary {
  width: 82px;
  height: 82px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1.7rem;
}

.bottom-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 12px;
}

.action-btn {
  width: 100%;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.15rem;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 10, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9;
}

.sheet-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.station-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0f1221;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 18px 16px 28px;
  z-index: 10;
  transform: translateY(110%);
  transition: transform 0.28s ease;
  box-shadow: 0 -12px 30px rgba(0,0,0,0.4);
}

.station-sheet.open {
  transform: translateY(0);
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-weight: 700;
}

.close-sheet {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

.station-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  max-height: 48vh;
  overflow-y: auto;
}

.station-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text);
  text-align: left;
}

.station-item.active {
  background: rgba(248, 93, 125, 0.12);
  border-color: rgba(248, 93, 125, 0.4);
}

.station-cover {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: rgba(255,255,255,0.04);
}

.station-name {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

.station-badge {
  display: none;
}

.volume-panel {
  position: fixed;
  right: 18px;
  bottom: 92px;
  width: min(230px, calc(100vw - 36px));
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: #0f1221;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 40px rgba(0,0,0,0.3);
  z-index: 11;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

.volume-panel.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.volume-panel label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.volume-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

#volumeSlider {
  width: 100%;
  accent-color: #f85d7d;
}

#volumeValue {
  min-width: 38px;
  text-align: right;
  font-size: 0.8rem;
  color: var(--text);
}

@media (max-width: 500px) {
  .volume-panel {
    display: none;
  }

  .bottom-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bottom-actions .action-btn:nth-child(2) {
    display: none;
  }
}
