:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --accent: #f72331;
  --text: #111111;
  --muted: #666666;
  --shadow: rgba(17, 17, 17, 0.08);
  --control-size: 4rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", sans-serif;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 3rem);
  background: var(--surface);
  border-radius: 1.5rem;
  box-shadow: 0 24px 60px var(--shadow);
}

h1 {
  margin: 0;
  max-width: min(18ch, 65vw);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
  font-weight: 800;
  color: var(--text);
  text-align: center;
}

.controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2rem;
}

.play-btn {
  flex: 0 0 auto;
  width: var(--control-size);
  height: var(--control-size);
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(247, 35, 49, 0.2);
  transition:
    transform 0.12s ease,
    filter 0.15s ease,
    box-shadow 0.15s ease;
}

.play-btn:hover {
  filter: brightness(1.04);
  box-shadow: 0 16px 28px rgba(247, 35, 49, 0.28);
}

.play-btn:active {
  transform: scale(0.96);
}

.play-btn svg {
  width: 1.8rem;
  height: 1.8rem;
  fill: currentColor;
}

.play-btn .icon-pause,
.play-btn.playing .icon-play {
  display: none;
}

.play-btn.playing .icon-pause {
  display: block;
}

.volume-control {
  display: block;
  width: min(8rem, 70vw);
}

.volume-control input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .card {
    width: min(90vw, 26rem);
    text-align: center;
    padding: 2rem 1.5rem;
  }

  h1 {
    max-width: 12ch;
  }
}
