.haseradio-menu-item {
  display: inline-flex;
  align-items: center;
}

.haseradio-nav-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.haseradio-nav-icon-image {
  width: 44px;
  height: 30px;
  object-fit: contain;
  border-radius: 6px;
}

.haseradio-nav-icon-label {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  background: #0f1d3d;
  color: #ffffff;
  border-radius: 6px;
  padding: 7px 9px;
}

.haseradio-player-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  background: #f6f8fb;
  border: 1px solid rgba(11, 22, 40, 0.12);
  box-shadow: 0 16px 40px rgba(8, 16, 32, 0.22);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

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

.haseradio-player-bar-popup {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  margin-top: 8px;
  opacity: 1;
  transform: none;
}

.haseradio-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.haseradio-logo-wrap {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 8px;
  background: #0f1d3d;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.haseradio-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

.haseradio-prefix {
  font-size: 12px;
  color: #3b4560;
}

.haseradio-track {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
  color: #1b2234;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(62vw, 900px);
}

.haseradio-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.haseradio-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #0f1d3d;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
}

.haseradio-btn:hover,
.haseradio-btn:focus-visible {
  background: #162a57;
  outline: none;
}

.haseradio-link {
  font-size: 14px;
}

.haseradio-close {
  background: #e5e8ef;
  color: #1b2234;
}

.haseradio-close:hover,
.haseradio-close:focus-visible {
  background: #d7dbe6;
}

.haseradio-popup-page {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(165deg, #0f1d3d, #1f2f58);
  min-height: 100vh;
  color: #f6f8fb;
}

.haseradio-popup-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px;
}

.haseradio-popup-main h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
}

@media (max-width: 900px) {
  .haseradio-player-bar {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 10px;
  }

  .haseradio-track {
    font-size: 16px;
    max-width: 46vw;
  }

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

  .haseradio-btn {
    width: 36px;
    height: 36px;
  }
}
