/* ============================================================================
   Lyrics.lol — main stylesheet
   Hand-authored, themeable (light/dark via CSS custom properties), responsive.
   Class names match the PHP output; theming is centralised in the :root vars.
   ========================================================================== */

:root{
  --primary:#123be4; --primary-hover:#2488ff;
  --bg:#f5f7f9; --card:#fff; --card-2:#f9f9f9;
  --text:#50565e; --text-muted:#8a9199; --heading:#2a2f36;
  --border:#edeff1; --border-strong:#dfe3e7;
  --header-bg:#fff; --footer-bg:#fff; --footer-link:#555;
  --shadow:rgba(20,30,50,.08); --shadow-strong:rgba(20,30,50,.18);
  --on-primary:#fff; --accent:#e10c13;
  --radius:8px;
}
[data-theme=dark]{
  --primary:#5b8cff; --primary-hover:#7ba4ff;
  --bg:#12151a; --card:#1b1f27; --card-2:#20252e;
  --text:#c3cad2; --text-muted:#8b93a1; --heading:#e8ecf1;
  --border:#2a303a; --border-strong:#353c47;
  --header-bg:#161a20; --footer-bg:#161a20; --footer-link:#9aa3af;
  --shadow:rgba(0,0,0,.45); --shadow-strong:rgba(0,0,0,.6);
  --on-primary:#0d1017; --accent:#ff5a60;
}

*,*::before,*::after{ box-sizing:border-box; }

html,body{ height:100%; }
body{
  margin:0; padding:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",tahoma,arial,helvetica,sans-serif;
  font-size:16px; line-height:1.7;
  background:var(--bg); color:var(--text);
  text-rendering:optimizeLegibility; -webkit-font-smoothing:antialiased;
  transition:background-color .25s ease, color .25s ease;
}
body,.sect,.header,.footer,.chart td,.item{ transition:background-color .25s ease, border-color .25s ease, color .25s ease; }

a{ color:var(--primary); text-decoration:none; }
a:hover{ color:var(--primary-hover); text-decoration:underline; }
img{ max-width:100%; }
h1,h2,h3{ color:var(--heading); }

.skip{
  position:absolute; left:0; top:-60px; width:100%; height:40px; line-height:40px;
  text-align:center; background:#fae619; color:#101010; font-weight:700; z-index:60; transition:top .2s;
}
.skip:focus,.skip:active{ top:0; outline:none; }

/* ---- Layout ------------------------------------------------------------- */
#body{ max-width:1200px; margin:0 auto; padding:16px; }
.sect{
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius);
  box-shadow:0 1px 3px var(--shadow); margin:0 auto 20px;
}
.Body{ padding:20px 28px; text-align:center; }
.Body>h1{ font-size:26px; margin:0 0 16px; }
@media (max-width:768px){ .Body{ padding:14px; } .Body>h1{ font-size:22px; } }
.sub{ color:var(--text-muted); font-size:14px; }
.empty{ color:var(--text-muted); padding:24px; text-align:center; }

/* ---- Header ------------------------------------------------------------- */
.header{ background:var(--header-bg); border-bottom:1px solid var(--border); box-shadow:0 1px 6px var(--shadow); position:relative; z-index:40; }
.header>.wrap{ max-width:1200px; margin:0 auto; padding:10px 16px; display:flex; align-items:center; gap:14px; }
.header .logo{ flex:0 0 auto; }
.header .logo img{ display:block; width:140px; max-width:42vw; height:auto; }
[data-theme=dark] .header .logo img{ filter:brightness(0) invert(1) opacity(.9); }
.header .menu{ flex:1 1 auto; display:flex; justify-content:flex-end; }
.header .menu ul{ list-style:none; margin:0; padding:0; display:flex; align-items:center; gap:8px; width:100%; justify-content:flex-end; }
.header .menu .searchItem{ flex:1 1 auto; max-width:520px; }
.header .menu a{ color:var(--text); padding:8px 12px; border-radius:6px; font-weight:600; }
.header .menu a:hover{ color:var(--primary); text-decoration:none; background:var(--card-2); }
#switch,.switch{ display:none; }

