/* ==========================================================================
   Pro pass — header search, richer cards, genre tiles, footer, rails header
   ========================================================================== */

/* header search */
.nav-search {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-width: 16rem;
  max-width: 22rem;
  flex: 1;
  height: 2.4rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  transition: border-color 0.2s, background 0.2s;
}
.nav-search:focus-within { border-color: var(--brand-line); background: rgba(0, 0, 0, 0.5); }
.nav-search svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.nav-search input {
  flex: 1; min-width: 0; background: none; border: 0; outline: none;
  font-size: 0.88rem; color: var(--text);
}
.nav-search input::-webkit-search-cancel-button { display: none; }
@media (min-width: 1080px) { .nav-search { display: flex; } }

/* section head with "see all" */
.rail__head { align-items: baseline; }
.rail__more {
  display: inline-flex; align-items: center; gap: 0.3rem;
  color: var(--muted); font-size: 0.82rem; font-weight: 600;
  padding: 0.25rem 0.6rem; border-radius: 8px; transition: color 0.2s, background 0.2s;
}
.rail__more:hover { color: var(--brand); background: rgba(57, 255, 20, 0.08); }
.rail__more svg { width: 14px; height: 14px; }

/* card hover meta */
.card__hover {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 4;
  padding: 1.6rem 0.6rem 0.55rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.55) 60%, transparent);
  display: grid; gap: 0.15rem;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.card:hover .card__hover, .card:focus-visible .card__hover { opacity: 1; transform: none; }
.card__hover b { font-size: 0.8rem; font-weight: 700; color: var(--text); line-height: 1.5; }
.card__hover small { font-size: 0.7rem; color: var(--muted); }

/* genre tiles */
.genre-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(9rem, 1fr);
  gap: 0.7rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 0.6rem;
}
.genre-row::-webkit-scrollbar { display: none; }
.genre-tile {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 14px; min-height: 6.4rem; padding: 0.9rem;
  display: grid; align-content: end; gap: 0.1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.25s, border-color 0.25s;
}
.genre-tile::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 120% at 15% 10%, var(--gt-a, rgba(57, 255, 20, 0.35)), transparent 62%),
    linear-gradient(160deg, var(--gt-b, #0f1a10), #070a07);
}
.genre-tile:hover { transform: translateY(-3px); border-color: var(--brand-line); }
.genre-tile b { font-size: 1rem; font-weight: 700; }
.genre-tile span { font-size: 0.74rem; color: var(--muted); }
.genre-tile em {
  position: absolute; inset-inline-end: 0.7rem; top: 0.5rem; font-style: normal;
  font-size: 2.2rem; opacity: 0.22; line-height: 1;
}

/* footer */
.site-footer { margin-top: 3rem; border-top: 1px solid var(--line); background: linear-gradient(to bottom, transparent, rgba(57, 255, 20, 0.03)); }
.site-footer__grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem;
  padding: 2.4rem 0 1.6rem;
}
.site-footer__brand { display: grid; gap: 0.6rem; align-content: start; }
.site-footer__brand p { color: var(--muted); font-size: 0.84rem; max-width: 22rem; }
.site-footer h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.6rem; }
.site-footer ul { display: grid; gap: 0.4rem; }
.site-footer a { color: var(--muted); font-size: 0.84rem; }
.site-footer a:hover { color: var(--brand); }
.site-footer__bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding: 1rem 0 1.4rem;
  color: var(--muted); font-size: 0.78rem;
}
@media (max-width: 820px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
  .site-footer__brand { grid-column: 1 / -1; }
}

/* hero slide progress */
.hero__dot { position: relative; overflow: hidden; }
.hero__dot[aria-current='true']::after {
  content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35);
  transform-origin: right center; animation: dotfill 8s linear forwards;
}
@keyframes dotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* search filters */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.4rem; }
.filter-bar select {
  height: 2.4rem; padding: 0 0.8rem; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font-size: 0.85rem;
}

/* rail actions row */
.rail__actions { display: flex; align-items: center; gap: 0.6rem; }

/* ==========================================================================
   Punch pass — keep MrFilm's green, but deeper blacks, bigger type & cards
   ========================================================================== */

:root {
  --bg: #040605;
  --bg-elev: #080b08;
  --surface: #0b0f0b;
  --surface-2: #121712;
  --surface-3: #182018;
  --line: #1b241b;
  --line-strong: #2a362a;
  --text: #f4f8f4;
  --brand: #39ff14;
}

body {
  background:
    radial-gradient(60rem 26rem at 88% -12%, rgba(57, 255, 20, 0.16), transparent 60%),
    radial-gradient(46rem 24rem at -6% 104%, rgba(57, 255, 20, 0.08), transparent 70%),
    var(--bg);
}

/* hero: bigger, more cinematic */
.hero { min-height: min(66vh, 600px); }
.hero__title {
  font-size: clamp(2.1rem, 5.6vw, 4.1rem);
  line-height: 1.32;
  text-shadow: 0 10px 44px rgba(0, 0, 0, 0.8);
}
.hero__badge { box-shadow: 0 0 26px rgba(57, 255, 20, 0.45); }
.hero__desc { font-size: 1rem; }

/* buttons: deeper glow */
.btn { box-shadow: 0 10px 30px -16px rgba(57, 255, 20, 0.9); }
.btn:hover:not(:disabled) { box-shadow: 0 0 26px rgba(57, 255, 20, 0.55); }

/* bigger posters */
.rail__track { grid-auto-columns: clamp(10.2rem, 17vw, 13.4rem); }
.card__poster { border-radius: 14px; }
.card:hover .card__poster,
.card:focus-visible .card__poster {
  box-shadow: 0 24px 46px -22px rgba(0, 0, 0, 1), 0 0 30px rgba(57, 255, 20, 0.22);
}

/* continue watching: clearer progress */
.card__progress { height: 4px; }
.card__progress i { box-shadow: 0 0 10px rgba(57, 255, 20, 0.7); }

.rail__title::before { box-shadow: 0 0 14px rgba(57, 255, 20, 0.6); }
.nav a[aria-current='page']::after { box-shadow: 0 0 12px var(--brand); }
.genre-tile:hover { box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 1), 0 0 24px rgba(57, 255, 20, 0.15); }
