* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
}

body {
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  color: #f1f1f1;
  background-color: #0f0f0f;
  min-height: 100vh;
}

header {
  width: 100%;
  background-color: #212121;
  color: white;
  border-bottom: 3px solid #ff0000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  padding: 0;
  margin-bottom: 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  flex-shrink: 0;
}

.youtube-icon {
  width: 48px;
  height: auto;
}

.header-text {
  text-align: left;
}

.header-text h1 {
  font-size: 1.8em;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin-bottom: 2px;
}

.header-text .tagline {
  font-weight: 300;
  font-size: 0.95em;
  color: #aaaaaa;
}

main {
  display: flex;
  flex-direction: column;
  gap: 0;
}

section {
  width: 100%;
  background-color: #212121;
  border-bottom: 1px solid #303030;
  transition: all 0.2s;
}

section:hover {
  background-color: #252525;
}

.section-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 40px;
}

section h3 {
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #303030;
  color: #ffffff;
  font-size: 1.4em;
  font-weight: 500;
}

#video-info {
  background-color: #1a1a1a;
  border-left: none;
  box-shadow: inset 4px 0 0 #ff0000;
}

#instructions {
  background-color: #1a1a1a;
  border-left: none;
  box-shadow: inset 4px 0 0 #909090;
}

#instructions ol {
  margin-left: 20px;
  margin-bottom: 15px;
  color: #aaaaaa;
}

#instructions li {
  margin-bottom: 12px;
  line-height: 1.8;
}

.note {
  margin-top: 15px;
  padding: 12px;
  background-color: #272727;
  border-radius: 4px;
  font-size: 0.9em;
  color: #cccccc;
  border-left: 3px solid #606060;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #f1f1f1;
  font-size: 14px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #303030;
  border-radius: 2px;
  font-size: 14px;
  background-color: #121212;
  color: #f1f1f1;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #ff0000;
  background-color: #1a1a1a;
}

.form-group input::placeholder {
  color: #717171;
}

button {
  background-color: #ff0000;
  color: white;
  border: none;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

button:hover {
  background-color: #cc0000;
}

button:active {
  transform: scale(0.98);
}

button:disabled {
  background-color: #505050;
  color: #909090;
  cursor: not-allowed;
}

.download-button {
  background-color: #065fd4;
  margin-top: 10px;
}

.download-button:hover {
  background-color: #0050b3;
}

#video-details {
  background-color: #181818;
  padding: 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  border: 1px solid #303030;
}

#video-details p {
  margin-bottom: 10px;
  color: #aaaaaa;
}

#video-details strong {
  color: #f1f1f1;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 2px;
  font-size: 0.85em;
  font-weight: 500;
}

.status-badge.success {
  background-color: #0f9d58;
  color: #ffffff;
}

.message {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 2px;
  font-weight: 400;
  font-size: 14px;
  animation: slideIn 0.3s ease-out;
  border-left: 4px solid;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success {
  background-color: #0d3a23;
  color: #6fdc8c;
  border-left-color: #0f9d58;
}

.error {
  background-color: #3d1517;
  color: #f28b82;
  border-left-color: #d93025;
}

.info {
  background-color: #1a2e3d;
  color: #8ab4f8;
  border-left-color: #1a73e8;
}

.hidden {
  display: none;
}

footer {
  width: 100%;
  text-align: center;
  padding: 30px 40px;
  color: #717171;
  font-weight: 400;
  font-size: 13px;
  border-top: 1px solid #303030;
  background-color: #181818;
}

/* Responsive design */
@media (max-width: 768px) {
  .header-content {
    padding: 20px;
    gap: 16px;
  }

  .header-text h1 {
    font-size: 1.4em;
  }

  .youtube-icon {
    width: 40px;
  }

  .section-content {
    padding: 20px;
  }

  footer {
    padding: 20px;
  }
}
