/* NovelaVerso · player vertical (9:16). */
[data-player] { --tl-fundo: #060918; --tl-texto: #F1F4FF; --tl-mudo: #A9B1D6; --tl-cor: #5EEAD4; }

/* Player dentro da página do título (vídeo único). No celular ocupa a largura toda, logo abaixo do topo. */
.nv-obra__player[data-player] { --tv-h: min(calc(var(--nv-vvh, 100dvh) - 120px), 720px); display: grid; place-items: center; border-radius: 20px; overflow: hidden; background: var(--tl-fundo); box-shadow: 0 24px 70px rgb(0 0 0 / 55%), 0 0 0 1px rgb(255 255 255 / 8%); }
.nv-obra__player[data-player] .nv-tela { width: calc(var(--tv-h) * .5625); max-width: 100%; }
@media (max-width: 899px) {
  .nv-obra__player[data-player] { margin-inline: calc(-1 * var(--lado)); border-radius: 0; box-shadow: none; --tv-h: min(calc(var(--nv-vvh, 100dvh) - var(--topo) - 70px), calc(100vw * 16 / 9)); }
}

/* Página de episódio. */
.nv-sala { display: grid; gap: 20px; max-width: var(--largura); margin: 0 auto; padding: 14px var(--lado) 0; }
.nv-sala__tela { --tv-h: calc(var(--nv-vvh, 100dvh) - 40px); display: grid; place-items: center; background: var(--tl-fundo); border-radius: 20px; overflow: hidden; }
@media (min-width: 900px) { .nv-sala { grid-template-columns: auto minmax(0, 1fr); gap: 36px; align-items: start; } .nv-sala__tela { --tv-h: calc(var(--nv-vvh, 100dvh) - 120px); } }
@media (max-width: 899px) { .nv-sala { padding: 0; } .nv-sala__lado { padding: 0 var(--lado); } .nv-sala__tela { border-radius: 0; --tv-h: min(calc(var(--nv-vvh, 100dvh) - 60px), calc(100vw * 16 / 9)); } }
.nv-sala__lado { display: grid; gap: 14px; align-content: start; }
.nv-sala__titulo { font-size: 1.7rem; }
.nv-sala__sub { color: var(--mudo); font-size: .9rem; }
.nv-sala__acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.nv-sala__eps h3 { font-size: 1.05rem; margin-bottom: 8px; }
.nv-sala__eps h3 small { font: 600 .8rem var(--f-texto); color: var(--mudo); }
.nv-sala__eps .nv-eps { max-height: 260px; overflow-y: auto; }
.nv-sala__sinopse summary { cursor: pointer; font-weight: 700; }
.nv-sala__sinopse p { margin-top: 8px; color: var(--texto-2); }

/* Palco */
.nv-tela { position: relative; isolation: isolate; display: grid; place-items: center; overflow: hidden; touch-action: none; container-type: inline-size;
  width: min(100%, calc(var(--tv-h, 80vh) * .5625)); aspect-ratio: 9 / 16; max-height: var(--tv-h, 80vh); background: #000; color: var(--tl-texto); font-family: var(--f-texto); }
.nv-tela__video { width: 100%; height: 100%; object-fit: contain; background: #000; -webkit-touch-callout: none; font-size: clamp(.75rem, 3cqw, 1.1rem); }
.nv-tela__video::cue { color: #fff; background: rgb(0 0 0 / 75%); line-height: 1.3; }
.nv-tela__cartaz { position: absolute; inset: 0; z-index: 1; pointer-events: none; transition: opacity .4s; }
.nv-tela__cartaz img { position: absolute; inset: 0; width: 100%; height: 100%; }
.nv-tela__cartaz-fundo { object-fit: cover; filter: blur(24px) saturate(.7) brightness(.45); transform: scale(1.2); }
.nv-tela__cartaz-img { object-fit: contain; }
[data-player]:not(.is-idle) .nv-tela__cartaz { opacity: 0; }
[data-player].is-idle .nv-tv-cromo, [data-player].is-idle .nv-tela__veu { opacity: 0; pointer-events: none; }
[data-player].is-idle .nv-tv-cromo > * { pointer-events: none; }
.nv-tela__veu { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(rgb(0 0 0 / 45%), transparent 20%, transparent 62%, rgb(0 0 0 / 78%)); transition: opacity .3s; }

.nv-tela__iniciar { position: absolute; z-index: 3; left: 50%; bottom: 14%; translate: -50% 0; display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px 14px 20px; border: 0; border-radius: 999px; background: linear-gradient(100deg, #5EEAD4, #38BDF8); color: #04122A; font: 800 1rem var(--f-texto); cursor: pointer; box-shadow: 0 10px 40px rgb(56 189 248 / 45%); }
.nv-tela__iniciar .nv-i { width: 24px; height: 24px; }
[data-player]:not(.is-idle) .nv-tela__iniciar { bottom: auto; top: 50%; translate: -50% -50%; padding: 16px; box-shadow: none; background: rgb(6 9 24 / 80%); }
[data-player]:not(.is-idle) .nv-tela__iniciar span { display: none; }

.nv-tela__bt { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--tl-texto); cursor: pointer; flex-shrink: 0; font: 700 .8rem var(--f-texto); }
.nv-tela__bt:hover { background: rgb(255 255 255 / 14%); }
.nv-tela__bt .nv-i, .nv-tela__bt .nv-ico { width: 21px; height: 21px; }
.nv-tela__bt--play { width: 46px; height: 46px; background: var(--tl-cor); color: #04122A; }
.nv-tela__bt--play:hover { background: #7FF5E0; }
.nv-tela__bt--play .nv-i, .nv-tela__bt--play .nv-ico { fill: currentColor; }
.nv-tela__bt[aria-pressed="true"] { background: rgb(255 255 255 / 20%); }

.nv-tv-cromo { position: absolute; inset: 0; z-index: 2; pointer-events: none; transition: opacity .3s; }
.nv-tv-cromo > * { pointer-events: auto; }
.nv-sem-controles .nv-tv-cromo, .nv-sem-controles .nv-tela__veu { opacity: 0; }
.nv-sem-controles .nv-tv-cromo > * { pointer-events: none; }
.nv-sem-controles .nv-tv-cromo:focus-within { opacity: 1; }
.nv-sem-controles .nv-tv-cromo:focus-within > * { pointer-events: auto; }
.has-track-menu .nv-tv-cromo, .is-switching .nv-tv-cromo { opacity: 1; }
.has-track-menu .nv-tela { touch-action: pan-y; }

.nv-tela__topo { position: absolute; top: env(safe-area-inset-top); inset-inline: 0; display: flex; align-items: center; gap: 10px; padding: 12px; }
.nv-tela__nome { flex: 1; min-width: 0; }
.nv-tela__nome h1 { font: 400 1.05rem/1.25 var(--f-titulo); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 8px #000; }
.nv-tela__nome p { font-size: .76rem; color: var(--tl-mudo); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
@media (min-width: 900px) { .nv-tela__topo [data-acao="voltar"] { display: none; } }

.nv-tv-controles { position: absolute; bottom: 0; inset-inline: 0; display: grid; gap: 2px; padding: 8px 10px calc(10px + env(safe-area-inset-bottom)); }
.nv-tela__regua { position: relative; height: 30px; display: flex; align-items: center; }
.nv-tela__trilho { position: absolute; inset-inline: 0; height: 3px; overflow: hidden; background: rgb(255 255 255 / 25%); pointer-events: none; }
.nv-tela__carregado, .nv-tela__visto { position: absolute; inset: 0; transform: scaleX(var(--progress, 0)); transform-origin: left; }
.nv-tela__carregado { background: rgb(255 255 255 / 30%); }
.nv-tela__visto { background: var(--tl-cor); }
.nv-tela__ponto { position: relative; z-index: 1; width: 100%; height: 30px; margin: 0; appearance: none; background: transparent; cursor: pointer; }
.nv-tela__ponto::-webkit-slider-runnable-track { height: 3px; background: transparent; }
.nv-tela__ponto::-webkit-slider-thumb { appearance: none; width: 14px; height: 14px; margin-top: -5.5px; background: #fff; border: 0; }
.nv-tela__ponto::-moz-range-track { height: 3px; background: transparent; }
.nv-tela__ponto::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 0; background: #fff; }
.nv-tela__comandos { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nv-tela__tempo { margin-left: 8px; font-size: .76rem; font-weight: 700; font-variant-numeric: tabular-nums; text-shadow: 0 1px 6px #000; }
.nv-tela__tempo i { font-style: normal; margin: 0 3px; color: var(--tl-mudo); }
.nv-tela__vao { flex: 1; }
@container (max-width: 360px) { .nv-tela__bt { width: 34px; height: 34px; } .nv-tela__bt--play { width: 40px; height: 40px; } .nv-tela__tempo { margin-left: 4px; font-size: .7rem; } }

.nv-volume { position: relative; }
.nv-volume__caixa { position: absolute; bottom: calc(100% + 6px); left: 50%; translate: -50% 6px; padding: 10px 8px; background: rgb(6 9 24 / 94%); opacity: 0; pointer-events: none; transition: opacity .2s, translate .2s; }
.nv-volume:hover .nv-volume__caixa, .nv-volume:focus-within .nv-volume__caixa, .nv-volume.is-open .nv-volume__caixa { opacity: 1; pointer-events: auto; translate: -50% 0; }
.nv-volume__nivel { writing-mode: vertical-lr; direction: rtl; width: 22px; height: 92px; accent-color: var(--tl-cor); }
html.is-ios .nv-volume__caixa { display: none; }

.nv-tv-mini { position: absolute; inset: auto 0 env(safe-area-inset-bottom, 0); z-index: 2; pointer-events: none; opacity: 0; visibility: hidden; }
.nv-tv-mini-trilho { height: 2px; background: rgb(255 255 255 / 18%); }
.nv-tv-mini-fill { display: block; height: 100%; background: var(--tl-cor); transform: scaleX(var(--progress, 0)); transform-origin: left; }
.nv-sem-controles .nv-tv-mini { opacity: 1; visibility: visible; transition: opacity .2s .3s; }

.nv-tela__espera { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; pointer-events: none; }
.nv-tela__espera span { width: 40px; height: 40px; border: 3px solid rgb(255 255 255 / 20%); border-top-color: var(--tl-cor); border-radius: 50%; animation: nv-roda .8s linear infinite; }
@keyframes nv-roda { to { rotate: 360deg; } }

.nv-tela__menu { position: absolute; z-index: 6; inset-inline: 10px; bottom: calc(96px + env(safe-area-inset-bottom)); max-height: min(42%, 320px); overflow-y: auto; padding: 6px; border-radius: 16px; background: rgb(6 9 24 / 96%); overscroll-behavior: contain; }
.nv-tela__menu button { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px; width: 100%; min-height: 44px; padding: 10px 12px; border: 0; background: none; color: var(--tl-texto); text-align: left; font-weight: 700; cursor: pointer; }
.nv-tela__menu button:hover { background: rgb(255 255 255 / 8%); }
.nv-tela__menu button[aria-checked="true"]::after { content: "●"; color: var(--tl-cor); }
.nv-tela__menu button[aria-disabled="true"] { color: var(--tl-mudo); cursor: not-allowed; }
.nv-menu-estado { grid-column: 1 / -1; font-size: .72rem; font-weight: 500; color: var(--tl-mudo); }
.nv-menu-estado:empty { display: none; }
.nv-velocidades { display: grid; gap: 6px; }
.nv-tela__trocando { display: none; position: absolute; z-index: 4; top: 22%; padding: 8px 14px; background: rgb(6 9 24 / 92%); font-size: .8rem; font-weight: 700; }
.is-switching .nv-tela__trocando { display: block; }

.nv-tela__aviso { position: absolute; z-index: 5; inset-inline: 14px; top: 24%; display: grid; justify-items: center; gap: 10px; padding: 20px 16px; text-align: center; background: rgb(20 27 61 / 96%); color: var(--texto); border: 1px solid var(--linha); border-radius: 18px; font-size: .9rem; }
.nv-tela__aviso-titulo { font: 400 1.4rem/1.15 var(--f-titulo); }
.nv-tela__aviso { grid-template-columns: minmax(0, 1fr); max-width: calc(100% - 28px); margin-inline: auto; overflow-wrap: anywhere; }
.nv-tela__aviso-acoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; min-width: 0; }
.nv-tela__aviso .nv-btn { white-space: normal; max-width: 100%; text-align: center; line-height: 1.25; }
.nv-tela__aviso [data-assinar] { width: 100%; }
.nv-playback-stopped video { filter: brightness(.3); }
.nv-playback-stopped .nv-tela__aviso { z-index: 7; max-height: 66%; overflow-y: auto; }

.nv-tela__seguinte { position: absolute; z-index: 5; inset-inline: 14px; bottom: 120px; display: grid; gap: 10px; padding: 14px; background: var(--painel); color: var(--texto); border: 1px solid var(--linha); border-radius: 18px; }
.nv-tela__seguinte-topo { display: flex; align-items: center; gap: 12px; }
.nv-prox-capa img { width: 42px; height: 63px; object-fit: cover; }
.nv-prox-titulo { font: 400 1.1rem var(--f-titulo); }
.nv-tela__seguinte-barra { height: 3px; background: var(--linha); overflow: hidden; }
.nv-tela__seguinte-barra span { display: block; height: 100%; width: 100%; background: var(--tl-cor); transform-origin: left; }
.nv-tela__seguinte.is-rising .nv-tela__seguinte-barra span { animation: nv-esvazia 2s linear forwards; }
@keyframes nv-esvazia { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.nv-tela__seguinte-conta { font-size: .8rem; color: var(--mudo); }
.nv-tela__seguinte-acoes { display: flex; gap: 8px; justify-content: flex-end; }

.nv-tela__fim { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; background: rgb(6 9 24 / 94%); }
.nv-tela__fim .nv-tag { color: var(--aurora); }
.nv-tela__fim-titulo { font: 400 1.9rem/1.1 var(--f-titulo); }

.nv-watermark { position: absolute; z-index: 8; opacity: .42; font: 700 12px/1.3 var(--f-texto); letter-spacing: .06em; color: #fff; text-shadow: 0 0 3px #000, 0 1px 4px #000; pointer-events: none; user-select: none; }
.nv-watermark--0 { top: 16%; left: 8%; } .nv-watermark--1 { top: 16%; right: 8%; } .nv-watermark--2 { bottom: 30%; right: 8%; } .nv-watermark--3 { bottom: 30%; left: 8%; } .nv-watermark--4 { bottom: 26%; left: 50%; translate: -50% 0; }
.nv-hold-speed { position: absolute; z-index: 6; top: 20%; left: 50%; translate: -50% 0; padding: 6px 14px; background: var(--tl-cor); color: #04122A; border-radius: 999px; font-weight: 700; font-size: .85rem; pointer-events: none; }
.nv-gesture-feedback { position: absolute; z-index: 6; left: var(--nv-feedback-x, 50%); top: var(--nv-feedback-y, 50%); translate: -50% -50%; pointer-events: none; color: #fff; font: 700 1.3rem var(--f-texto); text-shadow: 0 2px 8px #000; }
.nv-gesture-feedback .nv-ico, .nv-gesture-feedback .nv-i { width: 56px; height: 56px; fill: currentColor; }
.nv-cap-up .nv-tela__video { animation: nv-ep-sobe .35s ease-out; }
.nv-cap-down .nv-tela__video { animation: nv-ep-desce .35s ease-out; }
@keyframes nv-ep-sobe { from { transform: translateY(8%); opacity: .3; } }
@keyframes nv-ep-desce { from { transform: translateY(-8%); opacity: .3; } }

/* iPhone: tela cheia "simulada" (o vídeo não entra em tela cheia dentro da página). */
html.is-ios:has(.nv-sala) .nv-sala__tela { overscroll-behavior: none; }
html.is-ios-fill, html.is-ios-fill body { overflow: hidden; height: var(--nv-vvh, 100dvh); background: #000; }
html.is-ios-fill .nv-topo, html.is-ios-fill .nv-barra, html.is-ios-fill .nv-rodape { display: none; }
html.is-ios-fill .nv-sala__tela, html.is-ios-fill .nv-obra__player[data-player] { position: fixed; inset: 0; z-index: 70; height: var(--nv-vvh, 100dvh); padding: 0; margin: 0; --tv-h: var(--nv-vvh, 100dvh); }
html.is-ios-fill .nv-tela.is-ios-fill { width: 100%; max-height: none; height: 100%; aspect-ratio: auto; }
html.is-android:has(.nv-sala) .nv-tela__video { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.nv-tela:fullscreen { width: 100%; max-height: none; height: 100%; aspect-ratio: auto; }

@media (prefers-reduced-motion: reduce) { .nv-tela__espera span { animation-duration: 2s; } }
