/* ============================================================
   HOME — hero (poster marquee) + open ballots grid
   ============================================================ */

/* ------------------- hero ------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 52px;
  text-align: center;
  isolation: isolate;
}

.hero__inner {
  position: relative;
  z-index: 2;
}

/* ----- moving poster wall (Netflix sign-in look) ----- */
.hero__marquee {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity .8s var(--ease);
  pointer-events: none;
}
.hero__marquee.is-ready { opacity: .26; }

/* vignette so the headline stays readable over the posters */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 78% at 50% 34%, transparent 0%, var(--bg) 74%),
    linear-gradient(to bottom, var(--bg), transparent 18% 82%, var(--bg));
}

.marq__row { display: flex; overflow: hidden; }
.marq__track {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
  padding-right: 12px;
  animation: marq 150s linear infinite;
  will-change: transform;
}
.marq__row--b .marq__track { animation-direction: reverse; }

@keyframes marq {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marq__img {
  height: 132px;
  width: auto;
  flex: 0 0 auto;
  object-fit: cover;
  background: var(--surface-2);
}

@media (prefers-reduced-motion: reduce) {
  .marq__track { animation: none; }
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.hero__title {
  margin-top: 14px;
  font-size: clamp(34px, 7vw, 66px);
  font-weight: 700;
  letter-spacing: .005em;
  text-transform: uppercase;
  line-height: .98;
}
.hero__title .loved { color: var(--love); }
.hero__title .hated { color: var(--hate); }
.hero__title .amp {
  display: inline-block;
  margin: 0 .14em;
  color: var(--ink-dim);
  font-weight: 500;
  font-size: .46em;
  vertical-align: .22em;
  letter-spacing: 0;
}
.hero__title-tail {
  display: block;
  margin-top: .14em;
  font-size: .42em;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--ink);
}

.hero__sub {
  margin: 18px auto 0;
  max-width: 500px;
  font-size: 15px;
  color: var(--ink-dim);
}
.hero__sub b { color: var(--ink); font-weight: 600; }

.hero__hint {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.hero__hint::before,
.hero__hint::after {
  content: "";
  width: 38px;
  height: 1px;
  background: var(--line);
}

/* ------------------- ballots ------------------- */
.ballots { padding-bottom: 28px; }

.ballots__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.ballots__title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .02em;
}

.ballot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* lean card: poster + title + current Loved / Hated leaders (no radius) */
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  transition: transform .22s var(--ease), border-color .22s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--ink) 26%, transparent);
}

.card__art {
  aspect-ratio: 2 / 1;
  background: var(--surface-2) center 18% / cover no-repeat;
  position: relative;
}
.card__art::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 70%;
  background: linear-gradient(to top, var(--surface) 6%, transparent);
}
.card__art::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  height: 3px;
  background: linear-gradient(90deg, var(--love) 0 50%, var(--hate) 50% 100%);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 13px 16px 16px;
  margin-top: -34px;            /* lift title over the poster fade */
  position: relative;
  z-index: 1;
}

.card__network {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.card__title {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.05;
}

.card__leaders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 2px;
}
.lead {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 9px;
  border-left: 2px solid var(--side);
  min-width: 0;
}
.lead--love { --side: var(--love); }
.lead--hate { --side: var(--hate); }
.lead__k {
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--side);
}
.lead__v {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card--ghost {
  border-style: dashed;
  background: transparent;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 22px;
  gap: 8px;
}
.card--ghost .card__body { margin-top: 0; }
.card--ghost .card__title { font-size: 18px; color: var(--ink-dim); }
.card--ghost .card__sub { font-size: 13px; color: var(--ink-dim); margin: 0; }

@media (max-width: 560px) {
  .marq__img { height: 104px; }
  .hero { padding: 44px 0 40px; }
}

/* ============================================================
   SUGGESTIONS — scrolling ticker + floating button + popover
   ============================================================ */

.ticker {
  margin-top: 44px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 45%, transparent);
}
.ticker__label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 16px 0 20px;
  border-right: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--love);
  white-space: nowrap;
}
.ticker__vp {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.ticker__track {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker 42s linear infinite;
  will-change: transform;
}
.ticker__track:hover { animation-play-state: paused; }
.ticker__item {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink-dim);
  padding: 13px 28px;
}
.ticker__item::before {
  content: "";
  position: absolute;
  left: 2px; top: 50%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--love);
  opacity: .55;
  transform: translateY(-50%);
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
}

/* floating button */
.fab {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--love), color-mix(in srgb, var(--love) 60%, #fff));
  color: #0a0a0b;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .04em;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(200, 16, 46, .32);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.fab:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(200, 16, 46, .45); }
.fab__plus { font-size: 16px; line-height: 1; }

/* popover form */
.suggest-pop {
  position: fixed;
  right: 20px; bottom: 74px;
  z-index: 60;
  width: min(320px, calc(100vw - 40px));
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: 0 22px 54px rgba(0, 0, 0, .55);
}
.suggest-pop__title { margin: 0 0 10px; font-family: var(--font-display); font-weight: 800; font-size: 14px; }
#suggest-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}
#suggest-input:focus { outline: none; border-color: var(--love); }
.suggest-pop__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}
.btn-ghost:hover { color: var(--ink); }
.btn-go {
  background: var(--love);
  color: #0a0a0b;
  border: 0;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
}
.suggest-pop__note { margin: 10px 0 0; font-size: 11px; color: var(--ink-dim); }

@media (max-width: 560px) {
  .fab { right: 14px; bottom: 14px; padding: 11px 15px; font-size: 12.5px; }
  .suggest-pop { right: 14px; bottom: 66px; }
}
