/* ASTRA LIVE — Mu Plus One (Sprint B.3.1 polish) */

.al-raffle-strip {
  margin: 0 0 12px;
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}

.al-raffle-strip[hidden],
.al-raffle-modal[hidden] {
  display: none !important;
}

.al-raffle-strip-btn {
  flex: 1 1 280px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(230, 181, 77, 0.55);
  border-radius: 14px;
  background: linear-gradient(110deg, #1a1206 0%, #3a2810 40%, #7a4d12 100%);
  color: #ffe7a8;
  padding: 12px 16px 12px 40px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  box-shadow: 0 0 24px rgba(230, 181, 77, 0.25), inset 0 0 30px rgba(255, 200, 80, 0.08);
  animation: alRaffleGlow 1.6s ease-in-out infinite;
}

.al-raffle-strip-pulse {
  position: absolute;
  left: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff4d4d;
  box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
  animation: alRafflePulse 1.2s infinite;
}

.al-raffle-strip-label {
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
}

.al-raffle-strip-prize {
  font-size: 0.92rem;
  color: #fff6d6;
}

.al-raffle-strip-timer {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #ffd36a;
}

.al-raffle-strip-join {
  min-width: 130px;
}

@keyframes alRaffleGlow {
  0%, 100% { box-shadow: 0 0 18px rgba(230, 181, 77, 0.2); }
  50% { box-shadow: 0 0 34px rgba(255, 200, 80, 0.45); }
}

@keyframes alRafflePulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 77, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); }
}

.al-raffle-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.al-raffle-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 16, 0.78);
  backdrop-filter: blur(4px);
}

.al-raffle-modal-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  border-radius: 20px;
  border: 1px solid rgba(255, 200, 90, 0.45);
  background:
    radial-gradient(ellipse at top, rgba(255, 190, 60, 0.18), transparent 55%),
    linear-gradient(180deg, #1a140c 0%, #0d111a 55%, #121018 100%);
  box-shadow: 0 0 0 1px rgba(255, 220, 120, 0.12), 0 24px 80px rgba(0, 0, 0, 0.65);
  padding: 22px 22px 18px;
  color: #f3e9d2;
  animation: alRaffleModalIn 0.35s ease;
}

@keyframes alRaffleModalIn {
  from { transform: translateY(18px) scale(0.97); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.al-raffle-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.al-raffle-modal-lights {
  height: 8px;
  border-radius: 999px;
  margin-bottom: 14px;
  background: repeating-linear-gradient(
    90deg,
    #ff4d4d 0 12px,
    #ffd36a 12px 24px,
    #4fd1c5 24px 36px,
    #a78bfa 36px 48px
  );
  background-size: 48px 8px;
  animation: alRaffleLights 0.8s linear infinite;
}

@keyframes alRaffleLights {
  to { background-position: 48px 0; }
}

.al-raffle-modal-kicker {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c9b27a;
}

.al-raffle-modal-title {
  margin: 6px 0 8px;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: #ffe7a8;
}

.al-raffle-countdown {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 200, 80, 0.45);
  margin: 4px 0 10px;
}

.al-raffle-featured {
  margin: 0 0 16px;
  color: #d8c9a4;
}

.al-raffle-featured strong {
  color: #ffd36a;
  display: block;
  font-size: 1.15rem;
  margin-top: 2px;
}

.al-raffle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

@media (max-width: 640px) {
  .al-raffle-grid { grid-template-columns: 1fr; }
}

.al-raffle-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 210, 120, 0.16);
  border-radius: 14px;
  padding: 12px;
  min-height: 160px;
}

.al-raffle-card h3 {
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: #ffe7a8;
}

.al-raffle-prize-list,
.al-raffle-people,
.al-raffle-wins ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 180px;
  overflow: auto;
}

.al-raffle-prize-list li,
.al-raffle-people li,
.al-raffle-wins li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
}

.al-raffle-prize-list .tag {
  color: #9fd;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.al-raffle-people li {
  color: #e8eef7;
}

.al-raffle-howto {
  margin: 0 0 14px;
  padding-left: 1.2rem;
  color: #c5d0e0;
  font-size: 0.84rem;
  line-height: 1.45;
}

.al-raffle-modal-actions {
  text-align: center;
  margin-bottom: 10px;
}

.al-raffle-cta {
  min-width: min(100%, 280px);
  padding: 14px 22px !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  animation: alRaffleCta 1.4s ease-in-out infinite;
}

.al-raffle-cta:disabled {
  animation: none;
  opacity: 0.55;
}

@keyframes alRaffleCta {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.al-raffle-modal-hint {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: #9fb0c7;
}

.al-raffle-wins h3 {
  font-size: 0.85rem;
  color: #c9b27a;
  margin: 8px 0;
}

.al-raffle-celebrate {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  pointer-events: auto;
  overflow: hidden;
}

.al-raffle-celebrate[hidden] {
  display: none !important;
}

.al-raffle-fw {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.al-raffle-celebrate-panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 420px);
  padding: 28px 24px 22px;
  text-align: center;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 0%, rgba(255, 214, 102, 0.22), transparent 55%),
    linear-gradient(160deg, rgba(18, 24, 38, 0.96), rgba(8, 12, 22, 0.98));
  border: 1px solid rgba(255, 214, 102, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  animation: alRaffleModalIn 0.45s ease-out;
  overflow: hidden;
}

.al-raffle-celebrate-kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9b27a;
}

.al-raffle-celebrate-title {
  margin: 0 0 8px;
  font-size: 1.55rem;
  color: #fff7d6;
}

.al-raffle-celebrate-phase {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: #9fb0c7;
}

.al-raffle-celebrate-panel--wheel {
  width: min(94vw, 420px);
  max-height: none;
  overflow: hidden;
}

.al-wheel-stage {
  position: relative;
  width: min(72vw, 300px);
  height: min(72vw, 300px);
  margin: 0 auto 16px;
  overflow: hidden;
  border-radius: 50%;
  --al-wheel-hub: 36px;
}

.al-wheel-pointer {
  position: absolute;
  top: 2px;
  left: 50%;
  z-index: 5;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 18px solid #ffd666;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

.al-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid rgba(255, 214, 102, 0.55);
  box-shadow:
    0 0 0 5px rgba(8, 12, 22, 0.85),
    0 12px 28px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  transform: rotate(0deg);
  will-change: transform;
  background: #1a2233;
  --al-wheel-hub: 36px;
}

.al-wheel.is-spinning {
  transition: transform 5.2s cubic-bezier(0.12, 0.75, 0.15, 1);
}

/* Contenedor radial: rota alrededor del centro de la ruleta */
.al-wheel-seg {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
  pointer-events: none;
}

/*
 * Mitad derecha del radio: padding-left = radio del hub + aire.
 * Igual para ganadores y premios (misma estructura).
 */
.al-wheel-seg-label {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  margin: 0;
  padding: 0;
  padding-left: calc(var(--al-wheel-hub, 36px) / 2 + 6px);
  padding-right: 12px;
  box-sizing: border-box;
  transform: translateY(-50%);
  text-align: left;
  font-size: clamp(0.52rem, 1.9vw, 0.68rem);
  font-weight: 700;
  letter-spacing: 0;
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.al-wheel.is-dense .al-wheel-seg-label {
  font-size: clamp(0.42rem, 1.5vw, 0.55rem);
  padding-right: 8px;
}

.al-wheel.is-crowded .al-wheel-seg-label {
  font-size: clamp(0.34rem, 1.15vw, 0.46rem);
  padding-right: 5px;
  letter-spacing: -0.01em;
}

.al-wheel-center {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 4;
  width: var(--al-wheel-hub, 36px);
  height: var(--al-wheel-hub, 36px);
  margin: calc(var(--al-wheel-hub, 36px) / -2) 0 0 calc(var(--al-wheel-hub, 36px) / -2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #ffe9a8, #c9a227 60%, #7a5a10);
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  color: #2a1f05;
  font-size: 0.85rem;
  pointer-events: none;
}

.al-raffle-celebrate-final {
  margin-top: 8px;
}

.al-raffle-celebrate-name {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #6ee7a8;
}

.al-raffle-celebrate-prize {
  margin: 0 0 18px;
  color: #d7e2f2;
  font-size: 0.95rem;
}

.al-raffle-joined-badge {
  color: #6ee7a8;
  font-weight: 700;
}

@media (max-width: 520px) {
  .al-raffle-celebrate-panel--wheel {
    width: min(94vw, 100%);
    padding: 18px 12px 16px;
  }

  .al-raffle-celebrate-title {
    font-size: 1.3rem;
  }

  .al-wheel-stage {
    width: min(78vw, 270px);
    height: min(78vw, 270px);
    --al-wheel-hub: 32px;
  }

  .al-wheel {
    --al-wheel-hub: 32px;
  }

  .al-wheel-seg-label {
    font-size: clamp(0.52rem, 2.6vw, 0.66rem);
  }

  .al-wheel-center {
    font-size: 0.78rem;
  }

  .al-raffle-celebrate-name {
    font-size: 1.15rem;
  }
}

.al-root {
  --al-bg-deep: #080e18;
  --al-bg: #0d1524;
  --al-gold: #e6b54d;
  --al-gold-dim: #b8872a;
  --al-cyan: #4fd1c5;
  --al-green: #6ee7a8;
  --al-amber: #fbbf24;
  --al-pink: #f472b6;
  --al-red: #f87171;
  --al-blue: #60a5fa;
  --al-text: #e8eef7;
  --al-muted: #9fb0c7;
  --al-divider: rgba(120, 170, 210, 0.12);
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --al-astra-cover-h: 266px;
  --al-astra-cover-w: calc(var(--al-astra-cover-h) * 16 / 10);
  max-width: min(1440px, 96vw);
  margin: 0 auto;
  padding: 12px 20px 48px;
  color: var(--al-text);
  font-family: inherit;
}

.al-root *,
.al-root *::before,
.al-root *::after {
  box-sizing: border-box;
}

.al-preview-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px dashed rgba(230, 181, 77, 0.45);
  background: rgba(230, 181, 77, 0.08);
  color: var(--al-gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.al-sync-hint {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--al-muted);
  min-height: 0;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, max-height 0.25s ease, margin 0.25s ease;
}

.al-sync-hint.is-visible {
  min-height: 18px;
  max-height: 24px;
  margin-bottom: 8px;
  opacity: 1;
}

.al-sync-hint.is-stale {
  color: #fde68a;
}

/* ── App shell ── */
.al-app-shell {
  background: linear-gradient(180deg, var(--al-bg) 0%, var(--al-bg-deep) 100%);
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

.al-app-shell > * {
  position: relative;
  z-index: 1;
}

.al-app-shell > * + * {
  border-top: 1px solid var(--al-divider);
}

/* ── Launcher header ── */
.al-launcher-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  background: rgba(15, 26, 46, 0.65);
}

.al-launcher-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.al-launcher-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.al-brand-l1 {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--al-cyan);
}

.al-brand-l2 {
  margin: 2px 0 0;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--al-gold);
  line-height: 1.1;
}

.al-brand-l3 {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.al-brand-tagline {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--al-muted);
  letter-spacing: 0.02em;
}

.al-launcher-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.al-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 6px 10px;
  min-width: 72px;
}

.al-stat span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--al-muted);
}

.al-stat strong {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  color: #fff;
  line-height: 1.1;
}

