/* =========================================================
   EmagreFlix — paródia de streaming para a websérie EmagreSer
   ========================================================= */
:root {
  --bg: #141414;
  --bg-modal: #181818;
  --card: #2f2f2f;
  --line: #404040;
  --txt: #fff;
  --txt-2: #e5e5e5;
  --muted: #a3a3a3;
  --muted-2: #bcbcbc;
  --red: #e50914;
  --tint: 74, 26, 107; /* roxo EmagreSer, usado no degradê do topo */
  --gutter: clamp(16px, 3.05vw, 60px);
  --gap: 8px;
  --n: 7;
  --peek: 0.22;
  --cw: calc((100vw - var(--gutter) * 2 - var(--gap) * (var(--n) - 1)) / (var(--n) + var(--peek)));
  --nav-h: 68px;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}
@media (max-width: 1399px) { :root { --n: 6; } }
@media (max-width: 1099px) { :root { --n: 5; } }
@media (max-width: 799px)  { :root { --n: 3; --peek: .3; --nav-h: 56px; } }
@media (max-width: 499px)  { :root { --n: 2; --peek: .35; --gap: 6px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--txt);
  font-family: var(--font); font-size: 16px; line-height: 1.4;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: min(1100px, 95vh); z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(var(--tint), .85) 0%, rgba(var(--tint), .35) 45%, transparent 75%),
    linear-gradient(180deg, rgba(var(--tint), .55), var(--bg) 92%);
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { width: 1em; height: 1em; flex: none; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- Topo ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); padding: 0 var(--gutter);
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 100%);
  transition: background-color .4s ease;
}
.nav.is-solid { background-color: #000; background-image: none; }
.nav__logo img { height: clamp(18px, 1.9vw, 27px); width: auto; }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a {
  font-size: 14.5px; font-weight: 500; color: var(--txt-2); padding: 8px 16px; border-radius: 999px;
  transition: color .2s, background-color .2s; white-space: nowrap;
}
.nav__links a:hover { color: #b3b3b3; }
.nav__links a.is-active { background: rgba(255,255,255,.16); color: #fff; font-weight: 700; }
/* Botão "Minha EmagreFlix": leva à oferta, por isso chama atenção */
.cta {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; cursor: pointer;
  font: 700 14px/1 var(--font); color: #fff; padding: 9px 14px 9px 18px; border-radius: 999px;
  border: 1.5px solid var(--red); background: rgba(229,9,20,.16);
  transition: background-color .2s, transform .2s, box-shadow .2s;
  animation: cta-glow 2.6s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}
.cta svg { width: 16px; height: 16px; transition: transform .2s; }
.cta:hover, .cta:focus-visible { background: var(--red); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.5); animation: none; }
.cta:hover svg, .cta:focus-visible svg { transform: translateX(3px); }
.cta:active { transform: scale(.96); background: #b20710; box-shadow: none; animation: none; }
.cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cta--menu { display: none; }
@keyframes cta-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229,9,20,0); }
  50% { box-shadow: 0 0 0 5px rgba(229,9,20,.22); }
}
@media (prefers-reduced-motion: reduce) { .cta { animation: none; } .cta, .cta svg { transition: none; } }
.nav__browse { display: none; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.nav__browse svg { width: 14px; height: 14px; }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: clamp(10px, 1.6vw, 24px); }
.icon-btn { display: grid; place-items: center; width: 34px; height: 34px; font-size: 24px; position: relative; }
.bell__count {
  position: absolute; top: 1px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--red); font-size: 10.5px; font-weight: 700; line-height: 16px; text-align: center;
}
.bell.is-read .bell__count { display: none; }
.profile { display: flex; align-items: center; gap: 8px; }
.avatar { width: 32px; height: 32px; border-radius: 4px; overflow: hidden; display: grid; place-items: center; }
.avatar svg { width: 100%; height: 100%; }
.avatar--sm { width: 30px; height: 30px; background: var(--c); font-weight: 800; font-size: 14px; }
.profile .caret { width: 12px; height: 12px; transition: transform .25s; }
.profile[aria-expanded="true"] .caret { transform: rotate(180deg); }

.search { display: flex; align-items: center; position: relative; border: 1px solid transparent; transition: border-color .25s, background-color .25s; }
.search input {
  width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; font-size: 14px;
  transition: width .3s var(--ease), padding .3s;
}
.search input::-webkit-search-cancel-button { display: none; }
.search__clear { display: none; width: 28px; height: 28px; place-items: center; font-size: 16px; }
.search.is-open { border-color: rgba(255,255,255,.85); background: rgba(0,0,0,.75); }
.search.is-open input { width: clamp(160px, 20vw, 260px); padding: 7px 4px; }
.search.is-open.has-text .search__clear { display: grid; }

.dropdown { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 18px); min-width: 220px; background: rgba(0,0,0,.92);
  border: 1px solid rgba(255,255,255,.15); border-radius: 4px; padding: 10px 0; font-size: 13.5px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.menu.is-open { opacity: 1; visibility: visible; transform: none; }
