/* Palette */
:root{
  --bg-1: #060606;        /* deep black */
  --bg-2: #0f0f12;        /* slightly lighter */
  --card: #0c0c0c;
  --muted: #9aa4c6;
  --text: #f4f6fb;
  --accent: #e50914;      /* big streaming red */
  --accent-2: #ff3b3b;
  --glass: rgba(255,255,255,0.03);
  --border: rgba(255,255,255,0.04);
  --shadow: 0 20px 40px rgba(2,6,23,0.6);
  --radius: 10px;
  --radius-lg: 14px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 18px;
  --space-lg: 28px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Base */
* { box-sizing: border-box; }
html,body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(800px 300px at 10% 5%, rgba(255,10,30,0.03) 0%, transparent 30%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2) 60%);
  color: var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height: 1.4;
}

/* Layout container */
.container { width: min(1200px, 94vw); margin: 0 auto; padding: 26px 0; }

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(6,6,6,0.92), rgba(6,6,6,0.7));
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
header .wrap {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
}
.brand .logo {
  width: 36px;
  height: 36px;
  border-radius:6px;
  background: linear-gradient(180deg,#ff4b4b,#b80e12);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 6px 18px rgba(184,14,18,0.25);
  font-weight:700;
  color:#fff;
  font-size:18px;
  letter-spacing:0.6px;
}
.brand h1 {
  margin: 0;
  font-size:18px;
  font-weight:700;
  color:var(--text);
}
nav { display:flex; gap:10px; align-items:center; }
nav a {
  color:var(--muted);
  text-decoration:none;
  padding:8px 12px;
  border-radius:8px;
  font-weight:600;
  font-size:14px;
}
nav a:hover { color: #fff; background: rgba(255,255,255,0.02); }

/* Search / actions area */
.header-actions { display:flex; gap:12px; align-items:center; }
.header-actions .btn {
  padding:8px 12px;
  border-radius:8px;
  border:1px solid transparent;
  background: linear-gradient(180deg, var(--accent), #c30b12);
  color: #fff;
  font-weight:700;
  cursor:pointer;
}
.header-actions .small { padding:6px 10px; font-weight:600; background:transparent; border:1px solid var(--border); color:var(--muted); }

/* Main section */
main { padding: 18px 0 60px; }

/* "Now Showing" grid */
.section-title { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; gap:12px; }
.section-title h2 { margin:0; font-size:20px; letter-spacing:0.4px; }

/* Movie grid */
.grid {
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}

/* Poster card */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.02));
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .22s cubic-bezier(.2,.9,.2,1), box-shadow .22s;
  display:flex;
  flex-direction:column;
  min-height: 340px;
}
.card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 28px 60px rgba(2,6,23,0.7);
}

/* Poster image */
.poster {
  width:100%;
  height: 300px;
  object-fit:cover;
  display:block;
  border-radius: 8px 8px 0 0;
  filter: saturate(1.05) contrast(1.02);
}

