/* =========================================================
   Modão Raiz — tema "fim de tarde no sertão"
   ========================================================= */

:root {
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --sidebar: 252px;
  --player-h: 92px;
  --tab-h: 62px;
  --mini-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* claro — papel de rapadura */
  --bg: #f4ebdc;
  --bg-glow-1: rgba(230, 150, 70, .22);
  --bg-glow-2: rgba(190, 90, 50, .12);
  --surface: #fffaf2;
  --surface-2: #f0e3cf;
  --surface-3: #e6d4b9;
  --hover: rgba(120, 70, 20, .07);
  --line: rgba(90, 55, 20, .14);
  --text: #2a1c11;
  --muted: #7b6250;
  --faint: #a88f78;
  --accent: #b4521a;
  --accent-hi: #cd6a22;
  --accent-soft: rgba(180, 82, 26, .12);
  --accent-ink: #fff7ec;
  --gold: #b07a1e;
  --danger: #b3261e;
  --glass: rgba(252, 245, 234, .84);
  --shadow: 0 22px 50px -24px rgba(80, 40, 10, .45);
  --shadow-sm: 0 6px 18px -8px rgba(80, 40, 10, .35);
  --grain-opacity: .05;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #110c08;
    --bg-glow-1: rgba(236, 148, 64, .13);
    --bg-glow-2: rgba(170, 60, 30, .12);
    --surface: #1b140e;
    --surface-2: #251b13;
    --surface-3: #32251a;
    --hover: rgba(255, 220, 180, .06);
    --line: rgba(255, 220, 180, .09);
    --text: #f5e9d6;
    --muted: #b49b82;
    --faint: #7e6853;
    --accent: #ec9440;
    --accent-hi: #f6ae5c;
    --accent-soft: rgba(236, 148, 64, .14);
    --accent-ink: #1b1007;
    --gold: #e2b65c;
    --danger: #f2877e;
    --glass: rgba(20, 14, 10, .82);
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, .8);
    --shadow-sm: 0 8px 20px -10px rgba(0, 0, 0, .7);
    --grain-opacity: .06;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #110c08;
  --bg-glow-1: rgba(236, 148, 64, .13);
  --bg-glow-2: rgba(170, 60, 30, .12);
  --surface: #1b140e;
  --surface-2: #251b13;
  --surface-3: #32251a;
  --hover: rgba(255, 220, 180, .06);
  --line: rgba(255, 220, 180, .09);
  --text: #f5e9d6;
  --muted: #b49b82;
  --faint: #7e6853;
  --accent: #ec9440;
  --accent-hi: #f6ae5c;
  --accent-soft: rgba(236, 148, 64, .14);
  --accent-ink: #1b1007;
  --gold: #e2b65c;
  --danger: #f2877e;
  --glass: rgba(20, 14, 10, .82);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .8);
  --shadow-sm: 0 8px 20px -10px rgba(0, 0, 0, .7);
  --grain-opacity: .06;
  color-scheme: dark;
}

/* ---------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { height: 100%; }
body {
  margin: 0;
  font: 500 15px/1.45 var(--font-ui);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 620px at -5% -15%, var(--bg-glow-1), transparent 62%),
    radial-gradient(900px 520px at 110% 5%, var(--bg-glow-2), transparent 58%);
  background-attachment: fixed;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
img { display: block; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.ic {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------------------------------------------- botões */

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--muted);
  transition: color .15s, background .15s, transform .15s var(--ease);
  flex: none;
}
.icon-btn:hover { color: var(--text); background: var(--hover); }
.icon-btn:active { transform: scale(.92); }
.icon-btn.sm { width: 30px; height: 30px; }
.icon-btn.sm .ic { width: 17px; height: 17px; }
.icon-btn.lg { width: 52px; height: 52px; color: var(--text); }
.icon-btn.lg .ic { width: 30px; height: 30px; }
.icon-btn.big .ic { width: 26px; height: 26px; }
.icon-btn.fav.on { color: var(--accent); }
.toggle-opt { position: relative; }
.toggle-opt.on { color: var(--accent); }
.toggle-opt.on::after {
  content: "";
  position: absolute;
  bottom: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.play-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  transition: transform .15s var(--ease), background .2s;
  flex: none;
}
.play-btn:hover { transform: scale(1.06); }
.play-btn:active { transform: scale(.94); }
.play-btn .ic { width: 20px; height: 20px; }
.play-btn.sm { width: 38px; height: 38px; }
.play-btn.xl {
  width: 76px;
  height: 76px;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 14px 30px -12px var(--accent);
}
.play-btn.xl .ic { width: 32px; height: 32px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .01em;
  transition: transform .15s var(--ease), background .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.96); }
