/* hellolistener.music — shared styles
   Change the look here: these variables control every color on the site. */
:root {
  --bg: #050505;
  --panel: #0b0f0e;
  --panel-2: #10201c;
  --text: #dcfff4;
  --muted: #7fb5a5;
  --teal: #4ff5d0;
  --green: #52ff4d;
  --purple: #a03cff;
  --magenta: #ff2fd0;
  --yellow: #f4ff3a;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { height: 100%; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(5,5,5,0.6) 0%, rgba(5,5,5,0.88) 55%, var(--bg) 100%),
    url("assets/bg.jpg") no-repeat center top / cover,
    var(--bg);
  color: var(--text);
  font-family: "Space Mono", "Courier New", ui-monospace, monospace;
}

/* film grain + scanlines, non-blocking */
body::before, body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
}
body::before {
  opacity: 0.1;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 -0.4'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
body::after {
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.16) 0, rgba(0,0,0,0.16) 1px, transparent 1px, transparent 3px);
}

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

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1.25rem; }

/* ===== Winamp-style window chrome =====
   Classic skinnable-player window: a gradient titlebar with pinstripes,
   a beveled 3-D frame, and a dark screen for the body. Reused for the
   nav bar and every content section on the site. */
.winbox {
  border-radius: 0;
  border: 1px solid var(--magenta);
  box-shadow: inset 0 0 0 1px var(--teal), 0 0 10px rgba(255,47,208,0.15);
  background: #000;
  overflow: hidden;
}
.winbox-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.3rem 0.55rem;
  background: #000;
  border-bottom: 1px solid var(--magenta);
  box-shadow: 0 1px 0 var(--teal);
}
.winbox-title .winbox-label {
  font-family: "VT323", "Space Mono", monospace;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  text-shadow: 0 0 4px rgba(79,245,208,0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.title-icon {
  width: 18px;
  height: 18px;
  flex: none;
  object-fit: contain;
  image-rendering: pixelated;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.35rem;
}
.winbox-title .winbox-dots { display: flex; gap: 5px; flex-shrink: 0; }
.winbox-title .winbox-dots span {
  width: 11px;
  height: 11px;
  background: #000;
  border: 1px solid var(--magenta);
  color: var(--teal);
  font-family: "VT323", monospace;
  font-size: 0.7rem;
  line-height: 9px;
  text-align: center;
}
.winbox-body { padding: 1.1rem 1.2rem; }

/* top nav, styled as the Winamp main-window titlebar */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  background: #000;
  border-bottom: 1px solid var(--magenta);
  box-shadow: 0 1px 0 var(--teal);
}
.nav-inner {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-inner a.brand {
  font-family: "VT323", "Space Mono", monospace;
  font-weight: 400;
  text-decoration: none;
  color: var(--yellow);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.6);
}
nav.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.78rem;
}
/* On wider screens, give the nav room to sit on one line instead of
   wrapping under the brand. */
@media (min-width: 760px) {
  .nav-inner { max-width: 50rem; }
  nav.links { flex-wrap: nowrap; gap: 0.25rem; font-size: 0.7rem; }
  nav.links a { padding: 0.28rem 0.42rem; white-space: nowrap; }
  .nav-icon { width: 20px; height: 20px; }
}
nav.links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--teal);
  background: #000;
  border: 1px solid var(--magenta);
  padding: 0.3rem 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
nav.links a:hover { color: #fff; border-color: var(--teal); }
nav.links a[aria-current="page"] {
  background: var(--magenta);
  color: #000;
  border-color: var(--teal);
}

/* 90s-style nav icons (gifs or CSS-drawn) sitting next to each link label */
.nav-icon {
  width: 26px;
  height: 26px;
  flex: none;
  object-fit: contain;
  image-rendering: pixelated;
}
/* CSS-drawn spinning CD for Music, used until/unless a gif replaces it */
.nav-icon.cd-icon {
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #000 0 2px, transparent 2.5px),
    conic-gradient(from 0deg,
      #ff2fd0, #a03cff, #4ff5d0, #52ff4d, #f4ff3a, #ff2fd0);
  box-shadow: 0 0 3px rgba(79,245,208,0.8);
  animation: cd-spin 2.2s linear infinite;
}
@keyframes cd-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-icon.cd-icon { animation: none; }
}

/* LED-style readout, like a player's time/track counter */
.led-display {
  display: inline-block;
  font-family: "VT323", monospace;
  background: #000;
  color: var(--magenta);
  border: 1px solid var(--magenta);
  box-shadow: inset 0 0 0 1px rgba(79,245,208,0.4);
  padding: 0.35rem 0.6rem;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-shadow: 0 0 6px rgba(255,47,208,0.8);
}

/* decorative equalizer bars */
.eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 30px;
  padding: 0 0.2rem;
}
.eq-bars span {
  width: 5px;
  background: linear-gradient(180deg, var(--teal), var(--magenta));
  animation: eq-bounce 1.1s ease-in-out infinite;
}
.eq-bars span:nth-child(1) { height: 40%; animation-delay: 0s; }
.eq-bars span:nth-child(2) { height: 75%; animation-delay: 0.1s; }
.eq-bars span:nth-child(3) { height: 55%; animation-delay: 0.2s; }
.eq-bars span:nth-child(4) { height: 90%; animation-delay: 0.3s; }
.eq-bars span:nth-child(5) { height: 65%; animation-delay: 0.15s; }
.eq-bars span:nth-child(6) { height: 45%; animation-delay: 0.25s; }
.eq-bars span:nth-child(7) { height: 80%; animation-delay: 0.05s; }
@keyframes eq-bounce {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .eq-bars span { animation: none; height: 60% !important; }
}

