/* musica.css — app Música. Mismo lenguaje visual que Fotos/Glovo/Gadis (ver /claude/notas/SPA_KIT.md):
   variables de tema, transición de tema 0.9s SOLO mientras cambia, barra flotante con píldora, modales propios. */
:root {
    --bg: #0c0e13; --surface: #12151c; --card: #1b1f27; --card-hi: #262b36; --outline: #4b5262;
    --text: #e6e1e5; --sub: #aab0bd; --accent: #19b394; --accent-text: #04201a;
    --nav-bg: #1b1f27; --nav-border: rgba(255,255,255,.10);
    --sat: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
    --sab: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
}
[data-theme="light"] {
    --bg: #f6f5f3; --surface: #fff; --card: #fff; --card-hi: #eeecea; --outline: #b9b5bd;
    --text: #1d1b20; --sub: #5b5761; --accent: #0e9a7e; --accent-text: #fff;
    --nav-bg: #fff; --nav-border: rgba(0,0,0,.12);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: var(--bg); color: var(--text);
    font-family: Roboto, system-ui, sans-serif; -webkit-user-select: none; user-select: none; overflow: hidden; }
html.tema-cambiando *, html.tema-cambiando *::before, html.tema-cambiando *::after {
    transition: background-color .9s ease, color .9s ease, border-color .9s ease, fill .9s ease, box-shadow .9s ease !important; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { width: 24px; height: 24px; fill: currentColor; display: block; flex: none; margin: 0; }
.hide { display: none !important; }

#top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center;
    padding: calc(var(--sat) + 10px) 16px 8px; background: var(--bg); }
#topTitle { font-size: 22px; font-weight: 600; flex: 1; letter-spacing: .2px; }
.ib { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 0; color: var(--text);
    position: relative; overflow: hidden; flex: none; }
.ib.big { width: 48px; height: 48px; background: var(--accent); color: var(--accent-text); }
.ib.lg { width: 56px; height: 56px; }
.ib.xl { width: 72px; height: 72px; background: var(--accent); color: var(--accent-text); }
.ib.xl svg { width: 36px; height: 36px; }
.ib.on { color: var(--accent); }
.ib:active { background: rgba(127,127,127,.22); }
.ib.big:active, .ib.xl:active { filter: brightness(.9); }

:root { --dockh: 0px; --dockpad: 0px; }
body[data-tab="search"], body[data-tab="movies"] { --dockh: 108px; --dockpad: 108px; }
#view { position: fixed; top: calc(var(--sat) + 62px); bottom: 0; left: 0; right: 0; overflow-y: auto;
    padding: 4px 14px calc(150px + var(--dockpad) + var(--sab)); -webkit-overflow-scrolling: touch; }
.sec { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--sub); margin: 18px 4px 8px; }
.card { background: var(--card); border-radius: 18px; padding: 16px; }
.stat { color: var(--sub); font-size: 14px; margin-top: 4px; }
.btn { background: var(--accent); color: var(--accent-text); border-radius: 22px; padding: 11px 20px; font-weight: 600; }
.btn.sec2 { background: var(--card-hi); color: var(--text); }
.btn:active { filter: brightness(.9); }
.btns { display: flex; flex-wrap: wrap; margin: 12px 0 2px; }
.btns > * { margin: 0 10px 10px 0; }
.chips { display: flex; flex-wrap: wrap; }
.chips > * { margin: 0 8px 8px 0; }
.chip { background: var(--card); border-radius: 16px; padding: 10px 14px; font-size: 14px; }
.chip small { color: var(--sub); margin-left: 6px; }
.chip:active { background: var(--card-hi); }

.row { display: flex; align-items: center; padding: 8px 4px; border-radius: 14px; min-height: 60px; }
.row:active { background: var(--card-hi); }
.row.cur .t1 { color: var(--accent); }
.row .mt { flex: 1; min-width: 0; }
.t1 { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t2 { font-size: 13px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.dur { font-size: 12px; color: var(--sub); }
.cv { width: 48px; height: 48px; border-radius: 10px; background: var(--card-hi); flex: none; position: relative; overflow: hidden;
    display: grid; place-items: center; color: var(--sub); }
.cv svg { width: 26px; height: 26px; opacity: .7; }
.cv img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.gi .cv { width: 100%; height: 0; padding-bottom: 100%; border-radius: 14px; }
.gi .cv svg { width: 40px; height: 40px; position: absolute; top: 50%; left: 50%; margin: -20px 0 0 -20px; }
.gi .t1 { margin-top: 6px; font-size: 14px; }
.crumb { display: flex; align-items: center; margin: 4px 0 6px; }
.crumb > * + * { margin-left: 4px; }
.crumb .t1 { font-size: 18px; font-weight: 600; }
.subtabs { display: flex; background: var(--card); border-radius: 22px; padding: 4px; margin: 4px 0 10px; }
.subtabs button + button { margin-left: 6px; }
.subtabs button { flex: 1; padding: 9px 4px; border-radius: 18px; font-size: 14px; color: var(--sub); }
.subtabs button.act { background: var(--accent); color: var(--accent-text); font-weight: 600; }
.search { display: flex; align-items: center; background: var(--card); border-radius: 26px; padding: 0 16px; height: 50px; margin: 4px 0 8px; }
.search input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 16px;
    -webkit-user-select: text; user-select: text; min-width: 0; }
.empty { text-align: center; color: var(--sub); padding: 40px 10px; }

/* mini reproductor y barra de pestañas flotantes */
#mini { position: fixed; left: 12px; right: 12px; bottom: calc(86px + var(--dockh) + var(--sab)); transition: bottom .32s cubic-bezier(.3,.9,.3,1); z-index: 30; height: 64px;
    background: var(--card-hi); border: 1px solid var(--nav-border); border-radius: 20px; display: flex; align-items: center;
    padding: 0 6px 0 8px; overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,.28); }
