/* Night: Meowdy's art direction, on top of style.css's tokens.
   The sky behind every page (stars that twinkle, two soft glows), the poster
   (templates/_poster.html: the turntable under the moon, every piece moving a
   little), the landing page built around it, the hero of every other page
   (a round badge among sparkles), the footer, the phone's menu.
   Every colour comes from style.css's tokens, so light and dark follow by
   themselves -- the poster aside: it's a picture of a night, day or not.
   Motion reduced: the same pages, still (the block at the end). */

/* ---- the sky ---------------------------------------------------------------------- */
.sky { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(900px 520px at 86% -10%, var(--glow-a), transparent 70%),
    radial-gradient(820px 620px at -10% 28%, var(--glow-b), transparent 70%); }
.sky-stars { position: absolute; inset: 0; animation: sky-twinkle 7s ease-in-out infinite alternate;
  background-image:
    radial-gradient(1.6px 1.6px at 6% 14%, var(--star), transparent 60%),
    radial-gradient(1.1px 1.1px at 14% 62%, var(--star), transparent 60%),
    radial-gradient(1.6px 1.6px at 24% 30%, var(--star), transparent 60%),
    radial-gradient(1.1px 1.1px at 33% 84%, var(--star), transparent 60%),
    radial-gradient(1.4px 1.4px at 44% 8%, var(--star), transparent 60%),
    radial-gradient(1.1px 1.1px at 53% 52%, var(--star), transparent 60%),
    radial-gradient(1.6px 1.6px at 63% 22%, var(--star), transparent 60%),
    radial-gradient(1.1px 1.1px at 72% 70%, var(--star), transparent 60%),
    radial-gradient(1.5px 1.5px at 81% 40%, var(--star), transparent 60%),
    radial-gradient(1.1px 1.1px at 90% 88%, var(--star), transparent 60%),
    radial-gradient(1.6px 1.6px at 96% 16%, var(--star), transparent 60%); }
.sky-stars-b { animation-duration: 11s; animation-delay: -5s;
  background-image:
    radial-gradient(1.2px 1.2px at 3% 44%, var(--star), transparent 60%),
    radial-gradient(1.6px 1.6px at 11% 90%, var(--star), transparent 60%),
    radial-gradient(1.1px 1.1px at 19% 6%, var(--star), transparent 60%),
    radial-gradient(1.5px 1.5px at 29% 56%, var(--star), transparent 60%),
    radial-gradient(1.1px 1.1px at 38% 36%, var(--star), transparent 60%),
    radial-gradient(1.6px 1.6px at 48% 78%, var(--star), transparent 60%),
    radial-gradient(1.1px 1.1px at 58% 4%, var(--star), transparent 60%),
    radial-gradient(1.5px 1.5px at 68% 46%, var(--star), transparent 60%),
    radial-gradient(1.1px 1.1px at 77% 12%, var(--star), transparent 60%),
    radial-gradient(1.6px 1.6px at 86% 62%, var(--star), transparent 60%),
    radial-gradient(1.2px 1.2px at 94% 34%, var(--star), transparent 60%); }
@keyframes sky-twinkle { from { opacity: 0.3; } to { opacity: 1; } }
html.is-activity .sky { display: none; }   /* inside Discord's or Yapin's call: their window, kept light */

/* ---- small pieces of the look ------------------------------------------------------- */
/* A pill with a beating dot: what a page is, in three words. */
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  background: var(--accent-soft); color: var(--accent-text); font-size: 13.5px; font-weight: 800; letter-spacing: 0.02em; }
.pill-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pill-beat 2.2s ease-out infinite; }
@keyframes pill-beat { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
.pill-gold { border-color: color-mix(in srgb, var(--gold) 40%, transparent); background: var(--gold-soft); color: var(--gold-text); }
.pill-gold .pill-dot { background: var(--gold); }
/* The word over a section's title. */
.kicker { display: block; margin-bottom: 10px; color: var(--accent-text); font-size: 12.5px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
/* A wavy line, a little signal running along it (an inline SVG: .wave-line, .wave-run). */
.wave { display: block; width: min(760px, 100%); height: 34px; margin: 40px auto 0; overflow: visible; }
.wave-line { fill: none; stroke: color-mix(in srgb, var(--accent) 55%, var(--border-strong)); stroke-width: 3; stroke-linecap: round; }
.wave-run { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 46 760; stroke-dashoffset: 46; animation: wave-run 4.5s linear infinite; }
@keyframes wave-run { to { stroke-dashoffset: -760; } }

/* ---- the poster ----------------------------------------------------------------------- */
.poster { position: relative; max-width: 1080px; margin: 26px auto 0; overflow: hidden; border-radius: 28px; border: 1px solid rgb(247 236 225 / 0.16); background: #15131f;
  box-shadow: 0 44px 90px -36px rgb(214 31 53 / 0.5), 0 26px 60px -26px rgb(0 0 0 / 0.75); }
.poster-art { display: block; width: 100%; height: auto; aspect-ratio: 5 / 2; }
.po-word { font: 900 122px/1 var(--display); letter-spacing: -2.5px; }
.po-tag { font: 700 27px/1 var(--body); letter-spacing: 0.2px; }
.po-label { font: 900 13px/1 var(--body); letter-spacing: 2.6px; }
/* Each piece is drawn around its own origin (in a translated group): it turns and swings about the right point. */
.po-stars circle { animation: po-twinkle 3.4s ease-in-out infinite; }
.po-stars circle:nth-child(3n) { animation-duration: 4.6s; animation-delay: -1.2s; }
.po-stars circle:nth-child(3n + 1) { animation-duration: 5.4s; animation-delay: -2.6s; }
.po-stars circle:nth-child(4n) { animation-delay: -3.4s; }
@keyframes po-twinkle { 50% { opacity: 0.22; } }
.po-spark { animation: po-spark 4.2s ease-in-out infinite; }
.po-spark.k2 { animation-delay: -1.4s; }
.po-spark.k3 { animation-delay: -2.4s; }
.po-spark.k4 { animation-delay: -0.7s; }
.po-spark.k5 { animation-delay: -3.1s; }
@keyframes po-spark { 50% { transform: scale(0.5) rotate(45deg); opacity: 0.45; } }
.po-note { animation: po-note 6s ease-in-out infinite; }
.po-note.n2 { animation-duration: 7.4s; animation-delay: -2s; }
.po-note.n3 { animation-duration: 5.2s; animation-delay: -3.4s; }
@keyframes po-note { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-15px) rotate(7deg); } }
.po-moon { animation: po-moon 11s ease-in-out infinite; }
@keyframes po-moon { 50% { transform: translateY(-7px) rotate(-5deg); } }
.po-deck { animation: po-deck 7s ease-in-out infinite; }
@keyframes po-deck { 50% { transform: translateY(-8px); } }
.po-spin { animation: po-spin 5.4s linear infinite; }
@keyframes po-spin { to { transform: rotate(360deg); } }
.po-arm { animation: po-arm 2.7s ease-in-out infinite alternate; }
@keyframes po-arm { from { transform: rotate(-1.5deg); } to { transform: rotate(1.7deg); } }
.po-tail { animation: po-tail 3.6s ease-in-out infinite alternate; }
@keyframes po-tail { from { transform: rotate(-5deg); } to { transform: rotate(8deg); } }
.po-ear-l { animation: po-ear-l 7s ease-in-out infinite; }
.po-ear-r { animation: po-ear-r 7s ease-in-out -3.2s infinite; }
@keyframes po-ear-l { 0%, 84%, 100% { transform: rotate(0); } 89% { transform: rotate(-10deg); } 94% { transform: rotate(3deg); } }
@keyframes po-ear-r { 0%, 84%, 100% { transform: rotate(0); } 89% { transform: rotate(10deg); } 94% { transform: rotate(-3deg); } }
.po-led { animation: po-led 1.6s ease-in-out infinite alternate; }
@keyframes po-led { from { opacity: 0.4; } }
.po-pulse { animation: po-pulse 3.4s linear infinite; }
@keyframes po-pulse { to { stroke-dashoffset: -560; } }
.po-leaf { animation: po-leaf 5s ease-in-out infinite alternate; }
.po-leaf.l2 { animation-duration: 6.2s; animation-delay: -2s; }
.po-leaf.l3 { animation-duration: 7s; animation-delay: -4s; }
@keyframes po-leaf { from { transform: rotate(-2.5deg); } to { transform: rotate(3deg); } }