.btn .ic { width: 18px; height: 18px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -12px var(--accent); }
.btn.primary:hover { background: var(--accent-hi); }
.btn.ghost { background: var(--surface-2); color: var(--text); }
.btn.ghost:hover { background: var(--surface-3); }
.btn.outline { border: 1.5px solid var(--line); color: var(--text); }
.btn.outline:hover { border-color: var(--muted); }
.btn.danger { color: var(--danger); background: transparent; border: 1.5px solid color-mix(in srgb, var(--danger) 35%, transparent); }
.btn.big { height: 50px; font-size: 15px; width: 100%; }
.btn.cream { background: #fbeedd; color: #3a1d0c; }
.btn.cream:hover { background: #fff6ea; }
.btn.glass { background: rgba(255, 245, 230, .16); color: #fff4e4; backdrop-filter: blur(8px); }
.btn.glass:hover { background: rgba(255, 245, 230, .26); }
.btn[disabled] { opacity: .55; pointer-events: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 245, 230, .12);
  color: inherit;
  font-weight: 700;
  font-size: 13px;
}
.chip .ic { width: 17px; height: 17px; }
.chip.on { background: #fbeedd; color: #3a1d0c; }

.link-btn { color: var(--accent); font-weight: 700; font-size: 13px; }
.link-btn:hover { text-decoration: underline; }

/* ---------------------------------------------------- range */

.range {
  --p: 0%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 18px;
  background: transparent;
  cursor: pointer;
  margin: 0;
}
.range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--track-fill, var(--text)) var(--p), var(--track-bg, var(--surface-3)) var(--p));
}
.range::-moz-range-track { height: 4px; border-radius: 4px; background: var(--track-bg, var(--surface-3)); }
.range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--track-fill, var(--text)); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--thumb, var(--text));
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
  transform: scale(0);
  transition: transform .15s var(--ease);
}
.range::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--thumb, var(--text)); }
.range:hover::-webkit-slider-thumb, .range:active::-webkit-slider-thumb, .range:focus-visible::-webkit-slider-thumb { transform: scale(1); }
.range:hover { --track-fill: var(--accent); }

/* ---------------------------------------------------- arte (capas) */

.art {
  --h: 28; --s: 45%; --l: 32%;
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  overflow: hidden;
  flex: none;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 78% 22%, hsl(calc(var(--h) + 18) calc(var(--s) + 20%) calc(var(--l) + 30%) / .75), transparent 42%),
    linear-gradient(150deg, hsl(var(--h) var(--s) calc(var(--l) + 10%)), hsl(calc(var(--h) - 12) var(--s) calc(var(--l) - 12%)));
  color: hsl(var(--h) 60% 90%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.art::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background:
    radial-gradient(120% 90% at 20% 100%, hsl(var(--h) var(--s) calc(var(--l) - 16%) / .9) 45%, transparent 46%),
    radial-gradient(120% 80% at 90% 110%, hsl(var(--h) var(--s) calc(var(--l) - 20%) / .95) 50%, transparent 51%);
  pointer-events: none;
}
.art span {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(12px, 28cqi, 64px);
  letter-spacing: -.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
.art { container-type: inline-size; }
.art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}
.art.sm { width: 44px; border-radius: 8px; }
.art.round { border-radius: 50%; }
.art-slot { display: contents; }

.mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  overflow: hidden;
}
.mosaic .art { border-radius: 0; }
.mosaic.one { grid-template-columns: 1fr; }

/* ---------------------------------------------------- layout */

.app {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  grid-template-rows: 1fr auto;
  grid-template-areas: "side main" "player player";
  height: 100dvh;
}

.sidebar {
  grid-area: side;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 14px 14px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  min-height: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 18px;
}
.brand img { border-radius: 11px; box-shadow: var(--shadow-sm); }
.brand b { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.brand small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; }

.nav { display: grid; gap: 2px; }
.nav a, .nav-foot, .side-playlists a {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 42px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-weight: 700;
  transition: background .15s, color .15s;
}
.nav a:hover, .nav-foot:hover, .side-playlists a:hover { background: var(--hover); color: var(--text); }
.nav a.active, .nav-foot.active, .side-playlists a.active { background: var(--accent-soft); color: var(--accent); }

