:root {
  color-scheme: dark;
  --gold: #e6ba18;
  --gold-bright: #ffd73d;
  --ink: #080705;
  --panel: #000;
  --paper: #f2ead8;
  --muted: #9d9689;
  --line: #343029;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ink);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% -20%, rgba(230, 186, 24, 0.12), transparent 42rem),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    #080705;
  background-size: auto, 100% 5px, auto;
  color: var(--paper);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.experience {
  width: min(100% - 32px, 1040px);
  margin: 0 auto;
  padding: 44px 0 52px;
}

.masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 17px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.55rem, 6.5vw, 5.3rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.dek {
  width: min(100%, 340px);
  margin: 0 0 3px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: right;
}

.stage-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 14px;
  scrollbar-color: #4b4439 #13110e;
  scrollbar-width: thin;
}

.stage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 310px);
  grid-template-rows: repeat(2, 155px);
  width: 620px;
  height: 310px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #423c31;
  background: #000;
  box-sizing: content-box;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.55);
}

.stage::before {
  position: absolute;
  z-index: 5;
  inset: 0;
  background:
    linear-gradient(
      to right,
      transparent calc(50% - 0.5px),
      #211e19 calc(50% - 0.5px),
      #211e19 calc(50% + 0.5px),
      transparent calc(50% + 0.5px)
    ),
    linear-gradient(
      to bottom,
      transparent calc(50% - 0.5px),
      #211e19 calc(50% - 0.5px),
      #211e19 calc(50% + 0.5px),
      transparent calc(50% + 0.5px)
    );
  content: "";
  pointer-events: none;
}

.stage::after {
  position: absolute;
  z-index: 5;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.04);
  content: "";
  pointer-events: none;
}

.panel {
  position: relative;
  width: 310px;
  height: 155px;
  overflow: hidden;
  background: var(--panel);
}

.panel iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  opacity: 1;
  transition: opacity 140ms ease-out;
}

.panel.is-changing iframe {
  opacity: 0.12;
}

.transport {
  width: min(100%, 622px);
  margin: 2px auto 0;
  border: 1px solid var(--line);
  padding: 17px 19px 12px;
  background: rgba(15, 13, 10, 0.92);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}

.transport-topline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}

.play-button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--gold);
  color: #090806;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.play-button:hover {
  background: var(--gold-bright);
  transform: scale(1.035);
}

.play-button:focus-visible,
.restart-button:focus-visible,
.timeline:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.play-button svg {
  width: 21px;
  fill: currentColor;
}

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

.is-playing .pause-icon {
  display: block;
}

.track-details p,
.now-playing {
  margin: 0;
}

.now-playing {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.status-light {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5b564d;
  box-shadow: 0 0 0 transparent;
}

.is-playing .status-light {
  background: var(--gold-bright);
  box-shadow: 0 0 9px rgba(255, 215, 61, 0.85);
}

.track-details p {
  margin-top: 3px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.75rem;
}

.time {
  color: #c9c1b2;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.73rem;
  font-variant-numeric: tabular-nums;
}

.timeline {
  --progress: 0%;
  width: 100%;
  height: 18px;
  margin: 9px 0 1px;
  border-radius: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.timeline::-webkit-slider-runnable-track {
  height: 3px;
  background: linear-gradient(to right, var(--gold) var(--progress), #3d3932 var(--progress));
}

.timeline::-webkit-slider-thumb {
  width: 13px;
  height: 13px;
  margin-top: -5px;
  border: 2px solid #080705;
  border-radius: 50%;
  appearance: none;
  background: var(--gold-bright);
  box-shadow: 0 0 0 1px var(--gold);
}

.timeline::-moz-range-track {
  height: 3px;
  background: linear-gradient(to right, var(--gold) var(--progress), #3d3932 var(--progress));
}

.timeline::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 2px solid #080705;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 1px var(--gold);
}

.transport-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #777167;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.61rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.restart-button {
  border: 0;
  padding: 2px 0;
  background: transparent;
  color: #aaa295;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
  cursor: pointer;
}

.restart-button:hover {
  color: var(--gold);
}

.noscript {
  border: 1px solid #5c2822;
  padding: 12px;
  color: #e5a49b;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 620px) {
  .experience {
    width: min(100% - 20px, 1040px);
    padding-top: 24px;
  }

  .masthead {
    display: block;
    margin-bottom: 14px;
  }

  .dek {
    width: 100%;
    margin-top: 12px;
    text-align: left;
  }

  .stage {
    margin-left: 0;
    margin-right: 0;
  }

  .transport {
    padding-inline: 14px;
  }

  .track-details p {
    display: none;
  }

  .time {
    font-size: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel iframe,
  .play-button {
    transition: none;
  }
}
