:root {
  --bg: #05070d;
  --panel: #0a1220;
  --panel-2: #0e1a2e;
  --text: #f4faff;
  --muted: #7f9bb8;
  --line: #16273f;
  --accent: #22b6ff;
  --accent-bright: #8fe9ff;
  --glow: 0 0 12px rgba(34, 182, 255, 0.55);
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background-color: var(--bg); }
body {
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-repeat: repeat;
  pointer-events: none;
}
body::before {
  background-image: url("data/stars_a.png");
  animation: twinkle-a 5s ease-in-out infinite;
}
body::after {
  background-image: url("data/stars_b.png");
  animation: twinkle-b 7s ease-in-out infinite;
}
@keyframes twinkle-a {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}
@keyframes twinkle-b {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}
a { color: inherit; text-decoration: none; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85em; color: var(--accent); }
.muted { color: var(--muted); }

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
.site { position: sticky; top: 0; z-index: 10; background: rgba(13,14,17,0.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.nav { max-width: 1080px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 40px; width: auto; display: block; }
.links { display: flex; gap: 4px; flex-wrap: wrap; }
.links a { padding: 6px 8px; border-radius: 8px; color: var(--text); font-weight: 900; font-size: 1.125rem; text-transform: lowercase; letter-spacing: -0.01em; font-family: "Futura", "Avenir Next", "Avenir", "Century Gothic", "Inter", "Trebuchet MS", "Segoe UI", sans-serif; }
.links a:hover { color: var(--text); background: var(--panel-2); }
.links a.active { color: var(--accent); }

main { max-width: 1080px; margin: 0 auto; padding: 34px 20px 40px; }
.hero { padding: 26px 0 8px; }
.hero h1 { font-size: 2.6rem; margin: 0 0 6px; letter-spacing: 0.02em; }
.hero-sub { color: var(--muted); font-size: 1.05rem; margin: 0; max-width: 60ch; }

.section { margin-top: 34px; }
.section h1, .section h2 { margin: 0 0 4px; }
.section:has(.bio) { text-align: center; }
.section:has(.bio) h1 { margin-bottom: 72px; }
.section-sub { color: var(--muted); margin: 0 0 20px; max-width: 70ch; }

.grid { display: grid; gap: 14px; }
.covers { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.photos { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.cover-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--line); aspect-ratio: 1 / 1; }
.cover-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.cover-card:hover img { transform: scale(1.04); }
.cover-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px; font-size: 0.85rem; font-weight: 600; background: linear-gradient(to top, rgba(0,0,0,0.72), transparent); }
.cover-year { display: block; margin-top: 1px; font-size: 0.72rem; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

.photo-card { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.photo-card figcaption { padding: 8px 10px; font-size: 0.85rem; color: var(--muted); }

.d-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.d-table th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--line); }
.d-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.d-row:hover td { background: var(--panel); }
.d-year { white-space: nowrap; color: var(--accent); font-variant-numeric: tabular-nums; width: 64px; }
.d-title { font-weight: 600; }
.d-title a { border-bottom: 1px solid transparent; }
.d-title a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.d-type { width: 110px; }
.d-credit { color: var(--muted); }
.legend { color: var(--muted); font-size: 0.85rem; margin-top: 14px; max-width: 80ch; }

.disco { margin-top: 8px; }
.disco-year { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 14px; }
.disco-yearhead { font-size: 1.1rem; margin: 0 0 14px; color: var(--accent); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.disco-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0 0 10px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.disco-stats .stat { color: var(--text); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; }
.disco-stats .stat + .stat { position: relative; padding-left: 18px; }
.disco-stats .stat + .stat::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 12px; background: var(--line); }
.disco-stats .stat:first-child { color: var(--accent); }
.disco-album { margin: 0 0 26px; padding: 8px 0 0; }
.disco-album-title { margin: 0 0 8px; font-size: 1.3rem; font-weight: 800; letter-spacing: 0.005em; }
.disco-type { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }
.disco-artist { margin: 0 0 6px; color: var(--muted); font-size: 0.9rem; }
.disco-roles { margin: 0 0 6px; color: var(--accent-bright); font-size: 0.8rem; letter-spacing: 0.03em; }
.disco-note { margin: 0 0 8px; color: var(--muted); font-size: 0.85rem; font-style: italic; }
.disco-tracks { list-style: none; margin: 8px 0 0; padding: 0; columns: 2; column-gap: 28px; }
.disco-tracks li { padding: 3px 0; border-bottom: 1px solid rgba(38,42,49,0.5); break-inside: avoid; font-size: 0.92rem; }
@media (max-width: 640px) { .disco-tracks { columns: 1; } }

.featured-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin: 8px 0 0; }
.featured-card { margin: 0; }
.featured-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.featured-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.featured-cap { margin-top: 8px; }
.featured-title { font-weight: 700; font-size: 0.98rem; color: var(--text); text-decoration: none; }
.featured-title:hover { color: var(--accent); }
.featured-date { display: block; margin-top: 2px; color: var(--muted); font-size: 0.82rem; font-variant-numeric: tabular-nums; }

