/* FICHER TV - ficha estilo Netflix (21/11/2026): esquerda = título, informações, resumo e botões; direita = trailer / imagem /
   logo do canal com a programação / placar do jogo. Celular em pé: a mídia vai para cima e o texto embaixo. */
.modal.ficha { padding: 0; align-items: stretch; background: #05080c; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.ficha .ficha-card { position: relative; width: 100%; min-height: 100%; display: grid; grid-template-columns: minmax(320px, 40%) 1fr;
  grid-template-areas: "esq dir"; align-items: start; align-content: start; gap: 0 28px; padding: 28px 32px 32px; box-sizing: border-box; isolation: isolate; }
.ficha .f-fundo { position: absolute; inset: 0; z-index: -1; background: #05080c center / cover no-repeat; filter: blur(28px) saturate(1.2);
  opacity: .32; pointer-events: none; }
.ficha .ficha-card::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 8, 12, .96) 0%, rgba(5, 8, 12, .82) 42%, rgba(5, 8, 12, .55) 100%); }
.ficha .f-esq { grid-area: esq; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.ficha .f-dir { grid-area: dir; min-width: 0; position: sticky; top: 28px; }
.ficha .f-topo { display: flex; align-items: center; gap: 12px; }
.ficha .f-fechar { margin: 0 !important; width: auto !important; }
.ficha .f-tipo { margin: 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--a1); font-weight: 700; }
.ficha #s-title { margin: 2px 0 0; font-size: clamp(28px, 3.4vw, 52px); line-height: 1.05; font-weight: 800; letter-spacing: -.01em;
  overflow-wrap: anywhere; text-shadow: 0 2px 18px rgba(0, 0, 0, .5); }
