﻿/* ═══════════════════════════════════════════════
   VELARIS — style.css
   ═══════════════════════════════════════════════ */

/* ── Reset / Base ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #09090e;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.028 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  color: #e8e8e8;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #666; }

/* ── Navbar (v2 — moderna) ───────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 14, .55);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,.05);
  height: 64px;
  transition: background .25s ease, border-color .25s ease;
}
.navbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(229,9,20,.35) 50%, transparent 100%);
  opacity: .5;
}
.navbar.is-scrolled {
  background: rgba(10, 10, 14, .82);
  border-bottom-color: rgba(255,255,255,.07);
}

/* Páginas com hero topo (home/filme/serie) já têm conteúdo full-bleed, então não recebem padding.
   Páginas internas sem hero recebem padding pra não ficar embaixo da navbar. */
body { padding-top: 64px; }
body.has-hero { padding-top: 0; }
.navbar-inner {
  display: flex; align-items: center;
  height: 100%; padding: 0 28px; gap: 18px;
  max-width: 1900px; margin: 0 auto;
}

/* Logo */
.navbar-logo { display: flex; align-items: center; flex-shrink: 0; position: relative; }
.navbar-logo::before {
  content: ""; position: absolute; left: -10px; top: 50%;
  width: 4px; height: 22px; transform: translateY(-50%);
  background: linear-gradient(180deg, #e50914 0%, #ff4d5b 100%);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(229,9,20,.7);
}
.logo-main {
  font-family: 'Orbitron', 'Segoe UI', sans-serif;
  font-size: 1.4rem; font-weight: 900; letter-spacing: 4px;
  color: #fff;
  background: linear-gradient(90deg, #fff 0%, #fff 40%, #ff4d5b 70%, #e50914 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  transition: filter .25s;
}
.navbar-logo:hover .logo-main { filter: drop-shadow(0 0 10px rgba(229,9,20,.55)); }

/* Hub principal: Inicio, Filmes, Loja e Minecraft */
.navbar-hub {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  margin-left: 4px;
}
.navbar-hub-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 8px;
  color: #b8b8c0;
  font-size: .86rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.navbar-hub-link::before {
  display: none;
}
.navbar-hub-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #e50914 0%, #ff4d5b 100%);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s cubic-bezier(.6,.2,.2,1);
}
.navbar-hub-link:hover {
  color: #fff;
  background: rgba(255,255,255,.06);
  transform: translateY(-1px);
}
.navbar-hub-link:hover::after {
  transform: scaleX(1);
}
.navbar-hub-link--filmes.active {
  color: #fff;
  background: rgba(229,9,20,.08);
  font-weight: 700;
}
.navbar-hub-link--filmes.active::after {
  transform: scaleX(1);
  box-shadow: 0 0 10px rgba(229,9,20,.5);
}

/* Links */
.navbar-links {
  display: flex; align-items: center; gap: 2px; flex: 1;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}
.navbar-links li a {
  position: relative; display: block;
  padding: 8px 14px; border-radius: 8px;
  font-size: .88rem; font-weight: 500; color: #b8b8c0;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.navbar-links li a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #e50914 0%, #ff4d5b 100%);
  transform: scaleX(0); transform-origin: center;
  transition: transform .25s cubic-bezier(.6,.2,.2,1);
}
.navbar-links li a:hover { color: #fff; transform: translateY(-1px); }
.navbar-links li a:hover::after { transform: scaleX(1); }
.navbar-links li a.active {
  color: #fff; font-weight: 700;
  background: rgba(229,9,20,.08);
}
.navbar-links li a.active::after { transform: scaleX(1); box-shadow: 0 0 10px rgba(229,9,20,.5); }

/* Sugestão (botão pill com gradiente) */
.navbar-suggest-item { margin-left: 6px; }
.navbar-suggest-link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(229,9,20,.18) 0%, rgba(229,9,20,.08) 100%);
  border: 1px solid rgba(229,9,20,.45);
  color: #ff7a83 !important; font-size: .82rem; font-weight: 700;
  letter-spacing: .02em;
  transition: all .2s ease;
  overflow: hidden;
}
.navbar-suggest-link::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, #e50914 0%, #ff4d5b 100%);
  opacity: 0; transition: opacity .25s ease;
  z-index: -1;
}
.navbar-suggest-link:hover {
  color: #fff !important; border-color: transparent;
  box-shadow: 0 6px 18px rgba(229,9,20,.4);
  transform: translateY(-1px);
}
.navbar-suggest-link:hover::before { opacity: 1; }

/* Search */
.navbar-search { display: flex; align-items: center; margin-left: auto; }
.navbar-search form {
  display: flex; align-items: center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px; overflow: hidden; height: 38px;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, width .25s ease;
}
.navbar-search form:hover { background: rgba(255,255,255,.07); }
.navbar-search form:focus-within {
  border-color: rgba(229,9,20,.6);
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 3px rgba(229,9,20,.12);
}
.navbar-search input {
  background: transparent; border: none; color: #eee;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: .86rem; outline: none; padding: 0 6px 0 4px; width: 180px;
  transition: width .25s ease;
}
.navbar-search form:focus-within input { width: 220px; }
.navbar-search input::placeholder { color: #6c6c75; }
.navbar-search button {
  background: transparent; border: none; color: #9a9aa3;
  display: flex; align-items: center; padding: 0 14px; height: 100%;
  transition: color .15s;
}
.navbar-search button:hover { color: #fff; }
.search-icon { width: 16px; height: 16px; fill: currentColor; }

/* Hamburger */
.nav-hamburger {
  display: none; position: relative;
  width: 42px; height: 42px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  align-items: center; justify-content: center;
  cursor: pointer; margin-left: auto;
  transition: background .2s ease, border-color .2s ease;
}
.nav-hamburger:hover { background: rgba(255,255,255,.1); }
.nav-hamburger.open { background: rgba(229,9,20,.18); border-color: rgba(229,9,20,.45); }
.nav-hamburger span {
  position: absolute; left: 50%; top: 50%;
  width: 20px; height: 2px;
  background: #e8e8e8; border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .3s cubic-bezier(.5,.1,.2,1.4), opacity .2s;
}
.nav-hamburger span:nth-child(1) { transform: translate(-50%, calc(-50% - 6px)); }
.nav-hamburger span:nth-child(3) { transform: translate(-50%, calc(-50% + 6px)); }
.nav-hamburger.open span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); background: #fff; }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: translate(-50%, -50%) scale(0); }
.nav-hamburger.open span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); background: #fff; }

