.player-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: var(--z-modal);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.player-overlay iframe,
.player-overlay video {
  border: none;
  display: block;
  background: #000;
  object-fit: contain;
}

@media (max-width: 1023px) {
  .player-overlay iframe,
  .player-overlay video {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    max-height: 90vh;
  }
}

@media (min-width: 1024px) {
  .player-overlay iframe,
  .player-overlay video {
    width: 100vw !important;
    height: 100vh !important;
    aspect-ratio: auto;
  }
}

.player-close {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  z-index: var(--z-max);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all var(--ease, 0.2s ease);
}

.player-close:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.08);
}

.live-fs-badge {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: max(16px, env(safe-area-inset-left));
  z-index: 1001;
  background: var(--live, #ff0000);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 4px;
  animation: livePulse 1.5s ease infinite;
  pointer-events: none;
  text-transform: uppercase;
}

.live-fs-loading {
  position: fixed;
  inset: 0;
  z-index: 1002;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--muted, #888);
  font-size: 13px;
}

.live-err {
  color: var(--danger, #ff4444);
  font-size: 13px;
  font-weight: 500;
}

@keyframes livePulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}
