:root {
  --lsa-player-height: 86px;
}

.lsa-player,
.lsa-player *,
.lsa-popup-launcher,
.lsa-popup-launcher * {
  box-sizing: border-box;
}

.lsa-popup-launcher {
  --lsa-accent: #f97316;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 7px 16px 7px 7px;
  cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--lsa-accent) 55%, white);
  border-radius: 999px;
  color: #fff;
  background: #111827;
  background: linear-gradient(135deg, color-mix(in srgb, var(--lsa-accent) 22%, #111827), #090d17 70%);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.lsa-popup-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 42px rgba(0, 0, 0, 0.38);
}

.lsa-popup-launcher:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--lsa-accent) 48%, white);
  outline-offset: 3px;
}

.lsa-popup-launcher--fixed {
  position: fixed;
  z-index: 99990;
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
}

.lsa-popup-launcher__icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--lsa-accent);
  box-shadow: 0 5px 15px color-mix(in srgb, var(--lsa-accent) 35%, transparent);
  font-size: 15px;
}

.lsa-popup-launcher__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lsa-popup-launcher__text {
  display: grid;
  gap: 1px;
}

.lsa-popup-launcher__text small {
  color: #fda4af;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.lsa-popup-launcher__text strong {
  color: #fff;
  font-size: 13px;
  line-height: 1.15;
  white-space: nowrap;
}

.lsa-player {
  --lsa-accent: #f97316;
  position: relative;
  display: grid;
  grid-template-columns: 64px 54px minmax(130px, 1fr) auto 38px;
  align-items: center;
  gap: 12px;
  min-height: var(--lsa-player-height);
  width: 100%;
  padding: 10px 18px;
  overflow: hidden;
  color: #f8fafc;
  background: #080b12;
  background:
    radial-gradient(circle at 15% 0%, color-mix(in srgb, var(--lsa-accent) 20%, transparent), transparent 34%),
    linear-gradient(135deg, #111827 0%, #080b12 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  isolation: isolate;
}

.lsa-player--fixed {
  position: fixed;
  z-index: 99990;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 16px;
  width: auto;
  max-width: 980px;
  margin-inline: auto;
}

.lsa-has-fixed-player body {
  padding-bottom: calc(var(--lsa-player-height) + 38px) !important;
}

.lsa-is-navigating body {
  cursor: progress;
}

.lsa-is-navigating body::after {
  position: fixed;
  z-index: 99999;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--lsa-accent, #f97316), transparent);
  content: "";
  animation: lsa-loading 1s linear infinite;
}

@keyframes lsa-loading {
  from { transform: translateX(-70%); }
  to { transform: translateX(70%); }
}

.lsa-artwork-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  overflow: hidden;
  flex: 0 0 auto;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

.lsa-artwork {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lsa-artwork-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--lsa-accent);
  font-size: 30px;
  font-weight: 800;
}

.lsa-artwork[hidden],
.lsa-artwork-placeholder[hidden] {
  display: none;
}

.lsa-play {
  position: relative;
  width: 50px;
  height: 50px;
  padding: 0;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--lsa-accent);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--lsa-accent) 38%, transparent);
  transition: transform 160ms ease, filter 160ms ease;
}

.lsa-play:hover {
  filter: brightness(1.08);
  transform: scale(1.04);
}

.lsa-play:focus-visible,
.lsa-mute:focus-visible,
.lsa-popout:focus-visible,
.lsa-volume:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--lsa-accent) 48%, white);
  outline-offset: 3px;
}

.lsa-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.lsa-icon--play {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid #fff;
}

.lsa-icon--pause {
  display: none;
  width: 14px;
  height: 17px;
  border-right: 5px solid #fff;
  border-left: 5px solid #fff;
}

.lsa-player--playing .lsa-icon--play {
  display: none;
}

.lsa-player--playing .lsa-icon--pause {
  display: block;
}

.lsa-info {
  min-width: 0;
  line-height: 1.2;
}

.lsa-topline {
  display: flex;
  align-items: center;
  min-width: 0;
  margin-bottom: 4px;
  gap: 6px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.lsa-live-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 99px;
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14);
  animation: lsa-pulse 1.8s ease-in-out infinite;
}

@keyframes lsa-pulse {
  50% { opacity: 0.45; transform: scale(0.82); }
}

.lsa-station {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lsa-live-label::after {
  margin-left: 6px;
  color: #475569;
  content: "•";
}

.lsa-title,
.lsa-artist {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lsa-title {
  color: #fff;
  font-size: 15px;
  font-weight: 750;
}

.lsa-artist {
  min-height: 16px;
  margin-top: 3px;
  color: #cbd5e1;
  font-size: 12px;
}

.lsa-volume-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lsa-mute,
.lsa-popout {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  cursor: pointer;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  font: 700 18px/1 system-ui, sans-serif;
}

.lsa-mute.lsa-muted {
  color: #64748b;
  text-decoration: line-through;
}

.lsa-volume {
  width: 90px;
  cursor: pointer;
  accent-color: var(--lsa-accent);
}

.lsa-status {
  position: absolute;
  right: 82px;
  bottom: 5px;
  left: 145px;
  overflow: hidden;
  color: #fda4af;
  font-size: 10px;
  line-height: 1;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.lsa-player--offline .lsa-live-dot {
  background: #64748b;
  box-shadow: none;
  animation: none;
}

.lsa-player--mini {
  grid-template-columns: 64px 54px minmax(120px, 1fr) auto;
}

.lsa-player--mini .lsa-popout {
  display: none;
}

@media (max-width: 680px) {
  :root {
    --lsa-player-height: 78px;
  }

  .lsa-player {
    grid-template-columns: 52px 46px minmax(100px, 1fr) 36px;
    min-height: 78px;
    padding: 9px 10px;
    gap: 8px;
    border-radius: 14px;
  }

  .lsa-player--fixed {
    right: 7px;
    bottom: max(7px, env(safe-area-inset-bottom));
    left: 7px;
  }

  .lsa-popup-launcher--fixed {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
  }

  .lsa-popup-launcher {
    min-height: 52px;
    padding: 6px 13px 6px 6px;
  }

  .lsa-popup-launcher__icon {
    width: 40px;
    height: 40px;
  }

  .lsa-has-fixed-player body {
    padding-bottom: calc(var(--lsa-player-height) + 25px) !important;
  }

  .lsa-artwork-wrap {
    width: 52px;
    height: 52px;
    border-radius: 10px;
  }

  .lsa-play {
    width: 44px;
    height: 44px;
  }

  .lsa-title {
    font-size: 13px;
  }

  .lsa-artist {
    font-size: 11px;
  }

  .lsa-volume-wrap {
    display: none;
  }

  .lsa-popout {
    width: 34px;
    height: 34px;
  }

  .lsa-status {
    right: 52px;
    left: 112px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lsa-live-dot,
  .lsa-is-navigating body::after {
    animation: none;
  }

	.lsa-play,
	.lsa-popup-launcher {
    transition: none;
  }
}
