/* Portal público — mobile-first, identidade WAP | WAAW (grafite, branco e laranja). */
:root {
    --laranja: #f07b23;
    --grafite: #26262a;
    --texto: #1f2933;
    --muted: #5f6b7a;
    --fundo: #f5f6f8;
    --cartao: #ffffff;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", Arial, sans-serif; background: var(--fundo); color: var(--texto); }
.hidden { display: none !important; }

.topo { background: var(--grafite); color: #fff; padding: 1.25rem 1rem 1.1rem; border-bottom: 4px solid var(--laranja); }
.marcas { display: flex; align-items: center; gap: 0.8rem; }
.marcas img { height: 34px; }
.marcas img.waaw { height: 22px; }
.divisor { width: 3px; height: 30px; background: var(--laranja); border-radius: 2px; }
.subtitulo { margin: 0.6rem 0 0; font-size: 0.98rem; opacity: 0.9; }

main { padding: 1rem; max-width: 1200px; margin: 0 auto; }
.busca input {
    width: 100%; padding: 0.85rem 1rem; font-size: 1rem; border-radius: 10px;
    border: 1px solid #d5d9df; background: #fff; color: var(--texto);
}
.busca input:focus { outline: 2px solid var(--laranja); border-color: transparent; }
.estado { color: var(--muted); }

.secao h2 { font-size: 1.15rem; margin: 1.5rem 0 0.75rem; padding-left: 0.6rem; border-left: 4px solid var(--laranja); }
.grade { display: grid; grid-template-columns: 1fr; gap: 0.9rem; }
.cartao {
    display: grid; gap: 0.5rem; text-align: left; padding: 0; border: 0; background: var(--cartao); border-radius: 12px;
    overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); cursor: pointer; font: inherit; color: inherit;
}
.cartao:focus-visible { outline: 3px solid var(--laranja); }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #ddd; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tempo { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, 0.75); color: #fff; font-size: 0.8rem; padding: 2px 7px; border-radius: 6px; }
.play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%;
    background: rgba(240, 123, 35, 0.92); color: #fff; display: grid; place-items: center; font-size: 1.2rem;
}
.nome { padding: 0 0.85rem 0.9rem; font-weight: 600; line-height: 1.3; }

.player { border: 0; padding: 0.75rem; border-radius: 14px; width: min(980px, 96vw); background: #111; color: #fff; }
.player::backdrop { background: rgba(0, 0, 0, 0.75); }
.player-topo { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.6rem; }
.player-topo button { background: transparent; color: #fff; border: 0; font-size: 1.3rem; cursor: pointer; }
.player video { width: 100%; max-height: 78vh; border-radius: 8px; background: #000; }
.player video.vertical { width: auto; max-width: 100%; height: 78vh; display: block; margin: 0 auto; }
.formatos { display: flex; gap: 0.5rem; justify-content: center; margin-top: 0.6rem; }
.formatos button { border: 1px solid #555; background: transparent; color: #fff; padding: 0.4rem 0.9rem; border-radius: 99px; cursor: pointer; }
.formatos button.ativo { background: var(--laranja); border-color: var(--laranja); }
.rodape { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 2rem 1rem; }

@media (min-width: 600px) { .grade { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
    .grade { grid-template-columns: repeat(3, 1fr); }
    main { padding: 1.5rem 2rem; }
    .topo { padding: 1.4rem 2rem; }
}
