/* Radio Frescura - estilos */

:root {
  --primary: #6c6fc6;
  --bg-body: #262626;
  --bg-app: #0a0a0a;
  --bg-transparent: rgb(255 255 255 / 10%);
  --bg-modal: rgb(255 255 255 / 20%);
  --bg-dark: rgb(0 0 0 / 75%);
  --color-title: #ffffff;
  --color-text: rgb(255 255 255 / 50%);
  --duration: 0.3s;
  --shadow-l: 0px 8px 17px 2px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12), 0px 5px 5px -3px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12), 0px 8px 10px -7px rgba(0, 0, 0, 0.2);
  --scrollbar-color: rgb(255 255 255 / 50%);
  --main-padding: 1rem;
  /* now-playing.js lo reemplaza con el color de la carátula */
  --cover-rgb: 20, 180, 225;
}

/* ---------- Base ---------- */

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
*, ::after, ::before {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html, body {
  height: 100%;
}
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--duration);
}
h3 {
  font-size: inherit;
  font-weight: inherit;
  overflow-wrap: break-word;
}
small {
  font-size: 80%;
}
button, input {
  padding: 0;
  border-width: 0;
  font-size: 100%;
  font-family: inherit;
  line-height: inherit;
  color: inherit;
}
input:focus {
  outline: 0;
}
button {
  -webkit-appearance: button;
  background-color: transparent;
  display: inline-block;
  vertical-align: middle;
  text-transform: none;
}
button:not(:disabled) {
  cursor: pointer;
}
[hidden] {
  display: none;
}
ul {
  list-style: none;
  padding: 0;
}
canvas, img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
body {
  background-size: cover;
  background-color: var(--bg-body);
  color: var(--color-text);
  font-family: Montserrat, sans-serif;
  transition: background-color var(--duration);
}
body.preload * {
  transition: none !important;
}
/* Disuasión de copia: sin selección, sin arrastrar imágenes, sin menú de pulsación larga */
body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
img {
  -webkit-user-drag: none;
}
input, textarea {
  -webkit-user-select: text;
  user-select: text;
}
@media print {
  html { display: none; }
}

/* ---------- Utilidades ---------- */

.relative { position: relative; }
.flex { display: flex; }
.column { flex-direction: column; }
.flex-none { flex: none; }
.items-start { align-items: flex-start; margin-top: 15px; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.g-0\.5 { gap: 0.5rem; }
.g-1 { gap: 1rem; }
.g-2 { gap: 2rem; }
.color-text { color: var(--color-text); }
.color-title { color: var(--color-title); }
.fs-5 { font-size: 1.125rem; }
.fw-500 { font-weight: 500; }
.fw-700 { font-weight: 700; }
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }
.truncate-line {
  display: -webkit-box;
  -webkit-line-clamp: var(--line-clamp, 2);
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 768px) {
  .m\:fs-2 { font-size: 1.75rem; }
  .m\:fs-4 { font-size: 1.25rem; }
}
.scrollbar {
  overflow: auto;
  scrollbar-color: var(--scrollbar-color) transparent;
  scrollbar-width: thin;
}
.scrollbar::-webkit-scrollbar {
  width: 5px;
  height: 5px;
  background-color: transparent;
}
.scrollbar::-webkit-scrollbar-track {
  background-color: transparent;
  border-radius: 5px;
}
.scrollbar::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-color);
  border-radius: 10px;
}
.i {
  stroke-width: var(--i-stroke, 2);
  width: var(--i-size, 24px);
  height: var(--i-size, 24px);
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* ---------- Botones, desplegables y paneles ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: var(--btn-gap, 0.5rem);
  background-color: var(--btn-bg, var(--bg-transparent));
  padding: var(--btn-padding, 0.75rem);
  color: var(--btn-color, var(--color-title));
  font-size: var(--btn-fs, 0.875rem);
  font-weight: 700;
  border-radius: 999px;
  line-height: 1.5;
  transition-property: box-shadow, background-color, color;
  transition-duration: var(--duration);
  text-transform: uppercase;
}
.btn:hover {
  color: var(--btn-color-hover, var(--color-title));
}
.dropdown {
  position: absolute;
  width: 140px;
  background-color: var(--bg-dark);
  padding: 1.5rem;
  border-radius: 1rem;
  left: 50%;
  box-shadow: var(--shadow-l);
  transform: translateX(-50%);
  bottom: calc(100% + 0.5rem);
  transition: opacity var(--duration), transform var(--duration);
}
.dropdown:not(.is-active) {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-1rem);
  transition: opacity var(--duration), transform var(--duration), visibility 0s linear var(--duration);
}
.offcanvas {
  background-color: var(--bg-modal);
  inset: 0 0 0 auto;
  position: absolute;
  padding: 1.5rem;
  z-index: 120;
  box-shadow: var(--shadow-xl);
  transition: transform var(--duration), opacity var(--duration);
  backdrop-filter: blur(1rem);
}
.offcanvas:not(.is-active) {
  transform: translateX(110%);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: transform var(--duration), opacity var(--duration), visibility 0s linear var(--duration);
}
.offcanvas [data-close] {
  margin-bottom: 1rem;
}