.side-section { display: flex; flex-direction: column; min-height: 0; flex: 1; margin-top: 18px; }
.side-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 6px 12px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 800;
}
.side-playlists { overflow-y: auto; display: grid; gap: 1px; align-content: start; scrollbar-width: thin; }
.side-playlists a { height: 36px; font-size: 14px; font-weight: 600; gap: 10px; }
.side-playlists a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-playlists .dot { width: 8px; height: 8px; border-radius: 3px; background: var(--faint); flex: none; }
.side-playlists a.active .dot { background: var(--accent); }
.side-empty { padding: 6px 12px; color: var(--faint); font-size: 13px; }

.main { grid-area: main; display: flex; flex-direction: column; min-width: 0; min-height: 0; }

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px 8px;
  padding-top: calc(16px + var(--safe-t));
}
.topbar .back { display: none; }
.top-brand { display: none; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 19px; font-weight: 800; }
.top-brand img { border-radius: 8px; }
.top-settings { display: none; }

.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(420px, 100%);
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--faint);
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); color: var(--accent); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font-weight: 600; }
.search input::placeholder { color: var(--faint); font-weight: 500; }
.search input::-webkit-search-cancel-button { filter: grayscale(1); opacity: .6; }
.search kbd {
  font: 700 11px var(--font-ui);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--faint);
}
.search:focus-within kbd { display: none; }

.offline-pill {
  display: none;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  margin-left: auto;
}
.offline-pill .ic { width: 15px; height: 15px; }
body.is-offline .offline-pill { display: inline-flex; }

.view {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px 32px 48px;
  outline: none;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}
.view > * { animation: rise .35s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* ---------------------------------------------------- blocos de página */

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 10px 0 20px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.page-head p { margin: 6px 0 0; color: var(--muted); font-weight: 600; }
.page-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }

.section { margin-top: 38px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: 23px; }
.section-head a, .section-head button { color: var(--muted); font-weight: 700; font-size: 13px; }
.section-head a:hover, .section-head button:hover { color: var(--accent); }

