/* Reproductor VOD (equivalente a VodPlayer.jsx) */
.player-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  background:
    linear-gradient(90deg, rgba(34, 158, 217, 0.22) 0%, rgba(34, 158, 217, 0.06) 100%),
    rgba(0, 0, 0, 0.82);
  border-bottom: 1px solid var(--border);
  gap: 10px;
  flex-wrap: nowrap;
}
.title-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex-shrink: 1;
}
.btn-close-text { display: inline; }
.custom-stepper {
  display: flex;
  align-items: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 5px;
  gap: 4px;
  margin: 0 auto;
}
.stepper-unit { display: flex; align-items: center; gap: 2px; }
.stepper-label { font-size: 10px; color: var(--blue); font-weight: bold; }
.stepper-value {
  width: 24px;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  user-select: none;
}
.stepper-sep { opacity: 0.3; margin: 0 2px; color: #fff; }
.stepper-btn { display: flex; flex-direction: column; gap: 1px; }
.arrow-btn {
  background: #333;
  border: none;
  color: #fff;
  padding: 1px;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.arrow-btn:hover:not(:disabled) { background: var(--blue); }
.arrow-btn:disabled { opacity: 0.15; cursor: not-allowed; }
.player-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}
.player-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.player-status {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--muted);
  font-size: 14px;
}
.player-wrapper { position: relative; min-height: 200px; }
.player-wrapper iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
  border-radius: 0 0 12px 12px;
}
.player-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 280px;
  background: #111;
  border-radius: 0 0 12px 12px;
}
@media (max-width: 768px) {
  .player-top-bar { padding: 8px 10px; gap: 5px; }
  .btn-close-text { display: none; }
  .stepper-value { width: 20px; font-size: 11px; }
  .stepper-label { font-size: 9px; }
}

@media (max-width: 480px) {
  .player-modal-box { padding: 8px; }
  .player-modal-inner {
    border-radius: 8px;
  }
  .player-modal-inner .video-container { border-radius: 8px; }
  .player-top-bar { padding: 6px 8px; gap: 4px; }
  .title-group { display: none; }
  .custom-stepper { margin: 0; }
}

@media (max-width: 360px) {
  .custom-stepper { display: none; }
}

/* Overlay tipo Netflix (evita que "se vaya arriba" como otra web) */
#player-area.player-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: block;
}
.player-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.82);
}
.player-modal-box {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 28px);
  box-sizing: border-box;
}
.player-modal-inner {
  width: min(1200px, 100%);
  max-height: 100%;
  overflow: auto;
  border-radius: 12px;
  background: #000;
  position: relative;
  box-shadow:
    0 28px 100px rgba(0,0,0,0.95),
    0 0 0 1px rgba(43,124,255,0.25),
    0 0 60px rgba(212,175,55,0.10);
  border: 1px solid rgba(43,124,255,0.25);
}

.player-drag-handle { cursor: grab; }
.player-drag-handle:active { cursor: grabbing; }
.player-modal-inner .video-container {
  border-radius: 12px;
  overflow: hidden;
}
