/* =========================================================
   ELONZIV — results site. Same look as the academy (black + gold),
   but standalone: nothing here depends on the academy site.
   ========================================================= */
:root {
  --ink: #0e0e10;
  --ink-2: #17171b;
  --gold: #d4a24c;
  --gold-2: #f0c873;
  --cream: #f7f2e8;
  --paper: #ffffff;
  --text: #16161a;
  --muted: #5e5e66;
  --line: #e7e1d4;
  --wa: #25d366;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 28px rgba(20,16,8,.08);
  --max: 1180px;
  --header-h: 62px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
body { margin: 0; font-family: "Rubik", system-ui, sans-serif; color: var(--text); background: var(--paper); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.kicker { display: block; color: var(--muted); font-size: .92rem; font-weight: 500; margin-bottom: .5em; }
.gold { color: var(--gold-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: 14px 26px; border-radius: 999px; border: 0; font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap; transition: transform .15s ease, box-shadow .15s ease; }
.btn:active { transform: scale(.98); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--ink); }
.btn-gold:hover { box-shadow: 0 10px 26px rgba(212,162,76,.45); }
.btn-ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-lg { padding: 18px 30px; font-size: 1.12rem; }

/* Header */
.top { position: sticky; top: 0; z-index: 40; height: var(--header-h); background: var(--ink); color: #fff; }
.top .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { font-weight: 900; font-size: 1.35rem; letter-spacing: .04em; text-decoration: none; }
.logo span { color: var(--gold-2); }
.top .btn { padding: 9px 16px; font-size: .9rem; }

/* Hero */
.hero { background: radial-gradient(110% 90% at 85% 0%, #3b2a6e 0%, transparent 55%), radial-gradient(90% 80% at 0% 100%, rgba(212,162,76,.45) 0%, transparent 55%), var(--ink); color: #fff; padding: 52px 0 60px; text-align: center; }
.hero h1 { font-size: clamp(2rem, 7vw, 3.4rem); line-height: 1.12; margin: 14px 0 12px; }
.hero p { color: #c8c8cf; font-size: 1.1rem; max-width: 620px; margin: 0 auto; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: var(--gold-2); padding: 6px 14px; border-radius: 99px; font-weight: 700; font-size: .92rem; }
.hero-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 22px; color: #d8d8de; font-size: .95rem; }
.stats b { display: block; color: var(--gold-2); font-size: 1.5rem; font-weight: 800; }

/* Filter bar */
.rs-bar { position: sticky; top: var(--header-h); z-index: 30; background: rgba(247,242,232,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.rs-bar .container { display: flex; align-items: center; gap: 8px; padding-top: 10px; padding-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.rs-chip { flex: none; white-space: nowrap; border: 1.5px solid var(--line); background: #fff; color: var(--text); border-radius: 999px; padding: 6px 14px; font-size: .9rem; }
.rs-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Feed: an even wall of tiles, loaded in batches as the reader scrolls */
.feed { background: var(--cream); padding: 18px 0 50px; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; gap: 8px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.tile { position: relative; aspect-ratio: 4 / 5; border: 0; padding: 0; border-radius: 14px; overflow: hidden; background: var(--ink); cursor: pointer; box-shadow: var(--shadow); text-align: right; color: #fff; }
.tile img, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile:hover img, .tile:hover video { transform: scale(1.04); }
.tile-cap { position: absolute; inset: auto 0 0 0; padding: 34px 10px 9px; background: linear-gradient(transparent, rgba(0,0,0,.82)); display: flex; flex-direction: column; line-height: 1.3; }
.tile-cap b { font-size: .95rem; }
.tile-cap span { font-size: .78rem; color: #d6d6dc; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rs-play { position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(14,14,16,.66); display: grid; place-items: center; }
.rs-play::before { content: ""; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; margin-left: 4px; }
.rs-amount { position: absolute; top: 8px; right: 8px; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--ink); font-weight: 800; border-radius: 999px; padding: 3px 10px; font-size: .82rem; }
.loader { height: 1px; }
.rs-share { border: 0; background: rgba(255,255,255,.12); color: #fff; border-radius: 8px; padding: 5px 10px; font-size: .82rem; white-space: nowrap; }

/* In-feed call to action */
.rs-cta { grid-column: 1 / -1; margin: 8px 0; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 26px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.rs-cta h3 { margin: 0 0 4px; font-size: clamp(1.25rem, 4vw, 1.6rem); }
.rs-cta p { margin: 0; color: #c9c9d1; }
.rs-cta-txt { flex: 1 1 280px; }
.rs-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }

.final { background: var(--ink); color: #f2f2f4; padding: 56px 0; text-align: center; }
.final .kicker { color: #a9a9b2; }
.final p { color: #c9c9d1; }
.final .rs-cta-btns { justify-content: center; margin-top: 18px; }
.foot { background: var(--ink-2); color: #8d8d96; text-align: center; font-size: .85rem; padding: 18px 16px 90px; }

/* Viewer: video plays here, images open full size */
.viewer { position: fixed; inset: 0; z-index: 90; background: rgba(8,8,10,.97); display: none; place-items: center; padding: 56px 12px 16px; overflow-y: auto; }
.viewer.open { display: grid; }
.viewer-in { width: 100%; max-width: 900px; }
.viewer.v .viewer-in { max-width: 420px; }
.viewer-media { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; }
.viewer.v .viewer-media { aspect-ratio: 9 / 16; max-height: 76vh; margin: 0 auto; }
.viewer.img .viewer-media { aspect-ratio: auto; background: none; }
.viewer-media iframe, .viewer-media video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.viewer.img .viewer-media img { max-height: 72vh; margin: 0 auto; border-radius: 14px; }
.viewer-cap { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #fff; margin: 12px 2px; }
.viewer-cap b { display: block; font-size: 1.1rem; }
.viewer-cap span { color: #c9c9d1; font-size: .92rem; }
.viewer-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.viewer-cta .btn { flex: 1 1 160px; }
.viewer-x { position: fixed; top: 10px; left: 10px; background: #fff; border: 0; border-radius: 50%; width: 40px; height: 40px; font-size: 1.2rem; z-index: 2; }

/* Sticky bar + floating WhatsApp */
.sticky { position: fixed; left: 50%; bottom: 14px; transform: translate(-50%, 160%); z-index: 60; width: calc(100% - 24px); max-width: 560px; background: var(--ink); color: #fff; border-radius: 999px; box-shadow: 0 10px 40px rgba(0,0,0,.3); display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px; padding-inline-start: 18px; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.sticky.show { transform: translate(-50%, 0); }
.sticky span { font-size: .92rem; } .sticky span b { color: var(--gold-2); }
.sticky .btn { padding: 11px 18px; font-size: .92rem; }
.wa-float { position: fixed; left: 16px; bottom: 88px; z-index: 55; width: 54px; height: 54px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