.shorts-head { margin: 34px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 1.1rem; color: var(--accent); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.shorts-channel { color: var(--accent); }
.shorts-browser { position: relative; margin-top: 8px; }
.shorts-grid { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.shorts-grid::-webkit-scrollbar { height: 8px; }
.shorts-grid::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.shorts-card { position: relative; flex: 0 0 auto; width: 128px; aspect-ratio: 9 / 16; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); cursor: pointer; text-align: left; }
.shorts-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shorts-card:hover { border-color: var(--accent); }
.shorts-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 8px; font-size: 0.72rem; line-height: 1.25; color: var(--text); background: linear-gradient(to top, rgba(0,0,0,0.78), transparent); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.shorts-player { display: none; }
#shorts-browser.playing { min-height: 300px; }
#shorts-browser.playing .shorts-grid { display: none; }
#shorts-browser.playing .shorts-player { display: block; }
.shorts-back { background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-size: 0.8rem; padding: 4px 10px; cursor: pointer; margin-bottom: 10px; }
.shorts-back:hover { color: var(--accent); border-color: var(--accent); }
.shorts-frame { position: relative; height: min(66vh, 460px); max-width: 280px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #000; }
.shorts-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 640px) {
  .featured-grid { grid-template-columns: 1fr; }
  .shorts-grid { gap: 8px; }
  .shorts-card { width: 110px; }
  .shorts-frame { height: min(62vh, 420px); }
}

.features-head { margin: 34px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 1.1rem; color: var(--accent); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-row { display: grid; grid-template-columns: 120px 1fr; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid rgba(38,42,49,0.5); }
.feature-date { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.feature-name-wrap { grid-column: 2; display: flex; align-items: baseline; gap: 8px; }
.feature-name { font-weight: 700; font-size: 1rem; color: var(--text); text-decoration: none; }
.feature-name:hover { color: var(--accent); }
.feature-unaccredited { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; white-space: nowrap; }
.feature-artist { grid-column: 2; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 640px) { .feature-row { grid-template-columns: 1fr; } .feature-artist { grid-column: 1; } .feature-date { grid-column: 1; } }

.videos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.video-card { margin: 0; }
.video-link { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.video-link img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.video-title { display: block; padding: 10px 12px 2px; font-weight: 600; }
.video-year { display: block; padding: 0 12px 12px; color: var(--muted); font-size: 0.85rem; }

.bio { max-width: 70ch; margin: 0 auto; }
.bio-portrait { width: 260px; height: 260px; object-fit: cover; border-radius: 50%; border: 1px solid var(--line); margin: 0 auto 10px; display: block; }
.bio-name { margin: 0 0 8px; }
.bio-summary { font-size: 1.1rem; }
.bio p { text-align: center; }
.bio-socials { list-style: none; padding: 0; margin: 18px 0 0; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.bio-socials a { color: var(--accent); font-weight: 600; font-size: 0.9rem; }

.empty { color: var(--muted); }
.download-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.download-list li { margin: 0; }
.live-next { margin: 0 0 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.live-next-kicker { margin: 0 0 6px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.live-next-value { margin: 0; font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.live-past { list-style: none; margin: 18px 0 0; padding: 0; }
.live-past li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.lp-title { font-weight: 600; }
.lp-year { color: var(--muted); font-size: 0.85rem; }
.foot { max-width: 1080px; margin: 0 auto; padding: 22px 20px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
.foot p { margin: 0; }
/* ---- Listening links modal ---- */
body.listening-open { overflow: hidden; }
.listen-overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(3, 6, 12, 0.72); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.listen-overlay.open { opacity: 1; pointer-events: auto; }
.listen-card { position: relative; width: min(440px, 100%); max-height: 90vh; overflow: auto; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55); transform: translateY(12px) scale(0.98); transition: transform .18s ease; }
.listen-overlay.open .listen-card { transform: none; }
.listen-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: rgba(5, 7, 13, 0.55); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.listen-close:hover { border-color: var(--accent); color: var(--accent); }
.listen-head { display: flex; gap: 16px; padding: 20px 20px 16px; border-bottom: 1px solid var(--line); }
.listen-cover { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); flex: 0 0 96px; }
.listen-meta { min-width: 0; }
.listen-title { margin: 0 0 3px; font-size: 1.12rem; font-weight: 800; line-height: 1.25; }
.listen-artist { margin: 0; color: var(--muted); font-size: 0.9rem; }
.listen-links { padding: 14px 14px 18px; display: flex; flex-direction: column; gap: 8px; }
.listen-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font-weight: 600; text-decoration: none; }
.listen-row:hover, .listen-row:focus { border-color: var(--accent); background: var(--panel-2); }
.listen-row-label { font-size: 0.95rem; }
.listen-row-hint { color: var(--muted); font-size: 0.8rem; }
.listen-empty { margin: 2px; color: var(--muted); font-size: 0.9rem; }
.listen-player { margin: 0 0 6px; }
.listen-player audio { width: 100%; height: 42px; }
@media (max-width: 640px) {
  .listen-overlay { padding: 0; align-items: flex-end; }
  .listen-card { width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; transform: translateY(100%); }
  .listen-overlay.open .listen-card { transform: none; }
  .listen-head { flex-direction: column; align-items: flex-start; padding: 18px 18px 14px; }
  .listen-cover { width: 72px; height: 72px; flex-basis: 72px; }
}
/* Mobile nav: tighten so the links wrap to fewer rows and don't crowd the top. */
@media (max-width: 640px) {
  .nav { padding: 10px 14px; gap: 12px; }
  .brand-logo { height: 30px; }
  .links { gap: 0; }
  .links a { font-size: 0.82rem; font-weight: 800; padding: 4px 6px; }
  .brand { margin-right: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .listen-overlay, .listen-card { transition: none; }
}
/* ---- Main (page) scrollbar: thin + subtle, not the browser default ---- */
html { scrollbar-width: thin; scrollbar-color: #1c3350 transparent; }
html::-webkit-scrollbar { width: 8px; height: 8px; }
html::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb { background: #16273f; border: 2px solid transparent; border-radius: 999px; background-clip: padding-box; }
html::-webkit-scrollbar-thumb:hover { background: #1f3a5c; }
/* ---- Clickable album titles in discography ---- */
.disco-album-clickable {
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
  padding: 2px 4px;
  margin: -2px -4px;
  border-radius: 4px;
}
.disco-album-clickable:hover {
  color: var(--accent, #4a90d9);
  background: rgba(255,255,255,0.04);
}
.disco-album-clickable:focus {
  outline: 2px solid var(--accent, #4a90d9);
  outline-offset: 2px;
}
.disco-album-link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}
.disco-album-link .disco-type-bandcamp {
  color: var(--accent, #4a90d9);
  border-color: var(--accent);
}
.disco-album-link a.disco-bandcamp-link {
  color: var(--accent, #4a90d9);
  text-decoration: none;
  font-size: 0.85rem;
}
.disco-album-link a.disco-bandcamp-link:hover {
  text-decoration: underline;
}
.disco-album-link a.disco-bandcamp-link:focus {
  outline: 2px solid var(--accent, #4a90d9);
  outline-offset: 2px;
}
.disco-bandcamp {
  margin: 4px 0 0;
  font-size: 0.85rem;
}
.disco-bandcamp a {
  color: var(--accent, #4a90d9);
  text-decoration: none;
}
.disco-bandcamp a:hover {
  text-decoration: underline;
}
/* ---- Embedded players in listening modal ---- */
.listen-embed { margin: 8px 0; }
.listen-embed-frame {
  width: 100%;
  height: 152px;
  border: 0;
  border-radius: 8px;
  background: var(--panel-2, #111827);
}


/* Contact form */
.contact-form {
  max-width: 500px;
  margin-top: 24px;
}
.contact-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--muted);
}
.contact-input,
.contact-textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
}
.contact-input:focus,
.contact-textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-submit {
  padding: 12px 24px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #041018;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.contact-submit:hover {
  background: #8fe9ff;
}
.contact-info {
  margin-top: 24px;
}
.contact-email {
  color: var(--muted);
  font-size: 0.95rem;
}
