/* ============================================================
   MOVIEBOARD — Cinematic Dark Theme
   Spotlights · Film Grain · Neon Glow · Glass Cards
   ============================================================ */

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

:root {
  --bg: #06060e;
  --card: #0d0d1a;
  --card-hover: #12122a;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(139,92,246,0.4);
  --text: #e2e8f0;
  --muted: #64748b;
  --dim: #334155;
  --neon-purple: #a855f7;
  --neon-pink: #ec4899;
  --neon-blue: #3b82f6;
  --neon-cyan: #06b6d4;
  --neon-green: #10b981;
  --gold: #fbbf24;
  --radius: 14px;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
::selection { background: var(--neon-purple); color: #fff; }

/* ─── CINEMATIC BACKGROUND ─── */
.cinema-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.spotlight {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  animation: drift 20s ease-in-out infinite;
}
.spotlight-1 { width: 600px; height: 600px; background: var(--neon-purple); top: -200px; left: -100px; }
.spotlight-2 { width: 500px; height: 500px; background: var(--neon-pink); bottom: -150px; right: -100px; animation-delay: -7s; }
.spotlight-3 { width: 400px; height: 400px; background: var(--neon-blue); top: 40%; left: 50%; animation-delay: -14s; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(60px, -40px) scale(1.1); }
  50% { transform: translate(-30px, 50px) scale(0.95); }
  75% { transform: translate(40px, 20px) scale(1.05); }
}

.film-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  opacity: 0.4;
}

.stars {
  position: absolute;
  inset: 0;
}

.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: twinkle linear infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.8; }
}

/* Floating emojis */
.floating-elements { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.float-emoji {
  position: absolute;
  font-size: 28px;
  opacity: 0.08;
  animation: floatAround 25s ease-in-out infinite;
}
@keyframes floatAround {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-30px) rotate(10deg); }
  50% { transform: translateY(10px) rotate(-5deg); }
  75% { transform: translateY(-15px) rotate(8deg); }
}

/* Confetti */
#confetti-canvas { position: fixed; inset: 0; z-index: 9999; pointer-events: none; }

/* ─── NAVBAR ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 6, 14, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand { display: flex; align-items: center; gap: 12px; }

.brand-logo {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900; color: #fff;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.brand-main { font-size: 18px; font-weight: 800; display: block; }
.brand-tag { font-size: 11px; color: var(--muted); font-weight: 500; display: block; margin-top: -2px; }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.search-bar {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  transition: all 0.3s;
}
.search-bar:focus-within { border-color: var(--neon-purple); box-shadow: 0 0 20px rgba(168,85,247,0.1); }
.search-icon { font-size: 14px; }
.search-bar input {
  background: none; border: none; color: var(--text); font-family: inherit; font-size: 13px; outline: none; width: 180px;
}
.search-bar input::placeholder { color: var(--dim); }

.search-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s;
}
.search-toggle-btn:hover { border-color: var(--neon-purple); background: rgba(168,85,247,0.08); }

/* ─── NEON BUTTON ─── */
.btn-neon {
  position: relative;
  display: inline-flex; align-items: center;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  border: none; border-radius: 10px;
  cursor: pointer; overflow: hidden;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-neon-text { position: relative; z-index: 1; font-size: 13px; font-weight: 700; color: #fff; font-family: inherit; }
.btn-neon-glow {
  position: absolute; inset: -2px;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  border-radius: 12px;
  filter: blur(12px);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
}
.btn-neon:hover .btn-neon-glow { opacity: 0.6; }
.btn-neon:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(168,85,247,0.4); }
.btn-neon:active { transform: translateY(0); }

.btn-glass {
  padding: 10px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px; font-weight: 600; font-family: inherit;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255,255,255,0.1); transform: translateY(-1px); }

/* ─── HERO ─── */
.hero {
  position: relative; z-index: 1;
  text-align: center;
  padding: 60px 24px 24px;
  animation: fadeUp 0.9s ease-out;
}

.hero-badge {
  display: inline-block;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251,191,36,0.2); }
  50% { box-shadow: 0 0 0 8px rgba(251,191,36,0); }
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-line-1 {
  display: block;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 600;
  color: rgba(255,255,255,0.6);
}

