/* ==========================================================================
   SionFy — estilos
   Interfaz sobria al estilo ChatGPT: paleta neutra, superficies planas, bordes
   finos, un solo acento (verde) para el estado "reproduciendo".
   Sigue el tema del sistema; el botón "Apariencia" lo cambia.
   ========================================================================== */

:root {
  --accent: #fa2d48;
  --bg: #ffffff;
  --side: #f9f9f9;
  --surface: #f4f4f4;
  --surface-2: #ececec;
  --text: #0d0d0d;
  --text-2: #5d5d5d;
  --text-3: #8f8f8f;
  --line: rgba(0, 0, 0, .1);
  --track: rgba(0, 0, 0, .12);
  --btn: #0d0d0d;
  --btn-text: #ffffff;
  --glass: rgba(255, 255, 255, .78);
  --shadow: 0 6px 24px rgba(0, 0, 0, .12);

  --side-w: 260px;
  --player-h: 76px;
  --tab-h: 56px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #212121;
  --side: #171717;
  --surface: #2a2a2a;
  --surface-2: #343434;
  --text: #ececec;
  --text-2: #b4b4b4;
  --text-3: #8a8a8a;
  --line: rgba(255, 255, 255, .1);
  --track: rgba(255, 255, 255, .18);
  --btn: #ececec;
  --btn-text: #121212;
  --glass: rgba(38, 38, 40, .74);
  --shadow: 0 6px 24px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow: hidden; }
::selection { background: rgba(250, 45, 72, .28); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
ol, ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 8px; }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.spacer { flex: 1; }
.aurora { display: none; }

/* ---------- Estructura ---------- */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 100dvh; }
.main { grid-column: 2; overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; outline: none; padding-bottom: calc(var(--player-h) + 40px); scrollbar-width: thin; scrollbar-color: var(--track) transparent; transition: opacity .15s; }
.page { padding: 32px 40px 24px; max-width: 1280px; margin: 0 auto; animation: fade .3s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.sidebar { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 16px; padding: 14px 12px; background: var(--side); overflow-y: auto; }
.topbar, .tabbar { display: none; }

.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px; }
.brand-mark { width: 30px; height: 30px; border-radius: 50%; background: var(--text); display: grid; place-items: center; }
.brand-mark svg { width: 18px; height: 18px; }
.brand-mark svg path { fill: var(--bg); }
.brand-name { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.brand-name i { font-style: normal; }

.search { position: relative; display: flex; align-items: center; gap: 10px; background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; height: 40px; color: var(--text-2); transition: border-color .15s, background .15s; }
.search:focus-within { border-color: var(--text-3); background: var(--bg); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--text); font: inherit; }
.search input::placeholder { color: var(--text-3); }
.search input::-webkit-search-cancel-button { display: none; }
.search-page { height: 52px; font-size: 16px; max-width: 640px; margin: 8px 0 28px; border-radius: 26px; background: var(--surface); border-color: transparent; }
.search-page:focus-within { background: var(--surface); }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; z-index: 40; max-height: 72vh; overflow-y: auto; min-width: 320px; color: var(--text); }
.sg-title { font-size: 12px; color: var(--text-3); font-weight: 500; padding: 10px 10px 4px; }
.sg-item { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 10px; width: 100%; text-align: left; }
.sg-item:hover { background: var(--surface); }
.sg-item .cover { width: 38px; height: 38px; border-radius: 6px; }
.sg-item .cover.round { border-radius: 50%; }
.sg-item span { min-width: 0; display: flex; flex-direction: column; }
.sg-item strong { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-item em { font-style: normal; color: var(--text-2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-all { display: block; text-align: center; color: var(--text-2); font-weight: 500; padding: 10px; font-size: 13.5px; }
.sg-all:hover { color: var(--text); }

.side-label { font-size: 12px; font-weight: 500; color: var(--text-3); padding: 0 10px; margin-bottom: -8px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 0 10px; height: 38px; border-radius: 10px; font-size: 14.5px; color: var(--text); transition: background .12s; }
.side-nav a .ico { width: 18px; height: 18px; color: var(--text-2); }
.side-nav a:hover { background: var(--surface); }
.side-nav a.active { background: var(--surface-2); }
.side-foot { margin-top: auto; }
.theme-btn { display: flex; align-items: center; gap: 12px; padding: 0 10px; height: 38px; border-radius: 10px; color: var(--text-2); width: 100%; font-size: 14px; }
.theme-btn:hover { background: var(--surface); color: var(--text); }
.t-moon { display: none; }
:root[data-theme="dark"] .t-sun { display: none; }
:root[data-theme="dark"] .t-moon { display: block; }

/* ---------- Carátulas ---------- */
.cover { position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: hsl(var(--h) 18% 34%); box-shadow: 0 0 0 1px var(--line) inset; }
.cover b { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .8); font-weight: 600; font-size: clamp(16px, 40%, 64px); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover.round { border-radius: 50%; }

/* ---------- Tipografía de página ---------- */
.page-title { font-size: clamp(28px, 3.4vw, 36px); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 6px; }
.page-title .grad { color: var(--text-3); }
.page-lead { color: var(--text-2); margin-bottom: 24px; max-width: 620px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 500; color: var(--text-3); }
.shelf { margin-top: 44px; }
.shelf-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.shelf-head h2 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; min-width: 0; }
.shelf-head > a { margin-left: auto; white-space: nowrap; display: inline-flex; align-items: center; color: var(--text-2); font-size: 13.5px; font-weight: 500; }
.shelf-head > a:hover { color: var(--text); }
.shelf-head > a .ico { width: 14px; height: 14px; }
.empty { color: var(--text-2); padding: 40px 0; }

/* ---------- Rejillas y filas ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 24px 18px; }
.row { display: grid; grid-auto-flow: column; grid-auto-columns: 172px; gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px; margin: -4px; scrollbar-width: none; }
.row::-webkit-scrollbar { display: none; }
.row > * { scroll-snap-align: start; }
.arrows { display: flex; gap: 6px; padding-left: 12px; }
.arrows button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--text-2); }
.arrows button:first-child .ico { transform: scaleX(-1); }
.arrows button:hover { background: var(--surface); color: var(--text); }
.arrows .ico { width: 14px; height: 14px; }

.card { min-width: 0; }
.card-art { position: relative; margin-bottom: 10px; }
.card-art .cover { transition: opacity .15s; }
.card:hover .card-art .cover { opacity: .88; }
.card-play { position: absolute; right: 8px; bottom: 8px; width: 40px; height: 40px; border-radius: 50%; background: var(--btn); color: var(--btn-text); display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; transform: translateY(4px); transition: all .18s; }
.card-artist .card-play { right: 50%; margin-right: -20px; }
.card-play .ico { width: 16px; height: 16px; margin-left: 2px; }
.card:hover .card-play, .card-play:focus-visible { opacity: 1; transform: none; }
.card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 500; font-size: 14.5px; line-height: 1.35; }
.card-title:hover { text-decoration: underline; }
.card-sub { display: block; margin-top: 1px; color: var(--text-2); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sub a:hover { color: var(--text); text-decoration: underline; }
.card-artist { text-align: center; }
.card-artist .card-title { display: block; white-space: nowrap; text-overflow: ellipsis; }

/* ---------- Destacados (inicio) ---------- */
.hero { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(min(560px, 90%), 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 20px -4px 0; padding: 4px; scrollbar-width: none; }
.hero::-webkit-scrollbar { display: none; }
.hero-card { position: relative; display: flex; align-items: center; gap: 28px; padding: 24px; border-radius: 18px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); }
.hero-bg, .hero-shade { display: none; }
.hero-art { width: 176px; flex: none; }
.hero-art .cover { border-radius: 10px; box-shadow: var(--shadow); }
.hero-copy { min-width: 0; }
.hero-copy .eyebrow { color: var(--text-3); }
.hero-copy h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; margin: 6px 0 6px; text-wrap: balance; }
.hero-copy p { color: var(--text-2); font-size: 14.5px; }
.hero-copy p a:hover, .hero-copy h2 a:hover { text-decoration: underline; }
.hero-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.dots button { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); opacity: .45; transition: all .2s; padding: 0; }
.dots button.on { background: var(--text); opacity: 1; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: 999px; font-weight: 500; font-size: 14.5px; transition: background .15s, opacity .15s; }
.btn .ico { width: 16px; height: 16px; }
.btn-primary { background: var(--btn); color: var(--btn-text); }
.btn-primary:hover { opacity: .85; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--surface); }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; }
.icon-btn:hover { background: var(--surface); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }

/* ---------- Géneros ---------- */
.genre-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.genre-grid.big { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.genre-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 16 / 10; padding: 14px 16px; border-radius: 14px; overflow: hidden; color: #fff; isolation: isolate; background: hsl(var(--h) 20% 30%); }
.genre-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.genre-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 30%, rgba(0, 0, 0, .85)); }
.genre-card:hover img { transform: scale(1.05); }
.genre-name { font-size: 17px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.genre-count { font-size: 12.5px; opacity: .8; }

/* ---------- Cabeceras de detalle ---------- */
.banner, .artist-hero { position: relative; }
.banner { display: flex; align-items: flex-end; padding: 8px 0 0; }
.banner-bg, .banner-shade { display: none; }
.banner h1, .artist-copy h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; }
.banner p { color: var(--text-2); margin-top: 6px; }
.artist-hero { padding: 8px 0 0; }
.artist-copy { display: flex; align-items: flex-end; gap: 28px; min-width: 0; }
.artist-photo { width: 188px; flex: none; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag { padding: 5px 13px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.tag:hover { background: var(--surface); color: var(--text); }

.detail { display: flex; align-items: flex-end; gap: 32px; padding: 6px 0; }
.detail-art { width: 224px; flex: none; }
.detail-art .cover { border-radius: 10px; box-shadow: var(--shadow); }
.detail-copy { min-width: 0; }
.detail-copy h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 600; letter-spacing: -.04em; line-height: 1.08; margin: 4px 0 8px; text-wrap: balance; }
.detail-artist { font-size: 17px; font-weight: 500; color: var(--text); }
.detail-artist:hover { text-decoration: underline; }
.detail-meta { color: var(--text-2); font-size: 14px; margin-top: 6px; }
.detail-meta a:hover { color: var(--text); text-decoration: underline; }
.detail-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.detail-actions.standalone { margin: 24px 0 0; }
.h1-sub { color: var(--text-3); font-weight: 500; }

/* ---------- Listas de canciones ---------- */
.tracks { margin-top: 16px; }
.track-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 2px 20px; }
.track { display: grid; grid-template-columns: 52px minmax(0, 1fr) 32px 32px auto; align-items: center; gap: 12px; padding: 6px 12px 6px 6px; border-radius: 10px; position: relative; transition: background .12s; }
.tracks .track:has(.tr-album) { grid-template-columns: 52px minmax(0, 2fr) minmax(0, 1.2fr) 32px 32px 52px; }
.track:hover { background: var(--surface); }
.track.off { opacity: .45; }
.tr-lead { position: relative; width: 44px; height: 44px; display: grid; place-items: center; }
.tr-lead .cover { width: 44px; height: 44px; border-radius: 6px; }
.tr-num { color: var(--text-3); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.tr-play { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 6px; color: #fff; opacity: 0; transition: opacity .12s; background: rgba(0, 0, 0, .5); }
.tr-lead:not(:has(.cover)) .tr-play { background: none; color: var(--text); }
.track:hover .tr-play, .tr-play:focus-visible { opacity: 1; }
.tr-play:disabled { display: none; }
.track:hover .tr-num { opacity: 0; }
.tr-play .ico { width: 16px; height: 16px; }
.eq { position: absolute; inset: 0; display: none; align-items: flex-end; justify-content: center; gap: 2px; padding: 13px 0 14px; border-radius: 6px; }
.eq b { width: 3px; background: var(--accent); border-radius: 2px; height: 30%; animation: eq .9s ease-in-out infinite; }
.eq b:nth-child(2) { animation-delay: -.3s; } .eq b:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.track.is-current .eq { display: flex; }
.tr-lead:has(.cover) .eq { background: rgba(0, 0, 0, .55); }
.tr-lead:has(.cover) .eq b { background: #fff; }
.track.is-current .tr-num { opacity: 0; }
.track.is-current:not(.is-playing) .eq b { animation-play-state: paused; }
.track.is-current .tr-title { color: var(--accent); }
.track.is-current:hover .eq { display: none; }

.tr-main { min-width: 0; display: flex; flex-direction: column; }
.tr-title { font-weight: 500; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-title:hover { text-decoration: underline; }
.tr-sub { color: var(--text-2); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-sub:hover, .tr-album:hover { color: var(--text); text-decoration: underline; }
.tr-album { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.tr-lyr, .tr-fav { width: 32px; height: 32px; display: grid; place-items: center; color: var(--text-3); border-radius: 8px; opacity: 0; transition: opacity .12s; }
.tr-fav .ico { width: 17px; height: 17px; }
.track:hover .tr-lyr, .track:hover .tr-fav, .track.is-fav .tr-fav { opacity: 1; }
button.tr-lyr:hover, .tr-fav:hover { color: var(--text); background: var(--surface-2); }
.tr-dur { color: var(--text-2); font-size: 13.5px; font-variant-numeric: tabular-nums; text-align: right; min-width: 40px; }
.f-on { display: none; }
.fav-btn { color: var(--text-2); }
.track.is-fav .tr-fav, .fav-btn.on { color: var(--accent); }
.track.is-fav .f-off, .fav-btn.on .f-off { display: none; }
.track.is-fav .f-on, .fav-btn.on .f-on { display: block; }
.fav-btn:hover { color: var(--text); }
@media (hover: none) { .tr-fav { opacity: 1; } }
.track-grid .track { grid-template-columns: 52px minmax(0, 1fr) 32px 32px auto; }
.track-grid .tr-album { display: none; }

/* ---------- Chips y paginación ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { min-width: 38px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); font-weight: 500; font-size: 13.5px; text-align: center; transition: background .12s; cursor: pointer; font-family: inherit; color: var(--text); }
.chip:hover { background: var(--surface); }
.chip.on { background: var(--btn); color: var(--btn-text); border-color: var(--btn); }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 40px 0 6px; }
.pg { min-width: 38px; height: 38px; padding: 0 14px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); font-weight: 500; font-size: 14px; }
a.pg:hover { background: var(--surface); }
.pg.on { background: var(--btn); color: var(--btn-text); border-color: var(--btn); }
.pg.gap { border: 0; }

.state { text-align: center; padding-top: 14vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.state h1 { font-size: 28px; font-weight: 600; letter-spacing: -.03em; }
.state p { color: var(--text-2); max-width: 420px; margin-bottom: 8px; }
.state-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--surface-2); color: var(--text); display: grid; place-items: center; }
.state-ico .ico { width: 28px; height: 28px; }
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 9vh 0 4vh; }
.empty-state[hidden], [data-lib][hidden], .recent-shelf[hidden] { display: none; }
.empty-state h2 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.empty-state p { color: var(--text-2); max-width: 360px; margin-bottom: 8px; }
.recent-shelf { margin-top: 12px; }

/* ---------- Reproductor ---------- */
.player {
  position: fixed; z-index: 30; left: var(--side-w); right: 0; bottom: 0; height: var(--player-h);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 1.5fr) minmax(0, 1fr); align-items: center; gap: 20px; padding: 0 24px;
  background: var(--bg); border-top: 1px solid var(--line);
}
.player[hidden] { display: none; }
.pl-track { display: flex; align-items: center; gap: 12px; min-width: 0; cursor: pointer; }
.pl-cover { width: 48px; height: 48px; flex: none; }
.pl-cover .cover { border-radius: 6px; }
.pl-meta { min-width: 0; display: flex; flex-direction: column; }
.pl-meta strong { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-meta span { color: var(--text-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-center { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.pl-controls { display: flex; align-items: center; gap: 6px; }
.ctl { position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); transition: color .12s, background .12s; }
.ctl:hover { color: var(--text); }
.ctl .ico { width: 19px; height: 19px; }
.ctl.on { color: var(--accent); }
.ctl .one { display: none; position: absolute; font-size: 9px; font-style: normal; font-weight: 700; right: 7px; top: 6px; background: var(--accent); color: #fff; width: 12px; height: 12px; border-radius: 50%; line-height: 12px; text-align: center; }
.ctl.once .one { display: block; }
.main-ctl { width: 40px; height: 40px; background: var(--btn); color: var(--btn-text); }
.main-ctl:hover { color: var(--btn-text); opacity: .85; }
.main-ctl .ico { width: 18px; height: 18px; }
.main-ctl.big { width: 64px; height: 64px; }
.main-ctl.big .ico { width: 26px; height: 26px; }
.i-pause { display: none; }
.is-playing-state .i-play { display: none; }
.is-playing-state .i-pause { display: block; }

.pl-progress { display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px; align-items: center; gap: 10px; width: 100%; max-width: 560px; font-size: 11.5px; color: var(--text-2); font-variant-numeric: tabular-nums; margin-top: -4px; }
.pl-progress time:first-child { text-align: right; }
.pl-right { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.pl-vol { display: flex; align-items: center; gap: 8px; color: var(--text-2); width: 110px; margin-left: 8px; }
.pl-vol .ico { width: 17px; height: 17px; }
.pl-mini-bar { display: none; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; background: none; cursor: pointer; margin: 0; --p: 0%; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--text) var(--p), var(--track) var(--p)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--track); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--text); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--text); margin-top: -4px; opacity: 0; transition: opacity .12s; }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--text); opacity: 0; }
input[type="range"]:hover::-webkit-slider-thumb, input[type="range"]:focus-visible::-webkit-slider-thumb { opacity: 1; }
input[type="range"]:hover::-moz-range-thumb { opacity: 1; }

#yt-holder { position: fixed; width: 2px; height: 2px; right: 0; bottom: 0; overflow: hidden; opacity: .01; pointer-events: none; z-index: -1; }

/* ---------- Ahora suena ---------- */
.now { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: var(--bg); color: var(--text); transform: translateY(100%); visibility: hidden; transition: transform .4s cubic-bezier(.2, .8, .2, 1), visibility 0s .4s; overflow: hidden; }
.now.open { transform: none; visibility: visible; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.now-bg { display: none; }
.now-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.now-head .icon-btn { width: 40px; height: 40px; }
.now-head .spacer { width: 40px; flex: none; }
.now-tabs { margin: 0 auto; display: flex; padding: 3px; border-radius: 999px; background: var(--surface); }
.now-tabs button { padding: 7px 20px; border-radius: 999px; font-weight: 500; font-size: 14px; color: var(--text-2); }
.now-tabs button.on { background: var(--bg); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.now-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(300px, 440px) minmax(0, 1fr); gap: 64px; padding: 24px 56px 40px; max-width: 1200px; width: 100%; margin: 0 auto; align-items: center; }
.now-art { display: flex; flex-direction: column; gap: 22px; }
.now-cover { display: block; width: min(100%, 50vh); margin: 0 auto; }
.now-cover .cover { border-radius: 12px; box-shadow: var(--shadow); }
.now-info { text-align: center; }
.now-info h2 { font-size: 24px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.now-info a { color: var(--text-2); font-size: 16px; }
.now-info a:hover { color: var(--text); text-decoration: underline; }
.now-info p { color: var(--text-3); font-size: 13.5px; margin-top: 2px; }
.now-progress input { height: 22px; }
.now-progress div { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; margin-top: -2px; }
.now-controls { display: flex; align-items: center; justify-content: center; gap: 12px; }
.now-controls .ctl:not(.main-ctl) { width: 44px; height: 44px; }
.now-controls .ctl:not(.main-ctl) .ico { width: 22px; height: 22px; }
.now-panel { height: 100%; min-height: 0; overflow: hidden; position: relative; }
.tab-pane { display: none; height: 100%; overflow-y: auto; padding: 8px 6px 80px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 30px, #000 calc(100% - 60px), transparent); mask-image: linear-gradient(180deg, transparent, #000 30px, #000 calc(100% - 60px), transparent); scrollbar-width: none; }
.tab-pane::-webkit-scrollbar { display: none; }
.tab-pane.on { display: block; }
.lyrics { margin: 0; font: 600 clamp(22px, 2.4vw, 30px)/1.4 var(--font); letter-spacing: -.02em; white-space: pre-wrap; color: var(--text); padding-top: 24px; }
.lyrics .sec { display: block; font: 500 12.5px var(--font); color: var(--text-3); margin: 28px 0 6px; letter-spacing: 0; }
.lyrics.empty { color: var(--text-3); font-weight: 500; font-size: 20px; }
.queue li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 10px; cursor: pointer; }
.queue li:hover { background: var(--surface); }
.queue li.cur { background: var(--surface-2); }
.queue li.cur strong { color: var(--accent); }
.queue .cover { width: 48px; height: 48px; border-radius: 6px; }
.queue span { min-width: 0; display: flex; flex-direction: column; }
.queue strong { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue em { font-style: normal; color: var(--text-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue time { color: var(--text-2); font-size: 13px; font-variant-numeric: tabular-nums; }

.toast { position: fixed; z-index: 80; left: 50%; bottom: calc(var(--player-h) + 24px); transform: translate(-50%, 12px); opacity: 0; pointer-events: none; background: var(--btn); color: var(--btn-text); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow); transition: all .25s; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.loadbar { position: fixed; z-index: 100; top: 0; left: 0; height: 2px; width: 0; opacity: 0; background: var(--text); pointer-events: none; }

/* ---------- Secciones SEO: migas, texto, FAQ, pie ---------- */
.crumbs { margin-bottom: 16px; font-size: 13px; color: var(--text-3); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li + li::before { content: "/"; margin: 0 8px; opacity: .6; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs span { color: var(--text-2); }

.about { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 820px; }
.about h2 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 10px; }
.about p { color: var(--text-2); line-height: 1.75; margin-bottom: 10px; }
.faq-title { font-size: 16px; font-weight: 600; margin: 26px 0 6px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 14px 28px 14px 0; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--text-3); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 14px; }

.song-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; margin-top: 32px; align-items: start; }
.lyrics-box h2, .song-side h2 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 14px; }
.lyrics-text { font-size: 17px; line-height: 1.8; }
.lyrics-text span { display: block; }
.lyrics-text h3 { font-size: 12.5px; font-weight: 500; color: var(--text-3); margin: 26px 0 6px; }

.site-footer { margin: 64px auto 0; padding: 32px 40px 14px; border-top: 1px solid var(--line); max-width: 1280px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.foot-about .brand-name { font-size: 18px; }
.foot-about p { color: var(--text-2); font-size: 14px; margin-top: 8px; max-width: 280px; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer h3 { font-size: 12.5px; font-weight: 500; color: var(--text-3); margin-bottom: 4px; }
.site-footer nav a { color: var(--text-2); font-size: 14px; }
.site-footer nav a:hover { color: var(--text); text-decoration: underline; }
.foot-note { color: var(--text-3); font-size: 13px; margin-top: 30px; }

/* ---------- Tablet ---------- */
@media (max-width: 1180px) {
  .page { padding: 28px 28px 20px; }
  .pl-vol { display: none; }
  .player { grid-template-columns: minmax(0, 1fr) minmax(280px, 1.5fr) auto; gap: 14px; }
  .hero-art { width: 140px; }
  .now-body { gap: 40px; padding: 16px 32px 32px; }
  .song-layout { grid-template-columns: 1fr; gap: 32px; }
  .artist-photo { width: 152px; }
  .detail-art { width: 190px; }
}

/* ---------- Móvil ---------- */
@media (max-width: 860px) {
  :root { --player-h: 60px; }
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .sidebar { display: none; }
  .topbar { display: flex; grid-column: 1; align-items: center; justify-content: space-between; padding: calc(env(safe-area-inset-top) + 8px) 14px 8px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .main { grid-column: 1; grid-row: 2; padding-bottom: calc(var(--tab-h) + var(--player-h) + 28px + env(safe-area-inset-bottom)); }
  .page { padding: 18px 16px 12px; }
  .page-title { font-size: 26px; }
  .page-lead { font-size: 14.5px; margin-bottom: 16px; }
  .tabbar { display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; z-index: 31; left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--bg); border-top: 1px solid var(--line); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10.5px; font-weight: 500; color: var(--text-3); }
  .tabbar a .ico { width: 22px; height: 22px; }
  .tabbar a.active { color: var(--text); }

  .player { left: 8px; right: 8px; bottom: calc(var(--tab-h) + 8px + env(safe-area-inset-bottom)); grid-template-columns: minmax(0, 1fr) auto; padding: 0 8px 0 10px; border: 1px solid var(--line); border-radius: 14px; gap: 8px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
  .pl-cover { width: 40px; height: 40px; }
  .hide-sm { display: none !important; }
  .pl-center { flex-direction: row; }
  .pl-mini-bar { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); }
  .pl-mini-bar span { display: block; height: 100%; width: var(--w, 0%); background: var(--text); }

  .hero { margin-top: 12px; grid-auto-columns: 88%; gap: 12px; }
  .hero-card { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; }
  .hero-art { width: 104px; }
  .hero-copy h2 { font-size: 22px; }
  .hero-actions { margin-top: 14px; }
  .hero-actions .btn { height: 38px; padding: 0 16px; font-size: 14px; }
  .shelf { margin-top: 32px; }
  .shelf-head h2 { font-size: 19px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 18px 12px; }
  .row { grid-auto-columns: 140px; gap: 12px; }
  .card-play { opacity: 1; transform: none; width: 34px; height: 34px; }
  .card-artist .card-play { display: none; }
  .arrows { display: none; }
  .genre-grid, .genre-grid.big { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .genre-card { padding: 12px; border-radius: 12px; }
  .genre-name { font-size: 15px; }
  .artist-copy { flex-direction: column; align-items: flex-start; gap: 14px; }
  .artist-photo { width: 112px; }
  .detail { flex-direction: column; align-items: center; text-align: center; gap: 18px; }
  .detail-art { width: min(240px, 66vw); }
  .detail-actions { justify-content: center; margin-top: 18px; }
  .detail-actions.standalone { justify-content: flex-start; }
  .track-grid { grid-template-columns: 1fr; }
  .track, .tracks .track:has(.tr-album), .track-grid .track { grid-template-columns: 48px minmax(0, 1fr) 32px auto; gap: 10px; padding: 6px 2px; }
  .tr-album, .tr-lyr { display: none; }
  .tr-fav { opacity: 1; }
  .chips { gap: 6px; margin-bottom: 20px; }
  .about { margin-top: 40px; }
  .lyrics-text { font-size: 16.5px; }
  .site-footer { padding: 28px 16px 10px; margin-top: 44px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }

  .now-head { padding: calc(env(safe-area-inset-top) + 8px) 12px 8px; }
  .now-body { grid-template-columns: 1fr; gap: 14px; padding: 12px 22px calc(env(safe-area-inset-bottom) + 20px); align-items: stretch; grid-template-rows: auto minmax(0, 1fr); overflow-y: auto; }
  .now-cover { width: min(100%, 36vh); }
  .now-art { gap: 14px; }
  .now-info h2 { font-size: 22px; }
  .now-controls { gap: 6px; }
  .now-panel { min-height: 220px; height: auto; }
  .lyrics { font-size: 22px; padding-top: 10px; }
  .toast { bottom: calc(var(--tab-h) + var(--player-h) + 24px); }
  .suggest { position: fixed; left: 12px; right: 12px; top: 60px; min-width: 0; }
}

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

/* ==========================================================================
   Capa Apple Music: carátulas protagonistas, acento rojo, cristal y detalles
   editoriales sobre la base neutra tipo ChatGPT.
   ========================================================================== */

/* Marca y navegación */
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); }
.brand-mark svg path { fill: #fff; }
.side-nav a .ico { color: var(--accent); }
.side-nav a.active { background: var(--surface-2); font-weight: 600; }
.search { background: var(--surface-2); border-color: transparent; }
.search:focus-within { background: var(--bg); border-color: var(--accent); box-shadow: 0 0 0 3px rgba(250, 45, 72, .18); }
.search-page { background: var(--surface-2); }

/* Títulos editoriales */
.page-title { font-size: clamp(30px, 3.6vw, 40px); font-weight: 700; letter-spacing: -.035em; }
.shelf-head { padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.shelf-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -.025em; }
.shelf-head > a { color: var(--accent); font-weight: 500; }
.shelf-head > a:hover { color: var(--accent); opacity: .75; }
.eyebrow { font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 11.5px; color: var(--accent); }

/* Carátulas */
.cover { border-radius: 10px; box-shadow: 0 6px 18px rgba(0, 0, 0, .22), 0 0 0 1px var(--line) inset; }
.cover.round { box-shadow: 0 6px 18px rgba(0, 0, 0, .22); }
.card-art .cover { transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; }
.card:hover .card-art .cover { opacity: 1; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, .32), 0 0 0 1px var(--line) inset; }
.card-play { left: 10px; right: auto; bottom: 10px; width: 36px; height: 36px; background: rgba(255, 255, 255, .92); color: var(--accent); backdrop-filter: blur(12px); }
.card-artist .card-play { left: 50%; right: auto; margin: 0 0 0 -18px; }
.card-play .ico { width: 15px; height: 15px; }
.card-title { font-weight: 600; font-size: 14px; }
.card-sub { font-size: 13px; }

/* Destacados con el color de la carátula */
.hero-card { position: relative; isolation: isolate; overflow: hidden; border: 0; color: #fff; padding: 28px 32px; min-height: 250px; border-radius: 18px;
  background: linear-gradient(135deg, hsl(var(--h) 38% 30%), hsl(calc(var(--h) + 30) 40% 16%)); }
.hero-bg { display: block; position: absolute; inset: -30%; width: 160%; height: 160%; object-fit: cover; filter: blur(56px) saturate(1.4); opacity: .75; z-index: -2; }
.hero-shade { display: block; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, .38), rgba(0, 0, 0, .08)); }
.hero-art { width: 188px; }
.hero-art .cover { border-radius: 12px; box-shadow: 0 20px 44px rgba(0, 0, 0, .5); }
.hero-copy .eyebrow { color: rgba(255, 255, 255, .78); }
.hero-copy h2 { font-weight: 700; }
.hero-copy p { color: rgba(255, 255, 255, .82); }
.hero-card .btn-primary { background: #fff; color: #111; }
.hero-card .btn-ghost { background: rgba(255, 255, 255, .2); border: 0; color: #fff; backdrop-filter: blur(12px); }
.dots button.on { background: var(--text); }

/* Botones: rojo Apple y gris con texto rojo */
.btn { border-radius: 10px; height: 40px; font-weight: 600; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { opacity: .9; }
.btn-ghost { background: var(--surface-2); border: 0; color: var(--accent); }
.btn-ghost:hover { background: var(--surface-2); filter: brightness(.95); }
.chip.on, .pg.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Cabeceras de detalle con brillo del color de la portada */
.detail, .artist-hero, .banner { position: relative; isolation: isolate; }
.detail::before { content: ""; position: absolute; z-index: -1; left: -60px; right: -60px; top: -90px; height: 420px; pointer-events: none;
  background: radial-gradient(60% 100% at 25% 0%, hsl(var(--h) 55% 50% / .28), transparent 72%); }
.artist-hero .banner-bg, .banner .banner-bg { display: block; position: absolute; left: -60px; right: -60px; top: -90px; width: calc(100% + 120px); height: 440px; object-fit: cover;
  filter: blur(70px) saturate(1.5); opacity: .38; z-index: -1; -webkit-mask-image: linear-gradient(#000 20%, transparent); mask-image: linear-gradient(#000 20%, transparent); }
.banner-shade { display: none; }
.detail-art .cover, .artist-photo { box-shadow: 0 22px 48px rgba(0, 0, 0, .38); }
.artist-photo { width: 200px; }
.detail-art { width: 240px; }
.detail-copy h1, .banner h1, .artist-copy h1 { font-weight: 700; letter-spacing: -.045em; }
.detail-artist { color: var(--accent); font-size: 19px; font-weight: 600; }
.tag { background: var(--surface-2); border: 0; color: var(--text); }

/* Listas con filas alternas, como Apple Music */
.tracks .track:nth-child(odd) { background: var(--surface); }
.tracks .track:hover { background: var(--surface-2); }
.tracks .track.is-current { background: rgba(250, 45, 72, .12); }
.track.is-current .tr-title, .track.is-fav .tr-fav { color: var(--accent); }
.tr-title { font-weight: 600; }
.tr-play { background: rgba(0, 0, 0, .45); }
.tr-lead:not(:has(.cover)) .tr-play { color: var(--accent); }

/* Reproductor flotante de cristal */
.player { left: calc(var(--side-w) + 16px); right: 28px; bottom: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--glass);
  backdrop-filter: saturate(180%) blur(30px); -webkit-backdrop-filter: saturate(180%) blur(30px); box-shadow: 0 14px 40px rgba(0, 0, 0, .28); }
.pl-cover .cover { border-radius: 7px; box-shadow: 0 3px 10px rgba(0, 0, 0, .3); }
.main-ctl { background: none; color: var(--text); width: 44px; height: 44px; box-shadow: none; }
.main-ctl:hover { color: var(--text); opacity: .7; }
.main-ctl .ico { width: 26px; height: 26px; }
.main-ctl.big { background: none; width: 76px; height: 76px; }
.main-ctl.big .ico { width: 42px; height: 42px; }
input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--text-2) var(--p), var(--track) var(--p)); }
input[type="range"]::-moz-range-progress { background: var(--text-2); }
.main { padding-bottom: calc(var(--player-h) + 56px); }
.toast { bottom: calc(var(--player-h) + 40px); }

/* Ahora suena: fondo con el color de la portada */
.now-bg { display: block; position: absolute; inset: -25%; background: var(--bg) center / cover; filter: blur(90px) saturate(1.7); opacity: .5; transition: background-image .6s; }
.now::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--bg)); opacity: .55; pointer-events: none; }
.now-head, .now-body { position: relative; z-index: 1; }
.now-head { border-bottom: 0; }
.now-cover .cover { border-radius: 14px; box-shadow: 0 34px 80px rgba(0, 0, 0, .5); }
.now-info h2 { font-weight: 700; }
.now-info a { color: var(--accent); font-weight: 600; }
.lyrics { font-weight: 700; }
.lyrics .sec { color: var(--accent); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 600; }
.now-tabs { background: var(--glass); backdrop-filter: blur(16px); }
.now-tabs button.on { background: var(--text); color: var(--bg); box-shadow: none; }
.queue li.cur strong { color: var(--accent); }

/* Móvil */
@media (max-width: 860px) {
  .brand-mark { width: 28px; height: 28px; }
  .tabbar { background: var(--glass); backdrop-filter: saturate(180%) blur(30px); }
  .tabbar a.active { color: var(--accent); }
  .player { left: 8px; right: 8px; bottom: calc(var(--tab-h) + 8px + env(safe-area-inset-bottom)); background: var(--glass); backdrop-filter: saturate(180%) blur(30px); border-radius: 14px; }
  .pl-mini-bar span { background: var(--accent); }
  .main-ctl { width: 40px; height: 40px; }
  .main-ctl .ico { width: 24px; height: 24px; }
  .hero-card { padding: 20px; min-height: 0; }
  .hero-art { width: 112px; }
  .card-play { width: 32px; height: 32px; }
  .shelf-head h2 { font-size: 20px; }
  .artist-photo { width: 120px; }
  .detail-art { width: min(250px, 66vw); }
}

/* ==========================================================================
   Mejoras de experiencia: paleta de comandos, menú contextual, barra superior,
   esqueletos de carga, ecualizador, fundido de imágenes
   ========================================================================== */
.kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--line); border-bottom-width: 2px; background: var(--surface); color: var(--text-2); font: 600 11px var(--font); }
.search .kbd { margin-left: auto; }

/* Imágenes con fundido (con salvaguarda por si el evento load no llega) */
.cover img { opacity: 0; transition: opacity .4s ease; animation: imgIn .01s 4s forwards; }
.cover img.ok { opacity: 1; }
@keyframes imgIn { to { opacity: 1; } }

/* Barra superior pegajosa */
.topnav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 6px; height: 56px; padding: 0 28px; border-bottom: 1px solid transparent; transition: background .2s, border-color .2s; }
.topnav.scrolled { background: var(--glass); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px); border-bottom-color: var(--line); }
.tn-btn { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); background: var(--surface-2); transition: background .15s, color .15s; }
.tn-btn:hover { color: var(--text); background: var(--track); }
.tn-btn .ico { width: 15px; height: 15px; }
.ico.flip { transform: scaleX(-1); }
.tn-title { flex: 1; min-width: 0; padding: 0 12px; font-weight: 700; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(6px); transition: all .2s; }
.topnav.show-title .tn-title { opacity: 1; transform: none; }
.tn-play { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; margin-right: 6px; }
.tn-play[hidden] { display: none; }
.tn-play .ico { width: 14px; height: 14px; margin-left: 1px; }
.tn-search { display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 8px 0 12px; margin-left: auto; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: 13.5px; font-weight: 500; transition: background .15s; }
.tn-title + .tn-play + .tn-search, .tn-title ~ .tn-search { margin-left: 0; }
.tn-search:hover { background: var(--track); color: var(--text); }
.tn-search .ico { width: 15px; height: 15px; }
.page { padding-top: 8px; }