/* ── Cartel estudio radio (ON AIR / EN VIVO) ── */
.al-on-air-sign {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 5px;
  border: 2px solid #2a0808;
  background: linear-gradient(180deg, #140404 0%, #080202 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 3px 10px rgba(0, 0, 0, 0.55);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.88);
}

.al-on-air-lamp {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #3a1010;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

.al-on-air-text {
  line-height: 1;
}

/* Encendido — EN VIVO / AL AIRE */
.al-on-air-sign.is-live {
  border-color: #7f1010;
  background: linear-gradient(180deg, #b91c1c 0%, #7f1d1d 48%, #450a0a 100%);
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 120, 120, 0.85);
  box-shadow:
    inset 0 0 14px rgba(255, 70, 70, 0.35),
    0 0 22px rgba(220, 38, 38, 0.5),
    0 3px 12px rgba(0, 0, 0, 0.55);
  animation: alOnAirSignGlow 2.4s ease-in-out infinite;
}

.al-on-air-sign.is-live .al-on-air-lamp {
  background: #ff3b3b;
  box-shadow:
    0 0 6px rgba(255, 59, 59, 1),
    0 0 14px rgba(255, 59, 59, 0.75);
  animation: alOnAirLampPulse 1.15s ease-in-out infinite;
}

/* Apagado — Standby / Fuera de aire */
.al-on-air-sign.is-standby {
  border-color: #2a2a2a;
  background: linear-gradient(180deg, #181818 0%, #0a0a0a 100%);
  color: rgba(255, 255, 255, 0.38);
  text-shadow: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 2px 8px rgba(0, 0, 0, 0.45);
}

.al-on-air-sign.is-standby .al-on-air-lamp {
  background: #333;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.al-on-air-sign.reconnect.is-standby {
  border-color: #4a3a10;
  color: rgba(253, 230, 138, 0.75);
}

.al-on-air-sign.reconnect.is-standby .al-on-air-lamp {
  background: #ca8a04;
  box-shadow: 0 0 6px rgba(234, 179, 8, 0.55);
  animation: alOnAirLampPulse 1.4s ease-in-out infinite;
}

.al-on-air-sign.off.is-standby {
  border-color: #3f1515;
  color: rgba(252, 165, 165, 0.55);
}

.al-on-air-sign.off.is-standby .al-on-air-lamp {
  background: #7f1d1d;
}

@keyframes alOnAirSignGlow {
  0%, 100% {
    box-shadow:
      inset 0 0 12px rgba(255, 70, 70, 0.28),
      0 0 18px rgba(220, 38, 38, 0.42),
      0 3px 12px rgba(0, 0, 0, 0.55);
  }
  50% {
    box-shadow:
      inset 0 0 18px rgba(255, 90, 90, 0.42),
      0 0 28px rgba(239, 68, 68, 0.62),
      0 3px 12px rgba(0, 0, 0, 0.55);
  }
}

@keyframes alOnAirLampPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.82; transform: scale(0.92); }
}


/* ── Ticker ── */
.al-live-ticker {
  height: 36px;
  overflow: hidden;
  background: rgba(230, 181, 77, 0.06);
  display: flex;
  align-items: center;
}

.al-live-ticker-track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: alTickerScroll var(--al-ticker-duration, 40s) linear infinite;
  padding-left: 100%;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--al-muted);
}

.al-live-ticker.is-paused .al-live-ticker-track {
  animation-play-state: paused;
}

.al-live-ticker.is-new-pulse {
  background: rgba(230, 181, 77, 0.11);
  transition: background 0.35s ease;
}

.al-live-ticker-item {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.al-ticker-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 12px;
  line-height: 1;
  flex-shrink: 0;
}

.al-live-ticker-item::before {
  content: '·';
  margin-right: 24px;
  color: rgba(230, 181, 77, 0.35);
}

.al-live-ticker-item:first-child::before {
  content: none;
  margin: 0;
}

@keyframes alTickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ── Hero (2 columnas: radio izquierda, chat derecha) ── */
.al-hero {
  --al-hero-min-h: 0;
  --al-panel-radius: 14px;
  --al-panel-border: 1px solid rgba(120, 170, 210, 0.14);
  --al-panel-bg: rgba(255, 255, 255, 0.025);
  display: grid;
  grid-template-columns: minmax(0, 54fr) minmax(320px, 46fr);
  gap: 20px;
  padding: 0;
  align-items: stretch;
  min-height: var(--al-hero-min-h);
  transition: background 0.35s ease;
}

.al-hero.is-astra-speaking {
  background: linear-gradient(90deg, rgba(8, 14, 24, 0.15) 0%, rgba(79, 209, 197, 0.04) 100%);
}

.al-hero-player,
.al-hero-chat {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  min-width: 0;
}

.al-hero-player {
  gap: 10px;
  transition: opacity 0.35s ease, filter 0.35s ease;
}

.al-hero-player .al-player-panel {
  flex: 1 1 auto;
  min-height: 0;
}

/* Quick music request (under player) */
.al-music-quick {
  flex: 0 0 auto;
  margin-top: 0;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(230, 181, 77, 0.16);
  background: rgba(0, 0, 0, 0.22);
}

.al-music-quick-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.al-music-quick-title {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--al-gold);
}

.al-music-quick-hint {
  font-size: 11px;
  color: var(--al-muted);
}

.al-music-quick-cooldown {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px dashed rgba(230, 181, 77, 0.4);
  background: rgba(230, 181, 77, 0.08);
  font-size: 12px;
  color: var(--al-muted);
  text-align: center;
}

.al-music-quick-cooldown[hidden] {
  display: none !important;
}

.al-music-quick-cooldown #al-music-quick-cooldown-time {
  font-weight: 700;
  color: var(--al-gold);
  font-variant-numeric: tabular-nums;
}

.al-music-quick-input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(120, 170, 210, 0.18);
  background: rgba(5, 10, 18, 0.72);
  color: var(--al-text);
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
}

.al-music-quick-input:focus {
  outline: none;
  border-color: rgba(230, 181, 77, 0.45);
  box-shadow: 0 0 0 3px rgba(230, 181, 77, 0.1);
}

.al-music-quick-status {
  min-height: 18px;
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--al-muted);
}

.al-music-quick-status.is-hint {
  color: var(--al-muted);
}

.al-music-quick-status.is-success {
  color: var(--al-green);
}

.al-music-quick-status.is-error {
  color: #fca5a5;
}

.al-music-quick-results {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.al-music-quick-results[hidden] {
  display: none !important;
}

.al-music-quick-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.al-music-quick-item-meta {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.al-music-quick-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--al-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.al-music-quick-item-sub {
  font-size: 11px;
  color: var(--al-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.al-music-request-btn--compact {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 12px;
  font-size: 12px;
}

.al-music-quick.is-collapsed {
  padding: 10px 14px;
}

.al-music-quick.is-collapsed .al-music-quick-results,
.al-music-quick.is-collapsed .al-music-quick-status:empty {
  display: none !important;
  margin: 0;
  min-height: 0;
}

.al-music-quick.is-collapsed .al-music-quick-status.is-success,
.al-music-quick.is-collapsed .al-music-quick-status.is-error,
.al-music-quick.is-collapsed .al-music-quick-status.is-hint {
  display: block;
  margin-top: 6px;
  font-size: 11px;
}

.al-track-request-note {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--al-cyan, #67e8f9);
  letter-spacing: 0.02em;
}

.al-track-request-note[hidden] {
  display: none !important;
}

.al-music-queue-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #111;
  background: var(--al-gold, #e6b54d);
}

.al-music-queue-badge[hidden] {
  display: none !important;
}

.al-music-queue-wrap {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(103, 232, 249, 0.14);
  background: rgba(0, 0, 0, 0.18);
}

.al-music-queue-wrap[hidden] {
  display: none !important;
}

.al-music-queue-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.al-music-queue-title {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--al-cyan, #67e8f9);
}

.al-music-queue-count {
  font-size: 11px;
  color: var(--al-muted);
}

.al-music-queue-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.al-music-queue-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}

.al-music-queue-pos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--al-gold);
  background: rgba(230, 181, 77, 0.12);
}

.al-music-queue-track {
  display: block;
  font-size: 13px;
  line-height: 1.35;
}

.al-music-queue-sub {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--al-muted);
}

.al-music-queue-tag {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--al-cyan, #67e8f9);
  background: rgba(103, 232, 249, 0.1);
}

.al-hero-player.is-dimmed .al-player-main {
  opacity: 0.88;
  filter: brightness(0.94);
  transition: opacity 0.35s ease, filter 0.35s ease;
}

.al-player-panel,
.al-chat-panel,
.al-astra-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  border-radius: var(--al-panel-radius);
  border: var(--al-panel-border);
  background: var(--al-panel-bg);
  overflow: hidden;
}

.al-player-panel,
.al-chat-panel {
  padding: 14px 16px;
}

.al-hero-chat {
  padding: 0;
  gap: 0;
  min-height: 0;
}

.al-chat-panel {
  flex: 1 1 auto;
}

.al-hero-chat-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 12px;
  flex: 0 0 auto;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(120, 170, 210, 0.1);
}

.al-hero-chat-title {
  margin: 2px 0 0;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--al-text);
}

.al-hero-chat-head-copy {
  min-width: 0;
}

.al-hero-chat .al-section-head-kicker,
.al-hero-chat-row .al-section-head-kicker {
  margin: 0;
  color: var(--al-green);
}

.al-hero-chat-meta {
  flex: 0 0 auto;
  margin-left: auto;
}

.al-hero-chat .al-zone-chat,
.al-hero-chat-row .al-zone-chat {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-top: 10px;
}

.al-hero-chat .al-chat-card--embedded,
.al-hero-chat-row .al-chat-card--embedded {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.al-hero-chat .al-chat-body,
.al-hero-chat-row .al-chat-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
}

.al-hero-chat .al-chat-messages-wrap,
.al-hero-chat-row .al-chat-messages-wrap {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.al-hero-chat .al-chat-messages,
.al-hero-chat-row .al-chat-messages {
  flex: 1 1 auto;
  height: auto;
  min-height: 180px;
  max-height: none;
  border-radius: 12px;
  border: 1px solid rgba(120, 170, 210, 0.12);
  background: rgba(0, 0, 0, 0.22);
}

.al-hero-chat .al-chat-compose,
.al-hero-chat-row .al-chat-compose {
  margin-top: 12px;
  padding: 14px 0 0;
  border-top: 1px solid rgba(120, 170, 210, 0.1);
  background: transparent;
}

.al-hero-chat .al-chat-login-hint,
.al-hero-chat-row .al-chat-login-hint {
  margin-top: 12px;
  padding: 12px 0 0;
  border-top: 1px solid rgba(120, 170, 210, 0.1);
}

.al-astra-slot {
  position: relative;
  width: 100%;
  max-width: none;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  flex: 0 0 auto;
}

.al-astra-inline {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.al-astra-voice--sr {
  display: none !important;
}

.al-astra-media--cover {
  position: relative;
  width: 100%;
  height: var(--al-astra-cover-h);
  min-height: 0;
  max-height: var(--al-astra-cover-h);
  flex: 0 0 var(--al-astra-cover-h);
  aspect-ratio: auto;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, #15253c, #0a121e);
  border: 1px solid rgba(79, 209, 197, 0.22);
  box-shadow: 0 0 32px rgba(79, 209, 197, 0.12), 0 8px 24px rgba(0, 0, 0, 0.3);
}

.al-astra-media--cover .al-astra-state-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  padding: 5px 9px;
  font-size: 9px;
  letter-spacing: 0.12em;
  backdrop-filter: blur(6px);
  background: rgba(8, 14, 24, 0.72);
}

.al-astra-media--cover .al-astra-avatar-mount,
.al-astra-media--cover .al-astra-avatar-host,
.al-astra-media--cover .al-astra-avatar,
.al-astra-media--cover .al-astra-avatar-stage,
.al-astra-media--cover .al-astra-avatar-video-stack {
  width: 100%;
  height: 100%;
}

.al-astra-media--cover .al-astra-avatar-video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}

.al-cover-wrap--hidden {
  display: none !important;
}

.al-hero-astra {
  padding: 0;
  border-left: 0;
  min-height: 0;
}

.al-astra-card {
  gap: 0;
}

.al-astra-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  padding: 14px 16px 12px;
}

.al-astra-media {
  flex: 0 0 auto;
  width: 100%;
  height: var(--al-astra-media-h);
  min-height: var(--al-astra-media-h);
  max-height: var(--al-astra-media-h);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(160deg, rgba(21, 37, 60, 0.9), rgba(10, 18, 30, 0.95));
  border: 1px solid rgba(79, 209, 197, 0.12);
}

