.player-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.video-title {
  font-size: 1.5rem;
  color: #333;
  margin: 0 0 10px 0;
  text-align: center;
  max-width: 800px;
  font-weight: 600;
}

.video-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.video-label {
  font-size: 1.2rem;
  color: #ccc;
  margin: 0;
  font-weight: 500;
}

.video-note {
  font-size: 0.85rem;
  color: #888;
  margin: 0;
  font-style: italic;
}

.video-wrapper {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  background-color: #000;
  border-radius: 8px;
  overflow: hidden;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
}

#youtube-player {
  width: 100%;
  height: 100%;
}

.local-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.timeline-container {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  max-width: 800px;
  padding: 10px 0;
}

.timeline-slider {
  flex: 1;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: #3b3b3b;
  border-radius: 4px;
  cursor: pointer;
  outline: none;
}

.timeline-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: #2563eb;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.timeline-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.timeline-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #2563eb;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  transition: transform 0.1s ease;
}

.timeline-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}

.timeline-slider:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.time-display {
  font-size: 14px;
  color: #ccc;
  font-family: monospace;
  min-width: 45px;
}

.local-videos-row {
  display: flex;
  gap: 20px;
  width: 100%;
  max-width: 800px;
  justify-content: center;
}

.local-video-section {
  flex: 1;
  min-width: 0;
}

.video-header {
  min-height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.local-video-section .video-wrapper {
  max-width: 100%;
}

.controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px 0;
}

.control-btn {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: #3b3b3b;
  color: #fff;
}

.control-btn:hover:not(:disabled) {
  background-color: #4a4a4a;
  transform: translateY(-2px);
}

.control-btn:active:not(:disabled) {
  transform: translateY(0);
}

.control-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.control-btn.active {
  background-color: #e63946;
}

.control-btn.active:hover:not(:disabled) {
  background-color: #f25c69;
}

.toggle-btn {
  background-color: #2563eb;
  min-width: 120px;
}

.toggle-btn:hover:not(:disabled) {
  background-color: #3b82f6;
}

.loading-text {
  color: #888;
  font-style: italic;
}

@media (max-width: 600px) {
  .control-btn {
    padding: 10px 18px;
    font-size: 14px;
  }

  .video-label {
    font-size: 1rem;
  }

  .local-videos-row {
    flex-direction: column;
    gap: 30px;
  }
}