/* retro hit counter, for flavor */
.hit-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.hit-counter-digits { display: flex; gap: 2px; }
.hit-counter-digits span {
  display: inline-block;
  width: 1.1rem;
  text-align: center;
  font-family: "VT323", monospace;
  font-size: 1.1rem;
  background: #000;
  color: var(--magenta);
  border: 1px solid var(--magenta);
  text-shadow: 0 0 5px rgba(255,47,208,0.8);
  padding: 0.15rem 0;
}

/* content sections, styled as Winamp windows */
section.winbox { margin-bottom: 1.6rem; }
section.winbox .winbox-body > *:last-child { margin-bottom: 0; }
section.winbox .winbox-body .link:last-child { margin-bottom: 0; }

/* ===== persistent Winamp-style mini player ===== */
.winamp-player {
  position: fixed;
  left: 0.6rem;
  right: 0.6rem;
  bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  max-width: 26rem;
  margin: 0 auto;
}
.winamp-player .winbox-title .winbox-label { font-size: 0.95rem; }
.winamp-player-body {
  padding: 0.6rem 0.7rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
/* real audio-reactive spectrum visualizer (Web Audio API driven) */
.wa-viz-screen {
  background: #000;
  border: 1px solid var(--magenta);
  box-shadow: inset 0 0 0 1px rgba(79,245,208,0.3);
  padding: 2px;
}
.wa-viz {
  display: block;
  width: 100%;
  height: 34px;
}
.winamp-player-row1 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.winamp-player .led-display {
  flex: 1;
  font-size: 0.8rem;
  padding: 0.3rem 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* scrolling "now playing" ticker, classic Winamp-style marquee */
.wa-marquee-box { position: relative; }
.wa-marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: wa-marquee 10s linear infinite;
}
.wa-marquee-text { padding-right: 3rem; }
@keyframes wa-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .wa-marquee-track { animation: none; }
  .wa-marquee-text#wa-marquee-text-b { display: none; }
}
.winamp-player .eq-bars { height: 20px; flex-shrink: 0; }
#wa-pl-toggle {
  font-family: "VT323", monospace;
  font-size: 0.85rem;
  flex-shrink: 0;
  background: #000;
  color: var(--teal);
  border: 1px solid var(--magenta);
  padding: 0.3rem 0.4rem;
  cursor: pointer;
}
#wa-pl-toggle[aria-expanded="true"] { background: var(--magenta); color: #000; }
.winamp-transport {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.winamp-transport button {
  font-family: "VT323", monospace;
  font-size: 1.2rem;
  width: 2.1rem;
  height: 2.1rem;
  background: #000;
  color: var(--teal);
  border: 1px solid var(--magenta);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.winamp-transport button:active { background: var(--magenta); color: #000; }
.winamp-transport button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.winamp-seek {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: var(--muted);
}
.winamp-seek input[type="range"] {
  flex: 1;
  height: 10px;
  accent-color: var(--magenta);
  background: #000;
  border: 1px solid var(--magenta);
}
.winamp-seek .time {
  font-family: "VT323", monospace;
  font-size: 0.95rem;
  color: var(--magenta);
  min-width: 2.6em;
  text-align: center;
  text-shadow: 0 0 4px rgba(255,47,208,0.7);
}
@media (max-width: 420px) {
  .winamp-player { left: 0.4rem; right: 0.4rem; }
  .winamp-player .eq-bars { width: 2.4rem; gap: 2px; }
  .winamp-player .eq-bars span { width: 3px; }
}

/* playlist box, Winamp-playlist style — expanded by default */
#wa-playlist {
  display: block;
  max-height: 11rem;
  overflow-y: auto;
  background: #000;
  border: 1px solid #000;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.08);
  margin-top: 0.1rem;
}
.wa-pl-row {
  display: block;
  width: 100%;
  text-align: left;
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: var(--teal);
  background: transparent;
  border: 0;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
}
.wa-pl-row:hover { background: rgba(255,255,255,0.06); }
.wa-pl-row.active { background: var(--magenta); color: #000; }

/* banner */
.banner {
  margin: 0;
  line-height: 0;
}
.banner img {
  width: 100%;
  height: auto;
  border-bottom: 2px solid var(--yellow);
  box-shadow: 0 3px 0 var(--magenta);
}

/* No z-index here on purpose: giving main its own stacking context would
   trap the embed's z-index below it, undoing the "lift embeds above the
   grain overlay" rule above. */
main { position: relative; padding: 2.5rem 0 4rem; }

h1.page-title {
  font-size: clamp(1.8rem, 7vw, 2.4rem);
  margin: 0 0 0.3rem;
  color: var(--yellow);
  text-shadow: 2px 0 var(--magenta), -2px 0 var(--teal);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.page-title-icon {
  width: clamp(28px, 8vw, 40px);
  height: clamp(28px, 8vw, 40px);
  flex: none;
  object-fit: contain;
  image-rendering: pixelated;
}
/* for wide/landscape ornaments (dividers, banners) instead of small square
   icons — fixed height, width follows the image's own aspect ratio */
.page-title-icon-wide {
  width: auto;
  height: clamp(18px, 5vw, 26px);
  max-width: 45vw;
  flex: none;
  object-fit: contain;
  image-rendering: pixelated;
}
/* bigger variant of .title-icon for a spot that wants more presence */
.title-icon-lg {
  width: 28px;
  height: 28px;
}
.tagline { color: var(--muted); margin: 0 0 2.2rem; font-size: 1rem; }
.section-divider {
  display: block;
  width: 100%;
  max-width: 26rem;
  height: auto;
  margin: 0.4rem auto 1.1rem;
  image-rendering: pixelated;
}

section { margin-bottom: 3rem; }
section h2 {
  font-size: 1.2rem;
  color: var(--teal);
  border-left: 4px solid var(--magenta);
  padding-left: 0.6rem;
  margin: 0 0 1rem;
}
p { line-height: 1.6; }
.winbox-body h3 { color: var(--teal); font-size: 1rem; margin: 0 0 0.6rem; text-transform: uppercase; letter-spacing: 0.03em; }

/* buttons, reused from the hub */
.link {
  display: block;
  width: 100%;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  padding: 1rem 1.4rem;
  background: var(--panel);
  color: var(--text);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--yellow);
  box-shadow: 0 0 0 1px #000, 3px 0 0 var(--magenta), -3px 0 0 var(--teal);
  transition: background 0.1s, color 0.1s;
  margin-bottom: 0.8rem;
}
.link:last-child { margin-bottom: 0; }
.link:hover { background: var(--teal); color: #000; }
.link:active { background: var(--green); color: #000; }
.link:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
.link.main { background: var(--yellow); color: #000; }
.link.main:hover { background: var(--teal); }

.btc { margin: 0.5rem 0.4rem 1.2rem; color: var(--muted); font-size: 0.8rem; overflow-wrap: anywhere; user-select: all; }

/* embeds */
.embed-wrap {
  position: relative;
  width: 100%;
  border: 2px solid var(--purple);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  margin-bottom: 1.2rem;
}
/* Bandcamp only: sit above the page-wide film grain/scanline overlay
   (z-index 50). Scoped to .bandcamp specifically (not all .embed-wrap) so
   the YouTube embeds keep the grain look over them as before. */
.embed-wrap.bandcamp {
  position: relative;
  z-index: 51;
}
.embed-wrap.ratio-16-9 { aspect-ratio: 16 / 9; }
.embed-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.embed-wrap.bandcamp { aspect-ratio: unset; height: 120px; }
.embed-wrap.bandcamp.tall { height: 470px; }

/* static, non-playable album promo (cover + title) — the Winamp player is
   the site's actual listening experience, this is just a "go buy it" card */
.album-promo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border: 2px solid var(--purple);
  border-radius: 8px;
  background: var(--panel);
  padding: 0.8rem;
  margin-bottom: 1rem;
}
.album-cover {
  width: 96px;
  height: 96px;
  flex: none;
  object-fit: cover;
  border: 1px solid var(--magenta);
}
.album-promo-info { min-width: 0; }
.album-promo-title {
  margin: 0 0 0.25rem;
  font-family: "VT323", "Space Mono", monospace;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  color: var(--yellow);
  text-shadow: 1px 0 var(--magenta), -1px 0 var(--teal);
}
.album-promo-by { margin: 0; color: var(--muted); font-size: 0.85rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-bottom: 1rem;
}
@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
}
.card {
  background: #000;
  border: 1px solid var(--teal);
  border-radius: 0;
  padding: 0.9rem 1rem;
}
.card .card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0b0f0e;
  border: 1px solid var(--magenta);
  margin-bottom: 0.6rem;
}
.card h3 { margin: 0 0 0.4rem; color: var(--magenta); font-size: 0.95rem; text-shadow: 0 0 4px rgba(255,47,208,0.5); }
.card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.contact-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}
footer.site-footer {
  border-top: 2px solid var(--yellow);
  margin-top: 2rem;
  /* --wa-player-h is kept in sync with the fixed player's real height by
     player.js (it changes with the playlist open/closed, screen size,
     etc.) so the footer always has enough room to scroll clear of it. */
  padding: 2rem 0 calc(var(--wa-player-h, 11rem) + 1.5rem + env(safe-area-inset-bottom, 0px));
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
footer.site-footer .foot-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 0.8rem;
}
footer.site-footer a { text-decoration: none; }
footer.site-footer a:hover { color: var(--teal); }

@media (prefers-reduced-motion: reduce) {
  .link { transition: none; }
}
