:root {
  --bg: #a2c5b4;
  --ink: #111916;
  --red: #e91535;
  --white: #fffaf5;
  --glass: rgba(255,255,255,.68);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  overscroll-behavior: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
}

.stage {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 56%, rgba(255,255,255,.18), transparent min(56vw, 520px)),
    var(--bg);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.posterFrame {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--bg);
}

.poster {
  display: block;
  max-width: 100vw;
  max-height: 100svh;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: saturate(1.03) contrast(1.01);
  user-select: none;
  -webkit-user-drag: none;
}

.listenCard {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: clamp(14px, 2.4vh, 24px);
  transform: translateY(clamp(130px, 18vh, 205px));
  padding: 18px;
}

.playButton {
  position: relative;
  width: clamp(154px, 19vw, 220px);
  height: clamp(154px, 19vw, 220px);
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.88));
  box-shadow: 0 26px 70px rgba(0,0,0,.22), inset 0 0 0 1px rgba(255,255,255,.72);
  display: grid;
  place-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.playButton::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  border: 2px solid rgba(255,255,255,.48);
}

.playButton:active { transform: scale(.975); }

.icon {
  width: 0;
  height: 0;
  border-top: clamp(26px, 3.3vw, 38px) solid transparent;
  border-bottom: clamp(26px, 3.3vw, 38px) solid transparent;
  border-left: clamp(42px, 5vw, 60px) solid var(--red);
  margin-left: clamp(9px, 1.2vw, 14px);
  filter: drop-shadow(0 5px 8px rgba(233,21,53,.18));
}

.playing .icon {
  width: clamp(44px, 4.7vw, 62px);
  height: clamp(56px, 6vw, 78px);
  border: 0;
  margin-left: 0;
  background: linear-gradient(90deg, var(--red) 0 34%, transparent 34% 66%, var(--red) 66% 100%);
}

.ring {
  position: absolute;
  inset: -17px;
  border-radius: inherit;
  border: 2px solid rgba(233,21,53,.32);
  opacity: 0;
}

.playing .ring { animation: breathe 1.55s infinite; }

.status {
  display: inline-flex;
  align-items: center;
  gap: .72em;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--glass);
  color: var(--ink);
  box-shadow: 0 16px 42px rgba(0,0,0,.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-weight: 950;
  font-size: clamp(18px, 2.1vw, 27px);
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.liveDot {
  width: .7em;
  height: .7em;
  border-radius: 999px;
  background: var(--red);
  display: none;
  box-shadow: 0 0 0 0 rgba(233,21,53,.5);
}

.status.isLive .liveDot {
  display: inline-block;
  animation: pulse 1.3s infinite;
}

@keyframes breathe {
  0% { transform: scale(.94); opacity: .52; }
  100% { transform: scale(1.2); opacity: 0; }
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 12px rgba(233,21,53,0); }
  100% { box-shadow: 0 0 0 0 rgba(233,21,53,0); }
}

@media (orientation: portrait) {
  .playButton {
    width: clamp(165px, 43vw, 230px);
    height: clamp(165px, 43vw, 230px);
  }
  .status { font-size: clamp(19px, 5vw, 28px); }
}

@media (max-height: 670px) {
  .listenCard { transform: translateY(14vh); }
  .playButton { width: 145px; height: 145px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