.select {
  height: 36px;
  padding: 0 32px 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a88f78' stroke-width='2.4' stroke-linecap='round'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 11px center / 14px;
  color: var(--text);
  font: 700 13px var(--font-ui);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

/* hero */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 40px 40px 38px;
  min-height: 260px;
  color: #fff3e2;
  background: linear-gradient(160deg, #3b1a0b 0%, #7a3212 42%, #c2601f 78%, #e89a45 100%);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.hero-scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-scene .sun {
  position: absolute;
  right: 9%;
  top: 22%;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 40%, #ffe3a3, #f5b85b 55%, #e98e36);
  box-shadow: 0 0 80px 30px rgba(255, 190, 100, .35);
}
.hero-scene svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 55%; }
.hero-content { max-width: 560px; }
.hero .eyebrow { color: #ffd59a; }
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; margin: 10px 0 22px; text-wrap: balance; }
.hero h1 em { font-style: italic; color: #ffd59a; font-weight: 700; }
.hero p { margin: 0 0 24px; color: rgba(255, 240, 220, .82); font-weight: 600; }
.hero-stats { display: flex; gap: 22px; margin-bottom: 26px; flex-wrap: wrap; }
.hero-stats div b { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 800; line-height: 1; }
.hero-stats div span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 235, 210, .75); font-weight: 700; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 20px 18px;
}
.cards.scroller {
  grid-auto-flow: column;
  grid-template-columns: none;
  grid-auto-columns: 166px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  margin: 0 -32px;
  padding-left: 32px;
  padding-right: 32px;
  scroll-padding: 0 32px;
  scrollbar-width: none;
}
.cards.scroller::-webkit-scrollbar { display: none; }
.card {
  position: relative;
  display: block;
  padding: 10px 10px 14px;
  border-radius: var(--r);
  cursor: pointer;
  scroll-snap-align: start;
  transition: background .2s;
  min-width: 0;
}
.card:hover { background: var(--hover); }
button.card { text-align: left; width: 100%; }
.art > .ic { position: relative; z-index: 1; width: 38%; height: 38%; color: #fff1dc; stroke-width: 1.8; }
.card .art, .card .mosaic { width: 100%; box-shadow: var(--shadow-sm); }
.card .art-wrap { position: relative; }
.card .card-play {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .6);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s, transform .25s var(--ease);
}
.card:hover .card-play, .card.playing .card-play { opacity: 1; transform: none; }
.card-title { display: block; margin-top: 12px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sub { display: block; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.playing .card-title { color: var(--accent); }
.card.artist { text-align: center; }
.card.artist .art { border-radius: 50%; }

/* lista de músicas */
.tracks { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid;
  grid-template-columns: 36px 44px minmax(0, 1fr) 24px 38px 52px 38px;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 7px 10px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background .12s;
}
.row:hover, .row:focus-visible { background: var(--hover); }
.row .num { position: relative; display: grid; place-items: center; color: var(--faint); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.row .num .pl, .row .num .eq { display: none; }
.row:hover .num .n { display: none; }
.row:hover .num .pl { display: block; color: var(--text); width: 16px; height: 16px; }
.row .meta { display: flex; flex-direction: column; min-width: 0; }
.row .title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .artist { color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: fit-content; max-width: 100%; }
.row .artist:hover { color: var(--text); text-decoration: underline; }
.row .flags { color: var(--accent); display: grid; place-items: center; }
.row .flags .ic { width: 16px; height: 16px; }
.row .fav { opacity: 0; }
.row .fav.on, .row:hover .fav { opacity: 1; }
.row .dur { color: var(--faint); font-size: 13px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.row.playing .title { color: var(--accent); }
.row.playing .num .n { display: none; }
.row.playing .num .eq { display: flex; }
.row.playing:hover .num .eq { display: none; }
body:not(.is-playing) .row.playing .eq i { animation-play-state: paused; }
body.is-offline .row:not(.is-off) { opacity: .42; }

.eq { align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 3px; border-radius: 2px; background: var(--accent); animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(1) { height: 60%; animation-delay: -.3s; }
.eq i:nth-child(2) { height: 100%; animation-delay: -.6s; }
.eq i:nth-child(3) { height: 40%; animation-delay: -.1s; }
@keyframes eq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.eq i { transform-origin: bottom; }

.tracks-head {
  display: grid;
  grid-template-columns: 36px 44px minmax(0, 1fr) 24px 38px 52px 38px;
  gap: 12px;
  padding: 0 10px 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.tracks-head span:first-child { text-align: center; }
.tracks-head .r { grid-column: 6; text-align: right; }

/* página de coleção (artista / playlist / favoritas) */
.collection-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 28px;
  margin: 4px -32px 26px;
  padding: 34px 32px 28px;
  overflow: hidden;
  isolation: isolate;
}
.collection-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--head-bg, linear-gradient(160deg, var(--surface-3), transparent));
  filter: blur(40px) saturate(1.3);
  transform: scale(1.3);
  opacity: .75;
}
.collection-head::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, transparent 30%, var(--bg));
}
.collection-head .art, .collection-head .mosaic { width: 200px; box-shadow: var(--shadow); }
.collection-head .art.round { border-radius: 50%; }
.collection-head h1 { font-size: clamp(34px, 5.4vw, 68px); font-weight: 800; margin: 6px 0 10px; text-wrap: balance; }
.collection-head .sub { color: var(--muted); font-weight: 700; }
.collection-actions { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; flex-wrap: wrap; }
.collection-actions .play-btn { width: 56px; height: 56px; background: var(--accent); color: var(--accent-ink); box-shadow: 0 12px 26px -12px var(--accent); }
.collection-actions .play-btn .ic { width: 24px; height: 24px; }

/* estado vazio */
.empty {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  padding: 56px 20px;
  color: var(--muted);
}
.empty .empty-ill {
  width: 108px;
  height: 108px;
  border-radius: 30px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--accent);
  margin-bottom: 8px;
}
.empty .empty-ill .ic { width: 46px; height: 46px; stroke-width: 1.6; }
.empty h3 { font-size: 23px; color: var(--text); }
.empty p { max-width: 440px; margin: 0 0 8px; font-weight: 600; }
.empty code { background: var(--surface-2); padding: 2px 8px; border-radius: 6px; font-size: 13px; color: var(--text); }

.scan-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--r);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 18px;
}
.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  animation: spin .8s linear infinite;
  flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* artistas: letra */
.letter-group { margin-bottom: 26px; }
.letter {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 10px 10px;
}

