@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Manrope:wght@300;400;500;600;800&display=swap');

:root {
  color-scheme: dark;
  --ink: #f4f1ea;
  --muted: #827d75;
  --hot: #ff3d00;
  --acid: #d8ff00;
  --void: #050506;
  --line: rgba(244, 241, 234, .15);
  font-family: "Manrope", sans-serif;
  background: var(--void);
  color: var(--ink);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; overflow: hidden; }
body { min-height: 100vh; min-height: 100dvh; background: #050506; }
.filter-defs { position: fixed; width: 0; height: 0; overflow: hidden; pointer-events: none; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(115deg, transparent 0 56%, rgba(255, 61, 0, .055) 56% 56.2%, transparent 56.2%),
    radial-gradient(circle at 69% 47%, rgba(255, 47, 0, .18), transparent 27%),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: auto, auto, 52px 52px, 52px 52px;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: .065;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#visualizer { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; touch-action: none; }

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: .13;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(0,0,0,.5) 3px 4px);
  mix-blend-mode: multiply;
}

.hud-frame { position: fixed; inset: 14px; z-index: 4; pointer-events: none; border: 1px solid rgba(255,255,255,.08); }
.hud-frame i { position: absolute; width: 28px; height: 28px; }
.hud-frame i:nth-child(1) { left: -1px; top: -1px; border-left: 2px solid var(--hot); border-top: 2px solid var(--hot); }
.hud-frame i:nth-child(2) { right: -1px; top: -1px; border-right: 2px solid var(--ink); border-top: 2px solid var(--ink); }
.hud-frame i:nth-child(3) { right: -1px; bottom: -1px; border-right: 2px solid var(--hot); border-bottom: 2px solid var(--hot); }
.hud-frame i:nth-child(4) { left: -1px; bottom: -1px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }

.side-code {
  position: fixed;
  z-index: 4;
  right: 4px;
  top: 50%;
  transform: translate(50%, -50%) rotate(90deg);
  color: rgba(255,255,255,.32);
  font: 500 8px/1 "DM Mono", monospace;
  letter-spacing: .2em;
  pointer-events: none;
}

.shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100dvh;
  padding: clamp(30px, 4.2vw, 64px) clamp(34px, 6vw, 96px) 32px;
  display: grid;
  grid-template-columns: minmax(320px, 580px) 1fr;
  grid-template-rows: auto 1fr auto;
  pointer-events: none;
}
.shell button, .shell input, .shell a { pointer-events: auto; }

.topbar {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 500 9px/1 "DM Mono", monospace;
  letter-spacing: .24em;
  color: var(--muted);
}
.topbar::after { content: "SIGNAL_LOCKED"; position: absolute; left: 50%; color: var(--acid); font-size: 7px; }
.brand { display: flex; align-items: center; gap: 13px; color: var(--ink); text-decoration: none; font-weight: 800; }
.brand-mark { width: 20px; height: 20px; background: var(--hot); clip-path: polygon(50% 0, 100% 32%, 78% 100%, 22% 100%, 0 32%); box-shadow: 0 0 25px var(--hot); }

.hero { align-self: center; position: relative; }
.hero::before { content: "03"; position: absolute; left: -48px; top: 47px; color: rgba(255,255,255,.08); font: 800 150px/.7 "Manrope", sans-serif; letter-spacing: -.12em; z-index: -1; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 21px; font: 500 9px/1 "DM Mono", monospace; letter-spacing: .28em; color: var(--acid); }
.eyebrow span { width: 34px; height: 7px; background: repeating-linear-gradient(90deg, var(--acid) 0 3px, transparent 3px 6px); }

h1 {
  position: relative;
  margin: 0;
  width: max-content;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: clamp(52px, 6.6vw, 102px);
  font-weight: 800;
  line-height: .91;
  text-transform: uppercase;
  letter-spacing: -.075em;
  transform: skewY(-3deg);
  text-shadow: 4px 4px 0 #171719;
}
.title-solid, .title-outline { display: block; white-space: nowrap; }
.title-outline {
  color: #fff;
  -webkit-text-stroke: 0;
  letter-spacing: -.018em;
  text-shadow: none;
  filter: url(#line-union-outline) drop-shadow(2px 2px 0 rgba(0,0,0,.86)) drop-shadow(0 0 10px rgba(255,61,0,.3));
}
h1::after {
  content: "";
  position: absolute;
  left: 8%; right: -5%; top: 51%; height: 5px;
  background: var(--hot);
  transform: translateX(-4%) skewX(-25deg);
  mix-blend-mode: screen;
  animation: signalCut 5s steps(1) infinite;
}

@keyframes signalCut {
  0%, 88%, 92%, 100% { clip-path: inset(0 0 0 0); transform: translateX(-4%) skewX(-25deg); }
  89% { clip-path: inset(0 30% 0 18%); transform: translateX(8%) skewX(-25deg); }
  90% { clip-path: inset(0 8% 0 44%); transform: translateX(-12%) skewX(-25deg); }
}

.artist { margin: 29px 0 0; max-width: 450px; color: var(--muted); font: 400 9px/1.7 "DM Mono", monospace; letter-spacing: .16em; }
.track-data { display: flex; gap: 5px; margin-top: 15px; }
.track-data span { padding: 5px 8px; border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.58); font: 500 7px/1 "DM Mono", monospace; letter-spacing: .12em; clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }
.track-data span:last-child { color: #050506; border-color: var(--acid); background: var(--acid); }
.band-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 13px; max-width: 500px; }
.band-legend span { display: flex; align-items: center; gap: 5px; color: rgba(255,255,255,.52); font: 500 6px/1 "DM Mono", monospace; letter-spacing: .1em; }
.band-legend span::before { content: ""; width: 13px; height: 3px; background: var(--band); box-shadow: 0 0 8px color-mix(in srgb, var(--band) 65%, transparent); }

