/* Wayywi Records — site styles
   Black and gold from the logo. Cormorant Garamond for titles (the roman capitals
   of the wordmark), Jost for everything you read and tap. */
:root {
  --bg: #000000;
  --panel: #0d0b08;
  --ink: #f3ede2;
  --muted: #958b7c;
  --gold: #c9a55c;
  --gold-hi: #e9d3a0;
  --line: rgba(201, 165, 92, .24);
  --line-strong: rgba(201, 165, 92, .55);
  --serif: "Cormorant Garamond", Palatino, Georgia, serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", sans-serif;
  --shell: 100%;
  --pad-x: 22px;
  --gap: 8px;
  --top-h: 64px;
  --radius: 6px;
}
* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--gold-hi); text-underline-offset: 3px; }
img, video, iframe, svg { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: #000; }

/* ——— Header ——— */
.top {
  position: sticky; top: 0; z-index: 6;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  width: 100%;
  min-height: var(--top-h);
  padding: calc(10px + env(safe-area-inset-top)) var(--pad-x) 10px;
  background: rgba(0, 0, 0, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; gap: 12px; align-items: center; min-width: 0;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink);
}
.brand img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #000; flex: 0 0 auto; }
.brand span {
  font-family: var(--serif); font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  /* Sized to the screen so "Wayywi Records" always fits next to the play button and EN/FR. */
  font-size: clamp(17px, 5.2vw, 22px);
}
.top-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.language-toggle { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.language-toggle button {
  border: 0; border-radius: 999px; background: none; color: var(--muted);
  min-width: 40px; min-height: 36px; padding: 6px 10px; font-size: 13px; cursor: pointer;
}
.language-toggle button.on { background: var(--gold); color: #000; }
.pin-play {
  width: 40px; height: 40px; flex: 0 0 auto; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid var(--line-strong); background: none; color: var(--gold-hi); cursor: pointer;
}
.pin-play:hover { border-color: var(--gold); }
.pin-play.is-on { background: var(--gold); color: #000; border-color: var(--gold); }

/* ——— Bottom tab bar (phones) ——— */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 4px 0 calc(4px + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.tabbar button {
  position: relative; background: none; border: 0; color: var(--muted);
  min-height: 52px; padding: 8px 4px; font-size: 14px; letter-spacing: .02em; cursor: pointer;
  touch-action: manipulation;
}
.tabbar button.on { color: var(--gold-hi); }
.tabbar button.on::before {
  content: ""; position: absolute; top: -5px; left: 50%; width: 22px; height: 2px;
  transform: translateX(-50%); background: var(--gold);
}

/* ——— Page frame ——— */
main { width: min(var(--shell), 100%); margin: 0 auto; padding-bottom: 24px; }
.hero, .section, .page { padding: 28px var(--pad-x); }
.prerender img { border-radius: var(--radius); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.04; margin: 0; letter-spacing: -.005em; }
h1 { font-size: clamp(38px, 9vw, 76px); }
h2 { font-size: clamp(32px, 6vw, 48px); margin-bottom: 10px; }
p { margin: 0 0 12px; }
.kicker {
  font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.2;
  color: var(--gold); margin-bottom: 6px;
}
.meta { color: var(--muted); margin: 10px 0 0; font-size: 17px; }
.note { color: var(--muted); font-size: 15px; }
.year-tag {
  display: inline-block; margin-left: 12px; padding-left: 12px;
  border-left: 1px solid var(--line-strong); color: var(--muted);
}

/* ——— Buttons ——— */
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.btn, .text-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: none; color: var(--gold-hi);
  font-size: 15px; letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover, .text-btn:hover { border-color: var(--gold); color: #fff6e0; }
.btn.solid { background: var(--gold); border-color: var(--gold); color: #000; font-weight: 500; }
.btn.solid:hover { background: var(--gold-hi); border-color: var(--gold-hi); color: #000; }
.youtube-source { margin-top: 22px; }

/* ——— Home: featured release ——— */
.hero { display: grid; gap: 28px; padding-top: 32px; }
.hero-art { position: relative; justify-self: center; width: min(100%, 420px); aspect-ratio: 1 / 1; }
.hero .hero-cover {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; aspect-ratio: 1 / 1;
  object-fit: cover; border-radius: var(--radius); margin: 0; max-width: none; max-height: none;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}
.hero .swatch.big {
  display: block; width: 100%; height: 100%; aspect-ratio: 1 / 1;
  object-fit: cover; border-radius: var(--radius); margin: 0; max-width: none; max-height: none;
}
.hero-info { min-width: 0; }
.hero-info h1 { overflow-wrap: anywhere; min-height: 2.08em; }
.player, .player-slot {
  display: block; width: 100%; height: 152px; min-height: 152px; max-height: 152px; aspect-ratio: auto;
  border: 0; border-radius: 12px; margin-top: 24px; background: var(--panel);
}
.player-slot { background: transparent; }
.hero .zik-banner { margin: 18px 0 0; }

/* ——— Home: more releases ——— */
.more-releases { padding: 18px var(--pad-x) 8px; border-top: 1px solid var(--line); margin-top: 12px; }
.more-releases h2 { font-size: clamp(26px, 4vw, 34px); margin: 10px 0 18px; }
.rail {
  display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden;
  margin: 0 calc(-1 * var(--pad-x)); padding: 0 var(--pad-x) 16px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.more-all { margin: 4px 0 8px; }
.card {
  flex: 0 0 148px; scroll-snap-align: start; min-width: 0;
  display: flex; flex-direction: column; text-align: left;
  background: none; border: 0; padding: 0; color: inherit; cursor: pointer;
}
.hp {
  position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden;
}
.card img, .card .letter {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius);
  display: grid; place-items: center; background: #15110b;
  font-family: var(--serif); font-size: 44px; color: var(--gold-hi);
  transition: transform .2s ease;
}
.card:hover img, .card:focus-visible img { transform: translateY(-3px); }
.card strong { display: block; margin-top: 10px; font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.15; overflow-wrap: anywhere; }
.card em { display: block; margin-top: 3px; font-style: normal; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }

/* ——— Lists (catalog, dates, prerender) ——— */
.list { display: flex; flex-direction: column; margin: 0 calc(-1 * var(--pad-x)); padding: 0; list-style: none; }
.row-item {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center;
  width: 100%; padding: 12px var(--pad-x);
  background: none; border: 0; border-top: 1px solid var(--line);
  color: inherit; text-align: left; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease;
}
.list > :last-child .row-item, .list > .row-item:last-child { border-bottom: 1px solid var(--line); }
.row-item:hover { background: rgba(201, 165, 92, .06); }
.row-item strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.15; overflow-wrap: anywhere; }
.row-item .meta { display: block; margin: 2px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.row-item > img, .swatch img { width: 56px; height: 56px; aspect-ratio: 1 / 1; object-fit: cover; }
.year { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.swatch {
  width: 56px; height: 56px; border-radius: 4px; overflow: hidden;
  display: grid; place-items: center; color: var(--ink); font-family: var(--serif); font-size: 24px;
}
.swatch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swatch.big { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--radius); font-size: 96px; }
.coming { border-top: 1px solid var(--line); }
.coming .row-item { border: 0; }
.coming .note { padding: 0 var(--pad-x) 10px; margin: 0; }

/* ——— Catalog filters ——— */
.catalog-page h2 { margin-bottom: 18px; }
.catalog-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin: 0 0 24px; }
.catalog-filters .catalog-filter:first-child { grid-column: 1 / -1; }
.catalog-filter { min-width: 0; }
.catalog-filter label { margin: 0 0 6px; }

/* ——— Forms ——— */
label { display: block; margin: 16px 0 6px; color: var(--muted); font-size: 14px; letter-spacing: .01em; }
.search, input, textarea, select {
  width: 100%; min-height: 50px; padding: 12px 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); transition: border-color .15s ease;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); }
textarea { min-height: 120px; resize: vertical; }
select {
  appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 22px) calc(50% - 2px), calc(100% - 16px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}

/* ——— Release page ——— */
.release { display: grid; gap: 28px; }
.release-art { width: min(100%, 460px); justify-self: center; }
.release-art .release-cover, .release-art .swatch.big {
  display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius);
}
.release-info { min-width: 0; }
.release-info h1 { overflow-wrap: anywhere; }
.blurb { margin-top: 18px; font-size: 18px; max-width: 60ch; }
.tracks { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.tracks li {
  display: grid; grid-template-columns: 32px 1fr; gap: 8px;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px;
}
.track-no { color: var(--gold); font-variant-numeric: tabular-nums; }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.links a, .links button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: none; text-decoration: none;
}

/* ——— More page ——— */
.more-page { display: grid; gap: 40px; }
.more-col { min-width: 0; }
.more-col .row { margin-top: 18px; }
.contact-head { margin-top: 0; }

/* ——— About ——— */
.logo { width: min(100%, 560px); border-radius: var(--radius); display: block; margin: 0 0 20px; }

/* ——— Footer ——— */
.site-foot {
  width: min(var(--shell), 100%); margin: 24px auto 0;
  padding: 28px var(--pad-x) calc(96px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px;
  color: var(--muted); font-size: 14px;
}
.site-foot p { margin: 0; }
.site-foot p:first-child { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.site-foot .foot-year { order: 3; width: 100%; font-size: 13px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 2px; margin-left: -10px; order: 2; }
.foot-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; color: var(--muted); text-decoration: none;
}
.foot-links a:hover, .foot-links a:focus-visible { color: var(--gold-hi); }
.foot-links svg { width: 24px; height: 24px; }

/* ——— TikTok comments strip (home) ——— */
.zik-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 7px 12px;
  min-height: 36px;
  max-width: 100%;
  background: #000;
  color: #e6c57a;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
}
.zik-banner:hover, .zik-banner:focus-visible { color: #f6e7c1; }
.zik-mark {
  flex: 0 0 auto;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.zik-rot {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 1.35em;
  overflow: hidden;
}
.zik-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  line-height: 1.35;
  opacity: 0;
  animation: zik-fade 40s linear infinite;
}
.zik-line b { font-weight: 600; color: #f3e2b3; margin-right: .35em; }
.zik-line:nth-child(1) { animation-delay: 0s; }
.zik-line:nth-child(2) { animation-delay: 5s; }
.zik-line:nth-child(3) { animation-delay: 10s; }
.zik-line:nth-child(4) { animation-delay: 15s; }
.zik-line:nth-child(5) { animation-delay: 20s; }
.zik-line:nth-child(6) { animation-delay: 25s; }
.zik-line:nth-child(7) { animation-delay: 30s; }
.zik-line:nth-child(8) { animation-delay: 35s; }
@keyframes zik-fade {
  0% { opacity: 0; }
  1.5% { opacity: 1; }
  10.5% { opacity: 1; }
  12.5% { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .zik-line { animation: none; opacity: 0; }
  .zik-line:first-child { opacity: 1; }
}
.zik-mark { text-transform: none; letter-spacing: 0; font-family: var(--serif); font-style: italic; font-size: 16px; }

/* ——— Desk (owner only) ——— */
.desk-shell { position: relative; }
.desk-shell.is-open > .kicker,
.desk-shell.is-open > h2,
.desk-shell.is-open > .dk-gate { display: none; }
.desk-shell .dk-gate {
  max-width: 420px;
  margin-top: 8px;
  padding: 4px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #120f0c;
}
.desk-shell .dk-head h2 { font-size: 34px; }
.desk-shell .dk-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 6px;
}
.desk-shell .dk-stat {
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 92px; text-align: left;
  background: #14110c; border: 1px solid var(--line); border-radius: 18px;
  padding: 12px; cursor: pointer;
  transition: transform .16s ease, border-color .16s ease;
}
.desk-shell .dk-stat:hover, .desk-shell .dk-stat:focus-visible { border-color: var(--gold); }
.desk-shell .dk-stat:active { transform: scale(.98); }
.desk-shell .dk-stat b {
  font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1; color: #f0d48a;
}
.desk-shell .dk-stat span {
  color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}
.desk-shell .dk-block { scroll-margin-top: 72px; margin-top: 26px; }
.desk-shell .dk-block h2 { font-size: 28px; }
.desk-shell h3 { font-family: var(--serif); font-weight: 500; font-size: 18px; margin: 16px 0 8px; }
.desk-shell .dk-chart { width: 100%; height: auto; display: block; overflow: visible; }
.desk-shell .dk-rel, .desk-shell .dk-msg {
  border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin: 10px 0;
  background: #100e0b;
}
.desk-shell .dk-rel-top, .desk-shell .dk-msg-top { min-width: 0; }
.desk-shell .dk-rel-top { display: flex; gap: 12px; align-items: center; }
.desk-shell .dk-rel-copy { min-width: 0; }
.desk-shell .dk-thumb-hold .swatch { width: 64px; height: 64px; border-radius: 10px; }
.desk-shell .dk-title, .desk-shell .dk-sub, .desk-shell .dk-flags, .desk-shell .dk-msg p, .desk-shell .dk-person span, .desk-shell .dk-open span {
  overflow-wrap: anywhere;
}
.desk-shell .dk-title { display: block; font-family: var(--serif); font-size: 18px; }
.desk-shell .dk-sub, .desk-shell .dk-flags { display: block; }
.desk-shell .dk-flags { margin-top: 4px; color: #f0d48a; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.desk-shell .dk-actions, .desk-shell .dk-msg .row, .desk-shell .dk-block > .row { display: flex; flex-wrap: wrap; gap: 8px; }
.desk-shell .dk-actions { margin-top: 12px; }
.desk-shell .dk-actions .btn, .desk-shell .dk-msg .btn, .desk-shell .dk-person .btn, .desk-shell #mailToggle, .desk-shell #markSent, .desk-shell #exportList {
  min-height: 44px;
}
.desk-shell .dk-saved {
  margin: 8px 0 0; color: #f0d48a; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}
.desk-shell .dk-saved.show { animation: dk-pop 1.1s ease; }
@keyframes dk-pop {
  0% { opacity: 0; transform: translateY(4px); }
  18% { opacity: 1; transform: none; }
  72% { opacity: 1; }
  100% { opacity: 0; }
}
.desk-shell .dk-person, .desk-shell .dk-open {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 0; border-top: 1px solid var(--line);
}
.desk-shell .dk-person span, .desk-shell .dk-open span { min-width: 0; }
@media (max-width: 640px) {
  .desk-shell .dk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .desk-shell .dk-head h2 { font-size: 30px; }
  .desk-shell .dk-actions .btn { flex: 1 1 30%; }
  .desk-shell .dk-msg .row .btn, .desk-shell .dk-msg .row a.btn { flex: 1 1 42%; text-align: center; }
}

/* ——— Header play button and mini player ——— */
/* Header play: current home hero / pinned track */
.pin-play {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: none;
  color: #f0d48a;
  cursor: pointer;
}
.pin-play:hover, .pin-play:focus-visible { border-color: var(--gold); color: #f6e7c1; }
.pin-play.is-on { background: var(--gold); color: #1a1206; border-color: var(--gold); }
.pin-player-dock {
  position: fixed;
  left: 50%;
  bottom: calc(64px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(var(--shell), calc(100% - 2 * var(--pad-x)));
  z-index: 6;
  background: #100e0b;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
}
.pin-player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px 0;
}
.pin-player-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f0d48a;
  font-size: 12px;
  letter-spacing: .04em;
}
.pin-player-close {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  min-width: 36px;
  min-height: 36px;
}
.pin-player-dock .player {
  margin: 4px 8px 8px;
  height: 80px;
  min-height: 80px;
  aspect-ratio: auto;
  border-radius: 10px;
}
@media (max-width: 640px), ((display-mode: standalone) and (max-width: 900px)) {
  .pin-play { width: 40px; height: 40px; }
}

/* ——— Wider phones and tablets ——— */
@media (min-width: 560px) {
  .catalog-filters { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); align-items: end; }
  .catalog-filters .catalog-filter:first-child { grid-column: auto; }
  .card { flex-basis: 168px; }
}

/* ——— Tablet and up: two-column layouts ——— */
@media (min-width: 760px) {
  :root { --shell: min(1200px, 100%); --pad-x: 40px; --top-h: 72px; }
  .hero, .section, .page { padding-top: 48px; padding-bottom: 40px; }
  .hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center; gap: clamp(40px, 6vw, 88px);
    padding-top: 56px; padding-bottom: 56px;
  }
  .hero-art { width: 100%; justify-self: stretch; }
  .rail {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 24px; overflow: visible; margin: 0; padding: 0 0 24px;
  }
  .card { flex: none; }
  .more-releases { padding-top: 32px; }
  .release { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
  .release-art { width: 100%; position: sticky; top: calc(var(--top-h) + 32px); }
  .more-page { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
  .catalog-page, .page:not(.release):not(.more-page):not(.hero) { max-width: 920px; margin: 0 auto; }
  .site-foot { padding-left: var(--pad-x); padding-right: var(--pad-x); }
}

/* ——— Desktop: the four sections move into the header ——— */
@media (min-width: 1040px) {
  .rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tabbar {
    top: env(safe-area-inset-top); bottom: auto; left: 50%; right: auto; transform: translateX(-50%);
    z-index: 7; display: flex; gap: 6px; height: var(--top-h); align-items: center;
    padding: 0; background: none; border: 0;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .tabbar button { min-height: 40px; padding: 8px 16px; font-size: 15px; }
  .tabbar button:hover { color: var(--ink); }
  .tabbar button.on::before { top: auto; bottom: -4px; }
  .site-foot { padding-bottom: 40px; }
  .pin-player-dock { bottom: 24px; }
}

@media (min-width: 1400px) {
  :root { --shell: min(1320px, 100%); --pad-x: 56px; }
}

/* ——— Phones ——— */
@media (max-width: 559px) {
  .top { gap: 8px; }
  .brand { gap: 9px; }
  .brand img { width: 34px; height: 34px; }
  .top-actions { gap: 8px; }
  .pin-play { width: 38px; height: 38px; }
  .language-toggle button { min-width: 36px; padding: 6px 8px; }
  /* Comfortable side margins and spacing on narrow screens */
  .hero, .section, .page { padding-top: 24px; padding-bottom: 28px; }
  .hero { gap: 24px; }
  .hero-art { width: min(100%, 360px); }
  .row .btn { flex: 1 1 auto; }
  .tracks li { padding: 12px 2px; }
  .more-page { gap: 48px; }
  .site-foot { padding-top: 24px; }
}

/* ——— Small phones ——— */
@media (max-width: 380px) {
  :root { --pad-x: 18px; }
  .brand img { width: 30px; height: 30px; }
  .card { flex-basis: 132px; }
}

/* ——— Phone landscape ——— */
@media (max-height: 480px) and (orientation: landscape) {
  .tabbar button { min-height: 40px; padding: 4px; }
  .hero-art { width: min(100%, 300px); }
}

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