/* Overlay */
.nav-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(5,5,10,.7);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  z-index: 200;
  opacity: 0; transition: opacity .3s ease;
}
.nav-overlay.open { display: block; opacity: 1; }

/* Drawer */
.nav-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: 86%; max-width: 320px;
  background:
    radial-gradient(ellipse at top left, rgba(229,9,20,.12) 0%, transparent 55%),
    linear-gradient(180deg, #14141c 0%, #0c0c12 100%);
  border-right: 1px solid rgba(229,9,20,.18);
  box-shadow: 30px 0 60px rgba(0,0,0,.6);
  z-index: 300; display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform .42s cubic-bezier(.2,.85,.25,1);
  overflow-y: auto; overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 22px 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: relative;
}
.nav-drawer-header::after {
  content: ""; position: absolute; left: 22px; right: 22px; bottom: 0; height: 1px;
  background: linear-gradient(90deg, rgba(229,9,20,.6) 0%, transparent 100%);
}
.nav-drawer-logo .logo-main { font-size: 1.3rem; }
.nav-drawer-close {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  color: #ccc; padding: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s, transform .2s;
}
.nav-drawer-close:hover { background: #e50914; border-color: #e50914; color: #fff; transform: rotate(90deg); }

.nav-drawer-hub {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 12px 8px;
}
.nav-drawer-hub-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: #d5d5de;
  font-size: .86rem;
  font-weight: 800;
}
.nav-drawer-hub-link::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9ca3af;
  box-shadow: 0 0 10px rgba(156,163,175,.5);
}
.nav-drawer-hub-link--filmes::before { background: #ef4444; box-shadow: 0 0 10px rgba(239,68,68,.65); }
.nav-drawer-hub-link--loja::before { background: #60a5fa; box-shadow: 0 0 10px rgba(96,165,250,.7); }
.nav-drawer-hub-link--minecraft::before { background: #22c55e; box-shadow: 0 0 10px rgba(34,197,94,.65); }
.nav-drawer-hub-link--admin::before { background: #f59e0b; box-shadow: 0 0 10px rgba(245,158,11,.65); }
.nav-drawer-hub-link.active {
  color: #fff;
  border-color: rgba(239,68,68,.35);
  background: rgba(229,9,20,.16);
}

.nav-drawer-nav { display: flex; flex-direction: column; padding: 14px 12px; flex: 1; gap: 2px; }
.nav-drawer-link {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px; border-radius: 12px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: .95rem; font-weight: 500; color: #b8b8c0;
  transition: background .2s ease, color .2s ease, transform .2s ease;
  opacity: 0; transform: translateX(-12px);
}
.nav-drawer.open .nav-drawer-link {
  animation: drawerSlideIn .45s cubic-bezier(.2,.85,.25,1) forwards;
  animation-delay: calc(.08s + var(--i, 0) * .045s);
}
@keyframes drawerSlideIn {
  to { opacity: 1; transform: none; }
}
.nav-drawer-link:hover {
  background: rgba(255,255,255,.05);
  color: #fff;
}
.nav-drawer-link:active { transform: scale(.98); }
.nav-drawer-link.active {
  background: linear-gradient(90deg, rgba(229,9,20,.25) 0%, rgba(229,9,20,.05) 100%);
  color: #fff; font-weight: 700;
}
.nav-drawer-link.active::before {
  content: ""; position: absolute; left: 0; top: 25%; bottom: 25%;
  width: 3px; border-radius: 2px;
  background: linear-gradient(180deg, #e50914, #ff4d5b);
  box-shadow: 0 0 12px rgba(229,9,20,.7);
}
.nav-drawer-ico {
  width: 22px; height: 22px; flex: 0 0 22px;
  color: #888; transition: color .2s, transform .2s;
}
.nav-drawer-link:hover .nav-drawer-ico { color: #fff; transform: scale(1.1); }
.nav-drawer-link.active .nav-drawer-ico { color: #ff4d5b; }
.nav-drawer-link-label { flex: 1; }
.nav-drawer-link-arrow {
  width: 14px; height: 14px; flex: 0 0 14px;
  color: #555; opacity: 0;
  transition: opacity .2s, transform .2s, color .2s;
}
.nav-drawer-link:hover .nav-drawer-link-arrow,
.nav-drawer-link.active .nav-drawer-link-arrow {
  opacity: 1; transform: translateX(2px); color: #ff4d5b;
}

.nav-drawer-search {
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.nav-drawer-search form {
  display: flex; align-items: center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px; overflow: hidden; height: 42px;
  transition: border-color .2s, box-shadow .2s;
}
.nav-drawer-search form:focus-within {
  border-color: rgba(229,9,20,.55);
  box-shadow: 0 0 0 3px rgba(229,9,20,.12);
}
.nav-drawer-search input {
  flex: 1; background: none; border: none; color: #eee;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: .88rem; outline: none; padding: 0 4px 0 18px;
}
.nav-drawer-search input::placeholder { color: #6c6c75; }
.nav-drawer-search button {
  background: none; border: none; color: #9a9aa3;
  padding: 0 16px; height: 100%;
  display: flex; align-items: center; transition: color .2s;
}
.nav-drawer-search button:hover { color: #fff; }

.nav-drawer-suggest { padding: 8px 18px 22px; }
.nav-suggest-btn {
  position: relative; overflow: hidden;
  width: 100%;
  background: linear-gradient(135deg, #e50914 0%, #ff4d5b 100%);
  border: 0; border-radius: 12px;
  color: #fff; font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: .95rem; font-weight: 700;
  padding: 13px; text-align: center;
  box-shadow: 0 6px 20px rgba(229,9,20,.35);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s;
}
.nav-suggest-btn::after {
  content: ""; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.25) 50%, transparent 100%);
  transition: left .55s ease;
}
.nav-suggest-btn:hover { filter: brightness(1.08); box-shadow: 0 8px 26px rgba(229,9,20,.5); }
.nav-suggest-btn:hover::after { left: 110%; }
.nav-suggest-btn:active { transform: scale(.98); }

/* ── Hero ────────────────────────────────────── */
.hero { position: relative; overflow: hidden; height: 600px; background: #000; }
.hero-track {
  display: flex;
  width: 100%; height: 100%;
  will-change: transform;
  transition: transform .7s cubic-bezier(.4,0,.2,1);
}
.hero-slide {
  flex: 0 0 100%;
  position: relative;
  background-size: cover;
  background-position: center 20%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.15) 75%, transparent 100%),
    linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 35%, transparent 65%);
}
.hero-content {
  position: relative; z-index: 2; display: flex; flex-direction: column;
  justify-content: flex-end; height: 100%; padding: 0 6% 60px; max-width: 600px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(229,9,20,.12);
  border: 1px solid rgba(229,9,20,.35);
  color: #ff7a83;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: .68rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 6px;
  margin-bottom: 14px; width: fit-content;
  backdrop-filter: blur(4px);
}
.hero-badge::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: #e50914;
  box-shadow: 0 0 6px #e50914;
  animation: heroBadgePulse 2s ease-in-out infinite;
}
@keyframes heroBadgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.hero-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800; line-height: 1.08; margin-bottom: 12px;
  text-shadow: 0 2px 30px rgba(0,0,0,.8);
  letter-spacing: -.03em;
}
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .88rem; color: #ccc; margin-bottom: 14px; }
.hero-score { color: #f5c518; font-weight: 700; font-size: .92rem; }
.hero-genre {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px; padding: 3px 10px; font-size: .78rem;
}
.hero-desc {
  font-size: .93rem; color: #ccc; line-height: 1.65; margin-bottom: 22px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  max-width: 520px;
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero arrows */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; background: rgba(0,0,0,.45);
  border: 2px solid rgba(255,255,255,.25); border-radius: 50%;
  color: #fff; width: 52px; height: 52px; font-size: 1.2rem;
  cursor: pointer; opacity: 0; transition: opacity .25s, background .2s;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.hero:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: rgba(0,0,0,.75); border-color: rgba(255,255,255,.55); }
.hero-arrow--left  { left: 20px; }
.hero-arrow--right { right: 20px; }

/* Dots hidden — using arrows instead */
.hero-dots { display: none; }

/* ── Buttons ─────────────────────────────────── */
.btn-play, .btn-watch, .btn-info {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 10px; font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: .88rem; font-weight: 700;
  padding: 11px 22px; cursor: pointer;
  position: relative; overflow: hidden;
  border: none; transition: transform .15s ease, box-shadow .2s ease, filter .15s;
  letter-spacing: .01em;
}
.btn-play, .btn-watch {
  background: #e50914; color: #fff;
  box-shadow: 0 4px 18px rgba(229,9,20,.35);
}
.btn-play::after, .btn-watch::after {
  content: ""; position: absolute; top: 0; left: -100%; width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.22) 50%, transparent 100%);
  transition: left .5s ease;
}
.btn-play:hover, .btn-watch:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(229,9,20,.55);
}
.btn-play:hover::after, .btn-watch:hover::after { left: 110%; }
.btn-play:active, .btn-watch:active { transform: translateY(0); }
.btn-watch { margin-top: 8px; }
.btn-info {
  background: rgba(255,255,255,.08);
  color: #e8e8e8; border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.btn-info:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.28);
  transform: translateY(-1px);
}

/* ── Rows ────────────────────────────────────── */
.home-rows, .catalog-rows {
  padding: 48px 4% 48px;
  counter-reset: section-counter;
}
.section { margin-bottom: 52px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; gap: 14px;
}
.section-title {
  position: relative;
  font-family: 'Space Grotesk', 'Inter', 'Segoe UI', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  color: #fff;
  display: flex; align-items: center; gap: 10px;
  counter-increment: section-counter;
  letter-spacing: -.01em;
}
.section-title::before {
  content: counter(section-counter, decimal-leading-zero);
  font-family: 'Space Grotesk', monospace;
  font-size: .65rem; font-weight: 700;
  color: #e50914;
  letter-spacing: .1em;
  opacity: .75;
  flex-shrink: 0;
  margin-top: 1px;
}
.section-title a {
  color: #fff; transition: color .2s ease;
  display: inline-flex; align-items: center; gap: 7px;
}
.section-title a svg {
  width: 13px; height: 13px; opacity: 0;
  transform: translateX(-4px);
  transition: opacity .22s ease, transform .22s ease;
  color: #ff4d5b; flex-shrink: 0;
}
.section-title a:hover { color: #fff; }
.section-title a:hover svg { opacity: 1; transform: translateX(0); }
.row-controls { display: none; }
.row-nav { display: none; }

/* ── Netflix-style row arrows ────────────────── */
.row-wrap {
  position: relative;
}
.row-arrow {
  position: absolute;
  top: 0; bottom: 0;
  width: 52px;
  z-index: 10;
  background: linear-gradient(90deg, rgba(15,15,15,.95) 0%, rgba(15,15,15,0) 100%);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.row-wrap:hover .row-arrow { opacity: 1; }
.row-arrow--left  { left: 0; background: linear-gradient(90deg, rgba(15,15,15,.95) 0%, rgba(15,15,15,0) 100%); }
.row-arrow--right { right: 0; background: linear-gradient(270deg, rgba(15,15,15,.95) 0%, rgba(15,15,15,0) 100%); }
.row-arrow:hover { opacity: 1 !important; }
.row-arrow[hidden] { display: none; }
.row-track {
  display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  padding: 18px 2px 22px; margin: -14px 0;
  scroll-snap-type: x mandatory;
}
.row-track::-webkit-scrollbar { display: none; }

/* ── Cards ───────────────────────────────────── */
.card {
  position: relative; flex: 0 0 calc(12.5% - 13px);
  min-width: 130px;
  border-radius: 12px; overflow: hidden; scroll-snap-align: start;
  cursor: pointer;
  background: #111;
  transition: transform .35s cubic-bezier(.2,.85,.25,1),
              box-shadow .35s ease,
              z-index 0s .35s;
  z-index: 1;
}
.card::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 12px; pointer-events: none;
  border: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.card:hover {
  /* transform controlado pelo Motion One (animations.js) */
  box-shadow: 0 16px 36px rgba(0,0,0,.65), 0 0 0 1px rgba(229,9,20,.4);
  z-index: 5;
}
.card:hover::after { border-color: rgba(229,9,20,.55); }
.card img {
  width: 100%; aspect-ratio: 2/3; object-fit: cover; background: #222;
  transition: transform .5s ease, filter .35s ease;
}
.card:hover img { transform: scale(1.03); filter: saturate(1.12) brightness(1.04); }

.card-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.5) 25%, transparent 55%);
  border-radius: 12px;
  opacity: .85;
  transition: opacity .3s ease;
}
.card:hover .card-overlay { opacity: 1; }
.card-name {
  position: absolute; bottom: 28px; left: 0; right: 0; padding: 0 10px;
  font-family: 'Inter','Segoe UI',sans-serif;
  font-size: .8rem; font-weight: 600; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0,0,0,.9);
  transform: translateY(2px); opacity: .95;
  transition: transform .3s ease, opacity .3s ease;
}
.card:hover .card-name { transform: translateY(0); opacity: 1; }
.card-score {
  position: absolute; bottom: 9px; left: 10px;
  display: inline-flex; align-items: center; gap: 4px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: .72rem; color: #fbbf24; font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,.9);
  background: rgba(0,0,0,.45);
  padding: 2px 6px; border-radius: 5px;
  backdrop-filter: blur(4px);
}
.card-tag-launch {
  position: absolute; top: 9px; left: 9px; z-index: 2;
  background: linear-gradient(135deg, #e50914 0%, #ff4d5b 100%);
  color: #fff;
  font-family: 'Inter','Segoe UI',sans-serif;
  font-size: .6rem; font-weight: 800;
  letter-spacing: .1em; padding: 3px 8px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(229,9,20,.5);
  animation: cardTagPulse 2.4s ease-in-out infinite;
}
@keyframes cardTagPulse {
  0%,100% { box-shadow: 0 4px 12px rgba(229,9,20,.5); }
  50%     { box-shadow: 0 4px 18px rgba(229,9,20,.8), 0 0 22px rgba(229,9,20,.35); }
}

/* ── Grid ────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px,1fr)); gap: 14px; padding: 0 4% 40px; }
.grid-card { position: relative; border-radius: 9px; overflow: hidden; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.grid-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.grid-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; background: #222; }
.grid-card-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg,rgba(0,0,0,.85) 0%,transparent 100%); padding: 28px 8px 8px;
}
.grid-card-title { font-size: .8rem; font-weight: 600; color: #fff; }
.grid-card-meta { font-size: .72rem; color: #f5c518; margin-top: 2px; }

/* ── Category grid (canais) ──────────────────── */
.category-grid {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(170px,1fr));
  gap: 16px; padding: 8px 4% 48px;
  width: min(100%, 1800px); margin: 0 auto;
}
.category-card {
  position: relative; display: flex; flex-direction: column;
  align-items: stretch; justify-content: space-between;
  background: linear-gradient(160deg, rgba(28,28,36,.7) 0%, rgba(14,14,20,.7) 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 14px 12px 14px;
  text-align: center; cursor: pointer; aspect-ratio: 1/1;
  overflow: hidden; isolation: isolate;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .25s cubic-bezier(.2,.85,.25,1),
              border-color .25s ease,
              box-shadow .25s ease;
}
.category-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 50% 30%, rgba(229,9,20,.18) 0%, transparent 65%);
  opacity: 0; transition: opacity .35s ease;
}
.category-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(229,9,20,.6) 50%, transparent 100%);
  opacity: 0; transition: opacity .3s ease;
}
.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(229,9,20,.35);
  box-shadow: 0 14px 32px rgba(0,0,0,.55), 0 0 30px -10px rgba(229,9,20,.4);
}
.category-card:hover::before { opacity: 1; }
.category-card:hover::after  { opacity: 1; }
.category-card-logo-wrap {
  flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px; padding: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: background .25s ease, border-color .25s ease;
}
.category-card-logo-wrap img {
  width: 100%; height: 100%;
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.4));
  transition: transform .35s cubic-bezier(.2,.85,.25,1), filter .3s ease;
}
.category-card-logo-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Orbitron','Inter',sans-serif;
  font-size: 2.4rem; font-weight: 900;
  color: #ff7a83;
  background: linear-gradient(135deg, rgba(229,9,20,.15) 0%, rgba(229,9,20,.05) 100%);
  border-radius: 8px;
}
.category-card:hover .category-card-logo-wrap {
  background: rgba(255,255,255,.07);
  border-color: rgba(229,9,20,.2);
}
.category-card:hover .category-card-logo-wrap img {
  transform: scale(1.06);
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.55)) brightness(1.08);
}
.category-card-text {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.category-name {
  font-family: 'Inter','Segoe UI',sans-serif;
  font-size: .88rem; font-weight: 700; color: #fff;
  letter-spacing: -.01em; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  width: 100%;
}
.category-count {
  display: inline-block; margin-top: 0;
  font-size: .65rem; font-weight: 700;
  color: #ff7a83;
  background: rgba(229,9,20,.12);
  border: 1px solid rgba(229,9,20,.25);
  padding: 2px 9px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .06em;
  max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── Page header ─────────────────────────────── */
.page-header { padding: 28px 4% 18px; }
.page-header h1 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.7rem; font-weight: 800;
  letter-spacing: -.02em;
}

/* ── Catalog tabs ────────────────────────────── */
.catalog-switch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.catalog-tab {
  display: inline-block;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px; color: #bbb;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: .8rem; font-weight: 600;
  padding: 5px 14px; transition: background .15s, color .15s, border-color .15s; white-space: nowrap;
  letter-spacing: .01em;
}
.catalog-tab:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.18); }
.catalog-tab.active {
  background: rgba(229,9,20,.18); border-color: rgba(229,9,20,.4);
  color: #fff; font-weight: 700;
}

