.sfmc-radio-shell {
  width: 100%;
  max-width: 390px;
}

.sfmc-radio-player {
  position: relative;
  width: 100%;
  aspect-ratio: 880 / 334;
  background-image: var(--radio-bg);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.35));
}

.sfmc-radio-screen {
  position: absolute;
  left: 30.5%;
  right: 29.5%;
  top: 46.5%;
  height: 15%;
  border-radius: 8px;
  padding: 0.2rem 0.55rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: #1f4f79;
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}

.sfmc-radio-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(235,230,167,.28), rgba(194,183,112,.12));
  border-radius: 8px;
  pointer-events: none;
}

.sfmc-radio-screen > * {
  position: relative;
  z-index: 1;
}

.sfmc-radio-screen-label {
  font-size: 8px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #1f4f79;
  margin-bottom: 2px;
}

.sfmc-radio-screen-title {
  font-size: 10px;
  line-height: 1.1;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sfmc-radio-screen-meta {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: 8px;
  line-height: 1;
  font-weight: 700;
  margin-top: 2px;
  color: #1f4f79;
}

.sfmc-radio-player.is-playing .sfmc-radio-screen {
  animation: sfmcRadioGlow 2.2s ease-in-out infinite;
}

@keyframes sfmcRadioGlow {
  0%, 100% { box-shadow: inset 0 0 8px rgba(250, 248, 199, .18); }
  50% { box-shadow: inset 0 0 14px rgba(250, 248, 199, .42); }
}

.sfmc-radio-knob {
  position: absolute;
  top: 42%;
  width: 12.5%;
  height: 27%;
  border-radius: 9999px;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 3;
}

.sfmc-radio-knob-left { left: 2.6%; }
.sfmc-radio-knob-right { right: 2.8%; }

.sfmc-radio-knob-label {
  position: absolute;
  top: 42%;
  z-index: 4;
  width: 12.5%;
  height: 27%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: #1f4f79;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, .65),
    0 -1px 0 rgba(0, 0, 0, .14);
  pointer-events: none;
  user-select: none;
}

.sfmc-radio-knob-label-left {
  left: 2.6%;
}

.sfmc-radio-knob-label-right {
  right: 2.8%;
}

.sfmc-radio-knob-label-top {
  font-size: 8px;
  font-weight: 950;
  line-height: 1;
}

.sfmc-radio-knob-label-bottom {
  font-size: 15px;
  font-weight: 950;
  line-height: .9;
}

.sfmc-radio-player.volume-hint .sfmc-radio-knob-label,
.sfmc-radio-player:hover .sfmc-radio-knob-label {
  filter: brightness(1.05);
}

.sfmc-radio-buttons {
  position: absolute;
  left: 24.1%;
  right: 24.15%;
  top: 68.9%;
  height: 12.2%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.6%;
}

.sfmc-radio-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 3px;
  border: 1px solid rgba(45, 45, 45, .12);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.08));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    inset 0 -2px 3px rgba(0,0,0,.18),
    0 1px 0 rgba(255,255,255,.08);
  color: #1f4f79;
  font-size: 7.5px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 0;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease, background .12s ease;
  backdrop-filter: blur(.4px);
}

.sfmc-radio-button span,
.sfmc-radio-button-link span {
  transform: translateY(-.5px);
  text-shadow:
    0 1px 0 rgba(255,255,255,.28),
    0 -1px 0 rgba(0,0,0,.18);
  opacity: 1;
  mix-blend-mode: multiply;
}

.sfmc-radio-button:hover,
.sfmc-radio-button:focus-visible,
.sfmc-radio-knob:hover,
.sfmc-radio-knob:focus-visible {
  filter: brightness(1.04);
  outline: none;
}

.sfmc-radio-knob:hover + .sfmc-radio-knob-label,
.sfmc-radio-knob:focus-visible + .sfmc-radio-knob-label {
  transform: scale(1.03);
}

.sfmc-radio-button:active,
.sfmc-radio-button.is-pressed,
.sfmc-radio-button.is-active {
  transform: translateY(1px);
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(255,255,255,.04));
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.12),
    0 1px 0 rgba(255,255,255,.05);
}

.sfmc-radio-button.is-active span {
  opacity: 1;
}

.sfmc-radio-button.is-disabled,
.sfmc-radio-knob.is-disabled,
.sfmc-radio-button:disabled,
.sfmc-radio-knob:disabled {
  cursor: not-allowed;
  opacity: .55;
}

@media (max-width: 1279px) {
  .sfmc-radio-shell {
    max-width: 360px;
  }
}

@media (max-width: 1023px) {
  .sfmc-radio-shell {
    max-width: 340px;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .sfmc-radio-shell {
    max-width: 300px;
  }

  .sfmc-radio-screen-label { font-size: 7px; }
  .sfmc-radio-screen-title { font-size: 9px; }
  .sfmc-radio-screen-meta { font-size: 7px; }
  .sfmc-radio-button { font-size: 6.5px; }
  .sfmc-radio-knob-label-top { font-size: 6.5px; }
  .sfmc-radio-knob-label-bottom { font-size: 12px; }
}
