/* Uganda Catholic Music — public site styles (dark streaming-app layout)
   The accent colour follows the liturgical season, set on <html data-season>. Dark by default; light via the moon button. */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/inter-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-style: normal; font-display: swap; src: url(fonts/inter-latin-800-normal.woff2) format("woff2"); }

/* White and red by default. The red can be changed in Studio → Settings (it arrives as --brand). */
:root {
  --brand: #e11d2e;
  --bg: #f6f6f8;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f1f4;
  --line: #e6e6eb;
  --ink: #15151a;
  --muted: #5c5c66;
  --dim: #85858f;
  --focus: #1d4ed8;
  --s: var(--brand); --s-ink: #ffffff;
  --shadow: 0 1px 2px rgba(20, 20, 30, .06), 0 4px 14px rgba(20, 20, 30, .06);
  --shadow-hi: 0 10px 30px rgba(20, 20, 30, .14);
  --season: #2e9d5b;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-sm: 6px; --r: 12px; --r-lg: 18px;
  --top-h: 64px; --side-w: 240px; --tab-h: 62px; --player-h: 80px;
  color-scheme: light;
}
[data-season="violet"] { --season: #7c3aed; }
[data-season="gold"]   { --season: #c99a12; }
[data-season="red"]    { --season: #dc2626; }
:root[data-theme="dark"] {
  --bg: #0b0b0e; --bg-2: #111115; --surface: #17171c; --surface-2: #202027; --line: #2a2a32;
  --ink: #f4f4f5; --muted: #a8a8b3; --dim: #75757f; --focus: #93c5fd; color-scheme: dark;
  --shadow: none; --shadow-hi: 0 10px 30px rgba(0, 0, 0, .5);
}
:root { --s-soft: color-mix(in srgb, var(--s) 11%, transparent); --s-dark: color-mix(in srgb, var(--s) 70%, #000); --paper: var(--bg); --chip: var(--surface-2); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
}
body.has-player { padding-bottom: calc(var(--tab-h) + var(--player-h) + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { body { padding-bottom: 0; } body.has-player { padding-bottom: var(--player-h); } }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-weight: 800; line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h2 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 .8em; }
.i { width: 20px; height: 20px; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 99; border-radius: var(--r-sm); }
.skip:focus { top: 8px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--s); display: inline-block; flex: none; }

/* ---------- Top bar ---------- */
.top { position: sticky; top: 0; z-index: 30; height: var(--top-h); display: flex; align-items: center; gap: 16px; padding: 0 16px;
  background: color-mix(in srgb, var(--bg-2) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .top { display: grid; grid-template-columns: calc(var(--side-w) - 16px) minmax(0, 1fr) auto; padding: 0 24px 0 16px; } }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.brand-name { font-weight: 800; font-size: 1.02rem; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search { display: none; position: relative; width: 100%; max-width: 440px; justify-self: center; }
.search .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--dim); width: 17px; height: 17px; }
.search input { width: 100%; height: 40px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 0 16px 0 40px; font: inherit; }
.search input::placeholder { color: var(--dim); }
.search input:focus { border-color: var(--s); outline: none; }
.top-end { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.season-chip { display: none; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; background: none; color: var(--muted); border-radius: 50%; cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
@media (min-width: 1024px) { .search { display: block; } .only-mobile { display: none; } .season-chip { display: inline-flex; } }

/* ---------- Shell: sidebar + content ---------- */
.shell { display: block; }
.side { display: none; }
@media (min-width: 1024px) {
  .shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); }
  .side { display: block; position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); overflow-y: auto; padding: 18px 12px 120px;
    background: var(--bg-2); border-right: 1px solid var(--line); scrollbar-width: thin; }
}
.side-h { margin: 18px 10px 8px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: var(--dim); text-transform: uppercase; }
.side-h:first-child { margin-top: 0; }
.side-link { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px; font-weight: 600; color: var(--muted); }
.side-link .i { width: 19px; height: 19px; }
.side-link:hover { background: var(--surface); color: var(--ink); }
.side-link[aria-current] { background: var(--surface-2); color: var(--ink); }
.side-link[aria-current]::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--s); }
.side-link[aria-current] .i { color: var(--s); }
.side-link.sub { padding: 8px 12px; font-weight: 500; }
.side-n { margin-left: auto; font-size: .8rem; color: var(--dim); }
.side-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; padding: 0 12px; }
.side-grid a { padding: 6px 0; color: var(--muted); font-weight: 500; }
.side-grid a:hover { color: var(--ink); }
.content { min-width: 0; }
#main { outline: none; }
.page, .wrap { padding: 24px 16px 8px; max-width: 1400px; }
@media (min-width: 700px) { .page, .wrap { padding: 28px 32px 8px; } }
.wrap.narrow { max-width: 760px; }

