:root {
  --hp-ink: #171717;
  --hp-muted: #62656b;
  --hp-line: #d8d8d4;
  --hp-paper: #ffffff;
  --hp-soft: #f4f4f2;
  --hp-blue: #153f8f;
  --hp-red: #c91f37;
  --hp-gold: #e9b44c;
  --hp-green: #267365;
  --hp-shadow: 0 -10px 34px rgba(12, 18, 28, 0.14);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: transparent;
  color: var(--hp-ink);
}

button,
input,
select {
  font: inherit;
}

.hp-radio {
  padding: 8px;
  background:
    linear-gradient(90deg, rgba(21, 63, 143, 0.12), transparent 42%),
    linear-gradient(270deg, rgba(201, 31, 55, 0.12), transparent 42%);
}

.hp-radio__stage {
  display: grid;
  grid-template-columns: minmax(118px, 0.8fr) auto minmax(190px, 1.4fr) minmax(190px, 1fr) minmax(112px, 0.6fr) auto;
  align-items: center;
  gap: 12px;
  width: min(1180px, 100%);
  min-height: 86px;
  margin: 0 auto;
  border: 1px solid var(--hp-line);
  border-top: 4px solid var(--hp-blue);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--hp-paper);
  box-shadow: var(--hp-shadow);
}

.hp-radio__brand {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.hp-radio__brand span,
.hp-radio__select span,
.hp-radio__volume span {
  color: var(--hp-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.hp-radio__brand span {
  color: var(--hp-red);
}

.hp-radio__brand strong {
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hp-radio__play {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--hp-red);
  color: #fff;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.hp-radio__play:hover {
  transform: translateY(-1px);
  background: #af172c;
}

.hp-radio__play:focus-visible,
.hp-radio input:focus-visible,
.hp-radio select:focus-visible {
  outline: 3px solid rgba(233, 180, 76, 0.55);
  outline-offset: 3px;
}

.hp-radio__play-icon {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
}

.hp-radio__play.is-playing .hp-radio__play-icon {
  width: 17px;
  height: 21px;
  margin-left: 0;
  border: 0;
  background:
    linear-gradient(90deg, #fff 0 38%, transparent 38% 62%, #fff 62% 100%);
}

.hp-radio__now {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.hp-radio__art {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--hp-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(21, 63, 143, 0.95), rgba(21, 63, 143, 0.72)),
    var(--hp-blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.hp-radio__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-radio__copy {
  min-width: 0;
}

.hp-radio__station,
.hp-radio__meta {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hp-radio__station {
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.2;
}

.hp-radio__meta {
  margin-top: 3px;
  color: var(--hp-muted);
  font-size: 0.84rem;
}

.hp-radio__select,
.hp-radio__volume {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.hp-radio__select select {
  width: 100%;
  min-height: 36px;
  border: 1px solid #cfcfcb;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--hp-ink);
}

.hp-radio__volume input {
  width: 100%;
  accent-color: var(--hp-blue);
}

.hp-radio__status {
  justify-self: end;
  min-width: 92px;
  border: 1px solid var(--hp-line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--hp-muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.hp-radio__status[data-tone="live"] {
  border-color: rgba(38, 115, 101, 0.32);
  background: rgba(38, 115, 101, 0.09);
  color: #18574d;
}

.hp-radio__status[data-tone="error"] {
  border-color: rgba(201, 31, 55, 0.28);
  background: rgba(201, 31, 55, 0.08);
  color: #9b1528;
}

@media (max-width: 860px) {
  .hp-radio__stage {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 9px 10px;
    min-height: 106px;
  }

  .hp-radio__brand {
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    gap: 8px;
  }

  .hp-radio__select {
    grid-column: 1 / 3;
  }

  .hp-radio__volume {
    display: none;
  }
}

@media (max-width: 520px) {
  .hp-radio {
    padding: 6px;
  }

  .hp-radio__stage {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 148px;
    padding: 9px;
  }

  .hp-radio__brand,
  .hp-radio__select,
  .hp-radio__status {
    grid-column: 1 / -1;
  }

  .hp-radio__status {
    justify-self: stretch;
  }

  .hp-radio__play {
    width: 44px;
    height: 44px;
  }
}
