/* HZ Auto — interfaz tipo pantalla de vehículo: tarjetas suaves, tipografía grande y táctil */
:root {
  --bg: #dfe8f2; --bg2: #eef3f9; --card: rgba(255,255,255,.72); --card2: #ffffff; --line: rgba(20,40,70,.08);
  --ink: #142235; --ink2: #3b4b61; --mute: #7f8ea3; --accent: #1f9ef5; --accent2: #14d1a4; --danger: #ff4d5e;
  --shadow: 0 10px 30px -14px rgba(30,60,110,.35), inset 0 1px 0 rgba(255,255,255,.7);
  --r: 22px; --gap: 14px;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
}
.night {
  --bg: #0a1324; --bg2: #101c33; --card: rgba(22,36,64,.78); --card2: #182a4a; --line: rgba(255,255,255,.07);
  --ink: #eaf2ff; --ink2: #bcd0ee; --mute: #7f95b8; --shadow: 0 10px 30px -14px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.05);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
[hidden] { display: none !important; }

.hz {
  height: 100dvh; padding: max(var(--gap), env(safe-area-inset-top)) max(var(--gap), env(safe-area-inset-right)) max(var(--gap), env(safe-area-inset-bottom)) max(var(--gap), env(safe-area-inset-left));
  display: grid; gap: var(--gap);
  grid-template-columns: 92px minmax(260px, 340px) 1fr;
  grid-template-rows: 1fr auto;
  grid-template-areas: "side left stage" "side left dock";
  background: radial-gradient(1200px 700px at 70% 0%, var(--bg2), var(--bg));
  transition: background .5s;
}
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); }

