/* Novelinhas — overrides mínimos sobre o app.css/rs.css do amodramas.
   Só o que é específico do WordPress/novelinhas (elementos que o breu monta via sistema). */

/* neutraliza o main{display:grid;2-col+sidebar} genérico do amodramas — nosso main é fluxo simples */
main.site-main { display: block !important; grid-template-columns: none !important; max-width: none; margin: 0; padding: 0; gap: 0; }

/* HEADER definitivo — layout flex sólido e explícito (o grid/height do appbar do amodramas
   depende da estrutura de página deles e colapsava a altura aqui). Controle total. */
.appbar {
  position: sticky !important; top: 0; z-index: 100;
  height: 64px !important; min-height: 64px !important;
  display: flex !important; align-items: center !important; gap: clamp(14px,2vw,34px) !important;
  padding: 0 clamp(14px,2.5vw,34px) !important;
  background: rgba(11,11,15,.82) !important; backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.appbar.scrolled { background: rgba(8,8,10,.95) !important; }
.appbar .logo { position: static !important; transform: none !important; left: auto !important; margin: 0 !important; flex: 0 0 auto; justify-self: auto !important; font-size: 20px !important; line-height: 1 !important; }
/* custom-logo do WP (imagem) — cabe no header sem transbordar */
.appbar .custom-logo-link { display: flex !important; align-items: center; margin: 0 !important; padding: 0 !important; flex: 0 0 auto; }
.appbar img.custom-logo, .appbar .custom-logo-link img { max-height: 40px !important; width: auto !important; height: auto !important; display: block; }
.appbar .appnav { display: flex !important; align-items: center; gap: clamp(4px,.6vw,12px); flex: 1 1 auto; min-width: 0; overflow: hidden; }
.appbar .appnav a { padding: 9px 13px; border-radius: 10px; font-size: 14px; font-weight: 600; color: #b9b9c6; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.appbar .appnav a.on, .appbar .appnav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.appbar .appbar-right { margin-left: auto !important; flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.appbar #btnMenu { display: none; }
@media (max-width: 900px){
  .appbar .appnav { display: none !important; }
  .appbar #btnMenu { display: inline-flex !important; }
}
.home-wrap { max-width: 1360px; margin: 0 auto; padding: 20px clamp(10px,2vw,24px) 40px; }

/* busca no header (o breu abre overlay; aqui é form inline simples) */
.nv-hsearch { display: flex; align-items: center; gap: 4px; }
.nv-hsearch input {
  width: 0; opacity: 0; padding: 0; border: 0; background: #17151b; color: #fff;
  border-radius: 100px; height: 38px; transition: width .25s, opacity .25s, padding .25s; outline: 0; font-size: 14px;
}
.nv-hsearch:focus-within input, .nv-hsearch input:not(:placeholder-shown) { width: 200px; opacity: 1; padding: 0 16px; }
@media (max-width:620px){ .nv-hsearch:focus-within input, .nv-hsearch input:not(:placeholder-shown){ width: 140px; } }

/* paginação */
.nv-pager { display: flex; justify-content: center; gap: 6px; margin: 34px 0 10px; flex-wrap: wrap; }
.nv-pager .page-numbers { padding: 9px 14px; border-radius: 10px; background: #17151b; border: 1px solid #ffffff14; color: #cfd3dc; font-weight: 700; font-size: 14px; }
.nv-pager .page-numbers.current { background: #ff375f; border-color: #ff375f; color: #fff; }
.nv-empty { text-align: center; padding: 70px 20px; color: #8a93a3; }
.nv-empty p { margin-bottom: 18px; font-size: 17px; }

/* ---- player DESKTOP inline (página de série) ---- */
.serie-body { max-width: 1100px; margin: 0 auto; padding: 0 clamp(10px,2vw,24px) 50px; }
.nv-dplayer { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.55); margin: -40px auto 26px; max-width: 900px; scroll-margin-top: 80px; }
.nv-dplayer iframe, .nv-dplayer video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.serie-play-btn { display: inline-flex; align-items: center; gap: 9px; background: linear-gradient(135deg,#ff375f,#ff5b8a); color: #fff; font-weight: 800; padding: 13px 26px; border-radius: 100px; box-shadow: 0 10px 26px rgba(255,55,95,.4); }

/* grade de episódios (página de série) */
.serie-box { background: #14121a; border: 1px solid #241f2d; border-radius: 16px; padding: 4px 4px 14px; margin-bottom: 30px; }
.serie-box-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 12px; border-bottom: 1px solid #241f2d; }
.serie-box-head h2 { font-size: 17px; margin: 0; }
.serie-ep-search { background: #0e0c12; border: 1px solid #2a2433; color: #fff; border-radius: 9px; padding: 8px 12px; font-size: 13px; width: 140px; outline: 0; }
.serie-eps { display: grid; grid-template-columns: repeat(auto-fill,minmax(48px,1fr)); gap: 9px; padding: 16px; }
.serie-ep { aspect-ratio: 1; border-radius: 11px; border: 1px solid #2a2433; background: #1b1723; color: #e7e2ee; font-weight: 700; font-size: 15px; cursor: pointer; transition: .15s; }
.serie-ep:hover { border-color: #ff375f; }
.serie-ep.on { background: linear-gradient(135deg,#ff375f,#ff5b8a); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(255,55,95,.4); }
.serie-similar { margin-top: 10px; }
.serie-section-head h2 { font-size: 20px; margin: 0 0 16px; }

/* ---- sheet de episódios (mobile player) ---- */
.sheet { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .26s; }
.sheet.on { opacity: 1; }
.sheet[hidden] { display: none; }
.sheet-card { width: 100%; max-height: 66vh; background: #14121a; border-radius: 22px 22px 0 0; padding: 6px 16px calc(20px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .26s cubic-bezier(.2,.8,.2,1); overflow-y: auto; }
.sheet.on .sheet-card { transform: translateY(0); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; position: sticky; top: 0; background: #14121a; font-weight: 700; border-bottom: 1px solid #241f2d; }
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(50px,1fr)); gap: 10px; padding: 16px 4px 4px; }
.ep-cell { aspect-ratio: 1; border-radius: 12px; border: 1px solid #2a2433; background: #1b1723; color: #e7e2ee; font-weight: 700; font-size: 15px; cursor: pointer; }
.ep-cell.on { background: linear-gradient(135deg,#ff375f,#ff5b8a); border-color: transparent; color: #fff; }

/* mobile player: título no topo + slide swipe (complementa player.css) */
.tt-title { flex: 1; text-align: center; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.tt-topbar { display: flex; align-items: center; gap: 12px; }
.slide .phone { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #000; }
.slide .vid { width: 100%; height: 100%; object-fit: cover; }
.slide .caption { position: absolute; left: 16px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 5; font-size: 15px; font-weight: 700; padding: 6px 14px; border-radius: 100px; background: rgba(0,0,0,.4); backdrop-filter: blur(6px); }
.slide .ep-poster { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(.6); }
.nv-embed-play { position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; border: 0; font-size: 30px; cursor: pointer; z-index: 5; }
.tt-msg { position: absolute; inset: 0; display: grid; place-items: center; color: #9aa0ad; }
.spin { width: 40px; height: 40px; border: 3px solid rgba(255,255,255,.2); border-top-color: #ff375f; border-radius: 50%; animation: nvspin 1s linear infinite; }
@keyframes nvspin { to { transform: rotate(360deg); } }

/* ---- página de gêneros (.gx-*, real do amodramas /generos) ---- */
.gx-wrap { max-width: 1360px; margin: 0 auto; padding: 20px clamp(10px,2vw,24px) 50px; }
.gx-wrap .lead { color: #c1c6d0; font-size: 15px; line-height: 1.6; max-width: 820px; margin: 0 0 22px; }
.gx-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 14px; }
.gx-card { position: relative; display: block; border-radius: 14px; overflow: hidden; height: 120px; background: #15151c; border: 1px solid #23232d; }
.gx-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; transition: .2s; }
.gx-card:hover img { opacity: .6; transform: scale(1.04); }
.gx-card .ov { position: absolute; inset: 0; background: linear-gradient(180deg,#0a0d1200,#0a0d12dd); display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; }
.gx-card .nm { color: #fff; font-weight: 900; font-size: 17px; line-height: 1.2; }
.gx-card .ct { color: #ff8fab; font-weight: 700; font-size: 12.5px; margin-top: 3px; }

/* ---- páginas Sobre/Contato (.doc) — real do amodramas ---- */
.doc { max-width: 820px; margin: 0 auto; padding: clamp(22px,4vw,40px) clamp(16px,4vw,26px) 80px; color: #c9ced8; font-size: 15.5px; line-height: 1.7; }
.doc h1 { font-size: clamp(26px,4vw,36px); font-weight: 900; color: #fff; margin: 0 0 6px; letter-spacing: -.4px; }
.doc h1 b { background: linear-gradient(90deg,#ff5b8a,#ff375f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.doc .sub { color: #9aa0ad; font-size: 15px; margin: 0 0 24px; }
.doc h2 { font-size: 20px; font-weight: 800; color: #fff; margin: 30px 0 10px; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 16px; padding-left: 20px; } .doc li { margin-bottom: 7px; }
.doc a { color: #ff8fab; }
.doc-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 22px 0; }
.doc-stat { background: #131319; border: 1px solid #20202a; border-radius: 14px; padding: 16px; text-align: center; }
.doc-stat b { display: block; font-size: 24px; color: #fff; font-weight: 900; }
.doc-stat span { color: #8b909c; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.doc-cta { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(90deg,#ff5b8a,#ff375f); color: #fff; font-weight: 800; border-radius: 12px; padding: 12px 22px; margin-top: 10px; }
.chan { display: flex; align-items: center; gap: 14px; background: #131319; border: 1px solid #20202a; border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; text-decoration: none; transition: .15s; }
.chan:hover { border-color: #ff375f; }
.chan .ic { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 11px; background: rgba(255,55,95,.14); color: #ff8fab; display: flex; align-items: center; justify-content: center; }
.chan b { color: #fff; font-size: 15.5px; display: block; }
.chan span { color: #8b909c; font-size: 13.5px; }

/* ---- página Planos (hero VIP + benefícios do amodramas + cards próprios) ---- */
.plans-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; background: linear-gradient(135deg,#1a1020,#140d18); border: 1px solid #2a1d2e; border-radius: 22px; padding: 28px; margin: 10px 0 26px; align-items: center; }
.plans-kicker { display: inline-flex; align-items: center; gap: 9px; min-height: 34px; padding: 0 13px; border-radius: 999px; background: rgba(255,111,168,.14); border: 1px solid rgba(255,111,168,.26); color: #ffe3ee; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .8px; }
.plans-hero p { max-width: 620px; margin: 0; color: #d7d7df; font-size: 15.5px; line-height: 1.55; }
.plans-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; list-style: none; }
.plans-benefits li { display: flex; align-items: center; gap: 9px; padding: 11px; border-radius: 15px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.08); color: #efeff5; font-size: 13.5px; font-weight: 700; }
.plans-benefits .ck { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg,#ff5b8a,#ff375f); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.nv-plans { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 16px; }
.nv-plan { position: relative; background: #131319; border: 1px solid #20202a; border-radius: 18px; padding: 24px 18px; text-align: center; transition: .18s; }
.nv-plan:hover { transform: translateY(-4px); border-color: #ff375f55; }
.nv-plan.pop { border-color: #ff375f; box-shadow: 0 14px 40px rgba(255,55,95,.22); }
.nv-plan-tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg,#ff5b8a,#ff375f); color: #fff; font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 100px; text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }
.nv-plan-name { color: #cfd3dc; font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.nv-plan-price { color: #fff; font-weight: 900; font-size: 38px; line-height: 1; display: flex; align-items: baseline; justify-content: center; gap: 3px; }
.nv-plan-price small { font-size: 16px; font-weight: 700; color: #9aa0ad; }
.nv-plan-price span { font-size: 12px; font-weight: 600; color: #8b909c; margin-left: 4px; }
.nv-plan-save { color: #22c55e; font-size: 12.5px; font-weight: 700; margin: 8px 0 0; }
.nv-plan-cta { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; width: 100%; justify-content: center; background: linear-gradient(135deg,#ff375f,#ff5b8a); color: #fff; font-weight: 800; padding: 12px; border-radius: 12px; }
.nv-plan:not(.pop) .nv-plan-cta { background: #1f1f29; border: 1px solid #2e2e3a; }
@media (max-width:760px){ .plans-hero { grid-template-columns: 1fr; padding: 20px; } }

/* ---- footer colunas (complementa .afoot) ---- */
.afoot-cols { display: flex; gap: 50px; flex-wrap: wrap; padding: 26px 0; }
.afoot-col h4 { font-size: 13px; color: #fff; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .5px; }
.afoot-col a { display: block; color: #8a93a3; font-size: 14px; padding: 4px 0; transition: .15s; }
.afoot-col a:hover { color: #ff5b8a; }
.afoot-bottom { border-top: 1px solid #161d29; padding-top: 18px; color: #6b7280; font-size: 13px; }