.hero-line-2 {
  display: block;
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 900;
  background: linear-gradient(135deg, #fff 0%, var(--neon-purple) 40%, var(--neon-pink) 70%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 300% 300%;
  animation: shimmerText 6s ease infinite;
}

@keyframes shimmerText {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.cursor-blink {
  -webkit-text-fill-color: var(--neon-pink);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 32px;
  backdrop-filter: blur(10px);
}

.stat { text-align: center; }
.stat-num { display: block; font-size: 28px; font-weight: 800; font-family: 'Space Grotesk', monospace; }
.stat-label { font-size: 11px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* ─── GENRE STRIP ─── */
.genre-strip {
  position: relative; z-index: 1;
  display: flex;
  gap: 8px;
  padding: 16px 28px;
  max-width: 1300px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.genre-strip::-webkit-scrollbar { display: none; }

.genre-chip {
  flex-shrink: 0;
  padding: 8px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.genre-chip:hover { border-color: var(--neon-purple); color: var(--text); background: rgba(168,85,247,0.08); }
.genre-chip.active {
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 20px rgba(168,85,247,0.3);
}

/* ─── SORT BAR ─── */
.sort-bar {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1300px; margin: 0 auto;
  padding: 8px 28px 16px;
}

.sort-tabs { display: flex; gap: 4px; }

.sort-tab {
  padding: 8px 18px;
  background: none;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s;
}

.sort-tab:hover { color: var(--text); }
.sort-tab.active { background: rgba(255,255,255,0.06); border-color: var(--border); color: var(--text); }

.movie-count { font-size: 13px; color: var(--dim); font-weight: 500; }

/* ─── CARD GRID ─── */
.card-grid {
  position: relative; z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 28px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

/* ─── MOVIE CARD ─── */
.movie-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: cardIn 0.5s ease-out both;
}

.movie-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(168, 85, 247, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Card top gradient bar */
.card-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-pink), var(--gold));
  background-size: 200% 100%;
  animation: gradientSlide 3s linear infinite;
}

@keyframes gradientSlide {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* Poster thumbnail */
.card-poster-wrap {
  width: 100%;
  height: 160px;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
  position: relative;
}
.card-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-poster-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--dim);
  background: linear-gradient(135deg, rgba(168,85,247,0.06), rgba(236,72,153,0.06));
}

.card-body { padding: 22px 24px; position: relative; }

.card-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.card-genres .genre-badge { margin-bottom: 0; }

/* Rank number */
.card-rank {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 48px;
  font-weight: 900;
  font-family: 'Space Grotesk', monospace;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
}

/* Delete button (only shown to the original submitter) */
.delete-btn {
  position: absolute;
  top: 16px;
  left: 24px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 8px;
  color: #f87171;
  font-size: 13px;
  line-height: 1;
  padding: 6px 9px;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 1;
}
.delete-btn:hover { background: rgba(239,68,68,0.2); transform: translateY(-1px); }
.delete-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Genre badges */
.genre-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.genre-Action      { background: rgba(239,68,68,0.12); color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.genre-Comedy      { background: rgba(250,204,21,0.12); color: #facc15; border: 1px solid rgba(250,204,21,0.2); }
.genre-Drama       { background: rgba(96,165,250,0.12); color: #60a5fa; border: 1px solid rgba(96,165,250,0.2); }
.genre-Horror      { background: rgba(168,85,247,0.12); color: #a855f7; border: 1px solid rgba(168,85,247,0.2); }
.genre-Sci-Fi      { background: rgba(6,182,212,0.12); color: #22d3ee; border: 1px solid rgba(6,182,212,0.2); }
.genre-Documentary { background: rgba(16,185,129,0.12); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.genre-Thriller    { background: rgba(236,72,153,0.12); color: #f472b6; border: 1px solid rgba(236,72,153,0.2); }
.genre-Romance     { background: rgba(251,113,133,0.12); color: #fb7185; border: 1px solid rgba(251,113,133,0.2); }
.genre-Animation   { background: rgba(251,146,60,0.12); color: #fb923c; border: 1px solid rgba(251,146,60,0.2); }

.card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-pitch {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 10px;
}

.card-time {
  display: block;
  font-size: 11px;
  color: var(--dim);
  font-family: 'Space Grotesk', monospace;
  margin-bottom: 8px;
}

/* ─── VOTE SECTION ─── */
.card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border);
}

.card-footer.already-voted { opacity: 0.9; }

.vote-btn {
  position: relative;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.03);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--dim);
  font-size: 13px;
  font-weight: 700;
  font-family: 'Space Grotesk', monospace;
  cursor: pointer;
  transition: all 0.3s;
  overflow: hidden;
}

.vote-arrow { font-size: 14px; transition: transform 0.3s, filter 0.3s; }

.vote-btn.upvote:hover, .vote-btn.upvote.clicked {
  border-color: var(--neon-green);
  color: var(--neon-green);
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}
.vote-btn.upvote:hover .vote-arrow { transform: translateY(-3px) scale(1.3); }

.vote-btn.downvote:hover, .vote-btn.downvote.clicked {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.15);
}
.vote-btn.downvote:hover .vote-arrow { transform: translateY(3px) scale(1.3); }

.vote-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.vote-btn:disabled:hover { transform: none; box-shadow: none; }

.vote-btn .ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

.vote-count { min-width: 20px; text-align: center; transition: all 0.3s; }
.vote-count.bump { animation: countBump 0.4s ease; }
@keyframes countBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.6); color: #fff; }
  100% { transform: scale(1); }
}

.net-score {
  margin-left: auto;
  font-size: 14px;
  font-weight: 800;
  font-family: 'Space Grotesk', monospace;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
}
.net-score.positive { color: var(--neon-green); }
.net-score.negative { color: #ef4444; }
.net-score.zero { color: var(--dim); }

/* ─── SKELETON ─── */
.skeleton-card {
  background: var(--card);
  border-radius: 18px;
  padding: 28px 24px;
  border: 1px solid var(--border);
}
.sk-rank, .sk-badge, .sk-title, .sk-text, .sk-footer {
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
}
.sk-rank { width: 32px; height: 32px; float: right; margin-bottom: 8px; border-radius: 8px; }
.sk-badge { width: 80px; height: 22px; margin-bottom: 14px; border-radius: 99px; }
.sk-title { width: 65%; height: 22px; margin-bottom: 12px; }
.sk-text { width: 100%; height: 12px; margin-bottom: 8px; }
.sk-text.short { width: 50%; }
.sk-footer { width: 160px; height: 34px; margin-top: 16px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ─── EMPTY / ERROR ─── */
.empty-state, .error-state {
  position: relative; z-index: 1;
  text-align: center;
  padding: 80px 24px;
  animation: fadeUp 0.6s ease-out;
}
.empty-visual {
  font-size: 72px;
  margin-bottom: 16px;
  animation: floatAround 4s ease-in-out infinite;
}
.empty-state h2, .error-state h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.empty-state p, .error-state p { color: var(--muted); margin-bottom: 24px; }

/* ─── PAGINATION ─── */
.pagination {
  position: relative; z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 28px 60px;
}
.page-btn {
  padding: 8px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s;
}
.page-btn:hover:not(:disabled) { border-color: var(--neon-purple); background: rgba(168,85,247,0.08); }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.page-indicator { font-size: 13px; color: var(--muted); font-weight: 500; font-family: 'Space Grotesk', monospace; }

/* ─── TOAST ─── */
.toast {
  position: fixed;
  bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 14px; font-weight: 600;
  color: #fff;
  display: flex; align-items: center; gap: 10px;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 200;
  pointer-events: none;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: rgba(16, 185, 129, 0.85); }
.toast.error { background: rgba(239, 68, 68, 0.85); }

/* ─── SUBMIT PAGE ─── */
.submit-wrapper {
  position: relative; z-index: 1;
  display: flex; justify-content: center;
  padding: 32px 24px 60px;
}

.submit-card {
  width: 100%;
  max-width: 520px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.animate-up { animation: fadeUp 0.6s ease-out; }

/* Ticket Header */
.ticket-header {
  background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(236,72,153,0.1));
  padding: 28px 32px 24px;
  border-bottom: 2px dashed var(--border);
  position: relative;
}

.ticket-holes {
  position: absolute;
  bottom: -7px;
  left: 0; right: 0;
  display: flex;
  justify-content: space-evenly;
}
.ticket-holes span {
  width: 12px; height: 12px;
  background: var(--bg);
  border-radius: 50%;
}

.ticket-title { display: flex; align-items: center; gap: 16px; }
.ticket-icon { font-size: 42px; }
.ticket-title h1 { font-size: 22px; font-weight: 800; }
.ticket-title p { font-size: 13px; color: var(--muted); margin-top: 2px; }

form { padding: 28px 32px 32px; }

.field { margin-bottom: 22px; position: relative; }
.field label,
.field-label-text {
  display: block;
  font-size: 13px; font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.optional-tag { color: var(--dim); font-weight: 400; }

.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s;
  outline: none;
}
.field input:focus, .field textarea:focus {
  border-color: var(--neon-purple);
  box-shadow: 0 0 0 4px rgba(168,85,247,0.1);
}
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field textarea { resize: vertical; min-height: 100px; }

.field-line {
  position: absolute;
  bottom: 22px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-pink));
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}
.field input:focus ~ .field-line, .field textarea:focus ~ .field-line { width: 100%; }

.field-meta { display: flex; justify-content: space-between; margin-top: 4px; }
.char-count { font-size: 11px; color: var(--dim); font-family: 'Space Grotesk', monospace; }
.char-count.warn { color: var(--gold); }
.char-count.over { color: #ef4444; }

.error-msg { color: #ef4444; font-size: 12px; animation: shake 0.3s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Genre Picker */
.genre-picker {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.gpick {
  padding: 8px 14px;
  background: rgba(255,255,255,0.03);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  color: var(--muted);
  font-size: 12px; font-weight: 600; font-family: inherit;
  cursor: pointer;
  transition: all 0.3s;
}
.gpick:hover { border-color: var(--neon-purple); color: var(--text); }
.gpick.selected {
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 15px rgba(168,85,247,0.3);
}
.gpick:disabled { opacity: 0.35; cursor: not-allowed; }

/* Preview */
.preview-wrap { margin-bottom: 24px; animation: fadeUp 0.3s ease; }
.preview-label { font-size: 11px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.preview-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  overflow: hidden;
}
.preview-poster {
  margin: -18px -18px 14px;
  height: 140px;
  overflow: hidden;
}
.preview-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.preview-genres { display: flex; flex-wrap: wrap; gap: 6px; }
.preview-genres .genre-badge { margin-bottom: 0; }
.preview-title { font-size: 16px; font-weight: 700; margin: 8px 0 4px; }
.preview-pitch { font-size: 13px; color: var(--muted); line-height: 1.5; }
.preview-footer { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--dim); font-family: 'Space Grotesk', monospace; }

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: 16px; font-weight: 700; font-family: inherit;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(168,85,247,0.3);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(168,85,247,0.5); }
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-message { text-align: center; margin-top: 14px; font-size: 14px; font-weight: 600; }
.form-message.success { color: var(--neon-green); }
.form-message.error { color: #ef4444; }

/* Success Overlay */
.success-overlay {
  position: fixed; inset: 0;
  background: rgba(6, 6, 14, 0.95);
  backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  z-index: 300;
  animation: fadeIn 0.4s ease;
}
.success-content { text-align: center; animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.success-emoji { font-size: 80px; margin-bottom: 16px; animation: floatAround 2s ease-in-out infinite; }
.success-content h2 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.success-content p { color: var(--muted); font-size: 16px; }
.success-redirect { color: var(--neon-purple); font-size: 14px; margin-top: 16px; font-weight: 600; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-inner { padding: 10px 16px; }
  .search-toggle-btn { display: inline-flex; }
  .search-bar { display: none; }
  .search-bar.mobile-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 12px 16px;
    background: rgba(6, 6, 14, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .search-bar.mobile-open input { flex: 1; width: auto; }
  .hero { padding: 40px 16px 16px; }
  .hero-stats { flex-direction: column; gap: 12px; }
  .stat-divider { width: 60px; height: 1px; }
  .genre-strip { padding: 12px 16px; }
  .card-grid { grid-template-columns: 1fr; padding: 0 16px 40px; }
  .sort-bar { padding: 8px 16px; }
  .pagination { padding: 0 16px 40px; }
  form { padding: 24px 20px 28px; }
  .ticket-header { padding: 20px; }
}