/* Barra lateral */
.side { grid-area: side; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 6px 0; }
.side__brand img { display: block; border-radius: 14px; box-shadow: var(--shadow); }
.side__btn { width: 84px; padding: 12px 4px; border-radius: 18px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink2); font-size: 13px; font-weight: 600; transition: background .2s, color .2s; }
.side__btn svg { font-size: 30px; }
.side__btn.is-on, .side__btn:active { background: var(--card); color: var(--accent); box-shadow: var(--shadow); }
.side__btn--grid { margin-top: auto; width: 66px; height: 66px; border-radius: 50%; justify-content: center; background: linear-gradient(145deg, #2ea3ff, #1c6fe0); color: #fff; box-shadow: 0 10px 24px -8px rgba(30,110,230,.7), inset 0 0 0 4px rgba(255,255,255,.35); }
.side__btn--grid svg { font-size: 28px; }

/* Columna izquierda */
.left { grid-area: left; display: grid; grid-template-rows: auto 1fr; gap: var(--gap); min-height: 0; }
.clock { display: flex; align-items: center; gap: 16px; padding: 16px 18px; }
.clock__face { width: 96px; height: 96px; flex: none; }
.clock__ring { fill: var(--card2); stroke: var(--line); stroke-width: 2; }
.clock__ticks line { stroke: var(--ink2); stroke-width: 1.4; stroke-linecap: round; }
.clock__ticks text { font-size: 9px; fill: var(--ink2); text-anchor: middle; font-weight: 600; }
.clock__h, .clock__m { stroke: var(--ink); stroke-linecap: round; }
.clock__h { stroke-width: 4; } .clock__m { stroke-width: 2.6; }
.clock__s { stroke: var(--danger); stroke-width: 1.4; stroke-linecap: round; }
.clock__pin { fill: var(--ink); }
.clock__txt { min-width: 0; }
.clock__ampm { text-align: right; font-weight: 700; color: var(--ink2); font-size: 15px; }
.clock__time { font-size: clamp(38px, 4.4vw, 54px); font-weight: 800; letter-spacing: 1px; line-height: 1; font-variant-numeric: tabular-nums; }
.clock__date { margin-top: 6px; color: var(--ink2); font-size: 14px; text-transform: capitalize; }

.player { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 22px 18px 18px; min-height: 0; text-align: center; overflow: hidden; }
.disc { position: relative; width: min(190px, 60%); aspect-ratio: 1.18; }
.disc__vinyl { position: absolute; right: 0; top: 4%; width: 84%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #3a3f48 0 12%, #0e1116 13% 15%, #23272e 16% 30%, #111418 31% 33%, #25292f 34% 48%, #0f1216 49% 51%, #22262c 52% 70%, #0d1013 71%); box-shadow: 0 10px 22px -10px rgba(0,0,0,.6); }
.playing .disc__vinyl { animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.disc__cover { position: absolute; left: 0; top: 0; width: 80%; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: linear-gradient(145deg, #2a3445, #10161f); display: grid; place-items: center; box-shadow: 0 14px 26px -12px rgba(0,0,0,.55); }
.disc__cover img { width: 100%; height: 100%; object-fit: cover; }
.disc__cover img:not([src]), .disc__cover img[src=""] { display: none; }
.disc__cover span { position: absolute; font-size: 42px; font-weight: 900; color: rgba(255,255,255,.85); letter-spacing: 2px; }
.disc__cover img[src]:not([src=""]) + span { display: none; }
.player__meta { width: 100%; min-width: 0; }
.player__label { color: var(--mute); font-size: 14px; }
.player__title { margin-top: 4px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; overflow: hidden; white-space: nowrap; mask-image: linear-gradient(90deg, #000 85%, transparent); }
.player__title span { display: inline-block; }
.player__title.marquee span { animation: marquee 12s linear infinite; padding-right: 60px; }
@keyframes marquee { 0%, 15% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
.player__song { margin-top: 4px; color: var(--ink2); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player__ctrl { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-radius: 20px; background: var(--card2); box-shadow: var(--shadow); }
.pbtn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.pbtn svg { font-size: 26px; }
.pbtn--main { width: 64px; height: 64px; background: radial-gradient(circle at 35% 30%, #fff, #e6eef8); box-shadow: inset 0 0 0 4px rgba(31,158,245,.25), 0 6px 16px -6px rgba(31,158,245,.6); color: var(--accent); }
.night .pbtn--main { background: radial-gradient(circle at 35% 30%, #284372, #182a4a); }
.pbtn--main svg { font-size: 34px; }
.pbtn--fav.is-on { color: var(--danger); }
.player__live { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--mute); }
.player__live i { width: 9px; height: 9px; border-radius: 50%; background: #9aa6b6; }
.playing .player__live i { background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

/* Vista principal */
.stage { grid-area: stage; position: relative; overflow: hidden; min-height: 0; padding: 0; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.speed { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); text-align: center; pointer-events: none; text-shadow: 0 2px 12px rgba(255,255,255,.6); }
.night .speed { text-shadow: 0 2px 14px rgba(0,0,0,.6); }
.speed b { display: block; font-size: clamp(54px, 6.5vw, 86px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.speed span { font-size: 14px; color: var(--ink2); font-weight: 600; }
.has-turn .speed { left: auto; right: 22px; top: 64px; transform: none; text-align: right; }
.map-attr { position: absolute; left: 6px; bottom: 4px; z-index: 2; font-size: 9px; color: #445; background: rgba(255,255,255,.75); padding: 1px 5px; border-radius: 6px; pointer-events: none; }
.night .map-attr { color: #c9d6ee; background: rgba(10,19,36,.7); }
.gps { position: absolute; top: 18px; right: 18px; display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 600; color: var(--ink2); box-shadow: var(--shadow); }
.gps svg { font-size: 16px; }
.gps.ok svg { color: #16b981; } .gps.bad svg { color: var(--danger); }

.turn { position: absolute; top: 18px; left: 18px; display: flex; align-items: center; gap: 14px; max-width: min(46%, 420px); padding: 14px 18px 14px 14px; border-radius: 20px; background: linear-gradient(145deg, #12c49b, #0e9f8a); color: #fff; box-shadow: 0 14px 30px -14px rgba(6,120,100,.8); }
.turn__ico { width: 64px; height: 64px; border-radius: 16px; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: none; }
.turn__ico svg { font-size: 46px; }
.turn__dist b { font-size: 36px; font-weight: 800; line-height: 1; }
.turn__dist span { font-size: 17px; font-weight: 700; margin-left: 4px; }
.turn__text { margin-top: 4px; font-size: 15px; line-height: 1.25; opacity: .95; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.trip { position: absolute; left: 18px; bottom: 18px; display: flex; align-items: center; gap: 22px; padding: 12px 14px 12px 20px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.trip div { text-align: center; }
.trip b { display: block; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.trip span { font-size: 12px; color: var(--mute); font-weight: 600; }
.trip__end { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,77,94,.12); color: var(--danger); }
.trip__end svg { font-size: 22px; }

.minimap { position: absolute; right: 18px; bottom: 18px; width: min(32%, 300px); aspect-ratio: 1.25; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); border: 3px solid var(--card2); transition: all .35s cubic-bezier(.2,.8,.2,1); }
.minimap #map { position: absolute; inset: 0; }
.minimap__exp { position: absolute; top: 8px; right: 8px; z-index: 2; width: 34px; height: 34px; border-radius: 10px; background: var(--card2); display: grid; place-items: center; box-shadow: var(--shadow); }
.minimap.big { right: 0; bottom: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: var(--r); border-width: 0; }
.maplibregl-ctrl-attrib { font-size: 9px; }
.car-dot { width: 30px; height: 30px; }
.arrive { position: absolute; inset: auto 0 34% 0; margin: auto; width: max-content; max-width: 80%; padding: 18px 28px; border-radius: 22px; background: linear-gradient(145deg, #12c49b, #0e9f8a); color: #fff; text-align: center; box-shadow: 0 20px 40px -18px rgba(6,120,100,.8); }
.arrive b { display: block; font-size: 30px; } .arrive span { font-size: 16px; }

/* Barra inferior */
.dock { grid-area: dock; display: flex; align-items: center; gap: 6px; padding: 10px 14px; overflow-x: auto; scrollbar-width: none; }
.dock button { flex: 1 0 auto; min-width: 94px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 16px; color: var(--ink2); font-size: 13px; font-weight: 600; }
.dock button svg { font-size: 28px; color: var(--ink); }
.dock button:active, .dock button.is-on { background: var(--card2); }
.dock button.is-on svg { color: var(--accent); }
#demoBtn.is-on svg { color: var(--accent2); }
.dock__vol { display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--ink2); }
.dock__vol svg { font-size: 22px; }
.dock__vol input { width: 130px; accent-color: var(--accent); }

/* Paneles */
.panel { position: fixed; z-index: 20; top: var(--gap); bottom: var(--gap); right: var(--gap); width: min(460px, calc(100% - 2 * var(--gap))); display: flex; flex-direction: column; border-radius: var(--r); background: var(--card2); box-shadow: 0 30px 70px -20px rgba(10,30,60,.5); animation: slide .28s cubic-bezier(.2,.8,.2,1); }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.panel__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 6px; }
.panel__head h2 { margin: 0; font-size: 24px; }
.panel__x { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--bg2); }
.panel__x svg { font-size: 22px; }
.panel__body { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 10px 20px 20px; }
.search { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--bg2); color: var(--mute); }
.search svg { font-size: 22px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 18px; color: var(--ink); }
.list { flex: 1; min-height: 0; overflow-y: auto; margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.item { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 12px; border-radius: 16px; }
.item:active, .item.is-on { background: var(--bg2); }
.item__ico { width: 52px; height: 52px; border-radius: 14px; flex: none; display: grid; place-items: center; background: linear-gradient(145deg, #2a3445, #10161f); color: #fff; font-weight: 800; overflow: hidden; }
.item__ico img { width: 100%; height: 100%; object-fit: cover; }
.item__ico svg { font-size: 26px; }
.item__ico--pin { background: rgba(31,158,245,.12); color: var(--accent); }
.item__txt { flex: 1; min-width: 0; }
.item__txt b { display: block; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item__txt span { display: block; font-size: 13.5px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item__fav { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--mute); }
.item__fav.is-on { color: var(--danger); }
.item__fav svg { font-size: 22px; }
.item__live { font-size: 12px; font-weight: 700; color: #16b981; white-space: nowrap; }
.hint { color: var(--mute); font-size: 14.5px; text-align: center; margin: 18px 10px; }

.toast { position: fixed; z-index: 30; left: 50%; bottom: 26px; transform: translateX(-50%); max-width: 90%; padding: 14px 20px; border-radius: 16px; background: #142235; color: #fff; font-size: 15px; box-shadow: 0 16px 40px -14px rgba(0,0,0,.6); }

/* Pantallas pequeñas y verticales (celular) */
@media (max-width: 980px) {
  .hz { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr) auto auto; grid-template-areas: "left" "stage" "dock" "side"; --gap: 10px; }
  .left { grid-template-rows: auto; grid-template-columns: 1fr; }
  .clock { display: none; }
  .player { flex-direction: row; justify-content: flex-start; text-align: left; padding: 10px 12px; gap: 12px; }
  .disc { width: 74px; aspect-ratio: 1; } .disc__vinyl { display: none; } .disc__cover { width: 100%; }
  .disc__cover span { font-size: 22px; }
  .player__meta { flex: 1; } .player__label, .player__live { display: none; }
  .player__title { font-size: 18px; } .player__song { font-size: 13px; }
  .player__ctrl { padding: 4px 6px; gap: 2px; background: transparent; box-shadow: none; }
  .pbtn { width: 40px; height: 40px; } .pbtn--fav, #prevBtn { display: none; }
  .pbtn--main { width: 52px; height: 52px; }
  .side { flex-direction: row; justify-content: space-around; padding: 0; }
  .side__brand, .side__btn--grid { display: none; }
  .side__btn { width: auto; flex: 1; padding: 6px 2px; font-size: 11px; } .side__btn svg { font-size: 24px; }
  .dock { padding: 6px 8px; } .dock button { min-width: 76px; font-size: 11.5px; } .dock button svg { font-size: 24px; }
  .dock__vol { display: none; }
  .turn { left: 10px; right: 10px; top: 10px; max-width: none; padding: 10px 14px 10px 10px; }
  .turn__ico { width: 54px; height: 54px; } .turn__dist b { font-size: 28px; }
  .has-turn .speed { top: auto; bottom: 86px; left: 18px; transform: none; text-align: left; }
  .speed b { font-size: 48px; } .gps { top: auto; bottom: 14px; right: auto; left: 50%; transform: translateX(-50%); }
  .has-turn .gps { display: none; }
  .trip { left: 10px; bottom: 10px; gap: 14px; padding: 8px 10px 8px 14px; } .trip b { font-size: 19px; }
  .minimap { width: 38%; right: 10px; bottom: 10px; }
  .panel { top: auto; bottom: 0; right: 0; left: 0; width: 100%; height: 86dvh; border-radius: 26px 26px 0 0; animation-name: up; }
  @keyframes up { from { transform: translateY(40px); opacity: 0; } }
}
@media (max-height: 520px) and (min-width: 981px) {
  .clock__face { width: 70px; height: 70px; } .disc { width: 120px; } .player { gap: 8px; padding: 12px; }
  .side__btn { padding: 8px 4px; } .side__btn span { display: none; }
}

/* Modo demostración incrustado en la portada */
.embed .side__btn--grid, .embed #fsBtn { display: none; }

/* App de una sola emisora */
.single [data-panel=stations], .single [data-panel=favs], .single #prevBtn, .single #nextBtn, .single #favBtn { display: none !important; }
.single .side__brand img { object-fit: cover; background: #fff; }
.blocked { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(10,19,36,.92); }
.blocked__box { max-width: 460px; text-align: center; color: #fff; }
.blocked__box img { width: 110px; height: 110px; border-radius: 26px; object-fit: cover; background: #fff; margin: 0 auto 18px; display: block; }
.blocked__box img:not([src]) { display: none; }
.blocked__box h2 { margin: 0 0 10px; font-size: 26px; } .blocked__box p { color: #b9c7de; font-size: 16px; line-height: 1.5; }

/* ═══ Rediseño v2: íconos de línea en fichas de color, logo completo y reproductor más rico ═══ */
svg.i { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico { --c: #1f9ef5; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; font-style: normal;
  color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.ico svg { font-size: 23px; }
.ico--blue { --c: #1f9ef5; } .ico--violet { --c: #8b5cf6; } .ico--rose { --c: #f43f6e; } .ico--indigo { --c: #6366f1; }
.ico--amber { --c: #f59e0b; } .ico--teal { --c: #14b8a6; } .ico--green { --c: #10b981; }
.night .ico { background: color-mix(in srgb, var(--c) 20%, transparent); color: color-mix(in srgb, var(--c) 75%, #fff); }

/* Barra lateral */
.side { gap: 8px; }
.side__brand img { width: 52px; height: 52px; object-fit: contain; background: #fff; padding: 5px; border-radius: 16px; }
.side__btn { width: 84px; padding: 10px 4px; gap: 7px; font-size: 12.5px; color: var(--mute); }
.side__btn .ico { width: 50px; height: 50px; border-radius: 16px; }
.side__btn .ico svg { font-size: 25px; }
.side__btn.is-on, .side__btn:active { background: transparent; box-shadow: none; color: var(--ink); }
.side__btn.is-on .ico { background: linear-gradient(145deg, color-mix(in srgb, var(--c) 82%, #fff), var(--c)); color: #fff; transform: translateY(-1px);
  box-shadow: 0 10px 22px -10px var(--c), inset 0 1px 0 rgba(255,255,255,.35); }
.side__btn--grid { width: 60px; height: 60px; border-radius: 20px; }
.side__btn--grid svg { font-size: 24px; }

/* Barra inferior */
.dock { gap: 4px; padding: 10px 12px; }
.dock button { gap: 6px; padding: 8px 8px 7px; font-size: 12.5px; color: var(--ink2); border-radius: 18px; transition: background .2s; }
.dock button .ico svg { font-size: 22px; color: inherit; }
.dock button:active, .dock button.is-on { background: transparent; }
.dock button.is-on .ico, .dock button:active .ico { background: var(--c); color: #fff; box-shadow: 0 8px 18px -8px var(--c); }
.dock button.is-on span { color: var(--ink); }
#demoBtn.is-on svg { color: #fff; }
.dock__vol { gap: 10px; padding: 8px 14px; margin-left: 4px; border-radius: 16px; background: var(--bg2); }
.night .dock__vol { background: rgba(255,255,255,.05); }
.dock__vol svg { font-size: 20px; }

/* Reproductor */
.player { gap: 12px; isolation: isolate; }
.player::before { content: ""; position: absolute; inset: -25%; z-index: -1; background: var(--art, none) center / cover no-repeat; filter: blur(46px) saturate(1.5); opacity: .32; pointer-events: none; transition: opacity .6s; }
.night .player::before { opacity: .42; }
.disc { width: min(200px, 64%); }
.disc__vinyl { background:
    radial-gradient(circle, transparent 0 21%, rgba(255,255,255,.05) 21.5% 22%, transparent 22.5%),
    repeating-radial-gradient(circle, #15181d 0 1.6px, #1f232a 1.6px 3.2px),
    #15181d;
  box-shadow: 0 16px 30px -14px rgba(0,0,0,.7), inset 0 0 0 2px rgba(255,255,255,.04); }
.disc__vinyl::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 30deg, transparent 0 18%, rgba(255,255,255,.14) 24%, transparent 32% 68%, rgba(255,255,255,.1) 74%, transparent 82%); }
.disc__vinyl i { position: absolute; inset: 33%; border-radius: 50%; background: radial-gradient(circle, #0b0e12 0 9%, transparent 10%), linear-gradient(145deg, #2ea3ff, #8b5cf6); box-shadow: inset 0 0 0 3px rgba(0,0,0,.25); }
.disc__cover { background: #fff; border-radius: 18px; box-shadow: 0 18px 34px -14px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.05); }
.disc__cover img { object-fit: contain; padding: 7%; }
.disc__cover span { color: #142235; }
.player__label { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.eq { display: none; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--accent2); transform-origin: bottom; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.4s; } .eq i:nth-child(3) { animation-delay: -.7s; } .eq i:nth-child(4) { animation-delay: -.2s; }
.playing .eq { display: inline-flex; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.player__title { margin-top: 6px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; letter-spacing: -.01em; text-align: center; mask-image: none; -webkit-mask-image: none; }
.player__title.marquee { text-align: left; mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.player__title.marquee span { animation: marquee var(--mq, 12s) linear infinite; padding-right: 56px; }
.player__title.marquee span::after { content: attr(data-dup); padding-left: 56px; }
@keyframes marquee { 0%, 12% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.player__song { font-size: 14.5px; color: var(--ink2); }
.player__ctrl { gap: 10px; padding: 8px 12px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); }
.pbtn { width: 46px; height: 46px; transition: background .2s, transform .15s; }
.pbtn:active { transform: scale(.94); background: var(--bg2); }
.pbtn--main { width: 66px; height: 66px; color: #fff; background: linear-gradient(145deg, #3bb0ff, #1c6fe0); box-shadow: 0 12px 26px -10px rgba(28,111,224,.85), inset 0 1px 0 rgba(255,255,255,.35); }
.night .pbtn--main { background: linear-gradient(145deg, #3bb0ff, #1c6fe0); }
.playing .pbtn--main { box-shadow: 0 0 0 6px rgba(31,158,245,.16), 0 12px 26px -10px rgba(28,111,224,.85); }
.player__live { gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--bg2); font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.night .player__live { background: rgba(255,255,255,.06); }
.playing .player__live { background: rgba(34,197,94,.12); color: #15803d; }
.night.playing .player__live, .night .playing .player__live { color: #4ade80; }
.player__live.is-dj { background: rgba(244,63,94,.12); color: #e11d48; }
.player__live.is-dj i { background: #f43f5e; animation: pulse-r 1.6s infinite; }
@keyframes pulse-r { 70% { box-shadow: 0 0 0 9px rgba(244,63,94,0); } 0% { box-shadow: 0 0 0 0 rgba(244,63,94,.6); } }

/* Listas de emisoras: logo completo */
.item__ico { background: #fff; color: #142235; box-shadow: 0 0 0 1px var(--line); }
.item__ico img { object-fit: contain; padding: 4px; }
.item__ico--pin { background: rgba(31,158,245,.12); color: var(--accent); box-shadow: none; }

/* Tarjetas de guía */
.turn { border: 1px solid rgba(255,255,255,.18); }
.trip { border: 1px solid var(--line); }

@media (max-width: 980px) {
  .player::before { inset: -60%; }
  .disc { width: 74px; } .disc__cover img { padding: 6%; }
  .player__label { display: none; }
  .player__title { margin-top: 0; font-size: 18px; }
  .player__ctrl { padding: 4px 6px; gap: 2px; background: transparent; border: 0; box-shadow: none; }
  .hz { grid-template-columns: minmax(0, 1fr); }
  .side__btn { width: auto; min-width: 0; }
  .pbtn { width: 40px; height: 40px; } .pbtn svg { font-size: 22px; }
  .pbtn--main { width: 52px; height: 52px; } .pbtn--main svg { font-size: 28px; }
  .player { overflow: hidden; } .player__meta { min-width: 0; }
  .player__title { text-align: left; }
  .player__label { justify-content: flex-start; }
  .disc__cover { border-radius: 14px; }
  .side__btn .ico { width: 40px; height: 40px; border-radius: 13px; } .side__btn .ico svg { font-size: 21px; }
  .dock button .ico { width: 38px; height: 38px; border-radius: 12px; } .dock button .ico svg { font-size: 20px; }
}
@media (max-height: 520px) and (min-width: 981px) {
  .side__btn .ico { width: 42px; height: 42px; } .disc { width: 128px; }
}
.playing .player__live.is-dj, .player__live.is-dj { background: rgba(244,63,94,.12); color: #e11d48; }
.night .player__live.is-dj, .night .playing .player__live.is-dj, .night.playing .player__live.is-dj { background: rgba(244,63,94,.16); color: #fb7185; }
@media (max-width: 480px) {
  .trip { gap: 10px; padding: 7px 8px 7px 12px; } .trip b { font-size: 17px; } .trip span { font-size: 11px; }
  .trip__end { width: 36px; height: 36px; }
  .minimap { width: 32%; aspect-ratio: 1; bottom: 66px; }
}
