:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  --player-orange: #ff5900;
  --player-bg: #111111;
  --player-surface: #1c1c1c;
  --player-text: #ffffff;
  --player-muted: #d7d7d7;
  --player-focus: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--player-bg);
}

body {
  display: grid;
  place-items: center;
}

button,
video {
  font: inherit;
}

.radio-player {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--player-bg);
  color: var(--player-text);
}

.radio-player__media {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000000;
}

.radio-player__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.radio-player__live {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.radio-player__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef3636;
  box-shadow: 0 0 0 4px rgba(239, 54, 54, 0.18);
}

.radio-player__error {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 54px;
  display: flex;
  max-width: calc(100% - 24px);
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 3px solid var(--player-orange);
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.9);
  backdrop-filter: blur(8px);
}

.radio-player--alternativa .radio-player__error {
  border-left-color: #ff6677;
}

.radio-player__error-message,
.radio-player__noscript {
  margin: 0;
  color: var(--player-muted);
  font-size: 13px;
  line-height: 1.35;
}

.radio-player__error-message {
  color: #ffd6d6;
}

.radio-player__error[hidden] {
  display: none;
}

.radio-player__retry {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--player-orange);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.radio-player__retry:hover {
  background: #e94f00;
}

.radio-player__retry:focus-visible {
  outline: 3px solid var(--player-focus);
  outline-offset: 2px;
}

.radio-player__retry[hidden] {
  display: none;
}

.radio-player__noscript {
  padding: 10px 12px;
}

@media (max-width: 480px) {
  .radio-player__live {
    top: 8px;
    left: 8px;
    padding: 6px 9px;
    font-size: 11px;
  }

  .radio-player__error {
    right: 8px;
    bottom: 46px;
    max-width: calc(100% - 16px);
    min-height: 36px;
    padding: 7px 9px;
  }

  .radio-player__error-message,
  .radio-player__retry {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
