/* URMovie Studio — Core Styles */
:root {
  --bg-dark: #0a0a0f;
  --bg-card: #141420;
  --bg-card-hover: #1a1a2e;
  --bg-input: #1e1e30;
  --text-primary: #e8e8f0;
  --text-secondary: #8888a0;
  --text-muted: #55556a;
  --accent: #e11d48;
  --accent-hover: #f43f5e;
  --accent-soft: rgba(225, 29, 72, 0.15);
  --gold: #f59e0b;
  --green: #10b981;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --border: #2a2a40;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* Layout */
.page-container { max-width: 1200px; margin: 0 auto; padding: 24px; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.page-header h1 { font-size: 28px; font-weight: 700; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: none; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; transition: all 0.2s; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary { background: var(--bg-input); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-card-hover); }
.btn-gold { background: var(--gold); color: #000; }
.btn-sm { padding: 6px 14px; font-size: 13px; }

/* Cards */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: all 0.2s; }
.card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.card-title { font-size: 18px; font-weight: 600; }

/* Grid */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-control { width: 100%; padding: 10px 14px; background: var(--bg-input); border: 1px solid var(--border); border-radius: 8px; color: var(--text-primary); font-size: 14px; }
.form-control:focus { outline: none; border-color: var(--accent); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238888a0'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* Badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.badge-genre { background: var(--accent-soft); color: var(--accent); }
.badge-format { background: rgba(139,92,246,0.15); color: var(--purple); }
.badge-status { background: rgba(16,185,129,0.15); color: var(--green); }

/* Progress */
.progress-bar { width: 100%; height: 8px; background: var(--bg-input); border-radius: 4px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 4px; transition: width 0.5s ease; }

/* Nav */
.studio-nav { display: flex; gap: 4px; background: var(--bg-card); padding: 4px; border-radius: 10px; margin-bottom: 24px; overflow-x: auto; }
.studio-nav a { padding: 8px 16px; border-radius: 8px; color: var(--text-secondary); font-size: 14px; font-weight: 500; white-space: nowrap; }
.studio-nav a.active, .studio-nav a:hover { background: var(--accent-soft); color: var(--accent); }

/* Hero */
.hero { text-align: center; padding: 80px 24px; background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2a 50%, #0a1a2a 100%); border-radius: 16px; margin-bottom: 40px; }
.hero h1 { font-size: 48px; font-weight: 800; line-height: 1.1; margin-bottom: 16px; }
.hero h1 span { background: linear-gradient(135deg, var(--accent), var(--gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 20px; color: var(--text-secondary); max-width: 600px; margin: 0 auto 32px; }

/* Pipeline */
.pipeline-track { display: flex; gap: 2px; margin: 24px 0; overflow-x: auto; }
.pipeline-stage { flex: 1; min-width: 80px; padding: 8px; text-align: center; border-radius: 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.pipeline-stage.pending { background: var(--bg-input); color: var(--text-muted); }
.pipeline-stage.in_progress { background: var(--accent-soft); color: var(--accent); animation: pulse 1.5s infinite; }
.pipeline-stage.completed { background: rgba(16,185,129,0.15); color: var(--green); }
.pipeline-stage.failed { background: rgba(239,68,68,0.15); color: #ef4444; }

/* Blend slider */
.blend-slider-container { position: relative; padding: 16px 0; }
.blend-slider { width: 100%; height: 8px; appearance: none; background: linear-gradient(90deg, var(--blue), var(--purple), var(--accent), var(--gold)); border-radius: 4px; outline: none; }
.blend-slider::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; background: white; border-radius: 50%; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.blend-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); margin-top: 8px; }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .pipeline-track { flex-wrap: wrap; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