.themeToggle{
  flex:0 0 auto; width:40px; height:40px; border:1px solid var(--border); border-radius:8px;
  background:var(--card); color:var(--text-muted); cursor:pointer; padding:8px;
  display:inline-flex; align-items:center; justify-content:center;
}
.themeToggle:hover{ color:var(--primary); border-color:var(--primary); }
.themeToggle svg{ width:20px; height:20px; }
.themeToggle .ic-sun{ display:none; }
[data-theme=dark] .themeToggle .ic-moon{ display:none; }
[data-theme=dark] .themeToggle .ic-sun{ display:block; }

/* Search widget */
.uiInline{ width:100%; }
.uiInline .wrap{ display:flex; border:1px solid var(--border-strong); border-radius:8px; overflow:hidden; background:var(--card); }
.uiInline .inputWrap{ flex:1 1 auto; }
.uiInline input[type=text]{ width:100%; border:0; outline:0; padding:9px 14px; font-size:15px; background:transparent; color:var(--text); }
.uiInline .optWrap{ flex:0 0 auto; display:flex; }
.uiInline .uiBtn{ display:flex; }
.uiInline .uiBtn button{ border:0; cursor:pointer; padding:0 18px; font-weight:700; background:var(--primary); color:var(--on-primary); }
.uiInline .uiBtn button:hover{ background:var(--primary-hover); }
.uiInline.rainbow:focus-within .wrap{ border-color:var(--primary); box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 22%,transparent); }

@media (max-width:768px){
  .header>.wrap{ flex-wrap:wrap; }
  .switch{ display:block; order:3; width:40px; height:40px; border:1px solid var(--border); border-radius:8px; cursor:pointer; position:relative; background:var(--card); }
  .switch::before{ content:""; position:absolute; left:9px; right:9px; top:13px; height:2px; background:var(--text); box-shadow:0 6px 0 var(--text),0 12px 0 var(--text); }
  .themeToggle{ order:2; margin-left:auto; }
  .header .logo{ order:1; }
  .header .menu{ order:4; flex-basis:100%; max-height:0; overflow:hidden; transition:max-height .3s ease; }
  #switch:checked ~ .menu{ max-height:440px; }
  .header .menu ul{ flex-direction:column; align-items:stretch; gap:6px; padding:10px 0 4px; }
  .header .menu .searchItem{ max-width:none; }
  .header .menu li>a{ display:block; text-align:center; }
}

/* ---- Footer ------------------------------------------------------------- */
.footer{ background:var(--footer-bg); border-top:1px solid var(--border); margin-top:30px; }
.footer .wrap{ max-width:1200px; margin:0 auto; padding:22px 16px; text-align:center; }
.footer .menu ul{ list-style:none; margin:0 0 12px; padding:0; display:flex; flex-wrap:wrap; justify-content:center; gap:6px 10px; }
.footer .menu li{ color:var(--text-muted); font-weight:600; }
.footer .menu a{ color:var(--footer-link); font-weight:600; }
.footer .links{ margin:8px 0; display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }
.footer .copyright{ color:var(--text-muted); font-size:13px; }

/* ---- Breadcrumbs -------------------------------------------------------- */
.breadcrumbs-wrap{ margin:2px 4px 12px; }
.breadcrumbs{ list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; font-size:14px; color:var(--text-muted); }
.breadcrumbs .step a{ color:var(--text-muted); }
.breadcrumbs .step a:hover{ color:var(--primary); }
.breadcrumbs>li+li::before{ content:"\203A"; padding:0 8px; color:var(--text-muted); }

/* ---- Lyrics page -------------------------------------------------------- */
.T{ display:flex; gap:22px; align-items:flex-start; }
.T>.lCol{ flex:0 0 220px; }
.T>.rCol{ flex:1 1 auto; min-width:0; }
.T>.lCol .wrap{ position:sticky; top:16px; text-align:center; }
@media (max-width:768px){ .T{ flex-direction:column; } .T>.lCol{ flex-basis:auto; width:100%; } }

