/* ─────────────────────────────────────────────────────────────
   CINECLUB — "sala oscura"
   Negro cálido de sala, ámbar de marquesina, rojo de butaca.
   Display: Big Shoulders (cartel/marquesina) · Serif: Instrument Serif (intertítulos)
   UI: Inter Tight
   ───────────────────────────────────────────────────────────── */

:root {
  --bg: #0b0a09;
  --bg-2: #110f0d;
  --surface: #171412;
  --surface-2: #201c19;
  --surface-3: #2a2521;
  --line: #2e2824;
  --line-2: #3d3631;
  --text: #f3ebdd;
  --muted: #a89c8a;
  --dim: #6f665a;
  --amber: #f5b841;
  --amber-2: #ffd27a;
  --amber-glow: rgba(245, 184, 65, 0.35);
  --red: #e2412f;
  --ok: #8fcf8a;

  --font-display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-ui: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --topbar: 60px;
  --tabbar: 0px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Viñeta de sala */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, transparent 55%, rgba(0,0,0,.55) 100%);
  z-index: 0;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

/* Grano de película */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 200;
  opacity: .075;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain .9s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ───────────── Tipografía ───────────── */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: .005em;
  margin: 0;
}
.display em, .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.display em { color: var(--amber); }
.kicker {
  font: 600 12px/1.2 var(--font-ui);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 10px;
}
.muted { color: var(--muted); }
.dim { color: var(--dim); }

