:root {
  color-scheme: dark;
  --bg: #111516;
  --panel: #1c2222;
  --line: #394341;
  --fog: #afb9b0;
  --white: #eef3ec;
  --green: #c8f28d;
  --mint: #a5d6ba;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--white); font-family: system-ui, sans-serif; }
input, select, button { font: inherit; }
button, select, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .4; }
a { color: inherit; text-underline-offset: .24em; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
[hidden] { display: none !important; }
.shell { width: min(1136px, calc(100% - 64px)); margin-inline: auto; }
.masthead { border-bottom: 1px solid #303937; background: #171b1b; }
.top { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wordmark { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: .91rem; font-weight: 750; text-decoration: none; letter-spacing: .05em; }
.wordmark b { color: var(--mint); }
.mark { display: inline-flex; align-items: end; justify-content: center; gap: 2px; width: 28px; height: 21px; padding: 2px 4px; margin-right: 4px; border: 1px solid #62766b; }
.mark i { width: 3px; background: var(--mint); height: 42%; }
.mark i:nth-child(2) { height: 75%; }
.mark i:nth-child(3) { height: 96%; }
.mark i:nth-child(4) { height: 61%; }
.tuner { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.25rem, 4vw, 4rem); margin-top: 40px; padding: clamp(1.55rem, 4vw, 2.9rem); background: linear-gradient(125deg, #282f2e, #1b2121 80%); border: 1px solid #414a46; border-radius: 12px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.35rem, 5.2vw, 4.45rem); letter-spacing: -.075em; line-height: 1.02; font-weight: 730; }
.intro > p { color: var(--fog); max-width: 33ch; margin-top: 14px; line-height: 1.52; }
.year-controls { display: flex; align-items: end; gap: 9px; margin-top: 25px; }
.year-label { display: grid; gap: 6px; }
.year-label span { color: var(--mint); font: 700 .875rem var(--mono); }
.step, select, input { min-height: 44px; border: 1px solid #515f56; border-radius: 5px; color: var(--white); background: #141a19; }
.step { min-width: 44px; font: 1.5rem var(--mono); color: var(--green); }
.step:not(:disabled):hover, select:hover { background-color: #26342b; }
select { appearance: none; padding: 0 42px 0 14px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='none' stroke='%23a5d6ba' stroke-width='2' d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
#year { width: 143px; font: 750 1.09rem var(--mono); }
.monitor { display: grid; align-items: stretch; padding: 13px; background: #111716; border: 1px solid #3b4943; border-radius: 14px; box-shadow: 0 6px 18px #0c100e80, inset 0 1px 1px #66746a50; }
.screen { position: relative; display: grid; min-height: 176px; padding: 18px 20px 26px; overflow: hidden; place-items: center; border: 1px solid #56705b; border-radius: 9px; background: radial-gradient(ellipse, #314c34, #1b2e24 73%); color: var(--green); font-family: var(--mono); isolation: isolate; }
.screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; opacity: .55; background: repeating-linear-gradient(transparent 0 3px, #0d1a0f80 3px 4px); }
.screen-caption { top: 14px; left: 16px; right: 16px; position: absolute; display: flex; justify-content: space-between; font-size: .81rem; color: #d0e4c0; }
#screen-year { font-size: clamp(4.4rem, 9vw, 7.5rem); font-weight: 800; letter-spacing: -.09em; margin-right: .09em; line-height: 1; text-shadow: 0 0 24px #bcf79055; }
.trace { position: absolute; inset: auto 0 0; height: 22%; opacity: .38; z-index: -1; background: repeating-linear-gradient(90deg,#678d6a 0 1px, transparent 1px 18px),repeating-linear-gradient(0deg,#678d6a 0 1px, transparent 1px 13px); mask-image: linear-gradient(transparent, #000); }
.controls { display: flex; justify-content: space-between; gap: 12px; margin-block: 22px; }
.filters { display: flex; flex: 1; gap: 10px; }
#search { flex: 1; min-width: 0; max-width: 280px; padding: 0 11px; }
#search::placeholder { color: #aeb8ad; opacity: 1; }
.shuffle, .listen { background: var(--green); color: #15220f; min-height: 44px; border: 1px solid transparent; border-radius: 5px; padding: 10px 16px; font-size: .94rem; font-weight: 730; }
.shuffle:hover, .listen:hover { background: #e0ffbb; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(258px, 1fr); gap: 20px; align-items: start; }
.catalog, .cue-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.section-heading, .cue-heading { display: flex; min-height: 57px; justify-content: space-between; align-items: center; gap: 10px; padding: 0 17px; border-bottom: 1px solid var(--line); }
h2 { font-size: 1.03rem; }
#result-count { color: var(--fog); font-size: .86rem; }
.results { margin: 0; padding: 0; list-style: none; max-height: 560px; overflow: auto; }
.result + .result { border-top: 1px solid #333e3b; }
.result button { width: 100%; min-height: 65px; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 10px 16px; border: 0; text-align: left; color: inherit; background: transparent; }
.result button:focus-visible { outline-offset: -3px; }
.result button:hover { background: #29342c; }
.result button[aria-pressed="true"] { background: #2b392b; box-shadow: inset 3px 0 var(--green); }
.callsign { color: var(--mint); font: 750 .88rem var(--mono); }
.theme { display: block; font-size: .97rem; font-weight: 680; overflow-wrap: anywhere; }
.composer { display: block; color: var(--fog); margin-top: 3px; font-size: .86rem; overflow-wrap: anywhere; }
.market { color: var(--fog); text-align: right; font-size: .85rem; }
.full-list { display: block; padding: 15px 16px; border-top: 1px solid var(--line); color: var(--mint); font-size: .91rem; }
.empty { padding: 21px 16px; line-height: 1.45; }
.cue-panel { position: sticky; top: 14px; }
.cue-heading { justify-content: flex-start; }
.cue-indicator { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px #c8f28d55; }
#cue-details { padding: 20px 17px 16px; }
.cue-station { color: var(--mint); font: 700 .875rem var(--mono); }
h3 { font-size: 1.49rem; letter-spacing: -.035em; line-height: 1.18; margin-block: 7px; overflow-wrap: anywhere; }
.cue-meta, .cue-help { color: var(--fog); font-size: .9rem; line-height: 1.5; }
.listen, .station-link { display: block; margin: 0 17px; text-align: center; }
.listen { width: calc(100% - 34px); text-decoration: none; }
.station-link { color: var(--mint); padding-block: 12px 0; font-size: .9rem; }
.cue-help { margin: 13px 17px 17px; }
footer { color: var(--fog); font-size: .87rem; margin-block: 24px 34px; }
#player { width: min(950px, calc(100% - 28px)); max-height: calc(100% - 28px); padding: 0; border: 1px solid #69766c; border-radius: 8px; background: #181e1c; color: var(--white); overflow: auto; }
#player::backdrop { background: #070908db; }
.player-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.player-toolbar a { display: inline-block; margin-top: 4px; font-size: .875rem; color: var(--mint); }
.player-close { min-width: 42px; }
#youtube-player { display: block; width: 100%; aspect-ratio: 16 / 9; min-height: 200px; border: 0; background: #0a0b0a; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .tuner { margin-top: 22px; }
  .workspace { grid-template-columns: 1fr; gap: 14px; }
  .cue-panel { position: static; grid-row: 1; }
  .results { max-height: none; }
}
@media (max-width: 520px) {
  .tuner { grid-template-columns: 1fr; gap: 17px; }
  .screen { min-height: 117px; padding-top: 28px; padding-bottom: 7px; }
  .screen-caption { top: 10px; font-size: .75rem; }
  #screen-year { font-size: 4rem; }
  .controls { flex-direction: column; }
  .filters { display: grid; grid-template-columns: minmax(0, 1fr); }
  #search { width: 100%; max-width: none; }
  .result button { grid-template-columns: 51px minmax(0, 1fr); }
  .market { grid-column: 2; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
