/* S2N Data — shells: public site, portal & admin */

/* ================= Public header / footer ================= */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--header-glass); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .25s ease; }
.site-header.scrolled { box-shadow: 0 8px 24px rgba(11,11,12,.08); }
.site-header .bar { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand .sub { color: var(--brand); }
/* Two logo variants ship (light-background and dark-background); only the
   one matching the active theme is shown — no JS needed, no flash. */
.logo-for-light { display: none; }
[data-theme="light"] .logo-for-dark { display: none; }
[data-theme="light"] .logo-for-light { display: block; }

.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }
.nav-main { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.nav-main a { color: var(--ink-2); font-weight: 500; font-size: .92rem; padding: .5rem .8rem; border-radius: var(--radius-sm); }
.nav-main a:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }
.nav-main a.active { color: var(--brand-ink); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: .4rem; cursor: pointer; }
@media (max-width: 900px) {
  .nav-main, .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-main.open { display: flex; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--line); padding: .75rem 24px; gap: .2rem; }
  .nav-main.open a { padding: .7rem .5rem; }
}

.site-footer { background: var(--night); color: var(--night-muted); margin-top: 5rem; padding: 3.5rem 0 2rem; }
.site-footer a { color: var(--night-muted); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; }
.footer-grid h4 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .9rem; }
.footer-brand img { height: 40px; margin-bottom: 1rem; }
.footer-bottom { border-top: 1px solid var(--night-line); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ================= Marketing sections ================= */
.hero { position: relative; background: radial-gradient(1200px 500px at 80% -10%, var(--night-2) 0%, var(--night) 55%); color: #fff; overflow: hidden; }
.hero::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 60%, rgba(224,26,34,.08)); pointer-events:none; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(700px 420px at 78% 0%, #000 0%, transparent 70%);
}
/* A live audio-waveform visual — this is what the product actually does
   (listen to radio, recognise a match), not a decorative abstract glow. */
.hero-visual { position: absolute; top: 14%; right: 6%; width: 320px; text-align: right; }
.hero-visual .live-badge { display: inline-flex; align-items: center; gap: .55rem; font-size: .78rem; color: #c7c7d1; letter-spacing: .03em; margin-bottom: 1.1rem; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: pulseDot 1.8s ease-out infinite; }
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(224,26,34,.55); }
  70% { box-shadow: 0 0 0 11px rgba(224,26,34,0); }
  100% { box-shadow: 0 0 0 0 rgba(224,26,34,0); }
}
.waveform { display: flex; align-items: flex-end; justify-content: flex-end; gap: 4px; height: 90px; }
.waveform span { display: block; width: 5px; border-radius: 3px; background: var(--brand); transform-origin: bottom; animation: waveBar 1.3s ease-in-out infinite; }
.waveform span:nth-child(1) { height: 35%; animation-delay: -1.2s; }
.waveform span:nth-child(2) { height: 60%; animation-delay: -0.9s; }
.waveform span:nth-child(3) { height: 42%; animation-delay: -0.6s; }
.waveform span:nth-child(4) { height: 78%; animation-delay: -1.05s; }
.waveform span:nth-child(5) { height: 50%; animation-delay: -0.3s; }
.waveform span:nth-child(6) { height: 90%; animation-delay: -0.75s; }
.waveform span:nth-child(7) { height: 38%; animation-delay: -1.3s; }
.waveform span:nth-child(8) { height: 66%; animation-delay: -0.45s; }
.waveform span:nth-child(9) { height: 48%; animation-delay: -1.15s; }
.waveform span:nth-child(10) { height: 82%; animation-delay: -0.15s; }
.waveform span:nth-child(11) { height: 33%; animation-delay: -0.9s; }
.waveform span:nth-child(12) { height: 58%; animation-delay: -0.6s; }
@keyframes waveBar { 0%, 100% { transform: scaleY(.45); opacity: .75; } 50% { transform: scaleY(1); opacity: 1; } }
@media (max-width: 900px) { .hero-visual { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-visual .pulse-dot { animation: none; }
  .waveform span { animation: none; transform: scaleY(.7); opacity: .9; }
}
.hero .container { position: relative; padding-block: 6.5rem 5rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 16ch; margin-bottom: 1.2rem; }
.hero h1 .accent { color: var(--brand); }
.hero p.lede { font-size: 1.2rem; color: #d3d3db; max-width: 54ch; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 3.5rem; flex-wrap: wrap; }
.hero-stats .n { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hero-stats .k { font-size: .82rem; color: #b0b0ba; text-transform: uppercase; letter-spacing: .05em; }

/* ================= Scroll-reveal =================
   Every rule here is scoped under html.js so a page with no/broken JavaScript
   never hides its own content (the ".reveal" classes are simply inert then —
   default opacity/transform apply, i.e. fully visible). The "visible" rule for
   each variant is always the hidden rule plus one extra class, so it is
   mathematically guaranteed to win on specificity once JS adds that class —
   never invert this without keeping that property. */
html.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .4s ease, transform .4s ease; }
html.js .reveal.visible { opacity: 1; transform: none; }
html.js .reveal-group > * { opacity: 0; transform: scale(.94); transition: opacity .35s ease, transform .35s ease; }
html.js .reveal-group.visible > * { opacity: 1; transform: none; }
.reveal-group.visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-group.visible > *:nth-child(2) { transition-delay: 70ms; }
.reveal-group.visible > *:nth-child(3) { transition-delay: 140ms; }
.reveal-group.visible > *:nth-child(4) { transition-delay: 210ms; }
.reveal-group.visible > *:nth-child(5) { transition-delay: 280ms; }
.reveal-group.visible > *:nth-child(6) { transition-delay: 350ms; }
html.js .reveal-scale { opacity: 0; transform: scale(.9) translateY(28px); transition: opacity .8s cubic-bezier(.16,.8,.24,1), transform .8s cubic-bezier(.16,.8,.24,1); }
html.js .reveal-scale.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-group > *, .reveal-scale { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ================= Product preview mockup ================= */
.preview-wrap { perspective: 1400px; }
.browser-frame {
  background: var(--night-2); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--night-line); overflow: hidden; max-width: 920px; margin-inline: auto;
}
.browser-frame .chrome { display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; background: var(--night); border-bottom: 1px solid var(--night-line); }
.browser-frame .chrome .dot { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3a; }
.browser-frame .chrome .addr { margin-left: .8rem; flex: 1; background: var(--night-2); border-radius: var(--radius-sm); padding: .3rem .8rem; font-size: .78rem; color: var(--night-muted); max-width: 260px; }
.browser-frame .screen { padding: 1.6rem; background: var(--bg); }
.browser-frame .screen .stat-grid { gap: .8rem; }
.browser-frame .screen .stat { padding: .9rem 1rem; }
.browser-frame .screen .stat .value { font-size: 1.5rem; }
.browser-frame .screen .chart-bars { height: 110px; }
.browser-frame .screen .preview-map { padding: .5rem; }
.browser-frame .screen .preview-map .world-map { max-height: 220px; }
.browser-frame .screen .preview-map .map-pulse-hit { width: 20px; height: 20px; }
.browser-frame .screen .preview-map .map-panel { height: 9.5rem; padding-top: .6rem; margin-top: .6rem; }
.browser-frame .screen .preview-map .map-panel-tracks li { font-size: .76rem; }
@media (max-width: 640px) { .browser-frame .screen { padding: 1rem; } }

.section { padding-block: 4.5rem; }
.section-tight { padding-block: 3rem; }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: .8rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { padding: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s ease; }
.feature:hover { border-color: var(--line-2); }
.feature .ico-box { color: var(--brand); margin-bottom: 1rem; }
.feature .ico-box .ico { width: 24px; height: 24px; }
.feature h3 { font-size: 1.1rem; }

.steps { counter-reset: step; display: grid; gap: 1rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; padding: 1.3rem 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.step:hover { border-color: var(--line-2); }
.step .n { counter-increment: step; width: 34px; height: 34px; border-radius: 50%; background: var(--night); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; transition: background .2s ease; }
.step:hover .n { background: var(--brand); }
.step .n::before { content: counter(step); }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; align-items: stretch; }
.price-card { display: flex; flex-direction: column; padding: 1.8rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s ease; }
.price-card:hover { border-color: var(--line-2); }
.price-card.featured { border-color: var(--brand); position: relative; }
.price-card.featured:hover { border-color: var(--brand-ink); }
.price-card.featured::before { content: "Recommended"; position: absolute; top: -11px; left: 1.8rem; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .25rem .7rem; border-radius: var(--radius-sm); }
.price-card .amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; }
.price-card ul { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: .7rem; font-size: .92rem; }
.price-card li { display: flex; gap: .6rem; align-items: flex-start; }
.price-card li .ico { color: var(--ok); width: 18px; height: 18px; flex: none; margin-top: 2px; }
.price-card .btn { margin-top: auto; }

.cta { position: relative; background: var(--night); color: #fff; border-radius: var(--radius-lg); padding: 3rem; text-align: center; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; left: 50%; top: -280px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(224,26,34,.32) 0%, rgba(224,26,34,0) 70%); pointer-events: none; }
.cta h2, .cta p, .cta .mt-3 { position: relative; }
.cta h2 { color: #fff; }
.cta p { color: #c9c9d1; max-width: 48ch; margin-inline: auto; }

.data-table-card .table a { color: var(--brand-ink); }
.rank { font-weight: 800; color: var(--faint); font-variant-numeric: tabular-nums; width: 2ch; }
.rank-bar { height: 3px; background: var(--line); border-radius: 2px; margin-top: .35rem; max-width: 180px; overflow: hidden; }
.rank-bar span { display: block; height: 100%; background: var(--brand); border-radius: 2px; }

/* ================= App shell (portal & admin) ================= */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar { background: var(--night); color: var(--night-muted); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sidebar .brand { color: #fff; padding: 1.1rem 1.3rem; height: var(--header-h); border-bottom: 1px solid var(--night-line); }
.sidebar .brand img { height: 26px; }
/* A brighter red than the standard brand color is used for small text sitting
   directly on the near-black sidebar, where the standard brand red reads
   dark and muddy rather than as a clear accent. */
.sidebar .brand .sub { color: #ff5b62; }
.side-nav { flex: 1; overflow-y: auto; padding: 1rem .75rem; display: flex; flex-direction: column; gap: .15rem; }
.side-nav .group { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: #6a6a76; padding: 1rem .75rem .4rem; }
.side-nav a { display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; border-radius: var(--radius-sm); color: var(--night-muted); font-size: .9rem; font-weight: 500; }
.side-nav a:hover { background: var(--night-2); color: #fff; text-decoration: none; }
.side-nav a.active { background: var(--brand); color: #fff; }
.side-nav a .ico { width: 18px; height: 18px; flex: none; }
.side-foot { padding: 1rem; border-top: 1px solid var(--night-line); font-size: .82rem; }
.side-foot a { color: var(--night-muted); }

.app-main { display: flex; flex-direction: column; min-width: 0; background: var(--bg); }
.topbar { height: var(--header-h); background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 1rem; padding: 0 1.5rem; position: sticky; top: 0; z-index: 30; }
.topbar h1 { font-size: 1.15rem; margin: 0; }
.topbar .spacer { flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: .6rem; }
.content { padding: 1.75rem; max-width: 1280px; width: 100%; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.page-head .subtitle { color: var(--muted); font-size: .92rem; }
.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: .35rem; }
.breadcrumb a { color: var(--muted); }

/* icon button + dropdown + avatar */
.icon-btn { position: relative; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn .dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; background: var(--brand); border-radius: 50%; border: 2px solid var(--surface); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--night); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .82rem; }
.dropdown { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--surface-3); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .4rem; z-index: 50; }
.menu a, .menu button { display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; padding: .55rem .7rem; border-radius: var(--radius-sm); color: var(--ink-2); font: inherit; font-size: .88rem; background: none; border: 0; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--surface-2); text-decoration: none; }
.menu .sep { height: 1px; background: var(--line); margin: .35rem 0; }
.menu-head { padding: .6rem .7rem; border-bottom: 1px solid var(--line); margin-bottom: .3rem; }
.menu .notif { display: block; padding: .6rem .7rem; border-radius: var(--radius-sm); }
.menu .notif.unread { background: var(--brand-tint); }
.menu .notif small { color: var(--muted); }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: var(--sidebar-w); transform: translateX(-100%); transition: transform .2s ease; z-index: 60; }
  .sidebar.open { transform: none; }
  .content { padding: 1.1rem; }
  .app-menu-toggle { display: inline-flex !important; }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 55; }
}
.app-menu-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: .4rem; cursor: pointer; }

/* charts */
.chart { width: 100%; }
.chart-bars { display: flex; align-items: flex-end; gap: .4rem; height: 180px; padding-top: 1rem; }
.chart-bars .bar { flex: 1; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 3px; position: relative; transition: opacity .15s; }
.chart-bars .bar:hover { opacity: .8; }
.chart-bars .bar-value { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  margin-bottom: 3px; font-size: .65rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.chart-x { display: flex; gap: .4rem; margin-top: .5rem; }
.chart-x span { flex: 1; text-align: center; font-size: .68rem; color: var(--muted); }

/* country activity map */
.country-map-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }
.world-map-wrap { position: relative; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem; }
.world-map { width: 100%; height: auto; display: block; }
.world-map path, .world-map g path { fill: var(--map-empty); stroke: var(--surface-2); stroke-width: .6; transition: fill .15s, filter .15s; cursor: default; }
.world-map .has-data { cursor: pointer; }
.world-map .hovered { filter: brightness(1.25); }
.map-credit { margin: .5rem 0 0; text-align: right; }
.map-credit a { color: inherit; }
.map-swatch { display: inline-block; width: .6rem; height: .6rem; border-radius: 2px; margin-right: .4rem; vertical-align: middle; background: var(--map-empty); }
.map-swatch.level-1 { background: var(--map-level-1); }
.map-swatch.level-2 { background: var(--map-level-2); }
.map-swatch.level-3 { background: var(--map-level-3); }
.map-swatch.level-4 { background: var(--map-level-4); }

.map-legend { display: flex; align-items: center; gap: .4rem; margin-top: .6rem; font-size: .72rem; color: var(--muted); flex-wrap: wrap; }
.map-legend .map-swatch { margin-right: 0; }

.map-tooltip { position: absolute; z-index: 5; pointer-events: none; background: var(--night); color: #fff;
  font-size: .74rem; font-weight: 600; padding: .35rem .6rem; border-radius: var(--radius-sm); box-shadow: var(--shadow); white-space: nowrap; }

/* The real hit area is deliberately much bigger than the visible dot --
   a small country (Uganda, Rwanda...) is only a few screen pixels on a
   world map, so hovering the exact shape is unreasonably fiddly. */
.map-pulse-hit { position: absolute; transform: translate(-50%, -50%); z-index: 3;
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.map-pulse-hit .pulse-dot { width: 10px; height: 10px; }
.map-pulse-hit.level-1 .pulse-dot { background: var(--map-level-1); }
.map-pulse-hit.level-2 .pulse-dot { background: var(--map-level-2); }
.map-pulse-hit.level-3 .pulse-dot { background: var(--map-level-3); }
.map-pulse-hit.level-4 .pulse-dot { background: var(--map-level-4); }

/* Fixed height so the panel never changes size while you hover (a growing panel moved the map under the
   pointer and made it flicker); a long list scrolls inside it. */
.map-panel { margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--line); height: 11.5rem; overflow-y: auto; }
.map-tooltip { pointer-events: none; }
.map-panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .5rem; }
.map-panel-tracks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.map-panel-tracks li { display: flex; align-items: baseline; gap: .5rem; font-size: .82rem; }
.map-panel-tracks .track-title { font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { background: radial-gradient(900px 500px at 20% 10%, #1d1d24, var(--night)); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; }
.auth-aside img { height: 42px; }
.auth-aside .quote { font-size: 1.4rem; font-weight: 600; line-height: 1.4; max-width: 26ch; }
.auth-main { display: grid; place-items: center; padding: 2rem; background: var(--surface); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 1.6rem; }
.auth-alt { text-align: center; margin-top: 1.5rem; font-size: .9rem; color: var(--muted); }
.oauth-btn { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; padding: .7em; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); font-weight: 600; font-size: .92rem; color: var(--ink); cursor: pointer; }
.oauth-btn:hover { background: var(--surface-2); text-decoration: none; }
.divider-or { display: flex; align-items: center; gap: 1rem; color: var(--faint); font-size: .82rem; margin: 1.3rem 0; }
.divider-or::before, .divider-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 820px) { .auth-wrap { grid-template-columns: 1fr; } .auth-aside { display: none; } }

/* ================= Client dashboards ================= */
.dash-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .dash-3 { grid-template-columns: 1fr; } }
.insight-banner { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .9rem; padding: 1.1rem 1.4rem;
  border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: var(--radius);
  background: linear-gradient(90deg, var(--brand-tint), transparent 70%); }
.insight-banner .eyebrow { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); font-weight: 700; }
.opportunity { border-color: var(--brand); background: linear-gradient(160deg, var(--brand-tint), var(--surface) 70%); }
.opportunity .eyebrow { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); font-weight: 700; }

.donut-wrap { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.donut { width: 140px; height: 140px; flex: 0 0 auto; }
.donut circle { fill: none; stroke-width: 12; }
.donut-bg { stroke: var(--surface-3); }
.donut-seg.radio { stroke: var(--brand); }
.donut-seg.tv { stroke: #f2a33a; }
.donut-num { font-size: 15px; font-weight: 700; fill: var(--ink); }
.donut-sub { font-size: 6px; fill: var(--muted); }
.legend-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .85rem; }
.legend-list .dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .4rem; }
.legend-list .dot.radio { background: var(--brand); }
.legend-list .dot.tv { background: #f2a33a; }

.trend { width: 100%; height: 110px; display: block; overflow: visible; }
.trend-line { stroke: var(--brand); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }

.bar-row { display: grid; grid-template-columns: 7.5rem 1fr 3rem; align-items: center; gap: .7rem; margin-bottom: .65rem; font-size: .86rem; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 8px; background: var(--surface-3); border-radius: 2px; overflow: hidden; }
.bar-track span { display: block; height: 100%; background: var(--brand); border-radius: 2px; }
.bar-num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.bar-num.up { color: var(--ok); }

.heat { display: grid; grid-template-columns: 2.4rem repeat(8, 1fr); gap: 3px; align-items: center; }
.heat-day { font-size: .68rem; color: var(--muted); }
.heat-cell { aspect-ratio: 1.6; border-radius: 3px; background: var(--surface-3); }
.heat-cell.lv1 { background: rgba(227,27,35,.25); } .heat-cell.lv2 { background: rgba(227,27,35,.45); }
.heat-cell.lv3 { background: rgba(227,27,35,.7); }  .heat-cell.lv4 { background: var(--brand); }
.heat-x { display: grid; grid-template-columns: 2.4rem repeat(8, 1fr); margin-top: .35rem; font-size: .62rem; color: var(--muted); }
.heat-x span { text-align: center; } .heat-x span:first-child { grid-column: 2; }
.stat .delta.down { color: var(--danger); }

/* ================= Landing page (hero art, highlights, song cards) ================= */
.hero.hero-art {
  background:
    linear-gradient(90deg, #0a0a0a 0%, #0a0a0a 30%, rgba(10,10,10,.72) 52%, rgba(10,10,10,0) 82%),
    linear-gradient(180deg, transparent 70%, #0a0a0a 100%),
    #0a0a0a var(--hero-image, url("../img/hero-bg.ea9dced89fd9.jpg")) right center / cover no-repeat;
}
.hero.hero-art::before, .hero.hero-art::after { display: none; }
.hero-art .container { padding-block: 5.5rem 4.5rem; }
.hero-art .live-badge { display: inline-flex; align-items: center; gap: .55rem; font-size: .78rem; color: #c7c7d1; letter-spacing: .03em; margin-bottom: 1.2rem; }
.hero-art h1 { max-width: 15ch; }
.hero-art .lede { max-width: 46ch; }
@media (max-width: 800px) {
  .hero.hero-art { background: linear-gradient(180deg, rgba(10,10,10,.82), rgba(10,10,10,.9)), #0a0a0a var(--hero-image, url("../img/hero-bg.ea9dced89fd9.jpg")) 70% center / cover no-repeat; }
}

.strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-block: 1.6rem; }
.strip-item { display: flex; align-items: center; gap: .9rem; }
.strip-item .ico { width: 30px; height: 30px; color: var(--brand); flex: 0 0 auto; }
.strip-item strong { display: block; font-size: .95rem; }
.strip-item span { display: block; font-size: .8rem; color: var(--muted); }
@media (max-width: 900px) { .strip-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .strip-grid { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .8rem; border-radius: var(--radius-sm); font-size: .8rem; font-weight: 600;
  border: 1px solid var(--line-2); color: var(--ink-2); background: var(--surface); }
.chip:hover { text-decoration: none; border-color: var(--brand); color: var(--ink); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip .ico { width: 13px; height: 13px; }

.song-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
@media (max-width: 1000px) { .song-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .song-cards { grid-template-columns: repeat(2, 1fr); } }
.song-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.song-art { position: relative; aspect-ratio: 1; background: linear-gradient(145deg, #2a0d0f, #0a0a0a 70%) center / cover no-repeat; display: flex; align-items: center; justify-content: center; }
.song-initial { font-size: 3.2rem; font-weight: 800; color: rgba(255,255,255,.18); }
.song-rank { position: absolute; top: .6rem; left: .6rem; min-width: 1.7rem; height: 1.7rem; padding-inline: .4rem; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 800; font-size: .8rem; border-radius: 6px; }
.song-meta { padding: .8rem .9rem 1rem; display: grid; gap: .1rem; }
.song-meta strong { font-size: .95rem; line-height: 1.25; }
.song-meta .muted { font-size: .82rem; }
.song-plays { margin-top: .35rem; font-size: .8rem; font-weight: 600; color: var(--brand-ink); }
a.plain { color: inherit; } a.plain:hover { color: var(--brand-ink); }

.network-band { background: var(--night); color: #fff; padding: 2.6rem 0; }
.network-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 1.5rem; align-items: center; }
.network-grid h2 { color: #fff; margin-bottom: .3rem; font-size: 1.5rem; }
.network-grid p { margin: 0; color: var(--night-muted); font-size: .9rem; }
.network-stat strong { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.network-stat span { font-size: .78rem; color: var(--night-muted); }
@media (max-width: 1000px) { .network-grid { grid-template-columns: 1fr 1fr; } .network-grid > div:first-child { grid-column: 1 / -1; } }

.split { display: grid; grid-template-columns: .9fr 1.3fr; gap: 3rem; align-items: center; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }
.tick-list { list-style: none; margin: 1.2rem 0 1.6rem; padding: 0; display: grid; gap: .7rem; }
.tick-list li { display: flex; align-items: center; gap: .7rem; font-weight: 600; font-size: .95rem; }
.tick-list .ico { width: 18px; height: 18px; color: var(--brand); }

.artist-head { display: flex; gap: 1.5rem; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; }
.artist-photo { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; background: linear-gradient(145deg, #2a0d0f, #0a0a0a); display: grid; place-items: center; flex: 0 0 auto; }
.artist-photo img { width: 100%; height: 100%; object-fit: cover; }
.artist-photo span { font-size: 3rem; font-weight: 800; color: rgba(255,255,255,.25); }
.social-pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.pill { padding: .25rem .7rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.pill:hover { border-color: var(--brand); text-decoration: none; color: var(--ink); }

/* help & guide */
.help-layout { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .help-layout { grid-template-columns: 1fr; } }
.help-toc { position: sticky; top: 1rem; display: grid; gap: .4rem; font-size: .88rem; }
.help-toc a { color: var(--ink-2); padding: .2rem 0; }
.help-body h2 { font-size: 1.3rem; }
.help-body h3 { font-size: 1rem; margin: 1.1rem 0 .3rem; }
.help-body p, .help-body li, .help-dl dd { color: var(--ink-2); line-height: 1.65; }
.help-dl { display: grid; grid-template-columns: 10rem 1fr; gap: .6rem 1.2rem; margin: 0; }
.help-dl dt { font-weight: 700; }
.help-dl dd { margin: 0; }
@media (max-width: 640px) { .help-dl { grid-template-columns: 1fr; gap: .1rem; } .help-dl dd { margin-bottom: .7rem; } }

/* Sidebar counters (e.g. unread notifications): small, solid, readable on the dark menu */
.side-nav a .badge { margin-left: auto; height: auto; min-width: 0; padding: .1em .5em; font-size: .7rem; line-height: 1.5;
  background: var(--brand); color: #fff; border: 0; }

/* ================= Artist pages: header, round stat badges, mentions ================= */
/* Header for an artist (or a label / manager / agent). Always dark, like the app
   shell, so the artist's photo can glow behind it in either theme. */
.artist-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff;
  border: 1px solid var(--night-line); border-radius: var(--radius-lg); padding: 1.75rem;
  background:
    radial-gradient(110% 140% at 0% 0%, rgba(227,27,35,.38), transparent 55%),
    radial-gradient(90% 120% at 100% 100%, rgba(227,27,35,.14), transparent 60%),
    linear-gradient(135deg, #1a0708, #0b0b0c 60%); }
.artist-hero::before { content: ""; position: absolute; inset: -60px; z-index: -2;
  background: var(--hero-img, none) center / cover no-repeat; filter: blur(40px) saturate(1.3); opacity: .42; }
.artist-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10,10,10,.82) 0%, rgba(10,10,10,.5) 60%, rgba(10,10,10,.35) 100%); }
.hero-inner { display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap; }
.hero-avatar { width: 136px; height: 136px; flex: none; border-radius: 50%; padding: 4px;
  background: conic-gradient(from 210deg, #ff8a8e, #e31b23 35%, #5c070b 65%, #ff8a8e);
  box-shadow: 0 22px 44px -20px rgba(227,27,35,.9), 0 0 0 1px rgba(255,255,255,.08); }
.hero-avatar > img, .hero-avatar > span { width: 100%; height: 100%; border-radius: 50%; border: 3px solid #0b0b0c;
  object-fit: cover; display: grid; place-items: center; background: linear-gradient(145deg, #2a0d0f, #0a0a0a);
  font-size: 2.6rem; font-weight: 800; color: rgba(255,255,255,.35); }
.hero-text { flex: 1; min-width: 240px; }
.hero-eyebrow { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #ff8a8e; font-weight: 700; }
.hero-name { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; margin: .2rem 0 .55rem; color: #fff; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .45rem 1.1rem; margin-bottom: .8rem; }
.hero-chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 600; color: #d6d6da; }
.hero-chip .ico { width: 14px; height: 14px; }
.hero-bio { color: #cfcfd4; font-size: .92rem; max-width: 72ch; margin: 0 0 .9rem; white-space: pre-line;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hero-hint { margin: .8rem 0 0; font-size: .84rem; color: #cfcfd4; }
.hero-hint a { color: #ff8a8e; font-weight: 600; }
.hero-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-self: flex-start; }
.btn-glass { --btn-bg: rgba(255,255,255,.08); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.2); backdrop-filter: blur(6px); }
.btn-glass:hover { --btn-bg: rgba(255,255,255,.16); filter: none; }
.avatar-stack { display: flex; align-items: center; }
.stack-av, .stack-more { width: 38px; height: 38px; border-radius: 50%; margin-left: -10px; border: 2px solid #0b0b0c;
  display: grid; place-items: center; overflow: hidden; font-size: .7rem; font-weight: 800; color: #fff;
  background: linear-gradient(145deg, #3a1214, #121212); }
.stack-av:first-child { margin-left: 0; }
.stack-av img { width: 100%; height: 100%; object-fit: cover; }
.stack-more { background: var(--brand); }
@media (max-width: 640px) {
  .artist-hero { padding: 1.25rem; }
  .hero-inner { gap: 1rem; }
  .hero-avatar { width: 96px; height: 96px; }
  .hero-actions { width: 100%; }
}

/* Social links: a coloured platform badge plus the platform name. */
.soc-links { display: flex; flex-wrap: wrap; gap: .45rem; }
.soc { display: inline-flex; align-items: center; gap: .45rem; padding: .32rem .7rem .32rem .35rem; border-radius: var(--radius-sm);
  font-size: .78rem; font-weight: 600; color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  transition: background .15s ease, border-color .15s ease; }
.soc:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.3); text-decoration: none; }
.soc-dot { width: 22px; height: 22px; flex: none; border-radius: 5px; display: grid; place-items: center;
  font-size: .56rem; font-weight: 800; letter-spacing: .02em; color: #fff; background: var(--pc, #5a5a60); }
.soc-dot .ico { width: 13px; height: 13px; }
.p-instagram { --pc: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.p-spotify { --pc: #1db954; } .p-youtube { --pc: #ff0000; } .p-tiktok { --pc: linear-gradient(135deg, #25f4ee, #000 45%, #fe2c55); }
.p-x { --pc: #111; } .p-facebook { --pc: #1877f2; } .p-apple_music { --pc: linear-gradient(135deg, #fa57c1, #fc5c7d); }
.p-audiomack { --pc: #ffa200; } .p-website { --pc: #4c8dff; } .p-other { --pc: #6b6b72; }

/* Round stat badges: a glossy coloured rim around a recessed face holding the
   number, so each figure reads like a 3D medallion. The rim is decorative unless
   it is a progress ring (.is-progress), which only shows a real share. */
.rings-card { background: radial-gradient(120% 140% at 50% -20%, var(--surface-2), var(--surface) 65%); border-radius: var(--radius-lg); }
.rings { display: flex; flex-wrap: wrap; justify-content: space-evenly; gap: 1.6rem 1rem; padding: 1.6rem 1.2rem 1.4rem; }
.rings > .ring { flex: 0 1 150px; }
/* colour variables live on .ring so a .tone-* class on the same element can override them */
.ring { --c1: #ff8a8e; --c2: #e31b23; --c3: #5c070b; --glow: rgba(227,27,35,.55);
  display: flex; flex-direction: column; align-items: center; gap: .75rem; text-align: center; min-width: 0; }
.ring-disc { --p: 100;
  position: relative; width: 138px; aspect-ratio: 1; border-radius: 50%; padding: 10px;
  background:
    radial-gradient(circle at 28% 20%, rgba(255,255,255,.6), rgba(255,255,255,0) 30%),
    conic-gradient(from 210deg, var(--c1), var(--c2) 35%, var(--c3) 68%, var(--c1));
  box-shadow: 0 20px 34px -16px var(--glow), 0 3px 0 rgba(255,255,255,.1) inset, 0 -4px 10px rgba(0,0,0,.45) inset;
  animation: ring-in .6s cubic-bezier(.2,.8,.2,1) both; }
.ring-disc.is-progress { background:
    radial-gradient(circle at 28% 20%, rgba(255,255,255,.5), rgba(255,255,255,0) 30%),
    conic-gradient(var(--c2) 0, var(--c1) calc(var(--p) * 1%), var(--surface-3) calc(var(--p) * 1%)); }
.ring-face { width: 100%; height: 100%; border-radius: 50%; display: grid; place-content: center; justify-items: center;
  background: radial-gradient(circle at 34% 26%, var(--surface-3), var(--surface) 55%, var(--bg) 100%);
  box-shadow: inset 0 9px 18px rgba(0,0,0,.6), inset 0 -2px 4px rgba(255,255,255,.07), 0 0 0 1px rgba(0,0,0,.4); }
[data-theme="light"] .ring-face { background: radial-gradient(circle at 34% 26%, #ffffff, #f5f5f6 58%, #e4e4e7);
  box-shadow: inset 0 7px 14px rgba(0,0,0,.14), inset 0 -2px 4px rgba(255,255,255,.9), 0 0 0 1px rgba(0,0,0,.06); }
.ring-ico { width: 18px; height: 18px; color: var(--c2); margin-bottom: .2rem; }
.ring-value { font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.ring-value.is-long { font-size: 1.3rem; }
.ring-sub { font-size: .68rem; color: var(--muted); margin-top: .3rem; max-width: 96px; line-height: 1.2; }
.ring-label { font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 700; color: var(--ink-2); max-width: 170px; }
.tone-red    { --c1: #ff8a8e; --c2: #e31b23; --c3: #5c070b; --glow: rgba(227,27,35,.55); }
.tone-gold   { --c1: #ffe39a; --c2: #f2a33a; --c3: #7a4a06; --glow: rgba(242,163,58,.5); }
.tone-blue   { --c1: #a8c9ff; --c2: #4c8dff; --c3: #14306b; --glow: rgba(76,141,255,.5); }
.tone-green  { --c1: #9af2c6; --c2: #2fb673; --c3: #0d4a2c; --glow: rgba(47,182,115,.5); }
.tone-violet { --c1: #dcc0ff; --c2: #9b5cff; --c3: #3b1670; --glow: rgba(155,92,255,.5); }
.tone-pink   { --c1: #ffbfdd; --c2: #ff4fa3; --c3: #6b0a3c; --glow: rgba(255,79,163,.5); }
.ring .ring-disc .ring-face { transition: transform .2s ease; }
.ring:hover .ring-face { transform: scale(1.03); }
@keyframes ring-in { from { opacity: 0; transform: translateY(8px) scale(.94); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ring-disc { animation: none; } .ring .ring-disc .ring-face { transition: none; } }
@media (max-width: 560px) {
  .rings { gap: 1.3rem .6rem; padding: 1.2rem .6rem; }
  .rings > .ring { flex-basis: calc(50% - .6rem); }
  .ring-disc { width: 112px; padding: 8px; }
  .ring-value { font-size: 1.45rem; } .ring-value.is-long { font-size: 1.05rem; }
}

/* Social mentions panel */
.mentions-grid { display: grid; grid-template-columns: minmax(220px, 280px) 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 860px) { .mentions-grid { grid-template-columns: 1fr; } }
.mention-figures { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1rem; }
.mention-figures > div { display: grid; padding: .85rem .95rem; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--brand-tint), var(--surface) 75%); }
.mention-num { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.platform-list { display: grid; gap: .45rem; }
.platform-row { display: flex; align-items: center; gap: .6rem; font-size: .86rem; padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.platform-row:last-child { border-bottom: 0; }
.mention-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.mention-item { display: flex; gap: .75rem; align-items: flex-start; padding: .75rem .85rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface-2); }
.mention-locked { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }

/* Ranked lists (top songs, top stations) with artwork */
.track-list { display: grid; gap: .25rem; padding-top: .8rem; padding-bottom: .8rem; }
.track-row { display: flex; align-items: center; gap: .75rem; padding: .5rem .2rem; border-bottom: 1px solid var(--line); }
.track-row:last-child { border-bottom: 0; }
.track-pos { width: 1.4rem; text-align: center; font-weight: 800; color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.track-art { width: 42px; height: 42px; flex: none; border-radius: 8px; display: grid; place-items: center; color: rgba(255,255,255,.55);
  background: linear-gradient(145deg, #2a0d0f, #0a0a0a 70%) center / cover no-repeat; box-shadow: 0 6px 14px -8px rgba(0,0,0,.6); }
.track-art.station { background: linear-gradient(145deg, var(--brand), #5c070b); color: #fff; }
.track-art .ico { width: 18px; height: 18px; }
.track-text { min-width: 0; }
.track-text .strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-n { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); min-width: 2.5rem; text-align: right; }

/* Radio / TV split rows on the dashboard */
.media-split { display: flex; align-items: center; gap: .7rem; padding: .55rem .2rem; }
.media-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #ff6a6f, var(--brand)); }
.media-ico.tv { background: linear-gradient(145deg, #ffd27a, #f2a33a); }
.media-ico .ico { width: 16px; height: 16px; }
.media-split strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }

/* Trend chart: soft fill under the line */
.trend { color: var(--brand); }
.trend-area { stroke: none; }

/* Roster (labels, managers, agents) */
.roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.roster-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .55rem; padding: 1.3rem .9rem 1.1rem;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--surface-2), var(--surface));
  transition: border-color .15s ease, transform .15s ease; }
.roster-card:hover { border-color: var(--brand); transform: translateY(-2px); text-decoration: none; }
.roster-avatar { width: 78px; height: 78px; border-radius: 50%; padding: 3px; background: conic-gradient(from 210deg, #ff8a8e, #e31b23 35%, #5c070b 65%, #ff8a8e); }
.roster-avatar img, .roster-avatar span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; place-items: center;
  background: linear-gradient(145deg, #2a0d0f, #0a0a0a); color: rgba(255,255,255,.5); font-weight: 800; border: 2px solid var(--surface); }
.roster-name { font-size: .95rem; line-height: 1.2; }
.roster-stats { display: flex; gap: .7rem; font-size: .76rem; color: var(--muted); }
.roster-stats b { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .roster-card { transition: none; } .roster-card:hover { transform: none; } }

/* Songs grid on artist pages (reuses the landing-page song cards) */
.artist-songs { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
a.song-card { color: inherit; transition: border-color .15s ease, transform .15s ease; }
a.song-card:hover { border-color: var(--brand); transform: translateY(-2px); text-decoration: none; }
@media (prefers-reduced-motion: reduce) { a.song-card { transition: none; } a.song-card:hover { transform: none; } }

/* Admin "View as artist" */
.preview-bar { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; padding: .9rem 1.1rem; border-radius: var(--radius);
  border: 1px solid var(--info); background: var(--info-tint); color: var(--ink); }
.preview-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--info); color: #fff; flex: none; }
.preview-frame { border: 2px dashed var(--line-2); border-radius: var(--radius-lg); padding: 1.2rem; }
@media (max-width: 640px) { .preview-frame { padding: .6rem; border-width: 1px; } }

/* Media Intelligence list: "Big Eye: headline ... View article ->" */
.p-news { --pc: linear-gradient(145deg, #ff6a6f, #8c0d12); }
.media-list { list-style: none; margin: 0; padding: 0; display: grid; }
.media-row { display: flex; align-items: center; gap: .85rem; padding: .85rem .2rem; border-bottom: 1px solid var(--line); }
.media-row:first-child { padding-top: .2rem; }
.media-text { flex: 1; min-width: 0; line-height: 1.4; }
.media-source { color: var(--ink); }
.media-headline { color: var(--ink-2); }
.media-link { flex: none; display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; white-space: nowrap;
  padding: .4rem .75rem; border-radius: var(--radius-sm); border: 1px solid var(--line-2); color: var(--ink); background: transparent; }
.media-link:hover { border-color: var(--brand); color: var(--brand-ink); text-decoration: none; }
.media-link .ico { width: 14px; height: 14px; }
.media-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding-top: .9rem; }
.media-sources { display: flex; flex-wrap: wrap; gap: .4rem; }
.media-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .6rem .2rem .25rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface-2); font-size: .76rem; font-weight: 600; color: var(--ink-2); }
.media-chip .soc-dot { width: 20px; height: 20px; font-size: .52rem; }
.media-chip b { color: var(--ink); }
@media (max-width: 560px) {
  .media-row { flex-wrap: wrap; }
  .media-link { margin-left: calc(24px + .85rem); }
}

/* Full play log on artist / station pages */
.scroll-list { max-height: 420px; overflow-y: auto; }
.scroll-list .table th { position: sticky; top: 0; z-index: 1; }
.history-filters { padding: 1rem 1.4rem 0; margin-bottom: 1rem; }
.history-filters select { max-width: 260px; }

/* Most played genres */
.genre-row { display: grid; grid-template-columns: minmax(4.5rem, 7rem) minmax(3rem, 1fr) auto 2.4rem; align-items: center; gap: .6rem; margin-bottom: .65rem; font-size: .86rem; }
.genre-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.genre-row .bar-track span { background: linear-gradient(90deg, #ff6a6f, var(--brand)); }
.genre-pct { color: var(--muted); font-size: .76rem; text-align: right; font-variant-numeric: tabular-nums; }
.genre-chips { display: flex; flex-wrap: wrap; gap: .35rem; }

/* Station pages */
.hero-avatar.is-logo, .roster-avatar.is-logo { border-radius: 22px; }
.hero-avatar.is-logo > img, .hero-avatar.is-logo > span { border-radius: 18px; object-fit: contain; background: #0b0b0c; }
.roster-avatar.is-logo img, .roster-avatar.is-logo span { border-radius: 16px; object-fit: contain; }
.live-chip .live-dot { width: 7px; height: 7px; border-radius: 50%; background: #8a8a8e; }
.live-chip.is-live { color: #8fe0b5; }
.live-chip.is-live .live-dot { background: #2fb673; }
.split-bar { display: flex; height: 10px; border-radius: 2px; overflow: hidden; background: var(--surface-3); margin: .4rem 0 1rem; }
.split-bar .seg.local { background: linear-gradient(90deg, #ffe39a, #f2a33a); }
.split-bar .seg.other { background: linear-gradient(90deg, #a8c9ff, #4c8dff); }
.split-legend { display: grid; gap: .45rem; font-size: .88rem; }
.split-legend .dot { display: inline-block; width: .65rem; height: .65rem; border-radius: 50%; margin-right: .35rem; }
.split-legend .dot.local { background: #f2a33a; } .split-legend .dot.other { background: #4c8dff; }
.station-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.track-art.round { border-radius: 50%; font-size: .72rem; font-weight: 800; color: rgba(255,255,255,.7); }

/* Wide editing tables (bulk review): less space between columns so every column fits */
.table-tight th, .table-tight td { padding: .6rem .5rem; }
.table-tight th:first-child, .table-tight td:first-child { padding-left: .9rem; }