#mini { touch-action: none; }
.mini-in { flex: 1; min-width: 0; display: flex; align-items: center; height: 100%; }
.mini-in > * + * { margin-left: 10px; }
/* mini v2: miniatura (carátula o vídeo) + texto que se encoge + controles a la derecha; el título nunca pasa por debajo de los botones */
.mini-in { overflow: hidden; }
.mini-in .mt { flex: 1 1 0; min-width: 0; overflow: hidden; }
.mini-in .mt .t1 { font-size: 15px; font-weight: 600; }
.mini-in .mt .t2 { font-size: 12.5px; margin-top: 1px; }
.mthumb { position: relative; flex: none; width: 50px; height: 50px; }
.mini-in .mthumb .cv { width: 50px; height: 50px; border-radius: 12px; }
#miniVid { display: none; position: relative; width: 88px; height: 50px; border-radius: 12px; overflow: hidden; background: #000; }
#mini.hasv .mthumb { width: 88px; }
#mini.hasv #miniCv { display: none; }
#mini.hasv #miniVid { display: block; }
#mini > .ib { width: 42px; height: 42px; margin-left: 4px; }
#mini > .ib.big { width: 46px; height: 46px; }
@media (max-width: 479px) { #miniPrev { display: none; } }
#miniBar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(127,127,127,.25); }
#miniFill { display: block; height: 100%; width: 0; background: var(--accent); }
#nav { position: fixed; left: 12px; right: 12px; bottom: calc(14px + var(--sab)); z-index: 30; display: block;
    background: var(--nav-bg); border: 1px solid var(--nav-border); border-radius: 24px; padding: 6px;
    box-shadow: 0 4px 18px rgba(0,0,0,.28); }
#navRow { position: relative; display: flex; height: 52px; }
#navPill { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: 18px; background: var(--accent);
    transition: transform .28s cubic-bezier(.3,.9,.3,1), width .28s cubic-bezier(.3,.9,.3,1); }
.ni { flex: 1; position: relative; z-index: 1; display: grid; place-items: center; color: var(--sub); border-radius: 18px; }
.ni.act { color: var(--accent-text); }

/* pantalla de reproducción */
#np { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--bg); display: flex; flex-direction: column;
    transform: translateY(100%); transition: transform .32s cubic-bezier(.3,.9,.3,1); padding-top: var(--sat); }
#np.open { transform: translateY(0); }
.np-top { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; }
.np-lbl { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--sub); }
.np-body { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 6px 28px calc(28px + var(--sab));
    justify-content: space-between; min-height: 0; position: relative; z-index: 1; }
.np-top { position: relative; z-index: 1; }
#np { overflow: hidden; }
/* fondo: la propia carátula muy desenfocada y oscurecida */
#npBg { position: absolute; top: -40px; left: -40px; right: -40px; bottom: -40px; z-index: 0; background-size: cover; background-position: center;
    -webkit-filter: blur(38px) saturate(1.5); filter: blur(38px) saturate(1.5); opacity: .55; transition: background-image .4s; }
#npBg::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, var(--bg) 92%); }
/* carátula entera (sin recortar): la imagen conserva su proporción dentro de la caja */
.np-cv { width: 84vmin; height: 84vmin; max-width: 46vh; max-height: 46vh; margin-top: 6px; display: flex; align-items: center; justify-content: center;
    background: none; overflow: visible; border-radius: 0; }
.np-cv img { position: static; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 18px;
    box-shadow: 0 14px 44px rgba(0,0,0,.5); }
.np-cv.noimg { background: var(--card-hi); border-radius: 26px; box-shadow: 0 14px 44px rgba(0,0,0,.4); }
.np-cv svg { width: 25%; height: 25%; }
.np-cv:not(.noimg) svg { display: none; }   /* con carátula, el icono del tipo no se pinta al lado y la desplaza */
.np-info { width: 100%; text-align: center; }
.np-info .t1 { font-size: 24px; font-weight: 700; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.2; }
.np-info .t2 { font-size: 16px; margin-top: 6px; }
.np-seek { width: 100%; }
/* barra de progreso ondulada (Material 3 Expressive): la dibuja un canvas; el input invisible de encima recibe el dedo (v.2026-10-27.4) */
.wseek { position: relative; width: 100%; height: 32px; }
.wseek canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.wseek input[type=range] { position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 0; opacity: 0; }
#np.live .wseek canvas { visibility: hidden; }
.tm { display: flex; justify-content: space-between; font-size: 12px; color: var(--sub); margin-top: 2px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: none; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--accent) var(--p, 0%), var(--outline) var(--p, 0%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
    background: var(--accent); margin-top: -6px; }
.np-ctl { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 420px; }

/* modal propio, toast */
#mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 80; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center;
    padding: 12px calc(12px) calc(12px + var(--sab)); }
#modal { width: 100%; max-width: 480px; background: var(--card); border-radius: 24px; padding: 20px; max-height: 80vh; overflow-y: auto; }
#modal h3 { font-size: 18px; margin-bottom: 8px; }
#modal p { color: var(--sub); font-size: 14px; margin-bottom: 12px; }
#modal input { width: 100%; background: var(--card-hi); border: 0; outline: 0; border-radius: 14px; color: var(--text); font: inherit;
    padding: 14px; -webkit-user-select: text; user-select: text; margin-bottom: 8px; }
#modal .acts { display: flex; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }
#modal .acts > * { margin: 0 0 0 10px; }
.mi { display: flex; align-items: center; padding: 14px 6px; border-radius: 12px; font-size: 16px; }
.mi:active { background: var(--card-hi); }
#toast { position: fixed; left: 50%; bottom: calc(168px + var(--dockh) + var(--sab)); transform: translateX(-50%) translateY(20px); z-index: 90;
    background: var(--card-hi); color: var(--text); padding: 10px 18px; border-radius: 20px; font-size: 14px; opacity: 0;
    transition: opacity .25s, transform .25s; pointer-events: none; max-width: 90vw; text-align: center; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* separaciones que antes daba gap en flex */
.row > * + * { margin-left: 12px; }
.mi > * + * { margin-left: 12px; }
.search > * + * { margin-left: 8px; }
.stat + .btns { margin-top: 10px; }

