/* iPod touch (1.ª generación) — app "iPod" de iPhone OS 1–2 */

:root {
  --font: "Helvetica Neue", Helvetica, Arial, Roboto, sans-serif;
  --blue-text: #385487;
  --row: 44px;
  --sep: #d9d9d9;
  --gray: #808080;
  --bar-h: 44px;
  --tab-h: 50px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: #000;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body { -webkit-user-select: none; user-select: none; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
audio { display: none; }
[hidden] { display: none !important; }

.app {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top);
  background: #fff;
}

/* ---------------------------------------------------------------- barra de navegación */

.navbar {
  position: relative;
  z-index: 3;
  flex: 0 0 var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  background: linear-gradient(#b0bccd 0%, #889bb3 49%, #8195af 50%, #6d84a2 100%);
  border-bottom: 1px solid #2d3642;
  border-top: 1px solid #cdd5df;
}

.navbar h1 {
  position: absolute;
  left: 92px;
  right: 92px;
  margin: 0;
  text-align: center;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.2px;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* botones con forma de flecha */
.nb-back, .nb-now {
  position: absolute;
  top: 6px;
  z-index: 1;
  height: 30px;
  max-width: 112px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .5);
}
.nb-back { left: 5px; }
.nb-now { right: 5px; }
.nb-back span, .nb-now span {
  display: block;
  height: 30px;
  line-height: 30px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(#7d93b4 0%, #5978a6 49%, #4a6c9b 50%, #3d5f91 100%);
}
.nb-back span { padding: 0 9px 0 17px; clip-path: polygon(13px 0, 100% 0, 100% 100%, 13px 100%, 0 50%); border-radius: 0 5px 5px 0; }
.nb-now span { padding: 0 17px 0 9px; clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 0 100%); border-radius: 5px 0 0 5px; }
.nb-back:active span, .nb-now:active span { background: linear-gradient(#5f7aa3, #2f4f80); }

/* ---------------------------------------------------------------- vistas */

.views { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #fff; }

.view {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  background: #fff;
}
.view.grouped {
  background: #c5ccd4 repeating-linear-gradient(90deg, transparent 0 5px, rgba(255, 255, 255, .18) 5px 7px);
}

.view.in-right { animation: inR .32s cubic-bezier(.2, .7, .2, 1); }
.view.in-left { animation: inL .32s cubic-bezier(.2, .7, .2, 1); }
.view.out-left { animation: outL .32s cubic-bezier(.2, .7, .2, 1) forwards; }
.view.out-right { animation: outR .32s cubic-bezier(.2, .7, .2, 1) forwards; z-index: 1; }
@keyframes inR { from { transform: translateX(100%); } }
@keyframes inL { from { transform: translateX(-30%); } }
@keyframes outL { to { transform: translateX(-30%); } }
@keyframes outR { to { transform: translateX(100%); } }

/* ---------- tabla simple */

.sec-h {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 23px;
  padding: 0 12px;
  line-height: 22px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
  background: linear-gradient(rgba(165, 177, 186, .95), rgba(182, 192, 200, .95));
  border-top: 1px solid #98a4ad;
  border-bottom: 1px solid #a3adb5;
}

.row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--row);
  padding: 4px 12px;
  border-bottom: 1px solid var(--sep);
  color: #000;
  cursor: pointer;
}
.table.indexed .row { padding-right: 30px; }
.row:active, .row.hl { background: linear-gradient(#058cf5, #015fe6); color: #fff; }
.row:active .s, .row.hl .s, .row:active .val, .row.hl .val, .row:active .num { color: #fff; }

.row .txt { flex: 1; min-width: 0; }
.row .t { font-size: 20px; font-weight: 700; letter-spacing: -.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.two .t { font-size: 17px; }
.row .s { margin-top: 1px; color: var(--gray); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .val { color: var(--blue-text); font-size: 17px; white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.row .num { color: var(--gray); font-size: 15px; }
.row.info { cursor: default; }
.row.info:active { background: none; color: inherit; }
.row.info:active .s, .row.info:active .val { color: var(--gray); }
.row.info:active .val { color: var(--blue-text); }

.chev {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-right: 3px;
  border-top: 3px solid #7f7f7f;
  border-right: 3px solid #7f7f7f;
  transform: rotate(45deg);
}
.row:active .chev, .row.hl .chev { border-color: #fff; }

.thumb {
  flex: 0 0 auto;
  width: 55px;
  height: 55px;
  margin: -4px 0 -4px -12px;
  object-fit: cover;
  background: linear-gradient(135deg, #e6e6e6, #b9b9b9);
  border-right: 1px solid var(--sep);
}
div.thumb { display: grid; place-items: center; }
div.thumb svg { width: 26px; fill: #fff; }
.row.album { min-height: 55px; }

.ico { flex: 0 0 auto; width: 26px; display: grid; place-items: center; }
.ico svg { width: 22px; fill: #3c5c94; }
.row:active .ico svg { fill: #fff; }

.index {
  position: absolute;
  top: 4px;
  bottom: 4px;
  right: 2px;
  z-index: 2;
  width: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  border-radius: 11px;
  color: #6d7b8c;
  font-size: 11px;
  font-weight: 700;
  touch-action: none;
}
.index.active { background: rgba(0, 0, 0, .18); }

.empty {
  padding: 60px 30px;
  text-align: center;
  color: #7a7a7a;
  font-size: 17px;
  line-height: 1.4;
  white-space: pre-line;
}
.empty b { display: block; margin-bottom: 6px; color: #4c4c4c; font-size: 22px; }

.footer-count { padding: 14px; text-align: center; color: var(--gray); font-size: 17px; }

/* ---------- tabla agrupada (Más, Ajustes) */

.g-title { margin: 18px 20px 6px; color: #4c566c; font-size: 17px; font-weight: 700; text-shadow: 0 1px 0 #fff; }
.g-note { margin: 7px 20px 0; color: #4c566c; font-size: 14px; text-align: center; text-shadow: 0 1px 0 #fff; line-height: 1.35; }
.group {
  margin: 12px 10px 0;
  overflow: hidden;
  border: 1px solid #a9abad;
  border-radius: 9px;
  background: #fff;
}
.g-title + .group { margin-top: 0; }
.group .row { padding-left: 10px; }
.group .row:last-child { border-bottom: 0; }
.group .row .t { font-size: 17px; }
.group .row.center .t { text-align: center; color: var(--blue-text); }
.group .row.center:active .t { color: #fff; }
.view.grouped::after { content: ""; display: block; height: 24px; }

/* interruptor de iPhone OS 1 */
.switch {
  position: relative;
  flex: 0 0 auto;
  width: 94px;
  height: 27px;
  overflow: hidden;
  border: 1px solid #8e8e8e;
  border-radius: 6px;
}
.switch b {
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: -54px;
  width: 148px;
  display: flex;
  transition: left .18s;
}
.switch.on b { left: 0; }
.switch b::before, .switch b::after {
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
}
.switch b::before { content: "SÍ"; color: #fff; background: linear-gradient(#3f7ce6, #6aa0f5); }
.switch b::after { content: "NO"; order: 3; color: #7a7a7a; background: linear-gradient(#e6e6e6, #fff); }
.switch b i {
  order: 2;
  flex: 0 0 40px;
  border: 1px solid #8e8e8e;
  border-radius: 6px;
  background: linear-gradient(#cfcfcf, #fdfdfd);
}

/* ---------------------------------------------------------------- barra de pestañas */

.tabbar {
  flex: 0 0 auto;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding: 2px 2px env(safe-area-inset-bottom);
  display: flex;
  background: linear-gradient(#434343 0%, #151515 50%, #000 51%);
  border-top: 1px solid #000;
}
.tab {
  flex: 1;
  margin: 0 1px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 1px;
  padding-bottom: 3px;
  border-radius: 3px;
  color: #999;
  font-size: 10px;
  font-weight: 700;
}
.tab svg { width: 30px; height: 30px; fill: #8c8c8c; }
.tab.on { color: #fff; background: rgba(255, 255, 255, .15); }
.tab.on svg { fill: url(#tabGlow); }

/* ---------------------------------------------------------------- Reproduciendo */

.now {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  background: #000;
  color: #fff;
  transform: translateY(100%);
  visibility: hidden;
  transition: transform .38s cubic-bezier(.2, .7, .2, 1), visibility 0s .38s;
}
.now.open { transform: none; visibility: visible; transition: transform .38s cubic-bezier(.2, .7, .2, 1); }

.np-top {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 58px;
  padding: 4px 6px;
  background: linear-gradient(#4a4a4a, #141414 50%, #000 51%);
  border-bottom: 1px solid #000;
}

.np-back {
  position: relative;
  flex: 0 0 auto;
  width: 50px;
  height: 30px;
  clip-path: polygon(13px 0, 100% 0, 100% 100%, 13px 100%, 0 50%);
  border-radius: 0 5px 5px 0;
  background: linear-gradient(#6a6a6a, #2a2a2a 50%, #151515 51%, #222);
}
.np-back::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 9px;
  width: 16px;
  height: 12px;
  background: repeating-linear-gradient(#fff 0 2px, transparent 2px 5px);
}
.np-info { flex: 1; min-width: 0; text-align: center; font-size: 12px; font-weight: 700; line-height: 15px; }
.np-info div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-artist, .np-album { color: #a4a4a4; }
.np-title { color: #fff; }
.np-flip {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border: 1px solid #555;
  border-radius: 3px;
  background: #333 center / cover no-repeat;
}
.np-flip.list { background: linear-gradient(#5a5a5a, #1d1d1d); }
.np-flip.list::after { content: ""; display: block; margin: 12px auto; width: 18px; height: 14px; background: repeating-linear-gradient(#fff 0 2px, transparent 2px 6px); }

.np-stage { position: relative; flex: 1; min-height: 0; display: flex; justify-content: center; overflow: hidden; container-type: size; }

.np-art {
  position: relative;
  width: min(100cqw, 100cqh);
  height: min(100cqw, 100cqh);
  background: #1b1b1b center / cover no-repeat;
  -webkit-box-reflect: below 0 linear-gradient(transparent 50%, rgba(255, 255, 255, .3));
  cursor: pointer;
}
.np-art.ph { background: radial-gradient(circle at 50% 40%, #6b6b6b, #2a2a2a 75%); display: grid; place-items: center; }
.np-art.ph svg { width: 38%; fill: rgba(255, 255, 255, .55); }

.np-scrub {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 8px;
  background: rgba(0, 0, 0, .7);
  animation: fade .2s;
}
.np-time { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; }
.np-time span { flex: 0 0 auto; min-width: 38px; text-align: center; font-variant-numeric: tabular-nums; }
.np-time .slider { flex: 1; min-width: 0; }
.np-rep, .np-shuf { position: relative; flex: 0 0 auto; width: 34px; height: 30px; display: grid; place-items: center; }
.np-rep svg, .np-shuf svg { width: 24px; fill: #fff; }
.np-rep.on svg, .np-shuf.on svg { fill: #4a95ff; filter: drop-shadow(0 0 4px rgba(62, 140, 248, .9)); }
.np-rep b { position: absolute; right: 2px; bottom: 2px; font-size: 10px; color: #4a95ff; }

.np-queue {
  display: none;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: #000;
}
.now.show-q .np-stage { display: none; }
.now.show-q .np-queue { display: block; animation: flip .45s ease; }
@keyframes flip { from { transform: perspective(900px) rotateY(-90deg); } }

.q-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: linear-gradient(#3b3b3b, #161616);
  border-bottom: 1px solid #000;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}
.q-cover {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: #2a2a2a center / cover no-repeat;
  border: 1px solid #555;
  -webkit-box-reflect: below 1px linear-gradient(transparent 60%, rgba(255, 255, 255, .18));
}
.q-cover svg { width: 28px; fill: #777; }
.q-meta { flex: 1; min-width: 0; }
.q-k { color: #8a8a8a; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.q-t { color: #fff; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-s { color: #9a9a9a; font-size: 12px; margin-top: 2px; }
.q-edit { flex: 0 0 auto; width: 38px; height: 32px; display: grid; place-items: center; border-radius: 5px; border: 1px solid #000; background: linear-gradient(#6a6a6a, #2a2a2a 50%, #151515 51%, #222); }
.q-edit svg { width: 18px; fill: #fff; }
.q-row { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 4px 12px; border-bottom: 1px solid #262626; font-size: 16px; font-weight: 700; cursor: pointer; }
.q-row:nth-child(odd) { background: #0c0c0c; }
.q-row .n { flex: 0 0 26px; display: grid; place-items: center; color: #777; font-size: 13px; }
.q-row .n svg { width: 18px; fill: #4a95ff; }
.q-row .x { flex: 1; min-width: 0; }
.q-row .x div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-row .a { color: #888; font-size: 12px; font-weight: 400; }
.q-row.cur { background: linear-gradient(rgba(42, 107, 224, .35), rgba(42, 107, 224, .18)); }
.q-row.cur .x div:first-child { color: #6aaaff; }
.q-row:active { background: #1d4fa8; }

/* horizontal: portada a la izquierda, lista a la derecha */
.now.land {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
.now.land .np-stage { display: flex !important; grid-column: 1; grid-row: 1 / 4; width: min(52vw, calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom))); }
.now.land .np-art { -webkit-box-reflect: none; }
.now.land .np-top { grid-column: 2; grid-row: 1; min-height: 50px; }
.now.land .np-queue { display: block; grid-column: 2; grid-row: 2; animation: none; }
.now.land .np-ctrl { grid-column: 2; grid-row: 3; padding: 4px 16px 8px; }
.now.land .np-btns { height: 44px; }
.now.land .np-vol { height: 28px; }
.now.land .np-flip { display: none; }
.now.land .q-cover { display: none; }

.np-ctrl {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  padding: 8px 22px 14px;
  background: linear-gradient(rgba(70, 70, 70, .8), rgba(10, 10, 10, .88) 40%, rgba(0, 0, 0, .94));
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.np-btns { display: flex; justify-content: space-around; align-items: center; height: 58px; }
.np-btns button { width: 76px; height: 56px; display: grid; place-items: center; border-radius: 8px; }
.np-btns svg { width: 34px; fill: #fff; filter: drop-shadow(0 0 1px rgba(255, 255, 255, .8)); }
.np-btns button:active svg { filter: drop-shadow(0 0 9px #fff); }
.np-vol { display: flex; align-items: center; gap: 10px; height: 36px; }
.np-vol .slider { flex: 1; min-width: 0; }
.np-vol i { flex: 0 0 auto; width: 16px; height: 16px; background: #fff; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.spk0 { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9h4l5-4v14l-5-4H3z'/%3E%3C/svg%3E"); }
.spk1 { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9h4l5-4v14l-5-4H3zM15 8.5a5 5 0 0 1 0 7l-1.4-1.4a3 3 0 0 0 0-4.2zM17.8 5.7a9 9 0 0 1 0 12.6l-1.4-1.4a7 7 0 0 0 0-9.8z'/%3E%3C/svg%3E"); }

/* deslizadores plateados */
.slider {
  -webkit-appearance: none;
  appearance: none;
  height: 26px;
  margin: 0;
  background: transparent;
  --p: 0%;
}
.slider::-webkit-slider-runnable-track {
  height: 9px;
  border-radius: 5px;
  border: 1px solid #000;
  background: linear-gradient(90deg, #2a6be0 var(--p), #e4e4e4 var(--p));
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6);
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 23px;
  height: 23px;
  margin-top: -8px;
  border-radius: 50%;
  border: 1px solid #555;
  background: radial-gradient(circle at 50% 30%, #fff, #c9c9c9 60%, #9a9a9a);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}
.slider::-moz-range-track { height: 9px; border-radius: 5px; border: 1px solid #000; background: linear-gradient(90deg, #2a6be0 var(--p), #e4e4e4 var(--p)); }
.slider::-moz-range-thumb { width: 21px; height: 21px; border-radius: 50%; border: 1px solid #555; background: radial-gradient(circle at 50% 30%, #fff, #c9c9c9 60%, #9a9a9a); }

/* ---------------------------------------------------------------- alertas, hojas de acción, HUD */

.layer { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
.layer > * { pointer-events: auto; }

.dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }

.alert {
  position: absolute;
  left: 50%;
  top: 40%;
  width: min(284px, 88vw);
  padding: 14px 12px 12px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, .85);
  border-radius: 12px;
  background: linear-gradient(rgba(62, 88, 140, .97), rgba(21, 40, 86, .97) 34%, rgba(12, 28, 70, .97));
  box-shadow: 0 6px 22px rgba(0, 0, 0, .6);
  color: #fff;
  text-align: center;
  animation: pop .28s cubic-bezier(.2, 1.5, .4, 1);
}
.alert.has-input { top: 30%; }
@keyframes pop { from { transform: translate(-50%, -50%) scale(.7); opacity: 0; } }
.alert h2 { margin: 0 0 6px; font-size: 18px; text-shadow: 0 -1px 0 #000; }
.alert p { margin: 0 0 10px; font-size: 15px; line-height: 1.3; text-shadow: 0 -1px 0 #000; word-break: break-word; }
.alert input {
  width: 100%;
  margin: 2px 0 12px;
  padding: 7px 8px;
  border: 1px solid #222;
  border-radius: 3px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .5);
  font: 16px var(--font);
  color: #000;
  background: #fff;
  -webkit-user-select: text;
  user-select: text;
}
.alert .btns { display: flex; gap: 8px; }
.alert .btns.stack { flex-direction: column; }
.abtn {
  flex: 1;
  height: 42px;
  border: 1px solid rgba(0, 0, 0, .6);
  border-radius: 6px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .6);
  background: linear-gradient(rgba(255, 255, 255, .42), rgba(255, 255, 255, .14) 50%, rgba(255, 255, 255, .06) 51%, rgba(255, 255, 255, .12));
}
.abtn.main { background: linear-gradient(rgba(255, 255, 255, .58), rgba(255, 255, 255, .28) 50%, rgba(255, 255, 255, .2) 51%, rgba(255, 255, 255, .3)); }
.abtn:active { background: rgba(255, 255, 255, .5); }

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(rgba(70, 70, 70, .96), rgba(12, 12, 12, .96) 34px);
  border-top: 1px solid #888;
  animation: up .26s cubic-bezier(.2, .7, .2, 1);
}
@keyframes up { from { transform: translateY(100%); } }
.sheet .st { margin: 0 0 12px; color: #c9c9c9; text-align: center; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbtn {
  display: block;
  width: 100%;
  height: 46px;
  margin-bottom: 9px;
  border: 1px solid #000;
  border-radius: 7px;
  background: linear-gradient(#f2f2f2, #d3d3d3 50%, #c4c4c4 51%, #d8d8d8);
  color: #000;
  font-size: 19px;
  font-weight: 700;
  text-shadow: 0 1px 0 #fff;
}
.sbtn.red { background: linear-gradient(#ec8a8a, #d32727 50%, #c11111 51%, #d23535); color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, .5); }
.sbtn.cancel { margin: 6px 0 0; background: linear-gradient(#7d7d7d, #3c3c3c 50%, #2a2a2a 51%, #3b3b3b); color: #fff; text-shadow: 0 -1px 0 #000; }
.sbtn:active { background: linear-gradient(#5d9df6, #1a6be0); color: #fff; text-shadow: none; }

.hud {
  position: absolute;
  left: 50%;
  top: 45%;
  min-width: 150px;
  max-width: 82vw;
  padding: 16px 18px;
  transform: translate(-50%, -50%);
  border-radius: 12px;
  background: rgba(0, 0, 0, .8);
  color: #fff;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  pointer-events: none !important;
  animation: fade .2s;
}
.hud.prog { width: min(280px, 86vw); pointer-events: auto !important; }
.hud .ht { margin-bottom: 4px; }
.hud .hs { min-height: 1.2em; margin-bottom: 10px; color: #bbb; font-size: 13px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { height: 10px; overflow: hidden; border: 1px solid #000; border-radius: 5px; background: #e4e4e4; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5); }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(#7fb2ff, #2a6be0); transition: width .3s; }
.hud .abtn { width: 100%; height: 34px; margin-top: 12px; font-size: 15px; }

/* ---------------------------------------------------------------- filas: número o bocina */

.lead { flex: 0 0 26px; display: grid; place-items: center; color: var(--gray); font-size: 15px; font-weight: 700; }
.lead svg, .spk svg { width: 18px; fill: #2a6be0; }
.spk { flex: 0 0 auto; display: grid; place-items: center; }
.row.playing .t { color: #2a6be0; }
.row.playing:active .t, .row.playing.hl .t { color: #fff; }
.row:active .lead svg, .row:active .spk svg { fill: #fff; }

/* ---------------------------------------------------------------- vista de álbum / lista */

.view.detail { container-type: size; }
.ld {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  grid-template-areas: "cover meta" "list list";
  background: linear-gradient(#eef0f3, #cfd4da) 0 0 / 100% 152px no-repeat, #fff;
}
.ld-cover {
  grid-area: cover;
  width: 120px;
  height: 120px;
  margin: 16px 0 16px 12px;
  display: grid;
  place-items: center;
  background: #ccc center / cover no-repeat;
  border: 1px solid rgba(0, 0, 0, .35);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}
.ld-cover.ph { background: linear-gradient(135deg, #e6e6e6, #a9a9a9); }
.ld-cover.ph svg { width: 46px; fill: #fff; }
.ld-meta { grid-area: meta; min-width: 0; padding: 14px 12px 12px 10px; display: flex; flex-direction: column; }
.ld-title { color: #000; font-size: 19px; font-weight: 700; line-height: 1.15; text-shadow: 0 1px 0 #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ld-sub { margin-top: 3px; color: #3e4a5b; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-count { margin-top: 2px; color: #5d6876; font-size: 13px; }
.ld-btns { display: flex; gap: 6px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.ld-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 9px;
  border: 1px solid #6f7a88;
  border-radius: 6px;
  background: linear-gradient(#fdfdfd, #e3e6ea 50%, #d6dadf 51%, #e6e9ec);
  color: #2f3b4d;
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 1px 0 #fff;
}
.ld-btn svg { width: 13px; fill: #2f3b4d; }
.ld-btn:active { background: linear-gradient(#5d9df6, #1a6be0); color: #fff; text-shadow: none; }
.ld-btn:active svg { fill: #fff; }
.ld-btn:disabled { opacity: .45; }
.ld-list { grid-area: list; border-top: 1px solid #a5adb7; }
.ld-list .row .t { font-size: 17px; }

@media (orientation: landscape) and (max-height: 600px), (orientation: landscape) and (min-width: 700px) {
  .view.detail { overflow: hidden; }
  .ld {
    height: 100%;
    grid-template-columns: min(48cqw, 100cqh) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas: "cover meta" "cover list";
    background: #fff;
  }
  .ld-cover { width: 100%; height: auto; aspect-ratio: 1; max-height: 100cqh; margin: 0; border: 0; border-right: 1px solid #000; box-shadow: none; align-self: start; }
  .ld-meta { padding: 8px 12px; background: linear-gradient(#eef0f3, #cfd4da); border-bottom: 1px solid #a5adb7; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 10px; }
  .ld-title { font-size: 17px; -webkit-line-clamp: 1; flex: 1 1 100%; }
  .ld-sub, .ld-count { margin: 0; }
  .ld-btns { margin: 0 0 0 auto; padding: 4px 0 0; }
  .ld-list { overflow-y: auto; border-top: 0; }
  .tabbar { --tab-h: 40px; }
  .tab svg { width: 24px; height: 24px; }
  .navbar { flex-basis: 38px; }
  .nb-back, .nb-now { top: 4px; height: 28px; }
  .nb-back span, .nb-now span { height: 28px; line-height: 28px; }
}

/* ---------------------------------------------------------------- editor */

.ed {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top);
  background: #c5ccd4 repeating-linear-gradient(90deg, transparent 0 5px, rgba(255, 255, 255, .18) 5px 7px);
  animation: up .3s cubic-bezier(.2, .7, .2, 1);
}
.ed.closing { animation: down .25s ease forwards; }
@keyframes down { to { transform: translateY(100%); } }
.ed-bar { flex: 0 0 44px; }
.ed-bar h1 { left: 100px; right: 100px; }
.ed-btn {
  position: absolute;
  top: 7px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #2d3d55;
  border-radius: 5px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .5);
  background: linear-gradient(#8ea2c0, #5a77a3 50%, #4a6a99 51%, #56769f);
}
.ed-btn[data-a="cancel"] { left: 6px; }
.ed-btn.main { right: 6px; background: linear-gradient(#7aa6f5, #3c79e6 50%, #2a65d8 51%, #3a74e0); border-color: #1d3f86; }
.ed-btn:active { filter: brightness(.8); }
.ed-body { flex: 1; overflow-y: auto; padding-bottom: 30px; }
.ed-cover { display: flex; align-items: center; gap: 14px; margin: 16px 12px 6px; }
.ed-img {
  flex: 0 0 auto;
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  background: #ccc center / cover no-repeat;
  border: 1px solid #8a919a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}
.ed-img.ph { background: linear-gradient(135deg, #e6e6e6, #a9a9a9); }
.ed-img.ph svg { width: 46px; fill: #fff; }
.ed-imgbtns { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.ed-small {
  height: 38px;
  border: 1px solid #a9abad;
  border-radius: 8px;
  background: #fff;
  color: var(--blue-text);
  font-size: 15px;
  font-weight: 700;
}
.ed-small:active { background: linear-gradient(#058cf5, #015fe6); color: #fff; }
.ed-row { cursor: text; }
.ed-row:active { background: none; color: inherit; }
.ed-l { flex: 0 0 72px; font-size: 15px; font-weight: 700; color: #000; }
.ed-row input {
  flex: 1;
  min-width: 0;
  height: 36px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--blue-text);
  font: 17px var(--font);
  -webkit-user-select: text;
  user-select: text;
}
.ed-suf { color: var(--gray); font-size: 15px; }

/* pendientes de una lista compartida */
.row.pend .t { color: #8a8a8a; }
.row.pend .lead { color: #2a6be0; font-size: 17px; }
.row.pend:active .t { color: #fff; }