/* Paleta de comandos */
.cmdk, .help { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 0; }
.cmdk[hidden], .help[hidden] { display: none; }
.cmdk-back { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); backdrop-filter: blur(3px); animation: fade .15s ease both; }
.cmdk-box { position: relative; width: min(640px, 100%); max-height: 70vh; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); overflow: hidden; animation: pop .18s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
.cmdk-input { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 58px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.cmdk-input input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--text); font: 500 16.5px var(--font); }
.cmdk-input input::placeholder { color: var(--text-3); }
.cmdk-list { overflow-y: auto; padding: 6px 8px 10px; }
.cmd-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 7px 10px; border-radius: 10px; text-align: left; }
.cmd-item.sel { background: var(--surface-2); }
.cmd-item .cover { width: 38px; height: 38px; border-radius: 6px; flex: none; box-shadow: none; }
.cmd-item .cover.round { border-radius: 50%; }
.cmd-item span { min-width: 0; display: flex; flex-direction: column; }
.cmd-item strong { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmd-item em { font-style: normal; color: var(--text-2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmd-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); display: grid !important; place-items: center; flex: none; color: var(--accent); }
.cmd-ico .ico { width: 18px; height: 18px; }
.cmd-empty { padding: 34px 0; text-align: center; color: var(--text-3); }
.cmdk-foot { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 12.5px; }
.cmdk-foot span { display: inline-flex; align-items: center; gap: 4px; }
.help-box { position: relative; width: min(460px, 100%); padding: 24px 26px; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); animation: pop .18s cubic-bezier(.2, .8, .2, 1) both; }
.help-box h2 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 14px; }
.help-box dl { margin: 0; }
.help-box dl > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.help-box dl > div:last-child { border: 0; }
.help-box dt { display: flex; gap: 4px; align-items: center; }
.help-box dd { margin: 0; color: var(--text-2); font-size: 14px; text-align: right; }