/* radio del coche / pantallas apaisadas anchas: reproductor a dos columnas y controles grandes */
@media (orientation: landscape) and (min-width: 700px) {
    #view { padding-left: 24px; padding-right: 24px; }
    .row { min-height: 72px; }
    .t1 { font-size: 18px; }
    .t2 { font-size: 14px; }
    .cv { width: 56px; height: 56px; }
    .ib { width: 52px; height: 52px; }
    #navRow { height: 60px; }
    #mini { height: 72px; bottom: calc(96px + var(--dockh) + var(--sab)); }
    .np-body { padding-top: 0; padding-bottom: 10px; }
    #npBg { display: none; }
    .np-info { text-align: left; }
    .np-cv { width: 36vh; height: 36vh; max-width: 36vh; max-height: 36vh; margin: 0; }
    .np-info .t1 { font-size: 20px; }
    .np-seek, .np-info { max-width: 720px; }
}
body.car .row { min-height: 80px; }

/* progreso de descargas al dispositivo */
#dlpill { position: fixed; right: 16px; bottom: calc(160px + var(--dockh) + var(--sab)); z-index: 35; background: var(--accent); color: var(--accent-text);
    border-radius: 20px; padding: 8px 8px 8px 16px; font-size: 13px; font-weight: 600; display: flex; align-items: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.3); }
#dlpill button { margin-left: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.15); color: inherit; }

/* sin «tirar para recargar» ni rebote que encadene con la página (v.7) */
html, body, #view, #modal { overscroll-behavior-y: contain; }
/* las tiras con scroll horizontal también son contenedores verticales: sin esto, un gesto vertical que empieza en ellas no llega a la lista (se quedaba trabado) */
.chips.hs, .subtabs, #srTabs { overscroll-behavior-y: auto; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
#view { -webkit-overflow-scrolling: touch; }
/* pestañas de resultados con desplazamiento lateral */
.subtabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.subtabs::-webkit-scrollbar { display: none; }
.subtabs button { flex: 1 0 auto; padding: 9px 12px; white-space: nowrap; }
.subtabs small { opacity: .7; margin-left: 2px; }
/* ajustes: paleta de color e iconos del lanzador */
.pal { display: grid; grid-template-columns: repeat(8, 1fr); grid-gap: 8px; }
.pal button { height: 34px; border-radius: 10px; border: 3px solid transparent; }
.pal button.on { border-color: var(--text); }
.icon-grid { display: grid; grid-template-columns: repeat(5, 1fr); grid-gap: 8px; }
.icon-grid button { background: var(--card-hi); border-radius: 14px; padding: 8px 2px 6px; font-size: 11px; color: var(--sub); border: 2px solid transparent; }
.icon-grid button.on { border-color: var(--accent); color: var(--text); }
.icon-grid svg { display: block; width: 46px; height: 46px; margin: 0 auto 4px; }
.chip.on { background: var(--accent); color: var(--accent-text); }
#modal .sec { margin-top: 14px; }

/* ---------------------------------------------------------------- vídeo de YouTube en el reproductor + giro + gestos (v.2026-10-26.4) */
#vbox, #vizbox { position: relative; width: 100%; height: 0; padding-top: 56.25%; margin-top: 6px; background: #000; border-radius: 14px; overflow: hidden;
    touch-action: none; -webkit-user-select: none; user-select: none; box-shadow: 0 14px 44px rgba(0,0,0,.5); }
#npVid { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
#np.video #npCv, #np.viz #npCv { display: none; }
/* visualizador (v.2026-10-27.5) */
#vizbox { padding-top: 72%; }
#viz { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; background: #000; }
#vzFx, #vzFs { position: absolute; z-index: 3; background: rgba(0,0,0,.55); color: #fff; border-radius: 14px; }
#vzFx { top: 8px; left: 8px; padding: 5px 11px; font-size: 12px; font-weight: 700; }
#vzFs { top: 8px; right: 8px; width: 36px; height: 30px; padding: 0; display: flex; align-items: center; justify-content: center; }
#vzFs svg { width: 18px; height: 18px; fill: #fff; }
#npViz.on { color: var(--accent); }
/* tirar para actualizar (v.2026-10-27.6) */
#ptr { position: fixed; left: 50%; top: 0; z-index: 30; width: 40px; height: 40px; margin-left: -20px; border-radius: 50%; background: var(--card-hi); color: var(--text);
    box-shadow: 0 4px 14px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none;
    -webkit-transform: translateY(-60px); transform: translateY(-60px); }
#ptr.back { -webkit-transition: opacity .2s, -webkit-transform .2s; transition: opacity .2s, transform .2s; }
#ptr svg { width: 22px; height: 22px; fill: currentColor; }
#ptr.ready { background: var(--accent); color: var(--accent-text); }
@-webkit-keyframes ptrSpin { to { -webkit-transform: rotate(360deg); } }
@keyframes ptrSpin { to { transform: rotate(360deg); } }
#ptr.spin svg { -webkit-animation: ptrSpin .8s linear infinite; animation: ptrSpin .8s linear infinite; }
#vq { position: absolute; top: 8px; right: 8px; z-index: 3; background: rgba(0,0,0,.55); color: #fff; border-radius: 14px; padding: 5px 11px; font-size: 12px; font-weight: 700; }
#vhud { position: absolute; top: 50%; left: 50%; -webkit-transform: translate(-50%,-50%); transform: translate(-50%,-50%); z-index: 4; pointer-events: none;
    background: rgba(0,0,0,.68); color: #fff; border-radius: 18px; padding: 12px 20px; display: flex; align-items: center; white-space: nowrap; }
