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

.youtube-url-input {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 800px;
  padding: 10px 0;
}

.url-input {
  flex: 1;
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid #3b3b3b;
  border-radius: 8px;
  background-color: #2a2a2a;
  color: #fff;
  outline: none;
  transition: border-color 0.2s ease;
}

.url-input:focus {
  border-color: #2563eb;
}

.url-input::placeholder {
  color: #666;
}

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

.load-btn:hover {
  background-color: #3b82f6;
}

.user-recording-section {
  display: flex;
  gap: 30px;
  width: 100%;
  max-width: 1100px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 20px;
  background-color: #0d0d0d;
  border-radius: 16px;
  margin-bottom: 20px;
}

.user-form-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.submit-message {
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  margin: 0;
}

.submit-message.success {
  background-color: rgba(74, 222, 128, 0.1);
  color: #4ade80;
}

.submit-message.error {
  background-color: rgba(230, 57, 70, 0.1);
  color: #e63946;
}

.share-link-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px;
  background-color: rgba(37, 99, 235, 0.1);
  border-radius: 8px;
  margin-top: 10px;
}

.share-link-label {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

.share-link-input {
  padding: 10px 12px;
  font-size: 14px;
  border: 2px solid #3b3b3b;
  border-radius: 6px;
  background-color: #2a2a2a;
  color: #fff;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.share-link-input:focus {
  border-color: #2563eb;
}

.copy-link-btn {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background-color: #2563eb;
  color: #fff;
  transition: background-color 0.2s ease;
}

.copy-link-btn:hover {
  background-color: #3b82f6;
}

.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;
}

.no-video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1a1a1a;
  color: #666;
  font-style: italic;
}

.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: 900px;
  justify-content: center;
  align-items: center;
}

.swap-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  font-size: 24px;
  border: none;
  border-radius: 50%;
  background-color: #2563eb;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.swap-btn:hover:not(:disabled) {
  background-color: #3b82f6;
  transform: scale(1.1);
}

.swap-btn:disabled {
  background-color: #3b3b3b;
  color: #666;
  cursor: not-allowed;
}

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

.video-header {
  min-height: 70px;
  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: 20px;
  }

  .swap-btn {
    transform: rotate(90deg);
  }

  .swap-btn:hover:not(:disabled) {
    transform: rotate(90deg) scale(1.1);
  }

  .user-recording-section {
    flex-direction: column;
    align-items: center;
  }

  .youtube-url-input {
    flex-direction: column;
  }

  .url-input {
    padding: 10px 14px;
    font-size: 14px;
  }

  .load-btn {
    padding: 10px 18px;
    font-size: 14px;
  }
}
