/* Maths In Space Radio Player */
:root {
  --mis-radio-height: 40px;
  --mis-radio-bg: rgba(8, 12, 24, 0.88);
  --mis-radio-border: rgba(108, 140, 255, 0.28);
  --mis-radio-text: rgba(255,255,255,0.92);
  --mis-radio-muted: rgba(255,255,255,0.62);
  --mis-radio-accent: #7dd3fc;
}

html {
  scroll-padding-bottom: calc(var(--mis-radio-height) + 18px);
}

body {
  padding-bottom: calc(var(--mis-radio-height) + 14px);
}

.mis-radio-player {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 1080;
  height: var(--mis-radio-height);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--mis-radio-border);
  border-radius: 999px;
  background: var(--mis-radio-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.mis-radio-brand {
  font: 700 0.68rem/1 Inter, Arial, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mis-radio-muted);
  white-space: nowrap;
}

.mis-radio-main {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mis-radio-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mis-radio-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--mis-radio-text);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.mis-radio-btn:hover:not(:disabled),
.mis-radio-btn:focus-visible:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.mis-radio-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.mis-radio-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.mis-radio-track {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mis-radio-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--mis-radio-text);
  font: 600 0.82rem/1.1 Inter, Arial, sans-serif;
}

.mis-radio-status {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--mis-radio-muted);
  font: 500 0.68rem/1.1 Inter, Arial, sans-serif;
}

.mis-radio-volume-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.mis-radio-volume-icon {
  color: var(--mis-radio-muted);
  font-size: 0.8rem;
  line-height: 1;
}

.mis-radio-volume {
  width: 84px;
  accent-color: var(--mis-radio-accent);
  cursor: pointer;
}

@media (max-width: 575.98px) {
  :root { --mis-radio-height: 44px; }

  .mis-radio-player {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 0 10px;
    gap: 8px;
  }

  .mis-radio-brand,
  .mis-radio-volume-wrap {
    display: none;
  }

  .mis-radio-title {
    font-size: 0.78rem;
  }

  .mis-radio-status {
    font-size: 0.64rem;
  }
}