#vhud svg { width: 26px; height: 26px; fill: #fff; margin-right: 10px; }
#vhud b { font-size: 18px; font-weight: 700; }
#dimmer { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #000; opacity: 0; pointer-events: none; z-index: 95; }
/* cambio de canción deslizando la carátula */
.np-cv { touch-action: pan-y; }
@-webkit-keyframes cvInL { from { opacity: 0; -webkit-transform: translateX(70px); } to { opacity: 1; -webkit-transform: none; } }
@keyframes cvInL { from { opacity: 0; transform: translateX(70px); } to { opacity: 1; transform: none; } }
@-webkit-keyframes cvInR { from { opacity: 0; -webkit-transform: translateX(-70px); } to { opacity: 1; -webkit-transform: none; } }
@keyframes cvInR { from { opacity: 0; transform: translateX(-70px); } to { opacity: 1; transform: none; } }
.np-cv.inL { -webkit-animation: cvInL .26s ease-out; animation: cvInL .26s ease-out; }
.np-cv.inR { -webkit-animation: cvInR .26s ease-out; animation: cvInR .26s ease-out; }
/* móvil girado sin vídeo: carátula a la izquierda, información y controles a la derecha */
@media (orientation: landscape) and (max-height: 600px) {
    #np:not(.vfull) .np-body { display: grid; grid-template-columns: 40% 1fr; grid-template-rows: 1fr auto auto auto 1fr; grid-column-gap: 24px;
        padding: 0 calc(24px + env(safe-area-inset-right, 0px)) 8px calc(24px + env(safe-area-inset-left, 0px)); align-items: center; }
    #np:not(.vfull) .np-cv { grid-column: 1; grid-row: 1 / 6; justify-self: center; width: 100%; height: 72vh; max-width: 100%; max-height: 72vh; margin: 0; }
    #np:not(.vfull) #vbox, #np:not(.vfull) #vizbox { grid-column: 1; grid-row: 1 / 6; align-self: center; margin: 0; }
    #np:not(.vfull) .np-info { grid-column: 2; grid-row: 2; max-width: none; }
    #np:not(.vfull) .np-seek { grid-column: 2; grid-row: 3; max-width: none; }
    #np:not(.vfull) .np-ctl { grid-column: 2; grid-row: 4; max-width: none; }
    #np:not(.vfull) .np-info .t1 { font-size: 20px; }
}
/* vídeo a pantalla completa (móvil girado): la imagen lo llena todo; barra, tiempos y botones salen al tocar y se ocultan solos */
#np.vfull { background: #000; padding-top: 0; }
#np.vfull #npBg, #np.vfull .np-info { display: none; }
#np.vfull .np-body { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: block; padding: 0; }
#np.vfull #vbox, #np.vfull #vizbox { position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: auto; height: auto; padding: 0; margin: 0; border-radius: 0; box-shadow: none; z-index: 1; }
#np.vfull .np-body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 190px; z-index: 5; pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0)); transition: opacity .25s; }
#np.vfull .np-top { position: absolute; top: 0; left: 0; right: 0; z-index: 6; padding: calc(6px + var(--sat)) calc(14px + env(safe-area-inset-right, 0px)) 26px calc(14px + env(safe-area-inset-left, 0px));
    background: linear-gradient(to bottom, rgba(0,0,0,.72), rgba(0,0,0,0)); transition: opacity .25s; }
#np.vfull .np-seek { position: absolute; left: calc(30px + env(safe-area-inset-left, 0px)); right: calc(30px + env(safe-area-inset-right, 0px)); bottom: calc(72px + var(--sab)); z-index: 6; max-width: none; transition: opacity .25s; }
#np.vfull .np-ctl { position: absolute; left: 50%; bottom: calc(8px + var(--sab)); width: 80%; max-width: 480px; -webkit-transform: translateX(-50%); transform: translateX(-50%); z-index: 6; transition: opacity .25s; }
#np.vfull #vzFx { top: calc(62px + var(--sat)); left: calc(14px + env(safe-area-inset-left, 0px)); z-index: 6; transition: opacity .25s; }
#np.vfull #vzFs { top: calc(62px + var(--sat)); right: calc(14px + env(safe-area-inset-right, 0px)); z-index: 6; transition: opacity .25s; }
#np.vfull #vq { top: calc(62px + var(--sat)); right: calc(14px + env(safe-area-inset-right, 0px)); z-index: 6; transition: opacity .25s; }
#np.vfull:not(.ui) .np-top, #np.vfull:not(.ui) .np-seek, #np.vfull:not(.ui) .np-ctl, #np.vfull:not(.ui) .np-body::after, #np.vfull:not(.ui) #vq, #np.vfull:not(.ui) #vzFx, #np.vfull:not(.ui) #vzFs { opacity: 0; pointer-events: none; }
#np.vfull .np-lbl { text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 600; color: #fff; max-width: 52vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#npVideo.on { color: var(--accent); }
.more { margin: 8px 0 4px; }

/* radio en directo */
.dur.lv { color: var(--accent); font-weight: 700; letter-spacing: .6px; font-size: 11px; }
.chips.hs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 4px; scrollbar-width: none; }
.chips.hs::-webkit-scrollbar { display: none; }
.chips.hs > * { flex: none; white-space: nowrap; }
#np.live .np-seek input { visibility: hidden; }
#np.live #tDur { color: var(--accent); font-weight: 700; letter-spacing: .6px; }
#npFav.on { color: var(--accent); }

#btnSync { margin-right: 4px; }
#btnSync.busy { pointer-events: none; }
#btnSync.busy svg { animation: syncspin 1s linear infinite; }
@keyframes syncspin { to { transform: rotate(360deg); } }

/* búsqueda y subpestañas acopladas dentro de la barra flotante: solo se despliegan en la pestaña Buscar */
#navSub { height: 0; opacity: 0; overflow: hidden; pointer-events: none; padding: 0 2px;
    transition: height .32s cubic-bezier(.3,.9,.3,1), opacity .2s; }
body[data-tab="search"] #navSub, body[data-tab="movies"] #navSub { height: var(--dockh); opacity: 1; pointer-events: auto; padding-top: 2px; }
/* vertical: al bajar por una lista la búsqueda y las subpestañas se esconden hacia abajo y vuelven al subir. El relleno del final de la lista
   (--dockpad) NO cambia, así el desplazamiento no se mueve solo (antes parpadeaba) */
