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

body {
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  background: #0a0a0f;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 100%;
  max-width: 720px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---- Result Section ---- */
.result-section {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #12121a;
  border: 1px solid #1e1e2e;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #444;
}

.placeholder p {
  font-size: 14px;
}

#videoPlayer {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  border-radius: 16px;
}

/* ---- Status Bar ---- */
.status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #15152a;
  border: 1px solid #252545;
  border-radius: 10px;
  font-size: 14px;
  color: #8b8bff;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #333;
  border-top-color: #8b8bff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ---- Logo ---- */
.logo {
  width: 120px;
  height: auto;
  margin-bottom: 4px;
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 12px;
}

/* ---- Prompt Section ---- */
.prompt-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.accent {
  background: linear-gradient(135deg, #6e6eff, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.subtitle {
  font-size: 14px;
  color: #666;
}

.input-group {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

textarea {
  flex: 1;
  padding: 14px 16px;
  background: #12121a;
  border: 1px solid #1e1e2e;
  border-radius: 12px;
  color: #e0e0e0;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

textarea:focus {
  border-color: #6e6eff;
}

textarea::placeholder {
  color: #444;
}

#generateBtn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  background: linear-gradient(135deg, #6e6eff, #a855f7);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    opacity 0.2s,
    transform 0.1s;
  white-space: nowrap;
}

#generateBtn:hover {
  opacity: 0.9;
}

#generateBtn:active {
  transform: scale(0.97);
}

#generateBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---- Settings ---- */
.settings {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #666;
}

.settings input {
  padding: 10px 14px;
  background: #12121a;
  border: 1px solid #1e1e2e;
  border-radius: 10px;
  color: #e0e0e0;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.settings input:focus {
  border-color: #6e6eff;
}

.settings input::placeholder {
  color: #444;
}

/* ---- Error ---- */
.status-bar.error {
  border-color: #5a1a1a;
  background: #1a1015;
  color: #ff6b6b;
}

.status-bar.success {
  border-color: #1a5a2e;
  background: #101a15;
  color: #6bffb8;
}

/* ---- Responsive ---- */
@media (max-width: 520px) {
  .input-group {
    flex-direction: column;
  }

  #generateBtn {
    width: 100%;
    justify-content: center;
  }

  h1 {
    font-size: 22px;
  }
}