/* ───────────── Barra superior ───────────── */
.topbar {
  position: sticky; top: 0;
  z-index: 50;
  height: var(--topbar);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  background: rgba(11, 10, 9, .78);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.logo { text-decoration: none; display: inline-flex; flex-direction: column; gap: 3px; }
.logo-word {
  font: 900 26px/1 var(--font-display);
  text-transform: uppercase;
  letter-spacing: .08em;
}
/* Las lamparitas de la marquesina */
.logo-bulbs {
  height: 4px;
  background: radial-gradient(circle, var(--amber) 1.4px, transparent 1.8px) 0 50% / 8px 4px repeat-x;
  animation: bulbs 2.4s steps(2) infinite;
}
@keyframes bulbs { 50% { background-position: 4px 50%; } }

.topnav { display: flex; gap: 6px; }
.topnav a {
  position: relative;
  text-decoration: none;
  font-weight: 600; font-size: 14px;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.topnav a:hover { color: var(--text); }
.topnav a.active { color: var(--bg); background: var(--amber); }
.badge {
  display: inline-grid; place-items: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px;
  background: var(--red); color: #fff;
  font: 700 11px/1 var(--font-ui);
  vertical-align: 1px;
  margin-left: 4px;
}

.tabbar { display: none; }

.verify-bar {
  position: sticky; top: var(--topbar); z-index: 45;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px;
  padding: 10px var(--gutter);
  background: #2a2008; border-bottom: 1px solid rgba(245,184,65,.35);
  font-size: 14px; color: #f3e3bd; text-align: center;
}
.verify-bar b { color: var(--amber); }
body.logged-out .topnav, body.logged-out .tabbar { display: none !important; }

@media (max-width: 760px) {
  :root { --tabbar: 64px; }
  .topnav { display: none; }
  .topbar { justify-content: center; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 50;
    height: calc(var(--tabbar) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(11, 10, 9, .92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .tabbar a {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    text-decoration: none; color: var(--dim);
    font-size: 11px; font-weight: 600;
  }
  .tabbar a.active { color: var(--amber); }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar .badge { position: absolute; top: 8px; left: calc(50% + 6px); margin: 0; }
  body.logged-out { --tabbar: 0px; }
}

main { position: relative; z-index: 1; padding-bottom: calc(var(--tabbar) + 40px); outline: none; }
.page { max-width: var(--maxw); margin: 0 auto; padding: 36px var(--gutter) 0; }
.page-head { margin-bottom: 28px; }
.page-head .display { font-size: clamp(44px, 8vw, 88px); }
.page-head .sub { color: var(--muted); margin: 12px 0 0; max-width: 60ch; }

/* ───────────── Botones ───────────── */
.btn {
  --b: var(--amber);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 0; border-radius: 999px;
  background: var(--b); color: #1a1408;
  font: 800 16px/1 var(--font-display);
  letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn:hover { box-shadow: 0 0 0 4px var(--amber-glow), 0 8px 30px -8px var(--amber-glow); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; cursor: progress; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--amber); color: var(--amber); }
.btn-ok { --b: var(--ok); color: #0d1a0c; }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.link-sm {
  font-size: 13px; color: var(--muted);
  text-decoration: none; border-bottom: 1px solid var(--line-2);
  background: none; border-top: 0; border-left: 0; border-right: 0; padding: 0; cursor: pointer;
}
.link-sm:hover { color: var(--amber); border-color: var(--amber); }

/* ───────────── Formularios ───────────── */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input, .textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus, .textarea:focus { border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-glow); }
.textarea { resize: vertical; min-height: 80px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 6px 0 18px; }
.check input { accent-color: var(--amber); width: 18px; height: 18px; margin-top: 1px; }
.form-error { color: #ff8d7f; font-size: 14px; min-height: 20px; margin: 0 0 10px; }

/* ───────────── Portada ───────────── */
.landing {
  position: relative;
  min-height: calc(100dvh - var(--topbar));
  display: grid; align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.landing-bg { position: absolute; inset: 0; z-index: -1; display: grid; grid-template-columns: repeat(3, 1fr); }
.landing-bg div {
  background-size: cover; background-position: center;
  filter: grayscale(.6) contrast(1.1) brightness(.45);
  animation: kenburns 26s ease-in-out infinite alternate;
}
.landing-bg div:nth-child(2) { animation-delay: -8s; }
.landing-bg div:nth-child(3) { animation-delay: -16s; }
@keyframes kenburns { from { transform: scale(1.05); } to { transform: scale(1.18) translate(-2%, 1%); } }
.landing::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(11,10,9,.88) 45%, rgba(11,10,9,.35) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 40%);
}
.landing-inner {
  max-width: var(--maxw); width: 100%; margin: 0 auto;
  padding: 48px var(--gutter);
  display: grid; grid-template-columns: 1.2fr .9fr; gap: clamp(28px, 6vw, 80px); align-items: center;
}
.landing h1 { font-size: clamp(56px, 10vw, 128px); }
.landing .lede { font-size: clamp(17px, 1.6vw, 20px); color: #d8cdbb; max-width: 46ch; margin: 22px 0 0; }
.landing .lede b { color: var(--amber); font-weight: 600; }

.auth-card {
  background: rgba(23, 20, 18, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8);
}
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-2); border-radius: 999px; padding: 4px; margin-bottom: 20px; }
.tabs button {
  border: 0; background: none; border-radius: 999px; padding: 9px; cursor: pointer;
  font: 800 15px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.tabs button.on { background: var(--surface-3); color: var(--text); }

.how { max-width: var(--maxw); margin: 0 auto; padding: 70px var(--gutter) 30px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
/* Cada paso es un fotograma de una tira de película */
.frame {
  position: relative;
  background: var(--surface);
  border-radius: var(--r);
  padding: 34px 22px 26px;
  border: 1px solid var(--line);
}
.frame::before, .frame::after {
  content: ''; position: absolute; left: 14px; right: 14px; height: 8px;
  background: radial-gradient(circle at 4px 4px, var(--bg) 2.6px, transparent 3px) 0 0 / 16px 8px repeat-x;
}
.frame::before { top: 10px; }
.frame::after { bottom: 10px; }
.frame-num { font: 900 54px/1 var(--font-display); color: var(--amber); }
.frame h3 { font: 800 24px/1.05 var(--font-display); text-transform: uppercase; margin: 10px 0 8px; letter-spacing: .02em; }
.frame p { margin: 0; color: var(--muted); font-size: 15px; }

@media (max-width: 860px) {
  .landing-inner { grid-template-columns: 1fr; }
  .landing-bg { grid-template-columns: 1fr; }
  .landing-bg div:not(:first-child) { display: none; }
  .landing::after { background: linear-gradient(0deg, var(--bg) 20%, rgba(11,10,9,.8) 60%, rgba(11,10,9,.55) 100%); }
  .how-grid { grid-template-columns: 1fr; }
}

/* ───────────── Cartelera ───────────── */
.daystrip {
  display: flex; gap: 10px;
  overflow-x: auto; scrollbar-width: none;
  padding: 4px 2px 14px;
  margin: 0 calc(var(--gutter) * -1) 8px;
  padding-left: var(--gutter); padding-right: var(--gutter);
  scroll-snap-type: x proximity;
}
.daystrip::-webkit-scrollbar { display: none; }
/* Cada día es una entrada de cine con muescas a los costados */
.daytab {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-width: 78px;
  padding: 10px 14px 9px;
  text-align: center; text-decoration: none;
  background: var(--surface);
  color: var(--muted);
  border-radius: 10px;
  -webkit-mask: radial-gradient(circle at 0 50%, transparent 6px, #000 6.5px) left / 51% 100% no-repeat,
                radial-gradient(circle at 100% 50%, transparent 6px, #000 6.5px) right / 51% 100% no-repeat;
          mask: radial-gradient(circle at 0 50%, transparent 6px, #000 6.5px) left / 51% 100% no-repeat,
                radial-gradient(circle at 100% 50%, transparent 6px, #000 6.5px) right / 51% 100% no-repeat;
  transition: background .2s, color .2s;
}
.daytab:hover { background: var(--surface-2); color: var(--text); }
.daytab .wd { display: block; font: 700 11px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; }
.daytab .num { display: block; font: 900 30px/1 var(--font-display); margin-top: 4px; color: var(--text); }
.daytab.wide .num { font-size: 18px; padding: 6px 0 4px; letter-spacing: .06em; text-transform: uppercase; }
.daytab.on { background: var(--amber); color: #3b2a07; }
.daytab.on .num { color: #1a1408; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip {
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: none; color: var(--muted);
  font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.chip.on, .chip:hover { border-color: var(--amber); color: var(--amber); }

.status-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); margin: 0 0 18px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(143, 207, 138, .15); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 26px 22px; }
.filmcard { text-decoration: none; display: block; }
.still {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface-2);
}
.still img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.75) contrast(1.05);
  transform: scale(1.01);
  transition: transform .6s var(--ease), filter .4s;
}
.still::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11,10,9,.75), transparent 55%);
}
.filmcard:hover .still img { transform: scale(1.06); filter: saturate(1) contrast(1.05); }
.still-fallback {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center;
  font: 900 28px/1 var(--font-display); text-transform: uppercase; color: var(--dim);
  background: repeating-linear-gradient(135deg, var(--surface-2) 0 14px, var(--surface) 14px 28px);
}
.people {
  position: absolute; left: 12px; bottom: 12px; z-index: 1;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px 5px 9px; border-radius: 999px;
  background: rgba(11,10,9,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 12px; font-weight: 600; color: var(--text);
}
.people.hot { background: var(--amber); color: #1a1408; }
.people i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.people.hot i { animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.filmcard h3 {
  font: 800 25px/1 var(--font-display); text-transform: uppercase; letter-spacing: .01em;
  margin: 14px 0 4px;
  transition: color .2s;
}
.filmcard:hover h3 { color: var(--amber); }
.filmcard .by { font-family: var(--font-serif); font-style: italic; font-size: 17px; color: var(--muted); margin: 0; }
.filmcard .next { font-size: 13px; color: var(--dim); margin: 6px 0 0; }

.empty {
  text-align: center; padding: 60px 20px;
  border: 1px dashed var(--line-2); border-radius: var(--r-lg);
}
.empty .display { font-size: 40px; margin-bottom: 10px; }
.empty p { color: var(--muted); max-width: 44ch; margin: 0 auto 20px; }

/* ───────────── Película ───────────── */
.hero {
  position: relative;
  height: clamp(320px, 62vh, 620px);
  overflow: hidden;
  isolation: isolate;
  display: flex; align-items: flex-end;
}
.hero-img { position: absolute; inset: 0; z-index: -2; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); animation: kenburns 30s ease-in-out infinite alternate; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, var(--bg) 2%, rgba(11,10,9,.55) 45%, rgba(11,10,9,.15) 100%);
}
/* Franjas de "letterbox" que se cierran al entrar */
.hero .bar { position: absolute; left: 0; right: 0; height: 9%; background: #000; z-index: 0; animation: bar .9s var(--ease) both; }
.hero .bar.top { top: 0; }
.hero .bar.bottom { bottom: 0; height: 0; }
@keyframes bar { from { height: 0; } }
.hero-inner { max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 0 var(--gutter) 34px; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(48px, 9vw, 112px); max-width: 16ch; text-shadow: 0 4px 40px rgba(0,0,0,.5); }
.hero .orig { font-family: var(--font-serif); font-style: italic; font-size: clamp(20px, 2.4vw, 28px); color: #ddd2c0; margin: 8px 0 0; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; color: var(--muted); font-size: 14px; }
.meta span + span::before { content: '·'; margin-right: 16px; color: var(--dim); }
.back {
  position: absolute; top: 18px; left: var(--gutter); z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px 8px 10px; border-radius: 999px;
  background: rgba(11,10,9,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  text-decoration: none; font-size: 13px; font-weight: 600;
}
.back svg, .ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.film-body { max-width: var(--maxw); margin: 0 auto; padding: 26px var(--gutter) 0; display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(26px, 5vw, 64px); }
.synopsis { font-size: 16.5px; line-height: 1.65; color: #d8cdbb; white-space: pre-line; }
.synopsis.clamp { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.section-title { font: 800 30px/1 var(--font-display); text-transform: uppercase; margin: 0 0 6px; letter-spacing: .02em; }
.rule-note { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.rule-note b { color: var(--amber); }
.day-label {
  display: flex; align-items: center; gap: 12px;
  font: 700 12px/1 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  margin: 26px 0 12px;
}
.day-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }
#funciones .day-label { margin-top: 22px; }
#film-cinemas { margin-bottom: 0; }

.funcion {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-bottom: 10px;
  transition: border-color .2s, background .2s;
}
.funcion:hover { border-color: var(--line-2); }
.funcion.mine { border-color: rgba(245,184,65,.5); background: linear-gradient(90deg, rgba(245,184,65,.07), var(--surface) 60%); }
.funcion.grouped { border-color: rgba(143,207,138,.5); background: linear-gradient(90deg, rgba(143,207,138,.08), var(--surface) 60%); }
.f-time { font: 900 40px/1 var(--font-display); letter-spacing: .02em; min-width: 82px; }
.f-cine { font-weight: 600; font-size: 15px; }
.f-state { font-size: 13px; color: var(--muted); margin-top: 6px; }
.f-state b { color: var(--amber); font-weight: 600; }
.grouped .f-state b { color: var(--ok); }
.f-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.f-links { display: flex; gap: 12px; align-items: center; }

/* La fila de butacas: el corazón visual de CineClub */
.seats { display: flex; gap: 5px; margin-top: 8px; flex-wrap: wrap; }
.seat { width: 22px; height: 20px; color: #4a423b; transition: color .4s var(--ease), transform .4s var(--ease); }
.seat svg { width: 100%; height: 100%; fill: currentColor; }
.seat.on { color: var(--amber); }
/* Butacas 4 y 5: lugares extra, opcionales */
.seat.opt:not(.on) { color: #332d28; }
.seat:not(.opt) + .seat.opt { margin-left: 8px; }
.seat.me { color: var(--amber-2); filter: drop-shadow(0 0 6px var(--amber-glow)); }
.grouped .seat.on, .grouped .seat.me { color: var(--ok); filter: none; }
.seat.pop { animation: seatpop .5s var(--ease); }
@keyframes seatpop { 0% { transform: translateY(6px) scale(.7); } 60% { transform: translateY(-3px) scale(1.12); } }

@media (max-width: 900px) {
  .film-body { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .funcion { grid-template-columns: auto 1fr; gap: 12px 14px; padding: 14px; }
  .f-time { font-size: 34px; min-width: 0; }
  .f-actions { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ───────────── Seguridad, perfil y Letterboxd ───────────── */
.verify-bar.danger { background: #2a0f0b; border-bottom-color: rgba(226,65,47,.5); color: #f6d2cc; }
.verify-bar.danger b { color: #ff8d7f; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
input[type=date].input { color-scheme: dark; }
.check a { color: var(--amber); }

.modal-wrap { position: fixed; inset: 0; z-index: 160; background: rgba(0,0,0,.65); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; animation: fadein .2s; }
@keyframes fadein { from { opacity: 0; } }
.modal { width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: 0 40px 90px -20px #000; animation: toastin .25s var(--ease); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 6px; }
.modal-head h3 { font: 800 24px/1 var(--font-display); text-transform: uppercase; margin: 0; }
.modal-body { padding: 8px 20px 20px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.rules { padding-left: 20px; margin: 0; display: grid; gap: 10px; color: #d8cdbb; }
.rules b { color: var(--text); }
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row .input { flex: 1; }

.favs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; max-width: 240px; }
.fav { aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; background: var(--surface-3); display: grid; place-items: center; }
.fav img { width: 100%; height: 100%; object-fit: cover; }
.fav span { font: 700 9px/1.15 var(--font-ui); padding: 4px; text-align: center; color: var(--muted); }
.lb-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none; }
.lb-link:hover { color: var(--amber); }
.lb-link .ico { width: 22px; height: 14px; }
.member .grow { flex: 1; min-width: 0; }
.member-actions { display: flex; gap: 14px; margin-top: 8px; }

.fav-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 360px; }
.fav-slot { position: relative; aspect-ratio: 2 / 3; border-radius: 8px; border: 1.5px dashed var(--line-2); background: var(--bg-2); color: var(--dim); font-size: 24px; display: grid; place-items: center; cursor: pointer; overflow: hidden; padding: 0; }
.fav-slot:hover { border-color: var(--amber); color: var(--amber); }
.fav-slot.filled { border: 0; cursor: default; background: var(--surface-3); }
.fav-slot.filled img { width: 100%; height: 100%; object-fit: cover; }
.fav-slot.filled span { font: 700 11px/1.15 var(--font-ui); padding: 6px; text-align: center; color: var(--text); }
.fav-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.fav-x .ico { width: 12px; height: 12px; }
.fav-results { display: grid; gap: 6px; margin-top: 12px; max-height: 50vh; overflow-y: auto; }
.fav-result { display: flex; align-items: center; gap: 12px; text-align: left; border: 0; background: var(--bg-2); color: inherit; padding: 8px; border-radius: 10px; cursor: pointer; }
.fav-result:hover { background: var(--surface-2); }
.fav-result img, .fav-result .ph { width: 36px; height: 54px; object-fit: cover; border-radius: 4px; background: var(--surface-3); flex: none; display: grid; place-items: center; color: var(--amber); }
.block-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.block-row .grow { flex: 1; }
.admin-link { display: block; text-decoration: none; border-color: rgba(199,146,234,.4); margin-bottom: 18px; }
.admin-link:hover { border-color: #c792ea; }

.safety-box { margin-top: 18px; padding: 16px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); }
.safety-box h4 { margin: 0 0 8px; font: 800 18px/1 var(--font-display); text-transform: uppercase; }
.safety-box ul { margin: 0 0 12px; padding-left: 18px; font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.safety-box b { color: var(--text); }
.safety-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.checkin { align-self: stretch; margin: 6px 0 18px; padding: 18px; border-radius: var(--r); background: linear-gradient(135deg, rgba(199,146,234,.12), var(--surface) 60%); border: 1px solid rgba(199,146,234,.35); }
.checkin h3 { font: 900 28px/1 var(--font-display); text-transform: uppercase; margin: 0 0 6px; }
.ci-q { margin: 14px 0; display: grid; gap: 8px; font-size: 14px; }
.ci-people { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ci-people .check { margin: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { border: 1px solid var(--line-2); background: var(--bg-2); color: var(--muted); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 600; font-size: 14px; }
.seg button.on { background: var(--amber); border-color: var(--amber); color: #1a1408; }
.checkin .textarea { min-height: 60px; margin-bottom: 12px; }

.mod-card { margin-bottom: 16px; }
.mod-head { display: flex; gap: 14px; align-items: center; }
.mod-card h4 { margin: 16px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.mod-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; }
.msgs-ev li { color: #d8cdbb; }

/* ───────────── Diario de cine: estrellas, reseñas, perfil ───────────── */
.stars { color: var(--amber); letter-spacing: 1px; font-size: 15px; white-space: nowrap; }
.stars.sm { font-size: 11px; letter-spacing: 0; }
.heart { color: #ff6b81; }
.star-input { display: inline-flex; gap: 2px; }
.si-star { position: relative; width: 30px; height: 30px; font-size: 30px; line-height: 30px; color: #3d3631; }
.si-star::before { content: '★'; position: absolute; inset: 0; }
.si-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: var(--amber); white-space: nowrap; transition: width .1s; }
.si-half { position: absolute; top: 0; bottom: 0; width: 50%; border: 0; background: none; padding: 0; cursor: pointer; z-index: 1; }
.si-half.l { left: 0; } .si-half.r { right: 0; }
.si-half:focus-visible { outline: 2px solid var(--amber); }

.diary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.diary-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pill { border: 1px solid var(--line-2); background: var(--bg-2); color: var(--muted); border-radius: 999px; padding: 7px 13px; font-weight: 600; font-size: 13px; cursor: pointer; }
.pill.on { border-color: var(--amber); color: var(--amber); }
#my-like.on { border-color: #ff6b81; color: #ff6b81; }
.film-stats { margin-top: 14px; }
.hist { display: flex; align-items: flex-end; gap: 3px; height: 44px; }
.hist span { flex: 1; background: var(--surface-3); border-radius: 2px 2px 0 0; }
.avg-chip { color: var(--amber) !important; font-weight: 700; }

.reviews-sec { max-width: var(--maxw); margin: 40px auto 0; padding: 0 var(--gutter); }
.rv-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.review { padding: 18px 0; border-top: 1px solid var(--line); }
.rv-head { display: flex; gap: 12px; align-items: flex-start; }
.rv-head .av, .comment .av { text-decoration: none; }
.rv-name { font-weight: 700; text-decoration: none; margin-right: 8px; }
.rv-name:hover { color: var(--amber); }
.rv-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.rv-ctx { font-size: 12px; color: var(--muted); }
.rv-body { position: relative; margin: 10px 0 0 44px; }
.rv-body p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #e6dccb; line-height: 1.6; }
.has-spoiler:not(.revealed) .rv-body p { filter: blur(7px); user-select: none; }
.spoiler-cover { position: absolute; inset: 0; z-index: 1; border: 1px dashed var(--line-2); background: rgba(11,10,9,.55); color: var(--amber); border-radius: 8px; cursor: pointer; font-weight: 600; }
.revealed .spoiler-cover { display: none; }
.rv-actions { display: flex; gap: 14px; align-items: center; margin: 10px 0 0 44px; }
.rv-btn { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 14px; padding: 4px 6px; border-radius: 6px; }
.rv-btn:hover { background: var(--surface-2); }
.rv-btn.on { color: #ff6b81; }
.rv-comments { margin: 10px 0 0 44px; padding-left: 14px; border-left: 2px solid var(--line); }
.comment { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.comment .av { width: 26px; height: 26px; font-size: 10px; }
.comment .grow { flex: 1; min-width: 0; }
.comment p { margin: 2px 0 0; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-form { display: flex; gap: 8px; margin-top: 8px; }
.comment-form .input { flex: 1; padding: 9px 12px; }
.rv-film { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 10px; font: 800 18px/1 var(--font-display); text-transform: uppercase; }
.rv-film img { width: 34px; height: 51px; object-fit: cover; border-radius: 4px; }
.tmdb-note { font-size: 11px; color: var(--dim); margin-top: 30px; }
.tmdb-note a { color: var(--muted); }

.film-search { position: relative; max-width: 560px; margin-top: 18px; }
.film-search-results { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 30px 60px -20px #000; max-height: 60vh; overflow-y: auto; padding: 6px; }
.fs-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; text-decoration: none; }
.fs-item:hover { background: var(--surface-2); }
.fs-item img, .fs-item .ph { width: 34px; height: 51px; object-fit: cover; border-radius: 4px; background: var(--surface-3); flex: none; }

.chat-banner .banner-actions { display: inline-flex; align-items: center; gap: 12px; }

.user-head { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 10px; }
.user-head .grow { flex: 1; min-width: 220px; }
.user-head .display { font-size: clamp(40px, 7vw, 72px); }
.av.xl { width: 92px; height: 92px; font-size: 32px; }
.user-bio { font-size: 19px; color: #d8cdbb; margin: 10px 0 0; }
.user-stats { display: flex; gap: 22px; }
.user-stats div { text-align: center; }
.user-stats b { display: block; font: 900 34px/1 var(--font-display); }
.user-stats span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.favs.lg { max-width: 520px; gap: 12px; }
.favs.lg .fav span { font-size: 12px; }
.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px 10px; }
.poster-cell { text-decoration: none; }
.pc-img { aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; background: var(--surface-3); display: grid; place-items: center; transition: transform .2s var(--ease), box-shadow .2s; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; }
.pc-img span { font: 700 11px/1.2 var(--font-ui); padding: 6px; text-align: center; color: var(--muted); }
.poster-cell:hover .pc-img { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--amber); }
.pc-meta { margin-top: 4px; min-height: 14px; }
.steps-list { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 4px; }
.mod-quote { margin: 10px 0; padding: 10px 14px; border-left: 3px solid var(--line-2); background: var(--bg-2); border-radius: 0 8px 8px 0; white-space: pre-wrap; }
.member .name a { text-decoration: none; }
.member .name a:hover { color: var(--amber); }

/* ───────────── Diario, recomendaciones, estrenos ───────────── */
.poster-ph { display: grid; place-items: center; width: 100%; height: 100%; padding: 6px; text-align: center; font: 700 11px/1.2 var(--font-ui); color: var(--muted); background: var(--surface-3); }
.cine-tabs { margin: 18px 0 0; }
.cine-tabs a { border: 1px solid var(--line-2); background: var(--bg-2); color: var(--muted); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 14px; text-decoration: none; }
.cine-tabs a.on { background: var(--amber); border-color: var(--amber); color: #1a1408; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--surface-3); color: var(--muted); }
.tag.ok { background: rgba(143,207,138,.18); color: var(--ok); }

.recs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.rec { display: grid; grid-template-columns: 110px 1fr; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.rec-img { aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; display: block; background: var(--surface-3); }
.rec-img img { width: 100%; height: 100%; object-fit: cover; }
.rec-body h3 { font: 800 22px/1.05 var(--font-display); text-transform: uppercase; margin: 6px 0 4px; }
.rec-body h3 a { text-decoration: none; }
.rec-body p { margin: 0 0 4px; }
.rec-why { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--amber-2); background: rgba(245,184,65,.1); border-radius: 8px; padding: 4px 8px; }
.rec-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.pill[data-watch].on { border-color: var(--ok); color: var(--ok); }

.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px 12px; }
.qr { transition: opacity .3s; }
.qr-img { display: block; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; background: var(--surface-3); }
.qr-img img { width: 100%; height: 100%; object-fit: cover; }
.qr-title { font-size: 13px; font-weight: 600; margin: 6px 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qr .si-star { width: 24px; height: 24px; font-size: 24px; line-height: 24px; }
.qr-actions { display: flex; justify-content: space-between; margin-top: 2px; }
.qr-actions .on { color: #ff6b81; border-color: #ff6b81; }
.qr.rated .qr-img { box-shadow: 0 0 0 2px var(--amber); }

.people-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
@media (max-width: 820px) { .people-grid { grid-template-columns: 1fr; } }
.ranking { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ranking li { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 10px; padding: 8px 12px; }
.ranking .grow { flex: 1; min-width: 0; }
.ranking a { text-decoration: none; }
.rk-n { font: 900 24px/1 var(--font-display); color: var(--amber); width: 26px; text-align: center; }
.rk-img, .act-img { width: 36px; height: 54px; border-radius: 4px; overflow: hidden; flex: none; display: block; background: var(--surface-3); }
.rk-img img, .act-img img { width: 100%; height: 100%; object-fit: cover; }
.rk-score { text-align: right; font: 800 20px/1 var(--font-display); color: var(--amber); }
.rk-score span { display: block; font: 500 11px/1.4 var(--font-ui); color: var(--dim); }
.activity { display: grid; gap: 10px; }
.act { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.act .grow { flex: 1; min-width: 0; }
.act a { text-decoration: none; }
.sugg { margin-top: 18px; padding: 14px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); }
.sugg-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.sugg-row .grow { flex: 1; text-decoration: none; font-weight: 600; }

.upcoming-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.up-card { display: grid; grid-template-columns: 92px 1fr; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.up-img { aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; display: block; background: var(--surface-3); }
.up-img img { width: 100%; height: 100%; object-fit: cover; }
.up-body h3 { font: 800 20px/1.05 var(--font-display); text-transform: uppercase; margin: 2px 0 6px; }
.up-body h3 a { text-decoration: none; }
.up-body p { margin: 0 0 4px; }
.premiere-card { margin-bottom: 22px; padding: 16px; border-radius: var(--r); background: linear-gradient(120deg, rgba(245,184,65,.14), var(--surface) 70%); border: 1px solid rgba(245,184,65,.4); }
.user-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
@media (max-width: 640px) { .user-side { align-items: flex-start; } }

/* ───────────── Cine a ciegas ───────────── */
.blind-promo {
  display: flex; align-items: center; gap: 16px;
  margin: -6px 0 26px; padding: 16px 20px;
  border-radius: var(--r);
  text-decoration: none;
  background: linear-gradient(100deg, rgba(199,146,234,.16), rgba(245,184,65,.10) 70%, var(--surface));
  border: 1px solid rgba(199,146,234,.35);
  font-size: 14.5px; color: #e6dccb;
  transition: border-color .2s, transform .2s var(--ease);
}
.blind-promo:hover { border-color: #c792ea; transform: translateY(-1px); }
.blind-promo b { color: var(--text); }
.blind-promo .dice { font-size: 30px; }
.blind-promo .btn { flex: none; }
@media (max-width: 560px) { .blind-promo { flex-wrap: wrap; } .blind-promo .btn { width: 100%; } }

.blind-last { display: inline-block; margin-top: 14px; font-size: 14px; color: var(--muted); }
.blind-last b { color: var(--amber); }

.blind-steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 26px; flex-wrap: wrap; }
.blind-steps li {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--surface); color: var(--dim); font-size: 13px; font-weight: 600;
}
.blind-steps li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-size: 12px; }
.blind-steps li.on { color: var(--text); background: var(--surface-2); }
.blind-steps li.on span { background: var(--amber); color: #1a1408; }
.blind-steps li.done span { background: var(--ok); color: #0d1a0c; }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.slot-day { display: grid; gap: 6px; padding: 10px; background: var(--surface); border-radius: var(--r); border: 1px solid var(--line); }
.slot-date { text-align: center; }
.slot-date .wd { display: block; font: 700 11px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.slot-date .num { display: block; font: 900 30px/1 var(--font-display); margin-top: 3px; }
.slot {
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--muted);
  border-radius: 10px; padding: 8px 6px; cursor: pointer;
  font: 800 15px/1 var(--font-display); text-transform: uppercase; letter-spacing: .06em;
  transition: background .15s, color .15s, border-color .15s;
}
.slot small { display: block; font: 500 11px/1.2 var(--font-ui); text-transform: none; letter-spacing: 0; margin-top: 4px; color: var(--dim); }
.slot:hover:not([disabled]) { border-color: var(--amber); color: var(--text); }
.slot.on { background: var(--amber); border-color: var(--amber); color: #1a1408; }
.slot.on small { color: #4a3a12; }
.slot[disabled] { opacity: .3; cursor: not-allowed; }

.cine-group { margin-bottom: 8px; }
.cine-group .chips { margin-bottom: 14px; }
.chip.static { cursor: default; }

.blind-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.duel-head { margin-bottom: 8px; }
.duel-progress { height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.duel-progress span { display: block; height: 100%; background: var(--amber); transition: width .3s var(--ease); }
.duel { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin-top: 18px; }
.duel-card {
  text-align: left; background: none; border: 0; padding: 0; cursor: pointer; color: inherit;
  transition: transform .2s var(--ease);
  animation: duelin .35s var(--ease) both;
}
.duel-card:nth-child(3) { animation-delay: .06s; }
@keyframes duelin { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.duel-card .still { box-shadow: 0 0 0 0 var(--amber); transition: box-shadow .2s; }
.duel-card:hover .still { box-shadow: 0 0 0 3px var(--amber), 0 20px 50px -20px var(--amber-glow); }
.duel-card:hover h3 { color: var(--amber); }
.duel-card.chosen { transform: scale(1.03); }
.duel-card.chosen .still { box-shadow: 0 0 0 4px var(--amber), 0 0 60px -10px var(--amber-glow); }
.duel-card h3 { font: 800 24px/1 var(--font-display); text-transform: uppercase; margin: 12px 0 4px; }
.duel-card .by { font-family: var(--font-serif); font-style: italic; color: var(--muted); margin: 0; font-size: 16px; }
.vs { font: 900 34px/1 var(--font-display); color: var(--amber); text-shadow: 0 0 24px var(--amber-glow); }
.duel-alt { display: flex; justify-content: center; gap: 24px; margin-top: 22px; }
@media (max-width: 640px) {
  .duel { grid-template-columns: 1fr; gap: 10px; }
  .vs { text-align: center; font-size: 26px; }
  .duel-card h3 { font-size: 20px; }
}

.picked { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.picked-item { background: var(--surface); border-radius: var(--r); overflow: hidden; }
.picked-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.picked-item span { display: block; padding: 10px 12px; font: 800 16px/1.1 var(--font-display); text-transform: uppercase; }

.searching {
  position: relative; text-align: center;
  padding: 40px 24px 28px;
  background: radial-gradient(80% 120% at 50% 0%, rgba(199,146,234,.12), var(--surface) 70%);
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
}
.searching .display { font-size: clamp(36px, 6vw, 56px); margin: 18px 0 12px; }
.searching > p { color: #d8cdbb; max-width: 60ch; margin: 0 auto; }
.searching > p b { color: var(--amber); }
.search-summary { display: grid; gap: 16px; text-align: left; margin-top: 26px; }
.search-summary .chips { margin-bottom: 0; }
.radar { position: relative; width: 84px; height: 84px; margin: 0 auto; }
.radar span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #c792ea; opacity: 0; animation: ping 2.4s var(--ease) infinite; }
.radar span:nth-child(2) { animation-delay: .8s; }
.radar span:nth-child(3) { animation-delay: 1.6s; }
.radar::after { content: '🎲'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; }
@keyframes ping { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(1.4); opacity: 0; } }

.blind-ticket .dice-img { display: grid; place-items: center; font-size: 44px; background: linear-gradient(135deg, rgba(199,146,234,.25), rgba(245,184,65,.12)); filter: none; }

/* ───────────── Mis planes: entradas ───────────── */
.plans { display: grid; gap: 14px; }
.ticket {
  position: relative;
  display: grid; grid-template-columns: 120px 1fr auto;
  text-decoration: none;
  background: var(--surface);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform .2s var(--ease), background .2s;
  -webkit-mask: radial-gradient(circle at calc(100% - 150px) 0, transparent 10px, #000 10.5px) top / 100% 51% no-repeat,
                radial-gradient(circle at calc(100% - 150px) 100%, transparent 10px, #000 10.5px) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle at calc(100% - 150px) 0, transparent 10px, #000 10.5px) top / 100% 51% no-repeat,
                radial-gradient(circle at calc(100% - 150px) 100%, transparent 10px, #000 10.5px) bottom / 100% 51% no-repeat;
}
.ticket:hover { background: var(--surface-2); transform: translateY(-2px); }
.ticket-img { background-size: cover; background-position: center; filter: saturate(.7); min-height: 110px; }
.ticket-main { padding: 18px 20px; min-width: 0; }
.ticket-main .kicker { margin-bottom: 6px; }
.ticket-main h3 { font: 800 26px/1 var(--font-display); text-transform: uppercase; margin: 0 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-main p { margin: 0; color: var(--muted); font-size: 14px; }
.ticket-stub {
  width: 150px;
  border-left: 2px dashed var(--line-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 14px; text-align: center;
}
.stamp {
  font: 800 15px/1 var(--font-display); text-transform: uppercase; letter-spacing: .08em;
  padding: 7px 10px; border: 2px solid currentColor; border-radius: 6px;
  transform: rotate(-4deg);
  color: var(--amber);
}
.stamp.ok { color: var(--ok); }
.stamp.post { color: #c792ea; }
.stamp.off { color: var(--dim); }
.ticket-stub small { color: var(--muted); font-size: 12px; }
.ticket .badge { position: absolute; top: 10px; right: 10px; }
.plans-past .ticket { opacity: .72; }
.plans-past .ticket:hover { opacity: 1; }
.group-title { font: 800 22px/1 var(--font-display); text-transform: uppercase; color: var(--muted); margin: 40px 0 14px; letter-spacing: .06em; }

@media (max-width: 620px) {
  .ticket { grid-template-columns: 84px 1fr; -webkit-mask: none; mask: none; }
  .ticket-stub { grid-column: 1 / -1; width: auto; flex-direction: row; justify-content: space-between; border-left: 0; border-top: 2px dashed var(--line-2); padding: 12px 16px; }
  .ticket-main { padding: 14px 16px; }
  .ticket-main h3 { font-size: 21px; white-space: normal; }
}

/* ───────────── Chat (la sala) ───────────── */
.chat {
  max-width: 900px; margin: 0 auto;
  height: calc(100dvh - var(--topbar) - var(--tabbar));
  display: grid; grid-template-rows: auto auto 1fr auto;
  position: relative;
}
main:has(.chat) { padding-bottom: 0; }
.chat-head {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; gap: 14px;
  padding: 16px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.chat-head-bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; filter: blur(18px) brightness(.35) saturate(1.2); transform: scale(1.2); }
.chat-head .back { position: static; flex: none; padding: 9px; }
.chat-head .kicker { margin: 0 0 4px; }
.chat-head h2 { font: 900 clamp(24px, 4vw, 34px)/1 var(--font-display); text-transform: uppercase; margin: 0; }
.chat-head .grow { flex: 1; min-width: 0; }
.chat-head h2 a { text-decoration: none; }
.avatars { display: flex; flex: none; background: none; border: 0; padding: 4px; cursor: pointer; align-items: center; }
.avatars .av { margin-left: -8px; box-shadow: 0 0 0 2px var(--bg); }
.avatars .more { margin-left: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.av {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-grid; place-items: center; flex: none;
  font: 700 12px/1 var(--font-ui); color: #1a1408;
  background: var(--c, var(--amber));
}
.av.lg { width: 44px; height: 44px; font-size: 15px; }
.av.has-img { background: var(--surface-3); overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.avatar-edit { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.avatar-btn { cursor: pointer; }

.chat-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px var(--gutter);
  font-size: 13px; color: var(--muted);
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.chat-banner b { color: var(--text); font-weight: 600; }
.chat-banner.post { background: linear-gradient(90deg, rgba(199,146,234,.14), var(--bg-2)); }
.chat-banner.post b { color: #dab8f3; }

.members-panel {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 5;
  width: min(340px, 90%);
  background: var(--surface);
  border-left: 1px solid var(--line-2);
  box-shadow: -30px 0 60px rgba(0,0,0,.6);
  padding: 20px;
  overflow-y: auto;
  animation: slidein .25s var(--ease);
}
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }
.members-panel h3 { font: 800 24px/1 var(--font-display); text-transform: uppercase; margin: 0 0 16px; display: flex; justify-content: space-between; align-items: center; }
.member { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.member .name { font-weight: 600; }
.member .info { font-size: 13px; color: var(--muted); }
.member .bio { font-size: 13px; color: var(--muted); margin-top: 4px; font-style: italic; }
.member .report { margin-top: 6px; }
.icon-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; }
.icon-btn:hover { color: var(--text); background: var(--surface-2); }

.msgs { overflow-y: auto; padding: 22px var(--gutter) 12px; display: flex; flex-direction: column; gap: 3px; overscroll-behavior: contain; }
.msg { max-width: min(78%, 560px); display: flex; gap: 10px; align-items: flex-end; }
.msg .av { width: 28px; height: 28px; font-size: 11px; }
.msg .av.ghost { visibility: hidden; }
.bubble {
  background: var(--surface-2);
  padding: 9px 13px;
  border-radius: 16px 16px 16px 5px;
  font-size: 15px; line-height: 1.45;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.bubble .who { display: block; font-size: 12px; font-weight: 700; margin-bottom: 2px; color: var(--c, var(--amber)); }
.bubble time { display: block; font-size: 11px; color: var(--dim); margin-top: 3px; text-align: right; }
.msg.first { margin-top: 10px; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg.me .bubble { background: var(--amber); color: #1a1408; border-radius: 16px 16px 5px 16px; }
.msg.me .bubble time { color: rgba(26, 20, 8, .55); }
/* Mensajes del sistema como intertítulos de cine mudo */
.intertitle {
  align-self: center; text-align: center;
  max-width: 520px;
  margin: 18px auto;
  padding: 14px 22px;
  font-family: var(--font-serif); font-style: italic; font-size: 18px; line-height: 1.35; color: #e6dccb;
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  position: relative;
}
.intertitle::before {
  content: '✦'; position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--bg); padding: 0 10px; color: var(--amber); font-style: normal; font-size: 13px;
}
.intertitle time { display: block; font: 500 11px/1 var(--font-ui); color: var(--dim); margin-top: 8px; font-style: normal; letter-spacing: .08em; }

.composer {
  display: flex; gap: 10px; align-items: flex-end;
  padding: 12px var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.composer textarea {
  flex: 1; resize: none; max-height: 140px; min-height: 46px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 23px;
  padding: 12px 18px; outline: none; line-height: 1.4;
  overflow-y: hidden;
}
.composer textarea:focus { border-color: var(--amber); }
.composer .btn { min-height: 46px; padding: 0 18px; }

/* ───────────── Perfil ───────────── */
.profile-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 5vw, 60px); align-items: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.card + .card { margin-top: 18px; }
.card h3 { font: 800 22px/1 var(--font-display); text-transform: uppercase; margin: 0 0 14px; letter-spacing: .03em; }
.who-card { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
.who-card .av { width: 64px; height: 64px; font-size: 22px; }
.who-card h2 { font: 900 34px/1 var(--font-display); text-transform: uppercase; margin: 0; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.switch input { appearance: none; width: 46px; height: 26px; border-radius: 999px; background: var(--surface-3); position: relative; cursor: pointer; transition: background .2s; flex: none; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text); transition: transform .2s var(--ease); }
.switch input:checked { background: var(--amber); }
.switch input:checked::after { transform: translateX(20px); background: #1a1408; }
.small { font-size: 13px; color: var(--muted); }
@media (max-width: 800px) { .profile-grid { grid-template-columns: 1fr; } }

/* ───────────── Avisos (toasts) ───────────── */
#toasts {
  position: fixed; z-index: 150;
  right: 18px; bottom: calc(var(--tabbar) + 18px);
  display: grid; gap: 10px;
  width: min(380px, calc(100vw - 36px));
}
.toast {
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 14px 16px;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,.7);
  animation: toastin .35s var(--ease);
  font-size: 14px;
}
.toast.out { animation: toastout .3s var(--ease) forwards; }
@keyframes toastin { from { transform: translateY(14px); opacity: 0; } }
@keyframes toastout { to { transform: translateY(10px); opacity: 0; } }
.toast .t-title { font-weight: 700; margin-bottom: 2px; }
.toast .t-actions { margin-top: 10px; display: flex; gap: 8px; }
.toast.error { border-color: rgba(226,65,47,.6); }
/* "¡Se armó la función!" con borde de lamparitas */
.toast.marquee {
  background: #1a1408;
  border: 0;
  padding: 22px 20px 18px;
  text-align: center;
  position: relative;
}
.toast.marquee::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--r); padding: 6px;
  background:
    radial-gradient(circle, var(--amber-2) 2px, transparent 2.6px) 0 0 / 14px 6px repeat-x,
    radial-gradient(circle, var(--amber-2) 2px, transparent 2.6px) 0 100% / 14px 6px repeat-x,
    radial-gradient(circle, var(--amber-2) 2px, transparent 2.6px) 0 0 / 6px 14px repeat-y,
    radial-gradient(circle, var(--amber-2) 2px, transparent 2.6px) 100% 0 / 6px 14px repeat-y;
  animation: chase .5s steps(2) infinite;
  pointer-events: none;
}
@keyframes chase { 50% { background-position: 7px 0, 7px 100%, 0 7px, 100% 7px; } }
.toast.marquee .t-title { font: 900 30px/1 var(--font-display); text-transform: uppercase; color: var(--amber); letter-spacing: .03em; }
.toast.marquee p { margin: 8px 0 0; color: #e6dccb; font-family: var(--font-serif); font-style: italic; font-size: 17px; }
.toast.marquee .t-actions { justify-content: center; }

/* ───────────── Cargando: cuenta regresiva de película ───────────── */
.loader { display: grid; place-items: center; min-height: 50vh; }
.leader {
  width: 84px; height: 84px; border-radius: 50%;
  border: 2px solid var(--line-2);
  position: relative;
  background: conic-gradient(rgba(245,184,65,.25) var(--p, 0deg), transparent 0);
  animation: sweep 1s linear infinite;
}
.leader::before, .leader::after { content: ''; position: absolute; background: var(--line-2); }
.leader::before { left: 50%; top: -12px; bottom: -12px; width: 1px; }
.leader::after { top: 50%; left: -12px; right: -12px; height: 1px; }
@property --p { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes sweep { to { --p: 360deg; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition: none !important; }
  .grain { display: none; }
}

/* ───────────── Mensajes con amigos ───────────── */
.dm-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  color: var(--muted); text-decoration: none; margin-left: 6px;
  transition: color .2s, background .2s;
}
.dm-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.dm-btn:hover { color: var(--text); background: var(--surface-2); }
.dm-btn.active { color: var(--bg); background: var(--amber); }
.dm-btn .badge { position: absolute; top: 2px; right: -2px; margin: 0; }
body.logged-out .dm-btn { display: none; }
@media (max-width: 760px) { .dm-btn { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); } }

.friends-strip { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 18px; margin-bottom: 8px; scrollbar-width: thin; }
.friend-chip { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 64px; background: none; border: 0; color: var(--text); cursor: pointer; font-size: 12px; }
.friend-chip .av.lg { width: 56px; height: 56px; font-size: 18px; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--amber); }
.friend-chip span:last-child { max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-chip.new .plus { background: var(--surface-2); color: var(--amber); font-size: 26px; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--line-2); }

.convo-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.convo-row { display: flex; align-items: center; gap: 14px; padding: 14px 6px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; transition: background .15s; }
.convo-row:hover { background: var(--bg-2); }
.convo-row .grow { flex: 1; min-width: 0; }
.convo-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-last { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.convo-row.unread .convo-title, .convo-row.unread .convo-last { color: var(--text); font-weight: 700; }
.convo-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 12px; color: var(--dim); flex: none; }
.convo-side .badge { margin: 0; }
.convo-av { position: relative; width: 44px; height: 44px; flex: none; }
.convo-av .av { position: absolute; width: 30px; height: 30px; font-size: 11px; box-shadow: 0 0 0 2px var(--bg); }
.convo-av .av:first-child { top: 0; left: 0; }
.convo-av .av:nth-child(2) { bottom: 0; right: 0; }

.dm-chat .chat-head { padding-block: 12px; }
.dm-title { font: 800 24px/1.05 var(--font-display) !important; }
.dm-sub { margin: 3px 0 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-chat { grid-template-rows: auto 1fr auto; }
.intertitle.small { font-size: 15px; padding: 10px 18px; margin: 12px auto; }
.composer.readonly { justify-content: center; color: var(--muted); font-size: 14px; padding-block: 18px; }
.propose-btn { min-height: 46px; padding: 0 14px; flex: none; white-space: nowrap; }
@media (max-width: 600px) { .propose-btn span { display: none; } }

.msg-flag { background: none; border: 0; color: inherit; opacity: 0; cursor: pointer; font-size: 11px; margin-left: 6px; padding: 0 2px; transition: opacity .15s; }
.msg:hover .msg-flag, .msg-flag:focus-visible { opacity: .8; }
@media (hover: none) { .msg-flag { opacity: .45; } }

.msg.has-plan { max-width: min(92%, 440px); }
.plan-bubble { padding: 8px; }
.msg.me .plan-bubble { background: var(--surface-2); color: var(--text); }
.msg.me .plan-bubble time { color: var(--dim); }
.plan-bubble .who { padding: 2px 4px 6px; }
.plan-card { display: grid; grid-template-columns: 84px 1fr; gap: 12px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px; white-space: normal; }
.plan-card.gone { display: block; color: var(--muted); font-style: italic; }
.plan-img { display: block; aspect-ratio: 2/3; border-radius: 8px; overflow: hidden; background: var(--surface-3); }
.plan-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plan-body { min-width: 0; }
.plan-body .kicker { margin: 2px 0 4px; font-size: 10px; }
.plan-body h4 { margin: 0; font: 800 20px/1.05 var(--font-display); text-transform: uppercase; }
.plan-body h4 a { text-decoration: none; }
.plan-when { margin: 4px 0 8px; font-size: 13px; color: var(--muted); }
.plan-goers { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.avatars-sm { display: flex; padding-left: 6px; }
.avatars-sm .av { width: 22px; height: 22px; font-size: 9px; margin-left: -6px; box-shadow: 0 0 0 2px var(--bg-2); }
.plan-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }

.friend-pick { display: grid; gap: 4px; max-height: 300px; overflow-y: auto; margin: 8px 0; }
.friend-opt { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; cursor: pointer; }
.friend-opt:hover { background: var(--surface-2); }
.friend-opt input { accent-color: var(--amber); width: 18px; height: 18px; }
.row-input { display: flex; gap: 8px; }
.row-input .input { flex: 1; min-width: 0; }
.panel-sub { margin: 18px 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

.pf-films { display: grid; gap: 4px; margin-top: 12px; max-height: 52vh; overflow-y: auto; }
.pf-film { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 6px; background: none; border: 0; border-radius: 10px; color: var(--text); text-align: left; cursor: pointer; font-size: 14px; }
.pf-film:hover { background: var(--surface-2); }
.pf-poster { width: 40px; aspect-ratio: 2/3; border-radius: 5px; overflow: hidden; background: var(--surface-3); }
.pf-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-title { font-weight: 600; }
.pf-film .dim { font-size: 12px; }
.pf-head { font: 800 24px/1 var(--font-display); text-transform: uppercase; margin: 12px 0 8px; }
.pf-day { margin-top: 14px; }
.pf-day .kicker { margin-bottom: 8px; }
.pf-times { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-time { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 12px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; color: var(--text); cursor: pointer; font-size: 12px; }
.pf-time b { font-size: 16px; }
.pf-time span { color: var(--muted); }
.pf-time:hover { border-color: var(--amber); }
.pf-time:disabled { opacity: .5; }

.user-actions { display: flex; gap: 8px; }
.follows-you { margin: 0; font-size: 12px; }

.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 0 0 28px; }
.admin-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; display: grid; gap: 4px; }
.admin-stats b { font: 900 34px/1 var(--font-display); color: var(--amber); }
.admin-stats span { font-size: 13px; color: var(--muted); }

/* ───────────── Funciones EVENTO ───────────── */
.event-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font: 900 13px/1 var(--font-display); letter-spacing: .22em; text-transform: uppercase;
  color: #1a1408; background: var(--amber);
  padding: 6px 10px 5px; border-radius: 4px; text-decoration: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--amber), 0 0 24px var(--amber-glow);
}
.event-tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #c0392b; box-shadow: 0 0 8px #ff5a4a; animation: evpulse 1.4s ease-in-out infinite; }
@keyframes evpulse { 50% { opacity: .35; } }
.event-tag.sm { font-size: 10px; padding: 4px 7px 3px; letter-spacing: .18em; box-shadow: none; vertical-align: 2px; }
.event-tag.sm::before { width: 5px; height: 5px; }

.events-top { display: grid; gap: 16px; margin: 4px 0 34px; }
.event-hero {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r-lg); border: 1px solid rgba(245,184,65,.45);
  background: var(--surface);
  box-shadow: 0 30px 80px -30px rgba(245,184,65,.35);
}
.eh-bg { position: absolute; inset: 0; z-index: -1; background: var(--bg) var(--ev-img) center 30% / cover no-repeat; }
.eh-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,10,9,.96) 0%, rgba(11,10,9,.82) 45%, rgba(11,10,9,.35) 100%), linear-gradient(0deg, rgba(11,10,9,.9), transparent 60%); }
.eh-inner { padding: clamp(20px, 4vw, 36px); max-width: 640px; }
.eh-title { margin: 14px 0 6px; font: 900 clamp(34px, 6vw, 64px)/.92 var(--font-display); text-transform: uppercase; }
.eh-title a { text-decoration: none; }
.eh-when { margin: 0; color: #f3e3bd; font-weight: 600; }
.eh-blurb { margin: 10px 0 0; color: var(--muted); font-family: var(--font-serif); font-style: italic; font-size: 18px; }
.eh-stats { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 20px 0 14px; }
.eh-stats div { display: grid; gap: 2px; }
.eh-stats b { font: 900 38px/1 var(--font-display); color: var(--amber); }
.eh-stats b.low { color: #ff7a6b; }
.eh-stats span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.eh-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.btn-event { background: var(--amber); color: #1a1408; box-shadow: 0 0 30px var(--amber-glow); }

.seat-meter { max-width: 460px; }
.sm-bar { position: relative; height: 10px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.sm-sold { position: absolute; inset: 0 auto 0 0; background: rgba(255,255,255,.35); border-radius: 999px; }
.sm-legend { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.sm-legend b { color: var(--text); }
.sm-legend b.low { color: #ff7a6b; }

.event-page .back { margin-bottom: 12px; display: inline-flex; }
.event-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
@media (max-width: 760px) { .event-grid { grid-template-columns: 1fr; } }
.bought-toggle { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; cursor: pointer; }
.bought-toggle input { width: 22px; height: 22px; accent-color: var(--ok); }
.event-how { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
.event-how b { color: var(--text); }
.event-people { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.event-people .more { color: var(--muted); font-weight: 600; margin-left: 6px; }

.admin-events { margin: 0 0 28px; }
.ae-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.ae-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ae-row .grow { flex: 1; min-width: 220px; }
@media (max-width: 600px) {
  .eh-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .eh-stats b { font-size: 30px; }
  .eh-stats span { font-size: 10px; letter-spacing: .04em; }
  .eh-when { font-size: 14px; }
}