.al-astra-media.al-astra-media--cover {
  height: var(--al-astra-cover-h);
  min-height: 0;
  max-height: var(--al-astra-cover-h);
  flex: 0 0 var(--al-astra-cover-h);
  aspect-ratio: auto;
  border-radius: 14px;
  border: 1px solid rgba(79, 209, 197, 0.22);
  background: linear-gradient(160deg, #15253c, #0a121e);
  box-shadow: 0 0 32px rgba(79, 209, 197, 0.12), 0 8px 24px rgba(0, 0, 0, 0.3);
}

.al-player {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}

.al-player--stacked .al-player-main {
  width: 100%;
  height: auto;
  flex: 0 0 auto;
  padding-top: 10px;
  border-top: 1px solid rgba(120, 170, 210, 0.1);
}

.al-cover-wrap {
  position: relative;
  width: 100%;
  max-width: 220px;
  align-self: start;
}

.al-cover-wrap.is-track-changing .al-cover {
  animation: alTrackChange 0.72s ease;
}

.al-cover.is-fading {
  opacity: 0.72;
  transition: opacity 0.28s ease;
}

@keyframes alTrackChange {
  0% { transform: scale(1); filter: brightness(1); }
  40% { transform: scale(0.98); filter: brightness(1.06); }
  100% { transform: scale(1); filter: brightness(1); }
}

.al-cover {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(160deg, #15253c, #0a121e);
  border: 1px solid rgba(120, 170, 210, 0.22);
  box-shadow: 0 0 48px rgba(79, 209, 197, 0.18);
  animation: alCoverGlow 4.5s ease-in-out infinite;
  transition: filter 0.35s ease;
}

@keyframes alCoverGlow {
  0%, 100% { box-shadow: 0 0 40px rgba(79, 209, 197, 0.14), 0 12px 32px rgba(0, 0, 0, 0.35); }
  50% { box-shadow: 0 0 56px rgba(79, 209, 197, 0.22), 0 16px 40px rgba(0, 0, 0, 0.4); }
}

.al-now-playing-label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--al-muted);
  opacity: 0.85;
}

.al-player-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.al-track-title {
  margin: 0;
  font-size: clamp(20px, 2.1vw, 28px);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  min-height: calc(1.25em * 2);
  max-height: calc(1.25em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.al-track-artist {
  margin: 6px 0 0;
  color: var(--al-muted);
  font-size: 16px;
  line-height: 1.35;
  min-height: 1.35em;
  max-height: calc(1.35em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.al-progress-wrap {
  margin-top: var(--sp-4);
  flex: 0 0 auto;
}

.al-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.al-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--al-cyan), var(--al-gold));
  transition: width 0.35s linear;
}

.al-progress-times {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--al-muted);
  font-variant-numeric: tabular-nums;
}

.al-controls {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-top: var(--sp-4);
  flex: 0 0 auto;
}

.al-play {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: linear-gradient(145deg, var(--al-gold), var(--al-gold-dim));
  color: #1a1208;
  font-size: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(230, 181, 77, 0.4);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.al-play:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 36px rgba(230, 181, 77, 0.5);
  filter: brightness(1.05);
}

.al-play:active {
  transform: scale(0.98);
}

.al-play:focus-visible,
.al-vol input:focus-visible,
.al-btn:focus-visible,
.al-tab:focus-visible,
.al-hero-link:focus-visible {
  outline: 2px solid var(--al-cyan);
  outline-offset: 3px;
}

.al-vol {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--al-muted);
  flex: 1;
  min-width: 120px;
  max-width: 200px;
}

.al-vol input {
  width: 100%;
  min-height: 44px;
}

.al-next {
  margin-top: var(--sp-3);
  flex: 0 0 auto;
}

.al-next-label {
  margin: 0 0 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--al-muted);
}

.al-next-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--al-text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.al-next-artist {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--al-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.al-hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: var(--sp-3);
  flex: 0 0 auto;
}

.al-hero-link {
  font-size: 11px;
  color: var(--al-muted);
  opacity: 0.65;
  text-decoration: none;
}

.al-hero-link:hover {
  color: var(--al-cyan);
  opacity: 1;
}

.al-hero-link-sep {
  font-size: 11px;
  color: var(--al-muted);
  opacity: 0.4;
}

.al-msg {
  margin-top: 10px;
  font-size: 13px;
  color: var(--al-muted);
}

.al-hidden-audio {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

/* ── ASTRA panel head + state pill ── */
.al-astra-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  flex: 0 0 auto;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(120, 170, 210, 0.1);
}

.al-astra-head-titles {
  min-width: 0;
}

.al-astra-companion-name {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--al-cyan);
}

.al-astra-role {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--al-muted);
  letter-spacing: 0.02em;
}

.al-astra-state-pill {
  flex-shrink: 0;
  padding: 6px 12px;
  font-size: 10px;
  letter-spacing: 0.14em;
}

.al-astra-state-pill.is-connecting {
  border-color: #4a3a10;
  color: rgba(253, 230, 138, 0.8);
}

.al-astra-state-pill.is-connecting .al-on-air-lamp {
  background: #ca8a04;
  box-shadow: 0 0 6px rgba(234, 179, 8, 0.55);
  animation: alOnAirLampPulse 1.4s ease-in-out infinite;
}

.al-astra-state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
  margin-right: 2px;
  opacity: 0.92;
}

/* Pill ASTRA: lámpara ON AIR (C1) o icono semántico (C2), no ambos */
.al-astra-state-pill.is-standby .al-astra-state-icon,
.al-astra-state-pill.is-connecting .al-astra-state-icon {
  display: none;
}

.al-astra-state-pill.is-speaking .al-on-air-lamp,
.al-astra-state-pill.is-greeting .al-on-air-lamp,
.al-astra-state-pill.is-event .al-on-air-lamp,
.al-astra-state-pill.is-offline .al-on-air-lamp {
  display: none;
}

.al-astra-state-pill.is-offline {
  border-color: rgba(248, 113, 113, 0.35);
  color: rgba(254, 202, 202, 0.92);
}

.al-astra-state-pill.is-offline .al-on-air-lamp {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.45);
}

.al-astra-state-pill.is-standby {
  border-color: rgba(159, 176, 199, 0.28);
  color: rgba(203, 213, 225, 0.78);
}

.al-astra-state-pill.is-standby .al-on-air-lamp {
  background: rgba(148, 163, 184, 0.55);
  box-shadow: none;
}

.al-astra-state-pill.is-speaking.is-live {
  border-color: rgba(79, 209, 197, 0.45);
  color: #cafff8;
}

.al-astra-state-pill.is-greeting.is-live {
  border-color: rgba(244, 114, 182, 0.42);
  color: #ffd9ec;
}

.al-astra-state-pill.is-greeting.is-live .al-on-air-lamp {
  background: #f472b6;
  box-shadow: 0 0 8px rgba(244, 114, 182, 0.5);
}

.al-astra-state-pill.is-event.is-live {
  border-color: rgba(230, 181, 77, 0.45);
  color: #ffe8b0;
}

.al-astra-state-pill.is-event.is-live .al-on-air-lamp {
  background: var(--al-gold);
  box-shadow: 0 0 8px rgba(230, 181, 77, 0.5);
}

.al-astra-caption {
  display: none !important;
}

.al-astra-caption-text {
  display: none !important;
}

#al-panel-astra.is-speaking-start .al-astra-avatar-mount {
  animation: alAstraSpeakStart 0.65s ease;
}

#al-panel-astra.is-semantic-greeting .al-astra-voice.is-speaking {
  border-color: rgba(244, 114, 182, 0.24);
  background: rgba(244, 114, 182, 0.06);
}

#al-panel-astra.is-semantic-event .al-astra-voice.is-speaking {
  border-color: rgba(230, 181, 77, 0.28);
  background: rgba(230, 181, 77, 0.06);
}

@keyframes alAstraSpeakStart {
  0% { filter: brightness(1); }
  35% { filter: brightness(1.08); }
  100% { filter: brightness(1); }
}

/* ── ASTRA companion (official video avatar) ── */
.al-astra-media .al-astra-avatar-mount,
.al-astra-media .al-astra-avatar-host,
.al-astra-companion .al-astra-avatar-mount,
.al-astra-companion .al-astra-avatar-host {
  flex: 0 0 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.al-astra-media.al-astra-media--cover .al-astra-avatar-mount,
.al-astra-media.al-astra-media--cover .al-astra-avatar-host {
  max-height: 100%;
}

.al-astra-media .al-astra-avatar,
.al-astra-media .al-astra-avatar-stage,
.al-astra-media .al-astra-avatar-video-stack {
  width: 100%;
  height: 100%;
}

.al-astra-media .al-astra-avatar-video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}

.al-astra-media .al-astra-avatar.has-speaking-video .al-astra-avatar-video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}

.al-astra-companion {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  flex: 0 0 auto;
  width: 100%;
}

.al-astra-avatar {
  width: 100%;
  height: 100%;
  max-height: 100%;
  position: relative;
}

.al-astra-avatar-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(0);
}

.al-astra-avatar-video-stack {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 32px rgba(79, 209, 197, 0.22));
  transition: filter 500ms ease;
  transform: translateZ(0);
}

.al-astra-avatar.is-speaking .al-astra-avatar-video-stack {
  filter: drop-shadow(0 12px 40px rgba(79, 209, 197, 0.38));
}

.al-astra-avatar-video {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center center;
  background: transparent;
  transform: translateZ(0);
}

.al-astra-avatar.has-speaking-video .al-astra-avatar-video {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) translateZ(0);
  transition: opacity 500ms ease;
  will-change: opacity;
}

.al-astra-avatar.has-speaking-video .al-astra-avatar-video--idle {
  opacity: 1;
}

.al-astra-avatar.has-speaking-video .al-astra-avatar-video--speaking {
  opacity: 0;
}

.al-astra-avatar.has-speaking-video.is-speaking .al-astra-avatar-video--idle {
  opacity: 0;
}

.al-astra-avatar.has-speaking-video.is-speaking .al-astra-avatar-video--speaking {
  opacity: 1;
}

.al-astra-avatar-vignette {
  position: absolute;
  inset: -2%;
  pointer-events: none;
  background: radial-gradient(
    ellipse 72% 78% at 50% 46%,
    transparent 58%,
    rgba(8, 14, 24, 0.35) 88%,
    rgba(8, 14, 24, 0.55) 100%
  );
  opacity: 0.55;
  mix-blend-mode: multiply;
}

.al-astra-avatar-glow {
  position: absolute;
  pointer-events: none;
  transform: translateZ(0);
  will-change: opacity, transform;
  transition: opacity 500ms ease;
}

.al-astra-avatar-glow--body {
  inset: 8% 14% 10%;
  border-radius: 42% 42% 38% 38%;
  background: radial-gradient(
    ellipse at 50% 42%,
    rgba(79, 209, 197, 0.28) 0%,
    rgba(79, 209, 197, 0) 68%
  );
  opacity: 0.38;
  animation: alAvatarBreathGlow 4.8s ease-in-out infinite;
}

.al-astra-avatar.is-speaking .al-astra-avatar-glow--body {
  opacity: 0.58;
  background: radial-gradient(
    ellipse at 50% 42%,
    rgba(79, 209, 197, 0.42) 0%,
    rgba(79, 209, 197, 0) 68%
  );
}

.al-astra-avatar-glow--chest {
  inset: 38% 36% 42%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(120, 230, 255, 0.22) 0%,
    rgba(79, 209, 197, 0.1) 42%,
    transparent 72%
  );
  opacity: 0.28;
  mix-blend-mode: screen;
  animation: alAvatarChestPulse 3.2s ease-in-out infinite;
}

.al-astra-avatar.is-speaking .al-astra-avatar-glow--chest {
  opacity: 0.52;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(120, 230, 255, 0.38) 0%,
    rgba(79, 209, 197, 0.18) 42%,
    transparent 72%
  );
}

.al-astra-avatar-glow--eyes {
  inset: 22% 30% 58%;
  border-radius: 40%;
  background: radial-gradient(
    ellipse at 50% 55%,
    rgba(180, 245, 255, 0.18) 0%,
    transparent 62%
  );
  opacity: 0.22;
  mix-blend-mode: screen;
}

.al-astra-avatar.is-speaking .al-astra-avatar-glow--eyes {
  opacity: 0.42;
  background: radial-gradient(
    ellipse at 50% 55%,
    rgba(180, 245, 255, 0.32) 0%,
    transparent 62%
  );
}

.al-astra-avatar-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 500ms ease;
}

.al-astra-avatar.is-speaking .al-astra-avatar-particles {
  opacity: 1;
}

.al-astra-avatar-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(120, 230, 255, 0.75);
  box-shadow: 0 0 6px rgba(79, 209, 197, 0.55);
  transform: translate(-50%, -50%) translateZ(0);
  animation: alAvatarParticle 4.5s ease-in-out infinite;
  opacity: 0;
}