.player {
  position: relative;
  align-self: end;
  width: min(550px, 100%);
  padding: 30px 25px 22px;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(115deg, rgba(18,18,20,.91), rgba(7,7,8,.65));
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  backdrop-filter: blur(12px);
  box-shadow: 15px 15px 0 rgba(255,61,0,.07);
}
.player::before { content: attr(data-label); position: absolute; top: 0; left: 31px; padding: 5px 10px; background: var(--hot); color: #070707; font: 800 7px/1 "DM Mono", monospace; letter-spacing: .16em; }
.player::after { content: ""; position: absolute; right: 0; bottom: 0; width: 70px; height: 4px; background: var(--acid); }

.time-row { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 13px; font: 500 9px/1 "DM Mono", monospace; color: var(--muted); }
.time-row span:first-child { color: var(--hot); }
.time-row span:last-child { text-align: right; }
.range { appearance: none; width: 100%; height: 20px; margin: 0; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(to right, var(--hot) 0 var(--fill, 0%), rgba(255,255,255,.18) var(--fill, 0%) 100%); box-shadow: 0 -5px rgba(255,255,255,.025), 0 5px rgba(255,255,255,.025); }
.range::-webkit-slider-thumb { appearance: none; width: 5px; height: 17px; margin-top: -7px; border-radius: 0; background: var(--acid); box-shadow: 0 0 12px rgba(216,255,0,.45); }
.range::-moz-range-track { height: 3px; background: rgba(255,255,255,.18); }
.range::-moz-range-progress { height: 3px; background: var(--hot); }
.range::-moz-range-thumb { width: 5px; height: 17px; border: 0; border-radius: 0; background: var(--acid); }

.controls { display: flex; align-items: center; gap: 11px; margin-top: 13px; }
button { border: 0; color: var(--ink); cursor: pointer; }
.icon-button { width: 42px; height: 42px; padding: 9px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); opacity: .7; transition: opacity .15s, background .15s, transform .15s; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.icon-button:hover { opacity: 1; background: rgba(255,61,0,.17); transform: translateY(-2px); }
.icon-button svg { width: 100%; fill: none; stroke: currentColor; stroke-width: 1.3; }
.icon-button text { fill: currentColor; stroke: none; font: 500 6px "DM Mono", monospace; }
.play-button { width: 64px; height: 54px; display: grid; place-items: center; padding: 15px 20px; background: var(--hot); clip-path: polygon(11px 0, 100% 0, calc(100% - 11px) 100%, 0 100%); box-shadow: 0 0 35px rgba(255,61,0,.25); transition: transform .15s, background .15s; }
.play-button:hover { transform: scaleX(1.08); background: var(--acid); color: #050506; }
.play-button svg { width: 100%; fill: currentColor; }
.pause-icon, .is-playing .play-icon { display: none; }
.is-playing .pause-icon { display: block; }

.volume-wrap { margin-left: auto; margin-top: -46px; display: flex; align-items: center; gap: 10px; width: 145px; }
.volume-wrap svg { width: 18px; fill: none; stroke: var(--muted); stroke-width: 1.5; }
.volume { --fill: 72%; }

footer { grid-column: 1 / -1; display: flex; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font: 500 8px/1 "DM Mono", monospace; letter-spacing: .18em; }
footer div { display: flex; align-items: center; gap: 9px; }
.status-dot { width: 18px; height: 4px; background: var(--acid); box-shadow: 0 0 9px rgba(216,255,0,.65); animation: statusBlink 1.4s steps(2) infinite; }
@keyframes statusBlink { 50% { opacity: .25; } }

@media (max-width: 760px) {
  .shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    min-height: 100svh;
    height: 100dvh;
    padding: calc(28px + env(safe-area-inset-top)) 28px calc(88px + env(safe-area-inset-bottom));
  }
  .topbar p, .topbar::after, footer p, .side-code { display: none; }
  .hero { align-self: end; margin-bottom: clamp(18px, 8dvh, 60px); }
  .hero::before { left: -25px; font-size: 100px; }
  h1 { font-size: clamp(43px, 14vw, 68px); }
  h1 { width: 100%; }
  .artist { max-width: 300px; }
  .band-legend { max-width: 320px; gap: 5px 9px; }
  .player { grid-row: 3; z-index: 7; padding-inline: 17px; }
  .volume-wrap { width: 112px; }
  footer { grid-row: 4; margin-top: 16px; }
}

@media (max-width: 760px) and (max-height: 700px) {
  .shell { padding-top: calc(20px + env(safe-area-inset-top)); padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .hero { margin-bottom: 12px; }
  .artist, .track-data, .band-legend { display: none; }
  h1 { font-size: clamp(36px, 11.5vw, 50px); }
  .player { padding-top: 25px; padding-bottom: 15px; }
  footer { margin-top: 9px; padding-top: 10px; }
}

@media (max-height: 680px) and (min-width: 761px) {
  .hero { transform: translateY(25px); }
  h1 { font-size: clamp(48px, 5.4vw, 76px); }
  .artist { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