/* ── Player ──────────────────────────────────── */
.player-wrap {
  width: min(96%, 1800px); margin: 18px auto 0;
  aspect-ratio: 16/9; max-height: 80vh; background: #000;
  overflow: hidden; position: relative; isolation: isolate;
  border-radius: 16px;
  border: 1px solid rgba(229,9,20,.18);
  box-shadow:
    0 18px 50px rgba(0,0,0,.6),
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 0 60px -10px rgba(229,9,20,.25);
}
.player-wrap::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none; z-index: 3;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(229,9,20,.45) 0%, transparent 35%, transparent 65%, rgba(229,9,20,.3) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  padding: 1px;
  opacity: .6;
}
.player-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

/* ── Player focus mode (series/animes/doramas) ─ */
.player-wrap--series {
  width: min(96%, 1800px);
  margin: 14px auto 0;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.1);
  position: relative;
  isolation: isolate;
}
.player-wrap--series iframe { display: block; }
.player-wrap--series::before,
.player-wrap--series::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14%;
  pointer-events: none;
  z-index: 2;
}
.player-wrap--series::before {
  left: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 100%);
}
.player-wrap--series::after {
  right: 0;
  background: linear-gradient(270deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 100%);
}
/* Quando abre listagem completa da série, aproxima para esconder laterais */
.player-wrap--series.player-wrap--series-list iframe {
  width: 100%;
  height: 100%;
  margin-left: 0;
  margin-top: 0;
}