.al-astra-avatar-particle:nth-child(1) { left: 50%; top: 18%; animation-delay: 0s; }
.al-astra-avatar-particle:nth-child(2) { left: 68%; top: 24%; animation-delay: -0.4s; }
.al-astra-avatar-particle:nth-child(3) { left: 78%; top: 40%; animation-delay: -0.8s; }
.al-astra-avatar-particle:nth-child(4) { left: 72%; top: 58%; animation-delay: -1.2s; }
.al-astra-avatar-particle:nth-child(5) { left: 58%; top: 72%; animation-delay: -1.6s; }
.al-astra-avatar-particle:nth-child(6) { left: 42%; top: 72%; animation-delay: -2s; }
.al-astra-avatar-particle:nth-child(7) { left: 28%; top: 58%; animation-delay: -2.4s; }
.al-astra-avatar-particle:nth-child(8) { left: 22%; top: 40%; animation-delay: -2.8s; }
.al-astra-avatar-particle:nth-child(9) { left: 32%; top: 24%; animation-delay: -3.2s; }
.al-astra-avatar-particle:nth-child(10) { left: 50%; top: 12%; animation-delay: -3.6s; }

.al-astra-avatar.is-speaking .al-astra-avatar-particle {
  opacity: 0.55;
}

@keyframes alAvatarBreathGlow {
  0%, 100% { transform: scale(1) translateZ(0); }
  50% { transform: scale(1.03) translateZ(0); }
}

@keyframes alAvatarChestPulse {
  0%, 100% { transform: scale(1) translateZ(0); }
  50% { transform: scale(1.06) translateZ(0); }
}

@keyframes alAvatarParticle {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(0) scale(0.85) translateZ(0);
    opacity: 0.15;
  }
  50% {
    transform: translate(-50%, -50%) translateY(-6px) scale(1.05) translateZ(0);
    opacity: 0.65;
  }
}

.al-astra-voice {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-height: var(--al-astra-voice-min-h);
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(120, 170, 210, 0.1);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: border-color 0.35s ease, background 0.35s ease;
}

.al-astra-voice.is-speaking {
  border-color: rgba(79, 209, 197, 0.22);
  background: rgba(79, 209, 197, 0.06);
}

.al-astra-voice-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 16px;
  margin-bottom: 8px;
}

.al-astra-voice-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(148, 163, 184, 0.65);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.al-astra-voice-dot.is-standby {
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.45);
}

.al-astra-voice-dot.is-connecting {
  background: #ca8a04;
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.45);
  animation: alAstraVoiceDotPulse 1.4s ease-in-out infinite;
}

.al-astra-voice-dot.is-speaking {
  background: var(--al-cyan);
  box-shadow: 0 0 8px rgba(79, 209, 197, 0.5);
}

.al-astra-voice-dot.is-greeting {
  background: #f472b6;
  box-shadow: 0 0 8px rgba(244, 114, 182, 0.45);
}

.al-astra-voice-dot.is-event {
  background: var(--al-gold);
  box-shadow: 0 0 8px rgba(230, 181, 77, 0.45);
}

.al-astra-voice-dot.is-offline {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

@keyframes alAstraVoiceDotPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1); }
}

.al-astra-voice-kind {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(79, 209, 197, 0.82);
}

#al-panel-astra.is-semantic-greeting .al-astra-voice-kind {
  color: rgba(244, 114, 182, 0.88);
}

#al-panel-astra.is-semantic-event .al-astra-voice-kind {
  color: rgba(230, 181, 77, 0.9);
}

.al-astra-voice-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.al-astra-voice-body.is-fading .al-astra-phrase {
  opacity: 0;
}

.al-astra-voice-body.is-marquee::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14px;
  pointer-events: none;
  background: linear-gradient(to top, rgba(12, 20, 32, 0.92), transparent);
}

.al-astra-voice.is-speaking .al-astra-voice-body.is-marquee::after {
  background: linear-gradient(to top, rgba(8, 22, 28, 0.92), transparent);
}

.al-astra-phrase {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--al-text);
  transition: opacity 0.28s ease, transform 0.6s ease;
  display: block;
  overflow: hidden;
}

.al-astra-voice-body.is-marquee .al-astra-phrase {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  animation: alPhraseMarquee var(--al-marquee-dur, 10s) ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes alPhraseMarquee {
  from { transform: translateY(0); }
  to { transform: translateY(var(--al-marquee-dist, 0)); }
}

.al-astra-voice.is-speaking .al-astra-phrase {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: #e8fffb;
}

.al-astra-activity-at {
  flex: 0 0 auto;
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--al-muted);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.al-astra-phrase-secondary {
  display: none !important;
}

.al-astra-msg {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  color: var(--al-muted);
}

.al-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  flex: 0 0 auto;
  margin-top: auto;
  padding: 6px 12px 8px;
  border-top: 1px solid rgba(120, 170, 210, 0.1);
  background: rgba(0, 0, 0, 0.08);
}

.al-metric {
  text-align: center;
  padding: 2px 4px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: border-color 0.35s ease, background 0.35s ease;
}

.al-metric strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.88);
  font-variant-numeric: tabular-nums;
  transition: color 0.35s ease;
}

.al-metric span {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  line-height: 1.2;
  color: rgba(159, 176, 199, 0.78);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.al-metric.is-changed {
  border-color: rgba(230, 181, 77, 0.35);
  background: rgba(230, 181, 77, 0.08);
}

.al-metric.is-changed strong {
  color: var(--al-gold);
}

/* ── Home sections (capítulos) ── */
.al-home-section {
  --al-section-accent: var(--al-gold);
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 8px;
}

.al-home-section--radio {
  --al-section-accent: var(--al-gold);
}

.al-home-section--radio.al-home-section--compact {
  margin-top: 16px;
  padding-top: 0;
}

.al-home-section--continent {
  --al-section-accent: #60a5fa;
  margin-top: 12px;
  padding-top: 0;
}

.al-home-section--compact {
  margin-top: 12px;
  margin-bottom: 0;
  padding-top: 0;
}

.al-home-section--continent + .al-home-section--radio {
  margin-top: 12px;
}

.al-home-section--continent .al-continent-strip {
  padding: 10px 14px;
  min-height: 0;
}

.al-home-section--activity {
  --al-section-accent: #fb923c;
  margin-top: 16px;
  padding-top: 0;
}

.al-home-section--extras {
  --al-section-accent: var(--al-gold);
  margin-top: 16px;
  padding-top: 0;
}

.al-extras-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(12px, 2vw, 20px);
  align-items: stretch;
}

.al-extras-group {
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.al-extras-group .al-panel-shell {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.al-extras-row .al-extras-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 12px clamp(14px, 2vw, 20px) clamp(14px, 2vw, 18px);
}

.al-extras-row .al-extras-inner-card {
  margin: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(120, 170, 210, 0.14);
  background: rgba(0, 0, 0, 0.16);
}

.al-extras-row .al-panel-shell--green .al-extras-inner-card {
  border-color: rgba(110, 231, 168, 0.2);
  background: rgba(0, 0, 0, 0.16);
}

.al-extras-row .al-panel-shell--orange .al-extras-inner-card {
  border-color: rgba(251, 146, 60, 0.2);
  background: rgba(0, 0, 0, 0.16);
}

.al-extras-inner-card--activity .al-zone-events,
.al-extras-inner-card--activity .al-zone-news {
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.al-extras-inner-card--activity .al-zone-events {
  flex: 1 1 auto;
  min-height: 0;
}

.al-extras-inner-card--activity .al-zone-news {
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(251, 146, 60, 0.14);
}

.al-extras-row .al-panel-shell-body {
  padding: 0;
}

.al-extras-group--greetings {
  margin-top: 0;
}

.al-extras-group--activity {
  --al-section-accent: #fb923c;
  margin-top: 0;
}

.al-extras-group--greetings .al-section-head {
  --al-section-accent: var(--al-green);
}

.al-extras-group .al-panel-shell {
  margin-bottom: 0;
}

.al-section-head--panel.al-section-head--compact {
  gap: 4px;
  padding: 10px clamp(14px, 2vw, 20px) 10px;
}

.al-section-head--panel.al-section-head--compact .al-section-head-title {
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.15;
}

.al-section-head--panel.al-section-head--compact .al-section-head-sub {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.al-extras-row .al-tabpanel .mpr-form .row {
  grid-template-columns: 1fr;
}

.al-extras-row .al-tabpanel .mpr-form-actions {
  margin-top: 8px;
  margin-bottom: 0;
}

.al-extras-row .al-panel-shell--green {
  border: 1px solid rgba(110, 231, 168, 0.4);
  border-left: 3px solid var(--al-green);
  background: rgba(0, 0, 0, 0.14);
  box-shadow: inset 0 1px 0 rgba(110, 231, 168, 0.06);
}

.al-extras-row .al-panel-shell--orange {
  border: 1px solid rgba(251, 146, 60, 0.4);
  border-left: 3px solid #fb923c;
  background: rgba(0, 0, 0, 0.14);
  box-shadow: inset 0 1px 0 rgba(251, 146, 60, 0.06);
}

.al-extras-row .al-panel-shell--green .al-section-head--panel {
  border-bottom: 1px solid rgba(110, 231, 168, 0.16);
}

.al-extras-row .al-panel-shell--orange .al-section-head--panel {
  border-bottom: 1px solid rgba(251, 146, 60, 0.16);
}

.al-section-head {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: clamp(20px, 3vw, 28px);
  padding: 0 0 18px 16px;
  border-bottom: 1px solid var(--al-divider);
}

.al-section-head::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  max-height: 72px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--al-section-accent), transparent);
}

.al-section-head-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--al-section-accent);
}

.al-section-icon {
  font-size: 14px;
  line-height: 1;
}

.al-section-head-title {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--al-text);
}

.al-section-head-sub {
  margin: 0;
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.5;
  color: var(--al-muted);
}

.al-section-head--split {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
}

.al-section-head-copy {
  flex: 1 1 280px;
  min-width: 0;
}

.al-section-head-meta {
  flex: 0 0 auto;
  margin-left: auto;
}

.al-section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  width: 100%;
}

.al-section-head-live {
  flex: 0 0 auto;
  margin-left: auto;
}

.al-section-head--radio .al-section-head-kicker {
  margin: 0;
}

.al-section-head--radio.al-section-head--compact {
  gap: 4px;
  padding: 10px clamp(16px, 2.5vw, 22px) 8px;
}

.al-section-head--radio .al-section-head-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.al-section-head--radio .al-section-head-title {
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.15;
}

.al-section-head--radio .al-section-head-sub {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.al-section-head--radio .al-section-head-row {
  align-items: center;
  gap: 10px 12px;
}

.al-title-brand {
  color: var(--al-gold);
}

.al-subzone-title {
  margin: 0 0 var(--sp-4);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 238, 247, 0.82);
}

.al-home-section .al-subzone {
  margin-top: clamp(24px, 3vw, 36px);
}

.al-home-section--radio .al-player-main .al-now-playing-label {
  margin-bottom: 6px;
}

.al-home-section--radio .al-player-main .al-track-title {
  font-size: clamp(18px, 1.9vw, 24px);
  min-height: calc(1.25em * 2);
}

.al-home-section--radio .al-player-main .al-track-artist {
  margin-top: 4px;
  font-size: 14px;
}

.al-home-section--radio .al-player-main .al-progress-wrap {
  margin-top: 12px;
}

.al-home-section--radio .al-player-main .al-controls {
  margin-top: 12px;
}

.al-home-section--radio .al-player-main .al-next {
  margin-top: 10px;
}

.al-home-section--radio .al-player-main .al-hero-links {
  margin-top: 10px;
}

.al-home-section--radio .al-hero {
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  grid-template-columns: minmax(0, var(--al-astra-cover-w)) minmax(0, 1fr);
  gap: clamp(12px, 2vw, 20px);
  align-items: start;
}

.al-home-section--radio .al-hero-player {
  width: 100%;
  max-width: var(--al-astra-cover-w);
  justify-self: start;
  height: auto;
  align-self: start;
  gap: 0;
  flex: 0 0 auto;
  border: 1px solid rgba(120, 170, 210, 0.14);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.12);
}

.al-home-section--radio .al-hero-player .al-player-panel {
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
}

.al-home-section--radio .al-hero-player .al-player-panel .al-player {
  flex: 0 0 auto;
  height: auto;
}