/* Alone on a page (tools/make_poster.py photographs it for link previews): edge to edge. */
body.poster-only { display: block; min-height: 0; margin: 0; background: #15131f; }
.poster-only .poster { max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; }

/* ---- the landing page (templates/index.html) ------------------------------------------- */
.nl-hero { padding: 44px 0 8px; text-align: center; }
.nl-hero > * { animation: nl-rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.nl-hero > :nth-child(2) { animation-delay: 0.08s; }
.nl-hero > :nth-child(3) { animation-delay: 0.16s; }
.nl-hero > :nth-child(4) { animation-delay: 0.22s; }
.nl-hero > :nth-child(5) { animation-delay: 0.28s; }
.nl-hero > :nth-child(n + 6) { animation-delay: 0.34s; }
@keyframes nl-rise { from { opacity: 0; transform: translateY(20px); } }
.nl-hero h1.ld-title { max-width: 18ch; margin: 40px auto 0; font-size: clamp(36px, 5.8vw, 66px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.04; text-wrap: balance; }
.nl-hero .ld-rotate { margin: 0 auto; font-family: var(--display); font-size: clamp(36px, 5.8vw, 66px); font-weight: 900; font-style: italic; letter-spacing: -0.02em; line-height: 1.12; }
.nl-lead { max-width: 58ch; margin: 18px auto 28px; color: var(--muted); font-size: 18px; line-height: 1.6; text-wrap: pretty; }
.nl-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.nl-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 20px; color: var(--muted); font-size: 14px; font-weight: 700; }
.nl-points li { display: flex; align-items: center; gap: 6px; }
.nl-points .icon { color: var(--ok); }
.nl-numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 680px; margin: 38px auto 0; }
.nl-numbers div { padding: 16px 8px 14px; border: 1px solid var(--border); border-radius: 18px; background: color-mix(in srgb, var(--text) 3.5%, transparent); }
.nl-numbers strong { display: block; font: 800 clamp(24px, 4.2vw, 36px)/1.1 var(--display); font-variant-numeric: tabular-nums; }
.nl-numbers span { color: var(--muted); font-size: 13.5px; font-weight: 700; }

/* The Now Playing card, beside what it is. */
.nl-show { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 56px; align-items: center; margin-top: 96px; perspective: 1400px; }
.nl-show h2 { margin-bottom: 14px; font-size: clamp(28px, 4vw, 42px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
.nl-show-text > p { color: var(--muted); font-size: 17px; line-height: 1.6; }
.nl-ticks { display: grid; gap: 12px; margin-top: 22px; }
.nl-ticks li { display: flex; align-items: flex-start; gap: 12px; font-weight: 700; }
.nl-ticks li > span:first-child { flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); }
.nl-ticks small { display: block; color: var(--muted); font-size: 14px; font-weight: 500; }

.nl-show.hero { padding: 0; }
.nl-more { display: flex; justify-content: center; margin-top: 30px; }
/* Titles of the landing's sections, the features' and the steps'. */
.ld-head h2, .ld-final h2 { font-weight: 900; letter-spacing: -0.02em; }
.ld-card h3, .ld-step h3 { font-family: var(--display); font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.ld-step-n { background: none; box-shadow: none; width: auto; height: auto; place-items: start; margin-bottom: 8px; color: var(--accent); font: 900 54px/1 var(--display); }
.ld-kicker { font-weight: 900; }

/* ---- every other page's hero: a round badge among sparkles, the title in Fraunces ---------- */
.hero-da-halo { inset: 2px 30px -2px; border: 1.5px dashed color-mix(in srgb, var(--gold) 42%, transparent); border-radius: 50%; background: none; -webkit-mask: none; mask: none; animation: cel-spin 60s linear infinite; }
.hero-da-tile { top: 44px; width: 116px; height: 116px; animation: redeem-float 4.6s ease-in-out infinite; }
.hero-da-glow { inset: -30px; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 36%, transparent), transparent); animation: none; }
.hero-da-face { rotate: none; border-radius: 50%; color: var(--text); border: 1px solid var(--border-strong);
  background: radial-gradient(circle at 30% 22%, color-mix(in srgb, var(--accent) 30%, var(--raised)), var(--surface) 72%);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--text) 4%, transparent), 0 26px 44px -22px rgb(0 0 0 / 0.7); }
.hero-da-face::before { display: none; }
.hero-da-face::after { display: none; }
.hero-da-face .glyph { --glyph-tone: var(--accent); filter: none; }
.hero-da-spark { background: var(--gold-text); filter: none; }
.hero-da .redeem-title { font-family: var(--display); font-size: clamp(34px, 5.6vw, 58px); font-weight: 900; letter-spacing: -0.02em; }
.hero-da.is-compact .hero-da-halo { inset: -8px; }
.hero-da.is-compact .hero-da-tile { top: 10px; width: 72px; height: 72px; }
.hero-da.is-compact .hero-da-face { border-radius: 50%; box-shadow: 0 0 0 5px color-mix(in srgb, var(--text) 4%, transparent), 0 16px 28px -16px rgb(0 0 0 / 0.7); }
.hero-da.is-compact .redeem-title { font-size: clamp(28px, 3.6vw, 40px); }

/* ---- the top bar: where you are, the phone's menu ---------------------------------------- */
.topbar-link.is-current { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
.topbar-link.is-current::after { display: none; }
.topbar-menu { display: none; position: relative; }
.topbar-menu > summary { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border-strong); border-radius: 12px; list-style: none; cursor: pointer; }
.topbar-menu > summary::-webkit-details-marker { display: none; }
.topbar-menu[open] > summary { background: color-mix(in srgb, var(--text) 8%, transparent); }
.topbar-menu-panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 30; display: grid; gap: 2px; min-width: 230px; padding: 8px; border: 1px solid var(--border-strong); border-radius: 18px;
  background: var(--raised); box-shadow: 0 24px 60px -16px rgb(0 0 0 / 0.65); animation: menu-in 0.18s ease-out; }
.topbar-menu-panel a, .topbar-menu-panel button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 0; border-radius: 11px; background: none; color: var(--text); font: inherit; font-weight: 800; text-align: left; text-decoration: none; cursor: pointer; }
.topbar-menu-panel a:hover, .topbar-menu-panel button:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }
.topbar-menu-panel .icon, .topbar-menu-panel .glyph { color: var(--muted); }
.topbar-menu-panel hr { width: 100%; height: 1px; margin: 4px 0; border: 0; background: var(--border); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 760px) {
  .topbar-menu { display: block; }
  .topbar-nav > .topbar-link, .topbar-nav > form, .topbar-nav > .account .account-name { display: none; }
  .topbar-nav > .topbar-link.topbar-keep { display: inline-flex; }
  html.is-activity .topbar-menu { display: none; }
}
@media (max-width: 480px) {
  .topbar-nav > .btn-primary { display: none; }   /* in the menu: the top bar keeps the logo, the switch and the menu */
  .brand { font-size: 19px; }
}

