/* ===== Tokens ===== */
:root {
    --accent: #ff3d7f;
    --accent2: #7c5cff;
    --bg: #0d0f1a;
    --bg2: #12152a;
    --card: #171a31;
    --card2: #1e2240;
    --line: #2a2f55;
    --text: #eef0ff;
    --muted: #9aa0c8;
    --ok: #2bd98a;
    --warn: #ffb547;
    --bad: #ff5468;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --grad: linear-gradient(135deg, var(--accent), var(--accent2));
    --player-h: 76px;
}

* { box-sizing: border-box; }
/* "hidden" must always win, even over components that set their own display (cookie notice, install button...). */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: var(--bg);
    background-image: radial-gradient(1000px 500px at 85% -10%, color-mix(in srgb, var(--accent2) 18%, transparent), transparent),
                      radial-gradient(800px 400px at -10% 10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent);
    background-attachment: fixed;
    color: var(--text);
    font-size: 16px;
    line-height: 1.55;
    padding-bottom: calc(var(--player-h) + 20px);
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.02em; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
code, .mono { font-family: ui-monospace, Consolas, monospace; font-size: .9em; }
code { background: var(--card2); padding: .1em .4em; border-radius: 6px; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.block { display: block; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; min-width: 0; }
.mt { margin-top: 1rem; }
.mb { margin-bottom: 1.25rem; }
.pad { padding: 1.25rem; }
.pad-h { padding: 1.1rem 1.25rem .4rem; margin: 0; }
.row { display: flex; align-items: center; }
.row.gap, .gap { gap: .75rem; }
.wrap-row { flex-wrap: wrap; }
.between { justify-content: space-between; }
.ico { width: 1.15em; height: 1.15em; fill: currentColor; vertical-align: -.2em; flex-shrink: 0; }

/* ===== Buttons & inputs ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45em;
    background: var(--grad); color: #fff; border: 0; border-radius: 999px;
    padding: .65em 1.3em; font: inherit; font-weight: 600; cursor: pointer;
    box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 35%, transparent);
    transition: transform .15s, filter .15s;
}
.btn:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.08); }
.btn-ghost { background: var(--card2); box-shadow: none; border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: .4em .95em; font-size: .88rem; }
.btn-lg { padding: .85em 1.6em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-danger { background: var(--bad); box-shadow: none; }
.btn-discord { background: #5865f2; box-shadow: none; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; font: inherit; }
.link-btn:hover { color: var(--bad); }
.link { color: var(--accent); font-weight: 600; }
.link-pill { display: inline-flex; align-items: center; gap: .35em; padding: .35em .85em; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); font-size: .88rem; }

.input {
    width: 100%; background: var(--bg2); color: var(--text); border: 1px solid var(--line);
    border-radius: 12px; padding: .7em .9em; font: inherit; outline: none; transition: border-color .15s;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.input-sm { padding: .4em .7em; font-size: .88rem; width: auto; }
.input-color { height: 44px; padding: 4px; max-width: 120px; }
select.input { cursor: pointer; }
textarea.input { resize: vertical; }
.form { display: flex; flex-direction: column; gap: 1rem; }
.form label:not(.check) { display: flex; flex-direction: column; gap: .35rem; font-weight: 500; font-size: .93rem; }
.label { font-weight: 500; font-size: .93rem; display: block; margin-bottom: .35rem; }
.check { display: flex; align-items: center; gap: .55rem; cursor: pointer; font-size: .93rem; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.grid-2.gap-sm, .grid-3.gap-sm { gap: .75rem; }
.checks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .6rem; }

.alert { padding: .8rem 1rem; border-radius: 12px; margin: 1rem 0; border: 1px solid; }
.alert-success { background: color-mix(in srgb, var(--ok) 12%, transparent); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.alert-error { background: color-mix(in srgb, var(--bad) 12%, transparent); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.alert-info { background: color-mix(in srgb, var(--accent2) 12%, transparent); border-color: color-mix(in srgb, var(--accent2) 40%, transparent); }
.alert a { text-decoration: underline; }

/* ===== Cards & grids ===== */
.card { background: color-mix(in srgb, var(--card) 92%, transparent); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
a.card { transition: transform .2s, border-color .2s; display: block; }
a.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); color: inherit; }
.card-body { padding: 1rem 1.1rem 1.2rem; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.5rem; margin-top: 2rem; }
.col-side { display: flex; flex-direction: column; gap: 1.25rem; }
.block { margin-bottom: 2rem; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.block-head h2 { margin: 0; }
.block-head a { color: var(--muted); font-size: .9rem; }

.chip { display: inline-block; font-size: .75rem; font-weight: 600; padding: .25em .7em; border-radius: 999px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: color-mix(in srgb, var(--accent) 55%, #fff); }
.chip-alt { background: color-mix(in srgb, var(--accent2) 22%, transparent); color: color-mix(in srgb, var(--accent2) 45%, #fff); }
.chip-warn, .chip-competition { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn); }
.chip-shoutout { background: color-mix(in srgb, var(--accent2) 22%, transparent); color: color-mix(in srgb, var(--accent2) 45%, #fff); }
.kicker { display: inline-flex; align-items: center; gap: .5em; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .5rem; }

.badge { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .3em .7em; border-radius: 6px; }
.badge-staff { --c: var(--accent); display: inline-flex; align-items: center; gap: .4em; background: var(--c); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.badge-staff:hover { color: #fff; }
.badge-tag { display: inline-flex; align-items: center; gap: .4em; }
.badge-staff .ico, .badge-tag .ico { width: 1.15em; height: 1.15em; }
.badge-staff .ico-fa, .badge-tag .ico-fa { font-size: 1em; width: auto; height: auto; }
/* Outfit sits its letters low in the line box, so a flex-centred icon looks a touch high next to the text: nudge it down to the letters' middle. */
.role-chip .ico, .badge-staff .ico, .badge-tag .ico { transform: translateY(.1em); }
.badge-vip { background: linear-gradient(135deg, #ffd56b, #ff9f43); color: #2b1a00; }
.badge-vet { background: #2e3561; color: #c9cffc; }
.badge:hover { color: inherit; filter: brightness(1.1); }

.av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--card2); flex-shrink: 0; }
.av-xs { width: 22px; height: 22px; }
.av-sm { width: 28px; height: 28px; }
.av-lg { width: 56px; height: 56px; }
.av-xl { width: 112px; height: 112px; border: 4px solid var(--bg); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 0 var(--bad); animation: pulse 1.6s infinite; }
.online-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--bad) 70%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.tabs.nomb { margin: 0; }
.tab { padding: .5em 1em; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .9rem; font-weight: 500; }
.tab.on { background: var(--grad); border-color: transparent; color: #fff; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: .7rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table th { color: var(--muted); font-weight: 500; font-size: .85rem; }
.table tr:last-child td { border-bottom: 0; }
.list-line { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.list-line:last-child { border-bottom: 0; }
.pager { display: flex; gap: .35rem; justify-content: center; margin: 2rem 0; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; text-align: center; padding: .4em .7em; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.pager .on { background: var(--grad); border-color: transparent; }
.search .input { min-width: 240px; }

/* ===== Header ===== */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
          transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease; }
/* Home page: the menu bar is part of the player. It's see-through at the top, with the player's blurred
   album art running up behind it; once you scroll, it goes back to the normal solid bar (app.js adds .scrolled). */
body.is-home .topbar:not(.scrolled) { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
body.is-home .stage { margin-top: -68px; padding-top: 68px; }
.topbar-in { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand-sm { font-size: 1.1rem; margin-bottom: .5rem; }
.nav { display: flex; align-items: center; gap: .25rem; flex: 1; }
.nav-account { margin-left: auto; display: flex; gap: .5rem; align-items: center; }
.dd { position: relative; }
.dd-btn, .nav-link { background: none; border: 0; color: var(--text); font: inherit; font-weight: 500; padding: .5em .8em; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; gap: .3em; }
.dd-btn:hover, .nav-link:hover, .dd.open .dd-btn { background: var(--card); color: var(--text); }
.dd-btn .ico { width: 1em; opacity: .6; }
.me-btn { gap: .5em; }
.dd-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .4rem; box-shadow: var(--shadow); display: none; flex-direction: column; }
.dd-right .dd-menu { left: auto; right: 0; }
.dd:hover .dd-menu, .dd.open .dd-menu, .dd:focus-within .dd-menu { display: flex; }
.dd:hover .dd-menu::before { content: ''; position: absolute; inset: -10px 0 auto; height: 10px; }
.dd-menu a, .dd-link { padding: .55em .8em; border-radius: 9px; font-size: .94rem; background: none; border: 0; color: var(--text); text-align: left; font: inherit; cursor: pointer; width: 100%; }
.dd-menu a:hover, .dd-link:hover { background: var(--card2); color: var(--text); }
.nav-toggle { display: none; margin-left: auto; background: var(--card); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: .45rem; cursor: pointer; }
.nav-toggle .ico { width: 24px; height: 24px; }

/* ===== Page heads & hero ===== */
.page-head { padding: 3rem 0 2rem; }
.page-head p { color: var(--muted); font-size: 1.1rem; max-width: 640px; }
.hero { padding: 2.5rem 0 1rem; }
.hero-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
.hero-np { display: flex; gap: 1.75rem; align-items: center; }
.hero-art { width: 220px; height: 220px; border-radius: 22px; object-fit: cover; box-shadow: 0 20px 60px color-mix(in srgb, var(--accent) 35%, transparent); flex-shrink: 0; background: var(--card2); }
.hero h1 { margin-bottom: .2rem; }
.hero-artist { font-size: 1.25rem; color: var(--muted); margin-bottom: 1.25rem; }
.slots { display: grid; gap: .75rem; }
.page-head + .wrap .slots { grid-template-columns: repeat(3, 1fr); }
.slot-card { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); position: relative; transition: border-color .2s; }
.slot-card:hover { border-color: var(--accent); color: inherit; }
.slot-card b { display: block; }
.slot-label { position: absolute; top: .7rem; right: .9rem; font-size: .68rem; font-weight: 800; letter-spacing: .12em; color: var(--muted); }
.slot-live { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--card)), var(--card)); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.slot-live .slot-label { color: var(--accent); }
.cta { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: 1.75rem 2rem; border-radius: var(--radius); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--card)), color-mix(in srgb, var(--accent2) 22%, var(--card))); border: 1px solid var(--line); margin-bottom: 2rem; }
.cta h2 { margin-bottom: .2rem; }
.cta p { margin: 0; color: var(--muted); }
.empty-state { padding: 6rem 0; }
.empty-state h1 { font-size: 5rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== Home: stage (now playing header) ===== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stage { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
/* Blurred album art behind the header. A new layer fades in over the old one when the song changes. */
.stage-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.stage-bg-layer { position: absolute; inset: -60px; background: center / cover; filter: blur(70px) saturate(1.3); opacity: 0; transition: opacity 1.5s ease; }
.stage-bg-layer.on { opacity: .28; }
/* Album art / presenter photo: shrinks, tilts and blurs out, then the new picture eases back in. */
.stage-art { transition: opacity .45s ease, transform .5s cubic-bezier(.2, .8, .2, 1), filter .45s ease; }
.stage-art.swapping { opacity: 0; transform: scale(.82) rotate(-6deg); filter: blur(8px); transition-timing-function: ease-in; }
/* Artist & title: the old line slides up and blurs away behind the mask, the new one rolls up letter by letter. */
.stage-song .stage-text b, .stage-song .stage-text > span { perspective: 400px; }
.stage-song .txt-out { transform: translateY(-75%); opacity: 0; filter: blur(5px); transition: transform .38s cubic-bezier(.5, 0, .75, 0), opacity .3s ease, filter .3s ease; }
.stage-song .txt-in .ch { display: inline-block; animation: ch-in .6s cubic-bezier(.2, .9, .25, 1.15) both; animation-delay: var(--d, 0ms); transform-origin: 50% 100%; }
/* Long header text scrolls left in a loop (see fitMarquee in app.js), fading softly at the edges. */
.stage-song .is-marquee, .pl-song .is-marquee { text-overflow: clip; text-align: left;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 92%, transparent); }
.stage-song .is-marquee .mq, .pl-song .is-marquee .mq { display: inline-flex; animation: mq-scroll var(--mq-dur, 12s) linear infinite; }
.stage-song .is-marquee .mq > span, .pl-song .is-marquee .mq > span { padding-right: 3rem; white-space: nowrap; }
/* The player bar styles every span; the scrolling copies just follow the line they're in. */
.pl-song .is-marquee .mq { overflow: visible; color: inherit; }
.pl-song .is-marquee .mq > span { display: inline; overflow: visible; padding-right: 2rem; color: inherit; font-size: inherit; }
@keyframes mq-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(var(--mq-dist, -50%)); } }
@media (prefers-reduced-motion: reduce) { .stage-song .is-marquee .mq { animation: none; } }
@keyframes ch-in {
    from { opacity: 0; transform: translateY(85%) rotateX(-75deg); filter: blur(6px); }
    60%  { opacity: 1; filter: blur(0); }
    to   { opacity: 1; transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) { .stage-bg-layer, .stage-art { transition: none; } }

/* DJ change: name fades out, then types in letter by letter (with a caret); role fades and slides up from below. */
/* Same layout for both sides of the header: big name line, then the smaller line directly underneath. */
.stage-text b { line-height: 1.2; }
.stage-text > span { line-height: 1.4; margin-top: .1rem; }
.stage-dj .stage-text > a { display: block; }
.stage-song .stage-text > span { text-transform: uppercase; letter-spacing: .04em; } /* song title in capitals (header player only) */
.stage-dj [data-np="dj-host"] { display: block; min-height: 1.2em; transition: opacity .35s ease; }
.stage-dj [data-np="dj-host"].dj-out { opacity: 0; }
.stage-dj [data-np="dj-host"].dj-typing::after { content: ''; display: inline-block; width: 2px; height: .9em; margin-left: 3px; vertical-align: -.05em; background: currentColor; animation: caret .7s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.stage-dj [data-np="dj-tagline"] { display: block; transition: opacity .5s ease, transform .5s cubic-bezier(.2, .8, .3, 1); }
.stage-dj [data-np="dj-tagline"].dj-hide { opacity: 0; transform: translateY(12px); }
.stage-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; padding: 2.25rem 0 1.75rem; }
.stage-song { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; min-width: 0; }
.stage-song:hover, .stage-dj a:hover { color: inherit; }
.stage-text { min-width: 0; }
.stage-text b { display: block; font-size: clamp(1.1rem, 2.2vw, 1.6rem); font-weight: 800; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-text > span { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-dj .stage-text b { color: var(--accent); }
.stage-art { width: 84px; height: 84px; border-radius: 16px; object-fit: cover; flex-shrink: 0; box-shadow: var(--shadow); background: var(--card2); }
.stage-art.round, img.round { border-radius: 50%; }
.stage-logo img { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 8px 24px color-mix(in srgb, var(--accent) 40%, transparent)); }
.stage-dj { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.stage-socials { display: flex; gap: .35rem; margin-top: .35rem; }
.stage-socials a { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; font-size: .68rem; font-weight: 700; color: var(--muted); }
.stage-socials a:hover { color: var(--accent); border-color: var(--accent); }
/* Music visualizer along the bottom of the stage: hidden until the listener presses play. */
.stage-in { position: relative; z-index: 1; padding-bottom: 3rem; }
.visualizer { display: block; position: relative; z-index: 0; width: 100%; height: 80px; margin-top: -80px; pointer-events: none; opacity: 0; transition: opacity .8s ease; }
.stage.is-playing .visualizer { opacity: 1; }
.controls { position: relative; z-index: 1; background: color-mix(in srgb, var(--bg2) 75%, transparent); border-top: 1px solid var(--line); }
.controls-in { display: flex; justify-content: center; align-items: center; gap: .5rem; padding: .65rem 0; flex-wrap: wrap; }
.ctl { display: inline-flex; align-items: center; gap: .4rem; height: 36px; min-width: 36px; justify-content: center; padding: 0 .7rem; border-radius: 8px; background: var(--card); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: .85rem; cursor: pointer; }
.ctl:hover { border-color: var(--accent); color: var(--text); }
.ctl:disabled { opacity: .45; cursor: default; }
/* Like / dislike in the header's control bar: same rounded-square shape as the other controls (not the pill-shaped player votes). */
.ctl.vote { border-radius: 8px; padding: 0 .7rem; height: 36px; font-size: .85rem; }
.ctl.on[data-vote="1"] { color: var(--ok); border-color: var(--ok); }
.ctl.on[data-vote="-1"] { color: var(--bad); border-color: var(--bad); }
/* Play button: the two icons cross-fade; the volume slider slides out only while playing. */
.ctl-playwrap { display: flex; align-items: center; margin: 0 .25rem; }
.ctl-play { position: relative; width: 44px; height: 44px; border-radius: 50%; padding: 0; background: var(--grad); border: 0; color: #fff; flex-shrink: 0; }
.ctl-play:hover { border: 0; filter: brightness(1.1); }
.ctl-play > span { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .3s ease, transform .3s ease; }
.ctl-play .ico { width: 24px; height: 24px; }
.ctl-play .i-pause { opacity: 0; transform: scale(.5) rotate(-90deg); }
.ctl-playwrap.playing .i-play { opacity: 0; transform: scale(.5) rotate(90deg); }
.ctl-playwrap.playing .i-pause { opacity: 1; transform: none; }
.ctl-volume { width: 0; opacity: 0; margin: 0; pointer-events: none; transition: width .4s ease, opacity .3s ease .1s, margin .4s ease; }
.ctl-playwrap.playing .ctl-volume { width: 110px; opacity: 1; margin: 0 .25rem 0 .75rem; pointer-events: auto; }
.ctl-playwrap:not(.playing) .ctl-volume { transition: width .35s ease .05s, opacity .2s ease, margin .35s ease .05s; }

/* Custom range slider used for every volume control. --fill is set by app.js. */
.range { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 6px; cursor: pointer; outline: none; border: 0;
         background: linear-gradient(90deg, var(--accent) 0 var(--fill, 80%), color-mix(in srgb, var(--text) 14%, transparent) var(--fill, 80%) 100%); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent); transition: transform .15s; }
.range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent); }
.range::-moz-range-track { background: transparent; }
.range:hover::-webkit-slider-thumb, .range:focus-visible::-webkit-slider-thumb { transform: scale(1.2); }
.range:focus-visible { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 50%, transparent); }
@media (prefers-reduced-motion: reduce) { .ctl-play > span, .ctl-volume { transition: none !important; } }
.ctl-heart { background: color-mix(in srgb, var(--accent) 20%, var(--card)); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.ctl-heart.on { background: var(--accent); color: #fff; }
.ctl-heart.pop { animation: pop .4s; }
/* Banned accounts: just the player and a notice; the song / DJ links go nowhere. */
.banned-notice { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .4rem; margin: 3rem auto; padding: 2.5rem 1.5rem; max-width: 560px; border-radius: var(--radius);
    background: linear-gradient(160deg, color-mix(in srgb, var(--bad) 16%, var(--card)), var(--card)); border: 1px solid color-mix(in srgb, var(--bad) 45%, var(--line)); }
.banned-notice h1 { margin: .3rem 0 0; font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--bad); }
.banned-notice p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.banned-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); }
.banned-ico .ico { width: 30px; height: 30px; }
.banned-me { display: inline-flex; align-items: center; gap: .5rem; margin-left: auto; font-weight: 600; }
.banned-tag { padding: .15rem .55rem; border-radius: 999px; background: color-mix(in srgb, var(--bad) 20%, transparent); color: var(--bad); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
body.is-banned .stage-song, body.is-banned .stage-dj a, body.is-banned .stage-logo, body.is-banned .pl-song, body.is-banned #pl-dj { pointer-events: none; cursor: default; }
/* Home control bar: while the radio is paused only the play button shows; the rest fold away beside it. */
.stage .controls-in > .ctl { max-width: 140px; overflow: hidden; white-space: nowrap;
    transition: max-width .45s ease, padding .45s ease, margin .45s ease, border-width .45s ease, min-width .45s ease, opacity .3s ease, transform .4s ease; }
.stage:not(.is-playing) .controls-in > .ctl { max-width: 0; min-width: 0; padding: 0; margin: 0 -.25rem; border-width: 0; opacity: 0; transform: scale(.6); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .stage .controls-in > .ctl { transition: none; } }
/* Request buttons when no DJ is streaming. */
[data-request].is-off { opacity: .4; filter: grayscale(1); cursor: not-allowed; }
[data-request].is-off:hover { border-color: var(--line); color: inherit; }
.ctl-static { cursor: default; color: var(--muted); }
.ctl-static:hover { border-color: var(--line); color: var(--muted); }

/* ===== Home: main grid ===== */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.75rem; margin-top: 1.75rem; }
/* Live / Next / Later: short wide strips with the avatar overlapping the top edge. */
.slot-time { display: none; }
/* The row is a strip of cards inside a clipped viewport, so it can slide left when the hour changes. */
.slots-viewport { overflow: hidden; padding-top: 1.4rem; margin-bottom: 1.75rem; }
.slots-row { display: flex; gap: 1rem; will-change: transform; }
.slots-row .slot-card { flex: 0 0 calc((100% - 2rem) / 3); min-width: 0; transition: opacity .6s ease, border-color .3s, background .3s; }
.slots-row .slot-card.slot-leaving { opacity: 0; }
.slots-row .slot-card b, .slots-row .slot-card .muted { transition: opacity .3s ease; }
.slots-row .slot-card.slot-refresh b { opacity: 0; }
.slots-row .slot-label { transition: color .3s; }
.slots-row .slot-card { flex-direction: column; justify-content: flex-end; gap: 0; padding: 0 .75rem .55rem; min-height: 64px; text-align: center; border-radius: 10px; }
.slots-row .slot-card .av-lg { width: 40px; height: 40px; margin-top: -20px; border: 3px solid var(--bg); }
.slots-row .slot-card > div { display: flex; align-items: center; justify-content: center; min-width: 0; max-width: 100%; margin-top: .3rem; }
.slots-row .slot-card b { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slots-row .slot-card .muted { display: none; }
.slots-row .slot-label, .slots-row .slot-time { display: block; position: absolute; top: .45rem; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.slots-row .slot-label { left: .7rem; right: auto; }
.slots-row .slot-time { right: .7rem; color: var(--muted); letter-spacing: .04em; }
.slots-row .slot-live b { color: var(--accent); }
/* The live dot sits beside the name (not inside it): the name clips overflow for its "…", which cut off the dot's pulse. */
.slots-row .slot-live > div::before { content: ''; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); margin-right: .55rem; animation: pulse 1.6s infinite; }
.line-title { display: flex; align-items: center; gap: .75rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: .9rem; flex: 1; }
.line-title::after { content: ''; flex: 1; border-top: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); }
.block-head .line-title { margin: 0; }
.block-head:has(.line-title) { gap: 1rem; margin-bottom: .9rem; }
.carousel { position: relative; aspect-ratio: 16 / 6; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.slide { position: absolute; inset: 0; display: grid; place-items: center; background: center / cover; opacity: 0; transition: opacity .6s; pointer-events: none; }
.slide.on { opacity: 1; pointer-events: auto; }
.slide:not([style]) { background: radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--accent2) 45%, transparent), transparent 60%), radial-gradient(circle at 80% 80%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 60%), var(--bg2); }
.slide-text { text-align: center; padding: 1.5rem 2rem; border: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 14px; margin: 1.5rem; background: rgba(13, 15, 26, .35); }
.slide-text b { display: block; font-size: clamp(1.4rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.slide-text span { color: var(--muted); }
.slide:hover { color: inherit; }
.dots { position: absolute; bottom: .75rem; left: 0; right: 0; display: flex; justify-content: center; gap: .35rem; z-index: 2; }
.dots button { width: 22px; height: 4px; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .3); cursor: pointer; padding: 0; }
.dots button.on { background: #fff; }
.news-big .article-img { aspect-ratio: 16 / 10; }
.news-big h3 { font-size: .98rem; margin: 0; text-align: center; }
.news-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-top: .9rem; }
.news-row { display: flex; align-items: center; gap: .8rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: .9rem; font-weight: 500; }
.news-row img { width: 72px; height: 52px; object-fit: cover; flex-shrink: 0; }
.news-row span { padding-right: .75rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-row:hover { border-color: var(--accent); color: inherit; }

/* ===== Home: sidebar ===== */
.home-side { display: flex; flex-direction: column; }
.home-side .block { margin-bottom: 1.5rem; }
/* Sidebar lists sit straight on the page background (no box around them). */
.scroller { position: relative; }
/* The browser's own scrollbar is hidden (it can't be styled consistently). app.js draws a thin
   bar (.scroll-thumb) instead, shown only while hovering a list that actually has more to scroll. */
.scroll-list { max-height: 300px; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; padding-right: .7rem;
               scrollbar-width: none; gap: .35rem; }
.scroll-list::-webkit-scrollbar { display: none; width: 0; height: 0; }
.scroll-thumb { position: absolute; top: 0; right: 0; width: 5px; min-height: 24px; border-radius: 5px; background: color-mix(in srgb, var(--text) 26%, transparent);
                opacity: 0; pointer-events: none; transition: opacity .25s ease, background .2s; touch-action: none; }
.scroller.can-scroll:hover .scroll-thumb, .scroll-thumb.dragging { opacity: 1; pointer-events: auto; cursor: grab; }
.scroll-thumb:hover, .scroll-thumb.dragging { background: color-mix(in srgb, var(--text) 42%, transparent); }
.scroll-thumb.dragging { cursor: grabbing; }
.scroll-list.tall { max-height: 320px; gap: .6rem; }

/* Recently played rows: artwork on the left, artist (bold caps) over title, centred,
   on a soft accent tint that fades into the page background. */
.mini-song { display: flex; align-items: center; gap: .6rem; padding: .3rem .5rem .3rem .3rem; border-radius: 6px;
             /* No visible edge: any border is transparent and the gradient is painted underneath it. */
             border: 1px solid transparent; outline: 0; box-shadow: none; background-origin: border-box; background-clip: border-box;
             /* Mixed with the solid page colour (not transparent), so the purple glow behind the sidebar
                can't show through: every row is always exactly the same accent tint. */
             background-image: linear-gradient(90deg, color-mix(in srgb, var(--accent) 16%, var(--bg)), color-mix(in srgb, var(--accent) 5%, var(--bg))); }
.mini-song img { width: 50px; height: 50px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.mini-song div { flex: 1; min-width: 0; text-align: center; }
.mini-song b, .mini-song span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-song b { font-size: .95rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.mini-song span { font-size: .82rem; color: var(--muted); margin-top: .1rem; }
/* Hover keeps the same background; just the artist name picks up the accent colour. */
.mini-song:hover { color: inherit; }
.mini-song b { transition: color .2s; }
.mini-song:hover b { color: var(--accent); }
.up-card { display: flex; flex-direction: column; justify-content: center; min-height: 92px; padding: 1rem 1.1rem; border-radius: 12px; background: center / cover; border: 1px solid var(--line); }
.up-card b { font-size: 1.15rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.up-card span { font-size: .78rem; color: var(--muted); }
.up-card:hover { border-color: var(--accent); color: inherit; }
.pills { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.pill { font-size: .78rem; font-weight: 700; padding: .3rem .7rem; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; }
.pill-blue { background: color-mix(in srgb, #3fa8ff 25%, var(--card)); color: #9fd3ff; }
.pill-green { background: color-mix(in srgb, var(--ok) 22%, var(--card)); color: #8ff0c2; }
.pill-discord { background: color-mix(in srgb, #5865f2 28%, var(--card)); color: #c4c9ff; }
.discord-card { padding: 1.1rem; display: flex; flex-direction: column; gap: .9rem; margin-bottom: 1rem; }
.discord-card b { display: flex; align-items: center; gap: .5rem; font-size: 1.2rem; }
.discord-card .ico { width: 28px; height: 28px; color: #8a94ff; }
.aff-text { gap: 3rem; animation-duration: 30s; }
.aff-text a { display: flex; flex-direction: column; align-items: center; white-space: nowrap; }
.aff-text b { font-size: 1.4rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.aff-text span { font-size: .78rem; color: var(--muted); }

/* ===== Home: community strip ===== */
.community-strip { margin-top: 2.5rem; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg2) 70%, transparent); padding: 1.5rem 0; }
main:has(.community-strip) + .footer { margin-top: 0; }
.strip-in { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 1rem; align-items: stretch; }
.strip-col { display: grid; gap: 1rem; min-width: 0; }
/* Stat tiles (most played / liked, top supporter / listener) */
.stat-tile { display: flex; align-items: center; gap: .9rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .75rem .9rem; min-width: 0; transition: border-color .2s, transform .2s, background .2s; }
a.stat-tile:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); background: var(--card2); transform: translateY(-2px); color: inherit; }
.stat-tile > img, .stat-ph { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex-shrink: 0; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.stat-tile > img.round { border-radius: 50%; }
.stat-ph { display: grid; place-items: center; background: var(--card2); color: var(--muted); box-shadow: none; }
.stat-ph .ico { width: 22px; height: 22px; opacity: .6; }
.stat-tile div { min-width: 0; }
.stat-tile small { display: flex; align-items: center; gap: .35rem; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: .1rem; }
.stat-tile small .ico { width: 12px; height: 12px; }
.stat-tile b, .stat-tile span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-tile b { font-size: .95rem; text-transform: uppercase; }
.stat-tile span { font-size: .8rem; color: var(--muted); }
.stat-tile.is-empty span { white-space: normal; }
/* Presenter of the month spotlight */
.spotlight { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .75rem; padding: 1.4rem 1rem 1.2rem; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
    background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), linear-gradient(160deg, color-mix(in srgb, var(--accent2) 18%, var(--card)), var(--card)); transition: transform .2s, box-shadow .2s; }
a.spotlight:hover { transform: translateY(-2px); box-shadow: 0 12px 34px color-mix(in srgb, var(--accent) 25%, transparent); color: inherit; }
.spot-badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; padding: .3rem .7rem; border-radius: 999px; background: var(--grad); color: #fff; }
.spot-badge .ico { width: 13px; height: 13px; }
.spot-av { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; padding: 3px; background: var(--grad); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.spot-av-empty { display: grid; place-items: center; background: var(--card2); border: 2px dashed var(--line); padding: 0; color: var(--muted); }
.spot-av-empty .ico { width: 34px; height: 34px; }
.spot-text b { display: block; font-size: 1.25rem; text-transform: uppercase; }
.spot-text span { display: block; font-size: .85rem; color: var(--muted); }
.spot-text .spot-stat { display: inline-flex; align-items: center; gap: .35rem; margin-top: .5rem; padding: .25rem .65rem; border-radius: 999px; background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); font-weight: 600; font-size: .8rem; }
.spot-stat .ico { width: 13px; height: 13px; }

/* ===== Articles ===== */
.article-img { aspect-ratio: 16 / 9; background: var(--card2) center / cover; position: relative; }
.article-img .chip { position: absolute; left: .75rem; top: .75rem; background: rgba(13, 15, 26, .75); color: #fff; backdrop-filter: blur(6px); }
.article-card h3 { margin-bottom: .35rem; }
.article-card p { margin-bottom: .75rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; color: var(--muted); font-size: .84rem; }
.meta a { display: inline-flex; align-items: center; gap: .4rem; }
.article-hero { background: var(--card2) center / cover; padding: 7rem 0 2rem; margin-bottom: 1.5rem; }
.article-hero h1 { margin: .75rem 0; }
.prose { font-size: 1.05rem; }
.prose h3 { margin-top: 1.5em; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose ul { padding-left: 1.25rem; }
.prose > :last-child { margin-bottom: 0; }
.article-body { font-size: 1.12rem; line-height: 1.75; }

.msg { display: flex; gap: .85rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.msg p { margin: .25rem 0 0; overflow-wrap: anywhere; }
.msg-form { display: flex; flex-direction: column; gap: .6rem; align-items: flex-end; margin: 1rem 0; }

/* ===== Songs ===== */
.song-list { display: flex; flex-direction: column; }
.song-row { display: flex; align-items: center; gap: .85rem; padding: .55rem .5rem; border-radius: 12px; }
.song-row:hover { background: var(--card2); color: inherit; }
.song-row img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: var(--card2); flex-shrink: 0; }
.song-row b, .song-row .muted { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-row .muted { font-size: .88rem; }
.song-list.big .song-row { padding: .7rem 1rem; border-radius: 0; border-bottom: 1px solid var(--line); }
.song-list.big .right { display: flex; flex-direction: column; align-items: flex-end; }
.votes-mini { color: var(--muted); font-size: .82rem; display: inline-flex; align-items: center; gap: .25rem; }
.song-head { position: relative; overflow: hidden; }
.song-head::before { content: ''; position: absolute; inset: -40px; background: var(--art) center / cover; filter: blur(60px) saturate(1.4); opacity: .35; z-index: -1; }
.profile-head { padding: 3rem 0 1rem; position: relative; z-index: 0; }
.profile-head-in { display: flex; gap: 2rem; align-items: center; }
.song-cover, .show-cover { width: 240px; height: 240px; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); flex-shrink: 0; background: var(--card2); }
/* Recurring show page: blurred banner + controls bar like the home page, then info / description / air time. */
.sh-banner-wrap { padding: 2rem 0; }
.sh-banner { aspect-ratio: 32 / 9; border-radius: 16px; border: 1px solid var(--line); background: var(--card) center / cover no-repeat; box-shadow: var(--shadow); }
.sh-banner-plain { display: grid; place-items: center; padding: 1rem; text-align: center;
    background: radial-gradient(60% 90% at 30% 40%, color-mix(in srgb, var(--accent) 28%, transparent), transparent), radial-gradient(60% 90% at 70% 60%, color-mix(in srgb, var(--accent2) 30%, transparent), transparent), var(--card); }
.sh-banner-plain h1 { margin: 0; font-size: clamp(1.8rem, 6vw, 3.6rem); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.sh-hero .ctl .av-sm { width: 22px; height: 22px; }
.sh-hero .ctl.sh-live { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.sh-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr) 280px; gap: 1.5rem; align-items: start; margin-top: 2rem; }
.sh-side { display: grid; gap: 1rem; }
.sh-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.1rem 1.2rem; text-align: center; }
.sh-card.is-live { border-color: var(--accent); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 18%, var(--card)), var(--card)); }
.sh-card h4 { display: flex; align-items: center; justify-content: center; gap: .4rem; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 1rem; }
.sh-card h4 .ico { width: 14px; height: 14px; color: var(--accent); }
.sh-card .p-side-list { text-align: left; }
.sh-info { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.sh-info + .sh-info { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.sh-info > span { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.sh-info b { text-transform: uppercase; }
.sh-info small { font-size: .78rem; color: var(--muted); }
.sh-host { display: inline-flex; align-items: center; gap: .5rem; }
.sh-host .av-sm { width: 26px; height: 26px; }
.sh-main .line-title { margin-top: 0; }
.sh-after { margin-top: 3rem; }
.sh-desc { text-align: center; }
.sh-air { margin: 0 0 1rem; font-size: .95rem; color: var(--muted); }
.sh-air b { color: var(--text); }
.sh-accent { color: var(--accent); font-weight: 700; }
.sh-when { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.sh-when > div { padding: .55rem .4rem; border-radius: 10px; background: var(--card2); }
.sh-when span { display: block; font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.sh-when b { font-size: .88rem; }
@media (max-width: 1100px) { .sh-grid { grid-template-columns: 1fr 1fr; } .sh-main { grid-column: 1 / -1; order: -1; } }
@media (max-width: 640px) { .sh-grid { grid-template-columns: 1fr; margin-top: 1.5rem; } .sh-banner-wrap { padding: 1.25rem 0; } .sh-banner { aspect-ratio: 16 / 7; border-radius: 12px; } }
.active-avs { display: flex; flex-wrap: wrap; gap: .35rem; }
.active-avs .av { width: 38px; height: 38px; border: 2px solid var(--line); }
.active-avs a:hover .av { border-color: var(--accent); }
.host-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem .4rem .4rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); margin-top: .5rem; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.info-grid > div { display: flex; flex-direction: column; background: var(--bg2); padding: .8rem 1rem; border-radius: 12px; }
.preview-audio { width: 100%; }

/* ===== Upcoming / timetable ===== */
.upcoming { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.up-item { display: flex; gap: .85rem; align-items: center; padding: .75rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.up-item b, .up-item .muted { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-when { display: flex; flex-direction: column; align-items: center; min-width: 48px; padding-right: .85rem; border-right: 1px solid var(--line); }
.up-when b { color: var(--accent); font-size: .8rem; text-transform: uppercase; }
.up-when span { font-weight: 700; }
/* Day tabs stretched evenly across the full width (timetable). */
.tabs-fill { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: .6rem; margin-bottom: 1.5rem; }
.tabs-fill .tab { text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 10px; padding: .65em .5em; font-weight: 600; font-size: .85rem; }
.tabs-fill .tab:not(.on):hover { border-color: var(--accent); color: inherit; }
/* Timetable: 24 compact rows in two columns, filled top-to-bottom (left column first). */
.tt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(12, auto); grid-auto-flow: column; gap: .6rem 1.5rem; }
.tt-row { position: relative; display: flex; align-items: center; gap: .75rem; padding: .5rem .85rem .5rem .55rem; min-height: 54px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); transition: border-color .2s; }
.tt-row:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.tt-row.past { opacity: .45; }
.tt-row.live { border-color: var(--accent); background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 20%, var(--card)), var(--card)); }
.tt-row.tt-auto .tt-who b { color: var(--muted); font-weight: 500; }
.tt-row.tt-booking .tt-who b { color: var(--accent2); }
.tt-row.live .tt-who b { color: var(--accent); }
.tt-who { display: flex; align-items: center; gap: .7rem; min-width: 0; flex: 1; }
.tt-who .av { width: 34px; height: 34px; flex-shrink: 0; }
.tt-who b { display: flex; align-items: center; gap: .45rem; min-width: 0; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-who .live-dot { flex-shrink: 0; }
.tt-time { flex-shrink: 0; font-size: .8rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.tt-act { flex-shrink: 0; margin: 0; }
.tt-act .btn-sm { padding: .3em .75em; font-size: .75rem; }
.tt-book summary { list-style: none; cursor: pointer; }
.tt-book summary::-webkit-details-marker { display: none; }
.tt-book[open] summary { border-color: var(--accent); color: var(--accent); }
.tt-book-form { position: absolute; z-index: 20; top: calc(100% + .4rem); right: 0; width: min(320px, 100%); display: grid; gap: .45rem; padding: .75rem; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tt-book-form .input { width: 100%; }

/* ===== Community ===== */
.user-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.user-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; padding: 1.25rem .75rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s, border-color .2s; }
.user-card:hover { transform: translateY(-3px); border-color: var(--accent); color: inherit; }
.user-card .av-lg { width: 72px; height: 72px; }
.group-title { padding-left: .75rem; border-left: 4px solid var(--accent); }

/* Instant tooltips: add class="tip" data-tip="Label" (the browser's own title tooltip has a built-in delay). */
.tip { position: relative; }
.tip::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 3px); z-index: 90;
              padding: .3rem .6rem; border-radius: 7px; background: #0b0d18; border: 1px solid var(--line); box-shadow: var(--shadow);
              color: #fff; font: 600 .75rem/1.3 'Outfit', system-ui, sans-serif; letter-spacing: 0; text-transform: none; white-space: nowrap;
              opacity: 0; pointer-events: none; transition: opacity .08s ease, transform .08s ease; }
.tip-below::after { bottom: auto; top: calc(100% + 8px); transform: translate(-50%, -3px); }
.tip:hover::after, .tip:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

/* Staff team page: wide cards, three per row, coloured by each person's highest role */
.staff-search { max-width: 320px; }
.staff-tier .ico { width: 1.15em; height: 1.15em; }
.staff-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.staff-card { --c: #8a90b8; position: relative; display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; border-radius: 12px;
              background: linear-gradient(100deg, color-mix(in srgb, var(--c) 9%, var(--card)), var(--card) 60%); border: 1px solid var(--line);
              transition: transform .2s, border-color .2s; }
.staff-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 60%, var(--line)); color: inherit; }
.sc-av { position: relative; flex-shrink: 0; }
.sc-av img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; display: block; background: var(--card2); border: 2px solid color-mix(in srgb, var(--c) 50%, var(--line)); }
.sc-online { position: absolute; right: 0; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: var(--ok); border: 2px solid var(--card); }
.sc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.sc-name { display: flex; align-items: center; gap: .4rem; color: var(--c); font-size: 1.08rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; min-width: 0; }
.sc-name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-name .ico { width: 18px; height: 18px; flex-shrink: 0; }
.sc-roles { display: flex; gap: .45rem; align-items: center; }
.sc-roles > .tip { color: #fff; display: inline-flex; } /* role icons are always pure white */
.sc-roles .ico { width: 15px; height: 15px; }
.sc-region { position: absolute; right: 1rem; bottom: .55rem; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); opacity: .7; }
@media (max-width: 1000px) { .staff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .staff-grid { grid-template-columns: 1fr; } }
.board { list-style: none; margin: 0; padding: .25rem .75rem .75rem; }
.board li { display: flex; align-items: center; gap: .75rem; padding: .55rem .5rem; border-bottom: 1px solid var(--line); }
.board li:last-child { border-bottom: 0; }
.board li a { display: flex; align-items: center; gap: .6rem; flex: 1; min-width: 0; }
.board .rank { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--card2); font-size: .82rem; font-weight: 700; flex-shrink: 0; }
.board .top-1 .rank { background: linear-gradient(135deg, #ffd56b, #ff9f43); color: #2b1a00; }
.board .top-2 .rank { background: #c9cfe6; color: #1b1e33; }
.board .top-3 .rank { background: #d69a6a; color: #2b1400; }
.stat-pair { display: flex; gap: 1.5rem; margin: .5rem 0 1rem; }
.stat-pair b { display: block; font-size: 1.6rem; }

.cover { height: 260px; background: var(--card2) center / cover; }
.profile { margin-top: -70px; position: relative; }
.profile-top { display: flex; gap: 1.25rem; align-items: flex-end; flex-wrap: wrap; }
.profile-top h1 { margin-bottom: .25rem; display: flex; align-items: center; gap: .5rem; }
.profile-badges { gap: .4rem; margin-bottom: .35rem; }
.top5 { margin: 0; padding-left: 1.25rem; }
.top5 li { padding: .3rem 0; }

/* ---------- Profile: built like the home page header (blurred art behind a see-through menu bar, controls strip) ---------- */
.p-hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
body.is-home .p-hero { margin-top: -68px; padding-top: 68px; }
.p-hero-bg { position: absolute; inset: -60px; z-index: -2; background: center / cover; filter: blur(70px) saturate(1.3); opacity: .32; }
.p-hero-cover { position: absolute; inset: 0; z-index: -1; background: center / cover; opacity: .22;
                mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.p-hero-in { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2.5rem 0 2.25rem; flex-wrap: wrap; }
.p-who { display: flex; align-items: center; gap: 1.4rem; min-width: 0; }
.p-av { position: relative; flex-shrink: 0; }
.p-av .stage-art { width: 128px; height: 128px; border-radius: 20px; }
.p-online { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--ok); border: 4px solid var(--bg); }
.p-text { min-width: 0; }
.p-name { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; overflow-wrap: anywhere; }
.p-role { display: block; margin-top: .15rem; font-size: 1.05rem; font-weight: 600; color: color-mix(in srgb, var(--c, var(--accent)) 70%, #fff); }
.p-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.p-pronouns { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .55rem; }
.p-pronouns span { font-size: .75rem; font-weight: 600; padding: .2rem .55rem; border-radius: 6px; background: color-mix(in srgb, var(--card) 70%, transparent); border: 1px solid var(--line); color: var(--muted); }
.p-stats { display: flex; gap: .6rem; flex-wrap: wrap; }
.p-stat { min-width: 104px; padding: .75rem 1rem; border-radius: 12px; text-align: center; background: color-mix(in srgb, var(--card) 65%, transparent); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.p-stat b { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.p-stat span { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
a.p-stat:hover { border-color: var(--accent); color: inherit; }
a.p-stat:hover b { color: var(--accent); }
.p-hero .controls-in { justify-content: flex-start; }
.p-hero .ctl .online-dot { width: 8px; height: 8px; }
.p-bio { font-size: 1rem; }
.p-bio > :last-child { margin-bottom: 0; }
.p-side-list { display: flex; flex-direction: column; gap: .5rem; }
.p-show { min-height: 0; padding: .7rem .9rem; border-radius: 10px; }
.p-show b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-article { border-radius: 10px; font-size: .86rem; }
.p-article img { width: 64px; height: 48px; }
.p-article span { display: flex; flex-direction: column; min-width: 0; padding-right: .75rem; -webkit-line-clamp: unset; }
.p-article b { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.p-article small { color: var(--muted); font-size: .74rem; margin-top: .1rem; }
.p-show-plain { background-image: linear-gradient(120deg, color-mix(in srgb, var(--accent) 22%, var(--card)), var(--card)); }
.p-msg-form { display: flex; align-items: flex-start; gap: .65rem; margin-bottom: 1rem; }
.p-msg-form .av { width: 40px; height: 40px; flex-shrink: 0; }
.p-msg-form textarea { flex: 1; min-height: 42px; resize: vertical; }
.p-msg-form .btn { height: 42px; }
.p-msgs { display: flex; flex-direction: column; gap: .6rem; }
.p-msg { display: flex; gap: .8rem; padding: .85rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.p-msg .av { width: 40px; height: 40px; }
.p-msg p { margin: .25rem 0 0; overflow-wrap: anywhere; }
.p-msg-name { font-weight: 700; }
.p-top5 { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
/* Account Settings song pickers (Top 5): Recently Played-style rows you click to search. */
.sp-list { display: grid; gap: .45rem; margin-top: .4rem; }
.sp-slot { display: flex; align-items: center; gap: .6rem; }
.sp-n { width: 26px; height: 26px; flex-shrink: 0; display: grid; place-items: center; border-radius: 7px; background: var(--grad); color: #fff; font-size: .8rem; font-weight: 800; }
.sp-pick { flex: 1; min-width: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.sp-slot:not(.has-song) .sp-pick { background-image: none; background: var(--card2); border: 1px dashed var(--line); }
.sp-slot:not(.has-song) .sp-pick img { opacity: .5; }
.sp-slot:not(.has-song) .sp-pick b { color: var(--muted); }
.sp-pick:hover { border-color: var(--accent); }
.sp-clear { flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer; }
.sp-clear:hover { color: var(--bad); border-color: var(--bad); }
.sp-clear .ico { width: 16px; height: 16px; }
.sp-box { width: min(520px, 100%); }
h2.sp-head { text-align: center; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0 0 1rem; }
.sp-search { display: flex; align-items: center; gap: .6rem; padding: 0 .9rem; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); }
.sp-search:focus-within { border-color: var(--accent); }
.sp-search span { color: var(--accent); font-size: 1.1rem; }
.sp-search input { flex: 1; min-width: 0; padding: .75rem 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-weight: 600; }
.sp-results { display: grid; gap: .4rem; margin-top: .8rem; max-height: min(420px, 55vh); overflow-y: auto; padding-right: .25rem; }
.sp-results .mini-song { width: 100%; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.sp-results .mini-song:hover, .sp-results .mini-song:focus-visible { border-color: var(--accent); outline: 0; }
/* Top 5 rows use the Recently Played look (.mini-song), with the rank as a small badge on the artwork. */
.p-top5 li { min-width: 0; }
.mini-song .p-top5-art { position: relative; flex-shrink: 0; display: block; overflow: visible; margin: 0; }
.p-top5-art img { display: block; }
.mini-song .p-top5-n { position: absolute; left: -4px; top: -4px; margin: 0; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px;
    background: var(--grad); color: #fff; font-size: .7rem; font-weight: 800; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.p-details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .25rem 1rem; }
.p-details > div { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .65rem 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.p-details > div:last-child { border-bottom: 0; }
.p-details span { color: var(--muted); }
.p-details b { font-weight: 600; text-align: right; display: inline-flex; align-items: center; gap: .4rem; }
@media (max-width: 640px) {
    .p-hero-in { padding: 1.75rem 0 1.5rem; gap: 1.25rem; }
    .p-who { flex-direction: column; text-align: center; width: 100%; }
    .p-badges, .p-pronouns { justify-content: center; }
    .p-av .stage-art { width: 104px; height: 104px; }
    .p-stats { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .p-stat { min-width: 0; padding: .6rem .5rem; }
    .p-stat span { letter-spacing: .06em; }
    .p-hero .controls-in { justify-content: center; }
}

/* ===== Misc pages ===== */
.faq { display: flex; flex-direction: column; gap: .75rem; }
.faq details { padding: 0; }
.faq summary { padding: 1.1rem 1.25rem; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq .prose { padding: 0 1.25rem 1.1rem; color: var(--muted); }
.aff-card { display: flex; align-items: center; gap: 1rem; padding: 1.1rem; }
.aff-card img { width: 56px; height: 56px; border-radius: 12px; object-fit: contain; background: var(--bg2); }
.aff-card div { flex: 1; display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; }
.aff-initial { width: 44px; height: 44px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; flex-shrink: 0; }
.aff-initial.big { width: 56px; height: 56px; font-size: 1.5rem; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 1rem; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.aff { display: flex; align-items: center; gap: .75rem; padding: .75rem 1.1rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; min-width: 220px; }
.aff img { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; }
.aff b, .aff span { display: block; }
@keyframes marquee { to { transform: translateX(calc(-50% - .5rem)); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; } .live-dot { animation: none; } }
.merch-img { aspect-ratio: 1; background: var(--card2) center / cover; }
.merch-card .card-body { display: flex; flex-direction: column; }
.price { color: var(--accent); font-weight: 700; }
.show-img { aspect-ratio: 16 / 10; background: var(--card2) center / cover; }
.way-card { display: flex; flex-direction: column; align-items: flex-start; }
.way-card p { flex: 1; }
.way-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; margin-bottom: .75rem; }
.way-ico .ico { width: 24px; height: 24px; }
.res-card img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; margin-bottom: .75rem; }
.code-copy { display: flex; gap: .5rem; align-items: center; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: .5rem .5rem .5rem 1rem; }
.code-copy pre { margin: 0; flex: 1; overflow-x: auto; }
.code-copy code { background: none; padding: 0; }
.logo-dl { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1.25rem; border-radius: 14px; background: #f3f4ff; color: #1b1e33; width: 180px; }
.logo-dl.dark { background: #0b0d18; color: #fff; border: 1px solid var(--line); }
.logo-dl img { height: 64px; }
.cmd-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .5rem 1.5rem; }
.cmd { display: flex; gap: .75rem; align-items: baseline; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.cmd code { color: var(--accent); white-space: nowrap; }
.job h4 { margin: 1rem 0 .5rem; }
.checks { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.checks li { padding: .25rem 0 .25rem 1.6rem; position: relative; }
.checks li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.quote blockquote { margin: 0 0 1rem; font-size: 1.05rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.stat { padding: 1.25rem; }
.stat b { display: block; font-size: 2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth { display: grid; place-items: center; padding: 3rem 0; }
.auth-card { width: min(520px, 100%); }

/* ===== Chart ===== */
.chart { display: grid; grid-template-columns: 36px 1fr; grid-template-rows: 220px auto; gap: 0 .5rem; margin-top: 1rem; }
.chart-y { display: flex; flex-direction: column; justify-content: space-between; text-align: right; font-size: .75rem; color: var(--muted); }
.chart-plot { display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(180deg, transparent 0 calc(50% - 1px), color-mix(in srgb, var(--line) 50%, transparent) calc(50% - 1px) 50%); }
.bar-slot { flex: 1; height: 100%; display: flex; align-items: flex-end; position: relative; cursor: default; outline: none; }
.bar { width: 100%; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 0; transition: filter .15s; }
.bar-slot:hover .bar, .bar-slot:focus .bar { filter: brightness(1.25); }
.bar-slot:hover::after, .bar-slot:focus::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--card2); border: 1px solid var(--line); padding: .3rem .6rem; border-radius: 8px; font-size: .78rem; white-space: nowrap; z-index: 2; pointer-events: none; }
.bar-slot:hover::before { content: ''; position: absolute; inset: 0; background: color-mix(in srgb, var(--text) 5%, transparent); border-radius: 4px; }
.chart-x { display: flex; font-size: .72rem; color: var(--muted); padding-top: .35rem; }
.chart-x span { flex: 1; white-space: nowrap; overflow: visible; }

/* ===== Footer & floaters ===== */
.footer { border-top: 1px solid var(--line); margin-top: 4rem; padding: 2.5rem 0; background: color-mix(in srgb, var(--bg2) 80%, transparent); }
.footer-in { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; align-content: flex-start; color: var(--muted); }
.socials { display: flex; gap: .9rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
/* --player-space is 0 while the bottom player is tucked away (home page header in view). */
body { --player-space: var(--player-h); }
body.player-off { --player-space: 0px; }
.floaters { position: fixed; right: 16px; bottom: calc(var(--player-space) + 12px); transition: bottom .4s ease; display: flex; flex-direction: column; gap: .5rem; z-index: 40; align-items: flex-end; }
.cookie { position: fixed; left: 16px; bottom: calc(var(--player-space) + 12px); transition: bottom .4s ease; z-index: 45; max-width: 420px; display: flex; gap: 1rem; align-items: center; background: var(--card); border: 1px solid var(--line); padding: .85rem 1rem; border-radius: 14px; box-shadow: var(--shadow); font-size: .9rem; }
.cookie a { color: var(--accent); }
.toast { position: fixed; left: 50%; top: 84px; transform: translateX(-50%); background: var(--card2); border: 1px solid var(--line); padding: .7rem 1.2rem; border-radius: 12px; box-shadow: var(--shadow); z-index: 120; font-weight: 500; }
.toast.ok { border-color: var(--ok); }
.toast.err { border-color: var(--bad); }

/* ===== Player ===== */
.player { position: fixed; left: 0; right: 0; bottom: 0; height: var(--player-h); z-index: 60; background: color-mix(in srgb, var(--bg2) 92%, transparent); backdrop-filter: blur(16px); border-top: 1px solid var(--line);
          transition: opacity .4s ease, transform .4s ease, visibility 0s linear 0s; }
/* On the home page the bottom player hides while the header's own play button is on screen. */
.player.is-hidden { opacity: 0; transform: translateY(100%); visibility: hidden; pointer-events: none; transition: opacity .4s ease, transform .4s ease, visibility 0s linear .4s; }
@media (prefers-reduced-motion: reduce) { .player, .player.is-hidden, .floaters, .cookie { transition: none; } }
.player-in { height: 100%; display: flex; align-items: center; gap: 1.1rem; }
.pl-play { width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 45%, transparent); }
.pl-play .ico { width: 26px; height: 26px; }
.pl-play.loading { animation: spinpulse 1s infinite alternate; }
@keyframes spinpulse { to { filter: brightness(1.4); transform: scale(.94); } }
.pl-song { display: flex; align-items: center; gap: .75rem; min-width: 0; flex: 1; }
.pl-song img { width: 50px; height: 50px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--card2); }
.pl-song div { min-width: 0; }
.pl-song b, .pl-song span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-song span { color: var(--muted); font-size: .9rem; }
.pl-votes { display: flex; gap: .35rem; }
.vote { display: inline-flex; align-items: center; gap: .35rem; background: var(--card); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: .35rem .7rem; cursor: pointer; font: inherit; font-size: .85rem; }
.vote:hover { color: var(--text); }
.vote.on[data-vote="1"] { color: var(--ok); border-color: var(--ok); }
.vote.on[data-vote="-1"] { color: var(--bad); border-color: var(--bad); }
.pl-votes.big .vote { padding: .55rem 1rem; font-size: 1rem; }
.pl-dj { display: flex; align-items: center; gap: .6rem; padding-left: 1rem; border-left: 1px solid var(--line); min-width: 0; }
.pl-dj small { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.pl-dj a { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 160px; }
.pl-heart { background: none; border: 0; color: var(--muted); cursor: pointer; padding: .3rem; border-radius: 50%; }
.pl-heart .ico { width: 22px; height: 22px; }
.pl-heart:hover, .pl-heart.on { color: var(--accent); }
.pl-heart.pop { animation: pop .4s; }
@keyframes pop { 50% { transform: scale(1.4); } }
.pl-listeners { display: flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .9rem; }
.pl-vol { display: flex; align-items: center; gap: .4rem; }
.pl-vol button { background: none; border: 0; color: var(--muted); cursor: pointer; }
.pl-vol input { width: 90px; }
.pl-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .8rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .88rem; }

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(5, 6, 14, .7); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-box { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 1.5rem; box-shadow: var(--shadow); animation: rise .2s ease-out; }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }
.modal-x { position: absolute; right: 12px; top: 12px; background: var(--card2); border: 0; color: var(--text); border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; }
.modal-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.25rem; padding-right: 2rem; }
.modal-head h2 { margin: 0; }
/* Panel → Assign Roles: one row per member with a toggle chip for each role you can give. */
.as-list { display: grid; gap: .6rem; }
.as-row { display: flex; align-items: center; gap: 1rem; padding: .7rem 1rem; flex-wrap: wrap; }
.as-who { display: flex; align-items: center; gap: .7rem; min-width: 200px; flex: 0 1 260px; }
.as-who span { min-width: 0; }
.as-who b, .as-who small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-roles { display: flex; flex-wrap: wrap; gap: .4rem; flex: 1; }
.as-chip { position: relative; cursor: pointer; }
.as-chip input { position: absolute; opacity: 0; pointer-events: none; }
.as-chip span { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card2); font-size: .8rem; font-weight: 600; color: var(--muted); transition: background .15s, border-color .15s, color .15s; }
.as-chip span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--c); }
.as-chip input:checked + span { color: var(--text); border-color: var(--c); background: color-mix(in srgb, var(--c) 22%, var(--card2)); }
.as-chip input:checked + span::before { background: var(--c); }
.as-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.as-chip input:disabled + span { opacity: .55; cursor: not-allowed; }
.as-why { flex-basis: 100%; }
/* Image cropper (panel.js): the frame matches the saved image's shape. */
.crop-modal { z-index: 200; }
.crop-box { width: min(900px, 100%); }
.crop-stage { width: 100%; border-radius: 12px; overflow: hidden; background: repeating-conic-gradient(var(--card2) 0 25%, var(--bg2) 0 50%) 0 0 / 20px 20px; outline: 2px solid var(--accent); outline-offset: -2px; }
.crop-stage canvas { display: block; cursor: grab; touch-action: none; }
.crop-stage canvas.dragging { cursor: grabbing; }
.crop-zoom { display: flex; align-items: center; gap: .75rem; margin: 1rem 0; color: var(--muted); font-weight: 700; }
.crop-zoom .range { flex: 1; }
.crop-actions { display: flex; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; }
.crop-preview { display: block; width: 100%; max-width: 420px; margin-top: .6rem; border-radius: 10px; border: 1px solid var(--line); }
.modal-head p { margin: 0; }
.seg { display: flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.seg label { flex: 1; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: .5rem; border-radius: 9px; font-weight: 600; font-size: .92rem; color: var(--muted); }
.seg input:checked + span { background: var(--grad); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }
.snap { text-align: center; }
.snap-ghost { font-size: 4rem; }
.snap-handle { font-size: 1.5rem; font-weight: 700; }
.follow-list { max-height: 60vh; overflow-y: auto; }

/* ===== Panel ===== */
/* ---------- Full-page staff panel (includes/panel_layout.php) ---------- */
body.panel-app { padding-bottom: 76px; background-attachment: fixed; }
.pa-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.pa-top { display: flex; align-items: center; gap: 1.25rem; padding: .85rem clamp(16px, 2vw, 28px) .55rem; }
.pa-brand { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.pa-brand img { width: 36px; height: 36px; object-fit: contain; }
.pa-brand span { font-size: 1.7rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; line-height: 1; }
.pa-brand:hover { color: inherit; }
.pa-cats { display: flex; gap: .45rem; flex-wrap: wrap; }
.pa-actions { margin-left: auto; display: flex; align-items: center; gap: .55rem; }
.pa-icon { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0;
           background: var(--card); border: 1px solid var(--line); color: var(--text); transition: border-color .15s, background .15s; }
.pa-icon .ico { width: 20px; height: 20px; }
.pa-icon:hover, .pa-icon[aria-expanded="true"] { border-color: var(--accent); }
.pa-kick { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); background: color-mix(in srgb, var(--bad) 12%, var(--card)); }
.pa-kick:hover { background: color-mix(in srgb, var(--bad) 25%, var(--card)); border-color: var(--bad); }
.pa-kick:disabled { opacity: .5; cursor: wait; }
.pa-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--bad); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.pa-avatar { width: 42px; height: 42px; border-radius: 50%; padding: 0; border: 2px solid var(--accent); cursor: pointer; overflow: hidden; background: var(--card2); }
.pa-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pa-dd { position: relative; }
.pa-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: .4rem; z-index: 70; animation: pa-pop .18s ease-out; }
@keyframes pa-pop { from { opacity: 0; transform: translateY(-6px); } }
.pa-menu > a, .pa-menu form button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .6rem .7rem; border-radius: 9px; background: none; border: 0; color: var(--text); font: inherit; font-size: .93rem; cursor: pointer; text-align: left; }
.pa-menu > a:hover, .pa-menu form button:hover { background: var(--card2); color: var(--text); }
.pa-me { display: flex; align-items: center; gap: .7rem; padding: .5rem .6rem .7rem; border-bottom: 1px solid var(--line); margin-bottom: .3rem; }
.pa-me img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.pa-me b, .pa-me span { display: block; }
.pa-notifs { width: min(380px, calc(100vw - 32px)); padding: 0; }
.pa-menu-head { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.pa-menu-head form button { padding: 0; width: auto; }
.pa-menu-head .link-btn:hover { color: var(--accent); background: none; }
.pa-notif-list { max-height: 360px; overflow-y: auto; }
.pa-notif { display: flex; gap: .75rem; align-items: flex-start; padding: .75rem 1rem; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); font-size: .9rem; position: relative; }
.pa-notif:hover { background: var(--card2); color: inherit; }
.pa-notif small { display: block; color: var(--muted); font-size: .76rem; margin-top: .15rem; }
.pa-notif.unread { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.pa-notif.unread::after { content: ''; position: absolute; right: .9rem; top: 1.1rem; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pa-notif-ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 18%, var(--card2)); color: var(--accent); flex-shrink: 0; }
.pa-notif-ico .ico { width: 16px; height: 16px; }
.pa-menu-foot { display: block; text-align: center; padding: .7rem; font-size: .88rem; color: var(--accent); }
.notif-page .pa-notif:last-child { border-bottom: 0; }

/* Menu row: one per category; switching category swaps it and the items drop in one after another. */
.pa-navs { padding: 0 clamp(16px, 2vw, 28px); }
.pa-nav { display: flex; align-items: center; gap: .15rem; overflow-x: auto; scrollbar-width: none; }
.pa-nav::-webkit-scrollbar { display: none; }
.pa-nav a { display: inline-flex; align-items: center; gap: .45rem; padding: .7rem .85rem .75rem; font-weight: 600; font-size: .95rem; white-space: nowrap; color: var(--muted); border-bottom: 3px solid transparent; }
.pa-nav a .ico { width: 18px; height: 18px; }
.pa-nav a:hover { color: var(--text); }
.pa-nav a.on { color: var(--text); border-bottom-color: var(--accent); }
.pa-nav .count { margin-left: .1rem; }
.pa-nav-label { --c: #8a90b8; flex-shrink: 0; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: .3rem .65rem; margin-right: .5rem; border-radius: 999px;
                color: color-mix(in srgb, var(--c) 55%, #fff); background: color-mix(in srgb, var(--c) 22%, transparent); }
.pa-nav.drop > *, .pa-deptmenu.drop > * { animation: pa-drop .4s cubic-bezier(.2, .8, .3, 1.2) both; animation-delay: calc(var(--i, 0) * 40ms); }
/* Departments (Station / Content / Community / Human Resources) look like normal menu items with a small arrow... */
.pa-deptbtn { display: inline-flex; align-items: center; gap: .45rem; flex-shrink: 0; padding: .7rem .85rem .75rem; background: none; border: 0; border-bottom: 3px solid transparent;
              color: var(--muted); font: inherit; font-weight: 600; font-size: .95rem; white-space: nowrap; cursor: pointer; }
.pa-deptbtn .ico { width: 18px; height: 18px; }
.pa-deptbtn > .ico:last-child { width: 14px; height: 14px; margin-left: -.15rem; opacity: .55; transition: transform .2s ease; }
.pa-deptbtn:hover, .pa-deptbtn[aria-expanded="true"] { color: var(--text); }
.pa-deptbtn[aria-expanded="true"] > .ico:last-child { transform: rotate(180deg); opacity: .9; }
.pa-deptbtn.on { color: var(--text); border-bottom-color: var(--accent); }
/* ...and open a small card of that department's tools. */
.pa-deptmenu { position: fixed; z-index: 80; min-width: 240px; max-width: calc(100vw - 24px); padding: .45rem; border-radius: 14px;
               background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pa-deptmenu-title { display: flex; align-items: center; gap: .45rem; padding: .45rem .65rem .55rem; margin-bottom: .2rem; border-bottom: 1px solid var(--line);
                     font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pa-deptmenu-title .ico { width: 14px; height: 14px; color: var(--accent); }
.pa-deptmenu a { display: flex; align-items: center; gap: .65rem; padding: .55rem .65rem; border-radius: 9px; font-weight: 500; font-size: .93rem; color: var(--text); white-space: nowrap; }
.pa-deptmenu a .ico { width: 17px; height: 17px; color: var(--muted); }
.pa-deptmenu a .count { margin-left: auto; }
.pa-deptmenu a:hover, .pa-deptmenu a:focus-visible { background: var(--card2); color: var(--text); outline: none; }
.pa-deptmenu a.on { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.pa-deptmenu a.on .ico { color: var(--accent); }
@keyframes pa-drop { from { opacity: 0; transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .pa-nav.drop > *, .pa-menu { animation: none; } }

.pa-main { padding: 1.5rem clamp(16px, 2vw, 28px) 2rem; }
.pa-page { max-width: none; }

/* Bottom bar: who's on air, staff online, back to top */
.pa-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: 64px; display: flex; align-items: center; gap: 1rem; padding: 0 clamp(16px, 2vw, 28px);
           background: color-mix(in srgb, var(--bg2) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.pa-foot-dj { display: flex; align-items: center; gap: .65rem; min-width: 190px; padding-right: 1rem; border-right: 1px solid var(--line); }
.pa-foot-dj:hover { color: inherit; }
.pa-foot-dj .av { width: 40px; height: 40px; border: 2px solid var(--accent); }
.pa-foot-dj b { display: block; color: var(--accent); font-size: .95rem; }
.pa-foot-dj small { display: flex; align-items: center; gap: .25rem; color: var(--muted); font-size: .8rem; }
.pa-foot-dj small .ico { width: 14px; height: 14px; }
.pa-foot-online { flex: 1; display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; }
.pa-foot-online::-webkit-scrollbar { display: none; }
.pa-foot-online .av { width: 38px; height: 38px; border: 2px solid var(--line); transition: border-color .15s, transform .15s; }
.pa-foot-online a:hover .av { border-color: var(--accent); transform: translateY(-2px); }
.pa-foot-end { display: flex; align-items: center; gap: .85rem; padding-left: 1rem; border-left: 1px solid var(--line); }
.pa-top-btn { width: 36px; height: 36px; }

/* ---------- Panel cards & components (post away, reputation, needs, guides, profile...) ---------- */
/* Hub tabs: the tools grouped under one menu item, shown across the top of each of their pages. */
.pa-subtabs { display: flex; align-items: center; gap: .4rem; margin: 0 0 1.5rem; padding: .4rem; border-radius: 14px; background: var(--card); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.pa-subtabs::-webkit-scrollbar { display: none; }
.pa-subtabs-title { flex-shrink: 0; padding: 0 .75rem 0 .5rem; margin-right: .2rem; border-right: 1px solid var(--line); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.pa-subtabs a { display: inline-flex; align-items: center; gap: .45rem; flex-shrink: 0; padding: .5rem .85rem; border-radius: 10px; font-size: .88rem; font-weight: 600; color: var(--muted); white-space: nowrap; transition: background .15s, color .15s; }
.pa-subtabs a .ico { width: 16px; height: 16px; }
.pa-subtabs a:hover { color: var(--text); background: var(--card2); }
.pa-subtabs a.on { color: #fff; background: var(--grad); }
@media (max-width: 640px) { .pa-subtabs-title { display: none; } }
/* Full-width pages (the Live Dashboard) normally pull up to the menu bar; under the tabs they start below them instead. */
.pa-subtabs ~ .pa-page > .ld:first-child { margin-top: 0; border-top: 1px solid var(--line); }
/* Mentoring: people grid + one page per person. */
.mt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.mt-card { display: block; margin: 0; transition: border-color .2s, transform .2s; }
.mt-card:hover { border-color: var(--accent); transform: translateY(-2px); color: inherit; }
.mt-person { display: flex; align-items: center; gap: .9rem; }
.mt-person h1 { margin: 0; }
.mt-person p { margin: .15rem 0 0; }
.mt-counts { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-top: .9rem; padding-top: .8rem; border-top: 1px dashed var(--line); font-size: .8rem; color: var(--muted); }
.mt-counts span { display: inline-flex; align-items: center; gap: .3rem; }
.mt-counts .ico { width: 14px; height: 14px; }
.pa-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.pa-card { --tone: var(--line); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.5rem; margin-bottom: 1.25rem;
           background: linear-gradient(160deg, color-mix(in srgb, var(--tone) 14%, var(--card)), var(--card) 70%); }
.pa-card.tone-ok { --tone: var(--ok); } .pa-card.tone-bad { --tone: var(--bad); } .pa-card.tone-warn { --tone: var(--warn); } .pa-card.tone-info { --tone: var(--accent2); }
.pa-card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.pa-card-head h3 { margin: 0; display: flex; align-items: center; gap: .55rem; font-size: 1.08rem; }
.pa-card-head h3 .ico { color: var(--muted); }
.pa-card > p:last-child { margin-bottom: 0; }
.pa-card-actions { margin: -0.5rem 0 1.25rem; }
.pill-status { font-size: .78rem; font-weight: 600; padding: .3rem .65rem; border-radius: 6px; white-space: nowrap; border: 1px solid; }
.pill-status.ok { color: #7ff0b5; background: color-mix(in srgb, var(--ok) 15%, transparent); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.pill-status.bad { color: #ff9aa7; background: color-mix(in srgb, var(--bad) 15%, transparent); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.pill-status.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.pill-status.info { color: #c3b4ff; background: color-mix(in srgb, var(--accent2) 16%, transparent); border-color: color-mix(in srgb, var(--accent2) 40%, transparent); }
.pill-status.muted { color: var(--muted); background: var(--card2); border-color: var(--line); }
.kv { margin-bottom: .9rem; }
.kv > span { display: block; color: var(--muted); font-size: .8rem; margin-bottom: .2rem; }
.kv > b, .kv > p { display: block; font-weight: 500; margin: 0; font-size: 1.02rem; }
.kv.reply { border-left: 3px solid var(--accent); padding-left: .8rem; }
.kv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem 1.5rem; }
.kv b.ok, .kv .ok, b.ok { color: var(--ok); } .kv .bad, b.bad { color: var(--bad); }
.accent { color: var(--accent); }
.pa-reveal > summary { list-style: none; }
.pa-reveal > summary::-webkit-details-marker { display: none; }
.pa-reveal[open] > summary { display: none; }

.rep-meter { padding: 1.5rem; }
.rep-track { position: relative; height: 12px; border-radius: 12px; background: var(--card2); margin: 1.25rem 0 .9rem; }
.rep-fill { position: absolute; inset: 0 auto 0 0; border-radius: 12px; background: var(--grad); opacity: .55; }
.rep-mid { position: absolute; left: 50%; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--muted); opacity: .5; }
.rep-dot { position: absolute; top: 50%; transform: translate(-50%, -50%); min-width: 46px; height: 46px; padding: 0 .4rem; border-radius: 23px; display: grid; place-items: center;
           background: var(--card2); border: 2px solid var(--accent); font-weight: 800; font-size: 1.05rem; }
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 1rem; margin: 1.5rem 0 1rem; }
.podium-spot { flex: 1; max-width: 180px; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 2.4rem .75rem 1rem; border-radius: 14px; position: relative;
               border: 1px solid var(--line); background: var(--bg2); }
.podium-spot .av { position: absolute; top: -28px; width: 56px; height: 56px; border: 3px solid var(--line); }
.podium-spot.place-1 { padding-top: 3rem; padding-bottom: 1.6rem; border-color: #e8b84a; box-shadow: 0 0 24px rgba(232, 184, 74, .18); }
.podium-spot.place-1 .av { border-color: #e8b84a; }
.podium-spot.place-2 { border-color: #9aa3c8; } .podium-spot.place-3 { border-color: #c98a55; }
.podium-rank { font-size: .78rem; font-weight: 700; display: flex; align-items: center; gap: .2rem; color: #e8b84a; }
.podium-rank .ico { width: 14px; height: 14px; }
.podium-spot small { color: var(--muted); font-size: .78rem; }
.podium-spot:hover { color: inherit; transform: translateY(-2px); }
tr.me-row td { background: color-mix(in srgb, var(--accent) 10%, transparent); }

.search-filter-wide { width: 100%; }
.guide-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; align-items: start; }
.guide-columns > .guide-section { margin: 0; }
.guide-list { display: flex; flex-direction: column; gap: 1rem; }
.guide-section h2 { margin-bottom: 1.1rem; }
.rep-pick { position: relative; display: block; }
.rep-pick-list { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0; max-height: 260px; overflow-y: auto; display: flex; flex-direction: column;
    padding: .3rem; border-radius: 12px; border: 1px solid var(--line); background: var(--card); box-shadow: 0 12px 30px rgba(0, 0, 0, .45); }
.rep-pick-list[hidden], .rep-pick-list [hidden] { display: none; }
.rep-pick-list button { text-align: left; padding: .55rem .7rem; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; font-weight: 500; cursor: pointer; }
.rep-pick-list button:hover, .rep-pick-list button.on { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.rep-pick-list em { padding: .55rem .7rem; font-style: normal; }
.ban-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.ban-columns > .ban-col { margin: 0; }
.ban-col-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.ban-col-head h3 { display: flex; align-items: center; gap: .5rem; margin: 0; }
.ban-rep { flex-shrink: 0; font-size: .75rem; font-weight: 600; padding: .2rem .55rem; border-radius: 6px; color: #ff8a9a; background: rgba(255, 70, 100, .15); border: 1px solid rgba(255, 70, 100, .35); }
.ban-list { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .35rem; }
.ban-item { font-weight: 600; }
.ban-edit { margin-left: .35rem; opacity: .45; } .ban-edit:hover { opacity: 1; }
.ban-edit .ico { width: 13px; height: 13px; vertical-align: -2px; }
@media (max-width: 900px) { .ban-columns { grid-template-columns: 1fr; } }
.section-presenter { --tone: #4c7dff; } .section-reporter { --tone: #20c4a0; } .section-mentor { --tone: #9b5cff; }
.section-moderator { --tone: #ff8a2a; } .section-management { --tone: #2fbf6a; }
.guide-card { display: flex; flex-direction: column; padding: 1.2rem; border-radius: 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 40%, transparent); }
.guide-card h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.02rem; }
.guide-card p { flex: 1; }

.sp-layout { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.sp-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 1.4rem; position: sticky; top: 150px; }
.sp-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.sp-head img { width: 84px; height: 84px; flex-shrink: 0; border-radius: 16px; object-fit: cover; box-shadow: var(--shadow); background: var(--card2); }
.sp-head h2 { margin: 0; display: flex; align-items: center; gap: .4rem; color: var(--accent); }
.sp-head h2 .ico { width: .8em; height: .8em; }
.sp-head > div { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; min-width: 0; text-align: left; }
.sp-head h2 { font-size: 1.35rem; line-height: 1.15; overflow-wrap: anywhere; }
.sp-head span, .sp-head small { display: block; font-weight: 600; }
.sp-head span { color: var(--muted); }
.sp-head small.ok { color: var(--ok); } .sp-head small.bad { color: var(--bad); }
.sp-pronouns { margin-bottom: 1rem; }
.sp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; border-top: 1px solid var(--line); padding-top: 1rem; margin-bottom: .5rem; }
.sp-grid .kv b { font-size: .95rem; overflow-wrap: anywhere; }
.accent-code { color: var(--accent); background: none; padding: 0; }
.sp-roles { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .3rem; }
.role-chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 600; padding: .3rem .6rem; border-radius: 7px;
             background: color-mix(in srgb, var(--c) 25%, var(--card2)); color: color-mix(in srgb, var(--c) 40%, #fff); }
.role-chip .ico { width: 14px; height: 14px; }
/* Font Awesome role icons sit in the same box as the built-in SVGs. */
.ico-fa { display: inline-flex; align-items: center; justify-content: center; font-size: .95em; line-height: 1; vertical-align: -.15em; }
.role-chip .ico-fa, .role-preview .ico-fa { font-size: 12.5px; }
.sc-roles .ico-fa { font-size: 13.5px; }
.role-preview-icon { display: inline-flex; }
label.is-overridden select { opacity: .45; }
.sp-tabs { display: flex; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.sp-site, .sp-tabs nav { border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.sp-site { display: inline-flex; align-items: center; gap: .45rem; padding: .7rem 1.1rem; font-weight: 600; }
.sp-tabs nav { display: flex; flex: 1; overflow-x: auto; scrollbar-width: none; }
.sp-tabs nav a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .7rem 1rem; font-weight: 600; white-space: nowrap; color: var(--muted); border-right: 1px solid var(--line); }
.sp-tabs nav a:last-child { border-right: 0; }
.sp-tabs nav a.on { color: var(--text); background: color-mix(in srgb, var(--accent2) 20%, transparent); }
.sp-list { max-height: 240px; overflow-y: auto; }
.sp-list a { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.sp-list a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-list a small { color: var(--muted); flex-shrink: 0; }
.stars { color: #e8b84a; letter-spacing: .1em; }
.ms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .9rem; }
.ms { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; padding: 1.2rem; border-radius: 14px; border: 1px dashed var(--line); background: var(--card); opacity: .55; }
.ms.done { opacity: 1; border-style: solid; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 12%, var(--card)), var(--card)); }
.ms-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--card2); }
.ms.done .ms-ico { background: var(--grad); color: #fff; }
.ms small { color: var(--muted); }
.upload-box { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; flex-direction: row; }
.upload-box label { flex: 1; min-width: 240px; }
.upload-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.upload-item { padding: .8rem; display: flex; flex-direction: column; gap: .5rem; margin: 0; }
.upload-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--card2); }
.pa-menu hr { border: 0; border-top: 1px solid var(--line); margin: .3rem .2rem; }
.pa-menu .pa-me b .ico { color: #3fa8ff; width: 14px; height: 14px; }
.pa-menu form button.pa-logout { color: var(--bad); }
.pa-profile { min-width: 250px; max-height: calc(100vh - 100px); overflow-y: auto; }
@media (max-width: 1000px) { .pa-split, .sp-layout { grid-template-columns: 1fr; } .sp-card { position: static; } }

/* ---------- Live Dashboard ---------- */
.ld { position: relative; margin: -1.5rem calc(-1 * clamp(16px, 2vw, 28px)) -2rem; background: var(--bg); min-height: calc(100vh - 190px); }
.ld:fullscreen { margin: 0; overflow-y: auto; }
.ld-banned { display: flex; align-items: center; gap: .6rem; padding: .8rem 1.25rem; background: color-mix(in srgb, var(--bad) 25%, var(--bg2)); color: #fff; font-weight: 600; border-bottom: 1px solid var(--bad); }
.ld-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.ld-stats > div { padding: 1.1rem 1.25rem 1.4rem; border-right: 1px solid var(--line); min-width: 0; }
.ld-stats > div:last-child { border-right: 0; }
.ld-stats h4 { display: flex; align-items: center; gap: .4rem; margin: 0 0 1.1rem; font-size: .92rem; font-weight: 600; }
.ld-stats h4 small { color: var(--muted); font-weight: 400; font-size: .78rem; }
.ld-stats b { display: block; text-align: center; font-size: clamp(1.15rem, 1.8vw, 1.6rem); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.ld-next h4 { color: #4c8dff; } .ld-later h4 { color: var(--ok); }
.ld-hide-listeners [data-ld="listeners"], .ld-hide-listeners [data-ld="listeners_split"] { filter: blur(8px); user-select: none; }
/* Under the listener total: how many are on the website vs. the MP3 stream elsewhere. */
.ld-split { display: block; margin-top: .3rem; text-align: center; font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* NWC countdown: gets redder as the hour runs out */
.nwc { transition: color .4s ease; }
.nwc.nwc-30 { color: #ffd23f; }                 /* yellow */
.nwc.nwc-20 { color: #ff8a3d; }                 /* darker, more red */
.nwc.nwc-10 { color: #ff4d4d; }                 /* red */
.nwc.nwc-5 { color: #c62828; }                  /* darker red */
.nwc.nwc-final { color: #ff1a1a; text-shadow: 0 0 14px rgba(255, 26, 26, .45); } /* bright red */
.nwc.nwc-connect { letter-spacing: .12em; animation: nwc-flash 1s steps(2, start) infinite; }
@keyframes nwc-flash { to { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .nwc.nwc-connect { animation: none; } }
.ld-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ld-col { border-right: 1px solid var(--line); min-width: 0; }
.ld-col:last-child { border-right: 0; }
.ld-col section { padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); }
.ld-col h3 { display: flex; align-items: center; gap: .45rem; font-size: 1rem; margin-bottom: 1rem; }
.ld-col h3 .count { margin-left: .3rem; }
.ld-avs { display: flex; flex-wrap: wrap; gap: .4rem; }
.ld-avs .av { width: 42px; height: 42px; border: 2px solid var(--line); }
.ld-row { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); font-size: .9rem; }
.ld-row:last-child { border-bottom: 0; }
.ld-row small { color: var(--muted); font-size: .76rem; margin-left: .3rem; }
.ld-row:hover { color: inherit; }
.ld-name { color: #3fa8ff; font-weight: 600; }
.ld-name .ico { width: 14px; height: 14px; }
.ld-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--card2); color: var(--accent); flex-shrink: 0; }
.ld-ico .ico { width: 16px; height: 16px; }
.ld-btn { background: none; border: 0; color: var(--ok); cursor: pointer; padding: .3rem; border-radius: 8px; }
.ld-btn:hover { background: var(--card2); }
.ld-btn:disabled { opacity: .4; }
.ld-thanked { color: var(--muted); padding: .3rem; }
.ld-req { display: flex; gap: .75rem; align-items: flex-start; padding: .8rem 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.ld-req.done { opacity: .5; }
.ld-req .av { width: 40px; height: 40px; }
.ld-req small { color: var(--muted); font-size: .76rem; margin-left: .3rem; }
.ld-req p { margin: .3rem 0 0; font-size: .9rem; }
.ld-tag { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 4px; font-size: .7rem; font-weight: 800; background: color-mix(in srgb, var(--bad) 40%, var(--card2)); color: #fff; }
.ld-tag.t-shoutout { background: color-mix(in srgb, var(--accent2) 55%, var(--card2)); }
.ld-tag.t-competition { background: color-mix(in srgb, var(--warn) 55%, var(--card2)); }
.ld-pill { display: inline-block; margin-top: .35rem; padding: .15rem .45rem; border-radius: 4px; background: var(--card2); font-size: .8rem; font-weight: 600; }
.ld-actions { display: flex; flex-direction: column; gap: .2rem; }
.ld-actions .ld-btn:last-child { color: var(--muted); }
.ld-full { position: absolute; left: 1rem; bottom: 1rem; }
@media (max-width: 1100px) { .ld-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ld-stats > div:nth-child(3n) { border-right: 0; } .ld-grid { grid-template-columns: 1fr; } .ld-col { border-right: 0; } }

/* Schedule / encoder / top 40 */
/* Presenter → Schedule: week bar, day tabs and a grid of hour slots. */
.sch { --sch-bg: color-mix(in srgb, var(--bg2) 85%, #000); }
.sch-week { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; margin-bottom: 1rem;
            background: var(--sch-bg); border: 1px solid var(--line); border-radius: 12px; }
.sch-arrow { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--card2); color: var(--text); }
.sch-arrow:hover { background: var(--accent); color: #fff; }
.sch-range { display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; font-weight: 600; }
.sch-range i { font-size: 1.2rem; }
.sch-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-bottom: 1rem; background: var(--sch-bg); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.sch-days a { text-align: center; padding: .8rem .4rem; font-weight: 500; color: var(--text); border-right: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sch-days a:last-child { border-right: 0; }
.sch-days a:hover { background: var(--card); }
.sch-days a.on { background: color-mix(in srgb, var(--accent2) 18%, var(--card)); box-shadow: inset 0 -2px 0 var(--accent); }
.sch-days a.today:not(.on) { color: var(--accent); }
.sch-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.4rem; padding: 1.1rem; background: var(--sch-bg); border: 1px solid var(--line); border-radius: 12px; }
.sch-slot { position: relative; display: flex; flex-direction: column; min-height: 112px; padding: .9rem .8rem 1rem; border-radius: 10px;
            background: linear-gradient(180deg, var(--card), color-mix(in srgb, var(--card) 70%, #000)); border: 1px solid var(--line); }
.sch-time { display: flex; align-items: baseline; justify-content: center; gap: .3rem; flex-wrap: wrap; text-align: center; padding: 0 1.4rem; }
.sch-time b { font-weight: 600; }
.sch-time small { color: var(--muted); font-size: .72rem; }
.sch-mark { font-weight: 800; font-size: .9rem; display: inline-flex; align-items: center; gap: .3rem; }
.sch-info { position: absolute; top: .75rem; right: .7rem; background: none; border: 0; color: var(--muted); cursor: pointer; padding: .15rem; font-size: .95rem; }
.sch-info:hover { color: var(--text); }
.sch-body { flex: 1; display: flex; align-items: center; justify-content: center; margin-top: .6rem; min-width: 0; }
.sch-book { background: color-mix(in srgb, #3f7bff 32%, var(--card2)); color: #fff; border: 1px solid color-mix(in srgb, #3f7bff 45%, transparent); border-radius: 999px;
            padding: .35rem 1rem; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; transition: background .15s, transform .15s; }
.sch-book:hover:not(:disabled) { background: #3f7bff; transform: translateY(-1px); }
.sch-book:disabled { opacity: .45; cursor: default; }
.sch-who { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: color-mix(in srgb, var(--c) 75%, #fff); max-width: 100%; }
.sch-who .ico { color: var(--c); }
.sch-show { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; text-transform: none; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sch-slot.past { opacity: .45; }
.sch-slot.mine { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.sch-slot.is-now { border-color: color-mix(in srgb, #e0324b 30%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, #e0324b 9%, var(--card)), color-mix(in srgb, #000 35%, var(--card))); }
.sch-slot.is-now .sch-mark { color: #e8344f; }
.sch-slot.is-now .sch-book { background: #6e1a2e; border-color: color-mix(in srgb, #e0324b 45%, transparent); }
.sch-slot.is-now .sch-book:hover:not(:disabled) { background: #8f2139; }
.sch-slot.is-next { border-color: color-mix(in srgb, #2f7bff 55%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, #2f7bff 14%, var(--card)), var(--card)); }
.sch-slot.is-next .sch-mark { color: #3f8cff; }
.sch-slot.is-later { border-color: color-mix(in srgb, #2bbf5a 55%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, #2bbf5a 14%, var(--card)), var(--card)); }
.sch-slot.is-later .sch-mark { color: #34d26a; }
.sch-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; margin-top: .9rem; }
.sch-foot b { color: var(--text); }
.sch-detail { display: flex; align-items: center; gap: .9rem; }
.sch-detail > div { display: flex; flex-direction: column; gap: .1rem; }
@media (max-width: 1300px) { .sch-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
@media (max-width: 900px) { .sch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sch-days { display: flex; overflow-x: auto; } .sch-days a { flex: 0 0 auto; padding: .7rem 1rem; } }
@media (max-width: 600px) { .sch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; padding: .7rem; } .sch-range { gap: .5rem; font-size: .85rem; } }
.sched-grid { display: flex; flex-direction: column; gap: .3rem; max-height: 560px; overflow-y: auto; }
.sched-slot { display: flex; align-items: center; gap: .75rem; padding: .45rem .7rem; border-radius: 10px; background: var(--bg2); border: 1px solid transparent; }
.sched-slot.past { opacity: .4; }
.sched-slot.mine { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--bg2)); }
.sched-slot.t-show .sched-who { color: color-mix(in srgb, var(--accent2) 55%, #fff); }
.sched-time { width: 52px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sched-who { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.enc-row { display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.enc-row code { background: var(--bg2); padding: .35rem .6rem; border-radius: 8px; overflow-wrap: anywhere; }
.enc-row .row { gap: .4rem; }
.enc-secret { letter-spacing: .08em; }
.sp-encoder { margin-top: 1rem; padding: .9rem; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); }
.sp-encoder .label { display: flex; align-items: center; gap: .4rem; font-weight: 700; }
.sp-encoder p { margin: .25rem 0 .6rem; }
.gap-sm { gap: .5rem; }
.btn-danger-text { color: #ff9aa7; }
.btn-danger-text:hover { border-color: var(--bad); color: #ff9aa7; }
.t40-art { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; }
.top40 td { vertical-align: middle; }
.top40 .ok { color: var(--ok); font-weight: 700; } .top40 .bad { color: var(--bad); font-weight: 700; }

.discord-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .7rem .9rem; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); }
.discord-link > span { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

/* ---------- Roles & tags ---------- */
.badge-tag { --c: #8a90b8; background: color-mix(in srgb, var(--c) 28%, var(--card2)); color: color-mix(in srgb, var(--c) 35%, #fff); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); }
.role-dot { --c: #8a90b8; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex-shrink: 0; }
.perm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .5rem; margin: .4rem 0 .6rem; }
.perm { display: flex; gap: .65rem; align-items: flex-start; padding: .65rem .75rem; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); cursor: pointer; }
.perm:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); background: color-mix(in srgb, var(--accent) 9%, var(--bg2)); }
.perm input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--accent); flex-shrink: 0; }
.perm b { display: block; font-size: .93rem; }
.perm small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; margin-top: .1rem; }
.perm.muted { opacity: .55; cursor: not-allowed; }
.role-type { max-width: 320px; }

/* Developer → Auto DJ preview: the home page header's DJ block and the bottom player's on-air chip. */
.ad-stage { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; border-radius: 14px; min-width: 0;
            background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 18%, var(--bg2)), var(--bg2)); border: 1px solid var(--line); }
.ad-stage .stage-text b { color: var(--accent); }
.ad-player { display: flex; align-items: center; gap: .65rem; padding: .7rem .9rem; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); max-width: 280px; }
.ad-player .av { width: 42px; height: 42px; object-fit: cover; }
.ad-player small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ad-player b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-pics { max-width: 460px; }

/* ---------- System status ---------- */
.status-row { display: flex; gap: .75rem; align-items: flex-start; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.status-row:last-child { border-bottom: 0; }
.status-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: .35rem; flex-shrink: 0; background: var(--muted); }
.status-dot.ok { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.status-dot.warn { background: var(--warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 20%, transparent); }
.status-dot.bad { background: var(--bad); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 20%, transparent); }

/* Confirmation dialog */
.pa-dialog { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 16px; background: rgba(5, 6, 14, .7); backdrop-filter: blur(6px); }
.pa-dialog-box { width: min(440px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem; box-shadow: var(--shadow); animation: rise .2s ease-out; }
.pa-dialog-box .row { justify-content: flex-end; margin-top: 1.25rem; }

@media (max-width: 760px) {
    .pa-top { flex-wrap: wrap; gap: .75rem; }
    .pa-brand span { font-size: 1.3rem; }
    .pa-cats { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: .2rem; }
    .pa-foot-online { display: none; }
    .pa-foot-dj { border-right: 0; }
}

/* Category buttons: round, icon only, each with its own tint. The name shows as a tooltip. */
.pcat { --c: #8a90b8; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; padding: 0; cursor: pointer;
        background: color-mix(in srgb, var(--c) 28%, var(--bg2)); color: color-mix(in srgb, var(--c) 45%, #fff);
        border: 2px solid transparent; transition: transform .15s, border-color .15s, box-shadow .15s; }
.pcat .ico { width: 20px; height: 20px; }
.pcat:hover { transform: translateY(-2px); color: #fff; }
.pcat.on { border-color: color-mix(in srgb, var(--c) 70%, #fff); color: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent); }
.pcat-staff { --c: #8a90b8; }
.pcat-presenter { --c: #4c7dff; }
.pcat-reporter { --c: #20c4a0; }
.pcat-mentor { --c: #9b5cff; }                                /* purple */
.pcat-developer { --c: #8fb3d9; }                             /* bright greyish blue */
.pcat-developer:not(.on) { background: color-mix(in srgb, var(--c) 34%, var(--bg2)); color: #e8f1fb; }
.pcat-moderator { --c: #ff8a2a; }                              /* orange */
.pcat-manager { --c: #2fbf6a; }                                /* green */
.pcat-admin { --c: #d63c3c; }                                  /* red */
.pcat-director { --c: #ff1f3d; }                               /* bright red */
.pcat-director:not(.on) { background: color-mix(in srgb, var(--c) 45%, var(--bg2)); color: #fff; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Staff home banner: date · avatar · greeting, role & pronoun chips · quota counters */
.pa-banner { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; padding: 1.4rem 1.75rem; margin-bottom: 1.25rem; border-radius: var(--radius); border: 1px solid var(--line);
             background: radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--accent2) 18%, transparent), transparent 55%), linear-gradient(120deg, var(--card), color-mix(in srgb, var(--bg2) 80%, var(--card))); }
.pa-banner-date { display: flex; gap: .7rem; align-items: flex-start; color: var(--muted); padding-right: 1.5rem; border-right: 1px solid var(--line); }
.pa-banner-date .ico { width: 30px; height: 30px; margin-top: 4px; }
.pa-banner-date span { display: block; font-size: 1.35rem; }
.pa-banner-date b { display: block; font-size: 2.3rem; color: var(--text); font-weight: 500; line-height: 1; margin-top: .2rem; }
.pa-banner-date sup { font-size: 1rem; }
.pa-banner-av { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; border: 4px solid var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent); background: var(--card2); }
.pa-banner-text { flex: 1; min-width: 240px; }
.pa-banner-text h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .3rem; display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.pa-banner-text h1 .ico { color: var(--accent); width: .9em; height: .9em; }
.pa-banner-text p { margin-bottom: .7rem; }
.text-strong { color: var(--text); }
.pa-chips { display: inline-flex; flex-wrap: wrap; gap: .35rem; padding: .35rem; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--bg) 50%, transparent); }
.pa-chips span { font-size: .78rem; font-weight: 600; padding: .3rem .6rem; border-radius: 7px; background: color-mix(in srgb, var(--accent) 16%, var(--card2)); color: color-mix(in srgb, var(--accent) 45%, #fff); }
.pa-chips span.pa-chip-soft { background: var(--card2); color: var(--muted); }
.pa-notice { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.25rem; margin-bottom: 1.25rem; border-radius: var(--radius); border: 1px solid var(--line);
             background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 10%, var(--card)), var(--card) 70%); }
.pa-notice img { width: 32px; height: 32px; object-fit: contain; }
.quotas { display: flex; gap: 2.5rem; padding-right: .5rem; }
.quota { display: grid; grid-template-columns: auto auto; justify-items: center; align-items: baseline; gap: 0 .3rem; text-align: center; }
.quota-ico, .quota small { grid-column: 1 / -1; }
.quota-ico .ico { width: 30px; height: 30px; color: var(--accent2); }
.quota small { text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-size: .78rem; margin: .3rem 0 .15rem; }
.quota b { font-size: 1.9rem; justify-self: end; }
.quota span.muted { justify-self: start; }
.quota .ok { color: var(--ok); } .quota .mid { color: var(--warn); } .quota .bad { color: var(--bad); }
.pslots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1rem; }
.pslot { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1rem; border-radius: var(--radius); border: 1px solid var(--line); text-align: center; font-weight: 600; }
.pslot small { text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; font-weight: 700; display: inline-flex; align-items: center; gap: .4rem; }
.pslot span { display: inline-flex; align-items: center; gap: .45rem; }
.pslot-live { background: linear-gradient(180deg, color-mix(in srgb, var(--bad) 18%, var(--card)), var(--card)); } .pslot-live small { color: var(--bad); }
.pslot-next { background: linear-gradient(180deg, color-mix(in srgb, var(--accent2) 18%, var(--card)), var(--card)); } .pslot-next small { color: color-mix(in srgb, var(--accent2) 60%, #fff); }
.pslot-later { background: linear-gradient(180deg, color-mix(in srgb, var(--ok) 14%, var(--card)), var(--card)); } .pslot-later small { color: var(--ok); }
.pslot:hover { border-color: var(--accent); color: inherit; }
.sotw-main { display: flex; align-items: center; gap: 1rem; margin: .5rem 0 .75rem; }
.sotw-main .av { width: 72px; height: 72px; border: 3px solid var(--accent2); }
.sotw-main b { font-size: 1.6rem; }
.sotw-history { display: flex; gap: .75rem; overflow-x: auto; padding: .5rem 0 .25rem; border-top: 1px solid var(--line); }
.sotw-history a { display: flex; flex-direction: column; align-items: center; min-width: 64px; font-size: .75rem; }
.sotw-history b { color: color-mix(in srgb, var(--accent2) 60%, #fff); }
.sotw-history span { color: var(--muted); font-size: .7rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: 1.25rem .75rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--muted); text-align: center; font-size: .93rem; transition: border-color .2s, transform .2s; }
.tile .ico { width: 26px; height: 26px; color: var(--text); }
.tile:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }
.tile .count { position: absolute; top: .6rem; right: .6rem; }
.cat-head { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.cat-head h1 { margin-bottom: .2rem; }
.cat-head p { margin: 0; }
.cat-ico { width: 64px; height: 64px; border-radius: 18px; background: var(--grad); display: grid; place-items: center; }
.cat-ico .ico { width: 32px; height: 32px; }
/* Panel settings & category overviews: each group is its own card, each setting its own row inside it. */
.set-head { margin-bottom: 1.25rem; }
.set-jump { display: flex; flex-wrap: wrap; gap: .4rem; }
.set-jump a { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--muted); }
.set-jump a:hover { color: var(--text); border-color: var(--accent); }
.set-jump .ico { width: 15px; height: 15px; }
/* Masonry: cards of different heights stack straight under each other, so no gaps open up below shorter cards. */
.set-grid, .tool-secs, .pa-masonry { columns: 3 400px; column-gap: 1.25rem; }
.pa-masonry { display: block; columns: 2 360px; column-gap: 1.5rem; }
.set-grid > *, .tool-secs > *, .pa-masonry > * { break-inside: avoid; margin: 0 0 1.25rem; }
.set-sec, .tool-sec { scroll-margin-top: 140px; }
.set-sec-head { display: flex; align-items: center; gap: .85rem; padding: 1rem 1.15rem; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--card2) 60%, transparent); }
.set-sec-head h2 { font-size: 1.1rem; margin: 0; }
.set-sec-head p { margin: .1rem 0 0; }
.set-sec-ico { flex-shrink: 0; width: 38px; height: 38px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; color: #fff; }
.set-sec-ico .ico { width: 19px; height: 19px; }
.set-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: .5rem 1.25rem; align-items: center; padding: 1rem 1.15rem; }
.set-row + .set-row { border-top: 1px solid var(--line); }
.set-row-wide { grid-template-columns: 1fr; }
.set-label { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.set-label label { font-weight: 600; font-size: .95rem; }
.set-label .small { overflow-wrap: anywhere; }
.set-ctl { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.set-ctl .switch { align-self: flex-start; }
.set-save { position: sticky; bottom: calc(var(--player-h) + 12px); z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .8rem 1rem; border-radius: var(--radius); background: color-mix(in srgb, var(--card) 94%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.tool-sec .tiles { padding: 1rem 1.15rem; margin: 0; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.switch { position: relative; display: inline-block; width: 46px; height: 26px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); transition: background .2s; pointer-events: none; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.switch input:checked + span { background: var(--grad); border-color: transparent; }
.switch input:checked + span::after { transform: translateX(20px); background: #fff; }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
@media (max-width: 640px) { .set-row { grid-template-columns: 1fr; } }
.team-row summary { list-style: none; }
.team-row summary::-webkit-details-marker { display: none; }
.msg-mod p { margin: .5rem 0; overflow-wrap: anywhere; }
.search-filter { max-width: 280px; }
.count { background: var(--bad); color: #fff; font-size: .72rem; border-radius: 999px; padding: .05rem .5rem; font-weight: 700; }
.inbox { display: flex; flex-direction: column; gap: .75rem; }
.inbox-item.unread { border-left: 4px solid var(--accent); }
.inbox-item p { margin: .6rem 0; }
.inbox-song { font-weight: 600; font-size: 1.05rem; }
.thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; background: var(--card2); }
details > summary { cursor: pointer; }

/* ===== Embed ===== */
body.embed { padding: 0; background: transparent; }
.embed-player { display: flex; align-items: center; gap: .9rem; padding: .75rem 1rem; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; height: 96px; }
.embed-player img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.embed-info b, .embed-info span, .embed-info small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.embed-info span { color: var(--muted); }
.embed-info small { color: var(--muted); font-size: .78rem; }
.embed-player input { width: 80px; accent-color: var(--accent); }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .pl-listeners, .pl-vol { display: none; }
    .grid-main, .home-grid { grid-template-columns: 1fr; }
    .strip-in { grid-template-columns: 1fr 1fr; }
    .spotlight { grid-column: 1 / -1; order: -1; }
    .hero-in { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg2); border-bottom: 1px solid var(--line); padding: .75rem 16px 1rem; max-height: calc(100vh - 68px - var(--player-h)); overflow-y: auto; }
    .nav.open { display: flex; }
    .dd-menu { position: static; box-shadow: none; display: none; border: 0; background: var(--card); margin: .25rem 0 .5rem; }
    .dd:hover .dd-menu { display: none; }
    .dd.open .dd-menu { display: flex; }
    .dd-btn, .nav-link { width: 100%; justify-content: space-between; }
    .nav-account { margin: .5rem 0 0; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .page-head + .wrap .slots { grid-template-columns: 1fr; }
    .quotas { width: 100%; justify-content: space-around; }
    .pa-banner-date { border-right: 0; padding-right: 0; }
    .pa-banner { gap: 1.1rem; padding: 1.1rem; }
    .pa-banner-av { width: 76px; height: 76px; }
    .pl-dj { display: none; }
}
@media (max-width: 640px) {
    :root { --player-h: 68px; }
    .grid-2, .grid-3, .grid-4, .upcoming, .pslots, .news-list, .strip-in { grid-template-columns: 1fr; }
    .stage-in { grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem 0 2.5rem; }
    .visualizer { height: 60px; margin-top: -60px; }
    .stage-logo { display: none; }
    .stage-song { flex-direction: row-reverse; justify-content: flex-end; }
    .stage-song .stage-text { text-align: left; }
    .stage-art { width: 64px; height: 64px; }
    .ctl-volume { display: none; }
    .slots-row { gap: .5rem; }
    .slots-row .slot-card { flex-basis: calc((100% - 1rem) / 3); }
    .slots-row .slot-card b { font-size: .8rem; }
    .slots-row .slot-time { display: none; }
    .carousel { aspect-ratio: 16 / 8; }
    .tiles { grid-template-columns: repeat(2, 1fr); }
    .hero-np { flex-direction: column; align-items: flex-start; }
    .hero-art { width: 160px; height: 160px; }
    .profile-head-in { flex-direction: column; align-items: flex-start; }
    .song-cover, .show-cover { width: 180px; height: 180px; }
    .tt { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
    .tabs-fill { display: flex; overflow-x: auto; scrollbar-width: none; }
    .tabs-fill .tab { flex: 0 0 auto; padding: .6em 1em; }
    .pl-votes, .pl-btn span { display: none; }
    .pl-btn { padding: .5rem; }
    .player-in { gap: .7rem; }
    .pl-play { width: 44px; height: 44px; }
    .search .input { min-width: 0; }
    .cover { height: 180px; }
    .cookie { right: 16px; max-width: none; }
    .floaters .btn { font-size: .78rem; }
    .chart-x span:nth-child(8n+5) { visibility: hidden; }
}