.al-home-section--radio .al-hero-chat {
  min-width: 0;
  height: auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.al-home-section--radio .al-panel-shell > .al-hero {
  margin: 0;
  padding: 12px clamp(14px, 2vw, 20px) clamp(14px, 2vw, 18px);
}

/* Cards internas del hero con borde propio */
.al-home-section--radio .al-panel-shell .al-player-panel,
.al-home-section--radio .al-panel-shell .al-chat-panel {
  border: none;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.16);
  box-shadow: none;
}

.al-home-section--radio .al-panel-shell .al-chat-panel {
  border: 1px solid rgba(120, 170, 210, 0.14);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.16);
  padding: 14px 14px 14px;
}

.al-home-section--radio .al-panel-shell .al-hero-player .al-player-panel {
  border-radius: 0;
  height: auto;
  padding: 14px 14px 14px;
}

.al-home-section--radio .al-panel-shell .al-music-quick {
  border: none;
  border-top: 1px solid rgba(120, 170, 210, 0.1);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.1);
  padding: 12px 14px 14px;
}

.al-home-section--radio .al-panel-shell .al-hero-chat .al-chat-messages {
  border: none;
  background: rgba(0, 0, 0, 0.22);
}

.al-home-section--radio .al-panel-shell .al-hero-chat .al-chat-compose,
.al-home-section--radio .al-panel-shell .al-hero-chat .al-chat-login-hint {
  border-top: 1px solid rgba(120, 170, 210, 0.1);
  background: transparent;
}

.al-home-section--radio .al-panel-shell .al-section-head--panel {
  border-bottom: 1px solid rgba(120, 170, 210, 0.1);
}

.al-home-section--radio .al-panel-shell .al-hero-chat-head {
  border-bottom-color: rgba(120, 170, 210, 0.1);
}

.al-home-section--radio .al-panel-shell .al-player--stacked .al-player-main {
  border-top-color: rgba(120, 170, 210, 0.1);
}

.al-home-section--radio .al-hero-chat .al-chat-panel {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow: hidden;
}

.al-home-section--radio .al-hero-chat .al-zone-chat,
.al-home-section--radio .al-hero-chat .al-chat-card--embedded,
.al-home-section--radio .al-hero-chat .al-chat-body,
.al-home-section--radio .al-hero-chat .al-chat-messages-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.al-home-section--radio .al-hero-chat .al-chat-compose,
.al-home-section--radio .al-hero-chat .al-chat-login-hint {
  flex: 0 0 auto;
}

.al-home-section--radio .al-hero-chat-row .al-chat-messages,
.al-home-section--radio .al-hero-chat .al-chat-messages {
  height: 100%;
  min-height: 0;
  max-height: none;
  flex: 1 1 auto;
  overflow-y: auto;
}

.al-home-section--radio .al-hero-chat-row .al-chat-compose,
.al-home-section--radio .al-hero-chat .al-chat-compose,
.al-home-section--radio .al-hero-chat .al-chat-login-hint {
  margin-top: 0;
  padding: 12px 0 0;
}

.al-home-section--radio .al-panel-shell .al-hero-chat .al-chat-compose,
.al-home-section--radio .al-panel-shell .al-hero-chat .al-chat-login-hint {
  padding: 12px 0 0;
}

.al-home-section .al-zone-music,
.al-home-section .al-zone-greetings,
.al-home-section .al-zone-chat,
.al-home-section .al-zone-news,
.al-home-section .al-zone-events,
.al-home-section .al-zone-timeline {
  border-top: none;
  margin-top: 0;
}

.al-home-section--radio .al-zone-music {
  margin-top: clamp(24px, 3vw, 32px);
}

.al-home-section--activity .al-zone-continent,
.al-extras-group--activity .al-zone-continent {
  margin-top: 0;
  gap: clamp(16px, 2vw, 24px);
}

/* ── Continent strip ── */
.al-continent-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
  padding: 16px 20px;
  min-height: 56px;
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.14);
  border-left: 3px solid var(--al-section-accent, #60a5fa);
  background: rgba(0, 0, 0, 0.16);
}

.al-continent-strip-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--al-muted);
  flex: 0 0 auto;
}

.al-continent-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  flex: 1;
}

.al-chip {
  font-size: 13px;
  color: var(--al-text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

#al-strip-next.is-urgent {
  color: var(--al-gold);
}

#al-strip-next .al-chip-label {
  font-variant-numeric: tabular-nums;
}

#al-strip-astra.is-on-air .al-chip-label {
  color: #ff6b6b;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 80, 80, 0.45);
}

#al-strip-astra.is-standby .al-chip-label {
  color: rgba(255, 255, 255, 0.45);
}

#al-strip-astra.is-offline .al-chip-label {
  color: rgba(252, 165, 165, 0.88);
}

#al-strip-astra.is-tone-greeting .al-chip-label {
  color: rgba(251, 182, 206, 0.95);
}

#al-strip-astra.is-tone-event .al-chip-label {
  color: rgba(253, 224, 138, 0.95);
}

/* Unified iconography — SVG/CSS only (no emoji; safe on any charset) */
.al-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  font-size: 0;
  line-height: 1;
  opacity: 0.92;
}

.al-ico::before {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  background: center / contain no-repeat;
}

.al-ico-status::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 5px rgba(74, 222, 128, 0.55);
}

.al-chip.is-offline .al-ico-status::before {
  background: #f87171;
  box-shadow: 0 0 5px rgba(248, 113, 113, 0.5);
}

.al-ico-players::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fb0c7' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M16 21v-2a4 4 0 00-4-4H6a4 4 0 00-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 00-3-3.87M16 3.13a4 4 0 010 7.75'/%3E%3C/svg%3E");
}

.al-ico-listeners::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fb0c7' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 18v-6a9 9 0 0118 0v6'/%3E%3Cpath d='M21 19a2 2 0 01-2 2h-1v-3h3zM3 19a2 2 0 002 2h1v-3H3z'/%3E%3C/svg%3E");
}

.al-ico-event::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6b54d' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M14.5 2L20 7.5 8 19.5 3 21l1.5-5L16.5 5z'/%3E%3C/svg%3E");
}

.al-ico-astra::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234fd1c5' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 2l1.4 4.3L18 8l-4.6 1.5L12 14l-1.4-4.5L6 8l4.6-1.7z'/%3E%3Ccircle cx='12' cy='12' r='2' fill='%234fd1c5'/%3E%3C/svg%3E");
}

.al-ico-volume {
  width: 18px;
  height: 18px;
  opacity: 0.7;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fb0c7' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M11 5L6 9H3v6h3l5 4V5z'/%3E%3Cpath d='M15 9a4 4 0 010 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.al-chip-dot {
  display: none;
}

/* ── Continent zone (events + timeline) ── */
.al-zone-continent {
  display: grid;
  grid-template-columns: minmax(0, 30fr) minmax(0, 70fr);
  gap: 0;
}

.al-zone-events,
.al-zone-timeline {
  padding: var(--sp-6);
}

/* Panel blocks — borde completo + línea lateral (música, saludos, actividad) */
.al-panel-shell {
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left-width: 3px;
  overflow: hidden;
}

.al-panel-shell--gold {
  border-color: rgba(230, 181, 77, 0.2);
  border-left-color: var(--al-gold);
}

.al-panel-shell--green {
  border-color: rgba(110, 231, 168, 0.22);
  border-left-color: var(--al-green);
}

.al-panel-shell--orange {
  border-color: rgba(251, 146, 60, 0.22);
  border-left-color: #fb923c;
}

.al-section-head--panel {
  margin-bottom: 0;
  padding: clamp(18px, 2.5vw, 22px) clamp(20px, 3vw, 28px) clamp(14px, 2vw, 18px);
  border-bottom: 1px solid var(--al-divider);
}

.al-section-head--panel::before {
  display: none;
}

.al-section-head--panel.al-section-head--split {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
}

.al-section-head--panel.al-section-head--split .al-section-head-copy {
  flex: 1 1 280px;
  min-width: 0;
}

.al-panel-shell-body {
  padding: clamp(16px, 2.5vw, 24px) clamp(20px, 3vw, 28px) clamp(20px, 3vw, 28px);
}

.al-panel-shell-body--activity {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 28px);
}

.al-panel-shell-body--activity .al-zone-continent {
  margin-top: 0;
  gap: clamp(16px, 2vw, 24px);
}

.al-panel-shell > .al-zone-music,
.al-panel-shell > .al-zone-greetings,
.al-panel-shell > .al-zone-chat {
  margin-top: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.al-panel-shell > .al-zone-music,
.al-panel-shell > .al-zone-greetings {
  padding: clamp(16px, 2.5vw, 24px) clamp(20px, 3vw, 28px) clamp(20px, 3vw, 28px);
}

.al-panel-shell .al-subzone {
  margin-top: 0;
}

.al-home-section--activity .al-subzone-title,
.al-extras-group--activity .al-subzone-title {
  color: rgba(251, 146, 60, 0.92);
}

.al-panel-shell .al-zone-events,
.al-panel-shell .al-zone-timeline,
.al-panel-shell .al-zone-news {
  padding: clamp(16px, 2vw, 20px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.al-panel-shell .al-zone-news {
  margin-top: 0;
}

.al-zone-title {
  margin: 0 0 var(--sp-4);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--al-muted);
}

/* Events */
.al-events {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.al-event {
  padding: 12px 14px 12px 11px;
  border-left: 3px solid transparent;
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.02);
}

.al-event.is-first {
  border-left-color: var(--al-gold);
  background: rgba(230, 181, 77, 0.09);
  padding: 16px 14px 16px 12px;
  box-shadow: inset 0 0 0 1px rgba(230, 181, 77, 0.12);
}

.al-event.is-first .al-event-name {
  font-size: 15px;
}

.al-event.is-first .al-countdown {
  font-size: 22px;
  letter-spacing: 0.02em;
}

.al-tag-next {
  color: var(--al-gold);
  border-color: rgba(230, 181, 77, 0.35);
  background: rgba(230, 181, 77, 0.08);
  font-weight: 800;
}

.al-event.is-secondary {
  opacity: 0.72;
  padding: 10px 14px 10px 11px;
}

.al-event.is-secondary .al-event-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--al-muted);
}

.al-event.is-secondary .al-countdown {
  font-size: 14px;
  color: var(--al-muted);
}

.al-event.is-secondary .al-event-progress {
  opacity: 0.65;
}

.al-event.soon {
  background: rgba(230, 181, 77, 0.04);
}

.al-event.live {
  background: rgba(110, 231, 168, 0.06);
}

.al-event-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.al-event-name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.al-countdown {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--al-gold);
  font-size: 18px;
  white-space: nowrap;
  font-feature-settings: 'tnum' 1;
  letter-spacing: 0.02em;
}

.al-countdown.urgent {
  color: #fbbf24;
}

.al-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.al-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.al-tag.inv {
  color: var(--al-amber);
  border-color: rgba(251, 191, 36, 0.3);
}

.al-tag.ev {
  color: var(--al-cyan);
  border-color: rgba(79, 209, 197, 0.3);
}

.al-event.is-first .al-event-progress {
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.al-event.is-first .al-event-progress-fill {
  box-shadow: 0 0 10px rgba(230, 181, 77, 0.25);
}

.al-event-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 10px;
  overflow: hidden;
}

.al-event-progress-fill {
  height: 100%;
  width: 0;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--al-cyan), var(--al-gold));
  transition: width 1s linear;
}

.al-event-status {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  color: var(--al-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Timeline */
.al-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 16px;
  border-left: 2px solid var(--al-divider);
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow: auto;
  scrollbar-width: thin;
}

.al-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px 12px 12px 0;
  min-height: 52px;
}

.al-timeline-enter {
  animation: alTimelineIn 0.45s ease both;
}

.al-timeline-item.is-new {
  animation: alTimelineNew 0.55s ease both;
  background: rgba(79, 209, 197, 0.06);
  border-radius: 8px;
  transition: background 1.2s ease;
}

@keyframes alTimelineNew {
  0% {
    opacity: 0;
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 1px rgba(79, 209, 197, 0.35);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    box-shadow: inset 0 0 0 0 rgba(79, 209, 197, 0);
  }
}

.al-events.is-event-updated .al-event.is-first {
  animation: alEventArrive 0.75s ease;
}

@keyframes alEventArrive {
  0% { box-shadow: inset 0 0 0 0 rgba(230, 181, 77, 0); }
  35% { box-shadow: inset 0 0 0 1px rgba(230, 181, 77, 0.45); }
  100% { box-shadow: inset 0 0 0 0 rgba(230, 181, 77, 0); }
}