body.subhide[data-tab="search"], body.subhide[data-tab="movies"] { --dockh: 0px; }
body.subhide #navSub { opacity: 0; pointer-events: none; }
#navSub .search { height: 44px; margin: 0; background: rgba(127,127,127,.16); }
#navSub .subtabs { margin: 6px 0 0; background: rgba(127,127,127,.16); }

/* canales y podcasts */
.cv.rd { border-radius: 50%; }
.chip.subb { flex: none; margin-left: 8px; padding: 8px 14px; font-size: 13px; background: var(--card-hi); }
.chip.subb.on { background: var(--accent); color: var(--accent-text); }

/* modo edición de la biblioteca */
#ed { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column; }
#ed .edh { display: flex; align-items: center; padding: calc(var(--sat) + 10px) 12px 8px; }
#ed .edh .t1 { flex: 1; font-size: 18px; font-weight: 600; margin: 0 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ed .edl { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; padding: 4px 12px calc(var(--sab) + 96px); }
#ed .edinfo { color: var(--sub); font-size: 13px; padding: 2px 6px 10px; }
#ed .edck { color: var(--sub); flex: none; margin-right: 2px; }
#ed .edck.on { color: var(--accent); }
#ed .edbar { position: absolute; left: 12px; right: 12px; bottom: calc(var(--sab) + 12px); background: var(--card-hi); border-radius: 24px; padding: 10px 12px 10px 18px; display: flex; align-items: center; flex-wrap: wrap; box-shadow: 0 4px 18px rgba(0,0,0,.35); }
#ed .edbar .n { flex: 1; font-weight: 600; min-width: 110px; }
#ed .edbar .btn { margin-left: 8px; padding: 9px 16px; }
#ed .edbar .btn.sec2 { background: var(--card); }

.btns.sm { margin: 8px 0 0; }
.btns.sm > * { margin: 0 8px 8px 0; }
.btn.sm { padding: 7px 14px; font-size: 13px; }

/* edición dentro de la biblioteca */
.edstrip { display: flex; align-items: center; background: var(--card); border-radius: 18px; padding: 2px 6px 2px 16px; margin: 6px 0 8px; font-size: 14px; font-weight: 600; color: var(--accent); }
.edstrip span { flex: 1; }
.edsel { color: var(--sub); flex: none; margin-right: 2px; }
.edsel.on { color: var(--accent); }
#edBar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--dockh) + var(--sab) + 16px); z-index: 55; background: var(--card-hi); border-radius: 24px; padding: 8px 12px 0 18px; display: flex; align-items: center; flex-wrap: wrap; box-shadow: 0 4px 18px rgba(0,0,0,.35); }
#edBar .n { flex: 1; font-weight: 600; min-width: 110px; margin-bottom: 8px; }
#edBar .btn { margin: 0 0 8px 8px; }
#edBar .btn.sec2 { background: var(--card); }

/* ajustes en filas */
.setrow { display: flex; align-items: center; background: var(--card-hi); border-radius: 16px; padding: 10px 12px; margin-top: 8px; cursor: pointer; }
.setrow:active { filter: brightness(.92); }
.setrow .lead { width: 40px; height: 40px; margin-right: 12px; display: flex; align-items: center; justify-content: center; flex: none; color: var(--accent); }
.setrow .icprev svg { width: 40px; height: 40px; }
.setrow .mt { flex: 1; min-width: 0; }
.setrow .t1 { font-size: 15px; font-weight: 600; }
.setrow .t2 { font-size: 13px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.setrow .chev { color: var(--sub); flex: none; }
.swatch { display: block; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--text); box-sizing: border-box; }
#modal .note { font-size: 12px; margin: 10px 2px 0; }

#topIcon { flex: none; width: 32px; height: 32px; margin-right: 10px; }
#topIcon svg { width: 32px; height: 32px; }

/* ---------------------------------------------------------------- películas (v.2026-10-26.6) */
.mvq { display: block; width: 100%; box-sizing: border-box; background: var(--card); color: var(--text); border: 0; outline: 0; border-radius: 22px; padding: 12px 18px; font-size: 15px; margin: 2px 0 12px; }
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); grid-column-gap: 10px; grid-row-gap: 14px; padding-bottom: 96px; }
@media (min-width: 560px) { .mgrid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 900px) { .mgrid { grid-template-columns: repeat(8, 1fr); } }
.mc { min-width: 0; }
.mc .pz { position: relative; width: 100%; padding-top: 150%; background: var(--card); border-radius: 10px; overflow: hidden; }
.mc .pz img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.mc .pz .pg { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0,0,0,.5); }
.mc .pz .pg i { display: block; height: 100%; background: var(--accent); }
.mc .mt1 { font-size: 13px; font-weight: 600; margin-top: 6px; line-height: 1.25; max-height: 2.5em; overflow: hidden; }
.mc .mt2 { font-size: 12px; color: var(--sub); margin-top: 2px; }
.mrow { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; overscroll-behavior-x: contain; }
.mrow::-webkit-scrollbar { display: none; }
.mrow .mc { flex: none; width: 112px; margin-right: 10px; }
.mvd { display: flex; margin-bottom: 12px; }
.mvdp { width: 96px; border-radius: 8px; flex: none; margin-right: 14px; align-self: flex-start; }
.mvdi { min-width: 0; }
.mvo { max-height: 34vh; overflow-y: auto; margin: 0 0 6px; line-height: 1.45; font-size: 14px; }
.mvopts { max-height: 58vh; overflow-y: auto; }
.mvopt { padding: 11px 12px; border-radius: 12px; font-size: 14px; }
.mvopt.on { background: var(--accent); color: var(--accent-text); }
#mv { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 80; background: #000; color: #fff; touch-action: none; -webkit-user-select: none; user-select: none; }
#mvVid { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
#mvTop { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; transition: opacity .25s;
    padding: calc(6px + var(--sat)) calc(14px + env(safe-area-inset-right, 0px)) 26px calc(14px + env(safe-area-inset-left, 0px)); background: linear-gradient(rgba(0,0,0,.72), rgba(0,0,0,0)); }