/* Card content */
.card-body {
  padding: 12px 14px;
  display:flex;
  flex-direction:column;
  gap:8px;
  flex:1;
}
.title {
  font-size:15px;
  font-weight:700;
  color:var(--text);
  margin:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.meta { color:var(--muted); font-size:13px; margin-top:2px; }
.synopsis {
  color:var(--muted);
  font-size:13px;
  margin-top:6px;
  line-height:1.35;
  height:40px;
  overflow:hidden;
}

/* Action / buy area */
.card-actions { margin-top:auto; display:flex; gap:10px; align-items:center; }
.btn-buy {
  background: linear-gradient(180deg, var(--accent), #b40a12);
  color:#fff;
  border:0;
  padding:10px 12px;
  font-weight:800;
  border-radius:8px;
  cursor:pointer;
  letter-spacing:0.4px;
  box-shadow: 0 10px 26px rgba(229,9,20,0.16);
}
.btn-buy:hover { transform: translateY(-2px); filter:brightness(1.03); }
.btn-ghost {
  padding:8px 10px;
  background:transparent;
  border-radius:8px;
  border:1px solid rgba(255,255,255,0.03);
  color:var(--muted);
  font-weight:700;
}

/* Polished big red button */
.btn.primary {
  display:inline-block;
  width:100%;
  text-align:center;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color:#fff;
  font-weight:700;
  font-size:15px;
  letter-spacing:0.4px;
  padding:12px 16px;
  border-radius:8px;
  box-shadow: 0 6px 18px rgba(229,9,20,.35);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn.primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 10px 26px rgba(229,9,20,.45);
}

/* Auth card styling */
.auth-card {
  max-width: 420px;
  margin: 60px auto;
  padding: 28px 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.auth-card h2 {
  margin-top: 0;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}
.auth-card form {
  display: grid;
  gap: 14px;
}
.auth-card label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}
.auth-card input {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
}
.auth-card input:focus {
  border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(229,9,20,0.15);
  outline: none;
}
.auth-switch {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
.auth-switch a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.auth-switch a:hover { text-decoration: underline; }


/* HERO (banner) */
.hero{
  position:relative;overflow:hidden;border-radius:14px;margin:18px 0 24px;
  height: min(48vw, 420px); /* responsive hero height */
  background: #090909;border:1px solid var(--border)
}
.hero-bg{
  position:absolute;inset:0;
  background:
    radial-gradient(60% 80% at 10% 10%, rgba(229,9,20,.18), transparent 50%),
    radial-gradient(60% 80% at 90% 0%, rgba(35,211,255,.12), transparent 55%),
    linear-gradient(120deg, #0a0a0a 0%, #121212 100%);
  filter: saturate(1.05) contrast(1.02);
}
.hero-inner{
  position:relative;height:100%;display:flex;align-items:center;
  padding: clamp(18px, 4vw, 36px);
  background-image: url('https://picsum.photos/seed/cinevault-hero/1200/600');
  background-size: cover;background-position: center;mix-blend-mode: lighten;opacity: .9;
}
.hero-copy{
  max-width: 680px;background:linear-gradient(180deg,rgba(0,0,0,.55),rgba(0,0,0,.25));
  padding: clamp(14px, 3vw, 22px);border-radius:12px;border:1px solid rgba(255,255,255,.06)
}
.hero-title{margin:0 0 6px;font-size: clamp(22px, 4vw, 32px);font-weight:800;letter-spacing:.4px}
.hero-tag{margin:0 0 12px;color:var(--muted)}
.hero-btn{
  display:inline-block;padding:12px 16px;border-radius:10px;background:linear-gradient(180deg,var(--accent),#b40a12);
  color:#fff;font-weight:800;box-shadow:0 12px 26px rgba(229,9,20,.32);transition:.18s ease
}
.hero-btn:hover{transform:translateY(-2px);filter:brightness(1.06)}

/* Section spacing */
.section{margin-top: 10px}

/* GRID & CARD SIZING (taller cards) */
.grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap: 22px;
}
.card{
  min-height: 460px; /* increased height */
  display:flex;flex-direction:column;
}
.poster{
  height: 360px; /* taller poster */
  border-radius: 14px 14px 0 0;
}
.card-body{gap:10px}
.synopsis{
  height: 48px; /* slightly more room for text */
}

/* BUY button already sized; ensure it fills comfortably */
.btn-buy{width:120px}

/* “Sign in to buy” (make sure it looks premium) */
.btn.primary{
  padding: 12px 16px;border-radius:10px;font-size:15px;font-weight:800;
  background:linear-gradient(180deg,var(--accent),var(--accent-2));
  box-shadow:0 10px 26px rgba(229,9,20,.35);transition:.18s ease
}
.btn.primary:hover{transform:translateY(-2px);filter:brightness(1.07)}

/* DASHBOARD TICKETS — bigger tiles */
.ticket{
  min-height: 130px; /* taller ticket */
  padding: 18px;
}
.qr{width: 120px;height:120px} /* bigger QR */


.auth-card{max-width:480px;margin:70px auto;padding:32px 34px}
.auth-card h2{font-size:24px}
.auth-card form{gap:16px}

@media (min-width: 1400px){
  .grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
  .poster{height: 380px}
  .card{min-height: 500px}
}

/* Dashboard / ticket card */
.ticket {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:16px;
  border-radius:12px;
  background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border:1px solid rgba(255,255,255,0.03);
}
.ticket .left { display:flex; gap:12px; align-items:center; }
.qr {
  width:100px;
  height:100px;
  border-radius:8px;
  border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}

/* Forms & inputs */
input[type="email"], input[type="password"], input[type="text"], select, textarea {
  width:100%;
  padding:10px 12px;
  border-radius:8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  color: var(--text);
  outline: none;
  transition: box-shadow .12s, border-color .12s;
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(229,9,20,0.7);
  box-shadow: 0 6px 18px rgba(229,9,20,0.06);
}

/* Flashes */
.flashes { list-style:none; padding:0; margin:0 0 16px 0; display:flex; gap:10px; flex-wrap:wrap; }
.flashes li {
  padding:8px 12px;
  border-radius:8px;
  background: rgba(255,255,255,0.02);
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.02);
  font-weight:600;
}

/* Small screens */
@media (max-width:720px) {
  .grid { grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap:12px; }
  .poster { height:220px; }
  .card { min-height: 280px; }
  .brand h1 { display:none; } /* keep header compact */
}

/* Tiny polishing */
.kv code { background: rgba(255,255,255,0.02); padding:4px 8px; border-radius:6px; color:var(--muted); font-size:13px; }
