/* Inter Tight, served from skipfm.com itself (no request to Google): one variable file per alphabet,
   each loaded only when the page has text in it. Licence: /fonts/OFL.txt */
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/inter-tight-v9-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/inter-tight-v9-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/inter-tight-v9-greek-ext.woff2) format('woff2'); unicode-range: U+1F00-1FFF; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/inter-tight-v9-greek.woff2) format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/inter-tight-v9-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/inter-tight-v9-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/inter-tight-v9-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #111111;
  --ink: #ffffff;
  --ink-2: color-mix(in srgb, var(--ink) 74%, transparent);
  --line: color-mix(in srgb, var(--ink) 38%, transparent);
  --sheet: #f6f5f1;
  --sheet-ink: #141414;
  --sheet-ink-2: #5b5a55;
  --font: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --gutter: 16px;
  --col: 640px;
  --home-col: 1200px;  /* the genre grid uses more of a wide screen */
  /* The big "next" bar: padding, one line of its text, the phone's home-bar area. */
  --next-h: calc(50px + clamp(38px, 11vw, 60px) + env(safe-area-inset-bottom));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); transition: background-color .6s ease; }
/* Nothing should ever scroll sideways (set on html only: on body it would break the sticky next button). */
html { overflow-x: hidden; }
body {
  font-family: var(--font);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 1em; height: 1em; display: block; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.app {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: minmax(0, 1fr);
  overflow-x: clip;
  color: var(--ink);
  transition: color .4s ease;
}

/* ---------- top bar ---------- */
.top {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: max(10px, env(safe-area-inset-top)) var(--gutter) 0;
  padding-inline: max(var(--gutter), calc((100% - var(--col)) / 2));
  min-height: 56px;
  /* Above the big genre word: its letters (line-height .84) reach up into
     the bar, and a tap there must hit the logo or a genre, not open search. */
  position: relative;
  z-index: 2;
}
.is-home .top { padding-inline: max(var(--gutter), calc((100% - var(--home-col)) / 2)); }
.tabs {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  mask-image: linear-gradient(90deg, #000 85%, transparent);
  padding-right: 24px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 0 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  scroll-snap-align: start;
}
.tab[aria-current="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.icon-btn {
  flex: none;
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  font-size: 22px;
}
.count {
  position: absolute;
  top: 6px;
  right: 3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
  line-height: 17px;
}
.is-home .tabs { visibility: hidden; }

/* ---------- home (first visit) ---------- */
.home { display: none; padding: 8px var(--gutter) 16px; padding-inline: max(var(--gutter), calc((100% - var(--home-col)) / 2)); }
.is-home .home { display: block; }
/* Logo: on every page, back to the genre grid. The name shows on the grid only. */
.brand { flex: none; display: flex; align-items: center; gap: 9px; margin-right: 14px; padding: 0; border: 0; background: none; color: var(--ink); font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.brand .logo { width: 32px; height: 22px; }
.app:not(.is-home) .brand-name { display: none; }
.home-title {
  margin: 12px 0 14px;
  font-size: clamp(34px, min(12.5vw, 9vh), 76px);  /* smaller on short screens: room for the tiles */
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: .92;
}
/* The vibes: one tap to music (moods.js) */
.vibe-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(92px, 12vh, 150px); gap: 6px; }
@media (min-width: 720px) { .vibe-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: clamp(110px, 17vh, 180px); } }
.vibe-tiles .tile { flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 12px 14px; font-size: clamp(24px, 2.6vw, 38px); }
.tile-sub { margin-top: 5px; font-size: 13px; font-weight: 500; letter-spacing: 0; line-height: 1.25; opacity: .85; }
/* Your own vibe, in words (lib/vibe.js) */
.vibe-form { display: flex; align-items: center; gap: 12px; max-width: 760px; margin: 22px 0 0; padding: 4px 0 8px; border-bottom: 2px solid var(--ink); }
.vibe-mark { flex: none; width: 24px; height: 24px; }
.vibe-form.is-busy .vibe-mark { animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .vibe-form.is-busy .vibe-mark { animation: none; } }
.vibe-form input {
  flex: 1;
  min-width: 0;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.03em;
  outline: none;
}
.vibe-form input::placeholder { color: color-mix(in srgb, var(--ink) 42%, transparent); opacity: 1; }
.vibe-go { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 20px; }
.vibe-go:active { transform: scale(.94); }
.vibe-form:focus-within { border-bottom-width: 3px; padding-bottom: 7px; }
.vibe-hint { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); }
.vibe-hint:empty { display: none; }
/* The genres, one tap away */
.genres-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 760px; margin: 22px 0 14px; padding: 8px 0; border: 0; background: none; color: var(--ink-2); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; text-align: left; }
.genres-toggle svg { width: 20px; height: 20px; transition: transform .2s ease; }
.genres-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
.genres-toggle:hover { color: var(--ink); }
.genre-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  /* app.js picks columns, tile height and label size for the width */
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  grid-auto-rows: var(--tile-h, 104px);
  gap: 6px;
}
.tile {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: var(--tile-pad-y, 12px) var(--tile-pad-x, 14px);
  border: 0;
  border-radius: 3px;
  text-align: left;
  text-decoration: none;
  font-size: var(--tile-font, 26px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: .95;
  transition: transform .15s ease, filter .15s ease;
}
.tile:hover { filter: brightness(1.06); }
.tile:active { transform: scale(.97); }

/* ---------- stage (playing) ---------- */
.stage {
  display: none;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 6px var(--gutter) 0;
  padding-inline: max(var(--gutter), calc((100% - var(--col)) / 2));
  min-height: 0;
}
.app:not(.is-home) .stage { display: grid; }
/* The player fills the first screen; the genre's section starts below it. */
.app:not(.is-home) .stage { min-height: calc(100vh - 56px - var(--next-h)); min-height: calc(100dvh - 56px - var(--next-h)); }
.stage-head { min-width: 0; }
.genre-word {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 8px 0 0 -0.05em;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: clamp(48px, min(25vw, 22vh), 190px);
  font-size: clamp(48px, min(25vw, 22dvh), 190px);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: .84;
  overflow-wrap: anywhere;
}
/* A vibe's title is its short name; this says what plays */
.vibe-line { margin: clamp(14px, 2.4vh, 24px) 0 0; max-width: 34em; font-size: clamp(16px, 2.4vw, 20px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; color: var(--ink); }
.now { align-self: end; padding: 12px 0 22px; min-width: 0; }

/* where am I: dotted world map in the free space */
/* The canvas is taken out of the flow, so the map only ever fills the space left over. */
.map { position: relative; min-height: 0; margin: 24px 0 4px; }
.map canvas { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: block; }
@media (max-width: 600px) { .map { margin-inline: calc(-1 * var(--gutter) + 4px); } } /* phones: use the full width */

.song {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -2px 0 10px;
  font-size: 16px;
  font-weight: 500;
  min-width: 0;
}
.song svg { flex: none; font-size: 15px; }
.song span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* Heart right after the title; its negative margins keep the line compact. */
.song-heart {
  flex: none;
  width: 40px;
  height: 40px;
  margin: -12px -10px -12px -6px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: 19px;
}
.song-heart svg { font-size: 17px; }
.song-heart[aria-pressed="true"] svg { animation: pop .35s ease-out; }
@keyframes pop { 40% { transform: scale(1.35); } }
.status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 18px;
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.eq { display: none; gap: 2px; align-items: flex-end; height: 12px; }
.eq i { width: 3px; height: 8px; background: var(--ink); animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { height: 12px; animation-delay: -.3s; }
.eq i:nth-child(3) { height: 5px; animation-delay: -.6s; }
.is-playing .eq { display: flex; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }

.station {
  margin: 0 0 10px;
  font-size: clamp(26px, 7.4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  transition: opacity .25s ease;
}
.is-tuning .station, .is-tuning .where, .is-tuning .tags { opacity: .55; }
.where {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  min-height: 22px;
}
.flag { font-size: 20px; line-height: 1; }
.flag img { width: 22px; height: 15px; object-fit: cover; display: block; border-radius: 2px; }
.tags { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); min-height: 20px; }

.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 20px; }  /* narrow phones: volume drops to its own row */
.ctl {
  flex: none;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 21px;
  text-decoration: none;
}
.ctl.play { width: 58px; height: 58px; background: var(--ink); color: var(--bg); border-color: var(--ink); font-size: 24px; }
.ctl[aria-pressed="true"] { border-color: var(--ink); }
.ctl:disabled { opacity: .4; cursor: default; }
/* "identify song": a pill beside the heart */
.ctl-id { width: auto; display: flex; gap: 7px; padding: 0 16px 0 13px; border-radius: 24px; font: 600 15px/1 var(--font); letter-spacing: -0.01em; white-space: nowrap; }
.ctl-id svg { font-size: 19px; }
.ctl-id.is-busy svg { animation: listen 1s ease-in-out infinite; }
@keyframes listen { 50% { transform: scaleY(.55); } }
.vol { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 20px; color: var(--ink-2); min-width: 120px; padding: 0 4px; }
.vol input { flex: 1; min-width: 60px; appearance: none; -webkit-appearance: none; height: 28px; background: transparent; margin: 0; }
.vol input::-webkit-slider-runnable-track { height: 2px; background: var(--line); }
.vol input::-moz-range-track { height: 2px; background: var(--line); }
.vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -7px; border-radius: 50%; background: var(--ink); border: 0; }
.vol input::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 0; }

