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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #0f0f12;
  color: #f1f1f5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.app-container {
  width: 100%;
  max-width: 780px;
  padding: 24px 16px;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid #23232b;
  margin-bottom: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.yt-icon {
  width: 32px;
  height: 32px;
}

.status-badge {
  font-size: 0.825rem;
  padding: 6px 12px;
  border-radius: 20px;
  background: #1e1e26;
  color: #a0a0b0;
}

.status-badge.online {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.card {
  background: #16161d;
  border: 1px solid #262633;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.subtitle {
  color: #9494a8;
  font-size: 0.95rem;
  margin-bottom: 28px;
}

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

.form-row {
  display: flex;
  gap: 16px;
}

.flex-1 { flex: 1; }
.width-180 { width: 180px; }

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #d1d1e0;
}

input[type="text"], textarea, select {
  width: 100%;
  padding: 12px 14px;
  background: #0d0d12;
  border: 1px solid #2d2d3d;
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

input[type="text"]:focus, textarea:focus, select:focus {
  border-color: #FF0000;
}

.input-hint, .file-hint {
  font-size: 0.775rem;
  color: #717185;
  margin-top: 6px;
  display: block;
}

.file-dropzone {
  border: 2px dashed #2d2d3d;
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  position: relative;
  background: #0d0d12;
  cursor: pointer;
  transition: all 0.2s;
}

.file-dropzone:hover {
  border-color: #FF0000;
  background: rgba(255, 0, 0, 0.02);
}

.file-dropzone input[type="file"] {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: #FF0000;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 10px;
}

.btn-submit:hover {
  background: #cc0000;
}

.hidden { display: none !important; }

.progress-section {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  margin-top: 24px;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255,0,0,0.3);
  border-top-color: #FF0000;
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.result-box {
  margin-top: 24px;
  padding: 20px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 10px;
}

.url-copy-box {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.url-copy-box input {
  flex: 1;
  background: #09090d;
}

.url-copy-box button {
  padding: 10px 18px;
  background: #10b981;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.error-box {
  margin-top: 24px;
  padding: 20px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
}