#mvTitle { flex: 1; min-width: 0; margin: 0 10px; font-size: 15px; font-weight: 600; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#mvBot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; transition: opacity .25s;
    padding: 46px calc(30px + env(safe-area-inset-right, 0px)) calc(8px + var(--sab)) calc(30px + env(safe-area-inset-left, 0px)); background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.78)); }
#mvBot .np-ctl { margin: 0 auto; max-width: 360px; }
#mvBot .tm { color: rgba(255,255,255,.8); }
#mvBot .np-seek { max-width: none; width: 100%; }   /* la barra de la película ocupa todo el ancho (el max-width:720px del apaisado la dejaba corta) */
#mv .ib { color: #fff; }
#mv .ib.xl { color: var(--accent-text); }
#mv:not(.ui) #mvTop, #mv:not(.ui) #mvBot { opacity: 0; pointer-events: none; }
#mvSpin { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; z-index: 2; pointer-events: none; }
#mvSpin i { display: block; width: 100%; height: 100%; box-sizing: border-box; border-radius: 50%; border: 4px solid rgba(255,255,255,.25); border-top-color: #fff;
    -webkit-animation: mvsp .9s linear infinite; animation: mvsp .9s linear infinite; }
@-webkit-keyframes mvsp { to { -webkit-transform: rotate(360deg); } }
@keyframes mvsp { to { transform: rotate(360deg); } }
#mvHud { position: absolute; top: 50%; left: 50%; -webkit-transform: translate(-50%,-50%); transform: translate(-50%,-50%); z-index: 4; pointer-events: none;
    background: rgba(0,0,0,.68); color: #fff; border-radius: 18px; padding: 12px 20px; display: flex; align-items: center; white-space: nowrap; }
#mvHud svg { width: 26px; height: 26px; fill: #fff; margin-right: 10px; }
#mvHud b { font-size: 18px; font-weight: 700; }
@media (orientation: landscape) { #mvBot { padding-top: 30px; } #mvBot .np-ctl { max-width: 300px; } }

/* descargas en curso (v.2026-10-26.13) */
.card.jobs { padding: 6px 14px; }
.job { display: flex; align-items: center; padding: 10px 0; }
.job + .job { border-top: 1px solid var(--outline); }
.job .mt { flex: 1; min-width: 0; }
.job .t1 { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job .t2 { font-size: 13px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.jbar { height: 5px; border-radius: 3px; background: var(--outline); margin-top: 8px; overflow: hidden; }
.jbar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); transition: width .5s; }
.jbar.ind i { animation: jind 1.2s ease-in-out infinite alternate; transition: none; }
@keyframes jind { from { margin-left: 0; } to { margin-left: 65%; } }
.job .ib { margin-left: 8px; flex: none; }
#dlpill { cursor: pointer; }

/* ================================================================ v.2026-10-26.12 · DISPOSICIÓN APAISADA PARA LA RADIO DEL COCHE
   · Apaisado ancho (>=700 px): el menú pasa de la barra de abajo a una COLUMNA A LA IZQUIERDA (iconos + nombre) y el contenido ocupa el resto.
   · Apaisado muy ancho (>=900 px, p. ej. 1024x600): además el reproductor queda FIJO a la derecha (pantalla partida):
     menú | contenido | reproduciendo ahora. Sin mini reproductor (ya no hace falta) y sin tocar nada para abrir el reproductor.
   Compatible con Chrome 70 (sin min(), clamp(), gap en flex, inset ni aspect-ratio). */
.ni::after { content: attr(data-lbl); display: none; font-size: 11px; line-height: 1.1; margin-top: -4px; font-weight: 500; }
@media (orientation: landscape) and (min-width: 700px) {
    :root { --rail: 96px; --npw: 0px; }
    #nav { left: 0; right: auto; top: 0; bottom: 0; width: var(--rail); border-radius: 0; border-width: 0 1px 0 0; box-shadow: none;
        padding: calc(var(--sat) + 8px) 8px calc(var(--sab) + 8px); }
    #navRow { height: 100%; flex-direction: column; }
    .ni { flex: 1 1 0; max-height: 120px; margin: 2px 0; align-content: center; }
    .ni svg { width: 30px; height: 30px; }
    .ni::after { display: block; }
    #navPill { top: 0; bottom: auto; left: 0; width: 100%; border-radius: 18px; }
    #top { left: var(--rail); right: var(--npw); }
    body[data-tab="search"], body[data-tab="movies"] { --dockh: 0px; --dockpad: 0px; --subh: 112px; }
    #view { left: var(--rail); right: var(--npw); top: calc(var(--sat) + 62px + var(--subh, 0px)); padding-bottom: calc(104px + var(--sab)); }
    #navSub { position: fixed; left: calc(var(--rail) + 12px); right: calc(var(--npw) + 12px); top: calc(var(--sat) + 58px);
        background: var(--nav-bg); border-radius: 20px; padding: 0 10px; z-index: 19; }
    body[data-tab="search"] #navSub, body[data-tab="movies"] #navSub { height: var(--subh); padding-top: 8px; border: 1px solid var(--nav-border); }
    #mini { left: calc(var(--rail) + 12px); right: calc(var(--npw) + 12px); bottom: calc(12px + var(--sab)); }
    #toast { bottom: calc(100px + var(--sab)); }
    #dlpill { bottom: calc(96px + var(--sab)); right: calc(var(--npw) + 16px); }
    #mask { align-items: center; }
    #modal { max-height: 86vh; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (orientation: landscape) and (min-width: 900px) {
    body.hascur { --npw: 40vw; }
    body.hascur.npopen { --npw: 0px; }
    body:not(.hascur) #np { display: none; }
    body:not(.npopen) #mini { display: none !important; }
    body:not(.npopen) #np { left: auto; width: var(--npw); -webkit-transform: none !important; transform: none !important; transition: none; z-index: 25;
        border-left: 1px solid var(--nav-border); }
    body:not(.npopen) #np .np-top #npClose, body:not(.npopen) #np #npVideo { visibility: hidden; pointer-events: none; }
    body:not(.npopen) #np:not(.vfull) .np-body { display: flex; flex-direction: column; justify-content: space-between; align-items: center;
        padding: 0 22px calc(16px + var(--sab)); }
    body:not(.npopen) #np:not(.vfull) .np-cv { grid-column: auto; grid-row: auto; justify-self: auto; width: 34vh; height: 34vh; max-width: 100%; max-height: 34vh; margin: 2px auto 0; }
    body:not(.npopen) #np:not(.vfull) .np-info { grid-column: auto; grid-row: auto; max-width: none; text-align: center; }
    body:not(.npopen) #np:not(.vfull) .np-info .t1 { font-size: 21px; }
    body:not(.npopen) #np:not(.vfull) .np-seek { grid-column: auto; grid-row: auto; max-width: none; }
    body:not(.npopen) #np:not(.vfull) .np-ctl { grid-column: auto; grid-row: auto; max-width: none; }
    #npBg { display: block; }
}

