/* The site's own player for Mixlr audio (js/mixlr-stream.js). It fills the
   frame a video would play in, on any of the live pages. */
.mixlr-player {
  --mixlr-ink: #eef5f6;
  --mixlr-muted: rgba(238, 245, 246, .68);
  /* Always on a dark surface: a bright accent of its own, the stage colour
     only as the glow (a stage can be black). */
  --mixlr-accent: #2dd4bf;
  --mixlr-glow: var(--stage-color, #14b8a6);
  --mixlr-live: #ef4444;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 18px;
  width: 100%;
  height: 100%;
  min-height: 132px;
  padding: 18px 22px;
  color: var(--mixlr-ink);
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--mixlr-glow) 38%, transparent), transparent 60%),
    linear-gradient(135deg, #0b1418, #10262c);
  font: inherit;
  text-align: left;
}
/* In a frame where the iframe would fill the box. */
.event-live-frame > .mixlr-player,
.popup-stream-frame > .mixlr-player,
.defqon-player-card-frame > .mixlr-player,
.tml-player-card-frame > .mixlr-player { position: absolute; inset: 0; }
.mixlr-player[data-state="embed"] { display: block; padding: 0; background: none; }
.mixlr-player iframe { display: block; width: 100%; height: 100%; border: 0; }

.mixlr-play {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #071216;
  background: #f4f8f9;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, background-color .15s ease;
}
.mixlr-play:hover:not(:disabled) { transform: scale(1.05); }
.mixlr-play:focus-visible { outline: 3px solid var(--mixlr-ink); outline-offset: 3px; }
.mixlr-play:disabled { cursor: default; opacity: .35; box-shadow: none; }
.mixlr-play svg { width: 26px; height: 26px; fill: currentColor; }
.mixlr-i-stop, .mixlr-play[aria-pressed="true"] .mixlr-i-play { display: none; }
.mixlr-play[aria-pressed="true"] .mixlr-i-stop { display: inline; }

.mixlr-info { min-width: 0; }
.mixlr-info p { margin: 0; }
.mixlr-title {
  overflow: hidden;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mixlr-state {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mixlr-sub {
  margin-top: 4px !important;
  overflow: hidden;
  color: var(--mixlr-muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mixlr-link { display: inline-block; margin-top: 6px; color: var(--mixlr-ink); font-size: 13px; font-weight: 700; }
.mixlr-link[hidden] { display: none; }

.mixlr-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--mixlr-muted); }
.mixlr-player[data-state="ready"] .mixlr-dot,
.mixlr-player[data-state="connecting"] .mixlr-dot { background: var(--mixlr-live); box-shadow: 0 0 0 4px rgba(239, 68, 68, .25); }
.mixlr-player[data-state="elsewhere"] .mixlr-dot { background: var(--mixlr-live); }
.mixlr-player:is([data-state="missing"], [data-state="nochannel"], [data-state="error"]) .mixlr-dot { background: #f59e0b; }

/* Moving bars while sound plays. */
.mixlr-bars { display: none; align-items: flex-end; gap: 2px; height: 12px; }
.mixlr-bars i { width: 3px; height: 100%; border-radius: 1px; background: var(--mixlr-accent); transform-origin: bottom; animation: mixlr-bar 1s ease-in-out infinite; }
.mixlr-bars i:nth-child(2) { animation-delay: -.3s; }
.mixlr-bars i:nth-child(3) { animation-delay: -.6s; }
.mixlr-bars i:nth-child(4) { animation-delay: -.15s; }
.mixlr-player[data-state="playing"] .mixlr-dot { display: none; }
.mixlr-player[data-state="playing"] .mixlr-bars { display: inline-flex; }
@keyframes mixlr-bar { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .mixlr-bars i { animation: none; transform: scaleY(.7); } }

.mixlr-volume { display: flex; align-items: center; }
/* Nothing to hear: no volume. */
.mixlr-player:not([data-state="ready"], [data-state="connecting"], [data-state="playing"], [data-state="dropped"]) .mixlr-volume { visibility: hidden; }
.mixlr-volume span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mixlr-volume input { width: 110px; accent-color: var(--mixlr-accent); cursor: pointer; }

@media (max-width: 520px) {
  .mixlr-player { grid-template-columns: auto minmax(0, 1fr); padding: 14px 16px; }
  .mixlr-play { width: 52px; height: 52px; }
  /* Phones set the volume with their buttons. */
  .mixlr-volume { display: none; }
}
