.r53-hero-player {
  width: min(100%, 540px);
  display: grid;
  gap: 16px;
  align-self: end;
}

.r53-player-shell {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
  backdrop-filter: none;
}

.r53-live-play {
  width: 112px;
  height: 112px;
  min-width: 112px;
  min-height: 112px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--r53-gold, #fbbf24);
  color: var(--r53-blue-deep, #041a34);
  box-shadow: 0 0 0 8px rgba(251, 191, 36, 0.13), 0 18px 44px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.r53-live-play:hover,
.r53-live-play:focus-visible {
  transform: translateY(-2px) scale(1.02);
  outline: 4px solid rgba(255, 223, 71, 0.42);
  outline-offset: 4px;
}

[data-r53-icon] {
  display: block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 27px solid currentColor;
}

[data-r53-toggle].is-playing [data-r53-icon] {
  position: relative;
  width: 28px;
  height: 34px;
  margin-left: 0;
  border: 0;
}

[data-r53-toggle].is-playing [data-r53-icon]::before,
[data-r53-toggle].is-playing [data-r53-icon]::after {
  content: "";
  position: absolute;
  top: 0;
  width: 9px;
  height: 34px;
  background: currentColor;
}

[data-r53-toggle].is-playing [data-r53-icon]::before {
  left: 0;
}

[data-r53-toggle].is-playing [data-r53-icon]::after {
  right: 0;
}

.r53-live-copy {
  min-width: 0;
}

.r53-live-copy span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 9px;
  color: var(--r53-gold, #fbbf24);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.r53-live-copy span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--r53-green, #36e289);
  box-shadow: 0 0 0 6px rgba(54, 226, 137, 0.16);
}

.r53-live-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.65rem, 3vw, 2.65rem);
  line-height: 1;
}

.r53-now-stack {
  display: grid;
  gap: 10px;
}

.r53-now {
  display: grid;
  grid-template-columns: 56px 68px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(7, 91, 163, 0.9);
  color: #fff;
  box-shadow: 0 14px 30px rgba(2, 14, 30, 0.2);
  backdrop-filter: blur(4px);
}