/* ajustes */
.settings { display: grid; gap: 18px; max-width: 760px; }
.set-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 24px;
}
.set-card h3 { font-size: 20px; margin-bottom: 4px; }
.set-card > p { color: var(--muted); margin: 0 0 16px; font-weight: 600; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.set-row:first-of-type { border-top: 0; }
.set-row .lbl b { display: block; }
.set-row .lbl small { color: var(--muted); font-weight: 600; font-size: 13px; }
.segmented { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); gap: 2px; }
.segmented button { height: 32px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--muted); }
.segmented button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.meter { height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; width: 100%; margin-top: 8px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--accent)); border-radius: 8px; }
.steps { margin: 0; padding-left: 20px; color: var(--muted); font-weight: 600; }
.steps li { margin: 4px 0; }
.steps b { color: var(--text); }
.kbd-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-weight: 600; color: var(--muted); }
.kbd-list kbd { font: 800 12px var(--font-ui); padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text); justify-self: start; }

/* ---------------------------------------------------- player (barra) */

.player {
  grid-area: player;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  height: var(--player-h);
  padding: 0 20px;
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border-top: 1px solid var(--line);
  z-index: 20;
}
.pb-progress { display: none; }
.pb-left { display: flex; align-items: center; gap: 14px; min-width: 0; cursor: pointer; }
.pb-left .art { width: 58px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.pb-meta { display: flex; flex-direction: column; min-width: 0; }
.pb-title { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-artist { color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player[data-empty="true"] .pb-left .fav { visibility: hidden; }
.pb-center { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.controls { display: flex; align-items: center; gap: 10px; }
.seek-row { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 620px; }
.time { font-size: 12px; color: var(--faint); font-weight: 700; font-variant-numeric: tabular-nums; min-width: 36px; text-align: center; }
.pb-right { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.volume { display: flex; align-items: center; gap: 4px; width: 150px; }
.pb-mobile { display: none; }

.placeholder-art {
  width: 58px;
  aspect-ratio: 1;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--faint);
  flex: none;
}
.placeholder-art .ic { width: 24px; height: 24px; }

.tabbar { display: none; }

/* ---------------------------------------------------- tocando agora */

.np {
  position: fixed;
  inset: 0;
  z-index: 50;
  color: #fbf0e0;
  background: #140d08;
  transform: translateY(100%);
  visibility: hidden;
  transition: transform .45s var(--ease), visibility 0s linear .45s;
  overflow: hidden;
}
.np.open { transform: none; visibility: visible; transition: transform .45s var(--ease), visibility 0s; }
.np.dragging { transition: none; }
.np-bg {
  position: absolute;
  inset: -80px;
  background: var(--np-bg, linear-gradient(160deg, #5a2a10, #1a0f08));
  background-size: cover;
  background-position: center;
  filter: blur(60px) saturate(1.5) brightness(.55);
  transform: scale(1.1);
}
.np::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 500px at 50% 110%, rgba(0, 0, 0, .55), transparent 60%),
    linear-gradient(to bottom, rgba(10, 6, 3, .25), rgba(10, 6, 3, .55));
  z-index: 1;
}
.np-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: calc(14px + var(--safe-t)) 28px calc(20px + var(--safe-b));
}
.np-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.np-head .icon-btn { color: rgba(255, 240, 220, .85); }
.np-head .icon-btn:hover { background: rgba(255, 240, 220, .1); color: #fff; }
.np-from { text-align: center; min-width: 0; }
.np-from small { display: block; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 235, 210, .6); font-weight: 800; }
.np-from b { display: block; font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.np-body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  align-items: center;
  gap: 56px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  min-height: 0;
}
.np.queue-open .np-body { grid-template-columns: minmax(0, 1fr) minmax(300px, 400px) minmax(280px, 340px); gap: 40px; max-width: 1400px; }

.np-stage { position: relative; display: grid; place-items: center; min-height: 0; }
.np-cover {
  position: relative;
  z-index: 2;
  width: min(420px, 100%, 52vh);
  transition: transform .5s var(--ease);
}
.np-cover .art { width: 100%; border-radius: 18px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .85); }
.np-cover .art span { font-size: 96px; }
.np-disc {
  position: absolute;
  z-index: 1;
  width: min(390px, 92%, 48vh);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 17%, rgba(255, 255, 255, .05) 17.5% 18%, transparent 18.5%),
    repeating-radial-gradient(circle, #151010 0 2px, #1e1716 2.5px 3.5px),
    #111;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), inset 0 0 0 2px rgba(255, 255, 255, .04);
  display: grid;
  place-items: center;
  transform: translateX(0);
  transition: transform .8s var(--ease);
}
.np-disc::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 30deg, transparent 0 10%, rgba(255, 255, 255, .09) 14%, transparent 20% 60%, rgba(255, 255, 255, .06) 64%, transparent 70%);
}
.np-label {
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--label, #c2601f);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .2);
  animation: spin 3.5s linear infinite;
  animation-play-state: paused;
  overflow: hidden;
}
.np-label::after { content: ""; width: 12%; aspect-ratio: 1; border-radius: 50%; background: #0c0806; position: absolute; }
.np-label .art { width: 100%; border-radius: 50%; }
.np-label .art span { font-size: 22px; }
body.is-playing .np-label { animation-play-state: running; }
body.is-playing .np-disc { transform: translateX(34%); }
body.is-playing .np-cover { transform: translateX(-12%); }
.np.queue-open .np-disc { display: none; }
body.is-playing .np.queue-open .np-cover { transform: none; }

.np-panel { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.np-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.np-meta > div { min-width: 0; }
.np-meta h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; text-wrap: balance; overflow-wrap: anywhere; }
.np-artist { display: inline-block; margin-top: 8px; color: rgba(255, 235, 210, .75); font-weight: 700; font-size: 17px; }
.np-artist:hover { color: #fff; text-decoration: underline; }
.np .fav { color: rgba(255, 240, 220, .8); }
.np .fav.on { color: #ffb660; }
.np-seek .range { --track-bg: rgba(255, 240, 220, .2); --track-fill: #fbf0e0; --thumb: #fff; }
.np-seek .range::-webkit-slider-thumb { transform: scale(1); }
.np-times { display: flex; justify-content: space-between; margin-top: 4px; font-size: 12px; font-weight: 700; color: rgba(255, 235, 210, .65); font-variant-numeric: tabular-nums; }
.np-controls { display: flex; align-items: center; justify-content: space-between; }
.np-controls .icon-btn { color: rgba(255, 240, 220, .8); }
.np-controls .icon-btn.lg { color: #fbf0e0; }
.np-controls .icon-btn:hover { background: rgba(255, 240, 220, .1); color: #fff; }
.np-controls .toggle-opt.on { color: #ffb660; }
.np-controls .play-btn.xl { background: #fbf0e0; color: #1d120a; box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .8); }
.np-foot { display: flex; justify-content: center; gap: 10px; }

.np-queue {
  display: none;
  flex-direction: column;
  min-height: 0;
  max-height: 72vh;
  background: rgba(20, 12, 7, .45);
  border: 1px solid rgba(255, 235, 210, .08);
  border-radius: var(--r-lg);
  padding: 18px 10px 10px;
  backdrop-filter: blur(10px);
}
.np.queue-open .np-queue { display: flex; }
.np-queue header { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 10px; }
.np-queue h3 { font-size: 20px; }
.np-queue .link-btn { color: #ffb660; }
.np-queue header span { display: flex; align-items: center; gap: 6px; }
.np-queue .icon-btn { color: rgba(255, 235, 210, .7); }
.np-queue .icon-btn:hover { background: rgba(255, 240, 220, .1); color: #fff; }
.q-list { overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 235, 210, .2) transparent; }
.q-label { padding: 10px 10px 6px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: rgba(255, 235, 210, .5); }
.qrow {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 32px;
  gap: 12px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 10px;
  cursor: pointer;
}
.qrow:hover { background: rgba(255, 240, 220, .08); }
.qrow .art { width: 40px; border-radius: 7px; }
.qrow b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qrow small { display: block; font-size: 12.5px; color: rgba(255, 235, 210, .6); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qrow.current b { color: #ffb660; }
.qrow .icon-btn { width: 30px; height: 30px; color: rgba(255, 235, 210, .5); opacity: 0; }
.qrow:hover .icon-btn { opacity: 1; }
.qrow .icon-btn .ic { width: 16px; height: 16px; }
.q-empty { padding: 20px 10px; color: rgba(255, 235, 210, .55); font-weight: 600; font-size: 14px; }

/* ---------------------------------------------------- menu, diálogo, toasts */

.menu-backdrop { position: fixed; inset: 0; z-index: 60; }
.menu {
  position: fixed;
  z-index: 61;
  min-width: 240px;
  max-width: min(320px, calc(100vw - 24px));
  max-height: min(480px, calc(100dvh - 24px));
  overflow-y: auto;
  padding: 6px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: pop .16s var(--ease);
  color: var(--text);
}
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
.menu-head { display: flex; align-items: center; gap: 12px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; min-width: 0; }
.menu-head .art { width: 42px; border-radius: 8px; }
.menu-head div { min-width: 0; }
.menu-head b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-head small { display: block; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-head.plain { font-weight: 800; }
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border-radius: 9px;
  font-weight: 600;
  text-align: left;
}
.menu-item:hover, .menu-item:focus-visible { background: var(--hover); }
.menu-item .ic { width: 18px; height: 18px; color: var(--muted); }
.menu-item span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-item .chev { width: 16px; height: 16px; }
.menu-item.danger, .menu-item.danger .ic { color: var(--danger); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 6px; }

.dialog {
  border: 0;
  padding: 0;
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  width: min(420px, calc(100vw - 32px));
}
.dialog::backdrop { background: rgba(10, 6, 3, .55); backdrop-filter: blur(4px); }
.dlg { padding: 24px; display: grid; gap: 16px; }
.dlg h3 { font-size: 22px; }
.dlg p { margin: 0; color: var(--muted); font-weight: 600; }
.dlg input {
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  font-weight: 600;
  outline: 0;
}
.dlg input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.dlg-actions { display: flex; justify-content: flex-end; gap: 10px; }

.toasts {
  position: fixed;
  left: 50%;
  bottom: calc(var(--player-h) + 18px);
  transform: translateX(-50%);
  z-index: 80;
  display: grid;
  gap: 8px;
  justify-items: center;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 32px);
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow);
  animation: toast-in .3s var(--ease);
  pointer-events: auto;
}
.toast .ic { width: 18px; height: 18px; }
.toast.out { animation: toast-out .25s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ---------------------------------------------------- login */

.login {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(175deg, #2a130a 0%, #6d2c10 45%, #c4631f 80%, #efa653 100%);
  overflow: hidden;
}
.login-scene { position: absolute; inset: 0; pointer-events: none; }
.login-scene .sun {
  position: absolute;
  left: 50%;
  bottom: 12%;
  width: 520px;
  height: 520px;
  margin-left: -260px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #ffe7ad, #f7b95a 55%, #ea8b33);
  box-shadow: 0 0 140px 60px rgba(255, 180, 90, .35);
}
.login-scene .hill { position: absolute; left: -10%; right: -10%; border-radius: 50% 50% 0 0; }
.login-scene .h1 { bottom: -4%; height: 34%; background: #5a240d; border-radius: 60% 40% 0 0; }
.login-scene .h2 { bottom: -10%; height: 30%; background: #3a170a; left: 20%; border-radius: 50% 60% 0 0; }
.login-scene .h3 { bottom: -16%; height: 26%; background: #230d05; }
.login-card {
  position: relative;
  width: min(400px, 100%);
  padding: 34px 30px 30px;
  border-radius: 28px;
  background: rgba(24, 13, 7, .62);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(255, 230, 200, .12);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7);
  color: #fbeedd;
  text-align: center;
  display: grid;
  gap: 14px;
}
.login-logo { margin: 0 auto 4px; border-radius: 18px; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .6); }
.login-card h1 { font-size: 36px; font-weight: 800; }
.login-sub { margin: -6px 0 8px; color: rgba(255, 230, 200, .7); font-weight: 600; }
.field {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  background: rgba(255, 240, 220, .08);
  border: 1.5px solid rgba(255, 230, 200, .14);
  color: rgba(255, 230, 200, .6);
  transition: border-color .2s;
}
.field:focus-within { border-color: #f2a452; }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: #fff; font-weight: 600; font-size: 16px; }
.field input::placeholder { color: rgba(255, 230, 200, .45); }
.login-err { min-height: 20px; margin: -4px 0 0; color: #ffb4a0; font-weight: 700; font-size: 14px; }
.login .btn.primary { background: #f2a452; color: #2a1308; box-shadow: 0 14px 30px -12px #f2a452; }
.login .btn.primary:hover { background: #ffb96a; }
.login.shake .login-card { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* ---------------------------------------------------- responsivo */

@media (max-width: 1180px) {
  .np.queue-open .np-body { grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); }
  .np.queue-open .np-stage { display: none; }
}

@media (max-width: 980px) {
  .player { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; }
  .volume { display: none; }
}

@media (max-width: 860px) {
  :root { --player-h: var(--mini-h); }
  body { font-size: 15px; }
  .app {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto auto;
    grid-template-areas: "main" "player" "tabs";
  }
  .sidebar { display: none; }
  .topbar { padding: calc(10px + var(--safe-t)) 16px 6px; gap: 8px; flex-wrap: wrap; }
  .top-brand { display: inline-flex; }
  .top-settings { display: inline-grid; margin-left: auto; }
  .offline-pill { margin-left: auto; }
  body.is-offline .top-settings { margin-left: 0; }
  .topbar.has-back .back { display: inline-grid; margin-left: -8px; }
  .topbar.has-back .top-brand { display: none; }
  .search { order: 5; width: 100%; height: 44px; }
  .search kbd { display: none; }
  .view { padding: 14px 16px 28px; }

  .player {
    grid-template-columns: minmax(0, 1fr) auto;
    height: var(--mini-h);
    margin: 0 8px 6px;
    padding: 0 8px 0 8px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-2) 88%, transparent);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
  }
  .player[data-empty="true"] { display: none; }
  .pb-center, .pb-right { display: none; }
  .pb-mobile { display: flex; align-items: center; gap: 2px; }
  .pb-mobile .icon-btn { color: var(--text); }
  .pb-left { gap: 12px; }
  .pb-left .art, .placeholder-art { width: 46px; border-radius: 9px; }
  .pb-left .fav { display: none; }
  .pb-progress {
    display: block;
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 2.5px;
    border-radius: 2px;
    background: var(--line);
    overflow: hidden;
  }
  .pb-progress i { display: block; height: 100%; width: 0; background: var(--accent); }

  .tabbar {
    grid-area: tabs;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: calc(var(--tab-h) + var(--safe-b));
    padding-bottom: var(--safe-b);
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-top: 1px solid var(--line);
  }
  .tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--faint);
    font-size: 11px;
    font-weight: 800;
  }
  .tabbar a .ic { width: 22px; height: 22px; }
  .tabbar a.active { color: var(--accent); }

  .toasts { bottom: calc(var(--tab-h) + var(--mini-h) + 20px + var(--safe-b)); }

  .hero { padding: 28px 22px 26px; border-radius: 22px; min-height: 0; }
  .hero-scene .sun { width: 110px; height: 110px; right: -34px; top: -30px; box-shadow: 0 0 60px 20px rgba(255, 190, 100, .3); }
  .hero-stats { gap: 18px; }
  .hero-stats div b { font-size: 22px; }
  .section { margin-top: 30px; }
  .section-head h2 { font-size: 21px; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px 10px; }
  .cards.scroller { grid-auto-columns: 142px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-padding: 0 16px; }
  .card { padding: 6px 6px 10px; }
  .card .card-play { opacity: 1; transform: none; width: 38px; height: 38px; }
  .card .card-play .ic { width: 17px; height: 17px; }

  .row, .tracks-head { grid-template-columns: 48px minmax(0, 1fr) auto 36px; gap: 12px; }
  .row { padding: 6px 4px; min-height: 62px; }
  .row .num, .row .fav, .row .dur, .tracks-head { display: none; }
  .row .art.sm { width: 48px; }
  .row .flags:empty { display: none; }

  .collection-head { flex-direction: column; align-items: flex-start; gap: 16px; margin: 0 -16px 18px; padding: 18px 16px 18px; }
  .collection-head .art, .collection-head .mosaic { width: 150px; }
  .page-head { margin-top: 4px; }

  /* tela cheia no celular */
  .np-inner { padding: calc(8px + var(--safe-t)) 22px calc(16px + var(--safe-b)); }
  .np-body, .np.queue-open .np-body {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: end;
  }
  .np-stage { align-self: center; }
  .np-cover { width: min(86vw, 46vh); }
  .np-cover .art span { font-size: 72px; }
  .np-disc { display: none; }
  body.is-playing .np-cover { transform: none; }
  .np-meta h2 { font-size: 26px; }
  .np-artist { font-size: 16px; margin-top: 6px; }
  .np-panel { gap: 16px; }
  .np.queue-open .np-stage { display: none; }
  .np.queue-open .np-panel { display: none; }
  .np.queue-open .np-body { grid-template-rows: minmax(0, 1fr); align-items: stretch; }
  .np-queue { max-height: none; }
  .np-queue header .close-q { display: inline-grid; }
  .qrow .icon-btn { opacity: 1; }
}

@media (min-width: 861px) {
  .np-queue header .close-q { display: none; }
}

@media (hover: none) {
  .row .fav { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
