*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #0a0a0c;
  color: #f4f4f5;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.stage {
  min-height: 100dvh;
  width: 100%;
  display: grid;
  place-items: center;
  padding: clamp(0.5rem, 1.5vw, 1.5rem);
}

.player-shell {
  position: relative;
  width: min(100%, 1920px);
  max-height: calc(100dvh - 2rem);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.player-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.overlay-top {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  right: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  pointer-events: none;
  z-index: 10;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: clamp(0.72rem, 0.65rem + 0.25vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(15, 15, 20, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.badge-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
}

.badge-live .badge-dot {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: pulse 1.6s ease-in-out infinite;
}

.badge-standby .badge-dot {
  background: #9ca3af;
}

.unmute-btn {
  pointer-events: auto;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 15, 20, 0.82);
  color: #fff;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.unmute-btn:hover,
.unmute-btn:focus-visible {
  background: rgba(35, 35, 45, 0.95);
  border-color: rgba(255, 255, 255, 0.5);
  outline: none;
}

.offline-message {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 1.5rem;
  background: radial-gradient(circle at center, #18181f 0%, #0a0a0c 100%);
  z-index: 5;
}

.offline-message[hidden] {
  display: none;
}

.offline-title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.85rem);
  font-weight: 700;
}

.offline-detail {
  margin: 0;
  color: #a1a1aa;
  font-size: clamp(0.9rem, 0.85rem + 0.3vw, 1.05rem);
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