.al-timeline-item:nth-child(1) { animation-delay: 0.02s; }
.al-timeline-item:nth-child(2) { animation-delay: 0.06s; }
.al-timeline-item:nth-child(3) { animation-delay: 0.1s; }
.al-timeline-item:nth-child(4) { animation-delay: 0.14s; }
.al-timeline-item:nth-child(5) { animation-delay: 0.18s; }

@keyframes alTimelineIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.al-timeline-ico {
  font-size: 14px;
  line-height: 1;
  padding-top: 2px;
  width: 20px;
  text-align: center;
}

.al-timeline-item::before {
  content: '';
  position: absolute;
  left: -21px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--al-muted);
}

.al-timeline--greeting::before { background: var(--al-pink); }
.al-timeline--announcement::before { background: var(--al-cyan); }
.al-timeline--event::before { background: var(--al-green); }
.al-timeline--invasion::before { background: var(--al-amber); }
.al-timeline--achievement::before { background: var(--al-gold); }
.al-timeline--pvp::before { background: var(--al-red); }
.al-timeline--news::before { background: var(--al-blue); }
.al-timeline--server::before { background: var(--al-green); }
.al-timeline--system::before { background: var(--al-muted); }
.al-timeline--astra::before { background: var(--al-cyan); }

.al-timeline-body {
  min-width: 0;
}

.al-timeline-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.al-timeline-text {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--al-muted);
  line-height: 1.4;
  word-break: break-word;
}

.al-timeline-when {
  font-size: 11px;
  color: var(--al-muted);
  white-space: nowrap;
  padding-top: 2px;
}

/* ── Music requests (ASTRA Core client) ── */
.al-zone-music {
  padding: var(--sp-6);
}

.al-music-head {
  margin-bottom: var(--sp-4);
}

.al-music-intro {
  margin: 0;
  color: var(--al-muted);
  font-size: 14px;
  line-height: 1.5;
}

.al-music-cooldown,
.al-greeting-cooldown {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  border-radius: 10px;
  border: 1px dashed rgba(230, 181, 77, 0.45);
  background: rgba(230, 181, 77, 0.08);
}

.al-greeting-cooldown {
  border-color: rgba(110, 231, 168, 0.45);
  background: rgba(110, 231, 168, 0.08);
}

.al-music-cooldown[hidden],
.al-greeting-cooldown[hidden] {
  display: none !important;
}

.al-greeting-queue-wrap {
  margin-bottom: var(--sp-4);
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(110, 231, 168, 0.22);
  background: rgba(110, 231, 168, 0.06);
}

.al-greeting-queue-wrap[hidden] {
  display: none !important;
}

.al-greeting-queue-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.al-greeting-queue-title {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6ee7a8;
}

.al-greeting-queue-pos {
  font-size: 11px;
  font-weight: 700;
  color: #6ee7a8;
}

.al-greeting-queue-msg {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--al-text, #e8f4ff);
}

.al-greeting-queue-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--al-muted);
}

.al-music-cooldown-label,
.al-greeting-cooldown-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--al-muted);
}

.al-music-cooldown-time,
.al-greeting-cooldown-time {
  font-size: 20px;
}

.al-music-request-btn:disabled,
#mpr-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.al-music-subtitle {
  margin: 0 0 var(--sp-3);
  font-size: 11px;
  font-weight: 700;
  color: var(--al-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.al-music-now-wrap {
  margin-bottom: var(--sp-5);
}

.al-music-now-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4);
  border-radius: 12px;
  border: 1px solid var(--al-divider);
  background:
    linear-gradient(135deg, rgba(79, 209, 197, 0.06) 0%, rgba(230, 181, 77, 0.04) 100%),
    rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.al-music-now-art {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.al-music-now-art-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  font-size: 24px;
  color: var(--al-cyan);
}

.al-music-now-meta {
  flex: 1;
  min-width: 0;
}

.al-music-now-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--al-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.al-music-now-artist {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--al-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.al-music-now-note {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--al-muted);
}

.al-music-now-dur {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--al-divider);
  background: rgba(0, 0, 0, 0.25);
  font-size: 12px;
  font-weight: 600;
  color: var(--al-cyan);
  font-variant-numeric: tabular-nums;
}

.al-music-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.al-music-character-field {
  flex: 1 1 220px;
  margin: 0;
  min-width: 0;
}

.al-music-character-field select {
  width: 100%;
  max-width: 320px;
}

.al-music-status {
  flex: 1 1 100%;
  min-height: 1.25em;
  margin: 0 0 var(--sp-4);
  font-size: 14px;
  color: var(--al-muted);
}

.al-music-status.is-success { color: var(--al-gold, #e6b54d); }
.al-music-status.is-error { color: #f87171; }
.al-music-status.is-hint { color: var(--al-muted); }

.al-music-tabs { margin-bottom: var(--sp-4); }

.al-music-tabpanel[hidden] { display: none !important; }

.al-music-login-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  border-radius: 10px;
  border: 1px dashed rgba(79, 209, 197, 0.35);
  background: rgba(79, 209, 197, 0.05);
}

.al-music-search-field {
  margin-bottom: var(--sp-4);
}

.al-music-table-shell {
  background: var(--al-bg-deep);
  border: 1px solid var(--al-divider);
  border-radius: 12px;
  padding: 14px;
}

.al-music-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.al-music-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: var(--al-text);
}

.al-music-table thead th {
  padding: 10px 10px;
  border-bottom: 1px solid var(--al-divider);
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--al-muted);
  white-space: nowrap;
}

.al-music-table tbody td {
  padding: 10px;
  border-bottom: 1px solid rgba(120, 170, 210, 0.08);
  vertical-align: middle;
}

.al-music-table tbody tr:last-child td {
  border-bottom: 0;
}

.al-music-table tbody tr:hover {
  background: rgba(79, 209, 197, 0.04);
}

.al-music-table tbody tr.al-music-empty-row:hover {
  background: transparent;
}

.al-music-table .al-empty {
  padding: 18px 8px;
  text-align: center;
}

.al-music-col-art { width: 52px; }
.al-music-col-dur { width: 72px; }
.al-music-col-pos { width: 40px; }
.al-music-col-action { width: 110px; text-align: right; }
.al-music-col-user { width: 120px; }

.al-music-cell-art img,
.al-music-track-art {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.al-music-track-art-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 18px;
  color: var(--al-cyan);
}

.al-music-cell-title {
  font-weight: 600;
  color: var(--al-text);
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.al-music-cell-artist,
.al-music-cell-dur,
.al-music-cell-user {
  color: var(--al-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.al-music-cell-dur {
  font-variant-numeric: tabular-nums;
}

.al-music-cell-pos {
  font-weight: 700;
  color: var(--al-gold, #e6b54d);
  text-align: center;
}

.al-music-cell-action {
  text-align: right;
}

.al-music-request-btn {
  min-width: 92px;
  white-space: nowrap;
}

.al-music-too-long {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.08);
  color: #f87171;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.al-music-row.is-too-long {
  opacity: 0.72;
}

.al-music-cell-dur.is-over-limit {
  color: #f87171;
  font-weight: 600;
}

.al-zone-music .field input[type="search"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--al-divider);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.al-zone-music .field input[type="search"]:focus {
  outline: none;
  border-color: rgba(79, 209, 197, 0.45);
  box-shadow: 0 0 0 2px rgba(79, 209, 197, 0.12);
}

@media (max-width: 768px) {
  .al-music-now-card {
    flex-wrap: wrap;
  }

  .al-music-now-dur {
    margin-left: calc(64px + var(--sp-4));
  }

  .al-music-table thead {
    display: none;
  }

  .al-music-table tbody tr:not(.al-music-empty-row) {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    grid-template-areas:
      "art title action"
      "art artist action"
      "art dur action";
    gap: 2px 10px;
    padding: 12px 4px;
    border-bottom: 1px solid var(--al-divider);
  }

  .al-music-table tbody tr:not(.al-music-empty-row) td {
    padding: 0;
    border: 0;
  }

  .al-music-table tbody tr:not(.al-music-empty-row) .al-music-cell-art {
    grid-area: art;
    align-self: center;
  }

  .al-music-table tbody tr:not(.al-music-empty-row) .al-music-cell-title {
    grid-area: title;
    max-width: none;
  }

  .al-music-table tbody tr:not(.al-music-empty-row) .al-music-cell-artist {
    grid-area: artist;
    font-size: 12px;
  }

  .al-music-table tbody tr:not(.al-music-empty-row) .al-music-cell-dur {
    grid-area: dur;
    font-size: 11px;
  }

  .al-music-table tbody tr:not(.al-music-empty-row) .al-music-cell-action {
    grid-area: action;
    align-self: center;
  }

  .al-music-queue-table tbody tr:not(.al-music-empty-row) {
    grid-template-columns: 28px 1fr;
    grid-template-areas:
      "pos title"
      "pos artist";
  }

  .al-music-queue-table tbody tr:not(.al-music-empty-row) .al-music-cell-pos {
    grid-area: pos;
    align-self: start;
    padding-top: 2px;
  }

  .al-music-queue-table tbody tr:not(.al-music-empty-row) .al-music-cell-title {
    grid-area: title;
  }

  .al-music-queue-table tbody tr:not(.al-music-empty-row) .al-music-cell-artist {
    grid-area: artist;
  }
}

/* ── Greetings tabs ── */
.al-zone-greetings {
  padding: var(--sp-6);
}

.al-extras-row .al-zone-greetings {
  padding: 14px;
}

.al-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--al-divider);
  margin-bottom: var(--sp-5);
}

.al-tab {
  flex: 1;
  max-width: 220px;
  min-height: 44px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--al-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: -1px;
}

.al-tab.is-active {
  color: var(--al-cyan);
  border-bottom-color: var(--al-cyan);
}

.al-tab:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.al-tabpanel[hidden] {
  display: none !important;
}

.al-rules-link {
  display: inline-block;
  margin-left: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--al-cyan);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}

/* Form (scoped) */
.al-tabpanel .mpr-form label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--al-muted);
}

.al-tabpanel .mpr-form .field {
  margin-bottom: 12px;
}

.al-tabpanel .mpr-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.al-tabpanel .mpr-form input[type="text"],
.al-tabpanel .mpr-form select,
.al-tabpanel .mpr-form textarea {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--al-divider);
  background: rgba(5, 10, 18, 0.65);
  color: #fff;
  padding: 10px 12px;
  font: inherit;
}

.al-tabpanel .mpr-form textarea {
  min-height: 110px;
  resize: vertical;
}

.al-tabpanel .mpr-charcount {
  text-align: right;
  font-size: 12px;
  color: var(--al-muted);
  margin-top: 4px;
}

.al-tabpanel .mpr-check {
  display: inline-flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  cursor: pointer;
  color: var(--al-text) !important;
  font-size: 13px;
}

.al-tabpanel .mpr-form-actions {
  margin-top: 8px;
}

.al-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--al-divider);
  background: rgba(255, 255, 255, 0.04);
  color: var(--al-text);
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 13px;
}

.al-btn:hover {
  border-color: rgba(230, 181, 77, 0.45);
}

.mpr-btn-gold {
  background: linear-gradient(135deg, var(--al-gold), var(--al-gold-dim));
  color: #1a1208 !important;
  border: 0;
}

.al-tabpanel .mpr-st {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.al-tabpanel .mpr-st.queue {
  background: rgba(96, 165, 250, 0.12);
  color: var(--al-blue);
  border: 1px solid rgba(96, 165, 250, 0.28);
}

.al-tabpanel .mpr-st.live {
  background: rgba(79, 209, 197, 0.12);
  color: var(--al-cyan);
  border: 1px solid rgba(79, 209, 197, 0.32);
}

.al-tabpanel .mpr-st.ok {
  background: rgba(110, 231, 168, 0.12);
  color: var(--al-green);
  border: 1px solid rgba(110, 231, 168, 0.28);
}

.al-tabpanel .mpr-st.wait {
  background: rgba(230, 181, 77, 0.12);
  color: var(--al-gold);
  border: 1px solid rgba(230, 181, 77, 0.28);
}

.al-tabpanel .mpr-st.bad {
  background: rgba(248, 113, 113, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.25);
}

.al-tabpanel .mpr-st.muted {
  background: rgba(255, 255, 255, 0.06);
  color: var(--al-muted);
}

.al-tabpanel .mpr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.al-tabpanel .mpr-table th,
.al-tabpanel .mpr-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--al-divider);
  text-align: left;
}

