:root {
  --navy: #1d3e5b;
  --taupe: #b6a798;
  --cream: #ece2d9;
  --silver: #c7c7c4;
  --paper: #f8f4ef;
}
* {
  box-sizing: border-box;
}
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--navy);
  font-family: "DM Sans", sans-serif;
  background:
    radial-gradient(
      circle at 10% 15%,
      rgba(182, 167, 152, 0.3),
      transparent 28rem
    ),
    radial-gradient(
      circle at 92% 80%,
      rgba(29, 62, 91, 0.13),
      transparent 32rem
    ),
    var(--cream);
}
button,
select,
input {
  font: inherit;
}
.ambient {
  position: fixed;
  z-index: -1;
  border: 1px solid rgba(29, 62, 91, 0.1);
  border-radius: 50%;
}
.a1 {
  width: 28rem;
  height: 28rem;
  top: -15rem;
  right: -8rem;
}
.a2 {
  width: 18rem;
  height: 18rem;
  bottom: -10rem;
  left: -5rem;
}
.page-shell {
  display: grid;
  min-height: 100vh;
  padding: clamp(1rem, 4vw, 3.5rem);
  place-items: center;
}
.player-card {
  width: min(100%, 1040px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 32px;
  background: rgba(248, 244, 239, 0.92);
  box-shadow: 0 35px 90px rgba(29, 62, 91, 0.2);
  backdrop-filter: blur(14px);
}
.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(29, 62, 91, 0.09);
}
.brand > img {
  width: 138px;
  height: 60px;
  object-fit: contain;
}
.live-badge,
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.live-badge span,
.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--taupe);
  box-shadow: 0 0 0 5px rgba(182, 167, 152, 0.18);
}
.player-content {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 530px;
}
.artwork {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 460px;
  place-items: center;
  background: var(--navy);
}
.artwork:before,
.artwork:after {
  content: "";
  position: absolute;
  border: 1px solid rgba(236, 226, 217, 0.12);
  border-radius: 50%;
}
.artwork:before {
  width: 390px;
  height: 390px;
}
.artwork:after {
  width: 530px;
  height: 530px;
}
.record {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(69vw, 310px);
  aspect-ratio: 1;
  border-radius: 50%;
  place-items: center;
  background: repeating-radial-gradient(
    circle,
    #17344e 0 7px,
    #1d3e5b 8px 12px
  );
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.record.playing {
  animation: spin 60s linear infinite;
}
.record-ring {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(236, 226, 217, 0.12);
  border-radius: 50%;
}
.record-label {
  display: grid;
  width: 42%;
  aspect-ratio: 1;
  padding: 16px;
  border-radius: 50%;
  background: var(--cream);
  place-items: center;
}
.record-label img {
  width: 100%;
}
.note {
  position: absolute;
  color: rgba(236, 226, 217, 0.6);
  font: normal 2.5rem serif;
}
.n1 {
  top: 18%;
  left: 13%;
  transform: rotate(-12deg);
}
.n2 {
  right: 12%;
  bottom: 18%;
  font-size: 3rem;
}
.player-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
}
.eyebrow {
  min-height: 1.4rem;
  margin-bottom: 1rem;
  color: var(--taupe);
}
h1 {
  margin: 0;
  color: var(--navy);
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.02;
  text-wrap: balance;
}
.subtitle {
  margin: 0.9rem 0 2rem;
  color: rgba(29, 62, 91, 0.62);
}
label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.select-wrap {
  position: relative;
}
.select-wrap:after {
  content: "⌄";
  position: absolute;
  top: 50%;
  right: 1rem;
  pointer-events: none;
  transform: translateY(-60%);
}
select {
  width: 100%;
  padding: 0.85rem 2.5rem 0.85rem 1rem;
  appearance: none;
  color: var(--navy);
  border: 1px solid rgba(29, 62, 91, 0.16);
  border-radius: 12px;
  outline: none;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}
select:focus {
  border-color: var(--taupe);
  box-shadow: 0 0 0 3px rgba(182, 167, 152, 0.2);
}
.timeline {
  margin-top: 1.8rem;
}
.time-row {
  display: flex;
  justify-content: space-between;
  margin-top: 0.45rem;
  color: rgba(29, 62, 91, 0.5);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}
input[type="range"] {
  width: 100%;
  height: 4px;
  margin: 0;
  appearance: none;
  border-radius: 10px;
  outline: none;
  background: linear-gradient(
    to right,
    var(--navy) var(--range-progress, 0%),
    var(--silver) var(--range-progress, 0%)
  );
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  appearance: none;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 2px 6px rgba(29, 62, 91, 0.25);
}
.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.8rem 0;
}
.control {
  display: grid;
  padding: 0;
  border: 0;
  border-radius: 50%;
  place-items: center;
  cursor: pointer;
  transition: 0.2s;
}
.control:hover {
  transform: translateY(-2px);
}
.control svg {
  width: 22px;
  fill: currentColor;
}
.control.secondary {
  width: 46px;
  height: 46px;
  color: var(--navy);
  background: rgba(199, 199, 196, 0.35);
}
.control.primary {
  width: 70px;
  height: 70px;
  color: var(--cream);
  background: var(--navy);
  box-shadow: 0 12px 28px rgba(29, 62, 91, 0.28);
}
.control.primary svg {
  width: 28px;
}
.pause-icon {
  display: none;
}
.is-playing .play-icon {
  display: none;
}
.is-playing .pause-icon {
  display: block;
}
.volume-widget {
  position: absolute;
  z-index: 3;
  right: 1.25rem;
  bottom: 1.25rem;
}
.volume-button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(236, 226, 217, 0.22);
  border-radius: 50%;
  color: var(--navy);
  background: var(--cream);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  place-items: center;
  transition: 0.2s;
}
.volume-button:hover,
.volume-button[aria-expanded="true"] {
  transform: translateY(-2px);
  background: #fff;
}
.volume-button svg {
  width: 21px;
  fill: currentColor;
}
.volume-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.7rem);
  width: 210px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}
.volume-popover[hidden] {
  display: none;
}
.volume-popover label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  color: var(--navy);
}
.volume-popover input {
  --range-progress: 80%;
}
.site-link {
  align-self: center;
  margin-top: 0.15rem;
  color: rgba(29, 62, 91, 0.6);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.site-link:hover {
  color: var(--navy);
  text-decoration: underline;
}
footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  color: rgba(29, 62, 91, 0.5);
  border-top: 1px solid rgba(29, 62, 91, 0.09);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
footer b {
  flex: 1;
  height: 1px;
  background: rgba(29, 62, 91, 0.12);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 760px) {
  .page-shell {
    padding: 0.75rem;
  }
  .player-card {
    border-radius: 24px;
  }
  .brand {
    padding: 0.8rem 1.2rem;
  }
  .brand > img {
    width: 105px;
    height: 48px;
  }
  .live-badge {
    font-size: 0.58rem;
  }
  .player-content {
    grid-template-columns: 1fr;
  }
  .artwork {
    min-height: 300px;
  }
  .record {
    width: 220px;
  }
  .record.playing {
    animation-duration: 10s;
  }
  .artwork:before {
    width: 280px;
    height: 280px;
  }
  .artwork:after {
    width: 380px;
    height: 380px;
  }
  .player-panel {
    padding: 2rem 1.5rem;
    text-align: center;
  }
  .eyebrow {
    justify-content: center;
  }
  .category-select {
    text-align: left;
  }
  footer {
    padding: 0.9rem 1.2rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
  }
}
