/* Kuja — premium dark theme, phone first.
   Ink #12101F (background) · Panel #221E3D (cards) · Gold #E8B84B (price & action)
   Violet #7C6CF0 (highlights) · M-PESA green #43B02A (payment only) · Paper #F5F2EA (ticket face)
   Headings: serif display. Body/UI: clean sans. One gold button per screen.
   Design tokens: --wrap is the page container; --space-section is the
   vertical rhythm between homepage sections. */
:root {
  --ink: #12101f;
  --ink-2: #1a1730;
  --panel: #221e3d;
  --panel-2: #2b2650;
  --gold: #e8b84b;
  --gold-deep: #c99a2e;
  --violet: #7c6cf0;
  --green: #43b02a;
  --paper: #f5f2ea;
  --text: #f2eefc;
  --muted: #b7b0d2;
  --line: rgba(255, 255, 255, 0.09);
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  --shadow-lift: 0 16px 40px rgba(0, 0, 0, 0.55);
  --space-section: clamp(36px, 5vw, 56px);
  --wrap: 1200px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
}
h1, h2, h3, .serif { font-family: Georgia, "Times New Roman", serif; letter-spacing: 0.01em; }
h1 { font-size: clamp(34px, 4.5vw, 46px); line-height: 1.12; margin: 0 0 10px; }
h2 { font-size: 24px; margin: 0 0 8px; }
h3 { font-size: 19px; margin: 0 0 6px; }
p { margin: 0 0 12px; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.price { color: var(--gold); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* Header — sticky with blur, so it reads over content while scrolling. */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(18, 16, 31, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: Georgia, serif; font-size: 22px; font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand img { height: 34px; width: auto; border-radius: 8px; }
.brand .dot { color: var(--gold); }
.topnav { margin-left: auto; display: flex; align-items: center; gap: 4px; font-size: 15px; }
.topnav a { color: var(--text); padding: 8px 10px; border-radius: 8px; }
.topnav a:hover { background: var(--panel); text-decoration: none; }
.topnav a.active { color: var(--gold); }
.topnav a.cta { background: var(--gold); color: #1a1405; font-weight: 700; padding: 10px 18px; }
.topnav a.cta:hover { background: var(--gold-deep); }
.topnav a.cta:focus-visible { outline-color: #fff; }
/* Phones: tighten the topbar so "My Tickets" and "Sell Tickets" each fit
   on one line. Below 400px the Events link hides — the brand logo already
   links home. */
@media (max-width: 639px) {
  .topbar-inner { padding: 8px 12px; gap: 8px; }
  .brand { font-size: 20px; gap: 8px; }
  .brand img { height: 30px; }
  .topnav { gap: 2px; font-size: 14px; }
  .topnav a { padding: 8px 7px; white-space: nowrap; }
  .topnav a.cta { padding: 8px 12px; }
}
@media (max-width: 360px) {
  .topnav a[href="/"] { display: none; }
}

/* Layout — one container width for every page. */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 20px 16px 64px; }
.wrap-narrow { max-width: 620px; margin: 0 auto; padding: 20px 16px 64px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 16px;
}
.card h2, .card h3 { margin-top: 0; }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Hero — the homepage's first sight: big serif headline, one line of
   subcopy, and the search built into the band (not a separate box below
   it). The gold mark sits faint at the top right on desktop; hidden on
   phones so the headline and search own the screen. */
.hero {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background:
    radial-gradient(560px 320px at 88% -10%, rgba(232, 184, 75, 0.16), transparent 62%),
    linear-gradient(180deg, #1d1936 0%, var(--ink-2) 100%);
  padding: clamp(32px, 5.5vw, 56px) clamp(20px, 4vw, 48px);
  margin-bottom: var(--space-section);
}
.hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; margin: 0 0 12px; max-width: 660px; }
.hero-sub { font-size: 18px; max-width: 560px; margin: 0 0 24px; }
.hero .search-card { margin: 0; background: rgba(34, 30, 61, 0.88); border-color: rgba(232, 184, 75, 0.28); box-shadow: var(--shadow-lift); }
.hero-note { font-size: 14px; color: var(--muted); margin: 16px 0 0; }
.hero-mark { position: absolute; right: clamp(8px, 3vw, 40px); top: 28px; width: clamp(140px, 20vw, 240px); opacity: 0.12; pointer-events: none; }
@media (max-width: 639px) {
  .hero-mark { display: none; }
  .hero-sub { font-size: 16px; }
}

/* Event cards — responsive grid: 1 column on phones, 2 on tablets,
   3 on desktop. Large 16:10 image, category pill top-left, gold date
   badge top-right, subtle hover lift. */
.events-grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .events-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .events-grid { grid-template-columns: repeat(3, 1fr); } }
.event-card { overflow: hidden; padding: 0; cursor: pointer; transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
.event-card:hover { transform: translateY(-4px); border-color: rgba(232, 184, 75, 0.55); box-shadow: var(--shadow-lift); }
.event-card .photo { aspect-ratio: 16/10; background: var(--panel-2); position: relative; overflow: hidden; }
/* Direct child only: the branded placeholder's mark img inside .photo must
   keep its own size (see .poster-placeholder img), not stretch to fill. */
.event-card .photo > img { width: 100%; height: 100%; object-fit: cover; }
.event-card .photo .badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(18, 16, 31, 0.85); color: var(--gold);
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.event-card .photo .date-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--gold); color: #1a1405;
  font-size: 13px; font-weight: 800; letter-spacing: 0.04em;
  padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}
.event-card .photo .soldout {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(18, 16, 31, 0.65); color: #fff; font-family: Georgia, serif;
  font-size: 24px; letter-spacing: 0.08em; text-transform: uppercase;
}
.event-card .body { padding: 16px 18px 18px; }
.event-card .meta { color: var(--muted); font-size: 14px; margin: 4px 0 8px; }
.event-card .from { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; }
.event-card .view { color: var(--gold); font-weight: 700; font-size: 14px; white-space: nowrap; }

/* Buttons — one gold action per screen. Focus-visible rings everywhere:
   gold on dark, white on the gold button itself (a gold ring would vanish
   on gold). */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--gold); color: #1a1405; font-weight: 800; font-size: 16px;
  padding: 14px 24px; border-radius: 999px; text-align: center; line-height: 1.2;
}
.btn:hover { background: var(--gold-deep); text-decoration: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.btn-block { display: block; width: 100%; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); font-weight: 600; }
.btn-ghost:hover { background: var(--panel-2); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { filter: brightness(1.1); }
.btn-danger { background: #b3261e; color: #fff; }

/* Forms */
label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; font-size: 16px; color: var(--text);
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
input[type="date"], input[type="datetime-local"] { color-scheme: dark; }
.field-row { display: grid; gap: 12px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
/* Search bar — fields + button in one row on desktop, stacked on phones.
   Scoped to .search-card so the studio forms that reuse .field-row keep
   their two-column layout. */
.search-card { display: flex; gap: 12px; align-items: flex-end; }
.search-card .field-row { flex: 1; min-width: 0; }
.search-card .field-row label { margin-top: 0; }
.search-card .btn { flex: none; white-space: nowrap; }
@media (min-width: 560px) { .search-card .field-row { grid-template-columns: 2fr 1fr 1fr; } }
@media (max-width: 559px) {
  .search-card { flex-direction: column; align-items: stretch; }
  .search-card .btn { width: 100%; }
}
/* Section headings (Upcoming events, Also on Kuja) — one display title
   per section, serif, with the same rhythm above every section. */
.section-title { font-size: 26px; margin: 40px 0 16px; }
@media (max-width: 639px) { .section-title { font-size: 22px; margin: 32px 0 12px; } }
.ad-section { margin-bottom: 8px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.error { background: rgba(179, 38, 30, 0.18); border: 1px solid rgba(179, 38, 30, 0.6); color: #ffb4ab; padding: 12px 14px; border-radius: 10px; margin: 12px 0; }
.ok { background: rgba(67, 176, 42, 0.15); border: 1px solid rgba(67, 176, 42, 0.55); color: #b9f0a8; padding: 12px 14px; border-radius: 10px; margin: 12px 0; }

/* Ticket tiers */
.tier {
  display: flex; align-items: center; gap: 14px;
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 16px; margin-bottom: 10px;
}
.tier .info { flex: 1; min-width: 0; }
.tier .name { font-family: Georgia, serif; font-size: 18px; }
.tier .desc { color: var(--muted); font-size: 14px; }
.tier .left { font-size: 13px; color: var(--gold); font-weight: 700; }
.tier .left.soldout { color: #ff8a80; }
.qty { display: flex; align-items: center; gap: 10px; }
.qty button {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font-size: 20px; cursor: pointer; line-height: 1;
}
.qty button:disabled { opacity: 0.35; cursor: not-allowed; }
.qty .n { min-width: 22px; text-align: center; font-weight: 800; font-size: 18px; }
/* Phones: 44px steppers, comfortable to tap. */
@media (max-width: 639px) {
  .qty button { width: 44px; height: 44px; }
  .qty { gap: 12px; }
}

/* Ticket face — white paper, maximum readability at the gate */
.ticket {
  background: var(--paper); color: #191423; border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow); max-width: 420px; margin: 0 auto;
}
.ticket .thead { background: var(--ink); color: var(--text); padding: 16px 18px; }
.ticket .thead h2 { margin: 0; font-size: 21px; }
.ticket .thead .meta { color: var(--muted); font-size: 14px; }
.ticket .tbody { padding: 18px; text-align: center; }
.ticket .qr { display: inline-block; background: #fff; padding: 12px; border-radius: 10px; }
.ticket .qr img, .ticket .qr canvas { display: block; }
.ticket .short { font-size: 22px; font-weight: 800; letter-spacing: 0.14em; margin: 12px 0 4px; font-variant-numeric: tabular-nums; }
.ticket .trow { display: flex; justify-content: space-between; gap: 12px; text-align: left; padding: 8px 0; border-top: 1px dashed #c9c2b2; font-size: 15px; }
.ticket .trow b { font-variant-numeric: tabular-nums; }

/* Scanner verdicts — full-screen green / red */
.verdict { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-radius: 16px; padding: 28px 18px; }
.verdict.valid { background: var(--green); color: #fff; }
.verdict.used, .verdict.invalid, .verdict.void { background: #b3261e; color: #fff; }
.verdict h2 { font-size: 34px; margin: 0 0 8px; }
.verdict .big { font-size: 20px; font-weight: 700; }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
@media (min-width: 640px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat .label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.stat .value { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; margin-top: 2px; }
.stat .value.gold { color: var(--gold); }

/* M-PESA waiting pulse */
.pulse { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--green); animation: pulse 1.2s ease-in-out infinite; vertical-align: middle; margin-right: 8px; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.8); } }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer — three columns on desktop, stacked on phones, never truncated.
   Brand + payment line, Explore links, Sell-tickets pointer + contact,
   then a copyright base line. */
.footer { max-width: var(--wrap); margin: 0 auto; padding: 40px 16px 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.footer a { color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: Georgia, "Times New Roman", serif; font-size: 20px; color: var(--text); margin-bottom: 6px; }
.footer-brand img { height: 36px; width: auto; border-radius: 8px; }
.footer p { margin: 0 0 10px; }
.footer-grid { display: grid; gap: 22px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 32px; } }
@media (max-width: 719px) { .footer-grid { gap: 18px; } .footer { padding: 32px 16px 40px; } }
.footer-head { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.footer-links { display: flex; flex-direction: column; gap: 2px; }
.footer-links a { color: var(--gold); display: inline-block; padding: 12px 0; }
.footer-col p a { color: var(--gold); }
.footer-mail { overflow-wrap: anywhere; }
.footer-base { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }

/* Pills / status — 13px minimum, no smaller text in the UI. */
.pill { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--panel-2); color: var(--text); }
.pill.gold { background: rgba(232, 184, 75, 0.2); color: var(--gold); }
.pill.green { background: rgba(67, 176, 42, 0.2); color: #b9f0a8; }
.pill.red { background: rgba(179, 38, 30, 0.25); color: #ffb4ab; }
.pill.violet { background: rgba(124, 108, 240, 0.25); color: #cfc6ff; }

/* Tabs (studio / admin) */
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 16px; }
.tabs a { padding: 9px 14px; border-radius: 999px; color: var(--text); background: var(--panel); white-space: nowrap; font-size: 15px; }
.tabs a.active { background: var(--gold); color: #1a1405; font-weight: 700; }
.tabs a:hover { text-decoration: none; }

/* Homepage ad carousel — rotating featured events + house ads (in-app ad screen).
   One slide per house ad, then one per published event. Fades between slides;
   arrows/dots move it by hand. No change to any other page.
   The fade is SEQUENTIAL, not a crossfade: the outgoing slide fades out
   immediately (0.35s, no delay) while the incoming slide's fade-in is delayed
   0.35s, so the outgoing is fully gone before the incoming becomes readable.
   A plain simultaneous crossfade made both slides' text readable at once
   mid-transition (ghosting). */
.ad-carousel { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); box-shadow: var(--shadow); margin: 0 0 20px; }
/* Short strip, not the page's main feature: 240px on desktop, 230px on
   phones (was ~430px / 290px). The house-ad content — logo + title + sub +
   CTA + contact — sets the floor; it cannot go shorter without hiding any. */
.ad-track { position: relative; height: 230px; }
@media (min-width: 640px) { .ad-track { height: 240px; } }
.ad-slide { display: block; position: absolute; inset: 0; width: 100%; height: 100%; color: var(--text); overflow: hidden; opacity: 0; pointer-events: none; transition: opacity 0.35s ease; }
.ad-slide.active { opacity: 1; pointer-events: auto; transition: opacity 0.35s ease 0.35s; }
@media (prefers-reduced-motion: reduce) {
  /* Instant swap: no fade at all, so nothing can ghost. Auto-rotate is
     already off for reduced motion; this covers manual arrows/dots. */
  .ad-slide, .ad-slide.active { transition: none; }
}
.ad-slide:hover { text-decoration: none; }
.ad-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ad-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,16,31,0.94) 0%, rgba(18,16,31,0.45) 45%, rgba(18,16,31,0.05) 100%); }
.ad-tag { position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(18,16,31,0.85); color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(232,184,75,0.4); }
.ad-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 14px 18px 32px 60px; }
.ad-caption h2 { margin: 8px 0 4px; font-size: 22px; line-height: 1.2; }
@media (min-width: 640px) { .ad-caption h2 { font-size: 24px; } }
.ad-meta { color: #d8d2ee; font-size: 14px; }
.ad-price { color: var(--gold); font-weight: 800; margin-top: 6px; font-size: 15px; }
/* House-ad slides: centred brand content instead of an event photo. */
.ad-house-bg { position: absolute; inset: 0; background: linear-gradient(135deg, var(--panel-2), var(--ink-2)); }
.ad-house-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ad-house-shade { background: linear-gradient(to top, rgba(18,16,31,0.88) 0%, rgba(18,16,31,0.58) 50%, rgba(18,16,31,0.48) 100%); }
.ad-slide[data-tone="teal"] .ad-house-bg { background: linear-gradient(135deg, #0f3d3a 0%, #157a70 55%, #1f938a 135%); }
.ad-slide[data-tone="studio"] .ad-house-bg { background: linear-gradient(135deg, #3a2c1c 0%, #221e3d 70%); }
.ad-house-inner { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 5px; padding: 12px 56px 34px; }
.ad-logo { height: 48px; width: auto; max-width: 220px; object-fit: contain; }
.ad-logo-sintara { height: 56px; border-radius: 12px; }
.ad-logo-studio { height: 56px; background: var(--paper); padding: 8px 16px; border-radius: 12px; }
.ad-house-inner h2 { margin: 0; font-size: 22px; line-height: 1.2; }
@media (min-width: 640px) { .ad-house-inner h2 { font-size: 24px; } }
.ad-sub { color: #d8d2ee; font-size: 14px; margin: 0; max-width: 520px; }
.ad-cta { color: var(--gold); font-weight: 800; font-size: 15px; margin-top: 4px; }
.ad-contact { color: var(--muted); font-size: 13px; }
.ad-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(18,16,31,0.65); color: var(--gold); font-size: 24px; line-height: 1; cursor: pointer; padding: 0; }
.ad-arrow:hover { background: var(--gold); color: #1a1405; }
.ad-prev { left: 10px; }
.ad-next { right: 10px; }
/* Dots keep a small visual size but a 44px-friendly hit area: 6px of
   transparent padding around the dot, clipped so only the dot paints. */
.ad-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3; }
.ad-dot { width: 9px; height: 9px; border-radius: 999px; border: none; background: rgba(255,255,255,0.4); cursor: pointer; padding: 6px; background-clip: content-box; box-sizing: content-box; }
.ad-dot.active { width: 24px; background: var(--gold); }
.ad-arrow:focus-visible, .ad-dot:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (max-width: 639px) {
  .ad-logo { height: 40px; }
  .ad-logo-sintara { height: 56px; }
  .ad-logo-studio { height: 48px; }
  .ad-house-inner { padding: 12px 48px 34px; gap: 5px; }
  .ad-house-inner h2, .ad-caption h2 { font-size: 21px; }
  .ad-caption { padding: 14px 14px 38px 56px; }
  .ad-tag { top: 8px; left: 8px; }
  /* Bigger dots on phones — 9px dots are too small to tap reliably. */
  .ad-dots { gap: 8px; }
  .ad-dot { width: 12px; height: 12px; }
  .ad-dot.active { width: 30px; }
  /* The carousel event slide's mark must not crowd the caption on a
     390px screen. */
  .poster-slide-bg { padding-top: 12px; }
  .poster-slide-bg img { height: 56px; }
}
/* 10 dots cannot all be 44px wide in a 320px viewport — shrink the hit
   padding on very small screens so the row fits. The dots are secondary
   controls; placed after the base .ad-dot rules so it wins the cascade. */
@media (max-width: 360px) {
  .ad-dots { gap: 6px; }
  .ad-dot { padding: 4px; }
}

/* Branded poster placeholder for events with no photo — the gold ticket
   mark on an ink-to-gold gradient, KUJA + EVENT TICKETING in the logo's
   language. Used by the event card, the event page hero and the carousel
   event slide. */
.poster-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background:
    radial-gradient(circle at 50% 36%, rgba(232, 184, 75, 0.30), rgba(232, 184, 75, 0.05) 58%),
    linear-gradient(135deg, #1a1730 0%, #12101f 55%, #2b2650 100%);
  color: var(--gold); text-align: center; padding: 18px;
}
.poster-placeholder img { height: 84px; width: auto; }
.poster-word { font-family: Georgia, "Times New Roman", serif; font-size: 26px; font-weight: 700; letter-spacing: 0.24em; padding-left: 0.24em; color: #fff; }
.poster-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.34em; padding-left: 0.34em; color: var(--gold); }
/* The event hero itself carries the aspect ratio now (16:9 on phones,
   21:9 on desktop); the placeholder just fills it. */
.poster-hero img { height: 120px; }
.poster-hero .poster-word { font-size: 34px; }
.poster-hero .poster-tag { font-size: 13px; }
.poster-slide { position: absolute; inset: 0; }
.poster-slide img { height: 110px; }
/* Event slide (carousel): the caption already carries title/date/price,
   so the placeholder here is the gold mark only, up top — the full KUJA /
   EVENT TICKETING words would collide with the caption text in a 230px
   strip. */
.poster-slide-bg { justify-content: flex-start; padding-top: 18px; }
.poster-slide-bg img { height: 72px; }
.poster-slide-bg .poster-word, .poster-slide-bg .poster-tag { display: none; }
@media (min-width: 640px) { .poster-slide-bg img { height: 84px; } }
@media (max-width: 639px) {
  .poster-placeholder img { height: 64px; }
  .poster-word { font-size: 21px; }
  .poster-hero img { height: 84px; }
  .poster-hero .poster-word { font-size: 26px; }
  .poster-slide img { height: 76px; }
}

/* Event page — details + tickets side by side on desktop, stacked on phones.
   Cinematic 21:9 hero on desktop, 16:9 on phones. The ticket panel sticks
   while the visitor scrolls the details on desktop. */
.event-hero { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px; aspect-ratio: 16/9; }
/* The hero itself carries the aspect ratio; the photo / placeholder fill it. */
.event-hero > img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) { .event-hero { aspect-ratio: 21/9; } }
.event-layout { display: grid; gap: 20px; }
.event-details h1 { margin-top: 0; }
.event-tickets { margin-bottom: 0; }
@media (min-width: 720px) {
  .event-layout { grid-template-columns: 1.15fr 1fr; align-items: start; }
  .event-tickets { position: sticky; top: 76px; }
}
/* Details card — one labelled row per fact (date, time, doors, venue,
   organiser, category). Same facts the page already showed, now scannable. */
.details-card { padding: 6px 18px; }
.drow { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.drow:last-child { border-bottom: 0; }
.dlabel { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 2px; flex: none; }
.drow > span:last-child { text-align: right; }

/* Loading skeleton for the event page — never a blank page while fetching. */
.skel { border-radius: var(--radius); background: linear-gradient(90deg, var(--panel) 25%, var(--panel-2) 50%, var(--panel) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; margin-bottom: 12px; }
.skel-hero { aspect-ratio: 16/9; }
@media (min-width: 1024px) { .skel-hero { aspect-ratio: 21/9; } }
.skel-line { height: 18px; }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 20px 0; color: var(--muted); }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .skel { animation: none; }
  .event-card { transition: none; }
  .event-card:hover { transform: none; }
}
