/* Estilos generales */
body {
  font-family: Arial, sans-serif;
  background-color: #f3f4f6;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem;
  margin: 0;
}

/* Contenedor principal */
.container {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 800px;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
}

.back-button {
  text-decoration: none;
  color: #3b82f6;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.back-button:hover {
  background-color: #eff6ff;
}

#language-info {
  font-size: 0.9rem;
  color: #6b7280;
}

/* Formulario */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

button[type="submit"] {
  background-color: #3b82f6;
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

button[type="submit"]:hover {
  background-color: #2563eb;
}

/* Estilos del reproductor de video */
#video-container iframe {
  width: 100%;
  height: 315px;
  border-radius: 12px;
  margin-bottom: 1rem;
}

/* Controles */
.controls {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1rem;
  background-color: #f9fafb;
  border-radius: 8px;
}

.btn {
  background-color: #10b981;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn:hover {
  background-color: #059669;
}

/* Sección de subtítulos */
.subtitles-section h3 {
  margin-bottom: 1rem;
  color: #374151;
  font-size: 1.25rem;
}

#subtitles {
  margin-top: 1rem;
  line-height: 1.6;
  font-size: 1rem;
  color: #333;
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
}

.subtitle-item {
  margin: 0.75rem 0;
  padding: 0.75rem;
  background-color: #f9fafb;
  border-radius: 6px;
  border-left: 4px solid #3b82f6;
}

.subtitle-item .time {
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 500;
  margin-right: 0.75rem;
}

.subtitle-item .text {
  color: #374151;
}

/* Estados de error y sin subtítulos */
.error {
  color: #dc2626;
  background-color: #fef2f2;
  padding: 1rem;
  border-radius: 6px;
  border-left: 4px solid #dc2626;
}

.no-subtitles {
  color: #6b7280;
  background-color: #f9fafb;
  padding: 1rem;
  border-radius: 6px;
  text-align: center;
  font-style: italic;
}