:root {
  --bg: #0f1923;
  --bg-elevated: #162330;
  --bg-card: #1a2a3a;
  --crimson: #ff4655;
  --crimson-glow: rgba(255, 70, 85, 0.35);
  --gold: #f5b942;
  --gold-soft: rgba(245, 185, 66, 0.16);
  --mint: #00f0b5;
  --text: #ece8e1;
  --muted: #9eb0c2;
  --border: rgba(236, 232, 225, 0.12);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 70, 85, 0.16), transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(245, 185, 66, 0.12), transparent 35%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

h1, h2, h3, .tag, .btn-primary {
  font-family: 'Chakra Petch', 'Inter', sans-serif;
  letter-spacing: 0.03em;
}

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.hero {
  background: linear-gradient(135deg, rgba(26, 42, 58, 0.96), rgba(15, 25, 35, 0.98));
  border: 1px solid var(--border);
  border-left: 4px solid var(--crimson);
  border-radius: 14px;
  padding: 24px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  margin-bottom: 18px;
}

.hero.is-live {
  border-left-color: var(--mint);
  box-shadow: 0 20px 50px rgba(0, 240, 181, 0.12);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
}

.tag-live {
  background: rgba(255, 70, 85, 0.22);
  border-color: var(--crimson);
  color: #fff;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--crimson);
  animation: pulse 1.4s infinite;
}

.is-live .dot {
  background: var(--mint);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.tag-gold {
  background: var(--gold-soft);
  border-color: rgba(245, 185, 66, 0.45);
  color: var(--gold);
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 6px;
}

.subtitle {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 18px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg-elevated);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-primary {
  background: linear-gradient(135deg, #9146ff, #6d28d9);
  border-color: rgba(145, 70, 255, 0.7);
  color: #fff;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(145, 70, 255, 0.3);
}

.is-live .btn-primary {
  background: linear-gradient(135deg, var(--crimson), #c82333);
  border-color: var(--crimson);
  box-shadow: 0 8px 26px var(--crimson-glow);
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

@media (min-width: 700px) {
  .grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.card h2 {
  font-size: 1.08rem;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: #fff;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.progress-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--crimson), var(--gold));
  border-radius: 999px;
  transition: width 0.4s ease;
}

.challenge-box {
  background: var(--gold-soft);
  border: 1px solid rgba(245, 185, 66, 0.35);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.9rem;
  color: #ffe3a3;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stat {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

.stat-val {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gold);
}

.stat-lbl {
  font-size: 0.78rem;
  color: var(--muted);
}

.clips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .clips-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.clip-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.clip-title {
  font-weight: 600;
  font-size: 0.96rem;
}

.clip-meta {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

.clip-links {
  display: flex;
  gap: 8px;
}

.btn-sm {
  padding: 7px 11px;
  font-size: 0.82rem;
  border-radius: 8px;
}

footer {
  margin-top: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}

footer a {
  color: var(--muted);
  text-decoration: underline;
}

/* Studio mobile controls */
.field {
  margin-bottom: 12px;
}

.field label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 11px;
  font-family: inherit;
  font-size: 0.9rem;
}

.field textarea {
  min-height: 76px;
  resize: vertical;
}

.btn-approve {
  background: rgba(0, 240, 181, 0.16);
  border-color: var(--mint);
  color: var(--mint);
}

.btn-reject {
  background: rgba(255, 70, 85, 0.16);
  border-color: var(--crimson);
  color: #ff9ba3;
}
