.mrp-root {
  max-width: min(420px, 100%);
  position: relative;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  --mrp-accent: #2e7d32;
  --mrp-accent-alt: #8bc34a;
  --mrp-floating-bg: rgba(20, 20, 20, 0.88);
  --mrp-fixed-song-color: #111111;
  --mrp-fixed-artist-color: #444444;
  --mrp-floating-song-color: #ffffff;
  --mrp-floating-artist-color: #f0f0f0;
}

.mrp-player-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mrp-player-header {
  margin-bottom: 14px;
}

.mrp-live {
  display: inline-block;
  color: #fff;
  background: var(--mrp-accent);
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 12px;
}

.mrp-meta {
  margin-top: 0;
}

.mrp-song {
  color: var(--mrp-fixed-song-color);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.08;
}

.mrp-artist {
  color: var(--mrp-fixed-artist-color);
  margin-top: 8px;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 500;
}

.mrp-player-host {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  flex: 1;
}

.mrp-host-info {
  width: 100%;
}

.mrp-player-info {
  text-align: center;
  margin-bottom: 16px;
}

.mrp-station-name {
  color: var(--mrp-accent-alt);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}

.mrp-live-indicator {
  display: inline-block;
  background: #27ae60;
  color: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
}

.mrp-play-btn,
.mrp-volume-btn {
  border: 0;
  border-radius: 12px;
  height: 40px;
  min-width: 40px;
  cursor: pointer;
  background: var(--mrp-accent-alt);
  color: #fff;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.mrp-btn-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.mrp-play-btn-fixed .mrp-btn-icon {
  width: 30px;
  height: 30px;
}

.mrp-play-btn-fixed {
  width: 100%;
  min-width: 0;
  height: 56px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 700;
  align-self: stretch;
  transition: transform 0.2s ease;
}

.mrp-play-btn-fixed:hover {
  transform: scale(1.03);
}

.mrp-floating {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 20px;
  width: min(760px, calc(100vw - 24px));
  display: none;
  border-radius: 16px;
  background: var(--mrp-floating-bg);
  backdrop-filter: blur(10px);
  color: #fff;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
  padding: 12px 14px;
  z-index: 9999;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mrp-floating.show {
  display: flex;
}

.mrp-floating-left {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  flex: 1;
}

.mrp-floating-left img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  background: #222;
}

.mrp-floating .mrp-song {
  color: var(--mrp-floating-song-color);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.mrp-floating .mrp-artist {
  color: var(--mrp-floating-artist-color);
  font-size: 12px;
}

.mrp-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

#mrp-volume {
  width: 90px;
}

@media (max-width: 640px) {
  .mrp-player-card {
    padding: 20px;
    border-radius: 20px;
  }

  .mrp-live {
    font-size: 11px;
    padding: 4px 12px;
  }

  .mrp-play-btn-fixed {
    height: 56px;
    font-size: 18px;
  }

  .mrp-floating {
    left: 12px;
    right: 12px;
    transform: none;
    bottom: 12px;
    width: auto;
  }

  .mrp-floating .mrp-song {
    max-width: 130px;
  }
}