.ficha .f-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; color: #c7d2da; font-size: 15px; }
.ficha .f-meta:empty { display: none; }
.ficha .f-meta .imdb { position: static; margin: 0; }
.ficha .f-m { white-space: nowrap; }
.ficha .f-vivo { background: #e5303e; color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .08em; padding: 3px 9px; border-radius: 6px; }
.ficha .s-nota { margin: 0; }
.ficha .f-agora { margin: 2px 0 0; display: flex; flex-direction: column; gap: 4px; }
.ficha .f-agora[hidden] { display: none; }
.ficha .f-ag-r { color: var(--a1); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.ficha .f-agora b { font-size: 20px; line-height: 1.25; }
.ficha .f-bar, .ficha .f-prog-bar { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); overflow: hidden; max-width: 420px; }
.ficha .f-bar i { display: block; height: 100%; background: var(--a1); }
.ficha .f-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 2px; }
.ficha .f-btn { display: inline-flex; align-items: center; justify-content: center; width: auto; margin: 0; min-height: 48px; padding: 0 22px; font-size: 16px; border-radius: 10px; }
.ficha .f-btn small { font-weight: 500; opacity: .8; font-size: 13px; }
.ficha .f-btn.f-play { background: #fff; color: #05080c; font-weight: 800; padding: 0 30px; }
.ficha .f-btn.f-play::before { content: "▶"; margin-right: 10px; font-size: 14px; }
.ficha .f-btn:not(.f-play) { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.ficha .f-btn.f-fav.on { color: #ffd34d; }
.ficha .f-btn:focus-visible, .ficha .ep:focus-visible, .ficha .chip:focus-visible, .ficha .f-fechar:focus-visible {
  outline: 3px solid var(--a1); outline-offset: 3px; }
.ficha .f-btn:focus { transform: scale(1.04); }
.ficha .f-resumo { margin: 4px 0 0; font-size: 16px; line-height: 1.55; color: #dce5eb; max-width: 62ch;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; overflow: hidden; }
.ficha .f-resumo:empty, .ficha .f-elenco:empty { display: none; }
.ficha .f-fonte { margin: -4px 0 0; font-size: 12px; color: var(--muted); }
.ficha .f-elenco { margin: 0; font-size: 14px; color: #9fb0bd; line-height: 1.45; }
.ficha #s-sources:empty, .ficha #s-seasons:empty, .ficha #s-msg:empty, .ficha #s-eps:empty { display: none; }
.ficha #s-seasons { margin-top: 6px; }
.ficha .eps { max-height: none; }

/* lado direito */
.ficha .f-media { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0b1117;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06); }
.ficha .f-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.ficha .f-media .f-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ficha .f-media .f-img.cartaz { object-fit: contain; }
.ficha .f-media .f-img.cartaz.ok { background: #0b1117; }
.ficha .f-media-sombra { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(5, 8, 12, .35), transparent 35%); }
.ficha .f-ini { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 64px; font-weight: 800;
  color: rgba(255, 255, 255, .35); background: linear-gradient(135deg, #12303a, #0b1117); }

/* canal: a mídia vira painel (logo + programação), sem proporção fixa */
.ficha.f-c .f-media { aspect-ratio: auto; background: transparent; box-shadow: none; overflow: visible; }
.ficha .f-canal { display: flex; flex-direction: column; gap: 16px; }
.ficha .f-logo { position: relative; height: clamp(150px, 24vh, 240px); border-radius: 18px; display: flex; align-items: center; justify-content: center;
  padding: 26px 40px; box-sizing: border-box; overflow: hidden;
  background: radial-gradient(120% 140% at 50% 0%, #ffffff 0%, #eef3f7 55%, #d9e2ea 100%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5), inset 0 -10px 30px rgba(0, 0, 0, .06); }
.ficha .f-logo.escuro { background: radial-gradient(120% 140% at 50% 0%, #2a3a48 0%, #16212b 55%, #0d151c 100%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.ficha .f-logo-img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .18)); }
.ficha .f-logo .f-ini { color: #5d6b78; background: transparent; font-size: 72px; }
.ficha.f-tem-jogo .f-logo { height: 110px; padding: 16px 30px; }
.ficha .f-grade { background: rgba(15, 22, 29, .82); border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; padding: 14px 16px; }
.ficha .f-grade h3 { margin: 0 0 8px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ficha .f-grade-msg { margin: 4px 0; color: var(--muted); }
.ficha .f-prog { display: flex; gap: 14px; padding: 9px 4px; border-top: 1px solid rgba(255, 255, 255, .06); }
.ficha .f-prog:first-of-type { border-top: 0; }
.ficha .f-prog .f-h { flex: 0 0 56px; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 700; }
.ficha .f-prog.on .f-h { color: var(--a1); }
.ficha .f-pt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ficha .f-pt b { font-weight: 600; overflow-wrap: anywhere; }
.ficha .f-pt small { color: #9fb0bd; font-size: 13px; line-height: 1.4; }

/* jogo no canal */
.ficha .f-jogo-box { display: flex; flex-direction: column; gap: 10px; }
.ficha .f-jogo-box[hidden] { display: none; }
.ficha .f-jogo-tit { margin: 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ficha .f-jogo { border-radius: 18px; padding: 14px 18px; background: linear-gradient(135deg, #0f2a22 0%, #0b1720 60%, #0b1117 100%);
  border: 1px solid rgba(63, 217, 168, .25); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.ficha .f-jogo.grande { padding: 22px 22px 26px; }
.ficha .f-liga { display: block; text-align: center; font-size: 13px; color: #9fb0bd; letter-spacing: .06em; margin-bottom: 8px; }
.ficha .f-placar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.ficha .f-time { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.ficha .f-time b { font-size: 16px; line-height: 1.2; overflow-wrap: anywhere; }
.ficha .f-esc { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #cfd8df; }
.ficha .f-jogo.grande .f-esc { width: 96px; height: 96px; font-size: 22px; }
.ficha .f-esc img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45)); }
.ficha .f-meio { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ficha .f-gols, .ficha .f-hr { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .02em; white-space: nowrap; }
.ficha .f-jogo.grande .f-gols, .ficha .f-jogo.grande .f-hr { font-size: 56px; }
.ficha .f-est { font-size: 13px; color: #9fb0bd; font-weight: 700; white-space: nowrap; }
.ficha .f-est.vivo { color: #fff; background: #e5303e; padding: 2px 10px; border-radius: 999px; animation: fVivo 1.6s ease-in-out infinite; }
@keyframes fVivo { 50% { opacity: .65; } }

/* celular e tela estreita: mídia em cima, texto embaixo (como o Netflix no celular) */
@media (max-width: 860px) {
  .ficha .ficha-card { grid-template-columns: 1fr; grid-template-areas: "dir" "esq"; padding: 0 0 calc(24px + env(safe-area-inset-bottom)); gap: 0; }
  .ficha .f-dir { position: relative; top: 0; }
  .ficha .f-media { border-radius: 0; box-shadow: none; }
  .ficha.f-c .f-dir { padding: calc(64px + env(safe-area-inset-top)) 16px 0; }
  .ficha .f-esq { padding: 16px 16px 0; }
  .ficha .f-topo { position: absolute; top: calc(10px + env(safe-area-inset-top)); left: 12px; right: 12px; z-index: 3; }
  .ficha.f-c .f-topo { position: absolute; }
  .ficha .f-fechar { background: rgba(0, 0, 0, .55) !important; backdrop-filter: none; }
  .ficha .ficha-card::after { background: linear-gradient(180deg, rgba(5, 8, 12, .2) 0%, rgba(5, 8, 12, .92) 34%, #05080c 60%); }
  .ficha .f-btns { flex-direction: column; }
  .ficha .f-btn { width: 100%; justify-content: center; }
  .ficha .f-logo { height: 140px; }
  .ficha .f-jogo.grande .f-esc { width: 72px; height: 72px; }
  .ficha .f-jogo.grande .f-gols, .ficha .f-jogo.grande .f-hr { font-size: 44px; }
  .ficha .f-btn:focus { transform: none; }
  /* canal no celular: jogo e logo em cima, nome e Assistir logo depois, programação no fim (quem zapeia não rola a tela) */
  .ficha.f-c .ficha-card { grid-template-areas: none; }
  .ficha.f-c .f-dir, .ficha.f-c .f-media, .ficha.f-c .f-canal { display: contents; }
  .ficha.f-c .f-jogo-box { order: 1; margin: calc(64px + env(safe-area-inset-top)) 16px 12px; }
  .ficha.f-c .f-logo { order: 2; margin: 0 16px; height: 120px; }
  .ficha.f-c .f-jogo-box:not([hidden]) + .f-logo { margin-top: 0; }
  .ficha.f-c .f-jogo-box[hidden] + .f-logo { margin-top: calc(64px + env(safe-area-inset-top)); }
  .ficha.f-c.f-tem-jogo .f-logo { height: 84px; padding: 12px 24px; }
  .ficha.f-c .f-esq { grid-area: auto; order: 3; }
  .ficha.f-c .f-grade { order: 4; margin: 18px 16px 0; }
  .ficha .f-jogo.grande { padding: 16px 14px 18px; }
}
/* TV / tela grande: letras maiores para ler do sofá */
@media (min-width: 1600px) {
  .ficha .ficha-card { padding: 48px 64px; gap: 0 48px; }
  .ficha .f-resumo { font-size: 19px; }
  .ficha .f-btn { min-height: 56px; font-size: 19px; }
  .ficha .f-meta { font-size: 17px; }
}
.ficha #s-nota { display: none !important; }