/* ---- the footer ------------------------------------------------------------------------------ */
.footer { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.6fr)); gap: 28px 32px; align-items: start; margin-top: 24px; padding: 40px 20px 28px; }
.footer-brand { display: grid; gap: 12px; justify-items: start; max-width: 38ch; }
.footer-brand .brand { color: var(--text); }
.footer-brand p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.footer-col { display: grid; gap: 9px; align-content: start; }
.footer-col h2 { margin-bottom: 4px; color: var(--subtle); font: 800 11.5px/1.4 var(--body); letter-spacing: 0.1em; text-transform: uppercase; }
.footer-col a { color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; transition: color 0.15s; }
.footer-col a:hover { color: var(--text); }
.footer-base { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--subtle); font-size: 13px; }
@media (max-width: 760px) {
  .footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---- playlists: covers, the community's shelf, a playlist's page -------------------------------- */
/* A cover: the first four pictures of the playlist in a square (one alone fills it), or a glyph on its colours. */
.pl-cover { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; overflow: hidden; aspect-ratio: 1; border-radius: 18px; background: linear-gradient(135deg, var(--pl-a, #d61f35), var(--pl-b, #6c3fd1)); box-shadow: var(--raise-sm); }
.pl-cover img { width: 100%; height: 100%; object-fit: cover; }
.pl-cover.is-one { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.pl-cover.is-empty { place-items: center; grid-template-columns: 1fr; grid-template-rows: 1fr; color: rgb(255 255 255 / 0.92); }
.pl-cover.is-empty .glyph { --glyph-tone: rgb(255 255 255 / 0.55); }
.pl-tone-0 { --pl-a: #d61f35; --pl-b: #7b2ad1; }
.pl-tone-1 { --pl-a: #f5b942; --pl-b: #d61f35; }
.pl-tone-2 { --pl-a: #2f9e8f; --pl-b: #2b4bd6; }
.pl-tone-3 { --pl-a: #b98cff; --pl-b: #d62f7a; }
.pl-tone-4 { --pl-a: #ff7d5c; --pl-b: #a52c23; }
.pl-tone-5 { --pl-a: #4f7df0; --pl-b: #23c1a2; }

/* The shelf: a grid of playlists, each a cover and three lines. */
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 22px 18px; }
.pl-row { display: grid; grid-auto-flow: column; grid-auto-columns: 172px; gap: 18px; padding: 4px 2px 14px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.pl-row > * { scroll-snap-align: start; }
.pl-card { position: relative; display: grid; gap: 10px; align-content: start; min-width: 0; color: var(--text); text-decoration: none; }
.pl-card .pl-cover { transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s; }
.pl-card:hover .pl-cover { transform: translateY(-5px); box-shadow: 0 26px 40px -22px rgb(0 0 0 / 0.75); }
.pl-card-name { display: block; overflow: hidden; font: 800 17px/1.2 var(--display); text-overflow: ellipsis; white-space: nowrap; }
.pl-card-by { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.pl-card-by img { flex: none; width: 18px; height: 18px; border-radius: 50%; }
.pl-card-by span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-card-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--subtle); font-size: 12.5px; font-weight: 700; }
.pl-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.pl-card-play { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 12px 22px -8px rgb(214 31 53 / 0.9); opacity: 0; transform: translateY(8px) scale(0.9); transition: opacity 0.2s, transform 0.25s cubic-bezier(0.3, 1.5, 0.5, 1); pointer-events: none; }
.pl-card:hover .pl-card-play, .pl-card:focus-visible .pl-card-play { opacity: 1; transform: none; }
.pl-badge { position: absolute; top: 10px; left: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; background: rgb(19 17 28 / 0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #f7ece1; font-size: 11.5px; font-weight: 800; letter-spacing: 0.03em; }
.pl-badge.is-public { background: color-mix(in srgb, var(--ok) 80%, #13111c); color: #0c1a11; }
/* In the library: the cover links to the playlist, its Play button sits under. */
.pl-card-link { position: relative; display: grid; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.pl-card-own form { justify-self: start; }
.pl-grid-own { padding: 4px 22px 18px; }
.pl-hint { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 22px 20px; color: var(--muted); font-size: 13.5px; }
.pl-hint .icon { flex: none; color: var(--gold-text); }
.pill-quiet { border-color: var(--border-strong); background: color-mix(in srgb, var(--text) 5%, transparent); color: var(--muted); }
.pl-top.pl-top-own { grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: 26px; align-items: center; }
.pl-top.pl-top-own h1 { font-size: clamp(28px, 4vw, 46px); }
.pl-page .row-head, .pl-shelf .row-head { margin-bottom: 14px; }
.pl-count { margin-bottom: 16px; }
.pl-shelf { margin-top: 44px; }
.pl-new { display: grid; place-items: center; gap: 8px; aspect-ratio: 1; border: 1.5px dashed var(--border-strong); border-radius: 18px; background: none; color: var(--muted); font: inherit; font-weight: 800; cursor: pointer; transition: border-color 0.2s, color 0.2s, background 0.2s; }
.pl-new:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }

/* The community's page: its head, the search, the tabs. */
.pl-head { display: grid; justify-items: center; gap: 14px; padding: 18px 0 30px; text-align: center; }
.pl-head h1 { font-size: clamp(34px, 5.6vw, 58px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }
.pl-head p { max-width: 60ch; color: var(--muted); font-size: 17px; }
.pl-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.pl-search { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; max-width: 440px; padding: 0 16px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); transition: border-color 0.2s, box-shadow 0.2s; }
.pl-search:focus-within { border-color: color-mix(in srgb, var(--accent) 60%, var(--border-strong)); box-shadow: 0 0 0 4px var(--accent-soft); }
.pl-search .icon { flex: none; color: var(--muted); }
.pl-search input[type="search"] { flex: 1; min-width: 0; height: 44px; padding: 0; border: 0; background: none; box-shadow: none; }
.pl-search input[type="search"]:focus-visible { outline: none; border: 0; box-shadow: none; }
.pl-tabs { display: inline-flex; padding: 4px; border: 1px solid var(--border-strong); border-radius: 999px; background: color-mix(in srgb, var(--surface) 80%, transparent); }
.pl-tabs a { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; color: var(--muted); font-weight: 800; text-decoration: none; transition: color 0.2s, background 0.2s; }
.pl-tabs a:hover { color: var(--text); }
.pl-tabs a[aria-current="page"] { background: var(--text); color: var(--bg); }
.pl-empty { display: grid; justify-items: center; gap: 10px; padding: 56px 20px; border: 1.5px dashed var(--border-strong); border-radius: 24px; color: var(--muted); text-align: center; }
.pl-empty strong { color: var(--text); font: 800 22px/1.2 var(--display); }

/* A playlist's own page: the cover beside its name, its tracks under. */
.pl-page { display: grid; gap: 28px; max-width: 980px; margin: 0 auto; }
.pl-top { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 32px; align-items: end; }
.pl-top .pl-cover { border-radius: 26px; box-shadow: 0 36px 70px -34px rgb(0 0 0 / 0.85), 0 0 0 1px var(--border); }
.pl-top-text { display: grid; gap: 12px; justify-items: start; min-width: 0; }
.pl-top h1 { font-size: clamp(32px, 5.4vw, 60px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.04; overflow-wrap: anywhere; }
.pl-desc { max-width: 62ch; color: var(--muted); font-size: 16px; white-space: pre-line; overflow-wrap: anywhere; }
.pl-by { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted); font-weight: 700; }
.pl-by img { width: 26px; height: 26px; border-radius: 50%; }
.pl-by strong { color: var(--text); }
.pl-by .sep { color: var(--border-strong); }
.pl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.pl-actions form { display: contents; }
.pl-actions .play-on { display: inline-flex; align-items: center; gap: 8px; }
.pl-actions select { min-width: 0; max-width: 200px; height: 38px; border-radius: 999px; }
.pl-saved { border-color: color-mix(in srgb, var(--accent) 50%, var(--border-strong)); color: var(--accent-text); }
.pl-tracks .tracklist li { transition: background 0.15s; }
.pl-tracks .tracklist li:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.pl-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; color: var(--subtle); font-size: 13px; }
.pl-foot details { position: relative; }
.pl-foot summary { cursor: pointer; list-style: none; color: var(--muted); font-weight: 700; }
.pl-foot summary::-webkit-details-marker { display: none; }
.pl-foot summary:hover { color: var(--text); }
.pl-report { position: absolute; right: 0; bottom: calc(100% + 10px); z-index: 5; display: grid; gap: 10px; width: min(340px, 86vw); padding: 16px; border: 1px solid var(--border-strong); border-radius: 18px; background: var(--raised); box-shadow: 0 24px 60px -16px rgb(0 0 0 / 0.65); }
.pl-report select, .pl-report input[type="text"] { width: 100%; min-width: 0; }
/* Publishing, on the owner's side (templates/playlist.html). */
.pl-publish { display: grid; gap: 14px; padding: 0 22px 22px; }
.pl-publish textarea { width: 100%; min-height: 84px; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg); box-shadow: var(--carve); color: var(--text); font: inherit; line-height: 1.45; resize: vertical; }
.pl-publish-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pl-share { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border: 1px solid color-mix(in srgb, var(--ok) 45%, var(--border-strong)); border-radius: 999px; background: color-mix(in srgb, var(--ok) 8%, var(--surface)); }
.pl-share input[type="text"] { flex: 1; min-width: 0; height: 34px; padding: 0; border: 0; background: none; box-shadow: none; color: var(--text); font: 13px/1 var(--mono); }
.pl-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-weight: 700; }
.pl-stats strong { color: var(--text); font: 800 20px/1 var(--display); margin-right: 5px; }
.pl-order { display: inline-flex; gap: 2px; }
@media (max-width: 720px) {
  .pl-top { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .pl-top .pl-cover { width: min(240px, 70vw); }
  .pl-top-text { justify-items: center; }
  .pl-by, .pl-actions { justify-content: center; }
  .pl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
}

/* The admin page's Playlists. */
.pl-admin-actions { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.pl-reported { display: block; color: var(--accent-text); }
.pl-reported .cell-id { display: inline; }

/* ---- phones ------------------------------------------------------------------------------------ */
@media (max-width: 920px) {
  .nl-show { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 64px; }
}
@media (max-width: 620px) {
  .nl-hero { padding-top: 26px; }
  .poster { border-radius: 20px; margin-top: 20px; }
  .nl-hero h1.ld-title { margin-top: 28px; }
  .nl-lead { font-size: 16.5px; }
  .nl-numbers { gap: 8px; }
  .nl-numbers span { font-size: 12.5px; }
  .footer { padding-top: 28px; }
}

/* ---- less motion asked: everything above, still ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .sky-stars, .pill-dot, .wave-run, .poster-art *, .nl-hero > *, .topbar-menu-panel { animation: none !important; }
  .wave-run { display: none; }
  .pl-card .pl-cover, .pl-card-play { transition: none; }
}

/* ---- the little tiles that hold an icon: tinted, flat ----------------------------------------------- */
.feature-icon { color: var(--accent-text); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); box-shadow: none; border-radius: 14px; }
.feature { transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s, box-shadow 0.25s; }
.feature:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); box-shadow: 0 30px 50px -30px rgb(0 0 0 / 0.8); }

/* =====================================================================================================
   The Meow Makers Club's look (on top of everything above: what follows wins).
   ===================================================================================================== */

/* ---- type: Fraunces soft and wonky for every title; Nunito, a bit bigger, for the rest ---- */
body { font-size: 16px; line-height: 1.6; }
h1, h2, .brand, .ph-title, .redeem-title, .pl-card-name, .footer-brand .brand, .row-head h2, .card-head h2, .nl-numbers strong, .ld-step-n {
  font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-optical-sizing: auto; }
h1 { font-weight: 700; letter-spacing: -0.01em; }
h2 { font-weight: 700; }
.card-head h2 { font-size: 20px; }
/* The word that stood out with a gradient: the club's peach, plain. */
.shine, h1 em, h2 em { background: none !important; -webkit-text-fill-color: currentColor !important; color: var(--accent-text) !important; font-style: normal; animation: none !important; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: var(--text); }
.btn, .topbar-link, .sidebar-nav a, .brand, .pl-card, .tile-main, .footer-col a, .redeem-plans { color: inherit; }

/* ---- the top bar: taller, the brand in Fraunces, the page you're on in peach, underlined ---- */
.topbar { background: color-mix(in srgb, var(--bg) 90%, transparent); }
.topbar-inner { height: 72px; max-width: 1180px; }
.brand { font-size: 23px; font-weight: 700; }
.brand img { width: 40px; height: 40px; box-shadow: none; }
.topbar-link { color: var(--text); font-weight: 700; padding: 10px 14px; border-radius: 12px; white-space: nowrap; }
.topbar-link:hover { background: var(--raised); color: var(--text); }
.topbar-link.is-current { background: none; color: var(--accent-text); }
.topbar-link.is-current::after { display: block; content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 3px; border-radius: 3px; background: var(--accent-text); box-shadow: none; }

/* ---- buttons: soft squares; the main one in peach with the night's ink, the others outlined ---- */
.btn { height: 46px; padding: 0 20px; border-radius: 16px; border: 2px solid var(--border-strong); background: transparent; font-weight: 800;
  transition: transform .3s var(--ease-spring), background-color .2s, color .2s, border-color .2s, box-shadow .3s; }
.btn:hover { transform: translateY(-3px); background: var(--raised); border-color: var(--text); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
.btn .icon { transition: transform .35s var(--ease-spring); }
.btn:hover .icon:last-child:not(:first-child) { transform: translateX(4px); }
.btn-primary { background: var(--accent); border-color: transparent; color: var(--on-accent); box-shadow: 0 10px 26px -12px color-mix(in srgb, var(--accent) 75%, transparent); }
.btn-primary:hover { background: var(--accent-hover); border-color: transparent; color: var(--on-accent); }
.btn-outline { border-color: var(--text); color: var(--text); }
.btn-outline:hover { background: var(--text); color: var(--bg); }
.btn-ghost { border-color: transparent; }
.btn-ghost:hover { background: var(--raised); border-color: transparent; transform: none; }
.btn-danger { color: var(--salmon); }
.btn-danger:hover { border-color: var(--salmon); background: color-mix(in srgb, var(--salmon) 12%, transparent); }
.btn-lg { height: 54px; padding: 0 26px; font-size: 17px; }
.btn-sm { height: 38px; padding: 0 15px; border-radius: 12px; font-size: 14px; }
.btn-xs { height: 30px; padding: 0 11px; border-radius: 10px; font-size: 12.5px; border-width: 1.5px; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 12px; border-color: transparent; }
.btn-primary::after, .plan-join::after { background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 0.55) 50%, transparent 70%); }

/* ---- surfaces: flat, a shade of the night, a hairline around ---- */
.card, .feature, .ld-step, .blank, .premium-band, .stat, .plan, .redeem-card, .wheel-card, .server-item, .trial-card, .my-plan {
  background: var(--surface) !important; border: 1px solid var(--border) !important; border-radius: var(--radius); box-shadow: none !important; background-image: none !important; }
.card-head { padding: 24px 26px 18px; }
.flash { background: color-mix(in srgb, var(--ok) 10%, var(--surface)); box-shadow: none; border-radius: 16px; }
.tag { border-radius: 8px; height: 24px; }
input[type="number"], input[type="text"], input[type="url"], input[type="time"], input[type="date"], input[type="search"], select, textarea, .rows textarea, .pl-publish textarea {
  border-radius: 12px; border: 1.5px solid var(--border-strong); background: var(--bg); box-shadow: none; }
:where(input, select, textarea):focus-visible { border-color: var(--accent-text) !important; box-shadow: 0 0 0 4px var(--accent-soft) !important; }
.toggle input:checked + .toggle-track { background: var(--accent); }
.toggle-track { box-shadow: none; background: var(--raised); }
.toggle-track::after { background: var(--text); box-shadow: none; }
progress::-webkit-progress-value { background: var(--accent); }
progress::-moz-progress-bar { background: var(--accent); }
.sidebar-nav a { border-radius: 12px; font-weight: 700; }
.sidebar-nav a[aria-current] { background: var(--surface); border-color: var(--border); box-shadow: none; color: var(--accent-text); }
.sidebar-nav a[aria-current] .icon { color: var(--accent-text); }
.live { border-radius: 8px; }

/* ---- the sky: fewer glows, the stars only ---- */
.sky { background: radial-gradient(900px 500px at 85% -10%, var(--glow-a), transparent 70%), radial-gradient(800px 600px at -10% 30%, var(--glow-b), transparent 70%); }

/* ---- a page's head (_ui.html hero()): the kicker after a dash, the title, the orbit, the wavy line ---- */
.ph { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; padding: 34px 0 6px; text-align: left; }
.ph-text { display: grid; justify-items: start; min-width: 0; }
.ph-kicker, .redeem-kicker { display: inline-flex; align-items: center; gap: 12px; height: auto; margin: 0 0 16px; padding: 0; border: 0; background: none; box-shadow: none;
  color: var(--accent-text); font-size: 13.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ph-kicker::before, .redeem-kicker::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.redeem-kicker .glyph { display: none; }
.ph-title, .redeem-title { margin: 0 0 16px; max-width: 16ch; font-size: clamp(40px, 6.2vw, 74px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.05; text-wrap: balance; }
.ph-title em { color: var(--accent-text); font-style: normal; }
.ph-lead, .redeem-lead { max-width: 48ch; margin: 0; color: var(--muted); font-size: 19px; line-height: 1.6; text-align: left; }
.ph-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.ph-art { position: relative; width: 210px; height: 210px; }
.ph-orbit { position: absolute; inset: 0; border: 2px dashed color-mix(in srgb, var(--accent-text) 38%, transparent); border-radius: 50%; animation: cel-spin 40s linear infinite; }
.ph-moon { position: absolute; top: -7px; left: 50%; width: 13px; height: 13px; margin-left: -6px; border-radius: 50%; background: var(--accent-text); }
.ph-face { position: absolute; inset: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); animation: redeem-float 5s ease-in-out infinite; }
.ph-face .glyph { --glyph-tone: var(--accent-text); width: 62px; height: 62px; }
.ph-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: twinkle 3s ease-in-out infinite; }
.ph-dot.d1 { left: 10px; bottom: 40px; }
.ph-dot.d2 { right: -6px; top: 70px; background: var(--salmon); animation-delay: -1s; }
.ph-dot.d3 { left: 40px; top: 2px; width: 5px; height: 5px; background: var(--text); animation-delay: -2s; }
@keyframes twinkle { 50% { opacity: .25; } }
.ph.is-compact { grid-template-columns: minmax(0, 1fr); padding: 6px 0 22px; }
.ph.is-compact .ph-title { font-size: clamp(32px, 4.2vw, 48px); margin-bottom: 10px; }
.ph.is-compact .ph-lead { font-size: 16px; max-width: 70ch; }
.ph.is-compact .ph-actions { margin-top: 14px; }
.tape { display: block; width: 100%; height: 46px; margin: 14px 0 28px; overflow: visible; }
.tape-line { fill: none; stroke: var(--brown); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.tape-run { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 60 1400; stroke-dashoffset: 60; vector-effect: non-scaling-stroke; animation: tape-run 6s linear infinite; }
@keyframes tape-run { to { stroke-dashoffset: -1400; } }
/* The pages that had their head centred (the gift code, the wheel, a blank, the legal ones): to the left too. */
.redeem-hero, .wheel-head, .pricing-head, .legal .ph { text-align: left; justify-items: start; }
.blank { text-align: left; justify-items: start; }
.blank .ph { padding-top: 0; }
/* The card is narrow (560px): its title sized by the card, not the window -- a long word ("answering") stays
   in its column instead of running under the orbit; the orbit a little smaller. */
.blank { container-type: inline-size; }
.blank .ph-title { max-width: none; font-size: clamp(28px, 7.5cqi, 48px); overflow-wrap: break-word; }
.blank .ph-art { width: 160px; height: 160px; }
.blank .ph-face { inset: 26px; }
.blank .tape { display: none; }

/* ---- the landing: words on the left, the cat on the right, the tilted band ---- */
.cl-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; padding: 56px 0 8px; }
.cl-hero-text > * { animation: nl-rise .8s var(--ease-out) both; }
.cl-hero-text > :nth-child(2) { animation-delay: .06s; }
.cl-hero-text > :nth-child(3) { animation-delay: .12s; }
.cl-hero-text > :nth-child(4) { animation-delay: .18s; }
.cl-hero-text > :nth-child(n + 5) { animation-delay: .24s; }
.cl-hero h1.ld-title { max-width: 14ch; margin: 0; font-size: clamp(44px, 6.8vw, 82px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.03; text-align: left; }
.cl-hero .ld-rotate { margin: 0; color: var(--accent-text); font: 700 clamp(44px, 6.8vw, 82px)/1.08 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -0.015em; }
.cl-lead { max-width: 40ch; margin: 22px 0 30px; color: var(--muted); font-size: 19px; line-height: 1.6; }
.cl-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cl-hero .nl-numbers { max-width: 560px; margin: 34px 0 0; }
.nl-numbers div { border-radius: 18px; background: var(--surface); text-align: left; padding: 16px 18px 14px; }
.nl-numbers strong { font-weight: 700; color: var(--accent-text); }
.mark { position: relative; justify-self: center; width: min(380px, 84%); aspect-ratio: 1; }
.mark-in { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%; animation: float 6s ease-in-out infinite; box-shadow: 0 44px 60px -34px rgb(0 0 0 / .75), 0 0 110px -10px color-mix(in srgb, var(--accent) 55%, transparent); }
.mark-art { width: 100%; height: 100%; display: block; }
.mark-note-shape { transform-box: fill-box; transform-origin: 50% 100%; animation: bob 1.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-4px) rotate(-3deg); } 75% { transform: translateY(-2px) rotate(3deg); } }
/* The dashed orbit around the disc (as on the club's page), a dot riding it; a ring of sound leaving it. */
.mark::before { content: ""; position: absolute; inset: -6%; border: 2px dashed color-mix(in srgb, var(--accent-text) 40%, transparent); border-radius: 50%; animation: cel-spin 50s linear infinite; }
.mark::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--accent); opacity: 0; animation: ring-out 2.4s ease-out infinite; pointer-events: none; }
@keyframes ring-out { 0% { opacity: .55; transform: scale(.98); } 100% { opacity: 0; transform: scale(1.22); } }
@keyframes float { 50% { transform: translateY(-12px); } }
.mark-note { position: absolute; width: 40px; height: 50px; animation: drift 5s ease-in-out infinite; }
.mark-note.n1 { top: -2%; left: -10%; color: var(--accent-text); }
.mark-note.n2 { top: 14%; right: -14%; width: 32px; color: var(--text); animation-delay: -1.6s; }
.mark-note.n3 { bottom: 2%; left: -8%; width: 30px; color: var(--gold); animation-delay: -3.2s; }
@keyframes drift { 0%, 100% { transform: translateY(0) rotate(-6deg); opacity: .95; } 50% { transform: translateY(-18px) rotate(6deg); opacity: .6; } }
.mark-spark { position: absolute; width: 16px; height: 16px; background: var(--text); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); animation: twinkle 2.8s ease-in-out infinite; }
.mark-spark.s1 { top: 6%; right: 18%; }
.mark-spark.s2 { bottom: 16%; right: -10%; width: 11px; height: 11px; background: var(--gold); animation-delay: -1s; }
.mark-spark.s3 { top: 46%; left: -14%; width: 10px; height: 10px; animation-delay: -2s; }
/* The band: the logo's red, a little tilted, the words in Fraunces between paw prints. */
.cl-band { position: relative; z-index: 1; margin: 30px -40px 10px; padding: 16px 0; overflow: hidden; background: var(--accent); color: var(--on-accent); rotate: -2deg; }
.cl-band-track { display: flex; width: max-content; animation: ld-marquee 40s linear infinite; }
.cl-band:hover .cl-band-track { animation-play-state: paused; }
.cl-band ul { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.cl-band li { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font: 700 clamp(24px, 3vw, 34px)/1 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; white-space: nowrap; }
.cl-band li::after { content: ""; width: 22px; height: 22px; background: currentColor; opacity: .75;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='12' cy='16' rx='5' ry='4.2'/%3E%3Cellipse cx='5.6' cy='10.6' rx='2' ry='2.6' transform='rotate(-20 5.6 10.6)'/%3E%3Cellipse cx='9.4' cy='6.6' rx='2' ry='2.7' transform='rotate(-8 9.4 6.6)'/%3E%3Cellipse cx='14.6' cy='6.6' rx='2' ry='2.7' transform='rotate(8 14.6 6.6)'/%3E%3Cellipse cx='18.4' cy='10.6' rx='2' ry='2.6' transform='rotate(20 18.4 10.6)'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='12' cy='16' rx='5' ry='4.2'/%3E%3Cellipse cx='5.6' cy='10.6' rx='2' ry='2.6' transform='rotate(-20 5.6 10.6)'/%3E%3Cellipse cx='9.4' cy='6.6' rx='2' ry='2.7' transform='rotate(-8 9.4 6.6)'/%3E%3Cellipse cx='14.6' cy='6.6' rx='2' ry='2.7' transform='rotate(8 14.6 6.6)'/%3E%3Cellipse cx='18.4' cy='10.6' rx='2' ry='2.6' transform='rotate(20 18.4 10.6)'/%3E%3C/svg%3E") center / contain no-repeat; }
/* The landing's sections: their heads to the left, big. */
.ld-head { max-width: 680px; margin: 0 0 36px; text-align: left; }
.ld-kicker { display: inline-flex; align-items: center; gap: 12px; color: var(--accent-text); font-size: 13.5px; letter-spacing: .12em; }
.ld-kicker::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.ld-head h2, .nl-show h2 { margin-top: 12px; font-size: clamp(34px, 4.8vw, 54px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.06; }
.ld-section { margin-top: 110px; }
.nl-show { margin-top: 90px; }
.kicker { font-weight: 800; letter-spacing: .12em; color: var(--accent-text); }
.ld-card h3, .ld-step h3 { font-size: 24px; font-weight: 700; }
.feature { padding: 30px; border-radius: var(--radius); }
.feature-icon { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.ld-step { border-radius: var(--radius); }
.ld-step-n { color: var(--accent-text); font-size: 64px; font-weight: 800; }
.ld-wrapped { background: linear-gradient(135deg, var(--salmon), var(--brown)); }
.ld-final { background: var(--accent) !important; color: var(--on-accent); border-radius: 32px; box-shadow: none; text-align: left; padding: 64px 48px; }
.ld-final::before, .ld-final::after { border-color: color-mix(in srgb, var(--on-accent) 10%, transparent); }
.ld-final h2 { font-size: clamp(34px, 5vw, 58px); font-weight: 700; max-width: 16ch; }
.ld-final code { background: color-mix(in srgb, var(--on-accent) 14%, transparent); color: var(--on-accent); }
.ld-final .hero-actions { justify-content: flex-start; }
.ld-btn-light { background: var(--on-accent); color: var(--accent); border-color: transparent; }
.ld-btn-light:hover { background: var(--on-accent); color: var(--text); }
.ld-btn-ghost { border-color: var(--on-accent); color: var(--on-accent); }
.ld-btn-ghost:hover { background: var(--on-accent); color: var(--accent); }
.premium-band { border-radius: 28px; padding: 40px; }
.mock { background: var(--surface); border-color: var(--border-strong); }
.mock-art, .mock-controls .mock-main { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.mock-bar span { background: var(--accent); }
.ld-eq i, .ld-wave i { background: var(--accent); }
.ld-quiz span, .ld-votes span, .ld-places span, .ld-marquee li { background: var(--raised); border-color: var(--border); }
.ld-hero .mock-stage::before, .nl-show .mock-stage::before { background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent); }
.pl-head { justify-items: start; text-align: left; }
.pl-head h1 { font-weight: 700; }

/* ---- the plans, the wheel, the gift code: the club's colours ---- */
.premium-switch { background: var(--surface); box-shadow: none; }
.premium-switch-pill { background: var(--accent); border-color: transparent; box-shadow: none; }
.premium-switch a[aria-current="page"] { color: var(--on-accent); }
.premium-switch a[aria-current="page"] .glyph { --glyph-tone: var(--on-accent); }
.pl-tabs a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
.pl-card-play { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.pl-badge.is-public { background: var(--ok); color: #141321; }

/* ---- the footer, as the club's ---- */
.footer { border-top: 1px solid var(--border); margin-top: 60px; }
.footer-col h2 { color: var(--accent-text); }

@media (max-width: 920px) {
  .cl-hero { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-top: 30px; }
  .mark { width: min(320px, 80%); order: -1; }
  .ph { grid-template-columns: minmax(0, 1fr); }
  .ph-art { display: none; }
}
@media (max-width: 620px) {
  .cl-band { margin: 20px -16px 6px; }
  .ld-final { padding: 40px 24px; }
  .premium-band { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .mark *, .mark, .mark::before, .mark::after, .mark-in, .ph-orbit, .ph-face, .ph-dot, .cl-band-track, .tape-run, .cl-hero-text > * { animation: none !important; }
  .tape-run { display: none; }
  .btn, .btn:hover { transform: none; }
}
/* The band is the logo's red by day too. Pills read as the kickers do. */
.cl-band { background: #d61f35; color: #ffffff; }
.pill, .pill-gold, .pill-quiet { height: auto; padding: 0; border: 0; background: none; color: var(--accent-text); font-size: 13.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; gap: 12px; }
.pill::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.pill .pill-dot, .pill .icon { display: none; }
.pill-quiet { color: var(--muted); }
.poster-art .po-word { font: 700 150px/1 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -2px; }
.poster-art .po-tag { font: 700 34px/1 var(--body); }
.poster-art .po-kicker { font: 800 20px/1 var(--body); letter-spacing: 3px; }
@media (max-width: 560px) {
  .topbar .crumbs, .topbar-nav > .topbar-link.topbar-keep { display: none; }   /* both in the menu */
  html.is-activity .topbar-nav > .topbar-link.topbar-keep { display: inline-flex; }
}

/* ---- Explore (templates/explore.html, its rows filled by static/platform.js) ----------------------- */
.ex { display: grid; gap: 0; min-width: 0; }
.ex-head { padding: 22px 0 0; }
.ex-head h1 { margin: 0 0 12px; font-size: clamp(38px, 5.6vw, 64px); font-weight: 700; line-height: 1.05; }
.ex-head h1 em { color: var(--accent-text); font-style: normal; }
.ex-lead { max-width: 56ch; color: var(--muted); font-size: 18px; }
.ex-lead .glyph { --glyph-tone: var(--accent); }
.ex .tape { margin: 8px 0 26px; }

/* Four ways in. */
.ex-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ex-quick-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 16px 16px 14px;
  border: 1px solid var(--border); border-radius: 20px; background: var(--surface); color: var(--text); font: inherit; text-align: left; text-decoration: none; cursor: pointer;
  transition: transform .3s var(--ease-spring), border-color .2s, background .2s; }
.ex-quick-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--tone) 55%, var(--border)); color: var(--text); }
.ex-quick-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: color-mix(in srgb, var(--tone) 18%, transparent); }
.ex-quick-icon .glyph { --glyph-tone: var(--tone); }
.ex-quick-text { display: grid; min-width: 0; }
.ex-quick-text strong { font: 700 19px/1.2 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; }
.ex-quick-text span { overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.ex-quick-go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--tone); color: #fff; opacity: 0; transform: scale(.8); transition: opacity .2s, transform .3s var(--ease-spring); }
.ex-quick-card:hover .ex-quick-go, .ex-quick-card:focus-visible .ex-quick-go, .ex-quick-card.is-sent .ex-quick-go { opacity: 1; transform: none; }
.ex-quick-card.is-sent { border-color: var(--ok); }
.tone-red { --tone: #d61f35; }
.tone-green { --tone: #2fb38a; }
.tone-violet { --tone: #8b6cf0; }
.tone-gold { --tone: #e0a32e; }

/* A section: its head on the left, a word on the right. */
.ex-section { margin-top: 64px; min-width: 0; }
.ex-sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 24px; margin-bottom: 20px; }
.ex-sec-head .ph-kicker { margin-bottom: 8px; }
.ex-sec-head h2 { margin: 0; font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; line-height: 1.1; }
.ex-sec-more { max-width: 44ch; color: var(--muted); font-size: 14px; }
.ex-all { margin-top: 6px; }

/* Your artists: round pictures, a dashed ring that turns on hover. */
.ex-artists { display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 18px; padding: 6px 2px 10px; overflow-x: auto; scrollbar-width: thin; }
.ex-artist { display: grid; justify-items: center; gap: 10px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; }
.ex-artist-ring { position: relative; display: block; width: 104px; height: 104px; padding: 5px; border-radius: 50%; }
.ex-artist-ring::before { content: ""; position: absolute; inset: 0; border: 2px dashed color-mix(in srgb, var(--accent-text) 50%, transparent); border-radius: 50%; transition: border-color .2s; }
.ex-artist:hover .ex-artist-ring::before { border-color: var(--accent); animation: cel-spin 8s linear infinite; }
.ex-artist-pic { position: relative; display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; border-radius: 50%; background: var(--raised); color: var(--muted); font: 700 30px/1 var(--display); }
.ex-artist-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease-out); }
.ex-artist:hover .ex-artist-pic img { transform: scale(1.08); }
.ex-artist-name { max-width: 100%; overflow: hidden; font-size: 14px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.ex-artist.is-skeleton .skeleton-art { width: 104px; height: 104px; margin: 0; border-radius: 50%; }
.ex-artist.is-skeleton .skeleton-line { width: 70px; margin: 0; }
.ex-artist.is-skeleton .skeleton-line.is-short { display: none; }

/* Moods: tiles, the glyph in its colour, the name, a word. */
.ex-moods { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.ex-mood.mood-chip { display: flex; align-items: center; gap: 12px; height: auto; padding: 12px 14px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); color: var(--text); text-align: left; font: inherit;
  transition: transform .3s var(--ease-spring), border-color .2s, background .2s; }
.ex-mood.mood-chip:hover { transform: translateY(-3px); border-color: var(--text); }
.ex-mood.mood-chip.is-sent { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.ex-mood-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--raised); }
.ex-mood .glyph { width: 22px; height: 22px; }
.ex-mood-text { display: grid; min-width: 0; }
.ex-mood-text strong { font-size: 15px; }
.ex-mood-text span { overflow: hidden; color: var(--muted); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.ex-mood.is-sent .ex-mood-text span { color: inherit; opacity: .8; }

/* Trending: a ranking in two columns. */
.ex-rank { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; gap: 4px 28px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.ex-rank-row { position: relative; display: grid; grid-template-columns: 34px 52px minmax(0, 1fr) auto 36px 40px; align-items: center; gap: 12px; padding: 8px 10px 8px 4px; border-radius: 16px; transition: background .2s; }
.ex-rank-row:hover { background: var(--surface); }
.ex-rank-n { color: var(--accent-text); font: 700 24px/1 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; text-align: center; }
.ex-rank-row:nth-child(-n + 3) .ex-rank-n { font-size: 30px; }
.ex-rank-cover { position: relative; display: block; width: 52px; height: 52px; overflow: hidden; border-radius: 12px; background: var(--raised); }
.ex-rank-cover img { width: 100%; height: 100%; object-fit: cover; }
.ex-rank-text { display: grid; min-width: 0; }
.ex-rank-text strong, .ex-rank-text a, .ex-rank-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-rank-text strong { font-size: 15px; }
.ex-rank-text a, .ex-rank-text > span { color: var(--muted); font-size: 13px; text-decoration: none; }
.ex-rank-text a:hover { color: var(--text); text-decoration: underline; }
.ex-rank-meta { display: inline-flex; align-items: center; gap: 5px; color: var(--subtle); font-size: 12px; font-weight: 700; white-space: nowrap; }
.ex-rank-meta .glyph { width: 13px; height: 13px; --glyph-tone: var(--accent); }
.ex-rank-row .tile-like { position: static; width: 34px; height: 34px; background: none; color: var(--muted); opacity: 1; }
.ex-rank-row .tile-like:hover { color: var(--accent-text); }
.ex-rank-row .card-play { position: static; width: 38px; height: 38px; opacity: 0; transform: scale(.85); box-shadow: none; }
.ex-rank-row:hover .card-play, .ex-rank-row .card-play:focus-visible, .ex-rank-row .card-play.is-sent { opacity: 1; transform: none; }
.ex-rank-row .like-burst { left: 120px; width: 46px; }
.ex-rank-row.is-skeleton { grid-template-columns: 52px minmax(0, 1fr); padding-left: 42px; }
.ex-rank-row.is-skeleton .skeleton-art { width: 52px; height: 52px; margin: 0; border-radius: 12px; }
.ex-rank-row.is-skeleton .skeleton-line { width: 60%; margin: 0; }
.ex-rank-row.is-skeleton .skeleton-line.is-short { display: none; }

/* Rows of covers: the chart, new releases, what you played lately. */
.ex-row { display: grid; grid-auto-flow: column; grid-auto-columns: 184px; gap: 20px; padding: 4px 2px 14px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.ex-row > * { scroll-snap-align: start; }
.ex-releases { grid-auto-columns: 230px; }
.ex-song, .ex-release { position: relative; display: grid; gap: 3px; align-content: start; min-width: 0; }
.ex-cover { position: relative; display: block; aspect-ratio: 1; margin-bottom: 9px; overflow: hidden; border-radius: 18px; background: var(--raised); transition: transform .3s var(--ease-out), box-shadow .3s; }
.ex-cover > img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.ex-song:hover .ex-cover, .ex-release:hover .ex-cover { transform: translateY(-4px); box-shadow: 0 24px 36px -22px rgb(0 0 0 / .8); }
.ex-song:hover .ex-cover > img, .ex-release:hover .ex-cover > img { transform: scale(1.05); }
.ex-song:hover .card-play, .ex-release:hover .card-play, .ex-song:hover .tile-like, .is-liked .tile-like { opacity: 1; transform: none; }
.ex-badge { position: absolute; top: 10px; left: 10px; z-index: 2; display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 10px; background: rgb(20 19 33 / .78);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #f7ece1; font: 700 15px/1 var(--display); }
.ex-song-title { overflow: hidden; font-size: 15px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.ex-song-artist { overflow: hidden; color: var(--muted); font-size: 13.5px; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
a.ex-song-artist:hover { color: var(--text); text-decoration: underline; }
.ex-release-kind { color: var(--accent-text); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ex-song.is-skeleton .skeleton-art, .ex-release.is-skeleton .skeleton-art { aspect-ratio: 1; margin: 0 0 9px; border-radius: 18px; }

@media (max-width: 1000px) { .ex-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .ex-rank { grid-template-columns: minmax(0, 1fr); }
  .ex-rank-meta { display: none; }
  .ex-rank-row { grid-template-columns: 28px 48px minmax(0, 1fr) 34px 38px; }
  .ex-rank-row .card-play { opacity: 1; transform: none; }
  .ex-section { margin-top: 48px; }
}
@media (max-width: 520px) {
  .ex-quick { grid-template-columns: minmax(0, 1fr); }
  .ex-quick-go { opacity: 1; transform: none; }
  .ex-moods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ex-mood-text span { display: none; }
  .ex-row { grid-auto-columns: 150px; gap: 14px; }
  .ex-releases { grid-auto-columns: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  .ex-quick-card, .ex-mood.mood-chip, .ex-cover, .ex-cover > img, .ex-artist-pic img { transition: none; }
  .ex-artist:hover .ex-artist-ring::before { animation: none; }
}
.ex-quick-text span { white-space: normal; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ex-quick-card { grid-template-columns: auto minmax(0, 1fr); }
.ex-quick-go { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; }
.ex-quick-go .icon { width: 13px; height: 13px; }

/* Made for you: a mix as a cover of its artists' faces under its colour, its name big on it. */
.ex-mixes { grid-auto-columns: 200px; }
.ex-mix { position: relative; display: grid; gap: 3px; align-content: start; min-width: 0; }
.ex-mix-cover { position: relative; display: block; aspect-ratio: 1; margin-bottom: 9px; overflow: hidden; border-radius: 20px; background: var(--tone, #d61f35);
  transition: transform .3s var(--ease-out), box-shadow .3s; }
.ex-mix:hover .ex-mix-cover { transform: translateY(-4px); box-shadow: 0 26px 40px -24px rgb(0 0 0 / .85); }
.ex-mix-faces { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr; }
.ex-mix-faces.is-four { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.ex-mix-faces img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.ex-mix-shade { position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 35%, transparent) 0%, color-mix(in srgb, var(--tone) 92%, #000) 100%); }
.ex-mix-label { position: absolute; left: 16px; right: 16px; bottom: 14px; color: #fff; font: 700 30px/1 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; text-shadow: 0 2px 14px rgb(0 0 0 / .35); }
.ex-mix .card-play { top: 12px; right: 12px; bottom: auto; }
.ex-mix:hover .card-play { opacity: 1; transform: none; }
.ex-mix .ex-song-artist { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ex-mix.tone-0 { --tone: #d61f35; }
.ex-mix.tone-1 { --tone: #2f6fd6; }
.ex-mix.tone-2 { --tone: #1f9e78; }
.ex-mix.tone-3 { --tone: #8a4fd6; }
.ex-mix.tone-discover { --tone: #e07a1f; }
.ex-mix.tone-repeat { --tone: #c23a7a; }
.ex-mix.is-skeleton .skeleton-art { aspect-ratio: 1; margin: 0 0 9px; border-radius: 20px; }
.ex-cold { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border: 1.5px dashed var(--border-strong); border-radius: 22px; color: var(--muted); }
.ex-cold .glyph { flex: none; --glyph-tone: var(--accent); }
.ex-cold strong { color: var(--text); }
@media (prefers-reduced-motion: reduce) { .ex-mix-cover { transition: none; } }

/* Made for you: the time of day's mix, how the algorithm reads you, why a song is there, "Not interested". */
.ex-mix.tone-moment { --tone: #3a4fc7; }
.ex-profile { margin: -6px 0 18px; color: var(--muted); font-size: 14px; }
.ex-why { overflow: hidden; color: var(--accent-text); font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.ex-hide { position: absolute; top: 8px; left: 8px; z-index: 3; display: flex; gap: 5px; opacity: 0; transition: opacity .2s; }
.ex-song:hover .ex-hide, .ex-hide:focus-within { opacity: 1; }
.ex-hide-btn { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgb(20 19 33 / .75); color: #f7ece1; font: 700 13px/1 var(--body); cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .15s, transform .2s var(--ease-spring); }
.ex-hide-btn:hover { background: var(--accent); transform: scale(1.08); }
.ex-song.is-hidden { opacity: 0; transform: scale(.92); transition: opacity .3s, transform .3s; }
@media (hover: none) { .ex-hide { opacity: 1; } }
.ex-mix.tone-moment .ex-mix-label, .ex-mix-label { font-size: 26px; line-height: 1.05; }

/* What the algorithm knows (templates/_taste.html): the member's own page, the admin page's Algorithm. */
.tw-stats { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 20px; }
.tw-stats .stat-value { color: var(--accent-text); font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; }
.tw-grid { margin-bottom: 20px; }
.tw-pad { padding: 0 22px 20px; }
.tw-foot { margin-top: 14px; }
.tw-member-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 24px; }
.ex-taste-link { font-weight: 800; }

/* ---- the page after an add, and a member's rewards (added.html, rewards.html) ---- */
.rw-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 8px 0 34px; padding: 0; list-style: none; counter-reset: step; }
.rw-steps li { position: relative; display: grid; gap: 6px; padding: 24px 22px 22px; counter-increment: step; }
.rw-steps li::after { content: counter(step); position: absolute; top: 16px; right: 20px; color: var(--muted); font: 800 34px/1 var(--display); opacity: 0.35; }
.rw-steps strong { font: 800 19px/1.2 var(--display); }
.rw-step-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 6px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent-text); }
.rw-try { margin: 0 0 34px; }
.rw-try h2 { margin-bottom: 12px; font-size: 22px; }
.rw-try ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rw-try li { padding: 10px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); font-weight: 700; }
.rw-try code, .rw-steps code { color: var(--accent-text); font-weight: 800; }
.rw-spread { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 26px; }
.rw-spread > div:first-child { flex: 1 1 340px; }
.rw-spread h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 20px; }
.rw-spread h2 .glyph { color: var(--accent-text); }
.rw-spread-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.rw-grid > .card, .rw-steps > .card { margin: 0; }
.rw-card .card-head h2 .glyph { color: var(--accent-text); }
.rw-sites { margin: 0; padding: 0 26px; list-style: none; }
.rw-sites li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); }
.rw-site-name { display: grid; gap: 3px; min-width: 0; }
.rw-stats { padding: 14px 26px 4px; }
.rw-remind { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin: 12px 26px 24px; padding: 14px 16px; border: 1.5px dashed var(--border-strong); border-radius: 16px; }
.rw-remind p { display: flex; align-items: center; gap: 8px; margin: 0; }
.rw-body { display: grid; gap: 14px; padding: 0 26px 24px; }
.rw-body .rw-stats { padding: 0; }
.rw-servers { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rw-servers li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; border-radius: 12px; background: var(--surface); font-weight: 700; }
.rw-servers li > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rw-rules summary { cursor: pointer; color: var(--accent-text); font-weight: 800; }
.rw-rules ul { display: grid; gap: 6px; margin: 10px 0 0; padding-left: 20px; color: var(--muted); }
@media (max-width: 860px) {
  .rw-grid, .rw-steps { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .rw-sites { padding: 0 18px; }
  .rw-stats { padding: 14px 18px 4px; }
  .rw-remind { margin: 12px 18px 20px; }
  .rw-body { padding: 0 18px 20px; }
  .rw-spread { padding: 20px 18px; }
}

/* ---- the admin page's growth engine (admin.html: Where new servers come from, Bot lists and votes) ---- */
.reach-numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0 22px 18px; }
.reach-numbers div { display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--surface); }
.reach-numbers strong { font: 800 26px/1 var(--display); }
.reach-numbers span { color: var(--muted); font-size: 13px; font-weight: 700; }
.reach-doors, .reach-lists { display: grid; gap: 8px; margin: 0; padding: 0 22px 18px; list-style: none; }
.reach-doors li { display: grid; grid-template-columns: minmax(120px, 1.2fr) 2fr auto; align-items: center; gap: 12px; font-weight: 700; }
.reach-bar { height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--text) 7%, transparent); overflow: hidden; }
.reach-bar span { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--accent); transform: scaleX(calc(var(--share, 0) / 100)); transform-origin: left; }
.reach-lists li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--surface); }
.reach-lists li strong { margin-right: auto; }
.reach-line { padding: 0 22px 20px; color: var(--muted); }
#reach, #votes { margin-top: 18px; }
@media (max-width: 760px) {
  .reach-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reach-doors li { grid-template-columns: 1fr auto; }
  .reach-bar { grid-column: 1 / -1; grid-row: 2; }
}

/* ---- Meowdy Live (live.html, Explore's row, the menu's dot) ---- */
.live-dot { display: inline-block; flex: none; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--accent); vertical-align: 2px; box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); animation: lv-ping 1.8s ease-out infinite; }
@keyframes lv-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
.lv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 18px; margin-bottom: 40px; }
.lv-grid > .card { margin: 0; }
.lv-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px; padding: 20px; }
.lv-art { position: relative; width: 132px; height: 132px; display: grid; place-items: center; border-radius: 20px; overflow: hidden; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent-text); }
.lv-art img { width: 100%; height: 100%; object-fit: cover; }
.lv-badge { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.lv-pulse { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: twinkle 1.4s ease-in-out infinite; }
.lv-body { display: grid; align-content: start; gap: 6px; min-width: 0; }
.lv-kicker { margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.lv-title { margin: 0; font-size: 22px; overflow-wrap: anywhere; }
.lv-now { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); min-width: 0; }
.lv-now span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-now strong { color: var(--text); }
.lv-stats { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 2px 0 6px; color: var(--muted); font-weight: 700; }
.lv-stats strong { color: var(--text); }
.lv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lv-code { padding: 6px 10px; border-radius: 10px; background: var(--surface); color: var(--muted); font-size: 12px; }
.lv-empty { display: flex; align-items: center; gap: 20px; padding: 28px; margin-bottom: 40px; color: var(--accent-text); }
.lv-empty h2 { margin: 0 0 6px; color: var(--text); font-size: 20px; }
.lv-empty p { margin: 0; }
.lv-how h2 { margin-bottom: 14px; font-size: 22px; }
.ex-live { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.ex-live a { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); color: inherit; text-decoration: none; min-width: 0; }
.ex-live a:hover { border-color: var(--accent); }
.ex-live img, .ex-live .ex-live-art { flex: none; width: 54px; height: 54px; border-radius: 14px; object-fit: cover; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent-text); }
.ex-live span { display: grid; gap: 2px; min-width: 0; }
.ex-live strong, .ex-live small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-live small { color: var(--muted); }
@media (max-width: 560px) {
  .lv-card { grid-template-columns: 1fr; }
  .lv-art { width: 100%; height: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot, .lv-pulse { animation: none; }
}
