/* Custom Video Player Styles - Matching NextJS Design */

.custom-video-container {
  position: relative;
  width: 100%;
  background: #000;
  user-select: none;
}

.custom-video-container video {
  width: 100%;
  display: block;
}

.custom-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: opacity 0.3s ease;
}

.custom-controls.hidden {
  opacity: 0;
  pointer-events: none;
}

.custom-progress-bar {
  position: relative;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  cursor: pointer;
}

.custom-progress-bar:hover {
  height: 6px;
}

.custom-progress-played {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: #F8BB11;
  border-radius: 2px;
}

.custom-progress-handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: #F8BB11;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s;
}

.custom-progress-bar:hover .custom-progress-handle {
  opacity: 1;
}

.custom-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.custom-controls-left,
.custom-controls-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-control-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.custom-control-btn:hover {
  opacity: 1;
}

.custom-control-btn svg {
  width: 22px;
  height: 22px;
}

.custom-skip-btn {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  color: white;
}

.custom-skip-btn svg {
  width: 18px;
  height: 18px;
}

.custom-time {
  color: white;
  font-size: 13px;
  font-family: monospace;
  opacity: 0.9;
}

.custom-time-sep {
  margin: 0 4px;
}

.custom-menu {
  position: absolute;
  bottom: 60px;
  right: 16px;
  background: rgba(0,0,0,0.95);
  border-radius: 8px;
  min-width: 200px;
  overflow: hidden;
  z-index: 100;
}

.custom-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.custom-menu-header-title {
  color: #F8BB11;
  font-size: 14px;
  font-weight: 600;
}

.custom-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 16px;
  color: white;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.custom-menu-item:hover {
  background: rgba(255,255,255,0.1);
}

.custom-menu-item.active {
  color: #F8BB11;
}

.custom-episode-label {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0,0,0,0.7);
  padding: 6px 12px;
  border-radius: 4px;
  color: white;
  font-size: 13px;
  font-weight: 500;
}

.custom-subtitle-overlay {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 80%;
  padding: 8px 16px;
  text-align: center;
  font-size: 18px;
  color: #ffffff;
  background-color: rgba(0,0,0,0.8);
  border-radius: 4px;
  white-space: pre-wrap;
  display: none;
}

/* Rounded video */
.custom-video-wrapper video,
.custom-video-wrapper .plyr-video {
  border-radius: 10px;
  overflow: hidden;
}

/* Responsive */
@media (max-width: 575px) {
  .custom-controls {
    padding: 10px;
  }

  .custom-control-btn svg {
    width: 18px;
    height: 18px;
  }

  .custom-menu {
    right: 8px;
    min-width: 160px;
  }
}