/* "more like this": a vibe made from the station on now */
.station-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.more-like { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--ink); font-size: 14px; font-weight: 600; }
.more-like svg { flex: none; width: 16px; height: 16px; }
.more-like:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); }

/* ---------- under the player: the genre's section ---------- */
.genre-info { display: none; padding: 44px var(--gutter) 56px; padding-inline: max(var(--gutter), calc((100% - var(--col)) / 2)); }
.app:not(.is-home) .genre-info { display: block; }
.info-title { margin: 0 0 12px; font-size: clamp(28px, 7vw, 40px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.info-intro { margin: 0; max-width: 36em; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.info-head { margin: 36px 0 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.info-stations { list-style: none; margin: 0; padding: 0; }
.info-stations li { border-top: 1px solid var(--line); }
.info-st { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 0; border: 0; background: none; color: inherit; text-align: left; text-decoration: none; }
.info-st:hover .info-st-name { text-decoration: underline; }
.info-st .flag { flex: none; width: 24px; text-align: center; }
.info-st-text { min-width: 0; }
.info-st-name { display: block; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info-st-meta { display: block; font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.info-links a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.info-links a:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); }
.info-all a { padding: 4px 10px; font-size: 14px; }
.info-fine { margin: 36px 0 0; font-size: 12px; color: var(--ink-2); }

/* ---------- footer, and the About / Privacy / Terms pages ---------- */
.site-foot { padding: 22px var(--gutter) 28px; padding-inline: max(var(--gutter), calc((100% - var(--col)) / 2)); font-size: 13px; color: var(--ink-2); }
.is-home .site-foot { padding-inline: max(var(--gutter), calc((100% - var(--home-col)) / 2)); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { color: var(--ink); font-weight: 600; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; }
.foot-langs a { color: var(--ink-2); text-decoration: none; }
.foot-langs a:hover { text-decoration: underline; }
.foot-langs a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.foot-fine { margin: 8px 0 0; }
.doc-top { display: flex; align-items: center; min-height: 56px; padding: max(10px, env(safe-area-inset-top)) var(--gutter) 0; padding-inline: max(var(--gutter), calc((100% - var(--col)) / 2)); }
.doc-top .brand { text-decoration: none; }
.doc { padding: 28px var(--gutter) 24px; padding-inline: max(var(--gutter), calc((100% - var(--col)) / 2)); }
.doc-body h1 { margin: 0 0 10px; font-size: clamp(36px, 9vw, 54px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.doc-body h2 { margin: 30px 0 6px; font-size: 20px; font-weight: 800; letter-spacing: -0.025em; }
.doc-body p, .doc-body li { font-size: 16px; line-height: 1.55; color: var(--doc-muted, var(--ink-2)); }
.doc-body p { margin: 0 0 10px; }
.doc-body ul { margin: 0; padding-left: 20px; }
.doc-body li { margin-bottom: 8px; }
.doc-body strong { color: var(--doc-strong, var(--ink)); }
.doc-body a { color: inherit; }
.doc-body .doc-lead { font-size: 18px; color: var(--doc-strong, var(--ink)); }
.doc-body .doc-date { font-size: 14px; }
.doc-sheet { --doc-muted: var(--sheet-ink-2); --doc-strong: var(--sheet-ink); }
.doc-sheet .sheet-head { position: sticky; top: -18px; margin: -18px 0 0; padding-top: 12px; background: var(--sheet); }

/* ---------- next ---------- */
.next {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 24px max(20px, calc((100% - var(--col)) / 2)) calc(26px + env(safe-area-inset-bottom));
  font-size: clamp(38px, 11vw, 60px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  transition: background-color .6s ease, color .6s ease;
  touch-action: manipulation;
  position: sticky;           /* always reachable, even when a short screen scrolls */
  bottom: 0;
  z-index: 1;
}
.app:not(.is-home) .next { display: flex; }

/* now playing, on the genre grid */
.mini {
  display: flex;
  align-items: center;
  gap: 6px;
  position: sticky;
  bottom: 0;
  z-index: 1;
  padding: 12px max(14px, calc((100% - var(--home-col)) / 2)) calc(12px + env(safe-area-inset-bottom));
  transition: background-color .6s ease, color .6s ease;
}
.app:not(.is-home) .mini { display: none; }

/* "Add to Home Screen" on phones: a small card at the top, over the title and map, now and then (app.js) */
.a2hs {
  position: fixed; left: 50%; top: calc(64px + env(safe-area-inset-top)); z-index: 3;
  display: flex; align-items: center; gap: 12px;
  width: min(440px, calc(100% - 32px)); padding: 12px 6px 12px 12px;
  border: 2px solid var(--ink); border-radius: 18px; background: var(--bg); color: var(--ink);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
  opacity: 0; transform: translate(-50%, -16px); transition: opacity .25s ease, transform .25s ease;
}
.a2hs.is-on { opacity: 1; transform: translate(-50%, 0); }
.a2hs-icon { flex: none; width: 44px; height: 44px; border-radius: 10px; }
.a2hs-text { flex: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 1.3; }
.a2hs-text strong { display: block; margin-bottom: 2px; font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.a2hs-share { display: inline-block; width: 16px; height: 16px; margin: 0 1px; vertical-align: -3px; }
.a2hs-add { flex: none; padding: 9px 14px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 800; }
.a2hs-close { flex: none; color: inherit; }
@media (prefers-reduced-motion: reduce) { .a2hs { transition: none; } }
.mini-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 6px 0; border: 0; background: none; color: inherit; text-align: left; }
.mini-text { min-width: 0; }
.mini-name { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-meta { display: block; font-size: 14px; font-weight: 500; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-ctl { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border: 1.5px solid currentColor; border-radius: 50%; background: none; color: inherit; font-size: 20px; }
.mini-ctl + .mini-ctl { margin-left: 4px; }
.mini-eq, .tile-eq { display: none; flex: none; gap: 2px; align-items: flex-end; height: 14px; }
.mini-eq i, .tile-eq i { width: 3px; height: 8px; background: currentColor; animation: eq .9s ease-in-out infinite; }
.mini-eq i:nth-child(2), .tile-eq i:nth-child(2) { height: 14px; animation-delay: -.3s; }
.mini-eq i:nth-child(3), .tile-eq i:nth-child(3) { height: 5px; animation-delay: -.6s; }
.is-playing .mini-eq { display: flex; }
/* the genre that's on, marked on the grid */
.tile-eq { position: absolute; top: 8px; right: 8px; }
.is-playing .tile.is-on .tile-eq { display: flex; }
.next svg { font-size: .9em; transition: transform .2s ease; }
.next:hover svg { transform: translateX(4px); }
.next:active { filter: brightness(.9); }
.is-tuning .next svg { animation: nudge .8s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(10px); } }

/* ---------- sheets ---------- */
.sheet {
  width: 100%;
  max-width: 560px;
  max-height: min(84vh, 720px);
  margin: auto auto 0;
  padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 14px 14px 0 0;
  background: var(--sheet);
  color: var(--sheet-ink);
  font-family: var(--font);
  overflow: auto;
}
.sheet::backdrop { background: rgb(0 0 0 / .5); }
.sheet { --m1: #2B4BFF; --m2: #FF5B1F; --m3: var(--sheet-ink); } /* logo pieces on the light sheet: yellow wouldn't show */
.sheet :focus-visible { outline-color: var(--sheet-ink); }
.sheet .icon-btn { color: var(--sheet-ink); }
@media (min-width: 720px) {
  .sheet { margin: auto; border-radius: 14px; }
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h2 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.04em; }
.fav-tabs { display: flex; gap: 18px; min-width: 0; }
.fav-tabs button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--sheet-ink-2);
  font: 800 30px/1.2 var(--font);
  letter-spacing: -0.04em;
  opacity: .55;
}
.fav-tabs button[aria-pressed="true"] { color: var(--sheet-ink); opacity: 1; }
.fav-tabs span { margin-left: 3px; font-size: 14px; font-weight: 700; letter-spacing: 0; vertical-align: super; }
.search-form { display: flex; align-items: center; gap: 8px; }
.search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-bottom: 2px solid var(--sheet-ink);
  border-radius: 0;
  background: transparent;
  color: var(--sheet-ink);
  font: 700 28px/1.2 var(--font);
  letter-spacing: -0.03em;
  padding: 6px 0;
  outline: none;
  -webkit-appearance: none;
}
.search-form input::placeholder { color: #a3a19a; }
.search-msg { margin: 10px 0 0; min-height: 20px; font-size: 15px; color: #a3261b; }
.suggest, .fav-list { list-style: none; margin: 4px 0 0; padding: 0; }
.suggest button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.suggest small { margin-left: auto; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--sheet-ink-2); }
.swatch { flex: none; width: 16px; height: 16px; border-radius: 2px; }
.suggest .vibe-icon { flex: none; width: 18px; height: 18px; margin: 0 -1px; }
.suggest-head { margin: 18px 0 0; font-size: 13px; font-weight: 700; color: var(--sheet-ink-2); }
.station-list { list-style: none; margin: 0; padding: 0; transition: opacity .15s; }
.station-results.is-loading .station-list { opacity: .5; }
.station-list li { border-bottom: 1px solid #e3e1da; }
.station-list .fav-play { padding: 10px 0; }
.station-list .flag { flex: none; width: 24px; text-align: center; }
.suggest-note { margin: 10px 0 0; min-height: 20px; font-size: 15px; color: var(--sheet-ink-2); }
.fav-list li { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid #e3e1da; }
.fav-play {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border: 0;
  background: none;
  text-align: left;
}
.fav-play .swatch { width: 10px; height: 38px; }
.fav-text { min-width: 0; }
.fav-name { display: block; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-meta { display: block; font-size: 13px; color: var(--sheet-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-list .icon-btn { font-size: 16px; color: var(--sheet-ink-2); }
.fav-list .fav-copy { font-size: 19px; }
.fav-song .fav-name { font-weight: 600; }
.empty { margin: 16px 0 6px; font-size: 15px; color: var(--sheet-ink-2); }

/* Short screens (landscape phones, small laptops): word beside the player. */
@media (max-height: 520px) and (orientation: landscape) {
  .stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-rows: 1fr; align-items: end; column-gap: 24px; }
  .stage-head { align-self: center; }
  .map { display: none; }
  .top { min-height: 46px; padding-top: max(4px, env(safe-area-inset-top)); }
  .now { padding: 4px 0 10px; }
  .station { font-size: 26px; margin-bottom: 6px; }
  .status { margin-bottom: 6px; }
  .controls { margin-top: 10px; }
  .ctl { width: 44px; height: 44px; }
  .ctl-id { width: auto; }
  .ctl.play { width: 50px; height: 50px; }
  .next { padding-top: 14px; padding-bottom: calc(14px + env(safe-area-inset-bottom)); font-size: 34px; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Where to? The small map and the place line open it; a big map and the countries */
.map, .where { cursor: pointer; }
.where:focus-visible { outline-offset: 4px; }
#placeBtn svg { width: 12px; height: 12px; }
.place-map { margin: 10px 0 2px; color: var(--sheet-ink); }
.place-map canvas { display: block; cursor: pointer; }
.place-list .place-head { display: block; padding: 18px 0 4px; border: 0; font-size: 13px; font-weight: 700; color: var(--sheet-ink-2); }
.place-list .fav-play[aria-current="true"] .fav-name::after { content: " ✓"; }
.place-n { margin-left: auto; padding-left: 12px; font-size: 14px; font-weight: 600; color: var(--sheet-ink-2); }
.place-list .flag { flex: none; width: 24px; text-align: center; font-size: 20px; }