/* v.2026-10-26.14: ajustes de la disposición apaisada (barra de edición y películas respetan el menú lateral) */
@media (orientation: landscape) and (min-width: 700px) {
    #edBar { left: calc(var(--rail) + 12px); right: calc(var(--npw) + 12px); bottom: calc(var(--sab) + 12px); }
    #mvBot .np-ctl { max-width: 360px; }
}

/* v.2026-10-26.16: apaisado, la búsqueda y las subpestañas se pliegan al bajar la lista y vuelven al subir */
@media (orientation: landscape) and (min-width: 700px) {
    #view { transition: top .25s cubic-bezier(.3,.9,.3,1); }
    body.subhide[data-tab="search"], body.subhide[data-tab="movies"] { --subh: 0px; }
    body.subhide #navSub { opacity: 0; pointer-events: none; padding-top: 0; border-width: 0; }
}

/* ordenar y modo edición de Jellyfin */
.mi.on { color: var(--accent); }
.mi .mis { display: inline-block; width: 24px; height: 24px; flex: none; }
/* barra de Vídeo: mismos botones que los de YouTube (píldora, el elegido con el color de acento); si no caben, bajan a otra fila */
.mvtools .chip svg { width: 16px; height: 16px; vertical-align: -3px; margin-left: 4px; }
#btnEd { color: var(--accent); }
.mvtools .chip svg:first-child { margin: 0 4px 0 0; }
.chips.hs.mvtools { flex-wrap: wrap; overflow: visible; margin-bottom: 4px; }
.chips.hs.mvtools > .chip { white-space: nowrap; }
.mc .pz .mvck { position: absolute; top: 4px; left: 4px; z-index: 2; width: 34px; height: 34px; padding: 0; margin: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; }
.mc .pz .mvck.on { color: var(--accent); background: rgba(0,0,0,.72); }
.row .mvck { flex: none; }

/* Vídeo -> YouTube: filas con miniatura 16:9 (sin aspect-ratio ni gap: radio con Chrome 70) */
.vrow { position: relative; display: block; min-height: 0; padding: 0 0 16px; border-radius: 14px; }
.vrow > * + * { margin-left: 0; }
.vrow .vth { position: relative; width: 100%; height: 0; padding-top: 56.25%; border-radius: 14px; overflow: hidden; background: var(--card); }
.vrow .vth img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.vrow .vdur { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.78); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 6px; border-radius: 6px; }
.vrow .vmt { padding: 8px 48px 0 4px; min-width: 0; }
.vrow .vmt .t1 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; font-size: 15px; font-weight: 600; }
.vrow .vmt .t2 { margin-top: 2px; }
.vrow > .ib { position: absolute; right: 0; bottom: 14px; }
@media (orientation: landscape) and (min-width: 700px) {
    #fL, #sY, #chT, #plT, #dJfL { display: flex; flex-wrap: wrap; margin: 0 -6px; }
    #fL .vrow, #sY .vrow, #chT .vrow, #plT .vrow, #dJfL .vrow { width: 33.333%; box-sizing: border-box; padding: 0 6px 16px; }
    .vrow > .ib { right: 6px; }
}

/* Inicio: resumen compacto y Aleatorio con dos botones grandes */
.hcard .btns { margin-top: 10px; }
.hst { display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 6px; color: var(--sub); font-size: 12.5px; scrollbar-width: none; }
.hst::-webkit-scrollbar { display: none; }
.hst > span { flex: none; white-space: nowrap; margin-right: 14px; padding: 2px 0; }
.hst > span[data-hs]:active { color: var(--accent); }
.hst b { color: var(--text, inherit); font-weight: 700; }
.bigch { display: flex; margin: 4px -6px 2px; }
.bigb { flex: 1 1 0; margin: 6px; padding: 28px 8px; border-radius: 22px; background: var(--card-hi); color: var(--accent); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 19px; font-weight: 700; }
.bigb svg { width: 46px; height: 46px; margin-bottom: 8px; }
.bigb span { color: inherit; }
.bigb:active { background: var(--accent); color: var(--accent-text); }

/* ayudas descartables (v.2026-10-27.2) */
.helpb { display: flex; align-items: center; }
.helpb > span { flex: 1 1 auto; min-width: 0; }
.helpb .chip { flex: none; margin-left: 10px; padding: 6px 12px; font-size: 12px; }

/* marquesina del resumen de Inicio (v.2026-10-27.2): bucle infinito; se pausa al mantener pulsado */
.hst.mq { overflow: hidden; display: block; white-space: nowrap; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%); }
.mqt { display: inline-flex; flex-wrap: nowrap; -webkit-animation: mqmove 40s linear infinite; animation: mqmove 40s linear infinite; will-change: transform; }
.mqt:active { -webkit-animation-play-state: paused; animation-play-state: paused; }
.mqg { display: inline-flex; flex: none; }
.mqg > span { flex: none; white-space: nowrap; margin-right: 22px; }
@-webkit-keyframes mqmove { from { -webkit-transform: translateX(0); } to { -webkit-transform: translateX(-50%); } }
@keyframes mqmove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* cola: filas que se deslizan para quitarlas (v.2026-10-27.3) */
#qL .row { touch-action: pan-y; min-height: 46px; padding: 4px 4px; border-radius: 10px; }
#qL .row > * + * { margin-left: 10px; }
#qL .row .cv { width: 36px; height: 36px; border-radius: 8px; }
#qL .row .cv svg { width: 18px; height: 18px; }
#qL .row .t1 { font-size: 14px; }
#qL .row .t2 { font-size: 12px; }

