/* Home films (#13161, #14639): the fold's two films behind two tabs (owner, 23/11/2026,
 * c7101074631), each a reserved 16:9 frame. Tokens: assets/sala-publica.css; the frame keeps the
 * navy media hex of the player before the #16079 cut in both themes, so the films' own colours
 * read the same. */
.hc-abas { display: grid; gap: var(--s-3); min-width: 0; }
/* The tab strip: two 44px tabs on a hairline; the selected one in ink with the gold underline. */
.hc-abas-lista { display: flex; flex-wrap: wrap; gap: var(--s-2); border-bottom: 1px solid var(--c-fio); }
.hc-abas-lista[hidden], .hc-capitulos[hidden] { display: none; }
.hc-abas-lista [role="tab"] {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-4); margin-bottom: -1px;
  color: var(--c-tinta-2); background: transparent; border: 1px solid transparent; border-radius: var(--r) var(--r) 0 0;
  font: 500 1rem/1 var(--t-sans); cursor: pointer; transition: color .18s cubic-bezier(.22, 1, .36, 1);
}
.hc-abas-lista [role="tab"]:hover { color: var(--c-tinta); }
.hc-abas-lista [role="tab"][aria-selected="true"] { color: var(--c-tinta); border-color: var(--c-fio); border-bottom-color: var(--c-papel); background: var(--c-papel); box-shadow: inset 0 2px 0 var(--c-acao); }
.ed-home .hc-abas-lista [role="tab"]:focus-visible { outline-offset: -2px; }
/* Once script shows the strip, the tab names the film: the caption stays only as the player's
   accessible name. Without script the strip keeps its hidden attribute and both films stand open, named. */
.hc-abas-lista:not([hidden]) ~ .hc-native > figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; padding: 0; }
.hc-native { position: relative; margin: 0; min-width: 0; }
.hc-native figcaption {
  display: flex; align-items: baseline; gap: var(--s-2); padding-block: 0 var(--s-3);
  color: var(--c-tinta); font: 600 1rem/1.25 var(--t-sans);
}
.hc-native figcaption::before { content: ""; flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--c-acao); translate: 0 -.1em; }
.hc-native video {
  display: block; box-sizing: border-box; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain;
  background: #101b2b; border: 1px solid var(--c-fio); border-radius: var(--r);
}
/* With script: our bar under the frame (play/pause, sound, elapsed time, a progress line), a
   centred play button over the poster when nothing starts by itself, and the loading notice. */
.hc-moldura { position: relative; }
.hc-tocar {
  position: absolute; inset: 0; margin: auto; width: max-content; height: max-content;
  display: none; align-items: center; gap: var(--s-2); min-height: 48px; padding: 0 var(--s-5) 0 var(--s-4);
  color: var(--c-acao-tinta); background: var(--c-acao); border: 0; border-radius: var(--r); cursor: pointer;
  font: 600 1rem/1 var(--t-sans);
}
.hc-tocar svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.hc-moldura[data-hc-oferta] .hc-tocar { display: inline-flex; }
.ed-home .hc-tocar:focus-visible { outline: 2px solid var(--c-tinta); outline-offset: 3px; }
/* Loading: a plate in the frame's lower corner with a turning ring, only while a wanted film waits. */
.hc-carregando {
  position: absolute; left: var(--s-3); bottom: var(--s-3); display: none; align-items: center; gap: var(--s-2);
  margin: 0; padding: var(--s-1) var(--s-3); color: var(--c-papel); background: #101b2b;
  border: 1px solid var(--c-acao); border-radius: var(--r); font: 500 .875rem/1.4 var(--t-sans);
}
.hc-carregando::before { content: ""; width: .875rem; height: .875rem; box-sizing: border-box; border: 2px solid var(--c-acao); border-right-color: transparent; border-radius: 50%; }
.hc-moldura[data-hc-carregando] .hc-carregando { display: inline-flex; }
@media (prefers-reduced-motion: no-preference) {
  .hc-carregando::before { animation: hc-gira .8s linear infinite; }
}
@keyframes hc-gira { to { transform: rotate(1turn); } }
.hc-barra { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); padding-top: var(--s-2); }
.hc-progresso { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--c-fio); overflow: hidden; }
.hc-progresso > span { position: absolute; inset: 0; background: var(--c-acao); transform: scaleX(0); transform-origin: left; }
.hc-botao {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3);
  color: var(--c-tinta); background: transparent; border: 1px solid var(--c-borda-ctrl); border-radius: var(--r);
  font: 500 .9375rem/1 var(--t-sans); cursor: pointer; transition: border-color .18s cubic-bezier(.22, 1, .36, 1);
}
.hc-botao:hover { border-color: var(--c-tinta); }
.hc-tempo { margin-left: auto; color: var(--c-tinta-2); font: 400 .875rem/1 var(--t-mono); font-variant-numeric: var(--t-numeros); }
/* The file link holds the bar's row until playback controls are installed. */
.hc-native[data-hc-pronto] .ed-film-file { display: none; }
/* Chapters sit directly under the frame: a mono time and the name, 44px tall. */
.hc-capitulos { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.hc-capitulos button {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-3);
  color: var(--c-tinta); background: transparent; border: 1px solid var(--c-borda-ctrl); border-radius: var(--r);
  font: 500 .9375rem/1 var(--t-sans); cursor: pointer;
}
.hc-capitulos time { color: var(--c-tinta-2); font: 400 .875rem/1 var(--t-mono); font-variant-numeric: var(--t-numeros); }
.hc-capitulos button:hover { border-color: var(--c-tinta); }
.hc-capitulos button[aria-current="true"] { border-color: var(--c-tinta); box-shadow: inset 0 -2px 0 var(--c-acao); }
.hc-falha { margin: var(--s-2) 0 0; color: var(--c-tinta-2); }
.hc-falha a, .ed-film-file { color: var(--c-fonte); text-decoration: underline; text-underline-offset: .2em; }
.ed-film-file { display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--s-2); }

/* The home's single action sits in its fold; the shared pre-footer would repeat it. */
body:has(#view-home:not([hidden])) .prefooter { display: none; }