/* ---------- Estructura ---------- */

.app {
  background-color: var(--bg-app);
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100vh;
  height: 100dvh;
}
.app::after {
  content: "";
  inset: 0;
  position: absolute;
  background-image: linear-gradient(transparent 70%, #000);
  z-index: 5;
}
div.bg {
  position: fixed;
  z-index: 1;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: url(../assets/bg.png);
}
.header {
  position: absolute;
  width: 100%;
  z-index: 50;
}
.header-wrapper {
  padding: var(--main-padding);
}
.header-logo-img {
  height: 80px;
  width: auto;
}
.toggle-options {
  gap: 0.5rem;
}

/* ---------- Reproductor ---------- */

.player {
  padding: 2rem;
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow-y: auto;
}
.player-wrapper {
  margin-top: auto;
  margin-bottom: auto;
  position: relative;
  z-index: 10;
}
.player-cover-title {
  text-shadow: 0 0.052vw 0.052vw #000;
}
.player-cover-image {
  --cover-blurred: 1rem;
  position: absolute;
  z-index: 0;
  object-fit: cover;
  object-position: center;
  transition: opacity calc(var(--duration) * 3);
  filter: blur(var(--cover-blurred));
  max-width: initial;
  inset: calc(var(--cover-blurred) * -5);
  width: calc(100% + var(--cover-blurred) * 10);
  height: calc(100% + var(--cover-blurred) * 10);
  animation: bga 60s linear infinite;
  animation-play-state: paused;
  will-change: transform;
}
body.is-playing .player-cover-image {
  animation-play-state: running;
}
@keyframes bga { 50% { transform: scale(2); } }
.player-artwork {
  position: relative;
  border-radius: 1rem;
  background-color: rgba(0, 0, 0, 0.25);
  box-shadow: var(--shadow-l);
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1/1;
}
/* Las carátulas se apilan y se funden entre sí (evita que se compriman unas a otras). */
.player-artwork img {
  position: absolute;
  inset: 0.75rem;
  width: calc(100% - 1.5rem);
  height: calc(100% - 1.5rem);
  max-width: none;
  object-fit: cover;
  border-radius: 0.65rem;
  box-shadow: var(--shadow-xl);
  opacity: 1;
  transition: opacity calc(var(--duration) * 4) ease;
}
.player-artwork img.is-entering {
  opacity: 0;
}
.artwork-shade {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 1rem;
  background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  z-index: 10;
  inset: auto 0 0;
}
.player-controller {
  /* Play siempre centrado; el volumen queda a su izquierda */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  width: 100%;
}
.player-controller .player-button-volume {
  justify-self: end;
}
.player-volume {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.player-range-wrapper {
  position: relative;
  height: 2px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.25);
}
.player-range-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  transition: background-color var(--duration);
  background-color: var(--accent, var(--primary));
}
.player-range-thumb {
  width: 15px;
  height: 15px;
  transition: background-color var(--duration);
  background-color: var(--accent, var(--primary));
  border-radius: 5rem;
  top: 50%;
  position: absolute;
  transform: translateY(-50%);
  cursor: pointer;
}
.player-button {
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--duration), background-color var(--duration);
  position: relative;
}
.player-button.is-active, .player-button:hover {
  color: #fff;
}
.player-button-volume {
  display: flex;
  align-items: center;
}
.player-button-play {
  padding: 1rem;
  border-radius: 999px;
  transition: background-color var(--duration);
  background-color: var(--accent, var(--bg-transparent));
}
.player-button-play::after, .player-button-play::before {
  pointer-events: none;
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  background-color: #fff;
  border-radius: 50%;
  z-index: -1;
  inset: 0;
  opacity: 0;
  animation: 2s ease-out infinite pulse;
  display: var(--pulse-state, none);
}
.player-button-play::after {
  animation-delay: 1s;
}
.player-button-play:active, .player-button-play:focus {
  outline: 0;
}
:where(button, a, input):focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.player-button-play.is-active {
  --pulse-state: block;
}
@keyframes pulse { from { opacity: 0; } 50% { opacity: 0.2; } to { transform: scale(1.5); opacity: 0; } }

