.haseradio-starter {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 2147483646;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.haseradio-starter,
.haseradio-starter * {
  box-sizing: border-box;
}

.haseradio-starter.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.haseradio-starter-main {
  width: calc(75px * (var(--haseradio-starter-scale-desktop, 100) / 100));
  height: calc(75px * (var(--haseradio-starter-scale-desktop, 100) / 100));
  min-width: calc(75px * (var(--haseradio-starter-scale-desktop, 100) / 100));
  min-height: calc(75px * (var(--haseradio-starter-scale-desktop, 100) / 100));
  max-width: calc(75px * (var(--haseradio-starter-scale-desktop, 100) / 100));
  max-height: calc(75px * (var(--haseradio-starter-scale-desktop, 100) / 100));
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  cursor: pointer;
  overflow: visible !important;
  padding: 0 !important;
}

.haseradio-starter-image {
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.haseradio-starter-label {
  color: #ffffff;
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
  padding: 4px;
}

.haseradio-player-bar {
  --haseradio-player-bg: #ffffff;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2147483647 !important;
  background: var(--haseradio-player-bg);
  border-top: 1px solid rgba(12, 20, 34, 0.14);
  box-shadow: 0 -10px 30px rgba(10, 17, 31, 0.16);
  padding: 10px 16px;

  display: grid;
  grid-template-columns: 25% 50% 25%;
  align-items: center;
  gap: 10px;
  overflow: hidden;

  opacity: 0;
  transform: translateY(12px);
  transition: transform 240ms ease, opacity 240ms ease;
}

.haseradio-player-bar,
.haseradio-player-bar * {
  box-sizing: border-box;
}

.haseradio-player-bar.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.haseradio-player-col {
  min-width: 0;
}

.haseradio-player-col-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.haseradio-player-col-center {
  text-align: center;
  overflow: hidden;
}

.haseradio-player-col-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding-right: 0;
  background: transparent !important;
}

.haseradio-logo-wrap {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  color: #1f2533;
  border: 1px solid rgba(24, 32, 48, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.haseradio-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.haseradio-logo-fallback {
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
  padding: 4px;
}

.haseradio-meta {
  min-width: 0;
}

.haseradio-prefix {
  font-size: 12px;
  line-height: 1.2;
  color: #4a5263;
  letter-spacing: 0.01em;
}

.haseradio-track {
  font-size: 18px;
  line-height: 1.18;
  font-weight: 600;
  color: #1f2533;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.haseradio-track-extra {
  font-weight: 400;
  font-size: 0.88em;
  color: #4a5263;
}

.haseradio-control-btn,
button.haseradio-control-btn {
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  max-width: 50px;
  max-height: 50px;
  border-radius: 999px;
  border: 0 !important;
  background: #eceff3 !important;
  color: #3b3f49 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background-clip: padding-box;
  background-image: none !important;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.haseradio-control-btn .dashicons {
  font-size: 22px;
  width: 22px;
  height: 22px;
}

.haseradio-btn-play.is-active {
  background: #d92a2a !important;
  color: #ffffff !important;
}

.haseradio-btn-close {
  background: #eceff3 !important;
  color: #343944 !important;
}

.haseradio-control-btn:hover,
.haseradio-control-btn:focus-visible,
.haseradio-starter-main:hover,
.haseradio-starter-main:focus-visible {
  outline: none;
  filter: brightness(0.97);
}

@media (max-width: 900px) {
  .haseradio-starter-main {
    width: calc(75px * (var(--haseradio-starter-scale-mobile, 100) / 100));
    height: calc(75px * (var(--haseradio-starter-scale-mobile, 100) / 100));
    min-width: calc(75px * (var(--haseradio-starter-scale-mobile, 100) / 100));
    min-height: calc(75px * (var(--haseradio-starter-scale-mobile, 100) / 100));
    max-width: calc(75px * (var(--haseradio-starter-scale-mobile, 100) / 100));
    max-height: calc(75px * (var(--haseradio-starter-scale-mobile, 100) / 100));
  }

  .haseradio-player-bar {
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    grid-template-columns: 1fr auto;
  }

  .haseradio-player-col-center {
    display: none;
  }

  .haseradio-logo-wrap {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .haseradio-prefix {
    font-size: 11px;
    line-height: 1.15;
  }

  .haseradio-track {
    font-size: 14px;
    line-height: 1.14;
  }

  .haseradio-control-btn {
    width: 42px;
    height: 42px;
  }
}

html body .haseradio-player-bar {
  position: fixed !important;
  z-index: 2147483647 !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  pointer-events: auto !important;
  isolation: isolate;
}

html body .haseradio-starter {
  position: fixed !important;
  z-index: 2147483646 !important;
}

@media (max-width: 900px) {
  html body .haseradio-player-bar {
    /* Lift bar above aggressive mobile overlays/handles. */
    bottom: calc(env(safe-area-inset-bottom) + 18px) !important;
  }
}