/* Menú contextual de canción */
.menu-back { position: fixed; inset: 0; z-index: 70; }
.menu { position: fixed; z-index: 71; width: 268px; padding: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .4); animation: pop .14s cubic-bezier(.2, .8, .2, 1) both; }
.menu[hidden], .menu-back[hidden] { display: none; }
.menu-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.menu-head .cover { width: 40px; height: 40px; border-radius: 6px; flex: none; box-shadow: none; }
.menu-head span { min-width: 0; display: flex; flex-direction: column; }
.menu-head strong { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-head em { font-style: normal; color: var(--text-2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu > button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 0 10px; height: 38px; border-radius: 8px; font-size: 14px; font-weight: 500; text-align: left; }
.menu > button .ico { width: 17px; height: 17px; color: var(--text-2); }
.menu > button:hover { background: var(--surface-2); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 4px; }

/* Botón "más" en filas */
.tr-more { width: 32px; height: 32px; display: grid; place-items: center; color: var(--text-2); border-radius: 8px; opacity: 0; transition: opacity .12s, background .12s; }
.tr-more .ico { width: 18px; height: 18px; }
.track:hover .tr-more, .tr-more:focus-visible { opacity: 1; }
.tr-more:hover { background: var(--surface-2); color: var(--text); }
@media (hover: none) { .tr-more { opacity: 1; } }

/* Esqueletos de carga */
.sk { border-radius: 10px; background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 37%, var(--surface) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.skel { animation: none; }
.sk-title { height: 40px; width: min(380px, 70%); margin-bottom: 14px; }
.sk-line { height: 14px; width: min(520px, 90%); margin-bottom: 28px; }
.sk-line.s { width: 70%; margin: 10px 0 0; }
.sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 24px 18px; }
.sk-cover { aspect-ratio: 1; border-radius: 10px; }

/* Ecualizador del reproductor */
.pl-track { position: relative; }
.pl-eq { position: absolute; left: 0; top: 50%; width: 48px; height: 48px; margin-top: -24px; display: none; align-items: flex-end; justify-content: center; gap: 3px; padding-bottom: 14px; border-radius: 7px; background: rgba(0, 0, 0, .42); pointer-events: none; }
.pl-eq b { width: 3px; height: 28%; border-radius: 2px; background: #fff; animation: eq .9s ease-in-out infinite; }
.pl-eq b:nth-child(2) { animation-delay: -.25s; } .pl-eq b:nth-child(3) { animation-delay: -.5s; } .pl-eq b:nth-child(4) { animation-delay: -.7s; }
.is-playing-state .pl-eq { display: flex; }

@media (max-width: 860px) {
  .topnav { display: none; }
  .page { padding-top: 18px; }
  .kbd { display: none; }
  .sk-grid { grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 18px 12px; }
  .track, .tracks .track:has(.tr-album), .track-grid .track { grid-template-columns: 48px minmax(0, 1fr) auto 34px; }
  .tr-fav { display: none; }
  .tr-dur { order: 2; }
  .tr-more { order: 3; }
  .cmdk { padding-top: 8vh; }
  .menu { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto; max-height: 80vh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: 8px 10px calc(env(safe-area-inset-bottom) + 12px); animation: sheet .25s cubic-bezier(.2, .8, .2, 1) both; }
  .menu-back { background: rgba(0, 0, 0, .45); }
  .menu > button { height: 46px; font-size: 15.5px; }
  .pl-eq { width: 40px; height: 40px; margin-top: -20px; padding-bottom: 11px; }
}
@keyframes sheet { from { transform: translateY(100%); } to { transform: none; } }

/* ==========================================================================
   Cabeceras a todo el ancho: el resplandor ocupa el ancho completo del área
   principal y se desvanece en los bordes (sin cajas visibles).
   ========================================================================== */
.main { container-type: inline-size; }
.artist-hero .banner-bg, .banner .banner-bg {
  left: 50%; right: auto; width: 100cqw; transform: translateX(-50%); top: -150px; height: 620px;
  filter: blur(80px) saturate(1.7); opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 78% 100% at 50% 0%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 78% 100% at 50% 0%, #000 30%, transparent 100%);
}
.detail::before {
  left: 50%; right: auto; width: 100cqw; transform: translateX(-50%); top: -150px; height: 580px;
  background: radial-gradient(ellipse 72% 100% at 50% 0%, hsl(var(--h) 55% 50% / .32), transparent 100%);
}
.artist-hero { min-height: 300px; padding: 30px 0 8px; }
.artist-photo { width: 220px; }
.artist-copy h1 { font-size: clamp(40px, 6vw, 84px); }

@media (max-width: 860px) {
  .artist-hero .banner-bg, .banner .banner-bg { top: -90px; height: 460px; filter: blur(60px) saturate(1.6); opacity: .6; }
  .detail::before { top: -90px; height: 420px; }
  .artist-hero { min-height: 0; padding: 8px 0 0; }
  .artist-copy { flex-direction: column; align-items: center; text-align: center; gap: 16px; width: 100%; }
  .artist-photo { width: 156px; }
  .artist-copy h1 { font-size: 36px; }
  .tags { justify-content: center; }
  .detail-actions, .detail-actions.standalone { width: 100%; flex-wrap: nowrap; gap: 8px; justify-content: center; margin-top: 18px; }
  .detail-actions .btn { flex: 1 1 0; padding: 0 12px; min-width: 0; }
  .detail-actions .btn[data-share] { flex: 0 0 44px; padding: 0; }
  .detail-actions .btn[data-share] .lbl { display: none; }
  .detail-actions .btn[data-fav-page] { flex: 1 1 0; }
}

.artist-hero .banner-bg, .banner .banner-bg { max-width: none; }

/* ==========================================================================
   Listas de reproducción, vídeo, cola ampliada y ajustes de adaptación
   ========================================================================== */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.btn.icon-only { width: 40px; padding: 0; }
.detail-desc { color: var(--text-2); max-width: 560px; margin-top: 6px; }
.sleep-chip { font-size: 12.5px; color: var(--accent); margin-top: 6px; font-weight: 600; }

/* Barra lateral: mis listas */
.side-label-row { display: flex; align-items: center; justify-content: space-between; }
.side-add { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; color: var(--text-2); margin-right: -4px; }
.side-add:hover { background: var(--surface-2); color: var(--text); }
.side-add .ico { width: 15px; height: 15px; }
.side-lists { display: flex; flex-direction: column; gap: 2px; max-height: 36vh; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.side-lists a { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; border-radius: 10px; color: var(--text); font-size: 14px; flex: none; }
.side-lists a:hover { background: var(--surface); }
.side-lists a.active { background: var(--surface-2); font-weight: 600; }
.sl-cover { width: 28px; height: 28px; flex: none; }
.sl-cover .cover { border-radius: 5px; box-shadow: none; }
.sl-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.side-empty { font-size: 13px; color: var(--text-3); padding: 4px 10px; }

/* Carátula en mosaico */
.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 1; width: 100%; border-radius: 10px; overflow: hidden; box-shadow: 0 6px 18px rgba(0, 0, 0, .22); }
.mosaic .cover { border-radius: 0; box-shadow: none; aspect-ratio: auto; height: 100%; }
.mosaic-empty { display: grid; place-items: center; }
.detail-art .mosaic { border-radius: 10px; box-shadow: 0 22px 48px rgba(0, 0, 0, .38); }

/* Tarjeta "Nueva lista" */
.card-new .new-tile { display: grid; place-items: center; align-content: center; gap: 10px; aspect-ratio: 1; width: 100%; border: 2px dashed var(--line); border-radius: 12px; color: var(--text-2); font-weight: 600; transition: all .15s; }
.card-new .new-tile:hover { border-color: var(--accent); color: var(--accent); background: var(--surface); }
.new-tile span { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; }

/* Cola ampliada */
.queue-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 6px 12px; }
.link-btn { color: var(--accent); font-weight: 600; font-size: 13.5px; }
.link-btn:hover { text-decoration: underline; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { width: 38px; height: 22px; border-radius: 999px; background: var(--track); position: relative; transition: background .2s; flex: none; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.queue li { grid-template-columns: 18px 48px minmax(0, 1fr) auto 30px; gap: 10px; }
.q-handle { color: var(--text-3); cursor: grab; font-style: normal; text-align: center; }
.q-remove { width: 30px; height: 30px; border-radius: 50%; color: var(--text-3); font-size: 18px; display: grid; place-items: center; opacity: 0; transition: opacity .12s; }
.queue li:hover .q-remove, .queue li:focus-within .q-remove { opacity: 1; }
.q-remove:hover { background: var(--surface-2); color: var(--text); }
.queue li.dragging { opacity: .4; } .queue li.drop { box-shadow: 0 -2px 0 var(--accent) inset; }
.q-empty { color: var(--text-3); padding: 24px 8px; cursor: default !important; display: block !important; }

/* Vídeo */
#yt-holder { position: fixed; left: -400px; top: 0; right: auto; bottom: auto; width: 200px; height: 200px; overflow: hidden; opacity: 0; pointer-events: none; z-index: -1; border-radius: 12px; background: #000; }
#yt-holder.shown { opacity: 1; pointer-events: auto; z-index: 96; box-shadow: 0 14px 40px rgba(0, 0, 0, .45); }
#yt-holder.is-full { border-radius: 0; }
#yt-holder iframe, #yt { width: 100%; height: 100%; border: 0; display: block; }
.mini-video { position: fixed; z-index: 61; right: 28px; bottom: calc(var(--player-h) + 44px); width: 340px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 44px rgba(0, 0, 0, .4); overflow: hidden; }
.mini-video[hidden] { display: none; }
.mv-bar { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 6px 0 12px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.mv-bar .ico { width: 15px; height: 15px; }
.mv-bar button { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 18px; color: var(--text-2); }
.mv-bar button:hover { background: var(--surface-2); color: var(--text); }
.mv-screen { aspect-ratio: 16 / 9; background: #000; }
.video-screen { aspect-ratio: 16 / 9; width: 100%; background: #000; border-radius: 14px; box-shadow: var(--shadow); }
.video-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.tab-pane[data-pane="video"] { -webkit-mask-image: none; mask-image: none; padding-top: 4px; }
.ctl.on { color: var(--accent); }

/* Ventanas (añadir a lista, nombre de lista) */
.modal-x { position: fixed; inset: 0; z-index: 92; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-x[hidden] { display: none; }
.mx-back { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); backdrop-filter: blur(3px); animation: fade .15s ease both; }
.mx-box { position: relative; width: min(440px, 100%); max-height: min(640px, 88dvh); display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); animation: pop .18s cubic-bezier(.2, .8, .2, 1) both; }
.mx-box header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mx-box h2 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.mx-box header .icon-btn { font-size: 22px; color: var(--text-2); }
.mx-sub { color: var(--text-2); font-size: 14px; margin-top: -6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-sub[hidden] { display: none; }
.mx-list { overflow-y: auto; display: flex; flex-direction: column; gap: 2px; min-height: 0; margin: 0 -8px; padding: 0 8px; }
.mx-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 7px 8px; border-radius: 12px; text-align: left; }
.mx-item:hover { background: var(--surface-2); }
.mx-cover { width: 48px; height: 48px; display: block; }
.mx-cover .mosaic, .mx-cover .cover { border-radius: 7px; box-shadow: none; }
.mx-item span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.mx-item strong { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-item em { font-style: normal; color: var(--text-2); font-size: 12.5px; }
.mx-check { color: var(--accent); font-style: normal; font-weight: 700; }
.mx-empty { color: var(--text-3); text-align: center; padding: 22px 0; }
.mx-new { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 12px; border: 1px dashed var(--line); color: var(--accent); font-weight: 600; }
.mx-new:hover { background: var(--surface); }
.mx-input { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; resize: none; }
.mx-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(250, 45, 72, .16); }
.mx-input[hidden] { display: none; }
.mx-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.btn.danger { background: #c42335; color: #fff; }

/* ---------- Adaptación: pantallas bajas y muy anchas ---------- */
@media (min-width: 1700px) { .page, .site-footer { max-width: 1680px; } .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
@media (max-height: 560px) and (orientation: landscape) {
  .now-head { padding-block: 6px; }
  .now-body { grid-template-columns: minmax(150px, 230px) minmax(0, 1fr); gap: 22px; padding: 4px 22px 12px; overflow-y: auto; }
  .now-cover { width: min(100%, 34vh); }
  .now-art { gap: 8px; }
  .now-info h2 { font-size: 18px; } .now-info a { font-size: 14px; }
  .main-ctl.big { width: 52px; height: 52px; } .main-ctl.big .ico { width: 24px; height: 24px; }
  .now-controls { gap: 4px; } .now-controls .ctl:not(.main-ctl) { width: 38px; height: 38px; }
  .now-panel { min-height: 0; height: 100%; }
  .tabbar { height: 48px; } :root { --tab-h: 48px; }
}
@media (max-width: 860px) {
  .btn.icon-only { flex: 0 0 44px !important; padding: 0; }
  [data-shared] .detail-actions { flex-wrap: wrap; }
  .page-head .btn { width: 100%; }
  .queue li { grid-template-columns: 48px minmax(0, 1fr) auto 30px; }
  .q-handle { display: none; }
  .q-remove { opacity: 1; }
  .mx-box { border-radius: 22px 22px 0 0; width: 100%; max-height: 86dvh; padding-bottom: calc(env(safe-area-inset-bottom) + 18px); animation: sheet .25s cubic-bezier(.2, .8, .2, 1) both; }
  .modal-x { align-items: flex-end; padding: 0; }
  .mini-video { display: none; }
  .video-screen { border-radius: 12px; }
  .grid .card-new .new-tile { aspect-ratio: 1; }
}
@media (max-width: 380px) {
  .page { padding-inline: 12px; }
  .tabbar a { font-size: 9.5px; } .tabbar a .ico { width: 21px; height: 21px; }
  .hero-card { padding: 16px; } .hero-copy h2 { font-size: 20px; }
  .btn { padding: 0 14px; }
  .genre-grid, .genre-grid.big { gap: 8px; } .genre-name { font-size: 14px; }
}

@media (max-width: 860px) {
  .detail-copy { width: 100%; max-width: 100%; }
}
@media (max-width: 440px) {
  .detail-actions, .detail-actions.standalone { flex-wrap: wrap !important; }
  .detail-actions .btn { flex: 1 1 42%; }
  .detail-actions .btn.icon-only, .detail-actions .btn[data-share] { flex: 0 0 44px !important; }
}
/* Tablet vertical (600-860): aprovecha el ancho en vez de estirar una sola columna */
@media (min-width: 600px) and (max-width: 860px) {
  .page { padding: 24px 28px 12px; }
  .track-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
  .row { grid-auto-columns: 168px; }
  .hero { grid-auto-columns: min(600px, 88%); }
  .hero-card { flex-direction: row; align-items: center; gap: 24px; padding: 26px; }
  .hero-art { width: 150px; }
  .hero-copy h2 { font-size: 28px; }
  .detail { flex-direction: row; align-items: flex-end; text-align: left; gap: 28px; }
  .detail-copy { width: auto; }
  .detail-art { width: 220px; }
  .detail-actions, .detail-actions.standalone { justify-content: flex-start; width: auto; }
  .artist-copy { flex-direction: row; align-items: flex-end; text-align: left; gap: 26px; width: auto; }
  .artist-photo { width: 170px; }
  .tags { justify-content: flex-start; }
  .genre-grid, .genre-grid.big { grid-template-columns: repeat(3, 1fr); }
  .now-body { grid-template-columns: minmax(240px, 380px) minmax(0, 1fr); gap: 32px; align-items: center; }
  .now-cover { width: min(100%, 42vh); }
}
/* Movil: en la pestana Video el reproductor pasa arriba y la caratula se oculta */
@media (max-width: 599px) {
  .now[data-tab="video"] .now-body { display: flex; flex-direction: column; }
  .now[data-tab="video"] .now-panel { order: -1; height: auto; min-height: 0; flex: none; }
  .now[data-tab="video"] .now-cover { display: none; }
  .now[data-tab="video"] .tab-pane { height: auto; overflow: visible; padding-bottom: 0; }
  .now[data-tab="video"] .video-tools { justify-content: center; }
}
.now-tabs button { white-space: nowrap; }
@media (max-width: 420px) { .now-tabs button { padding: 7px 14px; font-size: 13.5px; } }

/* Boton de opciones en tarjetas */
.card-more { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; backdrop-filter: blur(8px); opacity: 0; transition: opacity .15s; z-index: 2; }
.card-more .ico { width: 16px; height: 16px; }
.card:hover .card-more, .card-more:focus-visible { opacity: 1; }
@media (hover: none), (max-width: 860px) { .card-more { opacity: 1; width: 28px; height: 28px; } }

/* Capas decorativas: nunca deben interceptar clics */
.banner-bg, .banner-shade, .hero-bg, .hero-shade, .detail::before, .aurora { pointer-events: none; }
.detail-actions, .tracks, .detail-copy, .artist-copy { position: relative; z-index: 1; }

/* Boton de reproducir de la cabecera: icono segun estado y pulso mientras suena */
.tn-play { position: relative; }
.tn-play .tn-i-pause { display: none; }
.tn-play.on .tn-i-play { display: none; }
.tn-play.on .tn-i-pause { display: block; margin-left: 0; }
.tn-play.on::before, .tn-play.on::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: tnPulse 1.8s ease-out infinite; pointer-events: none; }
.tn-play.on::after { animation-delay: .9s; }
@keyframes tnPulse { 0% { transform: scale(1); opacity: .65; } 100% { transform: scale(1.9); opacity: 0; } }
.tn-play.on { box-shadow: 0 0 0 0 rgba(250, 45, 72, .5); animation: tnGlow 1.8s ease-in-out infinite; }
@keyframes tnGlow { 0%, 100% { box-shadow: 0 0 10px rgba(250, 45, 72, .35); } 50% { box-shadow: 0 0 20px rgba(250, 45, 72, .7); } }
.btn-primary.is-on { animation: tnGlow 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .tn-play.on, .tn-play.on::before, .tn-play.on::after, .btn-primary.is-on { animation: none; } }

/* ---------- Movil: barra de acciones ordenada en cuadricula ---------- */
@media (max-width: 599px) {
  .detail-actions, .detail-actions.standalone { display: grid !important; grid-template-columns: 1fr 1fr auto auto; gap: 8px; width: 100%; margin-top: 18px; }
  .detail-actions .btn { min-width: 0; width: 100%; padding: 0 10px; flex: none !important; justify-content: center; white-space: nowrap; }
  .detail-actions .btn.icon-only, .detail-actions .btn[data-share] { width: 44px; padding: 0; }
  .detail-actions .btn[data-share] .lbl { display: none; }
  .detail-actions .btn[data-import-list] { grid-column: 1 / -1; }
  .detail-actions .btn:disabled { opacity: .45; }
}
/* ---------- Movil: filtros en una tira desplazable y detalles ---------- */
@media (max-width: 860px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .card-new { display: none; }
  .page-head { gap: 12px; }
  .page-head > div { flex: 1 1 100%; }
}
/* Ajustes finos de escritorio */
.page-head { margin-bottom: 18px; }
.page-head .page-lead { margin-bottom: 0; }
@media (min-width: 861px) and (max-width: 1100px) {
  .player .pl-right [data-act="lyrics"], .player .pl-right [data-act="video"] { display: none; }
  .pl-meta strong { font-size: 14px; }
}
/* ---------- Pie de pagina ---------- */
.site-footer { margin: 80px auto 0; padding: 48px 44px 20px; max-width: 1520px; border-top: 1px solid var(--line); }
.foot-top { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); gap: 56px; }
.foot-brand .brand { padding: 0; margin-bottom: 14px; display: inline-flex; }
.foot-brand p { color: var(--text-2); font-size: 14.5px; line-height: 1.6; max-width: 320px; }
.foot-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.foot-stats li { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); }
.foot-stats strong { color: var(--text); font-weight: 700; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.site-footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.site-footer h3 { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.site-footer nav a, .site-footer nav button { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; color: var(--text-2); font-size: 14px; text-align: left; transition: color .15s; max-width: 100%; }
.site-footer nav a:hover, .site-footer nav button:hover { color: var(--text); }
.site-footer nav a:not(.foot-more):hover, .site-footer nav button:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer .foot-more { color: var(--accent); font-weight: 600; margin-top: 2px; }
.site-footer nav button .kbd { height: 20px; font-size: 10.5px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; }
.foot-bottom .foot-note { max-width: 520px; text-align: right; }
@media (max-width: 1100px) { .foot-top { grid-template-columns: 1fr; gap: 32px; } .foot-brand p { max-width: 520px; } }
@media (max-width: 860px) {
  .site-footer { margin-top: 56px; padding: 32px 16px 12px; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
  .site-footer nav a, .site-footer nav button { min-height: 34px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; margin-top: 30px; }
  .foot-bottom .foot-note { text-align: left; }
}

/* ==========================================================================
   Paginas informativas y legales, formularios publicos y aviso de cookies
   ========================================================================== */
.legal { max-width: 900px; margin-inline: 0; }
.legal > section { margin-top: 34px; }
.legal h2 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; }
.legal p { color: var(--text-2); line-height: 1.75; margin-bottom: 12px; }
.legal p strong, .legal li strong { color: var(--text); }
.legal a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal .bullets { list-style: disc; padding-left: 22px; color: var(--text-2); line-height: 1.75; }
.legal .bullets li { margin-bottom: 6px; padding-left: 4px; }
.legal .steps { list-style: decimal; padding-left: 24px; color: var(--text-2); line-height: 1.7; margin-bottom: 14px; }
.legal .steps li { margin-bottom: 8px; padding-left: 4px; }
.legal code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; font-size: .88em; color: var(--text); }
.legal-links { display: flex; flex-wrap: wrap; gap: 10px; }
mark.ph { background: rgba(255, 196, 0, .22); color: var(--text); padding: 1px 6px; border-radius: 5px; font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin: 12px 0; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.legal-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); padding: 10px 14px; background: var(--surface); }
.legal-table td { padding: 11px 14px; border-top: 1px solid var(--line); color: var(--text-2); vertical-align: top; line-height: 1.55; }
.facts-legal { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.facts-legal > div { display: grid; grid-template-columns: 190px 1fr; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--line); }
.facts-legal > div:first-child { border-top: 0; }
.facts-legal dt { color: var(--text-3); font-weight: 600; font-size: 13.5px; }
.facts-legal dd { margin: 0; color: var(--text); word-break: break-word; }

.notice { padding: 14px 18px; border-radius: 12px; margin: 18px 0; line-height: 1.55; border: 1px solid transparent; }
.notice-ok { background: rgba(19, 138, 91, .14); border-color: rgba(19, 138, 91, .35); color: var(--text); }
.notice-err { background: rgba(250, 45, 72, .12); border-color: rgba(250, 45, 72, .35); color: var(--text); }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; margin-top: 20px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.legal > section > .form-card { margin-top: 8px; }
.form-card .btn { margin-top: 6px; }
.ff { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.ff label { font-weight: 600; font-size: 14px; color: var(--text); }
.ff .opt { color: var(--text-3); font-weight: 500; font-size: 12.5px; }
.ff input:not([type="checkbox"]), .ff select, .ff textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
.ff textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.ff input:focus, .ff select:focus, .ff textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(250, 45, 72, .16); }
.ff.bad input, .ff.bad select, .ff.bad textarea { border-color: #e5484d; }
.ff .field-error { color: #e5484d; font-size: 13px; font-weight: 500; }
.check-line { display: flex; gap: 12px; align-items: flex-start; font-weight: 500 !important; font-size: 14px !important; color: var(--text-2) !important; line-height: 1.55; cursor: pointer; }
.check-line input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hint { color: var(--text-3); font-size: 13px; line-height: 1.55; margin-bottom: 14px; }
.side-info { display: flex; flex-direction: column; gap: 16px; }
.info-card { border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.info-card h2 { font-size: 16px; margin-bottom: 8px; }
.info-card p { font-size: 14px; margin-bottom: 10px; }

.foot-legal { display: flex; flex-wrap: wrap; gap: 4px 18px; width: 100%; margin-bottom: 4px; }
.foot-legal a { color: var(--text-2); font-size: 13.5px; font-weight: 500; }
.foot-legal a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom { align-items: flex-start; }
.foot-bottom .foot-note { text-align: left; max-width: 640px; flex-basis: 100%; }

.consent { position: fixed; z-index: 85; left: calc(var(--side-w) + 20px); right: 24px; bottom: calc(var(--player-h) + 40px); display: flex; align-items: center; gap: 18px; padding: 16px 20px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); max-width: 760px; animation: sheet .35s cubic-bezier(.2, .8, .2, 1) both; }
.consent[hidden] { display: none; }
.consent p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.consent p strong { color: var(--text); }
.consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.consent .btn { flex: none; height: 40px; }
@keyframes sheet { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 960px) { .contact-layout { grid-template-columns: 1fr; } .facts-legal > div { grid-template-columns: 1fr; gap: 2px; } }
@media (max-width: 860px) {
  .legal h2 { font-size: 19px; }
  .form-card { padding: 18px; border-radius: 14px; }
  .foot-legal { gap: 2px 16px; }
  .consent { left: 10px; right: 10px; bottom: calc(var(--tab-h) + var(--player-h) + 24px + env(safe-area-inset-bottom)); flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; }
  .consent .btn { width: 100%; }
}

/* Texto visible de apoyo para SEO bajo el titulo */
.seo-lead { color: var(--text-2); font-size: 15px; line-height: 1.6; max-width: 620px; margin: 4px 0 6px; }
.banner .seo-lead, .artist-hero .seo-lead { color: rgba(255, 255, 255, .85); }
@media (max-width: 860px) { .seo-lead { font-size: 14px; margin-inline: auto; } .artist-copy .seo-lead { margin-inline: 0; } }

/* ==========================================================================
   Noticias y articulos
   ========================================================================== */
.tabbar { grid-template-columns: repeat(7, 1fr) !important; }
@media (max-width: 860px) { .tabbar a { font-size: 9.5px; } .tabbar a .ico { width: 21px; height: 21px; } }
.cover.wide { aspect-ratio: 16 / 9; border-radius: 14px; }
.news-search { margin: 4px 0 18px; max-width: 520px; }
.result-count { margin: -6px 0 16px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 28px 22px; }
.news-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.nc-cover { display: block; border-radius: 14px; overflow: hidden; }
.nc-cover .cover { transition: transform .5s cubic-bezier(.2, .7, .2, 1); box-shadow: none; }
.news-card:hover .nc-cover .cover { transform: scale(1.04); }
.nc-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.nc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 12.5px; color: var(--text-3); font-weight: 500; }
.nc-cat { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(250, 45, 72, .12); color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .01em; }
.nc-cat:hover { background: var(--accent); color: #fff; }
.nc-title { font-size: 18px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.nc-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.news-card p { color: var(--text-2); font-size: 14.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.nc-more { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); font-weight: 600; font-size: 13.5px; }
.nc-more .ico { width: 14px; height: 14px; }
.news-card.big { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-bottom: 38px; padding: 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.news-card.big .nc-title { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.03em; }
.news-card.big p { -webkit-line-clamp: 4; font-size: 16px; }
.tag-cloud { margin-top: 48px; }
.tag-cloud h2 { font-size: 18px; margin-bottom: 12px; }

.article { max-width: 780px; margin: 0 auto; }
.article-head { margin-bottom: 22px; }
.article-head h1 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; letter-spacing: -.04em; line-height: 1.12; margin: 14px 0 12px; text-wrap: balance; }
.article-lead { font-size: 19px; line-height: 1.6; color: var(--text-2); margin-bottom: 14px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; color: var(--text-3); font-size: 14px; }
.article-meta strong { color: var(--text); font-weight: 600; }
.article-cover { margin: 0 0 30px; border-radius: 18px; overflow: hidden; background: var(--surface); }
.article-cover img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }
.prose { font-size: 17.5px; line-height: 1.85; color: var(--text); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: 27px; font-weight: 800; letter-spacing: -.03em; line-height: 1.25; margin-top: 1.9em; }
.prose h3 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; margin-top: 1.6em; }
.prose h4 { font-size: 18px; font-weight: 700; margin-top: 1.4em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 26px; } .prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li { margin-top: .4em; padding-left: 4px; }
.prose blockquote { border-left: 4px solid var(--accent); padding: 4px 0 4px 20px; color: var(--text-2); font-size: 1.05em; font-style: italic; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose code { background: var(--surface-2); padding: 2px 7px; border-radius: 6px; font-size: .88em; }
.prose figure { margin: 1.6em 0; } .prose figure img { width: 100%; height: auto; border-radius: 14px; }
.prose figcaption { text-align: center; color: var(--text-3); font-size: 14px; margin-top: 8px; }
.prose .embed { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.prose .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article-tags { margin: 28px 0 8px; }
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share-bar span { color: var(--text-3); font-weight: 600; font-size: 13px; margin-right: 6px; }
.share-bar a, .share-bar button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--text-2); transition: all .15s; }
.share-bar a:hover, .share-bar button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (max-width: 860px) {
  .news-grid { grid-template-columns: 1fr; gap: 26px; }
  .news-card.big { grid-template-columns: 1fr; gap: 16px; padding: 12px; }
  .prose { font-size: 16.5px; line-height: 1.8; } .prose h2 { font-size: 23px; }
  .article-lead { font-size: 17px; }
}
@media (min-width: 600px) and (max-width: 860px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }

.news-page .page-head .btn { width: auto; }

.views-chip{display:inline-flex;align-items:center;gap:6px;margin-left:12px;padding:3px 10px;border-radius:999px;background:rgba(255,255,255,.14);font-size:.85em;white-space:nowrap}
.views-chip .ico{width:14px;height:14px}
@media(max-width:560px){.views-chip{margin:6px 0 0;display:flex;width:fit-content}}

/* Letra en foco: al desplazarla, la carátula se pliega y la letra ocupa la pantalla (móvil y pantallas bajas) */
.now-cover, .now-info p, .now-progress { transition: max-height .35s cubic-bezier(.2,.8,.2,1), opacity .25s, margin .35s; }
@media (max-width: 599px), (max-height: 560px) and (orientation: landscape) {
  .now-cover { max-height: 60vh; }
  .now.lyrics-focus:is([data-tab="lyrics"], [data-tab="queue"]) .now-cover { max-height: 0; opacity: 0; margin-top: -6px; overflow: hidden; pointer-events: none; }
  .now.lyrics-focus:is([data-tab="lyrics"], [data-tab="queue"]) .now-info { cursor: pointer; }
  .now.lyrics-focus:is([data-tab="lyrics"], [data-tab="queue"]) .now-info p { max-height: 0; opacity: 0; overflow: hidden; margin: 0; }
  .now.lyrics-focus:is([data-tab="lyrics"], [data-tab="queue"]) .now-info h2 { font-size: 18px; }
  .now.lyrics-focus:is([data-tab="lyrics"], [data-tab="queue"]) .now-art { gap: 6px; }
  .now.lyrics-focus:is([data-tab="lyrics"], [data-tab="queue"]) .now-panel { min-height: 0; }
  .now.lyrics-focus:is([data-tab="lyrics"], [data-tab="queue"]) .lyrics { font-size: clamp(24px, 6.4vw, 32px); }
}

/* "Ahora suena" en móvil: márgenes laterales más ajustados para aprovechar el ancho */
@media (max-width: 599px) {
  .now-head { padding-inline: 8px; }
  .now-body { padding-inline: 12px; }
  .tab-pane { padding-inline: 0; }
  .queue li { grid-template-columns: 44px minmax(0, 1fr) auto 26px; gap: 8px; padding: 6px 4px; }
  .queue .cover { width: 44px; height: 44px; }
  .queue-tools { padding-inline: 4px; }
  .now-progress, .now-controls { padding-inline: 2px; }
}

/* ---------- PWA: instalación, actualización y estado de conexión ---------- */
.pwa-bar, .pwa-update { position: fixed; z-index: 75; left: 50%; bottom: calc(var(--player-h) + 20px); transform: translate(-50%, 24px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 12px; width: min(460px, calc(100vw - 24px)); padding: 12px 14px; border-radius: 16px; background: var(--bg); color: var(--text); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .25s; }
.pwa-bar.show, .pwa-update.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.pwa-bar img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.pwa-bar div { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.pwa-bar strong { font-size: 14.5px; } .pwa-bar span { font-size: 12.5px; color: var(--text-2); }
.pwa-bar .btn, .pwa-update .btn { height: 36px; padding: 0 16px; flex: none; }
.pwa-update { bottom: calc(var(--player-h) + 76px); } .pwa-update span { flex: 1; font-size: 14px; font-weight: 500; }
.pwa-x { width: 30px; height: 30px; border-radius: 50%; font-size: 20px; line-height: 1; color: var(--text-2); flex: none; }
.pwa-x:hover { background: var(--surface); color: var(--text); }
.pwa-modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); }
.pwa-card { width: min(400px, 100%); background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.pwa-card h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.02em; } .pwa-card p { margin: 0 0 12px; color: var(--text-2); font-size: 14px; }
.pwa-card ol { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; }
.pwa-card .btn { width: 100%; justify-content: center; }
.pwa-ico { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--surface); font-size: 13px; }
@media (max-width: 599px) { .pwa-bar { bottom: calc(var(--tab-h) + var(--player-h) + 14px + env(safe-area-inset-bottom)); } .pwa-update { bottom: calc(var(--tab-h) + var(--player-h) + 76px + env(safe-area-inset-bottom)); } }
.foot-legal a[data-install] { color: var(--accent); }
/* Instalada como app: respeta las zonas seguras del dispositivo */
.is-pwa .topbar { padding-top: env(safe-area-inset-top); }
.is-pwa body { overscroll-behavior-y: none; }