/* Insignia "en vivo" */
.player-live-slot {
  width: 100%;
  display: flex;
  justify-content: center;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(239, 68, 68, .92);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 26px rgba(239, 68, 68, .22);
  animation: livePulse 1.6s ease-in-out infinite;
}
.live-badge .dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #fff;
  opacity: .92;
  box-shadow: 0 0 0 0 rgba(255,255,255,.75);
  animation: liveDot 1.6s ease-in-out infinite;
}
.live-badge.is-off {
  background: rgba(107, 114, 128, .85);
  box-shadow: none;
  animation: none;
}
.live-badge.is-connecting {
  background: rgba(245, 158, 11, .92);
  box-shadow: 0 10px 26px rgba(245, 158, 11, .22);
}
.live-badge.is-off .dot {
  background: rgba(255,255,255,.75);
  animation: none;
  opacity: .6;
}
@keyframes livePulse { 0%,100%{ transform: translateY(0); filter: saturate(1); opacity: .95; } 50%{ transform: translateY(-1px); filter: saturate(1.25); opacity: 1; } }
@keyframes liveDot { 0%,100%{ box-shadow: 0 0 0 0 rgba(255,255,255,.65); } 50%{ box-shadow: 0 0 0 10px rgba(255,255,255,0); } }

/* ---------- Redes sociales ---------- */

.player-social {
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1)) drop-shadow(0 3px 1px rgba(0, 0, 0, 0.075));
  gap: 0.5rem;
}
.player-social:empty {
  display: none;
}
.player-social-item {
  border: 1px solid #fff;
  border-radius: 999px;
  padding: 0.75rem;
  --i-size: 20px;
}
.player-social-item:not(:hover) {
  color: #fff;
}
.player-social-item svg {
  width: var(--i-size, 20px);
  height: var(--i-size, 20px);
  display: block;
}

/* ---------- Historial y visualizador ---------- */