/* cola: desplegable del historial y «Nueva cola» (v.2026-10-27.4) */
.qhead { position: relative; display: flex; align-items: center; margin: 4px 0 10px; }
.qsel { flex: 1; min-width: 0; display: flex; align-items: center; background: var(--card); color: var(--text); border-radius: 18px; padding: 10px 12px 10px 16px; text-align: left; }
.qsel:active { background: var(--card-hi); }
.qsel .qn { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qsel .qs { flex: none; margin-left: 10px; font-size: 12px; color: var(--sub); }
.qsel svg { flex: none; width: 22px; height: 22px; margin-left: 4px; transition: transform .2s; -webkit-transition: -webkit-transform .2s; }
.qsel.open svg { transform: rotate(180deg); -webkit-transform: rotate(180deg); }
.qnew { flex: none; margin-left: 10px; display: flex; align-items: center; padding: 10px 16px 10px 12px; font-size: 14px; }
.qnew svg { width: 20px; height: 20px; margin-right: 4px; }
.qmenu { position: absolute; left: 0; right: 0; top: 100%; margin-top: 6px; z-index: 15; background: var(--card); border-radius: 18px; padding: 6px; max-height: 58vh; overflow-y: auto; -webkit-overflow-scrolling: touch; box-shadow: 0 8px 28px rgba(0,0,0,.45); }
.qi { display: flex; align-items: center; padding: 8px 8px 8px 12px; border-radius: 12px; min-height: 48px; }
.qi:active { background: var(--card-hi); }
.qi .mt { flex: 1; min-width: 0; }
.qi .t1 { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qi .t2 { font-size: 12px; color: var(--sub); margin-top: 2px; }
.qi.cur .t1 { color: var(--accent); }
.qi > svg { flex: none; width: 22px; height: 22px; margin: 0 10px; color: var(--accent); }
.qi .ib { flex: none; width: 36px; height: 36px; }
.qi .ib svg { width: 18px; height: 18px; }
.qempty { padding: 12px; font-size: 13px; color: var(--sub); }

/* icono de descargas en la cabecera con anillo de progreso (v.2026-10-27.4); sustituye a la burbuja flotante */
#dlpill { display: none !important; }
#btnDl > svg:not(.dring) { width: 20px; height: 20px; position: relative; }
#btnDl .dring { position: absolute; left: 3px; top: 3px; width: 38px; height: 38px; }
#btnDl .dring circle { fill: none; stroke-width: 3; }
#btnDl .dbg { stroke: var(--outline); }
#btnDl .dfg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dasharray .5s; -webkit-transition: stroke-dasharray .5s; }
#btnDl .dring.ind { -webkit-animation: dspin 1s linear infinite; animation: dspin 1s linear infinite; }
@-webkit-keyframes dspin { to { -webkit-transform: rotate(360deg); } }
@keyframes dspin { to { transform: rotate(360deg); } }
#btnDl .dcnt { position: absolute; right: 2px; top: 2px; min-width: 15px; height: 15px; border-radius: 8px; background: var(--accent); color: var(--accent-text); font-size: 10px; line-height: 15px; text-align: center; font-weight: 700; padding: 0 3px; box-sizing: border-box; }

/* Descargas: selector Dispositivo / Nextcloud / Jellyfin */
#dChips { margin: 4px 0 10px; }
#dJf .stat.m { margin: 0 4px 6px; }

/* JDownloader en Descargas (v.2026-10-27.16) */
#modal textarea { width: 100%; box-sizing: border-box; background: var(--card-hi); border: 0; outline: 0; border-radius: 14px; color: var(--text); font: inherit; font-size: 14px;
    padding: 14px; -webkit-user-select: text; user-select: text; margin-bottom: 8px; resize: none; }
#jdDests .chip { border: 0; color: var(--text); font: inherit; font-size: 14px; }
#jdDests .chip.on { background: var(--accent); color: var(--accent-text); }

/* v.2026-10-27.14: progreso de vídeos vistos y marcas de directo / estreno */
.vpg { height: 3px; background: rgba(128,128,128,.3); border-radius: 2px; overflow: hidden; margin-top: 5px; }
.vpg i { display: block; height: 100%; background: var(--accent); }
.vrow .vth .vpg { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; height: 4px; border-radius: 0; background: rgba(0,0,0,.5); }
.vrow .vdur.vlv { background: #d32f2f; letter-spacing: .5px; }
.vrow .vdur.vlv.up { background: rgba(0,0,0,.78); }

/* ---- v.2026-10-28.5 (pedido por Lucas): elementos de lista algo más pequeños, chips de Radio compactos, ordenar emisoras arrastrando, carátulas de películas más grandes en horizontal */
.row { min-height: 54px; padding: 6px 4px; }
.t1 { font-size: 15px; }
.t2 { font-size: 12.5px; }
.cv { width: 42px; height: 42px; border-radius: 9px; }
.cv svg { width: 22px; height: 22px; }
@media (orientation: landscape) and (min-width: 700px) {
    .row { min-height: 62px; }
    .t1 { font-size: 16px; }
    .t2 { font-size: 13px; }
    .cv { width: 48px; height: 48px; }
}
body.car .row { min-height: 68px; }
#rCats .chip, #rZonas .chip { padding: 6px 12px; font-size: 13px; border-radius: 14px; margin: 0 6px 6px 0; }
#rCats .chip small, #rZonas .chip small { margin-left: 4px; }
.rdg { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--sub); touch-action: none; margin-left: 4px; }
.rdg svg { width: 24px; height: 24px; }
.row.rdr { position: relative; transition: transform .12s; }
.row.rdr.rdrag { transition: none; z-index: 6; background: var(--card-hi); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
@media (min-width: 560px) { .mgrid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } }
