:root {
  color-scheme: dark;
  --bg: #07080a;
  --panel: rgba(18, 19, 23, 0.88);
  --panel-solid: #121317;
  --panel-2: #191b20;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f3ee;
  --muted: #a8a8aa;
  --dim: #85878c;
  --accent: #ff4d17;
  --accent-light: #ff815c;
  --accent-deep: #a92907;
  --focus: #ffb49d;
  --artwork: url('/assets/images/dont-test-my-name.jpg');
  --header-height: 88px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 300px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
}

button,
input,
a {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 12px 16px;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.ambient-art {
  position: fixed;
  z-index: -3;
  inset: -12vh -10vw;
  background-image: linear-gradient(180deg, rgba(7, 8, 10, 0.24), var(--bg) 76%), var(--artwork);
  background-position: center;
  background-size: cover;
  filter: blur(72px) saturate(1.25);
  opacity: 0.3;
  transform: scale(1.08);
  transition: background-image 0.5s ease, opacity 0.35s ease;
}

.ambient-art::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 77, 23, 0.2), transparent 32%),
    linear-gradient(90deg, rgba(7, 8, 10, 0.9) 0 23%, rgba(7, 8, 10, 0.48) 58%, rgba(7, 8, 10, 0.88));
}

.noise {
  position: fixed;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.018) 3px 4px),
    radial-gradient(circle at center, transparent 0, rgba(0, 0, 0, 0.25) 80%);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  align-items: center;
  min-height: var(--header-height);
  padding: 16px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 10, 0.8);
  backdrop-filter: blur(22px) saturate(1.3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
  text-decoration: none;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.brand-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 77, 23, 0.42);
  border-radius: 12px;
  background: rgba(255, 77, 23, 0.1);
  box-shadow: inset 0 0 22px rgba(255, 77, 23, 0.08);
}

.brand-wave i {
  display: block;
  width: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.brand-wave i:nth-child(1) { height: 8px; }
.brand-wave i:nth-child(2) { height: 17px; }
.brand-wave i:nth-child(3) { height: 25px; }
.brand-wave i:nth-child(4) { height: 14px; }
.brand-wave i:nth-child(5) { height: 7px; }

.collection-count {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.collection-count i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.experience-shell {
  display: grid;
  grid-template-columns: minmax(248px, 300px) minmax(0, 1fr);
  width: min(1600px, 100%);
  min-height: calc(100vh - var(--header-height));
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
}

.song-rail {
  align-self: start;
  height: calc(100vh - var(--header-height));
  padding: 48px 28px 48px 0;
  border-right: 1px solid var(--line);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.rail-heading {
  padding: 0 12px 18px;
}

.eyebrow {
  margin: 0;
  color: var(--accent-light);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.rail-heading h2 {
  margin: 8px 0 0;
  font-size: 1.25rem;
}

.song-nav {
  display: grid;
  gap: 8px;
}

.song-nav-button {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.song-nav-button:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
  transform: translateX(3px);
}

.song-nav-button[aria-current="true"] {
  border-color: rgba(255, 77, 23, 0.35);
  background: linear-gradient(90deg, rgba(255, 77, 23, 0.16), rgba(255, 77, 23, 0.025));
}

.song-nav-button img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.35);
}

.song-nav-number,
.song-nav-title,
.song-nav-meta {
  display: block;
}

.song-nav-number {
  margin-bottom: 3px;
  color: var(--accent-light);
  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.song-nav-title {
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-nav-meta {
  margin-top: 4px;
  color: var(--dim);
  font-size: 0.66rem;
}

.song-nav-arrow {
  color: var(--dim);
  font-size: 1.15rem;
}

.song-nav-button[aria-current="true"] .song-nav-arrow {
  color: var(--accent);
}

.song-stage {
  min-width: 0;
  padding: 42px 0 70px clamp(28px, 4vw, 72px);
}

.stage-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.track-arrows,
.transport-controls,
.secondary-controls {
  display: flex;
  align-items: center;
}

.track-arrows {
  gap: 8px;
}

.song-hero {
  display: grid;
  grid-template-columns: minmax(260px, 430px) minmax(300px, 1fr);
  align-items: center;
  gap: clamp(36px, 6vw, 96px);
}

.artwork-wrap {
  position: relative;
  isolation: isolate;
}

.artwork-glow {
  position: absolute;
  z-index: -1;
  inset: 12% -8% -10%;
  border-radius: 35%;
  background-image: var(--artwork);
  background-position: center;
  background-size: cover;
  filter: blur(40px) saturate(1.4);
  opacity: 0.38;
}

.cover-art {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: clamp(18px, 3vw, 30px);
  object-fit: cover;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.5), 0 8px 30px rgba(0, 0, 0, 0.35);
}

.artwork-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(7, 8, 10, 0.7);
  backdrop-filter: blur(14px);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.artist-name {
  margin: 0 0 8px;
  color: var(--accent-light);
  font-size: 0.77rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.song-copy h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.8rem, 5.3vw, 6.2rem);
  font-weight: 780;
  letter-spacing: -0.06em;
  line-height: 0.91;
  text-wrap: balance;
}

.song-intro {
  max-width: 58ch;
  margin: 22px 0 28px;
  color: var(--muted);
  font-size: clamp(0.94rem, 1.2vw, 1.08rem);
  line-height: 1.65;
}

.version-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 720px;
}

.version-button {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 70px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(17, 18, 22, 0.7);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.version-button:hover {
  border-color: var(--line-strong);
  background: rgba(28, 29, 34, 0.86);
  transform: translateY(-2px);
}

.version-button[aria-pressed="true"] {
  border-color: rgba(255, 77, 23, 0.62);
  background: linear-gradient(145deg, rgba(255, 77, 23, 0.22), rgba(22, 22, 26, 0.82));
}

.version-play {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--text);
  color: #090a0b;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.25);
}

.version-play svg {
  width: 14px;
  fill: currentColor;
}

.version-button[aria-pressed="true"] .version-play {
  background: var(--accent);
  color: white;
}

.version-name,
.version-meta {
  display: block;
}

.version-name {
  font-size: 0.8rem;
  font-weight: 850;
}

.version-meta {
  margin-top: 3px;
  color: var(--dim);
  font-size: 0.63rem;
  line-height: 1.3;
}

.player-card {
  position: relative;
  margin-top: clamp(38px, 6vw, 70px);
  padding: clamp(18px, 3vw, 30px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(26, 27, 32, 0.94), rgba(13, 14, 17, 0.94));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(28px);
}

.player-card::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 44%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--accent), transparent);
}

.player-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.now-label {
  display: block;
  margin-bottom: 5px;
  color: var(--dim);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#now-playing {
  display: block;
  overflow: hidden;
  font-size: clamp(0.9rem, 1.5vw, 1.08rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.73rem;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.download-button:hover {
  border-color: rgba(255, 77, 23, 0.55);
  background: rgba(255, 77, 23, 0.1);
  transform: translateY(-1px);
}

.download-button svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.visualizer {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 44px;
  margin: 20px 0 6px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  opacity: 0.65;
}

.visualizer span {
  flex: 1 1 auto;
  min-width: 2px;
  height: var(--bar-height, 20%);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-light), var(--accent-deep));
  transform-origin: center;
}

body.is-playing .visualizer span {
  animation: pulse-bar 0.72s ease-in-out infinite alternate;
  animation-delay: var(--bar-delay, 0s);
}

@keyframes pulse-bar {
  from { transform: scaleY(0.45); opacity: 0.45; }
  to { transform: scaleY(1); opacity: 1; }
}

.timeline-wrap {
  width: 100%;
}

.range {
  width: 100%;
  height: 22px;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
}

.range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0 var(--range-progress, 0%), rgba(255, 255, 255, 0.15) var(--range-progress, 0%) 100%);
}

.range::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.range::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
}

.range::-webkit-slider-thumb {
  width: 15px;
  height: 15px;
  margin-top: -5.5px;
  border: 3px solid var(--panel-solid);
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.34), 0 3px 10px rgba(0, 0, 0, 0.4);
  appearance: none;
}

.range::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 3px solid var(--panel-solid);
  border-radius: 50%;
  background: var(--text);
}

.time-row {
  display: flex;
  justify-content: space-between;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  font-size: 0.68rem;
  font-weight: 700;
}

.control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 14px;
}

.transport-controls {
  gap: 11px;
}

.secondary-controls {
  gap: 10px;
}