.history-item {
  padding: 0.75rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-l);
  width: 100%;
  position: relative;
  padding-right: calc(0.75rem + 35px);
  max-width: 290px;
  overflow: hidden;
  z-index: 1;
}
.history-item::before {
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
  background: var(--accent);
  opacity: 0.5;
}
.history-image {
  width: 64px;
  aspect-ratio: 1/1;
}
.history-image img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}
.visualizer {
  position: absolute;
  filter: url(#gooey);
  inset: auto -20px -20px;
  z-index: 0;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 60%;
  opacity: 0.5;
}
.visualizer-filter {
  /* display:none rompe el filtro en algunos navegadores */
  position: absolute;
  width: 0;
  height: 0;
}

/* ---------- Pies y menú móvil (ocultos en escritorio) ---------- */

.desktop-footer-brand,
.mob-topbar,
.mob-overlay,
.mob-sidebar {
  display: none;
}

/* Enlaces a apps (escritorio) */
.footer-app {
  position: fixed;
  left: var(--main-padding, 32px);
  bottom: calc(var(--main-padding, 32px) + 36px);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.footer-app:empty {
  display: none;
}
.player-apps-item {
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  transition: border-color var(--duration), filter var(--duration);
}
.player-apps-item:hover {
  border-color: rgba(255, 255, 255, 0.6);
  filter: drop-shadow(0 0 10px white);
}
@media (max-width: 991px) {
  .footer-app {
    display: none;
  }
}

/* Botón instalar PWA */
.install-btn {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-l);
}
.install-btn[hidden] {
  display: none;
}
.install-btn .i {
  --i-size: 18px;
}
.install-help {
  max-width: 320px;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 1rem;
  background: #111;
  color: #fff;
  font-size: 14px;
  text-align: center;
}
.install-help::backdrop {
  background: rgba(0, 0, 0, 0.6);
}
.install-help p {
  margin-bottom: 1rem;
}

/* ---------- Escritorio ---------- */

@media (min-width: 992px) {
  :root {
    --main-padding: 3vw;
  }
  html, body {
    width: 100%;
    overflow: hidden;
  }
  .btn {
    --btn-fs: 0.875vw;
    --btn-padding: 0.75vw;
    --i-size: 1.25vw;
    --btn-gap: 0.5vw;
  }
  .header-logo-img {
    max-width: 18vw;
    height: auto;
  }
  .toggle-options {
    gap: 0.5vw;
  }
  .player {
    overflow-x: hidden;
    overscroll-behavior: contain;
  }
  .player-controller {
    padding-top: 1.5rem;
    gap: 2rem;
  }
  .player-button {
    --i-size: 1.5vw;
  }
  .player-social {
    position: absolute;
    padding: var(--main-padding);
    z-index: 50;
    max-width: 40vw;
    bottom: 1vw;
    right: 0;
    gap: 1.125vw;
  }
  .player-social-item {
    padding: 0.75vw;
    --i-size: 1.25vw;
  }
  .desktop-footer-brand {
    position: fixed;
    left: 24px;
    bottom: 18px;
    z-index: 130;
    display: block;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 12px;
    line-height: 1.35;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
  }
}

/* ---------- Móvil y tablet ---------- */

@media (max-width: 991px) {
  html, body {
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }
  body.mob-menu-open {
    overflow: hidden;
  }
  .header {
    display: none;
  }
  .player {
    padding-top: calc(74px + env(safe-area-inset-top, 0px));
  }
  .player-social {
    justify-content: center;
    padding: var(--main-padding);
  }
  .player-button-volume {
    opacity: 0.25;
    pointer-events: none;
  }

  /* Barra superior */
  .mob-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10020;
    height: calc(72px + env(safe-area-inset-top, 0px));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 22px 10px;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(var(--cover-rgb), .62), rgba(12, 12, 22, .36));
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 12px 38px rgba(0, 0, 0, .20);
    transition: background .55s ease, box-shadow .55s ease;
  }
  .mob-topbar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .22), transparent 58%);
    pointer-events: none;
  }
  .mob-topbar img {
    width: auto;
    max-width: 62%;
    max-height: 54px;
    margin: 0 auto;
    object-fit: contain;
    pointer-events: none;
    transform: translateY(1px);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .42));
  }
  .mob-toggle {
    position: absolute;
    left: 18px;
    top: calc(15px + env(safe-area-inset-top, 0px));
    z-index: 10021;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, .34);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .20);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
    color: #fff;
    pointer-events: auto;
    transition: all .35s;
  }
  .mob-toggle svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
  }
  .mob-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 10030;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
  }
  .mob-overlay.mob-active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Menú lateral */
  .mob-sidebar {
    display: block;
    position: fixed;
    top: 0;
    left: -304px;
    width: 292px;
    height: 100%;
    z-index: 10031;
    color: #fff;
    background:
      linear-gradient(155deg, rgba(22, 21, 43, .94), rgba(5, 5, 16, .98)),
      linear-gradient(135deg, rgba(var(--cover-rgb), .18), transparent 55%);
    backdrop-filter: blur(22px) saturate(1.2);
    -webkit-backdrop-filter: blur(22px) saturate(1.2);
    box-shadow: 12px 0 50px rgba(0, 0, 0, .45);
    transition: left .32s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .32s;
    overflow-y: auto;
    overflow-x: hidden;
    visibility: hidden;
  }
  .mob-sidebar.mob-active {
    left: 0;
    visibility: visible;
    transition: left .32s cubic-bezier(.4, 0, .2, 1), visibility 0s;
  }
  .mob-sb-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: calc(30px + env(safe-area-inset-top, 0px)) 22px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    background: linear-gradient(135deg, rgba(var(--cover-rgb), .22), rgba(255, 255, 255, .04));
  }
  .mob-sb-head img {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .25);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
    flex-shrink: 0;
  }
  .mob-sb-head h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    word-break: break-word;
  }
  .mob-sb-close {
    position: absolute;
    top: calc(12px + env(safe-area-inset-top, 0px));
    right: 12px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 18px;
    transition: background .2s;
  }
  .mob-sb-close:hover {
    background: rgba(255, 255, 255, .3);
  }
  .mob-sb-nav {
    padding: 12px 0;
  }
  .mob-sb-nav a, .mob-sb-nav button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: calc(100% - 24px);
    margin: 0 12px;
    padding: 14px 24px;
    border-radius: 14px;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    text-align: left;
    transition: background .2s;
  }
  .mob-sb-nav a:hover, .mob-sb-nav button:hover {
    background: rgba(255, 255, 255, .1);
  }
  .mob-sb-nav .nav-icon {
    width: 20px;
    height: 20px;
    opacity: .85;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mob-sb-nav .nav-sep {
    height: 1px;
    background: rgba(255, 255, 255, .1);
    margin: 8px 20px;
  }
  .mob-sb-nav .nav-section {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: .5;
    padding: 14px 22px 4px;
    font-weight: 600;
  }
  .mob-sb-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 16px 18px 8px;
  }
  .mob-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    padding: 7px 10px;
    border-radius: 10px;
    background: #000;
    border: 1.5px solid rgba(255, 255, 255, .3);
    color: #fff;
    transition: border-color .2s;
  }
  .mob-badge:hover {
    border-color: rgba(255, 255, 255, .6);
  }
  .mob-badge-text small {
    font-size: 8px;
    display: block;
    line-height: 1;
    opacity: .8;
    font-weight: 400;
  }
  .mob-badge-text strong {
    font-size: 12px;
    display: block;
    line-height: 1.3;
    font-weight: 600;
  }
  .mob-sb-services {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 20px 14px;
    text-align: center;
  }
  .mob-svc {
    height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    transition: background .2s;
  }
  .mob-svc:hover {
    background: rgba(255, 255, 255, .18);
  }
  .mob-footer-brand {
    display: block;
    margin: 12px 22px 26px;
    padding: 18px 12px 4px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    text-align: center;
    color: rgba(255, 255, 255, .78);
    font-size: 11px;
    line-height: 1.55;
  }
  .mob-footer-brand small {
    opacity: .86;
  }

  /* Panel "Se escucharon" a pantalla completa */
  #offcanvas-history {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(92vw, 390px);
    max-width: 390px;
    height: 100vh;
    height: 100dvh;
    overflow-x: hidden;
    z-index: 10050;
    padding-top: calc(1.5rem + env(safe-area-inset-top, 0px));
    -webkit-overflow-scrolling: touch;
  }
  #offcanvas-history .offcanvas-content {
    min-height: calc(100dvh - 70px);
    padding-bottom: 32px;
  }
}

/* Preferencia del sistema: sin animaciones continuas ni filtro de fusión (menos CPU/GPU) */
@media (prefers-reduced-motion: reduce) {
  .player-cover-image,
  .live-badge,
  .live-badge .dot,
  .player-button-play::before,
  .player-button-play::after {
    animation: none;
  }
  .visualizer {
    filter: none;
  }
}

/* Aviso sin JavaScript */
.noscript-msg {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  color: #fff;
  text-align: center;
  padding: 2rem;
  z-index: 99999;
}
