* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  padding: 30px;
  max-width: 1200px;
  width: 100%;
}

h1 {
  text-align: center;
  color: #667eea;
  margin-bottom: 30px;
  font-size: 2em;
}

.controls {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.control-group {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.control-group:last-child {
  margin-bottom: 0;
}

label {
  font-weight: 600;
  color: #333;
  min-width: 100px;
}

input[type="text"] {
  flex: 1;
  padding: 10px 15px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  min-width: 200px;
}

input[type="text"]:focus {
  outline: none;
  border-color: #667eea;
}

button {
  padding: 10px 25px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
}

button:hover {
  background: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

button.danger {
  background: #e74c3c;
}

button.danger:hover {
  background: #c0392b;
}

.info-box {
  background: #e7f3ff;
  border-left: 4px solid #2196F3;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.6;
}

.info-box strong {
  color: #1976D2;
}

.info-box ul {
  margin: 10px 0 0 20px;
  padding: 0;
}

.info-box li {
  margin: 5px 0;
}

.status {
  padding: 12px 20px;
  border-radius: 5px;
  margin-bottom: 20px;
  font-weight: 500;
  text-align: center;
}

.status.info {
  background: #d4edff;
  color: #0066cc;
  border-left: 4px solid #0066cc;
}

.status.success {
  background: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}

.status.warning {
  background: #fff3cd;
  color: #856404;
  border-left: 4px solid #ffc107;
}

.status.error {
  background: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

.videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.video-container {
  position: relative;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.video-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 15px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  z-index: 10;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  .videos {
    grid-template-columns: 1fr;
  }

  .control-group {
    flex-direction: column;
    align-items: stretch;
  }

  label {
    min-width: auto;
  }
}