.pic{
  width:180px; height:180px; border-radius:50%; overflow:hidden; margin:6px auto 14px;
  border:3px solid var(--accent); box-shadow:0 6px 24px -10px var(--accent);
  background:var(--card-2) no-repeat url(/rsrc/i/artist.svg) 50% / 78%;
}
.pic>div{ width:100%; height:100%; background:no-repeat 50% / cover; }
.info .artist{ font-weight:700; font-size:22px; color:var(--heading); }
.info .sName{ font-size:20px; }

.lyricSheet{ padding:0; overflow:hidden; }
.songHead{ display:flex; align-items:center; gap:18px; padding:22px 28px; border-bottom:1px solid var(--border); background:var(--card-2); }
.songHead .pic{ width:84px; height:84px; margin:0; border-width:2px; flex:0 0 auto; }
.songHead .songMeta{ min-width:0; }
.songHead .sName{ margin:0; font-size:26px; line-height:1.25; }
.songHead .byline{ color:var(--text-muted); font-size:15px; margin-top:2px; }
.songHead .byline .artist{ font-weight:600; }
.lBody{
  padding:26px 32px 34px; max-width:760px; margin:0 auto;
  font-family:Georgia,"Times New Roman",serif; font-size:1.12rem; line-height:2; color:var(--text);
}
@media (max-width:768px){
  .songHead{ padding:16px; gap:14px; }
  .songHead .sName{ font-size:21px; }
  .lBody{ padding:18px; font-size:1.05rem; line-height:1.9; }
}

/* ---- Artist page -------------------------------------------------------- */
#inSearch{ margin:0 0 18px; }
.artBox{ padding:16px 22px 20px; }
.artBox h2{ font-size:18px; margin:0 0 12px; display:flex; align-items:center; gap:8px; }
.artBox h2 .cnt{ font-size:13px; font-weight:700; color:var(--on-primary); background:var(--primary); border-radius:20px; padding:1px 9px; }

.artistHero{ display:flex; align-items:center; gap:20px; padding:22px 26px; }
.artistHero .pic{ width:104px; height:104px; margin:0; flex:0 0 auto; border-width:2px; }
.artistHero .htext h1{ margin:0; font-size:30px; line-height:1.15; }
.artistHero .htext .sub{ margin-top:4px; }
@media (max-width:600px){ .artistHero{ flex-direction:column; text-align:center; gap:12px; padding:18px; } .artistHero .htext h1{ font-size:24px; } }

.popList{ list-style:none; margin:0; padding:0; columns:2; column-gap:26px; }
.popList li{ break-inside:avoid; }
.popList a{ display:flex; align-items:center; gap:12px; padding:7px 4px; border-bottom:1px solid var(--border); color:var(--text); }
.popList a:hover{ color:var(--primary); text-decoration:none; }
.popList .rank{ flex:0 0 auto; width:22px; text-align:center; font-weight:700; color:var(--text-muted); font-size:14px; }
.popList a:hover .rank{ color:var(--primary); }
@media (max-width:600px){ .popList{ columns:1; } }

.songGrid{ list-style:none; margin:0; padding:2px 0 0; columns:3; column-gap:28px; position:relative; }
.songGrid li{ break-inside:avoid; padding:5px 4px; }
.songGrid.collapsed{ max-height:360px; overflow:hidden; }
.songGrid.collapsed::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:90px; background:linear-gradient(rgba(0,0,0,0),var(--card)); pointer-events:none; }
@media (max-width:900px){ .songGrid{ columns:2; } }
@media (max-width:560px){ .songGrid{ columns:1; } }
.viewMoreWrap{ text-align:center; margin-top:16px; }
.viewMore{ background:var(--card); border:1px solid var(--border-strong); color:var(--text); font-weight:600; padding:9px 22px; border-radius:8px; cursor:pointer; }
.viewMore:hover{ border-color:var(--primary); color:var(--primary); }