.r53-now__time {
  color: #fff;
  font-size: 0.96rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.r53-now__art {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.r53-now__copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.r53-now__copy strong,
.r53-now__copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.r53-now__copy strong {
  color: #fff;
  font-size: 1.24rem;
  font-weight: 900;
  line-height: 1.12;
}

.r53-now__copy span {
  color: #e0efff;
  font-size: 0.96rem;
  font-weight: 700;
}

.r53-now__history {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(251, 191, 36, 0.58);
  border-radius: 8px;
  background: rgba(4, 26, 52, 0.88);
  color: var(--r53-gold, #fbbf24);
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(2, 14, 30, 0.18);
  backdrop-filter: blur(4px);
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.r53-now__history:hover,
.r53-now__history:focus-visible {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(251, 191, 36, 0.18);
  color: #fff;
}

.r53-player {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  min-height: 82px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 56px auto;
  align-items: center;
  gap: 14px;
  padding: 10px max(16px, calc((100vw - 1120px) / 2));
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(4, 26, 52, 0.97);
  color: #fff;
  box-shadow: 0 -18px 46px rgba(2, 14, 30, 0.34);
  backdrop-filter: blur(6px);
}

.r53-player__audio {
  display: none;
}

.r53-player__art {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: #fff;
}

.r53-player__meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.r53-player__station {
  color: var(--r53-gold, #fbbf24);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.r53-player__title,
.r53-player__artist {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.r53-player__title {
  color: #fff;
  font-size: 1.08rem;
  font-weight: 900;
}

.r53-player__artist {
  color: #cfe3f8;
  font-size: 0.92rem;
  font-weight: 700;
}

.r53-player__play {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--r53-gold, #fbbf24);
  color: var(--r53-blue-deep, #041a34);
  cursor: pointer;
}

.r53-player__play [data-r53-icon] {
  border-top-width: 10px;
  border-bottom-width: 10px;
  border-left-width: 16px;
  margin-left: 4px;
}

.r53-player__play.is-playing [data-r53-icon] {
  width: 17px;
  height: 20px;
  margin-left: 0;
}

.r53-player__play.is-playing [data-r53-icon]::before,
.r53-player__play.is-playing [data-r53-icon]::after {
  width: 6px;
  height: 20px;
}

.r53-player__history {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
}

.r53-player__history:hover,
.r53-player__history:focus-visible {
  border-color: var(--r53-gold, #fbbf24);
  color: var(--r53-gold, #fbbf24);
}

.r53-history {
  width: 100%;
  display: grid;
  gap: 18px;
}

.r53-history__toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(251, 191, 36, 0.78);
}

.r53-history__toolbar h2 {
  margin: 0;
  color: var(--r53-blue, #003b78);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.r53-history__toolbar p {
  margin: 8px 0 0;
  color: var(--r53-muted, #5d6b7d);
  line-height: 1.55;
}

.r53-history__controls,
.r53-history__days {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.r53-history__date {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 8px;
  background: rgba(0, 59, 120, 0.08);
  color: var(--r53-blue, #003b78);
  font-weight: 900;
  white-space: nowrap;
}

.r53-history__days {
  justify-content: flex-start;
}

.r53-history__day {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(0, 59, 120, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--r53-blue, #003b78);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 850;
  cursor: pointer;
}

.r53-history__day:hover,
.r53-history__day:focus-visible,
.r53-history__day.is-active {
  border-color: var(--r53-gold, #fbbf24);
  background: var(--r53-gold, #fbbf24);
  color: var(--r53-blue-deep, #041a34);
}

.r53-history__status {
  min-height: 24px;
  margin: 0;
  color: var(--r53-muted, #5d6b7d);
  font-size: 0.94rem;
}

.r53-history__list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}

.r53-history__row {
  min-height: 78px;
  display: grid;
  grid-template-columns: 62px 60px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border: 1px solid rgba(4, 26, 52, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 24px rgba(4, 26, 52, 0.06);
}

.r53-history__time {
  color: var(--r53-blue, #003b78);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.r53-history__art {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  background: #f0f5fb;
}

.r53-history__track {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.r53-history__track strong,
.r53-history__track em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.r53-history__track strong {
  color: var(--r53-ink, #102033);
  font-size: 1.03rem;
  font-style: normal;
  font-weight: 900;
}

.r53-history__track em {
  color: var(--r53-muted, #5d6b7d);
  font-size: 0.92rem;
  font-style: normal;
  font-weight: 700;
}

.r53-history__footer {
  display: flex;
  justify-content: center;
}

.r53-page-loading main.site-main {
  opacity: 0.72;
}

@media (max-width: 860px) {
  .r53-hero-player {
    width: 100%;
  }

  .r53-player-shell {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    padding: 0;
  }

  .r53-player-shell .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .r53-live-play {
    width: 92px;
    height: 92px;
    min-width: 92px;
    min-height: 92px;
  }

  .r53-live-play [data-r53-icon] {
    border-top-width: 13px;
    border-bottom-width: 13px;
    border-left-width: 21px;
  }

  .r53-now {
    grid-template-columns: 50px 58px minmax(0, 1fr);
    gap: 13px;
    padding: 10px 12px;
  }

  .r53-now__art {
    width: 58px;
    height: 58px;
  }

  .r53-now__copy strong {
    font-size: 1.06rem;
  }

  .r53-player {
    min-height: 132px;
    grid-template-columns: 48px minmax(0, 1fr) 54px;
    gap: 12px;
    padding: 10px 12px 12px;
  }

  .r53-player__art {
    width: 48px;
    height: 48px;
  }

  .r53-player__history {
    grid-column: 1 / -1;
    min-height: 34px;
  }

  .r53-history__toolbar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .r53-history__controls {
    justify-content: flex-start;
  }

  .r53-history__controls .button {
    flex: 1 1 130px;
  }

  .r53-history__date {
    flex: 1 1 100%;
  }

  .r53-history__day {
    flex: 1 1 calc(50% - 8px);
  }

  .r53-history__row {
    grid-template-columns: 50px 52px minmax(0, 1fr);
    gap: 10px;
    padding: 9px 10px;
  }

  .r53-history__time {
    font-size: 0.86rem;
  }

  .r53-history__art {
    width: 52px;
    height: 52px;
  }

  .r53-history__track strong {
    font-size: 0.98rem;
  }

  .r53-history__track em {
    font-size: 0.86rem;
  }
}

@media (max-width: 420px) {
  .r53-player-shell {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .r53-live-play {
    width: 84px;
    height: 84px;
    min-width: 84px;
    min-height: 84px;
  }

  .r53-live-copy h2 {
    font-size: 1.55rem;
  }

  .r53-now {
    grid-template-columns: 45px 54px minmax(0, 1fr);
    gap: 10px;
  }

  .r53-now__time {
    font-size: 0.84rem;
  }

  .r53-now__art {
    width: 54px;
    height: 54px;
  }

  .r53-now__history {
    min-height: 38px;
    font-size: 0.82rem;
  }

  .r53-history__controls .button,
  .r53-history__day {
    flex-basis: 100%;
  }
}
