@font-face { font-family: "Bebas Neue"; font-weight: 400; font-display: swap; src: url("assets/fonts/bebas-neue-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url("assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: Inter; font-weight: 800; font-display: swap; src: url("assets/fonts/inter-latin-800-normal.woff2") format("woff2"); }

:root {
  --bg: #0b0a0d;
  --panel: #16141a;
  --line: #2a2630;
  --text: #f3efe8;
  --muted: #a39caa;
  --fire: #ff5a1f;
  --gold: #ffc23d;
  --display: "Bebas Neue", Impact, "Arial Narrow Bold", sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--body);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 30rem at 50% -8rem, rgba(255, 90, 31, .35), transparent 70%),
    radial-gradient(40rem 25rem at 100% 0, rgba(255, 194, 61, .12), transparent 70%),
    var(--bg);
}
.bg::after { /* film grain */
  content: "";
  position: absolute;
  inset: 0;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 2.5rem 1rem 2rem; }
.logo {
  margin: 0;
  font: 400 clamp(2.4rem, 9vw, 6.5rem)/.85 var(--display);
  letter-spacing: .04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: .1em;
  background: linear-gradient(180deg, #fff 0%, var(--gold) 45%, var(--fire) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 24px rgba(255, 90, 31, .35));
}
.bolt { width: .7em; height: .7em; fill: var(--gold); animation: flicker 4s infinite; }
@keyframes flicker {
  0%, 92%, 100% { opacity: 1; }
  93%, 95% { opacity: .3; }
  94%, 96% { opacity: 1; }
}
.tagline {
  margin: .75rem 0 0;
  color: var(--muted);
  letter-spacing: .25em;
  text-transform: uppercase;
  font-size: .8rem;
  font-weight: 600;
}

.eq { display: flex; justify-content: center; align-items: flex-end; gap: 4px; height: 26px; margin-bottom: 1rem; }
.eq span { width: 5px; background: var(--fire); border-radius: 2px; animation: bounce 1s ease-in-out infinite; }
.eq span:nth-child(2) { animation-delay: -.6s; background: var(--gold); }
.eq span:nth-child(3) { animation-delay: -.2s; }
.eq span:nth-child(4) { animation-delay: -.8s; background: var(--gold); }
.eq span:nth-child(5) { animation-delay: -.4s; }
@keyframes bounce { 0%, 100% { height: 20%; } 50% { height: 100%; } }

/* ---------- Player ---------- */
main { width: min(1100px, 100% - 2rem); margin: 0 auto; }
.stage { width: min(1440px, 100vw - 2rem); position: relative; left: 50%; transform: translateX(-50%); }
.screen:fullscreen { aspect-ratio: auto; width: 100%; height: 100%; }
.stage {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(255, 90, 31, .45);
}
.screen { position: relative; aspect-ratio: 16 / 9; background: #000; }
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}
.now { display: flex; flex-direction: column; min-width: 0; }
.now .label { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--fire); font-weight: 800; }
#now-title { font-weight: 600; font-size: 1.05rem; }
.buttons { display: flex; gap: .5rem; flex-wrap: wrap; }
.btn {
  font: 600 .9rem var(--body);
  color: #1a0d05;
  background: linear-gradient(180deg, var(--gold), var(--fire));
  border: 0;
  border-radius: 999px;
  padding: .55rem 1.1rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s, filter .15s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--muted); }

/* ---------- Grid ---------- */
.tracks { margin: 3rem 0 2rem; }
.tracks-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.tracks h2 { margin: 0; font: 400 2.4rem/1 var(--display); letter-spacing: .05em; }
#search {
  font: inherit;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .5rem 1rem;
  width: min(320px, 100%);
}
#search:focus { outline: 2px solid var(--fire); outline-offset: 1px; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0;
  font: inherit;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover, .card:focus-visible { transform: translateY(-4px); border-color: var(--fire); box-shadow: 0 16px 40px -18px rgba(255, 90, 31, .7); outline: none; }
.card.playing { border-color: var(--gold); }
.thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.card:hover .thumb img { transform: scale(1.06); }
.thumb::after {
  content: "\25B6";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  color: #fff;
  background: rgba(0, 0, 0, .35);
  opacity: 0;
  transition: opacity .2s;
}
.card:hover .thumb::after { opacity: 1; }
.card.playing .thumb::after { content: "\266B"; opacity: 1; color: var(--gold); }
.meta { padding: .75rem .9rem 1rem; }
.meta h3 { margin: 0 0 .35rem; font-size: .95rem; line-height: 1.3; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta p { margin: 0; font-size: .8rem; color: var(--muted); }
.note { color: var(--muted); font-size: .85rem; text-align: center; margin-top: 1.5rem; }
.empty { grid-column: 1 / -1; color: var(--muted); text-align: center; padding: 2rem; }

footer .legal { max-width: 44rem; margin: 0 auto .6rem; font-size: .72rem; opacity: .8; }
footer .about { max-width: 40rem; margin: 0 auto .75rem; }
footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 2rem 1rem 3rem; }

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