/* Web player do FICHER TV */
#player-app { min-height: 100vh; display: flex; flex-direction: column; }
#player-app[hidden] { display: none !important; }

.pbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 18px; background: rgba(7, 11, 16, .92); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.pbrand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.pbrand .word { font-size: 20px; }
.ptabs { display: flex; gap: 4px; background: var(--surface); border-radius: 12px; padding: 4px; }
.ptabs button {
  border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600;
  padding: 8px 14px; border-radius: 9px; cursor: pointer; white-space: nowrap;
}
.ptabs button.on { background: var(--surface2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
/* aba "Tutoriais": link para o canal do YouTube. Estilo pelo elemento, porque o player.js zera a classe dos filhos de #tabs. */
.ptabs a {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: var(--a1); font-size: 14px; font-weight: 700;
  padding: 8px 14px; border-radius: 9px; text-decoration: none; white-space: nowrap;
}
.ptabs a::before { content: ""; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.ptabs a:hover, .ptabs a:focus-visible { background: var(--surface2); }
.psearch {
  flex: 1; min-width: 80px; max-width: 420px; margin: 0 0 0 auto; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--text); font: inherit; font-size: 14px;
}
.pboost, .pget {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px;
  padding: 9px 14px; font: inherit; font-size: 12px; font-weight: 900; letter-spacing: .5px; cursor: pointer; white-space: nowrap;
  text-decoration: none;
}
.pboost.on { background: linear-gradient(135deg, var(--a1), var(--a2)); color: #04120f; border-color: transparent; }
.pget { color: var(--a1); }

/* primeira visita */
.welcome { max-width: 980px; width: 100%; margin: 0 auto; padding: 26px 16px 40px; }
.hero { text-align: center; padding: 34px 22px; }
.hero img { width: 120px; height: 120px; }
.hero h1 { font-size: 30px; margin-top: 6px; }
.hero .sub { max-width: 560px; margin: 0 auto 18px; font-size: 15px; }
.hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn { width: auto; margin: 0; padding: 14px 22px; }
.hero .aviso { max-width: 620px; margin: 22px auto 0; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 16px; }
.cols h2 { font-size: 18px; margin: 0 0 6px; }
.cols .btn { width: auto; display: inline-block; margin: 0 0 14px; text-decoration: none; }
.passos.small { font-size: 14px; color: #c3cdd5; }

/* biblioteca */
.pbody { flex: 1; display: grid; grid-template-columns: 250px 1fr; min-height: 0; }
.pbody[hidden] { display: none !important; }
.pside { border-right: 1px solid var(--line); padding: 14px 12px 30px; overflow-y: auto; max-height: calc(100vh - 62px); position: sticky; top: 62px; }
.pside-h { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin: 14px 6px 8px; }
.pside-h:first-child { margin-top: 2px; }
.srv {
  display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 12px; background: var(--surface); margin-bottom: 6px;
}
.srv .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.srv .dot.on { background: var(--a1); }
.srv .dot.off { background: var(--danger); }
.srv .nm { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srv .st { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srv .txt { flex: 1; min-width: 0; }
.srv button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.srv button:hover { color: var(--danger); background: var(--surface2); }
.btn.small { padding: 10px 14px; font-size: 13px; border-radius: 11px; margin-top: 4px; }
.pcats button {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; text-align: left;
  border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; padding: 9px 10px; border-radius: 10px; cursor: pointer;
}
.pcats button span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcats button:hover { background: var(--surface); color: var(--text); }
.pcats button.on { background: var(--surface2); color: var(--text); font-weight: 700; box-shadow: inset 0 0 0 1px var(--line); }
.pcats small { color: var(--muted); font-size: 11px; flex: none; }

.pcontent { padding: 16px 18px 40px; min-width: 0; }
.notice { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: #2a1f12; color: #ffd08a; font-size: 13px; }
.pempty { color: var(--muted); font-size: 14px; padding: 30px 6px; }

/* modo compatível (espelho HTTP) */
.mirrortip { margin: 0; padding: 9px 18px; background: #2a1f12; color: #ffd08a; font-size: 13px; line-height: 1.45; }
.mirrortip a { color: #ffe3b5; font-weight: 700; white-space: nowrap; }
.impbar { margin: 14px 18px 0; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid rgba(63, 217, 168, .45); }
.impbar p { margin: 0 0 6px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.impbar .btn { width: auto; }
#p-http { margin: 0 0 4px; }
/* dica fixa embaixo do link da lista (13/11/2026: quem colava o endereço do site não sabia o que faltava) */
.dica { margin: -4px 0 10px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }

/* explicação do Boost */
.boostinfo { display: grid; gap: 14px; margin: 6px 0 18px; }
.boostinfo b { display: block; font-size: 14px; margin-bottom: 2px; color: var(--text); }
.boostinfo.on b { color: var(--a1); }
.boostinfo span { color: var(--muted); font-size: 14px; line-height: 1.5; }
#boost-info { z-index: 60; }
.stage-err .row { flex-wrap: wrap; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pgrid.posters { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.pcard {
  position: relative; display: block; width: 100%; padding: 0; border: 2px solid transparent; border-radius: 14px; overflow: hidden;
  background: var(--surface); color: var(--text); cursor: pointer; aspect-ratio: 16 / 10; font: inherit; text-align: left;
  transition: transform .12s ease, border-color .12s ease;
}
.pgrid.posters .pcard { aspect-ratio: 2 / 3; }
.pcard:hover, .pcard:focus-visible { transform: scale(1.04); border-color: var(--text); outline: none; z-index: 2; }
.pcard img { position: absolute; inset: 12px 20px 30px; width: calc(100% - 40px); height: calc(100% - 42px); object-fit: contain; }
.pgrid.posters .pcard img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard .ini { position: absolute; inset: 0 0 24px; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 900; color: #2c3b48; letter-spacing: 1px; }
.pcard .nm {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 9px 7px; font-size: 12px; font-weight: 600; line-height: 1.25;
  background: linear-gradient(transparent, rgba(0, 0, 0, .92)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pgrid.posters .pcard .nm { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pcard .bdg { position: absolute; top: 6px; right: 6px; padding: 2px 7px; border-radius: 999px; font-size: 10px; font-weight: 800; color: #04120f; background: linear-gradient(135deg, var(--a1), var(--a2)); }
.pcard .star { position: absolute; top: 6px; left: 8px; font-size: 12px; font-weight: 900; color: #ffc857; }
#more { width: auto; margin: 18px auto 0; display: block; }
#more[hidden] { display: none; }

/* modais */
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .7); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 14px; overflow-y: auto; }
.modal[hidden] { display: none !important; }
.modal-card { width: 100%; max-width: 460px; }
.modal-card.wide { max-width: 760px; }
.row { display: flex; gap: 10px; align-items: center; }
.row .btn { margin-top: 6px; }
.row.between { justify-content: space-between; }
.row.between h1 { margin: 0; }
.row.between .btn, .row.center .btn { width: auto; }
.row.center { justify-content: center; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 0; }
.chips:empty { display: none; }
.chip { border: 1px solid var(--line); background: var(--surface2); color: var(--muted); border-radius: 999px; padding: 7px 13px; font: inherit; font-size: 13px; cursor: pointer; }
.chip.on { color: var(--text); border-color: var(--a1); font-weight: 700; }
.eps { margin-top: 12px; display: grid; gap: 8px; max-height: 52vh; overflow-y: auto; }
.ep { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; border: 0; background: var(--bg); color: var(--text); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.ep:hover { box-shadow: inset 0 0 0 1px var(--a1); }
.ep b { color: var(--a1); flex: none; }

/* player */
.stage { position: fixed; inset: 0; z-index: 60; background: #000; }
.stage[hidden] { display: none !important; }
.stage video { width: 100%; height: 100%; background: #000; }
.stage-top {
  position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px 30px; background: linear-gradient(rgba(0, 0, 0, .85), transparent); transition: opacity .25s ease;
}
.stage.idle .stage-top { opacity: 0; pointer-events: none; }
.stage.idle { cursor: none; }
.stage-info { flex: 1; min-width: 160px; }
.st-title { font-size: 19px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-src { font-size: 13px; color: var(--a1); }
.stage-top .chips { margin: 0; }
.stage-top .btn { width: auto; margin: 0; }
.stage-err { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(520px, 90vw); text-align: center; background: rgba(15, 22, 29, .96); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.stage-err[hidden] { display: none; }
.stage-err p { margin: 0 0 14px; font-size: 15px; line-height: 1.5; }

@media (max-width: 820px) {
  .pbar { flex-wrap: wrap; gap: 8px 10px; padding: 8px 12px; }
  .pbrand .word { font-size: 17px; }
  .psearch { order: 5; flex-basis: 100%; max-width: none; margin: 0; }
  .ptabs { order: 4; flex: 1; }
  .ptabs button { flex: 1; padding: 8px 6px; }
  .ptabs a { flex: 1; padding: 8px 6px; }
  .pboost { margin-left: auto; }
  .pbody { grid-template-columns: 1fr; }
  .pside { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
  .pcats { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
  .pcats button { width: auto; flex: none; background: var(--surface); border-radius: 999px; padding: 8px 13px; }
  .pcats small { display: none; }
  .pgrid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
  .pgrid.posters { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .pcontent { padding: 12px 12px 34px; }
}

/* DNS seguro */
#dns-ask { z-index: 60; }
#dns-ask .muted { color: var(--muted); line-height: 1.45; }
#dns-ask .small { font-size: 12px; margin: 12px 0 0; }
#dns-ask .row.gap { flex-wrap: wrap; }
#dns-ask .row.gap .btn { width: auto; }
.dalist { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 6px; }
.darow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface2); color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.darow:hover, .darow:focus-visible { border-color: var(--a1); outline: none; }
.darow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--a1); flex: none; }
.darow b { flex: 1; }
.darow em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--a1); }
.darow .ms { color: var(--muted); font-size: 13px; }
.srv .st.dns { color: var(--a1); }
.linkbtn { border: 0; background: none; padding: 0; color: var(--muted); font: inherit; font-size: inherit; text-decoration: underline; cursor: pointer; }

/* filtro por servidor e continuar assistindo */
.psrv { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.psrv[hidden] { display: none; }
.psrv button { border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; font-size: 12px;
  padding: 6px 11px; border-radius: 999px; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psrv button.on { background: linear-gradient(135deg, var(--a1), var(--a2)); color: #04110c; border-color: transparent; font-weight: 700; }
.pcard { position: relative; }
/* .pprog: NÃO usar .pbar (é o cabeçalho) */
.pprog { position: absolute; left: 8px; right: 8px; bottom: 6px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.18); overflow: hidden; }
.pprog i { display: block; height: 100%; background: var(--a1); }
/* webplayer da revenda com plano de fundo (wl.js põe a classe wlf e a variável --wl-fundo): película escura por cima para
   o texto e os cartões continuarem legíveis */
html.wl.wlf body { background: linear-gradient(rgba(7, 11, 16, .45), rgba(7, 11, 16, .68)), var(--wl-fundo) center / cover no-repeat fixed; background-color: var(--bg); }

/* webplayer da revenda: servidores de reserva marcados pelo cliente (wl.js v4) */
.wl-dnsl { border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; padding: 8px 12px 10px; margin: 6px 0 4px; }
.wl-dnsl legend { padding: 0 6px; font-size: 13px; font-weight: 700; }
.wl-dnsl label { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-weight: 500; word-break: break-all; }
.wl-dnsl input[type=checkbox] { width: 18px; height: 18px; flex: none; margin: 0; }
.wl-dnsl small { display: block; opacity: .75; margin-top: 4px; }

/* notas do IMDb (18/11/2026): selo por faixa, igual ao portal da TV (.it .imdb em c/ftv.css) */
.imdb { display: inline-block; padding: 0 6px; height: 18px; line-height: 18px; border-radius: 5px; font-size: 11px; font-weight: 800;
  letter-spacing: .2px; color: #04131A; background: #5B7A88; white-space: nowrap; vertical-align: middle; }
.imdb.c4 { background: #2ECC71; } .imdb.c3 { background: #A3E048; } .imdb.c2 { background: #F5C451; }
.imdb.c1 { background: #FF9F43; } .imdb.c0 { background: #FF6B6B; }
/* cartão de filme/série: o selo fica em cima do nome, dentro da legenda */
.pgrid .pcard .nm.cap, .pgrid.posters .pcard .nm.cap { display: block; white-space: normal; overflow: hidden; -webkit-line-clamp: unset; }
.pgrid .pcard .nm.cap .imdb { margin: 0 0 4px; }
.pgrid .pcard .nm.cap .t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s-nota { margin: 8px 0 0; font-size: 14px; font-weight: 700; }
.st-nota { margin-top: 2px; font-size: 13px; font-weight: 700; }
.s-nota.c4, .st-nota.c4 { color: #2ECC71; } .s-nota.c3, .st-nota.c3 { color: #A3E048; } .s-nota.c2, .st-nota.c2 { color: #F5C451; }
.s-nota.c1, .st-nota.c1 { color: #FF9F43; } .s-nota.c0, .st-nota.c0 { color: #FF6B6B; }
/* "Filmes e séries: maior nota IMDb primeiro" (fica guardado neste navegador) */
.psw { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin: 8px 0 0; padding: 9px 10px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-size: 12.5px;
  font-weight: 600; line-height: 1.35; text-align: left; cursor: pointer; }
.psw[hidden] { display: none; }
.psw:hover, .psw:focus-visible { border-color: var(--a1); outline: none; }
.psw i { position: relative; flex: none; width: 36px; height: 20px; border-radius: 999px; background: var(--surface2); box-shadow: inset 0 0 0 1px var(--line); }
.psw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform .15s ease; }
.psw.on i { background: linear-gradient(135deg, var(--a1), var(--a2)); box-shadow: none; }
.psw.on i::after { transform: translateX(16px); background: #04120f; }
/* episódio que está tocando */
.ep.on { box-shadow: inset 0 0 0 2px var(--a1); }
/* Barra de cima e erro do player acima dos controles do próprio vídeo: no WebKit (Safari/iPhone) a camada dos controles nativos
   tem z-index e, visível, cobria "−10 s", "+10 s" e "Fechar" (medido 18/11/2026: o toque ia para o <video>) */
.stage-top { z-index: 3; }
.stage-err { z-index: 5; }
/* pular abertura / próximo episódio: acima dos controles do vídeo, fora da barra de cima (aparece mesmo com ela escondida) */
.pular { position: absolute; right: 22px; bottom: 92px; z-index: 4; display: inline-flex; align-items: center; gap: 12px; min-height: 50px;
  padding: 0 18px; border: 2px solid var(--a1); border-radius: 12px; background: rgba(8, 16, 22, .88); color: #fff; font: inherit;
  font-size: 17px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.pular[hidden] { display: none; }
.pular:hover, .pular:focus-visible { background: rgba(17, 33, 42, .96); outline: none; box-shadow: 0 0 0 3px rgba(63, 217, 168, .35); }
.pular kbd { font: inherit; font-size: 12px; font-weight: 900; padding: 3px 8px; border-radius: 7px; background: var(--a1); color: #04131A; }
.st-aviso { position: absolute; left: 22px; bottom: 158px; z-index: 4; max-width: min(560px, calc(100% - 44px)); padding: 12px 16px;
  border-left: 4px solid var(--a1); border-radius: 12px; background: rgba(8, 16, 22, .9); color: #fff; pointer-events: none; }
.st-aviso[hidden] { display: none; }
.st-aviso b { display: block; font-size: 17px; }
.st-aviso span { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.4; color: #c3cdd5; }
@media (hover: none) { .pular kbd { display: none; } }
@media (max-width: 820px) {
  .pular { right: 12px; bottom: 74px; min-height: 46px; padding: 0 14px; font-size: 15px; }
  .st-aviso { left: 12px; bottom: 130px; max-width: calc(100% - 24px); }
}

/* ===== Futebol e Jogos (20/11/2026) ===== */
/* aba "Jogos": é um link (abre /jogos/), com a cara das outras abas e não a do "Tutoriais" */
.ptabs a[data-aba] { color: var(--muted); font-weight: 600; }
.ptabs a[data-aba]::before { content: none; }
.ptabs a[data-aba]:hover, .ptabs a[data-aba]:focus-visible { color: var(--text); }
.ptabs button:focus-visible, .ptabs a:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; }

.fut { flex: 1; width: 100%; max-width: 1560px; margin: 0 auto; padding: 18px 18px 48px; min-width: 0; }
.fut[hidden] { display: none !important; }
.fut-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; }
.fut-top h1 { margin: 0; font-size: 26px; }
.fut-data { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.fut-atual { margin: 0; color: var(--muted); font-size: 12.5px; }
.fut-atual.erro { color: #ffd08a; }

.fsec { margin-top: 22px; }
.fsec-h { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted); }
.fsec-h small { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; opacity: .85; }
.fsec.vivo .fsec-h { color: #ff8fa0; }
.fsec.vivo .fsec-h i, .fj-vivo i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); animation: futpulsa 1.4s ease-in-out infinite; }
@keyframes futpulsa { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .fsec.vivo .fsec-h i, .fj-vivo i { animation: none; } }

.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; align-items: start; }
.fjogo { min-width: 0; padding: 12px 14px 14px; border: 2px solid transparent; border-radius: 16px; background: var(--surface);
  outline: none; scroll-margin: 84px 0 24px; transition: border-color .12s ease; }
.fjogo:focus-visible { border-color: var(--text); }
.fjogo.vivo { border-color: rgba(255, 107, 129, .42); background: linear-gradient(180deg, rgba(255, 107, 129, .09), rgba(255, 107, 129, 0) 62%) var(--surface); }
.fjogo.vivo:focus-visible { border-color: var(--text); }
.fjogo.fim .fj-placar, .fjogo.adiado .fj-placar { opacity: .72; }
.fj-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; font-size: 12px; }
.fj-liga { min-width: 0; color: var(--a1); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fj-st { flex: none; color: var(--muted); font-weight: 600; }
.fj-vivo { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px;
  background: rgba(255, 107, 129, .16); font-size: 11px; line-height: 18px; white-space: nowrap; }
.fj-vivo b { color: #ff8fa0; font-weight: 900; letter-spacing: .5px; }
.fj-vivo span { color: var(--text); font-weight: 700; }
.fj-placar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; margin-top: 12px; }
.fj-time { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; text-align: center; }
.fj-esc { position: relative; flex: none; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 50%; background: var(--surface2); overflow: hidden; }
.fj-esc.ok { background: transparent; border-radius: 0; }
.fj-esc.ok .fj-sig { display: none; }
.fj-esc img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.fj-esc.ok img { opacity: 1; }
.fj-sig { font-size: 12px; font-weight: 900; letter-spacing: .5px; color: var(--muted); }
.fj-nome { max-width: 100%; font-size: 14px; font-weight: 700; line-height: 1.2; overflow: hidden; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fj-meio { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 64px; font-variant-numeric: tabular-nums; }
.fj-meio b { min-width: 20px; font-size: 30px; font-weight: 900; line-height: 1; text-align: center; }
.fj-meio i { font-style: normal; font-size: 15px; color: var(--muted); }
.fj-hora { font-size: 22px; font-weight: 800; line-height: 1; }
.fj-local { margin-top: 10px; text-align: center; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fj-onde { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.fj-onde-t { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.fj-onde-l { display: flex; flex-wrap: wrap; gap: 6px; }
.fonde { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 38px; padding: 6px 12px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface2); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; line-height: 1.2;
  text-align: left; cursor: pointer; scroll-margin: 84px 0 24px; }
.fonde::before { content: ""; flex: none; border-left: 8px solid var(--a1); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.fonde span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fonde small { flex: none; padding: 1px 6px; border-radius: 999px; font-size: 10px; font-weight: 800; color: #04120f;
  background: linear-gradient(135deg, var(--a1), var(--a2)); }
.fonde:hover, .fonde:focus-visible { border-color: var(--a1); outline: none; box-shadow: 0 0 0 3px rgba(63, 217, 168, .25); }

.fvazio { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; padding: 22px; border: 1px solid var(--line);
  border-radius: 18px; background: var(--surface); }
.fvazio img { flex: none; width: 72px; height: 72px; }
.fvazio-t { flex: 1; min-width: 200px; }
.fvazio-t b { display: block; font-size: 18px; line-height: 1.25; }
.fvazio-t span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.fvazio .btn, .fconv .btn { flex: none; width: auto; margin: 0; }
.fconv { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; margin-top: 14px; padding: 12px 16px;
  border: 1px solid rgba(63, 217, 168, .45); border-radius: 14px; background: var(--surface); font-size: 14px; line-height: 1.45; }
.fconv span { flex: 1; min-width: 200px; }

.fut-h2 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 34px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.fut-h2 h2 { margin: 0; font-size: 20px; line-height: 1.25; }
.fut-h2 span { color: var(--muted); font-size: 13px; }
.fmarca { margin-top: 18px; }
.fmarca-h { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; font-size: 15px; font-weight: 800; }
.fmarca-h::before { content: ""; flex: none; width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(var(--a1), var(--a2)); }
.fmarca-h small { padding: 1px 8px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 700; }
.fcanal { scroll-margin: 84px 0 24px; }
.fcanal .ini { top: 16px; }   /* as iniciais descem um pouco: o selo da qualidade fica em cima */
.fmais { display: block; width: auto; margin: 12px 0 0; }
.fut .pempty { padding: 18px 2px; }

@media (max-width: 820px) {
  .fut { padding: 14px 12px 40px; }
  .fut-top h1 { font-size: 22px; }
  .fgrid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; }
  .fjogo, .fonde, .fcanal { scroll-margin-top: 124px; }
  .fut-h2 { margin-top: 28px; padding-top: 18px; }
  .fvazio { padding: 18px 16px; }
  /* seis abas no celular: cabem apertadas; se a tela for mais estreita ainda, a fileira rola de lado (a página não) */
  .ptabs { flex: 1 1 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .ptabs::-webkit-scrollbar { display: none; }
  .ptabs button, .ptabs a { flex: 1 0 auto; }
}
@media (max-width: 520px) {
  .ptabs { gap: 2px; padding: 3px; }
  .ptabs button, .ptabs a { padding: 8px 5px; font-size: 12.5px; }
  .ptabs a::before { content: none; }
  /* a fileira de cima (marca, Indicar, BOOST, Baixar app) cabe inteira no celular */
  .pbar .pindica, .pbar .pboost, .pbar .pget { padding: 8px 10px; }
  /* "Baixar app" desce para o lado da busca: o cabeçalho fica com três fileiras, não quatro */
  .pbar .psearch { flex: 1 1 120px; }
  .pbar .pget { order: 6; }
}

/* ===== Programação dos canais (EPG fase 1, 20/11/2026): "Agora / A seguir" (epg.js) ===== */
/* cartão do canal: "Agora: título" pequeno e apagado embaixo do nome (só quando há programação) */
.pcard .nm .ep-ag { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 500; line-height: 1.3; color: rgba(231, 238, 243, .66);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* faixa do canal no vídeo: aparece junto com os controles e por 6 s ao abrir/trocar de canal (.vis); nunca recebe toque */
.st-epg { position: absolute; left: 22px; bottom: 84px; z-index: 4; width: 620px; max-width: calc(100% - 44px); box-sizing: border-box;
  padding: 11px 16px 13px; border-left: 4px solid var(--a1); border-radius: 12px; background: rgba(8, 16, 22, .9); color: #fff;
  pointer-events: none; transition: opacity .25s ease; }
.st-epg[hidden] { display: none; }
.stage.idle .st-epg:not(.vis) { opacity: 0; }
.st-epg .ep-nm { font-size: 12px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: #9fb1bd;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-epg .ep-l, .st-epg .ep-seg { display: flex; align-items: baseline; gap: 9px; margin-top: 5px; font-size: 13.5px; color: #c3cdd5; white-space: nowrap; }
.st-epg .ep-tag { flex: none; padding: 1px 7px; border-radius: 5px; font-size: 11px; font-weight: 900; letter-spacing: .6px; color: #04131A; background: var(--a1); }
.st-epg .ep-seg .ep-tag { color: #dfe7ec; background: rgba(255, 255, 255, .14); }
.st-epg .ep-h { flex: none; font-weight: 700; color: #fff; }
.st-epg .ep-falta { margin-left: auto; padding-left: 8px; font-weight: 700; color: var(--a1); }
.st-epg .ep-t { margin-top: 4px; font-size: 18px; font-weight: 800; line-height: 1.25; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.st-epg .ep-bar { height: 4px; margin-top: 8px; border-radius: 3px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.st-epg .ep-bar i { display: block; height: 100%; width: 0; background: var(--a1); }
.st-epg .ep-d { margin: 8px 0 0; font-size: 13.5px; line-height: 1.4; color: #c3cdd5; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.st-epg .ep-seg { margin-top: 8px; overflow: hidden; }
.st-epg .ep-t2 { overflow: hidden; text-overflow: ellipsis; color: #fff; font-weight: 600; }
@media (max-width: 820px) {
  .st-epg { left: 12px; right: 12px; width: auto; max-width: none; bottom: 74px; padding: 10px 13px 12px; }
  .st-epg { left: calc(12px + env(safe-area-inset-left)); right: calc(12px + env(safe-area-inset-right)); bottom: calc(74px + env(safe-area-inset-bottom)); }
  .st-epg .ep-t { font-size: 16px; }
  /* celular em pé com a caixa de erro no meio: a faixa fica compacta embaixo dela (sem descrição nem "A seguir") */
  .stage-err:not([hidden]) ~ .st-epg .ep-d, .stage-err:not([hidden]) ~ .st-epg .ep-seg { display: none; }
  .stage-err:not([hidden]) ~ .st-epg .ep-t { -webkit-line-clamp: 1; }
}
/* celular deitado (pouca altura): só nome, horário, título e barra; com o erro na tela, a faixa sai para não ficar por cima */
@media (max-height: 520px) {
  .st-epg { bottom: 58px; padding: 8px 12px 10px; }
  .st-epg { bottom: calc(58px + env(safe-area-inset-bottom)); }
  .st-epg .ep-d, .st-epg .ep-seg { display: none; }
  .st-epg .ep-t { -webkit-line-clamp: 1; font-size: 15px; }
  .stage-err:not([hidden]) ~ .st-epg { display: none; }
}

/* ===== Futebol v2 (21/11/2026): abas por campeonato, quem transmite e acabamento dos cartões ===== */
.fligas { display: flex; gap: 8px; margin: 16px -18px 0; padding: 4px 18px 12px; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; scroll-padding: 0 18px; }
.fligas::-webkit-scrollbar { display: none; }
.fliga { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 14px 8px 12px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface); color: var(--muted); font: inherit; font-size: 14px; font-weight: 700; line-height: 1.2;
  white-space: nowrap; cursor: pointer; scroll-margin: 84px 18px 24px; transition: border-color .12s ease, color .12s ease, background .12s ease; }
.fliga:hover { color: var(--text); border-color: rgba(63, 217, 168, .55); }
.fliga:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; color: var(--text); }
.fliga small { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--surface2); color: var(--muted); font-size: 12px; font-weight: 800;
  text-align: center; font-variant-numeric: tabular-nums; }
.fliga i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); animation: futpulsa 1.4s ease-in-out infinite; }
.fliga-logo, .fsec-logo { flex: none; width: 24px; height: 24px; padding: 2px; border-radius: 7px; background: #fff; object-fit: contain; }
.fliga.on { border-color: transparent; background: linear-gradient(135deg, var(--a1), var(--a2)); color: #04120f; }
.fliga.on small { background: rgba(4, 18, 15, .18); color: #04120f; }
.fliga.on i { background: #7a0f22; }
.fliga.vivo { border-color: rgba(255, 107, 129, .5); color: #ff8fa0; }
.fliga.vivo.on { border-color: transparent; background: linear-gradient(135deg, #ff6b81, #ff9a5a); color: #2a0509; }
.fliga.vivo.on small { background: rgba(42, 5, 9, .2); color: #2a0509; }
.fliga.vivo.on i { background: #2a0509; }
@media (prefers-reduced-motion: reduce) { .fliga i { animation: none; } }
.fpainel { min-height: 120px; }
.fsec.liga { margin-top: 26px; }
.fsec.liga .fsec-h { font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--text); }
.fsec.liga .fsec-h small { color: var(--muted); }
.fsemhoje { padding: 16px 2px 0; }

/* cartão do jogo: mais respiro, escudo maior e placar em destaque */
.fgrid { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; }
.fjogo { padding: 14px 16px 16px; border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0) 58%) var(--surface);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.fjogo.vivo { background: linear-gradient(180deg, rgba(255, 107, 129, .12), rgba(255, 107, 129, 0) 62%) var(--surface); box-shadow: none; }
.fj-placar { margin-top: 14px; gap: 10px; }
.fj-esc { width: 56px; height: 56px; }
.fj-nome { font-size: 14px; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.fj-meio { gap: 6px; min-width: 88px; }
.fj-meio b { min-width: 38px; padding: 7px 4px; border-radius: 10px; background: var(--surface2); font-size: 28px; }
.fjogo.vivo .fj-meio b { background: rgba(255, 107, 129, .16); }
.fj-hora { padding: 8px 12px; border-radius: 10px; background: var(--surface2); font-size: 20px; }
.fj-onde { margin-top: 14px; padding-top: 12px; }
.fj-tv { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; margin-bottom: 12px; }
.fj-tv .fj-onde-t { margin: 0; }
.fj-tv-l { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.ftv { display: inline-flex; align-items: center; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted);
  font-size: 12px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.ftv.tem { border-color: rgba(63, 217, 168, .55); background: rgba(63, 217, 168, .1); color: var(--text); }
.ftv.tem::before { content: ""; flex: none; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--a1); }
.fj-semtv { margin-top: 14px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; text-align: center; }
.fj-semcanal { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.fonde.certo { border-color: var(--a1); background: rgba(63, 217, 168, .13); }
.fonde em { flex: none; font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--a1); }
.fonde.mais { color: var(--muted); }
.fonde.mais::before { content: none; }

@media (max-width: 820px) {
  .fligas { margin: 12px -12px 0; padding: 4px 12px 10px; scroll-padding: 0 12px; }
  .fliga { min-height: 44px; font-size: 13.5px; scroll-margin: 124px 12px 24px; }
  .fgrid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; }
  .fjogo { padding: 12px 14px 14px; }
  .fj-esc { width: 52px; height: 52px; }
  .fj-meio { min-width: 88px; }
}
