/* Daily Hub: a music look. Record grooves, stage lights, album details. */
:root {
  color-scheme: dark;
  --bg: #0e0a11;
  --surface: #1a141f;
  --raised: #281f2f;
  --glass: rgb(26 20 31 / 0.68); /* see-through, so the stage lights show behind cards */
  --text: #f5eee6;
  --muted: #ae9fb3;
  --border: #372c40;
  --accent: #ffb54a;
  --accent-soft: rgb(255 181 74 / 0.14);
  --hot: #ff4d8d;
  --cool: #9a86ff;
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Martian Mono", ui-monospace, Consolas, monospace;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--body);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(800px 520px at 12% -8%, rgb(255 77 141 / 0.14), transparent 70%),
    radial-gradient(760px 520px at 62% -14%, rgb(154 134 255 / 0.13), transparent 70%),
    radial-gradient(640px 420px at 100% 8%, rgb(255 181 74 / 0.10), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}

/* Music notes drifting in the top corner */
.note-field { position: fixed; z-index: -1; top: 66px; right: 0; width: min(560px, 62vw); height: 300px; overflow: hidden; pointer-events: none; }
.note { position: absolute; fill: currentColor; opacity: 0.72; filter: drop-shadow(0 0 14px currentColor); animation: drift 7s ease-in-out infinite alternate; }
.note-1 { top: 22px; right: 54px; width: 92px; color: var(--accent); }
.note-2 { top: 128px; right: 196px; width: 58px; color: var(--hot); animation-delay: -2s; animation-duration: 8s; }
.note-3 { top: 14px; right: 268px; width: 46px; color: var(--cool); animation-delay: -4s; animation-duration: 6s; }
.note-4 { top: 150px; right: 22px; width: 54px; color: var(--cool); animation-delay: -1s; animation-duration: 9s; }
.note-5 { top: 42px; right: 392px; width: 34px; color: var(--accent); animation-delay: -5s; }
@keyframes drift {
  from { transform: translateY(8px) rotate(-7deg); }
  to { transform: translateY(-12px) rotate(7deg); }
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #ffd08a; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.05; letter-spacing: -0.02em; }
h1 { margin: 0 0 22px; font-size: clamp(2.6rem, 8vw, 4.6rem); font-weight: 800; }
h2 { font-weight: 700; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.kicker, .meta, .source, .site-footer { font-family: var(--mono); letter-spacing: 0.02em; }
.kicker { margin: 0 0 10px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); }
.meta { color: var(--muted); font-size: 0.7rem; }
.lead { color: var(--muted); }
.source { margin-top: 36px; color: var(--muted); font-size: 0.68rem; }

/* Header: an equalizer bounces under the current page */
.site-header { position: sticky; top: 0; z-index: 20; background: rgb(14 10 17 / 0.9); backdrop-filter: blur(10px); }
.site-header::after { content: ""; display: block; height: 2px; background: linear-gradient(90deg, var(--accent), var(--hot), var(--cool)); }
.header-inner { display: flex; align-items: stretch; justify-content: space-between; flex-wrap: wrap; gap: 0 24px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-disc {
  position: relative; width: 26px; height: 26px; border-radius: 50%; animation: spin 5s linear infinite;
  background:
    radial-gradient(circle, var(--bg) 0 8%, var(--accent) 9% 30%, transparent 31%),
    repeating-radial-gradient(circle, #15101a 0 1px, #2b2331 1px 2px);
  box-shadow: 0 0 14px rgb(255 77 141 / 0.45);
}
.brand-disc::after { content: ""; position: absolute; top: 2px; left: 50%; width: 3px; height: 8px; border-radius: 2px; background: rgb(255 255 255 / 0.28); }
.menu-toggle { display: none; }
.site-menu { flex: 1; display: flex; justify-content: flex-end; align-items: center; }
.site-menu ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.site-menu a, .menu-button {
  position: relative; display: block; padding: 8px 8px 14px; border: 0; background: none; cursor: pointer;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: var(--muted); transition: color 0.15s;
}
.site-menu a:hover, .menu-button:hover { color: var(--text); }
.site-menu a[aria-current="page"] { color: var(--accent); }
.site-menu a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 1px; width: 22px; height: 11px; margin-left: -11px;
  background:
    linear-gradient(var(--hot), var(--hot)) 0 100% / 4px 100% no-repeat,
    linear-gradient(var(--accent), var(--accent)) 50% 100% / 4px 60% no-repeat,
    linear-gradient(var(--cool), var(--cool)) 100% 100% / 4px 80% no-repeat;
  animation: equalizer 1.1s ease-in-out infinite alternate;
}
@keyframes equalizer {
  0% { background-size: 4px 35%, 4px 100%, 4px 55%; }
  50% { background-size: 4px 90%, 4px 40%, 4px 100%; }
  100% { background-size: 4px 55%, 4px 75%, 4px 30%; }
}

@media (max-width: 1040px) {
  .note-5, .note-3 { display: none; }
  .note-1 { width: 64px; right: 18px; }
  .note-2 { width: 40px; top: 96px; right: 92px; }
  .note-4 { width: 36px; top: 112px; right: 12px; }
  .menu-toggle {
    display: block; align-self: center; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px;
    background: none; color: var(--text); font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em;
  }
  .site-menu { display: none; flex-basis: 100%; padding-bottom: 12px; }
  .site-menu.is-open { display: block; }
  .site-menu ul { flex-direction: column; align-items: stretch; padding: 0; background: none; }
  .site-menu ul { display: flex; }
  .site-menu a, .menu-button { width: 100%; padding: 12px 4px; text-align: left; font-size: 0.74rem; border-bottom: 1px solid var(--border); }
  .site-menu a[aria-current="page"]::after { left: auto; right: 4px; bottom: 15px; margin-left: 0; }
}

main.wrap { flex: 1; padding-top: 44px; padding-bottom: 40px; }
.site-footer { padding-top: 18px; padding-bottom: 28px; color: var(--muted); font-size: 0.65rem; }

/* Home */
.home-intro { margin-bottom: 30px; }
.home-intro h1 { margin: 0; }
.home-intro em { font-style: normal; color: var(--accent); }

.board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.card, .panel, .week li, .person, .songs li, .notice, .artist-details { background: var(--glass); backdrop-filter: blur(6px); }
.card, .panel { border: 1px solid var(--border); border-radius: var(--radius); }
.panel { padding: 20px; }
.card {
  position: relative; grid-column: span 4; display: flex; flex-direction: column; gap: 12px; min-height: 150px; padding: 20px;
  color: var(--text); transition: border-color 0.2s, transform 0.2s;
}
.card:hover, .card:focus-within { border-color: rgb(255 181 74 / 0.55); }
.card:hover { transform: translateY(-2px); }
.card h2 { margin: 0; display: flex; align-items: baseline; gap: 10px; font-family: var(--mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.card p { margin: 0; color: var(--muted); }
.card .readout { color: var(--text); }
.card-spotify { order: -3; grid-column: span 8; grid-row: span 2; background: linear-gradient(145deg, rgb(23 58 43 / 0.72), var(--glass) 66%); }
.card-weather { order: -2; grid-column: span 4; grid-row: span 2; background: linear-gradient(170deg, rgb(42 35 82 / 0.72), var(--glass) 78%); }
.card-news { order: -1; grid-column: span 6; }
.card-todo, .card-notes { grid-column: span 3; }
.card-concerts { order: 1; grid-column: span 6; }
.card-notes { order: 2; grid-column: span 6; }
.card-agenda { order: 3; grid-column: span 6; }
.card-charts { order: 4; grid-column: span 6; }
.board:not(:has(.card-agenda)) .card-charts { grid-column: 1 / -1; }
.card-todo { order: 0; grid-column: span 6; }
@media (max-width: 900px) {
  .card, .card-spotify, .card-weather, .card-news, .card-todo, .card-notes, .card-concerts, .card-agenda, .card-charts, .board:not(:has(.card-agenda)) .card-charts { grid-column: span 12; grid-row: auto; min-height: 0; }
  .card-station { grid-column: auto; }
}

/* The title link covers the whole card; links inside a card sit above it. */
.card-link { color: inherit; text-decoration: none; }
.card-link:hover { color: var(--accent); }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card a:not(.card-link) { position: relative; z-index: 1; }

.readout { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(3.4rem, 9vw, 5.6rem); line-height: 0.95; letter-spacing: -0.04em; color: var(--text); }
.card-mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.card-mini-list li { display: flex; align-items: baseline; gap: 10px; overflow-wrap: anywhere; }
.card-mini-list .number, .card-mini-list .tick { flex-shrink: 0; font-family: var(--mono); font-size: 0.7rem; color: var(--accent); }

/* Now-playing cards */
.now-playing { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.now-playing div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.now-playing strong { font-family: var(--display); font-size: 1.5rem; line-height: 1.1; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.art { position: relative; display: block; width: 100%; max-width: 230px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: radial-gradient(circle, var(--accent) 0 9%, #15101a 10% 12%, #2b2331 13% 15%, #15101a 16% 70%, #2b2331 71%); box-shadow: 0 14px 30px rgb(0 0 0 / 0.45); }
.art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.artist-link { color: var(--muted); text-decoration: none; }
.artist-link:hover { color: var(--accent); text-decoration: underline; }
.on-air { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.on-air.is-live { color: var(--hot); }
.on-air.is-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 10px var(--hot); animation: lamp 1.8s ease-in-out infinite; }
@keyframes lamp { 50% { opacity: 0.35; } }

/* Forms and buttons */
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 24px; }
label { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
input, select, textarea {
  font: inherit; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); max-width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.inline-form button, .stack-form button[value="save"] {
  padding: 11px 20px; border: 0; border-radius: 999px; background: var(--accent); color: #231507; font-family: var(--body); font-weight: 700; font-size: 0.95rem; cursor: pointer;
}
.inline-form button:hover, .stack-form button[value="save"]:hover { background: #ffc873; }
.link-button { padding: 4px 6px; border: 0; background: none; color: var(--muted); font-family: var(--mono); font-size: 0.68rem; cursor: pointer; }
.link-button:hover { color: var(--hot); }
.stack-form div { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.stack-form input, .stack-form textarea { width: 100%; }
.stack-form .actions { flex-direction: row; align-items: center; gap: 12px; }
.errorlist { margin: 0; padding-left: 16px; color: var(--hot); }
.notice { padding: 14px 16px; border-radius: 10px; border: 1px solid var(--border); border-left: 3px solid var(--hot); background: var(--surface); }

/* Lists, tasks, notes */
.list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.list li { display: flex; flex-direction: column; gap: 2px; }
.list a { color: var(--text); text-decoration: none; font-weight: 600; }
.list a:hover { color: var(--accent); }
.list li.task { flex-direction: row; align-items: center; gap: 12px; padding: 14px 18px; }
.list li.task .link-button:first-child, .task > span:first-child { color: var(--accent); font-size: 1.15rem; }
.task-title { flex: 1; font-size: 1.1rem; }
.task.is-done .task-title { text-decoration: line-through; color: var(--muted); }
.split { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.split .is-active { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.split h2 { margin-top: 0; font-size: 1.6rem; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* News */
.headlines { list-style: none; margin: 0; padding: 0; counter-reset: story; }
.headlines li { counter-increment: story; position: relative; padding: 18px 0 18px 64px; border-top: 1px solid var(--border); }
.headlines li::before { content: counter(story, decimal-leading-zero); position: absolute; left: 0; top: 16px; font-family: var(--mono); font-size: 1.1rem; color: var(--accent); }
.headlines a.headline { display: block; margin-bottom: 4px; font-family: var(--display); font-size: 1.35rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; color: var(--text); text-decoration: none; }
.headlines a.headline:hover { color: var(--accent); }
.headlines li:first-child a.headline { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.05; }
.headlines .meta a { color: var(--muted); }

/* Weather */
.sky { padding: 30px; border-radius: 20px; border: 1px solid var(--border); background: linear-gradient(135deg, #3b2570, #2a1a45 52%, var(--surface)); }
.sky h2 { margin: 0 0 12px; font-size: 1.5rem; }
.sky p { margin: 10px 0 0; color: #d6cfe6; }
.sky .big { margin: 0; color: var(--text); }
.week { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.week li { display: grid; grid-template-columns: 62px minmax(90px, 1.1fr) minmax(100px, 1.4fr) 130px; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.week strong { font-family: var(--mono); font-size: 0.8rem; font-weight: 500; text-transform: uppercase; color: var(--accent); }
.week .temps { font-family: var(--mono); font-size: 0.75rem; text-align: right; white-space: nowrap; }
.range { position: relative; height: 6px; border-radius: 3px; background: var(--raised); }
.range span { position: absolute; top: 0; bottom: 0; min-width: 8px; border-radius: 3px; background: linear-gradient(90deg, var(--cool), var(--accent)); }
.big { margin: 0; font-family: var(--display); font-size: clamp(3.4rem, 12vw, 7rem); font-weight: 800; line-height: 0.95; letter-spacing: -0.04em; }
@media (max-width: 620px) { .week li { grid-template-columns: 52px 1fr 120px; } .range { grid-column: 1 / -1; grid-row: 2; } }

/* Radio page */
.stations { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; align-items: start; }
.station { padding: 0; overflow: hidden; }
.station-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 20px; background: linear-gradient(180deg, #33193a, transparent); }
.station-head h2 { margin: 0; font-size: 2.3rem; font-weight: 800; }
.station-head .meta { color: var(--accent); }
.tracks { list-style: none; margin: 0; padding: 0; }
.track { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px 20px; border-top: 1px solid var(--border); }
.track .art { width: 52px; border-radius: 6px; box-shadow: none; }
.track-text { display: flex; flex-direction: column; min-width: 0; }
.track-text strong { font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.track .song-links { grid-column: 2 / -1; }
.track:first-child { grid-template-columns: 112px 1fr auto; padding-bottom: 16px; }
.track:first-child .art { width: 112px; border-radius: 8px; box-shadow: 0 10px 24px rgb(0 0 0 / 0.45); }
.track:first-child strong { font-family: var(--display); font-size: 1.5rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.track.is-playing { background: linear-gradient(90deg, rgb(255 77 141 / 0.11), transparent 70%); }

/* Song player: one round button per song, sharing a single audio element */
.play-button {
  --progress: 0;
  position: relative; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  color: #231507; background: conic-gradient(var(--hot) calc(var(--progress) * 1%), var(--accent) 0);
  transition: transform 0.12s;
}
.play-button:hover { transform: scale(1.08); }
.play-button::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }
.play-button svg { position: relative; width: 16px; height: 16px; fill: currentColor; }
.play-button .pause-icon { display: none; }
.play-button[aria-pressed="true"] .pause-icon { display: block; }
.play-button[aria-pressed="true"] .play-icon { display: none; }
.play-button:disabled { opacity: 0.4; cursor: not-allowed; }
.song-links { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.62rem; }
.song-links a { color: var(--muted); }
.song-links a:hover { color: var(--accent); }

.songs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.songs li { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.songs .art { width: 64px; border-radius: 6px; box-shadow: none; }
.songs .track-text strong { font-family: var(--display); font-size: 1.1rem; }
.songs .song-links { grid-column: 2 / -1; }

/* Artist page */
.artist { display: flex; flex-direction: column; gap: 42px; }
.artist-hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: end;
  padding: 30px; border-radius: 20px; border: 1px solid var(--border); background: linear-gradient(135deg, #3a1b35, var(--surface));
}
.artist-backdrop { position: absolute; inset: -40px; width: calc(100% + 80px); max-width: none; height: calc(100% + 80px); object-fit: cover; filter: blur(44px) saturate(1.3) brightness(0.42); }
.artist-photo { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: var(--raised); box-shadow: 0 22px 50px rgb(0 0 0 / 0.55); }
.artist-photo img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.artist-monogram { font-family: var(--display); font-size: 9rem; font-weight: 800; color: var(--accent); }
.artist-intro { position: relative; min-width: 0; }
.artist-kicker { margin: 0; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.artist-intro h1 { margin: 8px 0; font-size: clamp(2.6rem, 8vw, 5.4rem); line-height: 0.95; overflow-wrap: anywhere; }
.artist-note { margin: 0; color: #d8cfc2; }
.artist-facts { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 20px 0; }
.artist-facts div, .artist-ids div { display: flex; flex-direction: column; }
.artist-facts dt, .artist-ids dt { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: #c4b9a9; }
.artist-facts dd, .artist-ids dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.chips, .pills, .artist-actions { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 4px 11px; border-radius: 999px; font-family: var(--mono); font-size: 0.62rem; background: rgb(0 0 0 / 0.32); color: var(--text); border: 1px solid rgb(255 255 255 / 0.12); }
.chips-quiet li { background: none; border-color: var(--border); color: var(--muted); }
.artist-actions { margin-top: 18px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--border); background: rgb(0 0 0 / 0.28); color: var(--text); text-decoration: none; font-size: 0.88rem; }
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill-solid { background: var(--accent); border-color: var(--accent); color: #231507; font-weight: 700; }
.pill-solid:hover { color: #231507; background: #ffc873; }

.artist-section h2 { margin: 0 0 16px; font-size: 2rem; font-weight: 800; }
.artist-section h3 { margin: 0 0 10px; font-family: var(--mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.artist-about { max-width: 72ch; }
.artist-about p { margin: 0 0 14px; line-height: 1.65; }
.artist-about > p:first-child { font-size: 1.28rem; line-height: 1.45; }
.artist-about summary { cursor: pointer; margin-bottom: 12px; font-family: var(--mono); font-size: 0.7rem; color: var(--accent); }

.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.person { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.person div { display: flex; flex-direction: column; min-width: 0; }
.person a { font-weight: 600; color: var(--text); text-decoration: none; }
.person a:hover { color: var(--accent); }
.person.is-former { opacity: 0.72; }
.avatar { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; background: var(--accent-soft); color: var(--accent); }
.roles { font-size: 0.85rem; color: var(--muted); }

/* Discography: a record slides out of its sleeve on hover */
.releases { border-top: 1px solid var(--border); padding: 14px 0; }
.releases summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
.covers { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 26px 22px; }
.covers a { display: flex; flex-direction: column; gap: 3px; color: var(--text); text-decoration: none; }
.covers a:hover strong { color: var(--accent); }
.covers strong { margin-top: 6px; font-size: 0.92rem; line-height: 1.25; overflow-wrap: anywhere; }
.cover-sleeve { position: relative; display: block; aspect-ratio: 1; }
.cover-sleeve::before {
  content: ""; position: absolute; inset: 3%; border-radius: 50%; transition: transform 0.3s ease;
  background: radial-gradient(circle, var(--accent) 0 14%, #111 15% 17%, #1e1e1e 18% 19%, #111 20% 68%, #222 69% 70%, #111 71%);
}
.covers li:hover .cover-sleeve::before { transform: translateX(26%) rotate(40deg); }
.cover { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 4px; overflow: hidden; background: var(--raised); box-shadow: 0 8px 20px rgb(0 0 0 / 0.45); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-fallback { font-size: 2rem; color: var(--muted); }
.covers a.cover-source { display: inline; font-size: 0.6rem; color: var(--muted); text-decoration: underline; }

.link-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.artist-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.artist-details h2 { font-size: 1.1rem; }
.artist-details p { margin: 0; color: var(--muted); }
.artist-ids { display: flex; flex-direction: column; gap: 8px; margin: 0; }

@media (max-width: 760px) {
  .artist-hero { grid-template-columns: 1fr; padding: 20px; }
  .artist-photo { max-width: 240px; }
  .covers { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 20px 16px; }
  .track:first-child { grid-template-columns: 84px 1fr auto; }
  .track:first-child .art { width: 84px; }
  .art { max-width: 180px; }
  .headlines li { padding-left: 46px; }
}

/* "Please wait" overlay while an artist is fetched */
.loading-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgb(8 6 5 / 0.72); backdrop-filter: blur(4px); }
.loading-overlay[hidden] { display: none; }
.loading-box { max-width: 380px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 30px 26px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 24px 60px rgb(0 0 0 / 0.5); }
.spinner { width: 42px; height: 42px; border-radius: 50%; background: radial-gradient(circle, var(--accent) 0 16%, #15101a 17% 20%, #2b2331 21% 24%, #15101a 25% 100%); border: 1px solid var(--border); position: relative; animation: spin 1.4s linear infinite; }
.spinner::after { content: ""; position: absolute; top: 5px; left: 50%; width: 2px; height: 8px; background: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .on-air.is-live::before, .spinner, .brand-disc, .note, .beam, .site-menu a[aria-current="page"]::after { animation: none; }
  .card, .play-button, .cover-sleeve::before { transition: none; }
  .card:hover { transform: none; }
}

/* The coming days on the homepage weather card */
.mini-week { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; }
.mini-week li { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; padding: 9px 0; border-top: 1px solid rgb(255 255 255 / 0.09); font-size: 0.92rem; }
.mini-week strong { font-family: var(--mono); font-size: 0.68rem; font-weight: 500; text-transform: uppercase; color: var(--cool); }
.mini-week span:last-child { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); }

/* Home cards are numbered like the sides of an album */
.card h2::before { font-weight: 500; letter-spacing: 0.04em; color: var(--hot); }
.card-spotify h2::before { content: "A1"; }
.card-weather h2::before { content: "A2"; }
.card-news h2::before { content: "A3"; }
.card-todo h2::before { content: "B1"; }
.card-concerts h2::before { content: "B2"; }
.card-notes h2::before { content: "B3"; }
.card-agenda h2::before { content: "C1"; }
.card-charts h2::before { content: "C2"; }

/* Listen live, on the homepage card and the Radio page */
.now-playing .card-actions { position: relative; z-index: 1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.live-button {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--hot); color: #fff; font-family: var(--body); font-weight: 700; font-size: 0.92rem; transition: transform 0.12s;
}
.live-button:hover { transform: scale(1.04); }
.live-button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.live-button .when-playing { display: none; }
.live-button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.live-button[aria-pressed="true"]::before { border-radius: 1px; }
.live-button[aria-pressed="true"] .when-playing { display: inline; }
.live-button[aria-pressed="true"] .when-stopped { display: none; }
.live-button:disabled { opacity: 0.4; cursor: not-allowed; }
.station-tune { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; }
@media (prefers-reduced-motion: reduce) { .live-button { transition: none; } }

/* Spotify on the homepage: what is playing beside the playlist player */
.spotify-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 22px; flex: 1; align-items: start; }
.spotify-layout.is-single { grid-template-columns: 1fr; }
.spotify-playlist { position: relative; z-index: 1; display: block; width: 100%; border: 0; border-radius: 12px; }
.spotify-open { color: #57d98f; font-family: var(--mono); font-size: 0.68rem; margin-top: 8px; }
.spotify-open:hover { color: #8be9b4; }

/* Each station is its own card, under everything else */
.station-cards { order: 5; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card-station { grid-column: auto; }
.card-station .now-playing { flex-direction: row; align-items: center; gap: 16px; }
.card-station .art { flex: 0 0 150px; width: 150px; }
.card-station h2 { justify-content: flex-start; }
.card-station:nth-child(1) h2::before { content: "D1"; }
.card-station:nth-child(2) h2::before { content: "D2"; }
@media (max-width: 900px) {
  .station-cards, .spotify-layout { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .card-station .now-playing { flex-direction: column; align-items: flex-start; }
}

/* Stage lights sweep behind everything and glow through the see-through cards */
.stage-lights { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; filter: blur(28px); } /* blurred here because clip-path would cut a blur on the beams */
.beam {
  position: absolute; top: -12vh; width: 52vw; height: 135vh; transform-origin: 50% 0; opacity: 0.36; mix-blend-mode: screen;
  clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, var(--beam), transparent 82%);
  animation: sweep var(--speed) ease-in-out infinite alternate;
}
.beam-1 { --beam: #ff4d8d; --speed: 13s; --from: -24deg; --to: 12deg; left: -8vw; }
.beam-2 { --beam: #ffb54a; --speed: 17s; --from: 14deg; --to: -16deg; left: 22vw; animation-delay: -5s; }
.beam-3 { --beam: #9a86ff; --speed: 15s; --from: -14deg; --to: 18deg; left: 48vw; animation-delay: -9s; }
.beam-4 { --beam: #39d8c8; --speed: 19s; --from: 22deg; --to: -12deg; left: 72vw; animation-delay: -3s; }
@keyframes sweep {
  from { transform: rotate(var(--from)); }
  to { transform: rotate(var(--to)); }
}

/* Concerts */
.filter-pills, .week-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 24px; }
.pill.is-chosen { background: var(--accent); border-color: var(--accent); color: #231507; font-weight: 700; }
.shows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.show a { display: flex; flex-direction: column; gap: 3px; color: var(--text); text-decoration: none; }
.show a:hover strong { color: var(--accent); }
.show strong { margin-top: 8px; font-family: var(--display); font-size: 1.2rem; line-height: 1.15; }
.show-image { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--raised); }
.show-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.show-image time { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; align-items: center; padding: 5px 10px; border-radius: 8px; background: rgb(14 10 17 / 0.82); font-family: var(--mono); font-size: 0.6rem; text-transform: uppercase; color: var(--accent); }
.show-image time b { font-family: var(--display); font-size: 1.4rem; line-height: 1; color: var(--text); }

/* Agenda */
.agenda-day { margin-bottom: 22px; }
.agenda-day h2 { margin: 0 0 8px; font-size: 1.3rem; }
.list li.agenda-item { display: grid; grid-template-columns: 90px 1fr; gap: 0 14px; padding: 13px 18px; }
.agenda-time { font-family: var(--mono); font-size: 0.72rem; color: var(--accent); }
.agenda-item .meta { grid-column: 2; }

/* Charts */
.week-nav strong { font-family: var(--display); font-size: 1.2rem; }
.chart-station { margin-bottom: 34px; }
.chart-station > h2 { margin: 0 0 12px; font-size: 2.2rem; font-weight: 800; }
.chart-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.chart-columns h3 { margin: 0 0 10px; font-family: var(--mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.chart { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.chart li { display: grid; grid-template-columns: 34px 1fr auto auto; gap: 10px; align-items: center; }
.chart-rank { font-family: var(--display); font-size: 1.5rem; font-weight: 800; color: var(--accent); text-align: right; }
.chart-row { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.chart-row strong { line-height: 1.2; }
.chart-bar { display: block; height: 5px; margin-top: 5px; border-radius: 3px; background: var(--raised); }
.chart-bar span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--hot), var(--accent)); }
.chart .play-button { width: 34px; height: 34px; }

/* Listening */
.top-artists { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; }
.top-artists a { display: flex; flex-direction: column; gap: 3px; color: var(--text); text-decoration: none; }
.top-artists .art { max-width: none; border-radius: 50%; margin-bottom: 6px; }

/* About and How it's built */
.about-headline { max-width: 62ch; margin: 0 0 18px; font-size: 1.3rem; line-height: 1.4; color: #d8cfc2; }
.about-section { margin-top: 38px; }
.project-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.project-list h3 { margin: 0 0 6px; font-family: var(--display); font-size: 1.2rem; letter-spacing: -0.01em; text-transform: none; color: var(--text); }
.project-list h3 a { color: inherit; text-decoration: none; }
.project-list p { margin: 0 0 10px; color: #d8cfc2; }
.project-links { display: flex; gap: 14px; margin: 10px 0 0; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--glass); backdrop-filter: blur(6px); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; }
.compare th, .compare td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare thead th { font-family: var(--display); font-size: 1.15rem; color: var(--accent); }
.compare tbody th { font-family: var(--mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }

/* Long lists sit on glass, so the lights never run behind small text */
.chart-columns > div, .headlines { padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--glass); backdrop-filter: blur(6px); }
.headlines li:first-child { border-top: 0; }
.chart-row .artist-link strong { color: var(--text); }
.kicker, .source, .week-nav .meta, .site-footer { text-shadow: 0 1px 8px rgb(0 0 0 / 0.8); }

/* Choosing between several Spotify playlists */
.playlist-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.playlist-buttons .pill { padding: 4px 13px; font-family: var(--mono); font-size: 0.72rem; cursor: pointer; }

/* Links on homepage cards read as text until hovered */
.card-mini-list a { color: inherit; text-decoration: none; }
.card-mini-list a:hover { color: var(--accent); }