/* DataTables — ASTRA LIVE native theme */
:is(.al-tabpanel, .al-music-tabpanel) .dataTables_wrapper,
:is(.al-tabpanel, .al-music-tabpanel) .dataTables_wrapper .dataTables_length,
:is(.al-tabpanel, .al-music-tabpanel) .dataTables_wrapper .dataTables_filter,
:is(.al-tabpanel, .al-music-tabpanel) .dataTables_wrapper .dataTables_info,
:is(.al-tabpanel, .al-music-tabpanel) .dataTables_wrapper .dataTables_paginate {
  color: var(--al-muted);
  font-size: 12px;
}

:is(.al-tabpanel, .al-music-tabpanel) .dataTables_wrapper {
  background: var(--al-bg-deep);
  border: 1px solid var(--al-divider);
  border-radius: 10px;
  padding: 14px;
}

:is(.al-tabpanel, .al-music-tabpanel) .al-dt-top,
:is(.al-tabpanel, .al-music-tabpanel) .al-dt-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

:is(.al-tabpanel, .al-music-tabpanel) .al-dt-bottom {
  margin-bottom: 0;
  margin-top: 12px;
}

:is(.al-tabpanel, .al-music-tabpanel) .dataTables_filter label,
:is(.al-tabpanel, .al-music-tabpanel) .dataTables_length label {
  color: var(--al-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

:is(.al-tabpanel, .al-music-tabpanel) .dataTables_filter input,
:is(.al-tabpanel, .al-music-tabpanel) .dataTables_length select {
  background: rgba(5, 10, 18, 0.85);
  border: 1px solid var(--al-divider);
  color: var(--al-text);
  border-radius: 8px;
  padding: 8px 12px;
  min-height: 36px;
  font: inherit;
  font-size: 13px;
  outline: none;
}

:is(.al-tabpanel, .al-music-tabpanel) .dataTables_filter input:focus,
:is(.al-tabpanel, .al-music-tabpanel) .dataTables_length select:focus {
  border-color: rgba(79, 209, 197, 0.45);
  box-shadow: 0 0 0 2px rgba(79, 209, 197, 0.12);
}

:is(.al-tabpanel, .al-music-tabpanel) table.dataTable {
  width: 100% !important;
  border-collapse: collapse;
  background: transparent;
  color: var(--al-text);
}

:is(.al-tabpanel, .al-music-tabpanel) table.dataTable thead th {
  background: rgba(13, 21, 36, 0.95);
  color: var(--al-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 10px;
  border-bottom: 1px solid var(--al-divider);
}

:is(.al-tabpanel, .al-music-tabpanel) table.dataTable tbody td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--al-divider);
  font-size: 13px;
  color: var(--al-text);
  vertical-align: middle;
}

:is(.al-tabpanel, .al-music-tabpanel) table.dataTable tbody tr {
  background: transparent;
  transition: background 0.15s ease;
}

:is(.al-tabpanel, .al-music-tabpanel) table.dataTable tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

:is(.al-tabpanel, .al-music-tabpanel) table.dataTable tbody tr:hover {
  background: rgba(79, 209, 197, 0.06);
}

:is(.al-tabpanel, .al-music-tabpanel) table.dataTable.no-footer {
  border-bottom: 0;
}

:is(.al-tabpanel, .al-music-tabpanel) .dataTables_paginate {
  display: flex;
  gap: 4px;
}

:is(.al-tabpanel, .al-music-tabpanel) .dataTables_paginate .paginate_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  padding: 4px 10px;
  margin: 0;
  border-radius: 8px !important;
  border: 1px solid var(--al-divider) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  color: var(--al-muted) !important;
  font-size: 13px;
  cursor: pointer;
}

:is(.al-tabpanel, .al-music-tabpanel) .dataTables_paginate .paginate_button:hover {
  background: rgba(79, 209, 197, 0.1) !important;
  border-color: rgba(79, 209, 197, 0.3) !important;
  color: var(--al-text) !important;
}

:is(.al-tabpanel, .al-music-tabpanel) .dataTables_paginate .paginate_button.current,
:is(.al-tabpanel, .al-music-tabpanel) .dataTables_paginate .paginate_button.current:hover {
  background: rgba(230, 181, 77, 0.15) !important;
  border-color: rgba(230, 181, 77, 0.4) !important;
  color: var(--al-gold) !important;
}

:is(.al-tabpanel, .al-music-tabpanel) .dataTables_paginate .paginate_button.disabled,
:is(.al-tabpanel, .al-music-tabpanel) .dataTables_paginate .paginate_button.disabled:hover {
  opacity: 0.35;
  cursor: not-allowed;
  background: transparent !important;
}

:is(.al-tabpanel, .al-music-tabpanel) .dataTables_info {
  color: var(--al-muted);
  padding-top: 0;
}

:is(.al-tabpanel, .al-music-tabpanel) .dataTables_empty {
  color: var(--al-muted);
  padding: 24px !important;
}

:is(.al-tabpanel, .al-music-tabpanel) .dataTables_processing {
  background: var(--al-bg);
  color: var(--al-cyan);
  border: 1px solid var(--al-divider);
}

:is(.al-tabpanel, .al-music-tabpanel) table.dataTable thead .sorting,
:is(.al-tabpanel, .al-music-tabpanel) table.dataTable thead .sorting_asc,
:is(.al-tabpanel, .al-music-tabpanel) table.dataTable thead .sorting_desc {
  background-image: none;
  position: relative;
  padding-right: 22px;
}

:is(.al-tabpanel, .al-music-tabpanel) table.dataTable thead .sorting::after,
:is(.al-tabpanel, .al-music-tabpanel) table.dataTable thead .sorting_asc::after,
:is(.al-tabpanel, .al-music-tabpanel) table.dataTable thead .sorting_desc::after {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--al-muted);
  opacity: 0.6;
}

:is(.al-tabpanel, .al-music-tabpanel) table.dataTable thead .sorting::after { content: '↕'; }
:is(.al-tabpanel, .al-music-tabpanel) table.dataTable thead .sorting_asc::after { content: '↑'; color: var(--al-cyan); opacity: 1; }
:is(.al-tabpanel, .al-music-tabpanel) table.dataTable thead .sorting_desc::after { content: '↓'; color: var(--al-cyan); opacity: 1; }

:is(.al-tabpanel, .al-music-tabpanel) .dataTables_scrollBody {
  border: 1px solid var(--al-divider);
  background: var(--al-bg-deep);
}

/* ── News (secondary, compact) ── */
.al-zone-news {
  padding: 24px 32px 28px;
  opacity: 0.92;
}

.al-zone-news .al-zone-title {
  margin-bottom: 12px;
  font-size: 10px;
  opacity: 0.75;
}

.al-news {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.al-news-card {
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--al-divider);
}

.al-news-card h3 {
  margin: 0;
  font-size: 13px;
  color: var(--al-text);
  line-height: 1.35;
}

.al-news-card p {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--al-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.al-news-card time {
  margin-top: 6px;
  font-size: 10px;
}

.al-zone-news.is-hidden {
  display: none !important;
}

.al-news-card .al-hero-link {
  display: inline-block;
  margin-top: 10px;
  opacity: 1;
  font-size: 12px;
}

/* ── Modal ── */
.al-modal[hidden] {
  display: none !important;
}

.al-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.al-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.al-modal-panel {
  position: relative;
  max-width: 480px;
  width: 100%;
  max-height: 80vh;
  overflow: auto;
  padding: var(--sp-5);
  background: var(--al-bg);
  border: 1px solid var(--al-divider);
  border-radius: 12px;
}

.al-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-4);
}

.al-modal-head h2 {
  margin: 0;
  font-size: 16px;
  color: var(--al-gold);
}

.al-modal-close {
  border: 0;
  background: none;
  color: var(--al-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.mpr-rules {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--al-muted);
  font-size: 13px;
  line-height: 1.55;
}

.mpr-rules li + li {
  margin-top: 8px;
}

/* Degraded sections */
.is-degraded {
  opacity: 0.75;
}

/* Skeleton, empty, toast */
.al-skel {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  background-size: 200% 100%;
  animation: alSk 1.2s linear infinite;
  border-radius: 8px;
  height: 14px;
  display: block;
}

@keyframes alSk {
  to { background-position: -200% 0; }
}

.al-empty {
  padding: 16px;
  text-align: center;
  color: var(--al-muted);
  font-size: 13px;
  line-height: 1.5;
}

.al-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  max-width: 380px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #102033;
  border: 1px solid var(--al-divider);
  color: #fff;
  display: none;
  white-space: pre-line;
  line-height: 1.45;
  font-size: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.al-toast.is-on {
  display: block;
  animation: alFadeUp 0.35s ease;
}

.al-toast.ok {
  border-color: rgba(110, 231, 168, 0.4);
  background: linear-gradient(180deg, #102033 0%, rgba(16, 48, 38, 0.95) 100%);
}

.al-toast.err { border-color: rgba(248, 113, 113, 0.45); }

@keyframes alFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.al-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.page-astra-live .mu-radio-footer-hide,
body.page-radio-live .mu-radio-footer-hide {
  display: none !important;
}

body.page-astra-live #root.container,
body.page-radio-live #root.container,
body.page-radio #root.container {
  max-width: 100%;
}

@media (max-width: 991px) {
  body.page-astra-live .main-content .card,
  body.page-radio-live .main-content .card,
  body.page-radio .main-content .card {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.page-astra-live .main-content .grid.grid-cols-12,
  body.page-radio-live .main-content .grid.grid-cols-12,
  body.page-radio .main-content .grid.grid-cols-12 {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .al-root {
    --al-astra-cover-h: 281px;
  }

  .al-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: 0;
  }

  .al-home-section--radio .al-hero {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .al-home-section--radio .al-hero-player {
    max-width: none;
    width: 100%;
    align-self: auto;
  }

  .al-home-section--radio .al-hero-chat {
    align-self: auto;
    width: 100%;
    height: auto !important;
    min-height: 0;
    overflow: visible;
  }

  .al-home-section--radio .al-hero-chat .al-chat-panel {
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .al-home-section--radio .al-hero-chat .al-zone-chat,
  .al-home-section--radio .al-hero-chat .al-chat-card--embedded,
  .al-home-section--radio .al-hero-chat .al-chat-body,
  .al-home-section--radio .al-hero-chat .al-chat-messages-wrap {
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .al-home-section--radio .al-hero-chat .al-chat-messages {
    height: auto;
    min-height: 220px;
    max-height: min(42vh, 380px);
    flex: 0 0 auto;
  }

  .al-hero-player,
  .al-hero-chat {
    min-height: 0;
    height: auto;
  }

  .al-extras-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .al-hero-chat .al-chat-messages {
    min-height: 240px;
    max-height: min(42vh, 380px);
  }

  .al-zone-continent {
    grid-template-columns: 1fr;
  }
}

/* Tablet — 769px–991px (entre móvil y desktop) */
@media (max-width: 991px) {
  .al-root {
    max-width: 100%;
    padding: 12px 16px 40px;
  }

  .al-launcher-header {
    padding: var(--sp-4);
  }

  .al-hero {
    padding: var(--sp-5) var(--sp-4);
    gap: 24px;
  }

  .al-home-section--radio .al-hero {
    grid-template-columns: 1fr;
  }

  .al-home-section--radio .al-hero-player {
    max-width: none;
    width: 100%;
  }

  .al-hero-chat .al-chat-messages {
    min-height: 220px;
    max-height: min(40vh, 340px);
  }

  .al-continent-chips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
  }

  .al-zone-events,
  .al-zone-timeline,
  .al-zone-greetings,
  .al-zone-music,
  .al-zone-news,
  .al-zone-chat {
    padding: var(--sp-5);
  }

  .al-home-section {
    margin-top: 40px;
  }

  .al-controls,
  .al-hero-links {
    justify-content: center;
  }

  .al-hero-chat .al-chat-messages {
    max-height: min(38vh, 320px);
    min-height: 200px;
  }

  .al-section-head--split {
    flex-direction: column;
    align-items: stretch;
  }

  .al-section-head-meta {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .al-root {
    padding: 10px 12px 32px;
  }

  .al-launcher-header {
    padding: var(--sp-4);
  }

  .al-launcher-status {
    width: auto;
    justify-content: flex-end;
  }

  .al-astra-head {
    flex-wrap: wrap;
  }

  .al-astra-state-pill {
    margin-left: auto;
  }

  .al-hero {
    padding: var(--sp-5) var(--sp-4);
    min-height: 0;
  }

  .al-extras-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .al-player-main {
    align-items: stretch;
    text-align: left;
  }

  .al-play {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    font-size: 22px;
  }

  .al-controls {
    justify-content: center;
  }

  .al-hero-links {
    justify-content: center;
  }

  .al-continent-strip {
    padding: 12px var(--sp-4);
  }

  .al-continent-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .al-zone-events,
  .al-zone-timeline,
  .al-zone-greetings,
  .al-zone-music,
  .al-zone-news {
    padding: var(--sp-4);
  }

  .al-tabpanel .mpr-form .row {
    grid-template-columns: 1fr;
  }

  .al-live-ticker-track {
    animation-duration: 28s;
  }
}

@media (min-width: 1920px) {
  .al-hero {
    gap: 48px;
    padding: 56px 48px;
  }

  .al-player {
    gap: 40px;
  }
}

@media (min-width: 2560px) {
  .al-root {
    max-width: 1600px;
  }

  .al-hero {
    min-height: 560px;
    padding: 64px 56px;
  }

  .al-cover-wrap {
    max-width: 374px;
  }

  .al-play {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
  }

  .al-zone-continent {
    grid-template-columns: 25fr 75fr;
  }
}

/* QA panel — staff /radio-live only (hidden until JS enables) */
.al-interaction-qa {
  margin: 0 0 8px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px dashed rgba(230, 181, 77, 0.35);
  background: rgba(230, 181, 77, 0.04);
}

.al-interaction-qa-label {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(230, 181, 77, 0.85);
}

.al-interaction-qa-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.al-interaction-qa .al-btn {
  padding: 6px 10px;
  font-size: 11px;
  min-height: auto;
}

/* ── Chat Global (rediseño visual) ── */
.al-zone-chat {
  padding: 0;
  margin: 0;
}

.al-chat-card {
  border-radius: var(--al-panel-radius, 14px);
  border: 1px solid rgba(120, 170, 210, 0.14);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.al-chat-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--al-divider);
  background: rgba(0, 0, 0, 0.12);
}

.al-chat-title {
  margin: 0;
}

.al-chat-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--al-muted);
}

.al-chat-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 12px;
}

.al-chat-connection {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
}

.al-chat-connection-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--al-gold);
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.35);
}