.film-info {
  width: min(96%, 1800px); margin: 22px auto 0;
  padding: 22px 26px;
  background: linear-gradient(135deg, rgba(28,28,36,.65) 0%, rgba(14,14,20,.65) 100%);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 24px rgba(0,0,0,.3);
  position: relative; overflow: hidden;
}
.film-info::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, rgba(229,9,20,.7) 0%, rgba(229,9,20,.15) 60%, transparent 100%);
}
.film-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.8rem; font-weight: 800; margin-bottom: 10px;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.film-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.badge-score {
  display: inline-flex; align-items: center; gap: 4px;
  color: #f5c518; font-weight: 700; font-size: .88rem;
  background: rgba(245,197,24,.1);
  border: 1px solid rgba(245,197,24,.3);
  padding: 4px 10px; border-radius: 8px;
}
.badge-genre {
  display: inline-block;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; color: #ddd;
  font-family: 'Inter','Segoe UI',sans-serif;
  font-size: .76rem; font-weight: 500;
  padding: 4px 11px;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.badge-genre:hover {
  background: rgba(229,9,20,.15);
  border-color: rgba(229,9,20,.4);
  color: #fff; transform: translateY(-1px);
}
.film-meta > span:not(.badge-score):not(.badge-genre) {
  color: #aaa; font-size: .85rem; font-weight: 500;
  padding: 4px 0;
}
.film-meta > span:not(.badge-score):not(.badge-genre)::before {
  content: "·"; margin-right: 8px; color: #555;
}
.film-desc {
  font-family: 'Inter','Segoe UI',sans-serif;
  font-size: .92rem; color: #cfcfd5; line-height: 1.7;
  margin: 0; max-width: 850px;
}

.player-data-grid {
  width: min(96%, 1800px); margin: 18px auto 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.player-data-card {
  background: linear-gradient(135deg, rgba(28,28,36,.65) 0%, rgba(14,14,20,.65) 100%);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px; padding: 22px 24px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  position: relative; overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.player-data-card:hover {
  border-color: rgba(229,9,20,.2);
  transform: translateY(-2px);
}
.player-data-card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(229,9,20,.5) 50%, transparent 100%);
  opacity: 0; transition: opacity .25s ease;
}
.player-data-card:hover::after { opacity: 1; }
.player-data-card h3 {
  font-family: 'Inter','Segoe UI',sans-serif;
  font-size: .72rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: #ff7a83;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.player-data-card h3::before {
  content: ""; width: 14px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #e50914, #ff4d5b);
}
.player-data-items { display: flex; flex-direction: column; gap: 11px; }
.player-data-items div {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 9px; border-bottom: 1px dashed rgba(255,255,255,.06);
  font-size: .9rem;
}
.player-data-items div:last-child { border-bottom: 0; padding-bottom: 0; }
.player-data-items strong {
  color: #888; font-family: 'Inter','Segoe UI',sans-serif;
  font-weight: 500; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .08em;
}
.player-data-items span { color: #fff; font-weight: 600; font-size: .92rem; }
.player-tags { display: flex; flex-wrap: wrap; gap: 7px; }

.more-section { width: 96%; max-width: 1800px; margin: 0 auto 40px; }
.more-section .section-head { margin-bottom: 14px; }
.more-section h2 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  color: #fff; letter-spacing: -.01em;
}
.more-section h2::before {
  content: "//";
  font-size: .75rem; font-weight: 800;
  color: #e50914; letter-spacing: -.05em;
  opacity: .8;
}

.empty { text-align: center; color: #777; padding: 60px 20px; font-size: .95rem; }

/* ── Series shell ────────────────────────────── */
.series-shell { width: 96%; max-width: 1800px; margin: 20px auto 0; }
.player-server-switch {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.server-btn {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  color: #ddd;
  font-size: .82rem;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
  transition: all .16s ease;
}
.server-btn:hover { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.3); }
.server-btn.active { background: #e50914; border-color: #e50914; color: #fff; }

.series-episode-panel {
  margin-top: 18px; border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: 16px; background: rgba(0,0,0,.28);
}
.series-manual-panel {
  margin-top: 18px; border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: 16px; background: rgba(0,0,0,.28);
}
.series-episode-title {
  font-size: .78rem; letter-spacing: 1.2px; text-transform: uppercase; color: #888; margin-bottom: 12px;
}
.series-episode-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.series-field { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; color: #aaa; }
.series-field input {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15);
  border-radius: 7px; color: #fff; font-size: .92rem;
  padding: 7px 10px; width: 90px; outline: none; transition: border-color .15s;
}
.series-field input:focus { border-color: rgba(255,255,255,.4); }
.series-control-btn { padding: 8px 14px; font-size: .84rem; font-weight: 600; border-radius: 7px; white-space: nowrap; }

/* ── Episode list panel ──────────────────────── */
.series-episode-panel { display: none; }

.ep-panel {
  width: 100%;
  margin: 20px 0 0;
  background: linear-gradient(135deg, rgba(20,20,28,.92) 0%, rgba(11,11,17,.96) 100%);
  border: 1px solid rgba(229,9,20,.15);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.ep-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.015);
}
.ep-jump {
  margin-left: 0;
  display: inline-flex;
  align-items: stretch;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: none;
  order: 2;
}
.ep-jump label {
  font-size: .75rem;
  color: #aaa;
  letter-spacing: .5px;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
}
.ep-jump input {
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  color: #fff;
  padding: 7px 9px;
  font-size: .88rem;
  outline: none;
}
.ep-jump button {
  width: 100%;
  justify-content: center;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
}
.ep-jump-msg {
  min-height: 16px;
  font-size: .74rem;
  color: #ff6b6b;
  text-align: center;
}
.ep-title { display: none; }
.ep-seasons-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .7rem; font-weight: 800; letter-spacing: 1.6px;
  text-transform: uppercase; color: #ff7a83; white-space: nowrap; flex-shrink: 0;
  order: 1;
}
.ep-seasons-label::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #e50914; box-shadow: 0 0 8px #e50914;
  animation: serverDot 1.6s ease-in-out infinite;
}
.ep-season-list { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; flex: 1; order: 1; }
.ep-season-list::-webkit-scrollbar { display: none; }
.ep-season-tab {
  flex-shrink: 0; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; color: #999; cursor: pointer;
  font-size: .78rem; font-weight: 700; padding: 6px 14px; white-space: nowrap;
  transition: all .18s ease;
}
.ep-season-tab:hover {
  background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); color: #fff;
  transform: translateY(-1px);
}
.ep-season-tab.active {
  background: linear-gradient(135deg, #e50914 0%, #ff4d5b 100%);
  border-color: transparent; color: #fff;
  box-shadow: 0 4px 14px rgba(229,9,20,.35);
}
.ep-season-add {
  flex-shrink: 0; background: transparent; border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px; color: #888; cursor: pointer;
  font-size: 1rem; font-weight: 700; padding: 5px 10px; line-height: 1; transition: all .15s;
  order: 1;
}
.ep-season-add:hover { border-color: rgba(255,255,255,.3); color: #fff; background: rgba(255,255,255,.07); }
.ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 8px; padding: 16px 18px;
}
.custom-episode-actions {
  display: flex; gap: 8px; margin-left: auto; flex-shrink: 0; order: 1;
}
.custom-episode-nav {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 16px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  color: #bbb; font-size: .8rem; font-weight: 600; cursor: pointer;
  transition: all .2s ease; white-space: nowrap;
}
.custom-episode-nav:hover:not(:disabled) {
  background: rgba(229,9,20,.15); border-color: rgba(229,9,20,.5); color: #fff;
  transform: translateY(-1px);
}
.custom-episode-nav:disabled { opacity: .3; cursor: not-allowed; transform: none; }
.custom-episode-grid { display: none; }
.custom-episode-grid.active {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px;
  max-height: clamp(340px, 55vh, 520px);
  overflow-y: auto; scroll-behavior: smooth;
  scrollbar-width: thin; scrollbar-color: rgba(229,9,20,.5) rgba(255,255,255,.04);
}
.custom-episode-grid.active::-webkit-scrollbar { width: 5px; }
.custom-episode-grid.active::-webkit-scrollbar-track {
  background: rgba(255,255,255,.03); border-radius: 10px; margin: 4px 0;
}
.custom-episode-grid.active::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(229,9,20,.6), rgba(229,9,20,.3));
  border-radius: 10px;
}
.custom-episode-grid.active::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(229,9,20,.9), rgba(229,9,20,.6));
}
.ep-btn {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 48px; padding: 10px 16px 10px 20px;
  border-radius: 8px; background: transparent; border: 1px solid transparent;
  color: #b0b0b0; cursor: pointer; font-size: .86rem; font-weight: 500;
  text-align: left; width: 100%;
  transition: background .15s, border-color .15s, color .15s, transform .12s;
}
.ep-btn::before {
  content: ''; position: absolute; left: 0; top: 18%; height: 64%; width: 3px;
  border-radius: 0 3px 3px 0; background: transparent;
  transition: background .15s, box-shadow .15s;
}
.ep-btn:hover {
  background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.07);
  color: #fff; transform: translateX(3px);
}
.ep-btn:hover::before { background: rgba(229,9,20,.55); }
.custom-episode-grid.active .ep-btn.active {
  background: rgba(229,9,20,.1); border-color: rgba(229,9,20,.28); color: #fff;
}
.custom-episode-grid.active .ep-btn.active::before {
  background: #e50914; box-shadow: 0 0 8px rgba(229,9,20,.5);
}
.ep-btn-main {
  display: flex; align-items: center; gap: 11px; min-width: 0; flex: 1;
}
.ep-btn-main strong {
  flex: 0 0 auto;
  background: rgba(255,255,255,.08); border-radius: 5px;
  color: #bbb; font-size: .7rem; font-weight: 700;
  letter-spacing: .06em; padding: 3px 8px;
  text-transform: uppercase; transition: background .15s, color .15s;
}
.ep-btn:hover .ep-btn-main strong,
.ep-btn.active .ep-btn-main strong { background: rgba(229,9,20,.28); color: #fff; }
.ep-btn-main span {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: .87rem;
}
.ep-btn small {
  color: rgba(255,255,255,.32); font-size: .72rem; font-weight: 500; flex-shrink: 0;
  transition: color .15s;
}
.ep-btn:hover small { color: rgba(255,255,255,.55); }
.ep-btn.active small { color: rgba(255,255,255,.6); }
.ep-load-more {
  display: block; width: calc(100% - 24px); margin: 4px 12px 12px;
  background: transparent; border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; color: #777; cursor: pointer;
  font-size: .82rem; padding: 10px; text-align: center; transition: all .15s;
}
.ep-load-more:hover { background: rgba(255,255,255,.07); color: #fff; }

/* ── Canal nav panel ─────────────────────────── */
.canal-nav-panel {
  width: min(96%, 1800px); margin: 16px auto 0;
  background: linear-gradient(135deg, rgba(28,28,36,.7) 0%, rgba(14,14,20,.7) 100%);
  border: 1px solid rgba(229,9,20,.18);
  border-radius: 16px; overflow: hidden;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 24px rgba(0,0,0,.4);
}
.canal-nav-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.canal-nav-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Inter','Segoe UI',sans-serif;
  font-size: .74rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #ff7a83;
}
.canal-nav-label::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #e50914;
  box-shadow: 0 0 10px #e50914;
  animation: canalLive 1.5s ease-in-out infinite;
}
@keyframes canalLive {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .55; transform: scale(.85); }
}
.canal-nav-controls { display: flex; gap: 10px; }
.canal-nav-controls .series-control-btn {
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: #ddd; font-family: 'Inter','Segoe UI',sans-serif;
  font-size: .82rem; font-weight: 600;
  transition: all .2s ease;
}
.canal-nav-controls .series-control-btn:not(:disabled):hover {
  background: rgba(229,9,20,.15); border-color: rgba(229,9,20,.5); color: #fff;
  transform: translateY(-1px);
}
.canal-nav-controls .series-control-btn:disabled {
  opacity: .35; cursor: not-allowed;
}