/* ---- Artists A–Z listing ------------------------------------------------ */
.artistIndex{ list-style:none; margin:0; padding:6px 0 0; columns:3; column-gap:28px; text-align:left; }
.artistIndex li{ break-inside:avoid; padding:5px 4px; }
@media (max-width:900px){ .artistIndex{ columns:2; } }
@media (max-width:560px){ .artistIndex{ columns:1; } }

/* ---- Letters grid ------------------------------------------------------- */
.arts{ display:flex; flex-wrap:wrap; justify-content:center; gap:12px; padding:6px 0; }
.arts a{
  display:flex; align-items:center; justify-content:center; width:96px; height:96px;
  font-size:40px; font-weight:600; border:1px solid var(--border); border-radius:10px;
  background:var(--card); color:var(--primary); transition:transform .18s, box-shadow .18s;
}
.arts a:hover{ transform:translateY(-3px) scale(1.04); box-shadow:0 12px 26px -12px var(--shadow-strong); text-decoration:none; }
@media (max-width:768px){ .arts{ gap:8px; } .arts a{ width:58px; height:58px; font-size:28px; } }

/* ---- Search results ----------------------------------------------------- */
.searchHead{ margin:2px 4px 14px; }
.searchHead h1{ font-size:22px; margin:0; }
#searchResults{ max-width:1200px; margin:0 auto; }
.searchSect{ padding:16px 22px 20px; }
.searchSect h2{ font-size:18px; margin:0 0 12px; display:flex; align-items:center; gap:8px; }
.searchSect h2 .cnt{ font-size:13px; font-weight:700; color:var(--on-primary); background:var(--primary); border-radius:20px; padding:1px 9px; }
.songList{ list-style:none; margin:0; padding:0; }
.songList li{ display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 8px; padding:8px 6px; border-bottom:1px solid var(--border); }
.songList li:last-child{ border-bottom:0; }
.songList .title{ font-weight:600; }
.songList .by{ color:var(--text-muted); font-size:14px; }
.artistChips,.albumGrid{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:12px; }
.artistChips .chip{ display:inline-flex; align-items:center; gap:8px; padding:6px 14px 6px 6px; border:1px solid var(--border); border-radius:30px; background:var(--card-2); color:var(--text); font-weight:600; }
.artistChips .chip:hover{ border-color:var(--primary); color:var(--primary); text-decoration:none; }
.artistChips .pic,.albumGrid .pic{ width:34px; height:34px; margin:0; border-width:2px; box-shadow:none; }
.albumGrid li{ flex:0 0 auto; }
.albumGrid a{ display:flex; align-items:center; gap:10px; padding:8px; border:1px solid var(--border); border-radius:8px; background:var(--card-2); color:var(--text); max-width:300px; }
.albumGrid a:hover{ border-color:var(--primary); text-decoration:none; }
.albumGrid .pic.album{ border-radius:6px; }
.albumGrid .meta{ display:flex; flex-direction:column; min-width:0; }
.albumGrid .title{ font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.albumGrid .by{ color:var(--text-muted); font-size:13px; }
.noResults h1{ font-size:22px; }
.noResults p{ color:var(--text-muted); }

/* Artist spotlight (top result for artist-name queries) */
.spotlight{ display:flex; align-items:center; gap:18px; padding:18px 22px; color:var(--text); }
.spotlight:hover{ text-decoration:none; border-color:var(--primary); }
.spotlight .pic{ width:72px; height:72px; margin:0; border-width:2px; flex:0 0 auto; }
.spotlight .spotMeta{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; }
.spotlight .eyebrow{ font-size:11px; text-transform:uppercase; letter-spacing:.6px; color:var(--text-muted); font-weight:700; }
.spotlight .spotName{ font-size:24px; font-weight:700; color:var(--heading); line-height:1.2; }
.spotlight .spotSub{ color:var(--text-muted); font-size:14px; }
.spotlight .spotGo{ flex:0 0 auto; color:var(--primary); font-weight:600; }
@media (max-width:560px){ .spotlight{ gap:14px; padding:16px; } .spotlight .spotGo{ display:none; } .spotlight .spotName{ font-size:20px; } }

/* Collapsible search song list */
.songList.collapsed{ max-height:520px; overflow:hidden; position:relative; }
.songList.collapsed::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:80px; background:linear-gradient(rgba(0,0,0,0),var(--card)); pointer-events:none; }

