/* Reproductor de audio de Spectra (static/js/spectra-player.js). Color de acento con --pl-accent. */
.spl-native { display: none !important; }
.spl {
  --pl-accent: #f2b441;
  --pl-accent-2: #ffd98a;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px; border-radius: 18px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 14px 34px -22px rgba(0, 0, 0, .8);
}
.spl-main {
  position: relative; flex: none; width: 58px; height: 58px; border-radius: 50%;
  border: 0; cursor: pointer; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, var(--pl-accent-2), var(--pl-accent) 70%);
  color: #1b1203; box-shadow: 0 8px 24px -8px var(--pl-accent);
  transition: transform .15s ease, box-shadow .3s ease;
}
.spl-main svg { width: 24px; height: 24px; position: relative; z-index: 1; }
.spl-main:hover { transform: scale(1.04); }
.spl-main:active { transform: scale(.95); }
.spl-main:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.spl-ring {
  position: absolute; inset: -6px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(var(--pl-accent) var(--p, 0deg), rgba(255, 255, 255, .10) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
}
.spl.is-playing .spl-main { box-shadow: 0 0 0 0 rgba(242, 180, 65, .45), 0 8px 26px -6px var(--pl-accent); animation: splPulse 2.4s ease-in-out infinite; }
@keyframes splPulse { 50% { box-shadow: 0 0 0 8px rgba(242, 180, 65, 0), 0 8px 26px -6px var(--pl-accent); } }
.spl-body { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.spl-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.spl-time { padding-top: 1px; }
.spl { min-width: 0; max-width: 100%; }
.spl-title { min-width: 0; font-weight: 600; font-size: 14px; color: var(--text, #e8eef8); overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.3; }
.spl-time { flex: none; font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; color: var(--text-3, #8a97ab); }
.spl-bar { position: relative; height: 18px; cursor: pointer; touch-action: none; }
.spl-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .10); }
.spl-buffer { position: absolute; left: 0; top: 7px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); }
.spl-fill { position: absolute; left: 0; top: 7px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--pl-accent), var(--pl-accent-2)); }
.spl-knob { position: absolute; top: 3px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(242, 180, 65, .35); opacity: 0; transition: opacity .2s; }
.spl:hover .spl-knob, .spl.is-dragging .spl-knob, .spl-bar:focus-visible .spl-knob { opacity: 1; }
.spl-bar:focus-visible { outline: 2px solid var(--pl-accent); outline-offset: 2px; border-radius: 6px; }
.spl-tools { display: flex; gap: 6px; }
.spl-tool {
  height: 30px; min-width: 34px; padding: 0 8px; border-radius: 9px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .10); background: rgba(255, 255, 255, .04);
  color: var(--text-2, #c4cede); display: grid; place-items: center; font: 600 12px/1 var(--font-mono, ui-monospace, monospace);
}
.spl-tool svg { width: 18px; height: 18px; }
.spl-tool--skip { font-size: 11.5px; letter-spacing: -.01em; }
.spl-tool:hover { border-color: var(--pl-accent); color: var(--text, #fff); }
@media (max-width: 420px) { .spl { gap: 12px; padding: 12px; } .spl-main { width: 52px; height: 52px; } }
@media (prefers-reduced-motion: reduce) { .spl.is-playing .spl-main { animation: none; } }