.menu::before { content: ""; position: absolute; top: -8px; right: 22px; border: 8px solid transparent; border-top: 0; border-bottom-color: rgba(255,255,255,.85); }
.menu hr { border: 0; border-top: 1px solid rgba(255,255,255,.2); margin: 8px 0; }
.menu__item { display: flex; align-items: center; gap: 12px; padding: 7px 16px; }
.menu__item:hover { text-decoration: underline; }
.menu--notif { width: min(400px, 90vw); padding: 0; }
.menu--notif::before { right: 10px; }
.notif { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.1); text-align: left; width: 100%; }
.notif:hover { background: rgba(255,255,255,.06); }
.notif img { width: 112px; aspect-ratio: 16/9; object-fit: cover; border-radius: 3px; }
.notif b { display: block; font-size: 13.5px; }
.notif span { display: block; color: var(--muted-2); font-size: 13px; }
.notif small { color: var(--muted); font-size: 12px; }

/* ---------- Destaque ---------- */
.hero { padding: calc(var(--nav-h) + 24px) var(--gutter) 0; }
.hero__frame {
  position: relative; border-radius: 16px; overflow: hidden; isolation: isolate;
  aspect-ratio: 2.18 / 1; min-height: 440px; max-height: calc(100vh - 110px); width: 100%;
  background: #0b0b0b; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.hero__media, .hero__video, .hero__poster, .hero__shield { position: absolute; inset: 0; }
.hero__media { background: #000; }
.hero__poster { width: 100%; height: 100%; object-fit: cover; filter: blur(2px) brightness(.55) saturate(1.1); transform: scale(1.04); transition: opacity 1.2s ease; }
.hero__video { opacity: 0; transition: opacity 1.2s ease; overflow: hidden; }
.hero__video iframe { position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none; transform: translate(-50%, -50%); }
.hero.is-playing .hero__video { opacity: 1; }
.hero.is-playing .hero__poster { opacity: 0; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(77deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.74) 28%, rgba(0,0,0,.32) 50%, rgba(0,0,0,0) 68%),
    linear-gradient(0deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 30%);
}
.hero__content { position: absolute; left: clamp(20px, 2.2vw, 42px); bottom: clamp(22px, 2.4vw, 42px); width: min(46%, 640px); z-index: 2; }
.title-art { margin: 0 0 clamp(14px, 1.4vw, 22px); display: flex; flex-direction: column; align-items: flex-start; line-height: .86; font-family: 'Baloo 2', var(--font); font-weight: 800; color: #fff; letter-spacing: -.01em; }
.title-art__brand {
  order: -1; display: inline-flex; align-items: center; gap: .5em; margin-bottom: .9em;
  font-family: var(--font); font-size: clamp(11px, .85vw, 15px); font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: #ddd;
}
.title-art__brand::before { content: "E"; font-family: 'Baloo 2', var(--font); font-size: 2.1em; font-weight: 800; letter-spacing: 0; color: var(--red); line-height: 1; }
.title-art__logo { display: block; width: clamp(240px, 27vw, 520px); height: auto; filter: drop-shadow(0 4px 14px rgba(0,0,0,.55)); }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin: 0 0 clamp(14px, 1.4vw, 22px); font-size: clamp(14px, 1.05vw, 19px); font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.hero__meta i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.55); }
.hero__synopsis { margin: 0 0 18px; max-width: 520px; font-size: clamp(14px, 1.05vw, 18px); color: #e9e9e9; text-shadow: 0 1px 4px rgba(0,0,0,.6); transition: opacity .8s, max-height .8s, margin .8s; max-height: 200px; overflow: hidden; }
.hero.is-playing .hero__synopsis { opacity: 0; max-height: 0; margin: 0; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: clamp(40px, 2.6vw, 48px); padding: 0 clamp(18px, 1.3vw, 26px);
  border-radius: 999px; font-size: clamp(15px, 1vw, 18px); font-weight: 700; white-space: nowrap; transition: background-color .2s, transform .15s;
}
.btn svg { width: 1.35em; height: 1.35em; }
.btn:active { transform: scale(.97); }
.btn--play { background: #fff; color: #000; }
.btn--play:hover { background: rgba(255,255,255,.78); }
.btn--info { background: rgba(109,109,110,.62); color: #fff; backdrop-filter: blur(6px); }
.btn--info:hover { background: rgba(109,109,110,.42); }
.btn--sq { border-radius: 4px; }
.round-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 20px;
  border: 1.5px solid rgba(255,255,255,.6); background: rgba(42,42,42,.6); transition: border-color .2s, background-color .2s;
}
.round-btn:hover { border-color: #fff; background: rgba(255,255,255,.12); }
.hero__mute { position: absolute; top: clamp(18px, 2vw, 36px); right: clamp(18px, 2vw, 36px); z-index: 3; width: 34px; height: 34px; font-size: 17px; border: 0; background: rgba(60,60,60,.7); }
.hero__awards { position: absolute; right: clamp(16px, 2vw, 40px); bottom: clamp(22px, 2.4vw, 42px); z-index: 2; display: flex; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 6px; background: rgba(20,20,20,.72); font-size: 12.5px; font-weight: 700; backdrop-filter: blur(6px); }
.pill .ico-repeat { color: var(--red); width: 16px; height: 16px; }
.pill .ico-trophy { color: #f2c94c; width: 17px; height: 17px; }

.rating { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 4px; border-radius: 3px; font-size: 15px; font-weight: 800; color: #fff; text-shadow: none; }
.rating--l { background: #0a8340; }
.rating--sm { min-width: 22px; height: 22px; font-size: 13px; }
.hd { display: inline-grid; place-items: center; height: 17px; padding: 0 5px; border: 1px solid rgba(255,255,255,.5); border-radius: 3px; font-size: 10.5px; font-weight: 700; color: #ddd; }

/* ---------- Fileiras ---------- */
.rows { position: relative; z-index: 1; padding: clamp(18px, 2.4vw, 40px) 0 40px; }
.row { margin-bottom: clamp(26px, 3vw, 46px); }
.row__head { display: flex; align-items: flex-end; justify-content: space-between; padding: 0 var(--gutter); margin-bottom: 10px; }
.row__title { margin: 0; font-size: clamp(16px, 1.3vw, 24px); font-weight: 700; color: var(--txt-2); }
.row__dots { display: flex; gap: 2px; opacity: 0; transition: opacity .25s; }
.row__dots i { width: 12px; height: 2px; background: #4d4d4d; }
.row__dots i.is-on { background: #aaa; }
.row:hover .row__dots { opacity: 1; }
.slider { position: relative; }
.track {
  display: flex; gap: var(--gap); overflow-x: auto; overflow-y: hidden; padding: 0 var(--gutter);
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain;
}
.track::-webkit-scrollbar { display: none; }
.slider__arrow {
  position: absolute; top: 0; bottom: 0; z-index: 4; width: calc(var(--gutter) - 4px); display: grid; place-items: center;
  background: rgba(20,20,20,.55); font-size: clamp(22px, 2.2vw, 40px); opacity: 0; transition: opacity .2s, background-color .2s;
}
.slider__arrow svg { transition: transform .2s; }
.slider__arrow:hover { background: rgba(20,20,20,.75); }
.slider__arrow:hover svg { transform: scale(1.25); }
.slider__arrow--l { left: 0; border-radius: 0 4px 4px 0; }
.slider__arrow--r { right: 0; border-radius: 4px 0 0 4px; }
.row:hover .slider__arrow { opacity: 1; }
.slider__arrow[disabled] { visibility: hidden; }
@media (hover: none) { .slider__arrow { display: none; } }

.card {
  position: relative; flex: 0 0 var(--cw); aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: #222; scroll-snap-align: start; text-align: left;
}
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.card:focus-visible { outline-offset: -2px; }
.card__badge {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); padding: 2px 7px; border-radius: 2px 2px 0 0;
  background: var(--red); font-size: clamp(9.5px, .7vw, 12px); font-weight: 700; white-space: nowrap;
}
.card__top10 {
  position: absolute; top: 0; left: 6px; width: 20px; padding: 2px 0 3px; background: var(--red); border-radius: 0 0 2px 2px;
  font-size: 6px; font-weight: 800; line-height: 1; text-align: center; letter-spacing: .02em;
}
.card__top10 b { display: block; font-size: 11px; letter-spacing: -.02em; }
.card__ep {
  position: absolute; left: 8px; bottom: 8px; padding: 2px 6px; border-radius: 3px; background: rgba(0,0,0,.72);
  font-size: 11.5px; font-weight: 700;
}
.card__progress { position: absolute; left: 10%; right: 10%; bottom: 8px; height: 3px; background: rgba(128,128,128,.85); }
.card__progress i { display: block; height: 100%; background: var(--red); }
.card--continue .card__ep { bottom: 18px; }
.card__play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .2s; background: rgba(0,0,0,.2); }
.card__play span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.5); font-size: 20px; }
.card--continue:hover .card__play { opacity: 1; }

/* Top 10 */
/* Bombando: Shorts em pé, com título e visualizações à mostra */
/* --tn = quantos Shorts cabem inteiros por tela; o resto aparece pela metade, convidando a rolar */
.card--tall { --tn: 5; flex-basis: calc((100vw - var(--gutter) * 2 - var(--gap) * (var(--tn) - 1)) / (var(--tn) + .3)); aspect-ratio: 9 / 16; text-align: left; }
.card--tall::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 34%, rgba(0,0,0,0) 60%); pointer-events: none; }
.tall__views {
  position: absolute; left: 10px; top: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 9px 5px 7px; border-radius: 999px; background: rgba(0,0,0,.72); font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap;
}
.tall__views svg { width: 14px; height: 14px; color: #ff6a1a; }
.tall__title {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1;
  font-size: clamp(14px, 1.2vw, 19px); font-weight: 700; line-height: 1.25; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
@media (hover: hover) {
  .card--tall:hover img { transform: scale(1.06); }
  .card--tall:hover { outline: 2px solid rgba(255,255,255,.85); outline-offset: -2px; }
}
.card--tall:active { transform: scale(.98); }
@media (min-width: 1600px) { .card--tall { --tn: 6; } }
@media (max-width: 1099px) { .card--tall { --tn: 4; } }
@media (max-width: 799px) { .card--tall { --tn: 3; } }
@media (max-width: 499px) { .card--tall { --tn: 2; } }
.row--top10 .track { padding-top: 4px; }
.top10 { position: relative; flex: 0 0 var(--cw); height: calc(var(--cw) * .74); scroll-snap-align: start; display: block; }
.top10__num {
  position: absolute; left: -2%; bottom: -.12em; font-size: calc(var(--cw) * .74 * 1.08); font-weight: 800; line-height: 1;
  letter-spacing: -.08em; color: var(--bg); -webkit-text-stroke: max(2px, .3vw) #595959; font-family: var(--font); user-select: none;
}
.top10 img { position: absolute; right: 0; top: 0; height: 100%; width: 52%; object-fit: cover; border-radius: var(--radius); }
.top10__ten { left: auto; right: calc(52% - 26px); }

/* Prévia (hover) */
.preview {
  position: absolute; z-index: 40; background: var(--bg-modal); border-radius: 6px; overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,.75); transform: scale(.66); opacity: 0;
  transition: transform .28s var(--ease), opacity .2s;
}
.preview.is-on { transform: scale(1); opacity: 1; }
.preview__media { position: relative; aspect-ratio: 16 / 9; background: #000; cursor: pointer; }
.preview__media img { width: 100%; height: 100%; object-fit: cover; }
.preview__media--short img { object-position: center 25%; }
.preview__body { padding: 14px 16px 18px; }
.preview__actions { display: flex; gap: 8px; margin-bottom: 14px; }
.preview__actions .round-btn { width: 38px; height: 38px; font-size: 18px; }
.preview__actions .round-btn--play { background: #fff; color: #000; border-color: #fff; }
.preview__actions .round-btn--play:hover { background: #e6e6e6; }
.preview__actions .push { margin-left: auto; }
.preview__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--muted-2); margin-bottom: 8px; }
.preview__title { font-size: 14px; font-weight: 700; margin: 0 0 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 0 8px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: #fff; }
.tags li + li::before { content: "•"; color: #646464; margin-right: 8px; }

/* Botões redondos com estado */
.round-btn.is-on { border-color: #fff; }

/* ---------- Busca ---------- */
.search-results { padding: calc(var(--nav-h) + 40px) var(--gutter) 60px; min-height: 70vh; }
.search-results__title { font-size: 18px; font-weight: 500; color: var(--muted); margin: 0 0 18px; }
.search-results__title b { color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 8px; }
.grid .card { flex: none; width: 100%; }
.grid__item p { margin: 6px 2px 0; font-size: 13px; color: var(--muted-2); }

/* ---------- Modal ---------- */
.ficha { position: fixed; inset: 0; z-index: 80; overflow-y: auto; overscroll-behavior: contain; }
.ficha__fundo { position: fixed; inset: 0; background: rgba(0,0,0,.72); animation: fade .25s ease; }
.ficha__caixa {
  position: relative; width: min(850px, calc(100vw - 24px)); margin: 32px auto; background: var(--bg-modal);
  border-radius: 8px; overflow: hidden; box-shadow: 0 10px 50px rgba(0,0,0,.7);
  animation: pop .35s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(16px); } }
.ficha__fechar {
  position: absolute; top: 16px; right: 16px; z-index: 5; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-modal); font-size: 22px;
}
.mhero { position: relative; aspect-ratio: 16 / 9; background: #000; }
.mhero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1s; }
.mhero--show .mhero__img { filter: blur(2px) brightness(.5) saturate(1.1); transform: scale(1.04); }
.mhero.is-playing .mhero__img { opacity: 0; }
.mhero__video { position: absolute; inset: 0; opacity: 0; transition: opacity 1s; overflow: hidden; }
.mhero__video iframe { position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none; transform: translate(-50%, -50%); }
.mhero.is-playing .mhero__video { opacity: 1; }
.mhero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg-modal) 0%, rgba(24,24,24,.6) 22%, transparent 55%), linear-gradient(90deg, rgba(0,0,0,.45), transparent 60%); pointer-events: none; }
.mhero__content { position: absolute; left: 48px; right: 48px; bottom: 7%; z-index: 2; }
.mhero .title-art__logo { width: clamp(200px, 40vw, 360px); }
.mhero .title-art__brand { font-size: 11px; margin-bottom: .7em; }
.mhero__title-video { margin: 0 0 18px; font-size: clamp(22px, 3.6vw, 36px); font-weight: 800; line-height: 1.1; max-width: 80%; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.mhero__actions { display: flex; align-items: center; gap: 10px; }
.mhero__actions .btn { height: 42px; border-radius: 4px; font-size: 16px; padding: 0 22px 0 18px; }
.mhero__actions .push { margin-left: auto; }
.mbody { padding: 0 48px 40px; }
.minfo { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; margin: 8px 0 34px; }
.minfo__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted-2); font-size: 16px; margin-bottom: 6px; }
.minfo__meta .match { color: #46d369; font-weight: 700; }
.minfo__rating { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 16px; }
.minfo__syn { margin: 0; font-size: 16px; line-height: 1.6; }
.minfo__side p { margin: 0 0 14px; font-size: 14px; line-height: 1.45; }
.minfo__side span, .about p span { color: #8c8c8c; }
.minfo__side em { font-style: italic; }
.msec-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 14px; }
.msec-title h3 { margin: 0; font-size: 24px; font-weight: 700; }
.season-select { position: relative; }
.season-select select {
  appearance: none; background: #242424; color: #fff; border: 1px solid #4d4d4d; border-radius: 4px; padding: 10px 44px 10px 18px;
  font: inherit; font-size: 17px; font-weight: 700; cursor: pointer;
}
.season-select select option { background: #242424; }
.season-select svg { position: absolute; right: 14px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); pointer-events: none; }
.season-note { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin: 0 0 14px; }
.season-note b { font-weight: 700; }
.episodes { list-style: none; margin: 0; padding: 0; border-top: 1px solid transparent; }
.episode {
  display: grid; grid-template-columns: 56px 130px minmax(0, 1fr); align-items: center; gap: 16px;
  padding: 16px 16px 16px 8px; border-bottom: 1px solid var(--line); border-radius: 4px; cursor: pointer;
}
.episode.is-current, .episode:hover { background: #333; }
.episode__n { font-size: 24px; color: #d2d2d2; text-align: center; }
.episode__img { position: relative; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: #222; }
.episode__img img { width: 100%; height: 100%; object-fit: cover; }
.episode__img .card__play { opacity: 0; }
.episode:hover .episode__img .card__play { opacity: 1; }
.episode__img .card__play span { width: 34px; height: 34px; font-size: 15px; }
.episode__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(120,120,120,.8); }
.episode__bar i { display: block; height: 100%; background: var(--red); }
.episode__head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: 15px; font-weight: 700; }
.episode__head span:last-child { font-weight: 500; white-space: nowrap; }
.episode p { margin: 0; font-size: 13.5px; color: #d2d2d2; line-height: 1.45; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.msec { margin-bottom: 8px; }
.msec-h { margin: 34px 0 18px; font-size: 24px; font-weight: 700; }
.collapse { position: relative; }
.collapse.is-collapsed .sim:nth-child(n+7) { display: none; }
.player.needs-tap .player__shield { pointer-events: none; }
.collapse__toggle {
  position: relative; display: flex; justify-content: center; border-bottom: 2px solid var(--line); height: 26px; margin-bottom: 32px;
}
.collapse.is-collapsed .collapse__toggle::before { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 90px; background: linear-gradient(0deg, var(--bg-modal), transparent); pointer-events: none; }
.collapse__toggle button { position: absolute; bottom: -20px; width: 40px; height: 40px; font-size: 18px; }
.collapse:not(.is-collapsed) .collapse__toggle svg { transform: rotate(180deg); }

.similar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 4px; }
.sim { background: var(--card); border-radius: 4px; overflow: hidden; cursor: pointer; }
.sim__img { position: relative; aspect-ratio: 16 / 9; }
.sim__img img { width: 100%; height: 100%; object-fit: cover; }
.sim__dur { position: absolute; top: 8px; right: 10px; font-size: 14px; font-weight: 700; text-shadow: 0 1px 4px #000; }
.sim__body { padding: 14px 14px 18px; }
.sim__meta { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 14px; color: var(--muted-2); }
.sim__meta .round-btn { margin-left: auto; width: 36px; height: 36px; font-size: 18px; }
.sim p { margin: 0; font-size: 13.5px; color: #d2d2d2; line-height: 1.45; }
.about { padding-top: 6px; }
.about h3 { margin: 0 0 18px; font-size: 24px; font-weight: 400; }
.about p { margin: 0 0 9px; font-size: 14px; }

/* ---------- Player ---------- */
.player { position: fixed; inset: 0; z-index: 100; background: #000; color: #fff; user-select: none; }
.player__stage, .player__stage iframe, .player__shield { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__shield { z-index: 2; cursor: pointer; }
.player.is-idle, .player.is-idle .player__shield { cursor: none; }
.player__top, .player__bottom { position: absolute; left: 0; right: 0; z-index: 5; transition: opacity .35s; }
.player__top { top: 0; display: flex; justify-content: space-between; padding: 22px 26px; background: linear-gradient(180deg, rgba(0,0,0,.6), transparent); }
.player__bottom { bottom: 0; padding: 40px 0 12px; background: linear-gradient(0deg, rgba(0,0,0,.85), rgba(0,0,0,0)); }
.player.is-idle .player__top, .player.is-idle .player__bottom { opacity: 0; pointer-events: none; }
.pbtn { display: grid; place-items: center; width: 52px; height: 52px; font-size: 44px; transition: transform .15s; }
.pbtn:hover { transform: scale(1.18); }
.player__top .pbtn { font-size: 40px; }
.timeline { display: flex; align-items: center; gap: 18px; padding: 0 26px; }
.timeline__bar { position: relative; flex: 1; height: 4px; background: rgba(128,128,128,.6); cursor: pointer; transition: height .15s; }
.timeline__bar::before { content: ""; position: absolute; inset: -10px 0; }
.timeline__bar:hover { height: 7px; }
.timeline__buf { position: absolute; inset: 0 auto 0 0; background: rgba(200,200,200,.45); }
.timeline__fill { position: absolute; inset: 0 auto 0 0; background: var(--red); }
.timeline__knob { position: absolute; top: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--red); transform: translateY(-50%); }
.timeline__tip { position: absolute; bottom: 16px; padding: 4px 8px; border-radius: 3px; background: #262626; font-size: 13px; font-weight: 600; transform: translateX(-50%); opacity: 0; pointer-events: none; }
.timeline__bar:hover .timeline__tip { opacity: 1; }
.timeline__time { font-size: 15px; font-weight: 500; min-width: 48px; text-align: right; }
.controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 12px 26px 6px; }
.controls__left, .controls__right { display: flex; align-items: center; gap: clamp(8px, 2vw, 30px); }
.controls__right { justify-content: flex-end; }
.controls__title { font-size: clamp(14px, 1.15vw, 20px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.controls__title b { font-weight: 700; }
.vol { position: relative; display: flex; align-items: center; }
.vol__pop { position: absolute; bottom: 58px; left: 50%; transform: translateX(-50%); padding: 18px 12px; background: #262626; border-radius: 3px; opacity: 0; visibility: hidden; transition: opacity .2s; }
.vol:hover .vol__pop, .vol:focus-within .vol__pop { opacity: 1; visibility: visible; }
.vol__pop input { writing-mode: vertical-lr; direction: rtl; width: 8px; height: 110px; accent-color: var(--red); }
.pop-wrap { position: relative; }
.pop {
  position: absolute; bottom: 64px; right: -12px; background: #262626; border-radius: 4px; padding: 18px 0;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; min-width: 260px;
}
.pop.is-open { opacity: 1; visibility: visible; transform: none; }
.pop .pop__h { margin: 0 24px 12px; font-size: 22px; font-weight: 700; }
.pop--cc button { display: block; width: 100%; text-align: left; padding: 8px 24px 8px 52px; font-size: 17px; color: #b3b3b3; position: relative; }
.pop--cc button.is-on { color: #fff; }
.pop--cc button.is-on::before { content: "✓"; position: absolute; left: 24px; }
.pop--cc button:hover { background: rgba(255,255,255,.08); color: #fff; }
.pop--speed { min-width: 520px; padding: 22px 0 28px; }
.speeds { display: flex; justify-content: space-between; position: relative; margin: 20px 36px 0; }
.speeds::before { content: ""; position: absolute; left: 10px; right: 10px; top: 9px; height: 2px; background: #808080; }
.speeds button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 15px; color: #b3b3b3; }
.speeds button::before { content: ""; width: 12px; height: 12px; margin: 3px; border-radius: 50%; background: #b3b3b3; }
.speeds button.is-on { color: #fff; font-weight: 700; }
.speeds button.is-on::before { width: 18px; height: 18px; margin: 0; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.25); }
.pop--eps { width: min(560px, 90vw); max-height: 64vh; overflow-y: auto; padding: 0; }
.pop--eps header { position: sticky; top: 0; background: #262626; padding: 18px 24px 12px; font-size: 22px; font-weight: 700; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pop--eps header select { background: #262626; color: #fff; border: 1px solid #555; border-radius: 3px; padding: 6px 10px; font: inherit; font-size: 14px; }
.pep { display: grid; grid-template-columns: 26px 1fr; gap: 6px 12px; width: 100%; text-align: left; padding: 14px 24px; border-top: 1px solid #3a3a3a; }
.pep__n { font-size: 17px; color: #b3b3b3; }
.pep__t { font-size: 16px; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.pep__more { grid-column: 2; display: none; grid-template-columns: 150px 1fr; gap: 14px; }
.pep__more img { width: 150px; aspect-ratio: 16/9; object-fit: cover; border-radius: 3px; }
.pep__more p { margin: 0; font-size: 13px; color: #c8c8c8; }
.pep.is-current { background: #333; }
.pep.is-current .pep__more { display: grid; }
.pep:hover { background: #3a3a3a; }
.pop--next { width: 420px; padding: 0; overflow: hidden; }
.pop--next .pop__h { margin: 0; padding: 18px 20px 12px; font-size: 18px; }
.pop--next .pnext { display: grid; grid-template-columns: 160px 1fr; gap: 14px; padding: 0 20px 20px; text-align: left; }
.pnext img { width: 160px; aspect-ratio: 16/9; object-fit: cover; border-radius: 3px; }
.pnext b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.pnext p { margin: 0; font-size: 12.5px; color: #c8c8c8; }

.player__spinner { position: absolute; left: 50%; top: 50%; z-index: 3; width: 64px; height: 64px; margin: -32px; border-radius: 50%; border: 4px solid rgba(229,9,20,.25); border-top-color: var(--red); animation: spin .9s linear infinite; }
.player.is-ready .player__spinner { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.player__paused {
  position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: center; padding: 0 0 0 9vw;
  background: linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.25)); opacity: 0; pointer-events: none; transition: opacity .6s;
}
.player.is-paused-long .player__paused { opacity: 1; }
.player__paused-label { margin: 0 0 6px; color: #b3b3b3; font-size: clamp(14px, 1.2vw, 20px); }
.player__paused-show { margin: 0 0 14px; font-family: 'Baloo 2', var(--font); font-size: clamp(42px, 5vw, 86px); font-weight: 800; line-height: .9; }
.player__paused-ep { margin: 0 0 12px; font-size: clamp(16px, 1.5vw, 26px); font-weight: 700; }
.player__paused-desc { margin: 0; max-width: 560px; font-size: clamp(14px, 1.15vw, 19px); color: #ddd; line-height: 1.5; }
.player__flash { position: absolute; left: 50%; top: 50%; z-index: 4; width: 96px; height: 96px; margin: -48px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.45); font-size: 44px; opacity: 0; pointer-events: none; }
.player__flash.is-on { animation: flash .6s ease; }
@keyframes flash { 0% { opacity: 1; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.4); } }
.upnext {
  position: absolute; right: 3vw; bottom: 150px; z-index: 6; width: min(420px, 90vw); background: rgba(24,24,24,.94);
  border-radius: 6px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.6); animation: pop .4s var(--ease);
}
.upnext__media { position: relative; aspect-ratio: 16/9; }
.upnext__media img { width: 100%; height: 100%; object-fit: cover; }
.upnext__body { padding: 14px 16px 16px; }
.upnext__body small { color: #b3b3b3; font-size: 13px; }
.upnext__body b { display: block; margin: 2px 0 12px; font-size: 16px; }
.upnext__actions { display: flex; gap: 10px; }
.upnext__actions .btn { height: 40px; border-radius: 4px; font-size: 15px; position: relative; overflow: hidden; }
.upnext__actions .btn--play .fill { position: absolute; inset: 0 auto 0 0; background: rgba(0,0,0,.18); width: 0; }
.upnext__actions .btn > :not(.fill) { position: relative; }

/* ---------- Rodapé ---------- */
/* ---------- Banner EmagreSer ---------- */
.promo { padding: 10px var(--gutter) 56px; }
.promo__card {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 16px;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 64px);
  padding: clamp(28px, 4vw, 64px); background: #160a20; border: 1px solid rgba(255,255,255,.08);
}
.promo__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: blur(10px) brightness(.35) saturate(1.2); transform: scale(1.08); }
.promo__card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(14,6,22,.96) 0%, rgba(40,12,60,.82) 48%, rgba(120,8,20,.55) 100%);
}
.promo__brand {
  display: inline-flex; align-items: center; gap: .55em; margin: 0 0 14px;
  font-size: 13px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: #ddd;
}
.promo__brand::before { content: "E"; font: 800 26px/1 'Baloo 2', var(--font); letter-spacing: 0; color: var(--red); }
.promo__title { margin: 0 0 14px; font-size: clamp(26px, 3vw, 46px); font-weight: 800; line-height: 1.08; letter-spacing: -.01em; max-width: 20ch; }
.promo__desc { margin: 0 0 26px; max-width: 46ch; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.55; color: #d6d6d6; }
.promo__btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; border: 0; border-radius: 6px;
  padding: 15px 26px; font: 700 clamp(16px, 1.2vw, 19px)/1 var(--font); color: #fff; background: var(--red);
  transition: background-color .2s, transform .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent;
}
.promo__btn svg { width: 20px; height: 20px; transition: transform .2s; }
.promo__btn:hover, .promo__btn:focus-visible { background: #f6121d; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.5); }
.promo__btn:hover svg, .promo__btn:focus-visible svg { transform: translateX(4px); }
.promo__btn:active { transform: scale(.97); background: #b20710; box-shadow: none; }
.promo__btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.promo__logo { justify-self: center; width: min(100%, 460px); height: auto; filter: drop-shadow(0 8px 24px rgba(0,0,0,.6)); transform: rotate(-3deg); }
@media (prefers-reduced-motion: reduce) { .promo__btn, .promo__btn svg { transition: none; } }

.footer { max-width: 980px; margin: 0 auto; padding: 30px var(--gutter) 40px; color: #808080; font-size: 13px; }
.footer__social { display: flex; gap: 22px; margin-bottom: 18px; }
.footer__social a { color: #fff; font-size: 26px; }
.footer__links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 0 22px; padding: 0; list-style: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__code { border: 1px solid #808080; color: #808080; padding: 7px 10px; font-size: 13px; margin-bottom: 18px; }
.footer__code:hover { color: #fff; }
.footer__legal { font-size: 11.5px; line-height: 1.6; margin: 0; }
.footer__legal strong { color: #b3b3b3; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: #fff; color: #000; padding: 12px 20px; border-radius: 4px; font-size: 15px; font-weight: 600; box-shadow: 0 6px 24px rgba(0,0,0,.5);
  transition: opacity .25s, transform .25s; max-width: calc(100vw - 32px); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) {
  .nav__links {
    position: absolute; top: calc(var(--nav-h) - 6px); left: calc(var(--gutter) + 90px); flex-direction: column; align-items: stretch; gap: 0;
    min-width: 240px; padding: 8px 0; background: rgba(0,0,0,.94); border: 1px solid rgba(255,255,255,.15); border-top: 2px solid #e5e5e5;
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-browse .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { border-radius: 0; text-align: center; padding: 12px 16px; }
  .nav__links a.is-active { background: transparent; color: #fff; }
  .nav__links a:hover { background: rgba(255,255,255,.06); color: #fff; }
  .nav__browse { display: inline-flex; }
}
@media (max-width: 899px) {
  .hero__frame { aspect-ratio: 16 / 10; }
  .hero__content { width: 70%; }
  .hero__awards { display: none; }
  .minfo { grid-template-columns: 1fr; gap: 18px; }
  .similar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__links { grid-template-columns: repeat(2, 1fr); }
  .pop--speed { min-width: 360px; }
}
@media (max-width: 640px) {
  .nav__links { left: var(--gutter); right: var(--gutter); }
  /* no celular o topo não tem espaço: o botão vira o primeiro item do menu "Navegar" */
  .cta--top { display: none; }
  .promo__card { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 30px 22px 32px; }
  .promo__logo { order: -1; width: min(78%, 300px); }
  .promo__title, .promo__desc { margin-left: auto; margin-right: auto; }
  .promo__btn { width: 100%; justify-content: center; }
  .cta--menu { display: flex; order: -1; justify-content: center; margin: 6px 14px 10px; padding: 13px 18px; font-size: 15px; }
  .nav__browse { position: relative; }
  .nav__browse::after { content: ""; position: absolute; top: -2px; right: -8px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px #000; }
  .nav.is-browse .nav__browse::after { display: none; }
  .search.is-open input { width: 46vw; }
  .search.is-open ~ * { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 12px); }
  .hero__frame { aspect-ratio: 3 / 4; min-height: 0; border-radius: 12px; max-height: 72vh; }
  .hero__shade { background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.25) 50%, rgba(0,0,0,.1) 100%); }
  .hero__content { left: 16px; right: 16px; width: auto; bottom: 18px; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .title-art { align-items: center; }
  .title-art__logo { width: min(78vw, 340px); }
  .hero__meta { justify-content: center; font-size: 13px; }
  .hero__synopsis { display: none; }
  .hero__actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero__actions .btn { justify-content: center; border-radius: 6px; padding: 0 8px; font-size: 15px; }
  .mhero__content { left: 18px; right: 18px; }
  .mbody { padding: 0 18px 30px; }
  .ficha__caixa { margin: 0 auto; width: 100vw; border-radius: 0; min-height: 100vh; }
  .episode { grid-template-columns: 110px minmax(0,1fr); gap: 12px; padding: 14px 8px; align-items: start; }
  .season-note { flex-wrap: wrap; }
  .mhero .title-art__brand { display: none; }
  .mhero__actions .btn { padding: 0 16px 0 12px; }
  .episode__n { display: none; }
  .similar { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sim p { display: none; }
  .msec-title h3 { font-size: 20px; }
  .season-select select { font-size: 15px; padding: 8px 38px 8px 12px; }
  .controls { grid-template-columns: 1fr auto; }
  .controls__title { display: none; }
  .pbtn { width: 42px; height: 42px; font-size: 32px; }
  .controls__left, .controls__right { gap: 6px; }
  #pRw, #pFf, .vol { display: none; }
  .pop { position: fixed; left: 8px; right: 8px; bottom: 90px; min-width: 0; width: auto; }
  .pop--speed { min-width: 0; }
  .speeds { margin: 20px 18px 0; }
  .upnext { right: 8px; left: 8px; width: auto; bottom: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