/* ---- Charts (homepage) -------------------------------------------------- */
.chartList{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
@media (max-width:900px){ .chartList{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:520px){ .chartList{ grid-template-columns:1fr; } }
.chartList>li a,.chartList>li a:hover{ color:inherit; text-decoration:none; }
.item{ background:var(--card); border:1px solid var(--border); border-radius:10px; overflow:hidden; transition:transform .18s, box-shadow .18s; }
.chartList>li .item{ cursor:pointer; }
.chartList>li .item:hover{ transform:translateY(-4px); box-shadow:0 16px 34px -16px var(--shadow-strong); }
.poster{ position:relative; padding-top:70%; color:#fff; background:linear-gradient(160deg,#6f9fff,#2e4778); }
.poster h1,.poster h2{ position:absolute; left:0; right:0; text-align:center; margin:0; }
.poster h1{ top:36%; font-size:22px; }
.poster h2{ top:58%; font-size:12px; opacity:.9; }
.chartList>li:nth-child(1) .poster{ background:linear-gradient(160deg,#f0c544,#a57b20); }
.chartList>li:nth-child(2) .poster{ background:linear-gradient(160deg,#e2554f,#7a1410); }
.chartList>li:nth-child(3) .poster{ background:linear-gradient(160deg,#4b545e,#111418); }
.item .info{ padding:10px 12px; border-top:1px solid var(--border); }
.item .info h1{ font-size:14px; margin:0; }
.item .info .sub{ font-size:12px; }

/* "Daily Song Charts by Country" picker — a compact button (the <summary>)
   that expands a country grid. Native <details>, no JS, keyboard-accessible. */
.cpick{ margin:20px 0 0; }
.cpick-btn{
  list-style:none; cursor:pointer; user-select:none;
  display:flex; align-items:center; gap:10px;
  max-width:440px; padding:11px 14px;
  border:1px solid var(--border-strong); border-radius:10px;
  background:var(--card); color:var(--heading);
  font-size:15px; font-weight:600; line-height:1.2;
  box-shadow:0 6px 16px -12px var(--shadow-strong);
  transition:border-color .18s, box-shadow .18s;
}
.cpick-btn::-webkit-details-marker{ display:none; }   /* hide native disclosure triangle */
.cpick-btn:hover{ border-color:var(--primary); box-shadow:0 12px 24px -14px var(--shadow-strong); }
.cpick-btn:focus-visible{ outline:2px solid var(--primary); outline-offset:2px; }
.cpick-ico{ width:20px; height:20px; flex:0 0 auto; color:var(--primary); }
.cpick-txt{ flex:1 1 auto; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cpick-txt span{ font-weight:500; color:var(--text-muted); }
.cpick-chev{ width:18px; height:18px; flex:0 0 auto; color:var(--text-muted); transition:transform .2s ease; }
.cpick[open] .cpick-chev{ transform:rotate(180deg); }
.cpick[open] .cpick-btn{ border-color:var(--primary); border-bottom-left-radius:0; border-bottom-right-radius:0; }

.cpick-grid{ padding:10px 0 2px; }
.cpick-grid ol{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; }
.cpick-grid li{ width:25%; }
.cpick-grid li a{ display:block; margin:5px; padding:9px; border:1px solid var(--border); border-radius:6px; text-align:center; color:var(--text); font-size:14px; transition:border-color .15s, color .15s; }
.cpick-grid li a:hover{ border-color:var(--primary); color:var(--primary); text-decoration:none; }
@media (max-width:900px){ .cpick-grid li{ width:33.333%; } }
@media (max-width:600px){ .cpick-grid li{ width:50%; } .cpick-btn{ max-width:none; } }

/* ---- YouTube play button + video/lyrics popup ---- */
.ytBtn{
  display:inline-flex; align-items:center; gap:5px; vertical-align:middle; margin-left:8px;
  padding:3px 9px; border:1px solid var(--border-strong); border-radius:999px;
  background:var(--card); color:var(--primary); font-weight:500; font-size:12px; line-height:1;
  cursor:pointer; transition:border-color .15s, background .15s;
}
.ytBtn:hover{ border-color:var(--primary); background:var(--card-2); }
.ytBtn:focus-visible{ outline:2px solid var(--primary); outline-offset:2px; }
.ytBtn svg{ color:#f00; flex:0 0 auto; }          /* YouTube-red glyph */
.ytBtn-row{ float:left; padding:3px 6px; margin:0 8px 0 0; }   /* leads the row; text flows beside it (the track link is a full-width block) */

.ytModal{ position:fixed; inset:0; z-index:1000; background:rgba(8,10,14,.72);
  display:flex; align-items:center; justify-content:center; padding:20px; }
.ytPanel{ position:relative; width:min(980px,100%); max-height:90vh; overflow:hidden; display:flex;
  background:var(--card); border:1px solid var(--border); border-radius:14px;
  box-shadow:0 30px 80px -30px rgba(0,0,0,.7); }
.ytClose{ position:absolute; top:8px; right:10px; z-index:3; width:32px; height:32px; line-height:1;
  border:0; border-radius:50%; background:rgba(0,0,0,.45); color:#fff; font-size:22px; cursor:pointer; }
.ytClose:hover{ background:rgba(0,0,0,.72); }
.ytVideo{ flex:1 1 58%; min-width:0; background:#000; display:flex; align-items:center; }
.ytFrame{ position:relative; width:100%; padding-top:56.25%; }
.ytFrame iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
/* Click-to-load facade — fills the exact same box as the iframe it replaces,
   so the video area keeps its existing 16:9 dimensions. */
.yt-facade{ position:absolute; inset:0; width:100%; height:100%; border:0;
  background-color:#000; background-size:cover; background-position:center; cursor:pointer; }
.yt-facade .yt-play{ position:absolute; inset:0; margin:auto; width:68px; height:48px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 48'%3E%3Cpath d='M66.5 7.7a8 8 0 0 0-5.6-5.7C56.1 1 34 1 34 1s-22.1 0-26.9 1A8 8 0 0 0 1.5 7.7 83.7 83.7 0 0 0 0 24a83.7 83.7 0 0 0 1.5 16.3 8 8 0 0 0 5.6 5.7C11.9 47 34 47 34 47s22.1 0 26.9-1a8 8 0 0 0 5.6-5.7A83.7 83.7 0 0 0 68 24a83.7 83.7 0 0 0-1.5-16.3z' fill='%23f00'/%3E%3Cpath d='M27 34V14l18 10z' fill='%23fff'/%3E%3C/svg%3E") no-repeat center/contain;
  opacity:.85; transition:opacity .15s, transform .15s; }
.yt-facade:hover .yt-play{ opacity:1; transform:scale(1.06); }
.yt-facade:focus-visible{ outline:2px solid #fff; outline-offset:-3px; }
.ytLyrics{ flex:1 1 42%; min-width:0; display:flex; flex-direction:column; max-height:90vh;
  border-left:1px solid var(--border); }
.ytLyricsHead{ padding:14px 16px 8px; border-bottom:1px solid var(--border); }
.ytTitle{ font-weight:600; color:var(--heading); font-size:15px; }
.ytArtist{ color:var(--text-muted); font-size:13px; margin-top:2px; }
.ytLyricsBody{ padding:12px 16px 18px; overflow-y:auto; color:var(--text); font-size:14px; line-height:1.7; }
@media (max-width:760px){
  .ytPanel{ flex-direction:column; max-height:92vh; }
  .ytVideo{ flex:none; }
  .ytLyrics{ flex:1 1 auto; border-left:0; border-top:1px solid var(--border); }
}

/* ---- Translate lyrics control ---- */
.trBar{ display:inline-flex; align-items:center; gap:9px; max-width:100%; margin:0 0 16px;
  padding:6px 10px 6px 12px; border:1px solid var(--border-strong); border-radius:11px;
  background:var(--card); box-shadow:0 6px 16px -13px var(--shadow-strong); }
.trGlobe{ display:inline-flex; flex:0 0 auto; color:var(--primary); }
.trLabel{ font-size:13px; font-weight:500; color:var(--text-muted); white-space:nowrap; }
.trSelWrap{ position:relative; display:inline-flex; align-items:center; min-width:0; }
.trSelect{ appearance:none; -webkit-appearance:none; -moz-appearance:none;
  font:inherit; font-size:14px; font-weight:500; color:var(--heading);
  padding:6px 30px 6px 11px; max-width:170px;
  border:1px solid var(--border); border-radius:8px; background:var(--card-2); cursor:pointer;
  transition:border-color .15s, background .15s; }
.trSelect:hover{ border-color:var(--primary); background:var(--card); }
.trSelect:focus-visible{ outline:2px solid var(--primary); outline-offset:1px; }
.trChevron{ position:absolute; right:9px; display:inline-flex; pointer-events:none; color:var(--text-muted); }
.trStatus{ display:inline-flex; align-items:center; gap:6px; font-size:12px; color:var(--text-muted); white-space:nowrap; }
.trStatus.tr-busy::before{ content:""; width:12px; height:12px; flex:0 0 auto;
  border:2px solid var(--border-strong); border-top-color:var(--primary); border-radius:50%;
  animation:trspin .7s linear infinite; }
.trStatus.tr-done::before{ content:""; width:6px; height:6px; flex:0 0 auto; border-radius:50%;
  background:var(--primary); opacity:.55; }
@keyframes trspin{ to{ transform:rotate(360deg); } }
@media (max-width:600px){ .trBar{ display:flex; width:100%; } .trSelWrap{ flex:1 1 auto; } .trSelect{ width:100%; max-width:none; } }
.ytLyrics .trBar{ margin:12px 16px 6px; background:var(--card-2); box-shadow:none; }   /* inside the video popup */

.chart{ width:100%; max-width:100%; border-collapse:collapse; margin-bottom:16px; }
.chart tr:nth-of-type(even){ background:var(--card-2); }
.chart th,.chart td{ padding:8px; vertical-align:middle; text-align:left; }
.chart td{ font-size:.95em; border-top:1px solid var(--border-strong); }
.chart td a{ color:inherit; display:block; }
.chart td a b{ color:var(--primary); }
.chart td:first-child{ width:56px; }
.chart td:first-child img{ width:52px; height:52px; display:block; border-radius:4px; }
.chart th:nth-child(2)::before{ content:'Rank'; }
@media (max-width:640px){ .chart td:first-child img{ width:42px; height:42px; } .chart td{ font-size:.85em; padding:5px; } }
/* "Played" count column (synthetic, right-aligned tabular numbers) */
.chart th:nth-child(4){ text-align:right; }
.chart td.played{ text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; font-size:.9em; opacity:.8; }
@media (max-width:640px){ .chart td.played{ font-size:.78em; } }

/* ---- Pagination --------------------------------------------------------- */
.pagger{ margin:18px auto; }
.pagger.top{ margin:0 auto 18px; }
.pagger input,.pagger>label{ display:none; }
.pagination{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; justify-content:center; gap:6px; }
.pagination .page-item .page-link,
.pagination li a,.pagination li span{
  display:inline-block; min-width:38px; text-align:center; padding:7px 10px;
  border:1px solid var(--border); border-radius:6px; background:var(--card); color:var(--text); cursor:pointer;
}
.pagination li a:hover{ border-color:var(--primary); color:var(--primary); text-decoration:none; }
.pagination .current,.pagination .current .page-link{ background:var(--primary); color:var(--on-primary); border-color:var(--primary); pointer-events:none; }
.pagination .disabled span{ color:var(--text-muted); background:transparent; border:0; }
@media (max-width:520px){ .pagination .fullNav{ display:none; } }

/* ---- Promo slot (banner loads async from /hx/; see std::promoSlot) -------- */
/* Space is reserved up front so the banner arriving doesn't push the page;
   once it is in, the slot sizes to the banner. The loader removes the slot if
   the banner can't load, so nothing empty is left behind. */
.xs{ min-height:300px; }
.xs.xs-on{ min-height:0; }
.xs-top{ padding:0 12px; }
.lBody .xs{ margin:22px -12px; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; line-height:1.45; }
.lPart + .xs, .xs + .lPart{ margin-top:0; }
.xs + .lPart{ padding-top:4px; }
@media (max-width:600px){
  .xs{ min-height:440px; }
  .xs-top{ padding:0 4px; }
  .lBody .xs{ margin:18px -8px; }
}

/* ---- 404 / 410 pages -------------------------------------------------- */
.lost{ text-align:center; padding:34px 22px 30px; }
.lost h1{ margin:0 0 10px; font-size:26px; }
.lost .lostText{ color:var(--text-muted); max-width:560px; margin:0 auto 18px; }
.lost .lostArtist{ margin:0 0 18px; }
.lost .uiBtnLink{ display:inline-block; padding:9px 18px; border-radius:8px; background:var(--primary); color:#fff; font-weight:600; }
.lost .uiBtnLink:hover{ text-decoration:none; filter:brightness(1.08); }
.lost .lostSearch{ max-width:520px; margin:0 auto 22px; }
.lost .lostLinks{ list-style:none; padding:0; margin:0 0 22px; display:flex; flex-wrap:wrap; justify-content:center; gap:8px 18px; }
.lost .lostLinks a{ font-weight:600; }
.lost .lostArts{ justify-content:center; }
.lost .lostArts a{ width:42px; height:42px; font-size:18px; }

/* ---- Song page: album line, version note, "more" blocks (2026-11) ------- */
.songHead .onAlbum{ color:var(--text-muted); font-size:14px; margin-top:2px; }
.songHead .versionOf{ font-size:14px; margin-top:4px; }
.songMore{ padding:18px 24px 6px; display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:4px 32px; }
.songMoreBox h2{ font-size:16px; margin:0 0 8px; line-height:1.35; }
.songMoreBox h2 em{ font-style:normal; }
.songMoreBox h2 .yr{ color:var(--text-muted); font-weight:400; }
.songMoreList{ list-style:none; margin:0 0 16px; padding:0; }
.songMoreList li{ padding:6px 0; border-bottom:1px solid var(--border); font-size:15px; line-height:1.35; }
.songMoreList li:last-child{ border-bottom:0; }
.songMoreList .hot{ display:inline-block; margin-left:4px; padding:0 7px; border-radius:10px; font-size:11px; font-weight:700; line-height:18px; color:var(--on-primary,#fff); background:var(--primary); vertical-align:1px; }
.songMoreAll{ margin:-6px 0 16px; font-size:14px; font-weight:600; }
@media (max-width:600px){ .songMore{ padding:14px 16px 2px; } }

/* ---- Search: "Songs with these lyrics" ---------------------------------- */
.lyricHits .snip{ flex-basis:100%; color:var(--text-muted); font-size:14px; line-height:1.5; font-family:Georgia,"Times New Roman",serif; }
.lyricHits mark{ background:color-mix(in srgb,var(--primary) 18%,transparent); color:var(--text); border-radius:3px; padding:0 2px; }
