@keyframes sideband-live-pulse {
  0%, 100% { box-shadow: 0 0 10px #df5b4d99; }
  50% { box-shadow: 0 0 24px #df5b4ddd; }
}

.live-signal-banner {
  min-height: 66px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  margin: 0 0 18px;
  padding: 13px 18px;
  border: 2px solid #df5b4d;
  background: linear-gradient(90deg, #5d211d, #311816 45%, #181514);
  box-shadow: 0 0 0 4px #df5b4d22, 0 12px 32px #0008;
  color: #fff6e5;
  font-family: var(--mono);
}

.live-signal-kicker,
.live-signal-time {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
}

.live-signal-banner > strong {
  font-size: clamp(18px, 3vw, 28px);
  letter-spacing: .04em;
  text-align: center;
}

.live-signal-time time {
  color: #fff;
  font-size: 17px;
}

.station-live .lamp-red,
.studio-is-live .lamp-red {
  animation: sideband-live-pulse 1.35s ease-in-out infinite;
}

.station-live .console {
  border-color: #df5b4d;
  box-shadow: 0 0 0 3px #df5b4d1f, var(--shadow), inset 0 1px #df8b8255;
}

.station-live .on-air-badge,
.station-live .section-label {
  color: #ff786a;
}

.station-live .track-art {
  border-color: #df5b4d;
  background: repeating-radial-gradient(circle at center, #5a211d 0 5px, #211311 6px 10px);
  color: #fff3df;
  box-shadow: inset 0 0 0 8px #160b0a, 0 0 22px #df5b4d44;
}

.track-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.station-live .progress-track i {
  background: #df5b4d;
}

.station-live .listen-button {
  border-color: #ff9b90;
  background: linear-gradient(#e36b5e, #ad3f35);
  color: #fff8eb;
  box-shadow: inset 0 1px #fff5, 0 4px 0 #66231d, 0 0 22px #df5b4d44;
}

.station-live .connectionPill,
.station-live #connectionPill {
  border-color: #df5b4d;
  background: #421b18;
}

.listening-live .listen-button {
  box-shadow: inset 0 1px #fff5, 0 4px 0 #66231d, 0 0 30px #df5b4d77;
}

.station-quick .console {
  border-color: var(--green);
  box-shadow: 0 0 0 3px #8fc46f1f, var(--shadow), inset 0 1px #8fc46f55;
}

.station-quick .track-art {
  border-color: var(--green);
  color: #eaffda;
  box-shadow: inset 0 0 0 8px #111a0e, 0 0 22px #8fc46f33;
}

.station-quick .listen-button {
  border-color: #b6df99;
  background: linear-gradient(#91c571, #65904f);
  color: #10150e;
  box-shadow: inset 0 1px #fff6, 0 4px 0 #36502b, 0 0 22px #8fc46f33;
}

.embed-player {
  grid-template-rows: auto auto 1fr auto auto auto;
}

.embed-live-banner {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #ef7568;
  background: linear-gradient(90deg, #5b211d, #291513);
  color: #fff7e7;
  font: 800 8px/1 var(--mono);
  letter-spacing: .08em;
}

.embed-live-banner span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.embed-live-banner strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-size: 9px;
}

.embed-live-banner time {
  font-size: 9px;
}

.station-live .embed-player {
  border-color: #df5b4d;
  box-shadow: inset 0 0 0 2px #df5b4d22, 0 8px 30px #0007;
}

.embed-player[data-layout="wide"] {
  grid-template-rows: auto auto 1fr auto;
}

.embed-player[data-layout="wide"] .embed-live-banner {
  grid-column: 1 / -1;
  grid-row: 2;
}

.embed-player[data-layout="wide"] .embed-program {
  grid-column: 1;
  grid-row: 3;
}

.embed-player[data-layout="wide"] .listen-button {
  grid-column: 2;
  grid-row: 3;
}

.embed-player[data-layout="wide"] .embed-message {
  grid-column: 1;
  grid-row: 4;
}

.embed-player[data-layout="wide"] .embed-station-link {
  grid-column: 2;
  grid-row: 4;
}

.studio-live-banner {
  min-height: 50px;
  position: sticky;
  top: 66px;
  z-index: 19;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 9px 22px;
  border-bottom: 2px solid #ff7466;
  background: linear-gradient(90deg, #5e211d, #3a1715 50%, #211211);
  box-shadow: 0 8px 24px #0008;
  color: #fff8e9;
  font: 900 10px/1 var(--mono);
  letter-spacing: .12em;
}

.studio-live-banner > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.studio-live-banner > strong {
  text-align: center;
  font-size: 14px;
}

.studio-live-banner time {
  font-size: 14px;
}

.live-header-pill {
  border-color: #df5b4d;
  background: #4b1d19;
  color: #fff5e5;
}

.studio-is-live .studio-header {
  border-bottom-color: #df5b4d;
  box-shadow: 0 0 22px #df5b4d33;
}

.studio-is-live .studio-layout {
  min-height: calc(100vh - 116px);
}

.studio-is-live .studio-nav {
  top: 116px;
  height: calc(100vh - 116px);
}

.studio-is-live .nav-button.active,
.studio-is-live .mode-plate,
.studio-is-live .current-deck,
.studio-is-live .live-card {
  border-color: #df5b4d;
  box-shadow: inset 3px 0 #df5b4d, 0 0 22px #df5b4d22;
}

.studio-is-live .nav-button.active small,
.studio-is-live .mode-plate strong,
.studio-is-live .current-deck > p {
  color: #ff786a;
}

.studio-is-live .broadcast-timer b {
  color: #ff786a;
}

.studio-is-live #liveConfigBadge {
  border-color: #ff786a;
  background: #5a211d;
  color: #fff7e7;
}

.studio-is-live #liveExplanation {
  color: #fff1de;
  font-weight: 700;
}

.studio-is-live #endLive {
  border-color: #ff786a;
  background: #5a211d;
  color: #fff7e7;
  opacity: 1;
}

@media (max-width: 800px) {
  .studio-is-live .studio-nav {
    top: 116px;
    height: auto;
  }
}

@media (max-width: 620px) {
  .live-signal-banner,
  .studio-live-banner {
    grid-template-columns: 1fr auto;
    gap: 7px 12px;
  }

  .live-signal-banner > strong,
  .studio-live-banner > strong {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
  }

  .live-signal-time {
    justify-self: end;
  }

  .studio-live-banner {
    padding-inline: 13px;
  }

  .studio-live-banner > span:last-child {
    justify-self: end;
  }

  .embed-live-banner {
    grid-template-columns: auto 1fr;
  }

  .embed-live-banner time {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .station-live .lamp-red,
  .studio-is-live .lamp-red {
    animation: none;
  }
}