/* ---------- Buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  background: var(--s); color: var(--s-ink); font: 700 .95rem var(--sans); cursor: pointer; white-space: nowrap; }
.btn:hover { color: var(--s-ink); filter: brightness(1.1); }
.btn .i { width: 18px; height: 18px; }
.btn-sub { font-weight: 500; opacity: .8; }
.btn-light { background: #fff; color: #0a0a0c; }
.btn-light:hover { color: #0a0a0c; filter: none; background: #e9e9ec; }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; filter: none; }
.btn-quiet { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { color: var(--ink); filter: none; background: var(--line); }
.btn-quiet.is-saved .i { color: var(--s); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .88rem; font-weight: 500; color: var(--ink); }
.chip small { color: var(--dim); }
.chip:hover { border-color: var(--s); }
.chip.is-on { background: var(--s); color: var(--s-ink); border-color: var(--s); font-weight: 700; }
.chip .i { width: 15px; height: 15px; }
.tag { font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--s-soft); color: var(--s); }
.badge { display: inline-block; padding: 4px 10px; border-radius: 6px; background: var(--s); color: var(--s-ink); font-size: .74rem; font-weight: 800; letter-spacing: .01em; }

/* ---------- Hero slider ---------- */
.hero { position: relative; margin-bottom: 8px; }
.hero-slides { position: relative; height: 280px; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
@media (max-width: 699px) { .hero-slides { height: 380px; } }
.slide { position: absolute; inset: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 28px; padding: 32px 36px;
  opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.slide.is-on { opacity: 1; visibility: visible; }
@media (max-width: 699px) { .slide { grid-template-columns: 1fr; align-content: end; gap: 16px; padding: 22px; } }
.slide-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(36px) saturate(1.3); transform: scale(1.1); z-index: 0; }
.slide::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.25) 100%); }
@media (max-width: 699px) { .slide::before { background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 60%, rgba(0,0,0,.2) 100%); } }
.slide-bg-season { background: radial-gradient(120% 140% at 15% 20%, color-mix(in srgb, var(--s) 75%, #000) 0%, color-mix(in srgb, var(--s) 30%, #000) 45%, #050505 100%); filter: none; transform: none; inset: 0; }
.slide-art, .slide-body { position: relative; z-index: 2; }
.slide-art { width: 200px; height: 200px; border-radius: 12px; object-fit: cover; box-shadow: 0 18px 40px rgba(0,0,0,.5); }
@media (max-width: 699px) { .slide-art { width: 112px; height: 112px; } .date-art b { font-size: 3.2rem; } .date-art span { font-size: .8rem; } .slide-title { font-size: 1.45rem; } }
.date-art { display: grid; place-content: center; line-height: 1.15; gap: 2px; text-align: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #fff; font-weight: 700; backdrop-filter: blur(6px); }
.date-art b { font-size: 5.2rem; line-height: .95; font-weight: 800; letter-spacing: -0.04em; }
.date-art span { font-size: .95rem; opacity: .9; }
.slide-body { color: #fff; min-width: 0; }
.slide-title { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 800; margin: 12px 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slide-by { color: rgba(255,255,255,.82); font-size: 1rem; font-weight: 500; margin: 0 0 18px; }
.slide-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.slide-actions > span { display: contents; }
.slide.is-playing .btn-light, .readings-slide .is-playing .btn { box-shadow: 0 0 0 3px var(--s); }
.hero-dots { display: flex; justify-content: center; gap: 6px; padding: 12px 0 0; }
.hero-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: var(--line); cursor: pointer; transition: width .3s, background .3s; }
.hero-dots button[aria-selected="true"] { width: 24px; background: var(--s); }
.hero-dots button::after { content: ""; display: block; margin: -10px; height: 27px; }

/* ---------- Sections ---------- */
.sec { margin: 30px 0 36px; }
.sec > h2 { margin-bottom: 14px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.sec-head a { font-weight: 600; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.sec-head a:hover { color: var(--ink); text-decoration: underline; }
.two { display: grid; gap: 0 40px; }
@media (min-width: 1100px) { .two { grid-template-columns: 1fr 1fr; } }
.cols { display: grid; gap: 0 40px; }
@media (min-width: 900px) { .cols { grid-template-columns: 1fr 1fr; } }
.empty { padding: 20px; border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted); }

/* Trending: numbered grid that flows down columns */
.tgrid { list-style: none; margin: 0; padding: 0 0 6px; display: grid; grid-auto-flow: column; grid-template-rows: repeat(4, auto); grid-auto-columns: minmax(260px, 1fr);
  gap: 4px 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tgrid::-webkit-scrollbar { display: none; }
@media (max-width: 699px) { .tgrid { grid-auto-columns: 86%; } }
.trow { display: grid; grid-template-columns: 52px 26px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 8px; scroll-snap-align: start; }
.trow:hover { background: var(--surface); }
.trow-n { font-weight: 700; color: var(--dim); text-align: center; font-variant-numeric: tabular-nums; }
.trow:nth-child(-n+3) .trow-n { color: var(--s); }
.trow .row-save { opacity: 0; }
.trow:hover .row-save, .trow .row-save.is-saved, .trow .row-save:focus-visible { opacity: 1; }
@media (hover: none) { .trow .row-save { opacity: 1; } }

/* ---------- Track rows (lists) ---------- */
.tracks { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; align-items: center; gap: 4px 14px; padding: 6px 8px; border-radius: 8px; }
.row:has(.row-dl) { grid-template-columns: 52px minmax(0, 1fr) auto auto auto; }
.numbered .row { grid-template-columns: 26px 52px minmax(0, 1fr) auto auto; }
.numbered .row:has(.row-dl) { grid-template-columns: 26px 52px minmax(0, 1fr) auto auto auto; }
.row:hover { background: var(--surface); }
.row-n { font-weight: 700; color: var(--dim); text-align: center; font-variant-numeric: tabular-nums; }
.numbered .row:nth-child(-n+3) .row-n { color: var(--s); }
.row-play { position: relative; width: 52px; height: 52px; border: 0; padding: 0; border-radius: 6px; overflow: hidden; background: var(--surface-2); cursor: pointer; color: #fff; }
.row-play img { width: 52px; height: 52px; object-fit: cover; }
.row-play .ov { position: absolute; inset: 0; margin: auto; opacity: 0; width: 22px; height: 22px; }
.row-play:hover .ov, .row-play:focus-visible .ov, .is-playing .row-play .ov { opacity: 1; }
.row-play:hover img, .is-playing .row-play img { filter: brightness(.45); }
.datechip { display: grid; place-items: center; align-content: center; height: 100%; color: var(--s); background: var(--s-soft); font-size: .7rem; font-weight: 700; line-height: 1.1; }
.datechip b { font-size: 1.25rem; font-weight: 800; }
.row-play:hover .datechip, .is-playing .datechip { opacity: .25; }
.row-main { display: grid; min-width: 0; padding: 2px 0; }
.row-main strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main span { color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main:hover strong { text-decoration: underline; }
.is-playing .row-main strong { color: var(--s); }
.row-meta { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.row-plays { display: none; }
@media (min-width: 700px) { .row-plays { display: inline; } .row-plays::before { content: "▶ "; font-size: .65em; } }
@media (max-width: 480px) { .row-dur { display: none; } }
.row-save.is-saved { color: var(--s); }

/* ---------- Tiles (square covers) ---------- */
.tiles { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 18px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tiles::-webkit-scrollbar { display: none; }
@media (max-width: 699px) { .tiles { grid-auto-columns: 140px; gap: 14px; } }
.tiles-grid { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); overflow: visible; }
.tile { display: grid; gap: 2px; align-content: start; scroll-snap-align: start; min-width: 0; }
.tile-art { position: relative; display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.tile-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.tile:hover .tile-art img { transform: scale(1.04); }
.tile-play { position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--s); color: var(--s-ink); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,.45); opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.tile:hover .tile-play, .tile-play:focus-visible, .is-playing .tile-play { opacity: 1; transform: none; }
@media (hover: none) { .tile-play { opacity: 1; transform: none; } }
.tile-dur { position: absolute; left: 8px; top: 8px; font-size: .72rem; font-weight: 700; color: #fff; background: rgba(0,0,0,.6); padding: 2px 7px; border-radius: 999px; }
.tile-t { font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 10px; }
.tile-t:hover { text-decoration: underline; }
.tile-by { color: var(--muted); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.is-playing .tile-t { color: var(--s); }
.date-tile { display: grid; place-content: center; text-align: center; background: linear-gradient(150deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: .85rem; }
.date-tile b { font-size: 3.4rem; line-height: 1; font-weight: 800; color: var(--ink); letter-spacing: -0.04em; }
.date-tile.is-today { background: linear-gradient(150deg, color-mix(in srgb, var(--s) 55%, #000), color-mix(in srgb, var(--s) 18%, #000)); color: #fff; border-color: transparent; }
.date-tile.is-today b { color: #fff; }
.grid-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 22px 18px; margin: 20px 0 48px; }

/* ---------- Chart cards ---------- */
.charts-row { display: grid; grid-auto-flow: column; grid-auto-columns: 172px; gap: 18px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.charts-row::-webkit-scrollbar { display: none; }
.chart-card { display: grid; gap: 2px; align-content: start; }
.chart-face { position: relative; display: block; aspect-ratio: 1; border-radius: 10px; padding: 12px; overflow: hidden; color: #fff; margin-bottom: 8px; transition: transform .2s; }
.chart-card:hover .chart-face { transform: translateY(-3px); }
.tone-0 { background: linear-gradient(140deg, var(--s), color-mix(in srgb, var(--s) 35%, #2e1065)); }
.tone-1 { background: linear-gradient(140deg, color-mix(in srgb, var(--s) 60%, #db2777), color-mix(in srgb, var(--s) 25%, #4a044e)); }
.tone-2 { background: linear-gradient(140deg, color-mix(in srgb, var(--s) 55%, #2563eb), color-mix(in srgb, var(--s) 20%, #172554)); }
.tone-3 { background: linear-gradient(140deg, color-mix(in srgb, var(--s) 55%, #0d9488), color-mix(in srgb, var(--s) 20%, #042f2e)); }
.tone-4 { background: linear-gradient(140deg, color-mix(in srgb, var(--s) 50%, #ea580c), color-mix(in srgb, var(--s) 20%, #431407)); }
.chart-brand { display: block; font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.chart-title { display: block; font-size: 1.3rem; font-weight: 800; line-height: 1.1; margin-top: 4px; letter-spacing: -0.02em; }
.chart-covers { position: absolute; left: 12px; bottom: 12px; display: flex; }
.chart-covers img { width: 42px; height: 42px; border-radius: 6px; object-fit: cover; border: 2px solid rgba(0,0,0,.25); box-shadow: 0 4px 10px rgba(0,0,0,.35); }
.chart-covers img + img { margin-left: -12px; }
.chart-card strong { font-weight: 600; }

/* ---------- Choir avatars ---------- */
.avatars { display: grid; grid-auto-flow: column; grid-auto-columns: 152px; gap: 18px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.avatars::-webkit-scrollbar { display: none; }
@media (max-width: 699px) { .avatars { grid-auto-columns: 120px; } }
.avatar { display: grid; justify-items: center; text-align: center; gap: 2px; }
.avatar img { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; margin-bottom: 10px; background: var(--surface-2); transition: transform .2s; }
.avatar:hover img { transform: scale(1.04); }
.avatar strong { font-weight: 600; font-size: .92rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.avatar span { color: var(--muted); font-size: .82rem; }

/* ---------- Genre-style picture tiles ---------- */
.genre-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
@media (max-width: 699px) { .genre-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }
.genre { position: relative; height: 96px; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 12px 14px; background: var(--surface-2); isolation: isolate; }
.genre img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .35s; }
.genre::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 60%, rgba(0,0,0,.15) 100%); }
.genre:hover img { transform: scale(1.06); }
.genre-t { font-weight: 800; font-size: 1.05rem; color: #fff; line-height: 1.2; }
.genre-n { font-size: .8rem; color: rgba(255,255,255,.78); }

/* Lists of names (choirs, series) */
.namelist { list-style: none; margin: 0; padding: 0; }
.namelist li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 10px; border-radius: 8px; }
.namelist li:hover { background: var(--surface); }
.namelist a { font-weight: 600; }
.namelist a:hover { text-decoration: underline; }

/* PDF list */
.docs { list-style: none; margin: 0; padding: 0; }
.docs li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 8px; }
.docs li:hover { background: var(--surface); }
.doc-ic { width: 40px; height: 40px; padding: 9px; border-radius: 8px; background: var(--s-soft); color: var(--s); }
.doc-main { display: grid; min-width: 0; }
.doc-main strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-main span { color: var(--muted); font-size: .85rem; }
.doc-main:hover strong { text-decoration: underline; }

/* ---------- Page headers, filters ---------- */
.page-head { padding: 8px 0 6px; display: grid; gap: 8px; }
.page-head.with-art { grid-template-columns: auto 1fr; gap: 24px; align-items: end; padding: 20px; margin: 0 -4px 10px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--s-soft), transparent); }
.page-head.with-art img { width: 110px; height: 110px; border-radius: var(--r); object-fit: cover; box-shadow: 0 14px 30px rgba(0,0,0,.4); }
@media (min-width: 700px) { .page-head.with-art img { width: 180px; height: 180px; } }
.lede { font-size: 1.02rem; color: var(--muted); max-width: 62ch; }
.crumbs { margin: 0; font-weight: 600; font-size: .85rem; }
.crumbs a { color: var(--s); }
.filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin: 14px 0; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; overflow-x: auto; max-width: 100%; }
.seg a { padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: .86rem; color: var(--muted); white-space: nowrap; }
.seg a:hover { color: var(--ink); }
.seg a[aria-current] { background: var(--ink); color: var(--bg); }
.chips-row { display: grid; gap: 8px; margin: 12px 0; }
@media (min-width: 900px) { .chips-row { grid-template-columns: 150px 1fr; align-items: start; } .chips-label { padding-top: 7px; } }
.chips-label { font-weight: 600; font-size: .85rem; color: var(--dim); }
@media (max-width: 899px) {
  .chips-row .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .chips-row .chips::-webkit-scrollbar { display: none; }
  .chips-row .chip { white-space: nowrap; flex: none; }
  .chips-row { gap: 6px; margin: 10px 0; }
}
.play-all { margin-bottom: 12px; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin: 24px 0; }
.pager a { font-weight: 600; color: var(--s); }
.pager a[rel="next"] { justify-self: end; }
.inline-search { display: flex; gap: 8px; flex: 1; max-width: 560px; }
.inline-search input { flex: 1; min-width: 0; height: 42px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 0 16px; font: inherit; }
.inline-search.big input { height: 50px; font-size: 1.05rem; }
.inline-search.big .btn { min-height: 50px; }
.datepick { display: flex; align-items: center; gap: 8px; }
.datepick input { height: 40px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 0 10px; font: inherit; }

/* ---------- Listen page ---------- */
.hero-track { display: grid; gap: 24px; padding: 24px; margin: 0 -4px 8px; border-radius: var(--r-lg); background: linear-gradient(180deg, var(--s-soft), transparent 85%); }
@media (min-width: 760px) { .hero-track { grid-template-columns: 260px 1fr; gap: 36px; align-items: end; padding: 32px; } }
.ht-art img { width: 100%; max-width: 300px; aspect-ratio: 1; object-fit: cover; border-radius: 12px; box-shadow: 0 20px 44px rgba(0,0,0,.45); }
.ht-date { aspect-ratio: 1; max-width: 260px; border-radius: 12px; background: linear-gradient(150deg, color-mix(in srgb, var(--s) 60%, #000), color-mix(in srgb, var(--s) 15%, #000)); color: #fff;
  display: grid; place-content: center; text-align: center; font-weight: 700; box-shadow: 0 20px 44px rgba(0,0,0,.45); }
.ht-date b { font-size: 6rem; line-height: 1; font-weight: 800; letter-spacing: -0.04em; }
.ht-body > .muted { font-weight: 600; font-size: .85rem; }
.ht-body h1 { font-size: clamp(1.8rem, 4.2vw, 3rem); margin: 4px 0 8px; }
.ht-by { font-size: 1rem; margin: 0 0 16px; color: var(--muted); }
.ht-by a { font-weight: 700; color: var(--ink); }
.ht-by a:hover { text-decoration: underline; }
.ht-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.share { display: flex; align-items: center; gap: 2px; margin: 6px 0 16px; }
.share .muted { margin-right: 6px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 16px; }
.facts div { display: grid; }
.facts dt { font-size: .78rem; color: var(--dim); }
.facts dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.pdf-callout { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); margin: 8px 0 24px; max-width: 520px; }
.pdf-callout:hover { border-color: var(--s); }
.pdf-callout .i { color: var(--s); width: 26px; height: 26px; }
.pdf-callout span { display: grid; }
.pdf-callout small { color: var(--muted); }
.prose { max-width: 70ch; font-size: 1rem; color: color-mix(in srgb, var(--ink) 88%, var(--muted)); }
.prose p { margin: 0 0 1em; }
.prose a { color: var(--s); text-decoration: underline; }
.lyrics { font-size: 1.05rem; line-height: 1.75; white-space: pre-line; }
.pdf-view { width: 100%; height: 80vh; min-height: 420px; border: 1px solid var(--line); border-radius: var(--r); margin: 16px 0; background: var(--surface); }

/* ---------- Readings ---------- */
.days { display: grid; gap: 10px; }
.day { display: grid; grid-template-columns: 70px 1fr; gap: 18px; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.day.is-today { border-color: var(--s); background: linear-gradient(90deg, var(--s-soft), var(--surface) 60%); }
.day-date { display: grid; justify-items: center; align-content: start; color: var(--muted); font-size: .75rem; font-weight: 600; line-height: 1.25; text-align: center; }
.day-date b { font-size: 2.1rem; font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -0.03em; }
.day.is-today .day-date, .day.is-today .day-date b { color: var(--s); }
.day-name { font-weight: 700; font-size: 1.02rem; margin-bottom: 10px; }
.day-plays { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.day-plays li { display: flex; align-items: center; gap: 2px; }
.pill-play { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: 600 .92rem var(--sans); cursor: pointer; }
.pill-play .i { color: var(--s); width: 18px; height: 18px; }
.pill-play small { font-weight: 400; color: var(--muted); }
.pill-play:hover, .is-playing .pill-play { border-color: var(--s); }
.is-playing .pill-play { background: var(--s-soft); }

/* ---------- Footer ---------- */
.social { display: flex; gap: 2px; align-items: start; }

/* ---------- Player ---------- */
.player { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); z-index: 40; height: var(--player-h);
  background: color-mix(in srgb, var(--bg-2) 94%, transparent); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .player { bottom: 0; } }
.pl-in { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 0 10px 0 12px; }
@media (min-width: 900px) { .pl-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; padding: 0 24px; } }
.pl-meta { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pl-meta img { width: 52px; height: 52px; border-radius: 6px; object-fit: cover; background: var(--surface-2); }
.pl-meta span { display: grid; min-width: 0; }
.pl-meta strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-meta small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-center { display: contents; }
@media (min-width: 900px) { .pl-center { display: grid; justify-items: center; gap: 4px; } }
.pl-ctrl { display: flex; align-items: center; gap: 4px; }
.pl-play { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); display: grid; place-items: center; cursor: pointer; }
.pl-play:hover { transform: scale(1.05); }
.pl-progress { position: absolute; left: 0; right: 0; top: -2px; display: flex; align-items: center; gap: 10px; width: auto; }
.pl-progress .pl-t { display: none; font-size: .74rem; color: var(--dim); font-variant-numeric: tabular-nums; min-width: 38px; }
.pl-progress .pl-t:last-child { text-align: right; }
.pl-track { position: relative; flex: 1; height: 4px; background: var(--line); border-radius: 2px; }
.pl-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--s); border-radius: 2px; }
.pl-track input { position: absolute; inset: -8px 0; width: 100%; height: 20px; margin: 0; opacity: 0; cursor: pointer; }
@media (min-width: 900px) {
  .pl-progress { position: static; width: 100%; max-width: 560px; }
  .pl-progress .pl-t { display: inline; }
  .pl-track:hover .pl-bar { background: var(--s); filter: brightness(1.2); }
}
.pl-extra { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.pl-speed { border: 1px solid var(--line); background: none; color: var(--muted); border-radius: 999px; font: 700 .76rem var(--sans); height: 28px; padding: 0 10px; cursor: pointer; }
.player [data-save].is-saved { color: var(--s); }
.hide-sm { display: none; }
@media (min-width: 700px) { .hide-sm { display: inline-grid; } }
.player.is-loading .pl-play { opacity: .6; }

/* ---------- Mobile tab bar ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); background: var(--bg-2); border-top: 1px solid var(--line); }
.tabbar a { display: grid; justify-items: center; align-content: center; gap: 3px; font-size: .7rem; font-weight: 600; color: var(--dim); }
.tabbar a[aria-current] { color: var(--ink); }
.tabbar a[aria-current] .i { color: var(--s); }
@media (min-width: 1024px) { .tabbar { display: none; } }

.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--player-h) + 16px); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; z-index: 60; font-weight: 600; }
@media (min-width: 1024px) { .toast { bottom: calc(var(--player-h) + 20px); } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* =====================================================================
   White & red theme layer: cards, accents and the home page genre grid
   ===================================================================== */
.top { background: color-mix(in srgb, var(--bg-2) 94%, transparent); border-top: 3px solid var(--s); box-shadow: 0 1px 0 var(--line); border-bottom: 0; }
.brand-name { color: var(--ink); }
.brand-name::first-letter { color: inherit; }
.season-chip .dot { background: var(--season); }
.search input { background: var(--surface-2); border-color: transparent; }
.search input:focus { background: var(--surface); border-color: var(--s); box-shadow: 0 0 0 4px var(--s-soft); }
.side { background: var(--bg-2); }
.side-link[aria-current] { background: var(--s-soft); color: var(--s); }
.side-link[aria-current] .i { color: var(--s); }
.seg { background: var(--surface); box-shadow: var(--shadow); border-color: var(--line); }
.seg a[aria-current] { background: var(--s); color: #fff; }
.chip { background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.chip:hover { border-color: var(--s); color: var(--s); }
.chip.is-on { color: #fff; }
.btn:hover { filter: brightness(1.08); }
.btn-quiet { background: var(--surface); box-shadow: var(--shadow); }
.btn-quiet:hover { background: var(--surface-2); }

/* Section titles with a red marker */
.sec-head h2, .sec > h2 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; }
.sec-head h2::before, .sec > h2::before { content: ""; width: 5px; height: 1.05em; border-radius: 3px; background: var(--s); flex: none; }
.sec-head a { color: var(--s); font-weight: 700; }

/* Lists sit on white cards */
.tracks, .docs, .namelist, .tgrid { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 6px; border: 1px solid var(--line); }
.tgrid { padding: 8px; }
.row:hover, .trow:hover, .docs li:hover, .namelist li:hover { background: var(--s-soft); }
.row-play, .row-play img { border-radius: 8px; }
.row-ad { list-style: none; padding: 6px 4px; }
.row-ad .ad { margin: 0; }

/* Tiles: cards with a lift on hover */
.tile-art { box-shadow: var(--shadow); border-radius: 10px; }
.tile:hover .tile-art { box-shadow: var(--shadow-hi); }
.tile-play { box-shadow: 0 6px 18px color-mix(in srgb, var(--s) 45%, transparent); }
.avatar img { box-shadow: var(--shadow); border: 3px solid var(--surface); outline: 2px solid transparent; transition: outline-color .2s, transform .2s; }
.avatar:hover img { outline-color: var(--s); }
.avatar:hover strong { color: var(--s); }

/* Charts in red tones */
.tone-0 { background: linear-gradient(140deg, var(--s), color-mix(in srgb, var(--s) 45%, #3b0010)); }
.tone-1 { background: linear-gradient(140deg, color-mix(in srgb, var(--s) 70%, #f97316), color-mix(in srgb, var(--s) 40%, #431407)); }
.tone-2 { background: linear-gradient(140deg, color-mix(in srgb, var(--s) 65%, #db2777), color-mix(in srgb, var(--s) 35%, #2e1065)); }
.tone-3 { background: linear-gradient(140deg, color-mix(in srgb, var(--s) 55%, #111827), #111827); }
.tone-4 { background: linear-gradient(140deg, color-mix(in srgb, var(--s) 70%, #f59e0b), color-mix(in srgb, var(--s) 45%, #7f1d1d)); }
.chart-face { box-shadow: var(--shadow); }
.chart-card:hover .chart-face { box-shadow: var(--shadow-hi); }

/* ---------- Home: genre card grid (like the old site, but livelier) ---------- */
.genres-sec { margin: 0 0 22px; }
.home-h1 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); letter-spacing: -0.02em; }
.home-h1 .muted { font-weight: 600; }
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
@media (min-width: 1300px) { .gcards { grid-template-columns: repeat(7, 1fr); } }
@media (max-width: 699px) { .gcards { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
@media (max-width: 380px) { .gcards { grid-template-columns: repeat(2, 1fr); } }
.gcard { display: grid; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.gcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-hi); border-color: var(--s); }
.gcard-art { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--surface-2); }
.gcard-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gcard:hover .gcard-art img { transform: scale(1.07); }
.gcard-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.35)); opacity: 0; transition: opacity .2s; }
.gcard:hover .gcard-art::after { opacity: 1; }
.gcard-go { position: absolute; right: 10px; bottom: 10px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; background: var(--s); color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--s) 50%, transparent); opacity: 0; transform: translateY(8px) scale(.9); transition: opacity .2s, transform .2s; }
.gcard-go .i { width: 18px; height: 18px; }
.gcard:hover .gcard-go, .gcard:focus-visible .gcard-go { opacity: 1; transform: none; }
.gcard-flag { position: absolute; left: 8px; top: 8px; z-index: 1; background: var(--s); color: #fff; font-size: .7rem; font-weight: 800; padding: 3px 8px; border-radius: 6px; }
.gcard-t { padding: 12px 14px 0; font-weight: 700; font-size: 1rem; line-height: 1.25; }
.gcard-n { padding: 2px 14px 13px; font-size: .8rem; color: var(--s); font-weight: 600; }
.gcard.is-hot { border-color: color-mix(in srgb, var(--s) 45%, var(--line)); }
@media (max-width: 699px) { .gcard-t { padding: 8px 9px 0; font-size: .85rem; } .gcard-n { padding: 1px 9px 9px; font-size: .72rem; } .gcard-go { display: none; } }

/* ---------- Home: today's readings strip ---------- */
.today-strip { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; margin: 4px 0 30px; padding: 18px 22px;
  border-radius: var(--r-lg); color: #fff; overflow: hidden; isolation: isolate;
  background: linear-gradient(115deg, var(--s) 0%, color-mix(in srgb, var(--s) 70%, #4a0010) 60%, color-mix(in srgb, var(--s) 40%, #120006) 100%); box-shadow: var(--shadow-hi); }
.today-strip::before { content: ""; position: absolute; z-index: -1; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,.08); }
.today-strip::after { content: ""; position: absolute; z-index: -1; right: 140px; bottom: -120px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.06); }
.ts-date { display: grid; justify-items: center; line-height: 1.05; padding: 8px 14px; border-radius: 12px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); font-size: .78rem; font-weight: 700; min-width: 86px; }
.ts-date b { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.04em; }
.ts-k { margin: 0; font-size: .82rem; font-weight: 700; opacity: .85; }
.ts-t { margin: 2px 0 0; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; }
.ts-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.ts-actions > span { display: contents; }
.today-strip .btn-light { color: var(--s-dark); }
.today-strip .is-playing .btn-light, .today-strip span.is-playing > .btn { box-shadow: 0 0 0 3px rgba(255,255,255,.6); }
@media (max-width: 899px) { .today-strip { grid-template-columns: auto 1fr; } .ts-actions { grid-column: 1 / -1; justify-content: flex-start; } }

/* ---------- Breadcrumbs ---------- */
.crumbs-bar { padding: 18px 16px 0; }
@media (min-width: 700px) { .crumbs-bar { padding: 22px 32px 0; } }
.crumbs-bar ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: .82rem; color: var(--dim); }
.crumbs-bar li + li::before { content: "›"; margin-right: 4px; color: var(--dim); }
.crumbs-bar a { color: var(--muted); font-weight: 600; }
.crumbs-bar a:hover { color: var(--s); }
.crumbs-bar [aria-current] { color: var(--ink); font-weight: 600; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
.crumbs-bar + .wrap, .crumbs-bar + .page { padding-top: 14px; }

/* ---------- Ads ---------- */
.ad { margin: 18px 16px; text-align: center; }
@media (min-width: 700px) { .ad { margin: 22px 32px; } }
.page .ad, .wrap .ad { margin-left: 0; margin-right: 0; }
.ad-label { display: block; font-size: .64rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.ad-body { display: flex; justify-content: center; min-height: 50px; }
.ad-body > * { max-width: 100%; }
.ad-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 0 auto; }
.ad-body ins.adsbygoogle { width: 100%; }
.ad-sidebar { margin: 18px 0 0; }
.ad-sidebar .ad-body { min-height: 0; }
.ad-mobile_sticky { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); z-index: 39; margin: 0; padding: 4px 36px 4px 4px;
  background: var(--bg-2); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(0,0,0,.08); }
.has-player .ad-mobile_sticky { bottom: calc(var(--tab-h) + var(--player-h) + env(safe-area-inset-bottom)); }
.ad-mobile_sticky .ad-body { min-height: 50px; max-height: 100px; overflow: hidden; }
.ad-close { position: absolute; right: 4px; top: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; }
@media (min-width: 1024px) { .ad-mobile_sticky { display: none; } }
.ad-mobile { display: block; }
.ad-desktop { display: none; }
@media (min-width: 1024px) { .ad-mobile { display: none; } .ad-desktop { display: block; } }
.ad-sidebar.ad-mobile { display: none; }

/* Player in white */
.player { background: color-mix(in srgb, var(--bg-2) 96%, transparent); box-shadow: 0 -6px 24px rgba(20,20,30,.08); }
.pl-play { background: var(--s); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--s) 40%, transparent); }
.pl-track { background: var(--surface-2); }
.tabbar { box-shadow: 0 -2px 10px rgba(0,0,0,.04); }
.tabbar a[aria-current] { color: var(--s); }

/* Listen page */
.hero-track { background: linear-gradient(180deg, var(--s-soft), transparent 85%); border: 1px solid var(--line); background-color: var(--surface); box-shadow: var(--shadow); }
.ht-date { background: linear-gradient(150deg, var(--s), color-mix(in srgb, var(--s) 45%, #200008)); }
.page-head.with-art { background: linear-gradient(180deg, var(--s-soft), transparent); }
.day { box-shadow: var(--shadow); }
.day.is-today { background: linear-gradient(90deg, var(--s-soft), var(--surface) 60%); }
.date-tile { background: var(--surface); box-shadow: var(--shadow); }
.date-tile.is-today { background: linear-gradient(150deg, var(--s), color-mix(in srgb, var(--s) 45%, #200008)); }
.gcards:not(.show-all) .gcard-more { display: none; }
.gcards-more { text-align: center; margin: 16px 0 0; }
@media (max-width: 699px) { .gcards:not(.show-all) .gcard:nth-child(n+13) { display: none; } }

/* =====================================================================
   Compact scale: smaller type and cards so more fits on screen
   ===================================================================== */
:root { --top-h: 56px; --side-w: 216px; --player-h: 72px; --tab-h: 58px; }
body { font-size: 14px; }
h1 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.sec-head h2, .sec > h2 { font-size: 1.08rem; }
.sec { margin: 22px 0 26px; }
.page, .wrap { padding-top: 18px; }
@media (min-width: 700px) { .page, .wrap { padding: 20px 24px 8px; } .crumbs-bar { padding: 16px 24px 0; } .ad { margin: 18px 24px; } }
.brand img { width: 30px; height: 30px; }
.brand-name { font-size: .95rem; }
.search input { height: 36px; }
.season-chip { height: 30px; font-size: .76rem; }
.side { padding: 14px 10px 110px; }
.side-link { padding: 7px 10px; font-size: .9rem; gap: 10px; }
.side-link .i { width: 17px; height: 17px; }
.side-link.sub, .side-grid a { font-size: .86rem; }
.btn { min-height: 38px; padding: 0 16px; font-size: .88rem; }

/* Genre cards: small, many per row */
.gcards { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
@media (min-width: 1300px) { .gcards { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); } }
@media (max-width: 699px) { .gcards { grid-template-columns: repeat(4, 1fr); gap: 8px; } }
@media (max-width: 420px) { .gcards { grid-template-columns: repeat(3, 1fr); gap: 8px; } }
.gcard { border-radius: 10px; }
.gcard-t { padding: 8px 10px 0; font-size: .84rem; font-weight: 700; line-height: 1.2; }
.gcard-n { padding: 1px 10px 9px; font-size: .72rem; }
.gcard-go { width: 32px; height: 32px; right: 8px; bottom: 8px; }
.gcard-go .i { width: 15px; height: 15px; }
.gcard-flag { font-size: .62rem; padding: 2px 6px; left: 6px; top: 6px; }
@media (max-width: 699px) {
  .gcard-t { padding: 6px 7px 0; font-size: .74rem; }
  .gcard-n { padding: 0 7px 7px; font-size: .64rem; }
  .gcard-flag { font-size: .56rem; padding: 2px 5px; left: 4px; top: 4px; }
}
.genres-sec { margin-bottom: 18px; }
@media (max-width: 699px) { .gcards:not(.show-all) .gcard:nth-child(n+13) { display: none; } }
@media (min-width: 700px) { .gcards:not(.show-all) .gcard:nth-child(n+17) { display: none; } .gcards:not(.show-all) .gcard-more:nth-child(-n+16) { display: grid; } }

/* Readings strip */
.today-strip { padding: 12px 16px; gap: 16px; margin-bottom: 22px; }
.ts-date { min-width: 68px; padding: 6px 10px; font-size: .7rem; }
.ts-date b { font-size: 1.8rem; }
.ts-t { font-size: 1rem; }
.ts-k { font-size: .74rem; }

/* Rows, tiles, avatars, charts: tighter */
.row, .numbered .row { gap: 4px 12px; padding: 5px 6px; grid-template-columns: 44px minmax(0, 1fr) auto auto; }
.row:has(.row-dl) { grid-template-columns: 44px minmax(0, 1fr) auto auto auto; }
.numbered .row { grid-template-columns: 22px 44px minmax(0, 1fr) auto auto; }
.numbered .row:has(.row-dl) { grid-template-columns: 22px 44px minmax(0, 1fr) auto auto auto; }
.row-play, .row-play img { width: 44px; height: 44px; }
.trow { grid-template-columns: 44px 22px minmax(0, 1fr) auto; padding: 5px 6px; }
.tgrid { grid-auto-columns: minmax(230px, 1fr); }
.tiles { grid-auto-columns: 140px; gap: 14px; }
@media (max-width: 699px) { .tiles { grid-auto-columns: 112px; gap: 10px; } }
.tile-t { font-size: .86rem; margin-top: 7px; }
.tile-by { font-size: .78rem; }
.tile-play { width: 36px; height: 36px; right: 7px; bottom: 7px; }
.tile-play .i { width: 16px; height: 16px; }
.avatars { grid-auto-columns: 120px; gap: 14px; }
@media (max-width: 699px) { .avatars { grid-auto-columns: 92px; } }
.avatar strong { font-size: .82rem; }
.avatar span { font-size: .74rem; }
.charts-row { grid-auto-columns: 140px; gap: 14px; }
@media (max-width: 699px) { .charts-row { grid-auto-columns: 118px; } }
.chart-title { font-size: 1.05rem; }
.chart-covers img { width: 32px; height: 32px; }
.icon-btn { width: 34px; height: 34px; }
.icon-btn .i { width: 18px; height: 18px; }

/* Player and song page */
.pl-meta img { width: 46px; height: 46px; }
.pl-play { width: 40px; height: 40px; }
.hero-track { padding: 20px; gap: 20px; }
@media (min-width: 760px) { .hero-track { grid-template-columns: 200px 1fr; gap: 28px; padding: 24px; } }
.ht-body h1 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
.ht-date b { font-size: 4.5rem; }
.page-head.with-art img { width: 96px; height: 96px; }
@media (min-width: 700px) { .page-head.with-art img { width: 140px; height: 140px; } }
.day { padding: 10px 14px; grid-template-columns: 58px 1fr; }
.day-date b { font-size: 1.7rem; }
.pill-play { min-height: 36px; font-size: .86rem; }
@media (max-width: 699px) { .gcards { grid-template-columns: repeat(4, 1fr); gap: 7px; } }
@media (max-width: 340px) { .gcards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 699px) {
  .gcard { border-radius: 8px; }
  .gcard-t { font-size: .7rem; padding: 5px 6px 0; font-weight: 700; }
  .gcard-n { font-size: .6rem; padding: 0 6px 6px; }
  .gcards:not(.show-all) .gcard:nth-child(n+13) { display: none; }
  .gcards:not(.show-all) .gcard-more:nth-child(-n+12) { display: grid; }
}
@media (min-width: 1024px) { .top { grid-template-columns: max-content minmax(0, 1fr) auto; gap: 24px; } .brand-name { display: inline; } }
@media (min-width: 1024px) and (max-width: 1180px) { .brand-name { display: none; } }

/* ---------- Language menu (globe) ---------- */
.lang { position: relative; }
.lang-btn { width: auto; min-width: 34px; padding: 0 6px; border-radius: 999px; gap: 4px; display: inline-flex; align-items: center; }
.lang-code { font-size: .7rem; font-weight: 800; color: var(--s); }
.lang-code:empty { display: none; }
.lang-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; width: 230px; max-height: 70vh; overflow: auto; padding: 8px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-hi); }
.lang-pop[hidden] { display: none; }
.lang-h { margin: 4px 8px 6px; font-size: .74rem; font-weight: 700; color: var(--dim); }
.lang-pop button { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 8px 10px; border: 0; border-radius: 8px; background: none;
  color: var(--ink); font: 500 .9rem var(--sans); text-align: left; cursor: pointer; }
.lang-pop button small { color: var(--dim); font-size: .74rem; }
.lang-pop button:hover { background: var(--s-soft); }
.lang-pop button[aria-current] { background: var(--s); color: #fff; }
.lang-pop button[aria-current] small { color: rgba(255,255,255,.8); }
.lang-note { margin: 8px 8px 2px; font-size: .72rem; color: var(--dim); line-height: 1.35; }
/* Hide Google Translate's own bar and pop-ups */
iframe.skiptranslate, body > .skiptranslate, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame, .VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight, font[style] { background: none !important; box-shadow: none !important; }

/* ---------- Account button / sign in ---------- */
.signin-btn { min-height: 34px; padding: 0 14px; gap: 6px; font-size: .84rem; }
.signin-btn .i { width: 16px; height: 16px; }
@media (max-width: 480px) { .signin-btn span { display: none; } .signin-btn { padding: 0 10px; } }
.acct-btn { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--s); color: #fff; font-weight: 800; flex: none; border: 2px solid var(--surface); box-shadow: 0 0 0 2px var(--s-soft); }
.acct-btn img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sign-in pages ---------- */
.auth-page { display: grid; place-items: start center; padding: 40px 16px 60px; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px 26px; box-shadow: var(--shadow-hi); border-top: 4px solid var(--s); }
.auth-card h1 { font-size: 1.5rem; margin-bottom: 4px; }
.auth-form { display: grid; gap: 6px; margin-top: 14px; }
.auth-form label { font-weight: 600; font-size: .85rem; margin-top: 6px; display: flex; justify-content: space-between; }
.auth-form label a { color: var(--s); font-weight: 600; }
.auth-form input { height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; background: var(--surface); color: var(--ink); }
.auth-form input:focus { outline: none; border-color: var(--s); box-shadow: 0 0 0 4px var(--s-soft); }
.btn-wide { width: 100%; margin-top: 12px; min-height: 44px; }
.g-wrap { display: flex; justify-content: center; margin: 18px 0 4px; min-height: 44px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: .8rem; margin: 14px 0 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-switch { text-align: center; margin: 18px 0 0; color: var(--muted); font-size: .88rem; }
.auth-switch a { color: var(--s); font-weight: 700; }
.note { padding: 10px 14px; border-radius: 10px; background: var(--surface-2); margin: 12px 0; font-size: .88rem; font-weight: 500; }
.note-err { background: #fde8e8; color: #9b1c1c; }
.note-ok { background: #def7ec; color: #03543f; }
:root[data-theme="dark"] .note-err { background: #3a1d1c; color: #f6b3ac; }
:root[data-theme="dark"] .note-ok { background: #12301f; color: #84e1bc; }
.acct-head { grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.acct-avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--s); color: #fff; font-size: 1.6rem; font-weight: 800; }
.acct-avatar img { width: 100%; height: 100%; object-fit: cover; }
.acct-head h1 { font-size: 1.4rem; }
.acct-head p { margin: 0; }
.card-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); margin-top: 0; }
.card-form .btn { justify-self: start; margin-top: 10px; }
.danger-zone summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.btn-danger-pub { background: #b42318; }

/* Download counts, visible to everyone */
.dl-count { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dl-count .i { width: 13px; height: 13px; color: var(--s); }
.tile-dl { margin-top: 1px; font-size: .74rem; }
.trow { grid-template-columns: 44px 22px minmax(0, 1fr) auto auto; }
.dl-link { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 0 8px; border-radius: 999px; color: var(--muted); font-size: .8rem; font-weight: 700; }
.dl-link .i { width: 18px; height: 18px; }
.dl-link:hover { background: var(--s-soft); color: var(--s); }
.row-plays::before { content: "▶ "; font-size: .65em; }

/* Phones: 3 genre cards per row, readable */
@media (max-width: 699px) {
  .gcards { grid-template-columns: repeat(3, 1fr) !important; gap: 10px; }
  .gcard { border-radius: 10px; }
  .gcard-t { font-size: .8rem; padding: 7px 8px 0; }
  .gcard-n { font-size: .68rem; padding: 1px 8px 8px; }
  .gcard-flag { font-size: .6rem; padding: 2px 6px; }
  .gcards:not(.show-all) .gcard:nth-child(n+10) { display: none; }
  .gcards:not(.show-all) .gcard-more:nth-child(-n+9) { display: grid; }
}
@media (max-width: 699px) and (min-width: 0) { .gcards:not(.show-all) .gcard:nth-child(n+10):not(.x) { display: none; } }
.season-chip { display: none !important; }

/* =====================================================================
   Song cards (category, choir, playlist, search) and simple song page
   ===================================================================== */
.cat-head { display: flex; align-items: center; gap: 16px; padding: 4px 0 6px; }
.cat-img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; box-shadow: var(--shadow); flex: none; }
.cat-head h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.cat-head p { margin: 2px 0 0; }
.cat-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 4px; }
.sort-pills { display: inline-flex; gap: 6px; }
.sort-pills a { padding: 7px 14px; border-radius: 999px; font-size: .84rem; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--line); }
.sort-pills a[aria-current] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.scards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
@media (max-width: 699px) { .scards { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.scard { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s, border-color .2s; }
.scard:hover { transform: translateY(-3px); box-shadow: var(--shadow-hi); border-color: var(--s); }
.scard-link { display: grid; padding-bottom: 10px; }
.scard-art { position: relative; display: block; aspect-ratio: 1; background: var(--surface-2); overflow: hidden; }
.scard-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.scard:hover .scard-art img { transform: scale(1.05); }
.scard-tag { position: absolute; left: 8px; top: 8px; background: var(--s); color: #fff; font-size: .68rem; font-weight: 800; padding: 2px 8px; border-radius: 6px; }
.scard-dur { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: .7rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.scard-t { padding: 9px 11px 0; font-weight: 700; font-size: .92rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.scard-by { padding: 2px 11px 0; color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scard-stats { display: flex; gap: 10px; padding: 5px 11px 0; font-size: .74rem; font-weight: 700; color: var(--muted); }
.scard-stats span { display: inline-flex; align-items: center; gap: 3px; }
.scard-stats .i { width: 12px; height: 12px; color: var(--s); }
.scard-play { position: absolute; right: 8px; top: calc(100% * 0 + 8px); width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--s); color: #fff;
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.scard-play .i { width: 16px; height: 16px; }
.scard.is-playing { border-color: var(--s); }
.scard.is-playing .scard-t { color: var(--s); }
@media (max-width: 699px) { .scard-t { font-size: .86rem; } }

/* Song page */
.song-page { max-width: 1000px; }
.song { display: grid; gap: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); margin-top: 6px; }
@media (min-width: 760px) { .song { grid-template-columns: 300px 1fr; gap: 32px; padding: 28px; align-items: start; } }
.song-art img, .song-art .ht-date { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; box-shadow: 0 14px 34px rgba(0,0,0,.18); max-width: none; }
@media (max-width: 759px) { .song-art { max-width: 320px; margin: 0 auto; width: 100%; } .song-info { text-align: center; } .song-stats, .song-more { justify-content: center; } }
.song-info h1 { font-size: clamp(1.5rem, 3.6vw, 2.3rem); line-height: 1.15; margin: 0 0 6px; }
.song-by { font-size: 1.02rem; color: var(--muted); margin: 0 0 14px; }
.song-by a { color: var(--s); font-weight: 700; }
.song-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 18px; color: var(--muted); font-size: .9rem; }
.song-stats span { display: inline-flex; align-items: center; gap: 5px; }
.song-stats b { color: var(--ink); }
.song-stats .i { width: 15px; height: 15px; color: var(--s); }
.song-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.big-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; border-radius: 14px; font: 800 1.08rem var(--sans); cursor: pointer; border: 0; }
.big-btn .i { width: 22px; height: 22px; }
.big-play { background: var(--s); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--s) 35%, transparent); }
.big-play:hover { filter: brightness(1.08); color: #fff; }
.big-dl { background: var(--ink); color: var(--bg); }
.big-dl:hover { color: var(--bg); opacity: .9; }
.song.is-playing .big-play { box-shadow: 0 0 0 4px var(--s-soft); }
.song-more { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pill-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: 600 .86rem var(--sans); cursor: pointer; }
.pill-btn .i { width: 16px; height: 16px; }
.pill-btn:hover { border-color: var(--s); color: var(--s); }
.pill-btn.wa .i { color: #25d366; }
.pill-btn.is-saved .i { color: var(--s); }
.song .pdf-callout { margin: 4px 0 0; text-align: left; }
.lyrics-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; box-shadow: var(--shadow); margin: 18px 0; }
.lyrics-card h2 { margin-bottom: 10px; }
.song-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0; }

/* ---------- Genre switcher (category pages) ---------- */
.genre-h1 { margin: 0; }
.genre-title { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 0; margin: 0; border: 0; background: none; color: var(--ink);
  font: inherit; font-size: clamp(1.35rem, 4.6vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; text-align: left; cursor: pointer; border-radius: var(--r-sm); }
.genre-title .i { width: 30px; height: 30px; padding: 6px; flex: none; border-radius: 50%; background: var(--s-soft); color: var(--s); transition: transform .2s; }
.genre-title:hover .i, .genre-title[aria-expanded="true"] .i { background: var(--s); color: var(--s-ink); }
.genre-title[aria-expanded="true"] .i { transform: rotate(180deg); }
.genre-quick { display: flex; gap: 8px; overflow-x: auto; margin: 12px 0 2px; padding: 2px 0 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.genre-quick::-webkit-scrollbar { display: none; }
.genre-quick a, .gq-more { display: inline-flex; align-items: center; gap: 7px; flex: none; height: 36px; padding: 0 14px 0 4px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: .84rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
.genre-quick img, .gq-dot { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.gq-dot { display: grid; place-items: center; background: var(--surface-2); font-size: .62rem; font-weight: 800; color: var(--muted); }
.genre-quick a.is-on { background: var(--s); border-color: var(--s); color: var(--s-ink); }
.genre-quick a.is-on .gq-dot { background: rgba(255,255,255,.25); color: #fff; }
.gq-more { padding: 0 12px 0 14px; color: var(--s); border-color: color-mix(in srgb, var(--s) 35%, var(--line)); }
.gq-more .i { width: 16px; height: 16px; }

.gsheet { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.gsheet[hidden] { display: none; }
.gsheet-bg { position: absolute; inset: 0; background: rgba(10, 10, 16, .45); animation: gs-fade .2s ease-out; }
.gsheet-box { position: relative; width: 100%; max-height: 86vh; display: flex; flex-direction: column; background: var(--bg-2); color: var(--ink);
  border-radius: 20px 20px 0 0; box-shadow: var(--shadow-hi); animation: gs-up .26s cubic-bezier(.2,.8,.25,1); }
.gsheet-head { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 18px 12px 10px 18px; border-bottom: 1px solid var(--line); }
.gsheet-head h2 { margin: 0; font-size: 1.08rem; font-weight: 800; }
.gsheet-grip { position: absolute; top: 7px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line); }
.gsheet-body { overflow-y: auto; padding: 12px 14px calc(18px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.gsheet-g { margin: 16px 2px 8px; font-size: .9rem; font-weight: 800; color: var(--muted); }
.gpicks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gpick { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 7px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.gpick img, .gpick-ic { width: 44px; height: 44px; flex: none; border-radius: 9px; object-fit: cover; }
.gpick-ic { display: grid; place-items: center; background: var(--s); color: var(--s-ink); }
.gpick-ic .i { width: 22px; height: 22px; }
.gpick span { min-width: 0; display: grid; }
.gpick b { font-size: .86rem; font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gpick small { font-size: .74rem; color: var(--muted); }
.gpick:hover { border-color: color-mix(in srgb, var(--s) 45%, var(--line)); }
.gpick.is-on { border-color: var(--s); background: var(--s-soft); box-shadow: inset 0 0 0 1px var(--s); }
.gpick.is-on b { color: var(--s); }
.gpick-all { width: 100%; }
body.sheet-open { overflow: hidden; }
@keyframes gs-up { from { transform: translateY(100%); } }
@keyframes gs-fade { from { opacity: 0; } }
@media (min-width: 760px) {
  .gsheet { align-items: center; padding: 24px; }
  .gsheet-box { max-width: 760px; max-height: 80vh; border-radius: 18px; animation-name: gs-pop; }
  .gsheet-grip { display: none; }
  .gpicks { grid-template-columns: repeat(3, 1fr); }
  .gpick-all { width: calc((100% - 16px) / 3); }
}
@keyframes gs-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .gsheet-box, .gsheet-bg { animation: none; } .genre-title .i { transition: none; } }
.cat-head > div { min-width: 0; flex: 1; }
.gsheet-body .gsheet-g { margin: 20px 2px 8px; }
.gsheet-body .gpick-all + .gsheet-g { margin-top: 14px; }
@media (max-width: 759px) {
  .cat-head { align-items: flex-start; gap: 12px; }
  .cat-head .cat-img { width: 64px; height: 64px; border-radius: 12px; }
  .cat-head > div { margin-right: -16px; }
  .genre-quick { padding-right: 16px; }
}
.cat-head > div { display: flex; flex-direction: column; }
.cat-head > div > .genre-quick { order: 3; }


/* ---------- Footer (always dark) ---------- */
.foot { --f-bg: #17161c; --f-ink: #f3f2f5; --f-muted: #a9a7b2; --f-line: rgba(255,255,255,.09);
  position: relative; margin-top: 56px; background: var(--f-bg); color: var(--f-ink); border-top: 3px solid var(--brand); color-scheme: dark; }
.foot-in { display: grid; gap: 30px 24px; max-width: 1400px; padding: 40px 20px 30px; grid-template-columns: 1fr 1fr; }
.foot-about { grid-column: 1 / -1; max-width: 460px; }
.foot-brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.12rem; color: var(--f-ink); letter-spacing: -.01em; }
.foot-brand img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: #fff; }
.foot-about p { margin: 14px 0 18px; color: var(--f-muted); font-size: .9rem; line-height: 1.6; }
.foot-social { display: flex; gap: 10px; flex-wrap: wrap; }
.foot-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.07); color: var(--f-ink); transition: background .15s, color .15s; }
.foot-social a:hover { background: var(--brand); color: #fff; }
.foot-social .i { width: 18px; height: 18px; }
.foot-col { display: grid; gap: 11px; align-content: start; min-width: 0; }
.foot-h { margin: 0 0 4px; font-size: .95rem; font-weight: 700; color: var(--f-ink); }
.foot-col a { color: var(--f-muted); font-size: .88rem; overflow-wrap: anywhere; }
.foot-col a:hover, .foot-bar a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.foot-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; max-width: 1400px; margin: 0; padding: 18px 20px;
  border-top: 1px solid var(--f-line); color: var(--f-muted); font-size: .8rem; }
.foot-top { display: inline-flex; align-items: center; gap: 6px; color: var(--f-muted); font-weight: 600; }
.foot-top .i { width: 14px; height: 14px; transform: rotate(180deg); }
@media (min-width: 700px) {
  .foot-in { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; padding: 48px 32px 36px; gap: 32px; }
  .foot-about { grid-column: auto; }
  .foot-bar { padding: 18px 32px; }
}
@media (max-width: 699px) { .foot-col:last-child { grid-column: 1 / -1; } }
/* the strip under the footer (behind the player and tab bar) matches the footer */
.foot { box-shadow: 0 160px 0 0 #17161c; }