.canal-list {
  display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none;
  padding: 16px 22px 20px;
  scroll-snap-type: x proximity;
}
.canal-list::-webkit-scrollbar { display: none; }
.canal-list-item {
  position: relative; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; cursor: pointer;
  min-width: 110px; padding: 14px 10px 11px;
  scroll-snap-align: start;
  transition: transform .25s cubic-bezier(.2,.85,.25,1),
              background .2s ease, border-color .25s ease, box-shadow .25s ease;
}
.canal-list-item:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(229,9,20,.3);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.5);
}
.canal-list-item.active {
  border-color: rgba(229,9,20,.65);
  background: linear-gradient(160deg, rgba(229,9,20,.18) 0%, rgba(229,9,20,.05) 100%);
  box-shadow: 0 8px 24px rgba(0,0,0,.5), 0 0 0 1px rgba(229,9,20,.4);
}
.canal-list-item.active::before {
  content: "AO VIVO"; position: absolute; top: 6px; right: 6px;
  font-family: 'Inter','Segoe UI',sans-serif;
  font-size: .55rem; font-weight: 800; letter-spacing: .08em;
  color: #fff; background: #e50914;
  padding: 2px 6px; border-radius: 4px;
  box-shadow: 0 0 10px rgba(229,9,20,.5);
}
.canal-list-item img {
  height: 40px; max-width: 88px; width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
  transition: transform .25s ease;
}
.canal-list-item:hover img { transform: scale(1.08); }
.canal-list-icon { font-size: 1.6rem; }
.canal-list-name {
  font-family: 'Inter','Segoe UI',sans-serif;
  font-size: .74rem; font-weight: 600;
  color: #ccc; text-align: center;
  white-space: nowrap; max-width: 100px;
  overflow: hidden; text-overflow: ellipsis;
  transition: color .2s ease;
}
.canal-list-item:hover .canal-list-name,
.canal-list-item.active .canal-list-name { color: #fff; }

/* ── Footer ──────────────────────────────────── */
footer { text-align: center; padding: 28px 20px; color: #555; font-size: .82rem; border-top: 1px solid rgba(255,255,255,.06); margin-top: 20px; }

/* ── Suggestion modal ────────────────────────── */
.suggestion-modal { display: none; position: fixed; inset: 0; z-index: 500; align-items: center; justify-content: center; }
.suggestion-modal[aria-hidden="false"] { display: flex; }
.suggestion-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.75); cursor: pointer; }
.suggestion-modal-card {
  position: relative; z-index: 1; background: #1c1c1c;
  border: 1px solid rgba(255,255,255,.12); border-radius: 14px;
  width: 90%; max-width: 480px; max-height: 90vh; overflow-y: auto; padding: 24px;
}
.suggestion-close {
  position: absolute; top: 14px; right: 14px;
  background: rgba(255,255,255,.07); border: none; border-radius: 6px;
  color: #ccc; font-size: 1.1rem; padding: 4px 9px; cursor: pointer; transition: background .15s;
}
.suggestion-close:hover { background: rgba(255,255,255,.15); color: #fff; }
.suggestion-hero h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 6px; }
.suggestion-hero p { font-size: .85rem; color: #aaa; margin-bottom: 14px; }
.suggestion-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.suggestion-chip { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; color: #ccc; font-size: .74rem; padding: 3px 10px; }
#suggestion-form textarea {
  width: 100%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px; color: #eee; font-family: inherit; font-size: .9rem;
  min-height: 160px; outline: none; padding: 12px; resize: vertical; transition: border-color .15s;
}
#suggestion-form textarea:focus { border-color: rgba(255,255,255,.35); }
.suggestion-form-foot { display: flex; justify-content: flex-end; margin: 6px 0 10px; }
.suggestion-count { font-size: .78rem; color: #777; }
.suggestion-submit {
  width: 100%; background: #e50914; border: none; border-radius: 8px;
  color: #fff; font-size: .95rem; font-weight: 700; padding: 11px; cursor: pointer; transition: filter .15s;
}
.suggestion-submit:hover { filter: brightness(1.15); }
.suggestion-feedback { margin-top: 12px; font-size: .85rem; text-align: center; min-height: 20px; color: #4caf50; }

/* ── Animations ──────────────────────────────── */
@keyframes logoReveal {
  from { opacity: 0; transform: translateX(-50%) scaleX(.82); }
  to   { opacity: 1; transform: translateX(-50%) scaleX(1); }
}

/* ── 900px ───────────────────────────────────── */
@media (max-width: 900px) {
  .navbar { height: 54px; display: flex; align-items: center; padding: 0 4%; }
  body { padding-top: 54px; }
  body.has-hero { padding-top: 0; }
  .navbar-inner { padding: 0; width: 100%; position: relative; }
  .navbar-logo { position: absolute; left: 50%; transform: translateX(-50%); animation: logoReveal .4s ease both; }
  .navbar-hub { display: none; }
  .navbar-links { display: none; }
  .navbar-search { display: none; }
  .nav-hamburger { display: flex; }
  .page-header { text-align: center; }
  .catalog-switch { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; justify-content: flex-start; }
  .catalog-switch::-webkit-scrollbar { display: none; }
  .canal-nav-header { flex-direction: column; align-items: center; gap: 10px; padding: 12px 14px; }
  .canal-nav-label { text-align: center; }
  .canal-nav-controls { justify-content: center; width: 100%; }
  .canal-nav-controls .series-control-btn { flex: 1; max-width: 140px; width: auto; }
}

/* ── 768px ───────────────────────────────────── */
@media (max-width: 768px) {
  body { overflow-x: hidden; }
  .hero { height: 400px; }
  .hero-content {
    padding: 0 5% 36px; max-width: 100%;
    display: grid;
    grid-template-areas: "badge badge" "title score" "btns btns";
    grid-template-columns: 1fr auto;
    align-content: end;
    gap: 0;
  }
  .hero-badge { grid-area: badge; margin-bottom: 12px; }
  .hero-title { grid-area: title; font-size: 1.75rem; letter-spacing: 0; margin-bottom: 14px; align-self: end; }
  .hero-meta { display: none; }
  .hero-buttons { grid-area: btns; }
  .hero-desc { display: none; }
  .hero-genre { display: none; }
  .hero-arrow { display: none; }
  .card { width: 38vw; }
  .player-wrap { width: 100%; border-radius: 0; margin-top: 0; aspect-ratio: unset; height: calc(100svh - 54px); }
  .player-wrap--series {
    width: 100%;
    max-width: none;
    margin-top: 0;
    border-radius: 0;
    border: none;
  }
  .player-wrap--series::before,
  .player-wrap--series::after { display: none; }
  .player-wrap--series.player-wrap--series-list iframe {
    width: 100%;
    height: 100%;
    margin-left: 0;
    margin-top: 0;
  }
  .player-wrap {
    width: 100%; margin: 0; border-radius: 0; border: 0;
    box-shadow: none;
  }
  .player-wrap::before { display: none; }
  .film-info {
    width: calc(100% - 24px); margin: 14px auto 0;
    padding: 18px 18px; border-radius: 14px;
  }
  .film-title { font-size: 1.45rem; }
  .series-shell { width: 100%; padding: 16px 4% 0; margin-top: 0; }
  .ep-panel { width: 100%; border-radius: 0; margin: 8px 0 0; }
  .canal-nav-panel { width: 100%; margin: 8px 0 0; border-radius: 0; }
  .player-data-grid {
    width: calc(100% - 24px); margin: 14px auto;
    grid-template-columns: 1fr; gap: 12px; padding: 0;
  }
  .player-data-card { padding: 18px 18px; border-radius: 14px; }
  .more-section { width: 100%; padding: 0 4%; }
  .series-episode-panel { padding: 12px; }
  .series-episode-controls { gap: 8px; }
  .series-field input { width: 100%; min-width: 0; }
  .series-control-btn { flex: 1; }
  .custom-episode-actions {
    width: 100%;
    margin-left: 0;
    order: 3;
  }
  .custom-episode-nav {
    flex: 1;
    min-width: 0;
  }
  .custom-episode-grid.active {
    gap: 7px;
    padding: 12px;
  }
  .ep-btn {
    min-height: 58px;
    padding: 10px 12px;
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .ep-btn-main {
    width: 100%;
    gap: 9px;
  }
  .ep-btn-main span {
    white-space: normal;
  }
  .ep-btn small {
    padding-left: 0;
  }
  .series-episode-controls--anime .series-field { width: 100%; flex: 1 1 100%; }
  .series-episode-controls--anime .series-field input { width: 100%; }
  .ep-header { padding: 11px 14px; flex-wrap: wrap; gap: 8px 6px; }
  .ep-jump {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    align-items: stretch;
    flex-direction: column;
    order: 3;
    gap: 8px;
  }
  .ep-jump label {
    width: 100%;
    font-size: .72rem;
    letter-spacing: .7px;
    text-align: center;
  }
  .ep-jump input {
    width: 100%;
    flex: 0 0 auto;
  }
  .ep-jump button {
    width: 100%;
    justify-content: center;
  }
  .ep-seasons-label { width: 100%; text-align: center; order: -1; }
  .ep-season-list { flex: 1; min-width: 0; }
  .ep-season-add { flex-shrink: 0; }
  .ep-grid { grid-template-columns: repeat(auto-fill,minmax(58px,1fr)); gap: 6px; padding: 12px 14px; }
  .ep-btn { font-size: .75rem; padding: 8px 4px; }
  .ep-load-more { width: calc(100% - 28px); margin: 0 14px 14px; font-size: .78rem; }
  .grid { padding: 0 4% 30px; grid-template-columns: repeat(auto-fill,minmax(130px,1fr)); }
  .home-rows, .catalog-rows { padding: 28px 4% 30px; }
  .section { margin-bottom: 36px; }
  .section-title { font-size: 1rem; }
  .section { margin-bottom: 28px; }
  .suggestion-modal-card { padding: 18px 14px 14px; }
  .suggestion-hero h3 { font-size: 1.1rem; }
  .suggestion-meta { gap: 5px; }
  .suggestion-chip { font-size: .7rem; padding: 2px 8px; height: 22px; }
  #suggestion-form textarea { min-height: 130px; font-size: .88rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-content > *, .home-rows .section, .home-rows .section .card {
    animation: none !important; transition: none !important;
    transform: none !important; opacity: 1 !important;
  }
}