.al-chat-connection[data-state="online"] {
  color: var(--al-green);
}

.al-chat-connection[data-state="online"] .al-chat-connection-dot {
  background: var(--al-green);
  box-shadow: 0 0 8px rgba(110, 231, 168, 0.45);
}

.al-chat-connection[data-state="connecting"],
.al-chat-connection[data-state="reconnecting"] {
  color: var(--al-gold);
}

.al-chat-connection[data-state="offline"] {
  color: var(--al-red);
}

.al-chat-connection[data-state="offline"] .al-chat-connection-dot {
  background: var(--al-red);
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.4);
}

.al-chat-online {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(120, 170, 210, 0.14);
  background: rgba(0, 0, 0, 0.18);
  color: var(--al-muted);
  font-variant-numeric: tabular-nums;
}

.al-chat-body {
  padding: 14px 16px 0;
}

.al-chat-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.al-chat-messages-wrap {
  position: relative;
}

.al-chat-messages {
  height: min(46vh, 420px);
  min-height: 240px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(120, 170, 210, 0.12);
  border-radius: 12px;
  padding: 8px 8px 8px 10px;
  background: rgba(0, 0, 0, 0.28);
  scrollbar-width: thin;
  scrollbar-color: rgba(79, 209, 197, 0.35) transparent;
}

.al-chat-messages::-webkit-scrollbar {
  width: 6px;
}

.al-chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.al-chat-messages::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(79, 209, 197, 0.28);
}

.al-chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(79, 209, 197, 0.42);
}

.al-chat-empty,
.al-chat-login-hint {
  margin: 0;
  padding: var(--sp-5) var(--sp-4);
  text-align: center;
  color: var(--al-muted);
  font-size: 14px;
  line-height: 1.5;
}

.al-chat-msg {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 3px 8px 3px 4px;
  margin-bottom: 0;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.al-chat-msg:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(120, 170, 210, 0.06);
}

.al-chat-msg.is-grouped {
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
}

.al-chat-msg.is-grouped:hover {
  background: rgba(255, 255, 255, 0.015);
}

.al-chat-msg.is-entering {
  animation: alChatMsgEnter 0.32s ease-out;
}

@keyframes alChatMsgEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.al-chat-msg.is-pending {
  opacity: 0.72;
}

.al-chat-msg.is-deleted .al-chat-msg-body {
  color: var(--al-muted);
  font-style: italic;
}

.al-chat-msg--astra .al-chat-avatar {
  box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.35);
}

.al-chat-msg--system .al-chat-avatar {
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.28);
}

.al-chat-msg-aside {
  display: flex;
  justify-content: center;
  padding-top: 0;
}

.al-chat-avatar,
.al-chat-avatar-spacer {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.al-chat-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--av-bg, rgba(79, 209, 197, 0.2));
  color: var(--av-fg, var(--al-cyan));
  box-shadow: 0 0 0 2px var(--av-ring, rgba(79, 209, 197, 0.3));
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  user-select: none;
}

.al-chat-avatar-spacer {
  visibility: hidden;
}

.al-chat-msg-content {
  min-width: 0;
}

.al-chat-msg-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 1px;
  min-height: 18px;
}

.al-chat-msg-name {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.15;
  color: #f3f7fc;
}

.al-chat-msg-time {
  font-size: 10px;
  line-height: 1.15;
  color: rgba(159, 176, 199, 0.65);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.al-chat-msg-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

.al-chat-msg-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
  color: rgba(232, 238, 247, 0.94);
}

.al-chat-msg.is-grouped .al-chat-msg-body {
  padding-left: 0;
  line-height: 1.35;
}

.al-chat-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.6;
  white-space: nowrap;
}

.al-chat-badge-icon {
  font-size: 11px;
  line-height: 1;
}

.al-chat-badge-text {
  text-transform: uppercase;
}

.al-chat-badge-astra {
  background: rgba(167, 139, 250, 0.14);
  border-color: rgba(167, 139, 250, 0.28);
  color: #ddd6fe;
}

.al-chat-badge-system {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.24);
  color: #e2e8f0;
}

.al-chat-badge-admin {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.28);
  color: #fecaca;
}

.al-chat-badge-mod {
  background: rgba(230, 181, 77, 0.12);
  border-color: rgba(230, 181, 77, 0.28);
  color: #fde68a;
}

.al-chat-badge-staff {
  background: rgba(230, 181, 77, 0.14);
  border-color: rgba(230, 181, 77, 0.32);
  color: #fcd34d;
}

.al-chat-badge-vip {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.28);
  color: #fde68a;
}

.al-chat-badge-gm {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.28);
  color: #bfdbfe;
}

.al-chat-badge-donor {
  background: rgba(79, 209, 197, 0.12);
  border-color: rgba(79, 209, 197, 0.28);
  color: #99f6e4;
}

.al-chat-badge-premium {
  background: rgba(244, 114, 182, 0.12);
  border-color: rgba(244, 114, 182, 0.28);
  color: #fbcfe8;
}

.al-chat-jump {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(79, 209, 197, 0.45);
  background: rgba(8, 30, 40, 0.94);
  color: var(--al-cyan);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.al-chat-jump:hover {
  background: rgba(12, 40, 52, 0.98);
  border-color: rgba(79, 209, 197, 0.65);
}

.al-chat-jump:focus-visible {
  outline: 2px solid var(--al-cyan);
  outline-offset: 2px;
}

.al-chat-jump-icon {
  font-size: 14px;
  line-height: 1;
}

.al-chat-status {
  margin: 10px 0 0;
  min-height: 18px;
  font-size: 12px;
  color: var(--al-muted);
}

.al-chat-status[data-kind="error"] {
  color: var(--al-red);
}

.al-chat-status[data-kind="ok"] {
  color: var(--al-green);
}

.al-chat-compose {
  margin: 0;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--al-divider);
  background: rgba(0, 0, 0, 0.1);
}

.al-chat-compose-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.al-chat-compose-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.al-chat-compose-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--al-muted);
}

.al-chat-char-wrap {
  flex: 1 1 auto;
  min-width: 140px;
  max-width: 220px;
}

.al-chat-char-wrap select,
.al-chat-input {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(120, 170, 210, 0.16);
  background: rgba(0, 0, 0, 0.28);
  color: var(--al-text);
  font: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.al-chat-char-wrap select {
  padding: 8px 12px;
  cursor: pointer;
}

.al-chat-char-wrap select:hover,
.al-chat-input:hover {
  border-color: rgba(120, 170, 210, 0.28);
}

.al-chat-char-wrap select:focus-visible,
.al-chat-input:focus-visible {
  outline: none;
  border-color: rgba(79, 209, 197, 0.55);
  box-shadow: 0 0 0 3px rgba(79, 209, 197, 0.14);
  background: rgba(0, 0, 0, 0.34);
}

.al-chat-compose-field {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.al-chat-input {
  flex: 1 1 auto;
  padding: 12px 14px;
}

.al-chat-input::placeholder {
  color: rgba(159, 176, 199, 0.55);
}

.al-chat-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--al-cyan), #38b2ac);
  color: #042f2e;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(79, 209, 197, 0.25);
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.al-chat-send:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 209, 197, 0.35);
}

.al-chat-send:active:not(:disabled) {
  transform: translateY(0);
}

.al-chat-send:focus-visible {
  outline: 2px solid var(--al-cyan);
  outline-offset: 2px;
}

.al-chat-send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.al-chat-send-icon {
  display: block;
}

.al-chat-load-more {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 12px;
}

.al-chat-login-hint {
  margin: 0;
  padding: 16px 20px 18px;
  border-top: 1px solid var(--al-divider);
  background: rgba(0, 0, 0, 0.08);
}

.al-chat-qa {
  margin-top: var(--sp-4);
}

/* Legacy channel UI (reservado) */
.al-chat-channel-label,
.al-chat-channel,
.al-chat-compose-row {
  /* mantener compatibilidad si reaparece selector de canal */
}

@media (max-width: 640px) {
  .al-chat-head {
    padding: 14px 14px 12px;
  }

  .al-chat-body {
    padding: 12px 12px 0;
  }

  .al-chat-compose {
    padding: 12px;
  }

  .al-chat-compose-top {
    flex-direction: column;
    align-items: stretch;
  }

  .al-chat-char-wrap {
    max-width: none;
  }

  .al-chat-messages {
    height: min(42vh, 320px);
    min-height: 220px;
    padding: 10px 8px;
  }

  .al-chat-msg {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 6px;
    padding: 2px 4px;
  }

  .al-chat-avatar,
  .al-chat-avatar-spacer {
    width: 28px;
    height: 28px;
  }

  .al-chat-avatar {
    font-size: 11px;
  }

  .al-chat-compose-field {
    gap: 6px;
  }

  .al-chat-send {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .al-pulse,
  .al-skel,
  .al-progress-fill,
  .al-live-ticker-track,
  .al-cover,
  .al-timeline-enter,
  .al-timeline-item.is-new,
  .al-event-progress-fill,
  .al-toast.is-on,
  .al-on-air-sign.is-live,
  .al-on-air-sign.is-live .al-on-air-lamp,
  .al-on-air-sign.reconnect.is-standby .al-on-air-lamp,
  .al-astra-state-pill.is-connecting .al-on-air-lamp,
  .al-astra-avatar-glow,
  .al-astra-avatar-particle,
  #al-panel-astra.is-speaking-start .al-astra-avatar-mount,
  .al-astra-voice-body.is-marquee .al-astra-phrase,
  .al-cover-wrap.is-track-changing .al-cover,
  .al-events.is-event-updated .al-event.is-first,
  .al-chat-msg.is-entering {
    animation: none !important;
  }

  .al-astra-caption,
  .al-cover.is-fading {
    transition: none !important;
  }

  .al-astra-avatar,
  .al-astra-avatar-video,
  .al-astra-avatar-video-stack {
    transition: none !important;
  }

  .al-play {
    transition: none !important;
  }
}