.icon-button,
.play-button {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.icon-button {
  width: 46px;
  height: 46px;
}

.icon-button.small,
.icon-button.compact {
  width: 38px;
  height: 38px;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.icon-button[aria-pressed="true"] {
  border-color: rgba(255, 77, 23, 0.65);
  background: rgba(255, 77, 23, 0.14);
  color: var(--accent-light);
}

.icon-button svg,
.play-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.icon-button text {
  fill: currentColor;
  stroke: none;
  font-size: 6.5px;
  font-weight: 850;
}

.play-button {
  width: 60px;
  height: 60px;
  border-color: transparent;
  background: var(--accent);
  box-shadow: 0 10px 35px rgba(255, 77, 23, 0.34);
}

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

.play-button .play-icon {
  margin-left: 2px;
  fill: currentColor;
  stroke: currentColor;
}

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

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

.muted-icon,
.icon-button.is-muted .volume-icon {
  display: none;
}

.icon-button.is-muted .muted-icon {
  display: block;
}

.volume {
  width: 92px;
}

.player-status {
  min-height: 1.2em;
  margin: 13px 0 0;
  color: var(--dim);
  font-size: 0.66rem;
}

#audio {
  display: none;
}

.bottom-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.bottom-nav button {
  min-width: 0;
  min-height: 70px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.bottom-nav button:last-child {
  text-align: right;
}

.bottom-nav button:hover {
  border-color: rgba(255, 77, 23, 0.4);
  background: rgba(255, 77, 23, 0.07);
}

.bottom-nav span,
.bottom-nav strong {
  display: block;
}

.bottom-nav span {
  margin-bottom: 5px;
  color: var(--dim);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bottom-nav strong {
  overflow: hidden;
  font-size: 0.79rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 4vw, 64px) 40px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.7rem;
}

footer p {
  margin: 0;
}

footer a {
  color: var(--muted);
}

.noscript {
  position: fixed;
  z-index: 50;
  right: 20px;
  bottom: 20px;
  left: 20px;
  max-width: 720px;
  margin: auto;
  padding: 16px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: #18191d;
}

@media (max-width: 1050px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .experience-shell {
    display: block;
    padding: 0;
  }

  .song-rail {
    position: sticky;
    z-index: 15;
    top: var(--header-height);
    height: auto;
    padding: 12px clamp(20px, 4vw, 42px);
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(9, 10, 12, 0.88);
    backdrop-filter: blur(18px);
  }

  .rail-heading {
    display: none;
  }

  .song-nav {
    display: flex;
    width: max-content;
    gap: 8px;
  }

  .song-nav-button {
    grid-template-columns: 38px minmax(120px, 1fr);
    width: 205px;
    flex: 0 0 205px;
    padding: 7px;
  }

  .song-nav-button img {
    width: 38px;
    height: 38px;
  }

  .song-nav-meta,
  .song-nav-arrow {
    display: none;
  }

  .song-stage {
    padding: 34px clamp(20px, 5vw, 54px) 64px;
  }

  .song-hero {
    grid-template-columns: minmax(220px, 330px) minmax(300px, 1fr);
    gap: clamp(30px, 5vw, 60px);
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 76px;
  }

  .site-header {
    min-height: var(--header-height);
    padding: 12px 18px;
  }

  .brand-wave {
    width: 34px;
    height: 34px;
  }

  .brand small,
  .collection-count span:first-child,
  .collection-count i {
    display: none;
  }

  .collection-count {
    font-size: 0.63rem;
  }

  .song-rail {
    padding: 10px 16px;
  }

  .song-nav-button {
    width: 180px;
    flex-basis: 180px;
  }

  .song-nav-title {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.15;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .song-stage {
    padding: 28px 18px 48px;
  }

  .stage-topline {
    margin-bottom: 20px;
  }

  .song-hero {
    display: block;
  }

  .artwork-wrap {
    width: min(82vw, 400px);
    margin: 0 auto 34px;
  }

  .song-copy h1 {
    max-width: 12ch;
    font-size: clamp(2.7rem, 14vw, 5rem);
  }

  .song-intro {
    margin: 18px 0 24px;
  }

  .version-list {
    grid-template-columns: 1fr;
  }

  .bottom-nav button {
    min-height: 78px;
  }

  .bottom-nav strong {
    line-height: 1.25;
    white-space: normal;
  }

  .version-button {
    min-height: 62px;
  }

  .player-card {
    margin-top: 34px;
    border-radius: 18px;
  }

  .player-heading {
    align-items: flex-start;
  }

  .download-button {
    width: 42px;
    min-height: 42px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  .control-row {
    align-items: flex-end;
  }

  .secondary-controls {
    display: grid;
    grid-template-columns: 38px 38px;
  }

  .volume {
    grid-column: 1 / -1;
    width: 86px;
  }

  footer {
    display: grid;
    gap: 8px;
  }
}

@media (max-width: 390px) {
  .brand strong {
    font-size: 0.86rem;
  }

  .collection-count {
    display: none;
  }

  .site-header {
    display: flex;
  }

  .song-nav-button {
    width: 160px;
    flex-basis: 160px;
  }

  .song-stage {
    padding-inline: 14px;
  }

  .control-row {
    gap: 12px;
  }

  .transport-controls {
    gap: 6px;
  }

  .icon-button {
    width: 42px;
    height: 42px;
  }

  .play-button {
    width: 54px;
    height: 54px;
  }

  .volume {
    width: 78px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  :root {
    --header-height: 62px;
  }

  .site-header {
    min-height: var(--header-height);
    padding-block: 8px;
  }

  .brand-wave {
    width: 32px;
    height: 32px;
  }

  .song-rail {
    padding-block: 7px;
  }

  .song-nav-button {
    min-height: 38px;
  }

  .song-stage {
    padding-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
