/* ACTIVATE · Panel de la emisión (se abre desde el reproductor). Siempre oscuro, como el visor de vídeo. */

/* la zona pulsable del reproductor se anuncia con una flecha junto al rótulo */
.player-info, .player-thumb { cursor: pointer; }
.player-label::after { content: ''; width: 5px; height: 5px; margin-top: 2px; border-top: 1.5px solid currentColor; border-left: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--ease); }
.player-bar.np-open .player-label::after { transform: rotate(225deg); margin-top: -2px; }
.player-info:hover .player-track { text-decoration: underline; text-underline-offset: 3px; }

html.np-visible { overflow: hidden; }
.np-layer {
  position: fixed; inset: 0; z-index: 199;      /* por debajo del reproductor, que sigue usable */
  display: flex; align-items: flex-end; justify-content: center;
  padding: 72px 16px calc(max(16px, env(safe-area-inset-bottom, 16px)) + 100px);
  background: rgba(8,6,4,.62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.np-panel {
  position: relative; isolation: isolate; display: flex; flex-direction: column;
  width: min(980px, 100%); max-height: 100%; overflow: hidden;
  background: #100d0a; color: #f4ecdc; border: 1px solid rgba(255,255,255,.16);
  border-radius: 0 22px 0 22px; box-shadow: 0 30px 80px rgba(0,0,0,.6);
  animation: np-in .28s var(--ease);
}
@keyframes np-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .np-panel { animation: none; } }
/* la carátula, muy desenfocada, tiñe el fondo del panel */
.np-backdrop { position: absolute; inset: -60px; z-index: -1; background-position: center; background-size: cover; filter: blur(60px) saturate(140%); opacity: .3; }
.np-panel [hidden] { display: none !important; }

.np-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.12); }
.np-brand { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; }
.np-brand .live-dot { width: 6px; height: 6px; }
.np-close { width: 34px; height: 34px; flex-shrink: 0; background: transparent; color: #f4ecdc; border: 1px solid rgba(255,255,255,.28); font-size: 14px; cursor: pointer; }
.np-close:hover { background: #f4ecdc; color: #100d0a; }

.np-scroll { overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); min-height: 0; }
.np-main { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px 20px; align-content: start; padding: 20px; }
.np-stage { min-width: 0; }
.np-art { aspect-ratio: 1; background: #14100b center / cover no-repeat; border-radius: 0 16px 0 16px; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.np-art.is-generic, .np-row-cover.is-generic { background-image: url('/img/generic-cover.svg?v=3') !important; }
.np-screen { aspect-ratio: 16 / 9; background: #000; display: flex; align-items: center; justify-content: center; text-align: center; }
.np-screen iframe { width: 100%; height: 100%; border: 0; }
.np-wait { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }
.np-none { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px 16px; font-size: 13px; }
.np-none p { margin: 0; }
.np-layer.has-video .np-main { grid-template-columns: minmax(0, 1fr); }

.np-now { min-width: 0; align-self: center; }
.np-kicker, .np-label { margin: 0 0 6px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: #c9a678; }
.np-song { margin: 0 0 6px; font-family: var(--font-display); font-size: clamp(17px, 2.2vw, 24px); font-weight: 900; line-height: 1.15; text-transform: uppercase; overflow-wrap: anywhere; color: inherit; }
.np-artist { margin: 0 0 14px; font-size: 13px; color: rgba(244,236,220,.74); overflow-wrap: anywhere; }
.np-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.np-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 14px; background: transparent; color: #f4ecdc; border: 1px solid rgba(255,255,255,.28); font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.np-btn:hover { border-color: #c9a678; color: #c9a678; }
.np-btn--main, .np-btn--main:hover { background: #f4ecdc; border-color: #f4ecdc; color: #100d0a; }

.np-program { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); }
.np-program-name { color: inherit; font-weight: 700; text-decoration: none; }
.np-program > .np-program-name { font-size: 15px; }
.np-program-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.np-times { display: flex; align-items: center; gap: 10px; margin: 10px 0 12px; font-family: var(--font-mono); font-size: 10px; color: rgba(244,236,220,.7); }
.np-track { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.18); overflow: hidden; }
.np-fill { display: block; height: 100%; width: 0; background: #c9a678; transition: width .6s linear; }
.np-next { margin: 0 0 10px; font-size: 12px; color: rgba(244,236,220,.74); }
.np-next .np-program-name { color: #f4ecdc; }
.np-link { font-family: var(--font-mono); font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: #c9a678; text-decoration: none; }

/* la lista ocupa el alto de la columna principal y se desplaza por dentro */
.np-history { position: relative; display: flex; flex-direction: column; min-height: 320px; padding: 20px 20px 12px 0; }
.np-list { flex: 1 1 0; min-height: 0; margin: 0; padding: 0; list-style: none; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.np-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 4px 8px 0; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.12); color: inherit; text-align: left; cursor: pointer; }
.np-row:hover .np-row-title { color: #c9a678; }
.np-row-cover { width: 40px; height: 40px; flex-shrink: 0; background: #14100b center / cover no-repeat; }
.np-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.np-row-title, .np-row-artist { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-row-title { font-size: 12px; font-weight: 600; }
.np-row-artist { font-size: 11px; color: rgba(244,236,220,.66); }
.np-row-time { flex-shrink: 0; font-family: var(--font-mono); font-size: 9px; color: rgba(244,236,220,.6); font-variant-numeric: tabular-nums; }
.np-empty { font-size: 12px; color: rgba(244,236,220,.66); }
.np-layer.is-episode .np-scroll { grid-template-columns: minmax(0, 1fr); }
.np-layer.is-episode .np-panel { width: min(640px, 100%); }

@media (max-width: 900px) {
  .np-layer { padding: 56px 8px calc(max(8px, env(safe-area-inset-bottom, 8px)) + 94px); }
  .np-scroll { display: block; }
  .np-history { display: block; min-height: 0; padding: 0 16px 8px; }
  .np-list { overflow: visible; }
  .np-main { padding: 16px; }
}
@media (max-width: 620px) {
  .np-main { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .np-art { width: min(62vw, 260px, 30vh); margin: 0 auto; }
  .np-now { text-align: center; }
  .np-actions { justify-content: center; }
}
