/* WidAmp — late-90s desktop player, on the web */
:root {
  --desk: #07080d;
  --chrome-hi: #4b5170;
  --chrome: #2a2e44;
  --chrome-lo: #15172280;
  --chrome-dark: #12141f;
  --edge-light: #6a7096;
  --edge-dark: #05060a;
  --lcd-bg: #020402;
  --lcd: #2bff3f;
  --lcd-mid: #1fbf30;
  --lcd-dim: #0b3d12;
  --amber: #ffcc33;
  --hot: #ff4a3d;
  --sel: #1f3bd6;
  --text: #e9ecf6;
  --muted: #a1a8c4;
  --pixel: "Silkscreen", "Courier New", monospace;
  --lcdf: "VT323", "Courier New", monospace;
  --ui: Tahoma, Verdana, "DejaVu Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.6;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(43,255,63,.10), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(31,59,214,.18), transparent 60%),
    var(--desk);
  overflow-x: hidden;
}
/* CRT scanlines over everything, very faint */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
img { max-width: 100%; display: block; }
a { color: var(--lcd); }
a:hover { color: #9dffa6; }
:focus-visible { outline: 2px dashed var(--amber); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 16px; }

/* ---------- Window chrome ---------- */
.win {
  position: relative;
  background: linear-gradient(180deg, var(--chrome-hi), var(--chrome) 14px, var(--chrome) 70%, #20233a);
  border: 1px solid var(--edge-dark);
  box-shadow:
    inset 1px 1px 0 var(--edge-light),
    inset -1px -1px 0 #0b0c14,
    0 24px 60px rgba(0,0,0,.6),
    0 0 0 1px rgba(255,255,255,.03);
  border-radius: 6px;
  padding: 0 8px 8px;
}
.titlebar {
  display: flex; align-items: center; gap: 10px;
  height: 26px; margin: 0 -8px 8px; padding: 0 8px;
  font-family: var(--pixel); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: #d9ddff;
  background: linear-gradient(180deg, #343a5c, #23263b);
  border-bottom: 1px solid var(--edge-dark);
  border-radius: 6px 6px 0 0;
  user-select: none;
}
.titlebar::before, .titlebar::after {
  content: ""; flex: 1; height: 8px;
  background: repeating-linear-gradient(180deg, #8b92c4 0 1px, transparent 1px 3px);
  opacity: .55;
}
.titlebar .tb-title { white-space: nowrap; }
.titlebar .tb-btns { display: flex; gap: 3px; order: 3; }
.titlebar .tb-btns i {
  width: 11px; height: 11px; display: block;
  background: linear-gradient(180deg, #8d93b8, #4b5070);
  border: 1px solid #0b0c14; font-style: normal;
}
.bevel-in {
  border: 1px solid var(--edge-dark);
  box-shadow: inset 1px 1px 0 #000, 1px 1px 0 var(--edge-light);
}

/* ---------- Menu bar ---------- */
.menubar {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(180deg, #1b1e2e, #11131d);
  border-bottom: 1px solid #000;
  box-shadow: 0 1px 0 #2b2f47;
}
.menubar .wrap { display: flex; align-items: center; gap: 4px; height: 44px; }
.logo {
  display: flex; align-items: center; gap: 10px; margin-right: auto;
  color: var(--text); text-decoration: none;
  font-family: var(--pixel); font-size: 14px; letter-spacing: .2em;
}
.logo img { width: 26px; height: 26px; border-radius: 50%; }
.menubar nav a {
  font-family: var(--ui); font-size: 14px; color: var(--muted);
  text-decoration: none; padding: 4px 10px; border: 1px solid transparent;
}
.menubar nav a:hover { color: #fff; background: var(--sel); border-color: #000; }
.menubar nav a u { text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1fr minmax(0, 470px); gap: 56px;
  align-items: center; padding-block: 64px 56px;
}
.prompt {
  font-family: var(--lcdf); font-size: 22px; color: var(--lcd);
  text-shadow: 0 0 8px rgba(43,255,63,.5); margin: 0 0 14px;
}
.prompt .cursor { display: inline-block; width: .55em; background: var(--lcd); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
h1 {
  font-family: var(--pixel); font-weight: 700;
  font-size: clamp(22px, 7.6cqi, 54px); line-height: 1.1; letter-spacing: -.01em;
  margin: 0 0 22px;
  text-shadow: 3px 3px 0 #1f3bd6, 6px 6px 0 rgba(0,0,0,.5);
}
.hero-copy { container-type: inline-size; min-width: 0; }
h1 span { white-space: nowrap; }
h1 em { font-style: normal; color: var(--lcd); text-shadow: 3px 3px 0 #0b3d12, 0 0 24px rgba(43,255,63,.35); }
.lead { font-size: 18px; color: #cdd2e6; max-width: 33em; margin: 0 0 28px; }
.lead b { color: #fff; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* 98-style push buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--pixel); font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: #0b0d14; text-decoration: none; cursor: pointer;
  padding: 12px 18px;
  background: linear-gradient(180deg, #e9ebf5, #b9bdd2);
  border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #fff, inset -2px -2px 0 #7d829e;
}
.btn:hover { color: #000; background: linear-gradient(180deg, #fff, #cfd3e6); }
.btn:active { box-shadow: inset 2px 2px 0 #7d829e, inset -1px -1px 0 #fff; transform: translateY(1px); }
.btn.go { background: linear-gradient(180deg, #5cff6c, #1fbf30); }
.btn.go:hover { background: linear-gradient(180deg, #8dff98, #2bd93d); }
.small-print { margin-top: 16px; color: var(--muted); font-size: 14px; }

/* ---------- The player ---------- */
.player { width: 100%; max-width: 470px; justify-self: end; transform: rotate(-1.2deg); }
.player:hover { transform: none; transition: transform .3s; }
.lcd {
  display: grid; grid-template-columns: 132px 1fr; gap: 10px;
  background: var(--lcd-bg); padding: 10px; border-radius: 3px;
  background-image: radial-gradient(rgba(43,255,63,.06) 1px, transparent 1px);
  background-size: 3px 3px;
}
.lcd-left { display: flex; flex-direction: column; gap: 6px; }
.clock { display: flex; align-items: center; gap: 6px; font-family: var(--lcdf); color: var(--lcd); line-height: 1; }
.clock .state { font-size: 20px; width: 14px; }
.clock .time { font-size: 50px; letter-spacing: 2px; text-shadow: 0 0 10px rgba(43,255,63,.55); font-variant-numeric: tabular-nums; }
.clock.paused .time { animation: blink 1s steps(1) infinite; }
#viz { width: 112px; height: 34px; image-rendering: pixelated; }
.lcd-right { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.marquee {
  overflow: hidden; white-space: nowrap; position: relative;
  font-family: var(--lcdf); font-size: 22px; color: var(--lcd); height: 26px;
  text-shadow: 0 0 6px rgba(43,255,63,.5);
}
.marquee span { display: inline-block; padding-left: 100%; animation: scroll 14s linear infinite; }
@keyframes scroll { to { transform: translateX(-100%); } }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-family: var(--lcdf); font-size: 17px; color: var(--lcd-mid); }
.meta b { color: var(--lcd); font-weight: 400; background: #0e2a12; padding: 0 4px; }
.meta .lamp { color: var(--lcd-dim); }
.meta .lamp.on { color: var(--lcd); text-shadow: 0 0 6px rgba(43,255,63,.6); }
.lyric {
  grid-column: 1 / -1; border-top: 1px solid #0f2b13; padding-top: 6px;
  font-family: var(--lcdf); font-size: 20px; color: var(--lcd-mid); text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 26px;
}
.seek {
  position: relative; height: 12px; margin: 10px 2px 8px; cursor: pointer;
  background: linear-gradient(180deg, #0a0b12, #1d2033); border-radius: 6px;
}
.seek .fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 6px; background: linear-gradient(180deg, #6d79c9, #2f3a8a); }
.seek .knob {
  position: absolute; top: -2px; width: 28px; height: 16px; left: 0; margin-left: -14px;
  background: linear-gradient(180deg, #e7e9f3, #9da2bd); border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #fff;
}
.controls { display: flex; align-items: center; gap: 4px; }
.controls button {
  width: 42px; height: 34px; padding: 0; cursor: pointer; color: #1a1c2a;
  background: linear-gradient(180deg, #e6e8f2, #a9adc5);
  border: 1px solid #000; box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #6d7290;
  display: grid; place-items: center;
}
.controls button:hover { background: linear-gradient(180deg, #fff, #c3c7dc); }
.controls button:active, .controls button[aria-pressed="true"] { box-shadow: inset 1px 1px 0 #6d7290, inset -1px -1px 0 #fff; }
.controls svg { width: 16px; height: 16px; fill: currentColor; }
.controls .spacer { flex: 1; }
.controls .toggle { width: 46px; position: relative; }
.controls .toggle::after {
  content: ""; position: absolute; top: 3px; right: 3px; width: 5px; height: 5px; border-radius: 50%;
  background: #3a3e55;
}
.controls .toggle[aria-pressed="true"]::after { background: var(--lcd); box-shadow: 0 0 6px var(--lcd); }

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden; white-space: nowrap; border-block: 1px solid #000;
  background: linear-gradient(180deg, #11131d, #0a0b11);
  box-shadow: inset 0 1px 0 #262a40;
  font-family: var(--lcdf); font-size: 24px; color: var(--amber); padding: 6px 0;
  text-shadow: 0 0 8px rgba(255,204,51,.35);
}
.ticker div { display: inline-block; animation: tick 45s linear infinite; }
@keyframes tick { to { transform: translateX(-50%); } }
.ticker div span { padding-right: 2.2em; }

/* ---------- Sections ---------- */
section { padding-block: 80px; }
.sec-head { margin-bottom: 30px; max-width: 46em; }
.kicker { font-family: var(--lcdf); color: var(--amber); font-size: 22px; margin: 0 0 4px; }
h2 { font-family: var(--pixel); font-weight: 700; font-size: clamp(24px, 3.4vw, 38px); line-height: 1.15; margin: 0 0 10px; }
.sec-head p { color: var(--muted); margin: 0; font-size: 17px; }

/* Playlist */
.pl-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start; }
.playlist .list {
  background: #000; margin: 0; padding: 4px 0; list-style: none; counter-reset: t;
  font-family: var(--lcdf); font-size: 22px; line-height: 1.25;
}
.playlist li { counter-increment: t; }
.playlist li button {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: flex; gap: 8px; padding: 2px 10px; color: var(--lcd);
}
.playlist li button::before { content: counter(t) "."; min-width: 1.6em; color: var(--lcd-mid); }
.playlist li button .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.playlist li button .dur { color: var(--lcd-mid); }
.playlist li button:hover { background: #0a1a0c; }
.playlist li button:focus-visible { outline: 1px dotted #fff; outline-offset: -2px; }
.playlist li.sel button { background: var(--sel); color: #fff; }
.playlist li.sel button::before, .playlist li.sel button .dur { color: #cfd6ff; }
.playlist li.now button { color: #fff; }
.pl-foot {
  display: flex; justify-content: space-between; align-items: center; margin-top: 8px;
  font-family: var(--lcdf); font-size: 18px; color: var(--lcd-mid);
}
.pl-foot .fake-btns { display: flex; gap: 4px; }
.pl-foot .fake-btns span {
  font-family: var(--pixel); font-size: 9px; color: #1a1c2a; padding: 3px 7px;
  background: linear-gradient(180deg, #e6e8f2, #a9adc5); border: 1px solid #000;
}
.info-card {
  background: #000; padding: 18px 20px; min-height: 100%;
}
.info-card .lbl { font-family: var(--lcdf); font-size: 18px; color: var(--lcd-mid); margin: 0; }
.info-card h3 { font-family: var(--pixel); font-size: 20px; margin: 2px 0 12px; color: #fff; }
.info-card p { margin: 0 0 14px; color: #cdd2e6; }
.info-card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.info-card .tags span { font-family: var(--lcdf); font-size: 18px; color: #04140a; background: var(--lcd); padding: 0 7px; }

/* Library (screenshots) */
.library .shelf {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
  background: #000; padding: 10px;
}
.library figure { margin: 0; }
.library figure img {
  aspect-ratio: 9/16; object-fit: cover; width: 100%;
  border: 1px solid #222638; transition: transform .2s, border-color .2s;
}
.library figure:hover img { transform: translateY(-4px); border-color: var(--lcd); }
.library figcaption { font-family: var(--lcdf); color: var(--lcd-mid); font-size: 17px; line-height: 1.15; margin-top: 6px; }

/* Skins compare */
.skins { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px; }
.skin-card .body { background: #000; padding: 20px; }
.skin-card h3 { font-family: var(--pixel); font-size: 18px; margin: 0 0 6px; }
.skin-card p { margin: 0; color: #cdd2e6; }
.skin-card .swatches { display: flex; gap: 6px; margin-top: 14px; }
.skin-card .swatches i { width: 22px; height: 22px; border: 1px solid #000; box-shadow: inset 1px 1px 0 rgba(255,255,255,.3); }

/* Equalizer = privacy */
.eq-layout { display: grid; grid-template-columns: minmax(0, 520px) 1fr; gap: 40px; align-items: center; }
.eq .board { background: #000; padding: 14px 14px 10px; display: flex; gap: 6px; align-items: stretch; }
.eq .band { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.eq .slot {
  position: relative; width: 10px; height: 140px; border-radius: 5px;
  background: linear-gradient(180deg, var(--hot), var(--amber) 40%, var(--lcd) 75%, #0b3d12);
  opacity: .9;
}
.eq .slot::after {
  content: ""; position: absolute; inset: 0; border-radius: 5px;
  background: linear-gradient(180deg, #000 0 calc(100% - var(--v, 0%)), transparent 0);
  opacity: .82;
}
.eq .thumb {
  position: absolute; left: 50%; width: 26px; height: 12px; margin-left: -13px;
  bottom: calc(var(--v, 0%) - 6px);
  background: linear-gradient(180deg, #e7e9f3, #9da2bd); border: 1px solid #000; box-shadow: inset 1px 1px 0 #fff;
  transition: bottom .9s cubic-bezier(.2,.9,.2,1);
}
.eq .band b { font-family: var(--lcdf); font-weight: 400; font-size: 16px; color: var(--lcd-mid); text-align: center; line-height: 1; min-height: 2em; }
.eq .band.on b { color: var(--lcd); }
.eq .divider { width: 1px; background: #1b1e2c; margin: 0 4px; }
.eq-note { font-family: var(--lcdf); color: var(--lcd-mid); font-size: 18px; margin-top: 8px; display: flex; justify-content: space-between; }
.priv-list { list-style: none; padding: 0; margin: 0 0 20px; }
.priv-list li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px dashed #2a2e44; color: #cdd2e6; }
.priv-list li::before {
  content: "0"; position: absolute; left: 0; top: 10px;
  font-family: var(--lcdf); font-size: 22px; line-height: 1.1; color: var(--lcd);
  width: 24px; text-align: center; background: #0e2a12;
}
.priv-list li.yes::before { content: "1"; color: var(--amber); background: #2e2508; }
.priv-list b { color: #fff; }

/* Setup wizard */
.wizard { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.dialog .body { background: #d6d9e6; color: #12141f; padding: 18px; display: flex; gap: 14px; min-height: 170px; }
.dialog .ico {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  font-family: var(--pixel); font-size: 18px; color: #fff; background: var(--sel);
  border: 1px solid #000; box-shadow: inset 1px 1px 0 #6f86ff;
}
.dialog h3 { margin: 0 0 6px; font-size: 17px; }
.dialog p { margin: 0; font-size: 15px; color: #2b2e40; }
.dialog .foot { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; font-family: var(--lcdf); color: var(--muted); font-size: 18px; }
.dialog .foot .btn { padding: 6px 12px; font-size: 11px; }

/* Outro */
.outro { text-align: center; padding-block: 96px; }
.outro h2 { font-size: clamp(28px, 5vw, 52px); }
.outro p { color: var(--muted); font-size: 18px; margin: 0 auto 28px; max-width: 34em; }
.outro .cta { justify-content: center; }

/* Status bar footer */
.statusbar {
  border-top: 1px solid #000; box-shadow: inset 0 1px 0 #262a40;
  background: linear-gradient(180deg, #161927, #0d0f17);
  font-size: 13px; color: var(--muted);
}
.statusbar .wrap { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 14px; }
.statusbar .cell { padding: 2px 10px; border: 1px solid #000; box-shadow: inset 1px 1px 0 #000, 1px 1px 0 #2b2f47; }
.statusbar .cell.grow { flex: 1; min-width: 200px; }
.statusbar a { color: var(--muted); }
.statusbar a:hover { color: #fff; }

/* ---------- Privacy doc ---------- */
.doc-wrap { padding-block: 48px 80px; }
.doc { max-width: 820px; margin: 0 auto; }
.doc .paper { background: #0b0c12; padding: clamp(20px, 4vw, 44px); }
.doc h1 { font-size: clamp(28px, 4.4vw, 44px); margin-bottom: 8px; text-shadow: 3px 3px 0 #1f3bd6; }
.doc .meta-line { font-family: var(--lcdf); color: var(--lcd-mid); font-size: 19px; line-height: 1.25; margin: 0 0 28px; }
.doc h2 { font-size: 18px; margin: 40px 0 10px; color: var(--lcd); }
.doc p, .doc li { color: #cdd2e6; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--lcd); }
.doc .summary { border: 1px solid #1c5a24; background: #06140a; padding: 16px 20px; }
.doc .summary p { margin: 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #23263a; vertical-align: top; }
.doc th { font-family: var(--lcdf); font-weight: 400; font-size: 19px; color: var(--amber); }
.doc code { font-family: var(--lcdf); font-size: 1.15em; color: var(--lcd); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-block: 36px 48px; }
  .player { justify-self: center; transform: none; }
  .pl-layout, .eq-layout, .skins { grid-template-columns: 1fr; }
  .wizard { grid-template-columns: 1fr; }
  .dialog .body { min-height: 0; }
  .library .shelf { grid-template-columns: repeat(3, 1fr); }
  section { padding-block: 60px; }
}
@media (max-width: 560px) {
  .menubar nav a { padding: 4px 6px; font-size: 13px; }
  .menubar nav a.hide-sm { display: none; }
  .logo span { display: none; }
  .lcd { grid-template-columns: 1fr; }
  .lcd-left { flex-direction: row; align-items: center; justify-content: space-between; }
  .controls button { width: 36px; }
  .controls .toggle { width: 38px; }
  .library .shelf { grid-template-columns: repeat(2, 1fr); }
  .eq .slot { height: 110px; }
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { display: none; }
  .doc tr { border-bottom: 1px solid #23263a; padding: 8px 0; }
  .doc td { border: 0; padding: 3px 0; }
  .doc td:first-child { color: #fff; font-weight: 700; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee span, .ticker div { animation: none; padding-left: 0; }
  .prompt .cursor, .clock.paused .time { animation: none; }
  .player { transform: none; }
}
