/*
 * O mosaico do início (aprovado pelo dono em 06/11/2026; padrão de artes do canvas "Padrão de artes"). Classes .mz-*.
 *
 * Lugares (App\Services\Mosaico\Lugares): no computador 12 colunas e linhas de 158 px, com os formatos
 *   G 6×2 · A 3×2 · P 3×1 · L 6×1; no celular (até 1024 px) 2 colunas, C (cheio) e M (meio), na ordem de ORDEM_CELULAR.
 * Cada peça leva as duas classes de formato (mz-pc-X e mz-cel-Y): cada tela usa a sua.
 * O título escala com a largura da peça (container queries), do tamanho do canvas para baixo.
 */

/* ------------------------------------------------------------------ as abas dos produtos */
.mz-abas { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.mz-aba { position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; box-sizing: border-box; border-radius: 999px;
    background: #1b1f24; border: 1px solid #2a3037; color: #e6e8eb !important; font-size: 13px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.mz-aba:hover { border-color: #3a424b; }
.mz-aba:focus-visible { outline: 2px solid #00ff88; outline-offset: 2px; }
.mz-aba.ativo { background: #00ff88; border-color: transparent; color: #04150d !important; }
.mz-aba-vivo { display: inline-flex; align-items: center; gap: 4px; color: #ff6b75; font-size: 12px; font-weight: 700; }
.mz-aba-vivo[hidden] { display: none; }
.mz-aba-vivo i { width: 6px; height: 6px; border-radius: 50%; background: #ff4d5e; }
.mz-aba-novo { display: inline-flex; align-items: center; height: 17px; padding: 0 6px; border-radius: 999px; background: #ffd43b; color: #0e1013; font-size: 9px; font-weight: 900;
    letter-spacing: .06em; text-transform: uppercase; }

/* ------------------------------------------------------------------ a grade */
.mz { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 158px; gap: 16px; min-width: 0; }
.mz-l1 { grid-column: 1 / span 6; grid-row: 1 / span 2; }
.mz-l2 { grid-column: 7 / span 3; grid-row: 1 / span 2; }
.mz-l3 { grid-column: 10 / span 3; grid-row: 1; }
.mz-l4 { grid-column: 10 / span 3; grid-row: 2; }
.mz-fixo { grid-column: 1 / span 6; grid-row: 3 / span 2; }
.mz-l5 { grid-column: 7 / span 3; grid-row: 3 / span 2; }
.mz-l6 { grid-column: 10 / span 3; grid-row: 3; }
.mz-l7 { grid-column: 10 / span 3; grid-row: 4; }
.mz-l8 { grid-column: 1 / span 6; grid-row: 5; }
.mz-l9 { grid-column: 7 / span 6; grid-row: 5; }
/* Sem os esportes, ou sem nenhum jogo para mostrar, não há "Ao vivo agora": os dois largos sobem para o lugar dele. Só no
   computador: o :has() pesa mais que as regras do celular e, lá, criava colunas a mais (visto no ar em 06/11/2026). */
.mz-fixo[hidden] { display: none; }
@media (min-width: 1025px) {
    .mz-sem-fixo .mz-l8, .mz:has(> .mz-fixo[hidden]) .mz-l8 { grid-row: 3; }
    .mz-sem-fixo .mz-l9, .mz:has(> .mz-fixo[hidden]) .mz-l9 { grid-column: 1 / span 6; grid-row: 4; }
}

/* ------------------------------------------------------------------ a peça */
.mz-peca { position: relative; display: block; min-width: 0; overflow: hidden; box-sizing: border-box; border-radius: 16px; background: #0b0d10; border: 1px solid #2a3037;
    color: #fff !important; text-decoration: none; container-type: inline-size; isolation: isolate; }
a.mz-peca { transition: border-color .15s ease, transform .15s ease; }
a.mz-peca:hover { border-color: #3a424b; transform: translateY(-1px); }
.mz-peca:focus-visible, .mz-esticado:focus-visible { outline: 2px solid #00ff88; outline-offset: -2px; }
.mz-sub { color: #9aa1aa; font-size: 12px; }

/* Promoção de produto ou campanha: cenário + véu + objeto 3D (só nos pequenos) + texto. */
.mz-cena, .mz-cena img, .mz-foto { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.mz-cena img { object-position: right center; }
.mz-veu { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 13, 16, .97) 0%, rgba(11, 13, 16, .86) 40%, rgba(11, 13, 16, .3) 66%, rgba(11, 13, 16, 0) 88%); }
.mz-obj { position: absolute; display: none; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); }
.mz-texto { position: absolute; z-index: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mz-kicker { color: #00ff88; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mz-prazo { color: #ffd43b; }
.mz-titulo { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-family: 'Barlow Condensed', system-ui, sans-serif; font-style: italic;
    font-weight: 800; text-transform: uppercase; line-height: .92; overflow-wrap: anywhere; }
.mz-titulo em { font-style: inherit; color: #ffd43b; }
.mz-linha { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #d7dbe0; font-size: 14px; line-height: 1.4; }
.mz-botao { align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; box-sizing: border-box; border-radius: 999px;
    background: #00ff88; color: #04150d; font-size: 14px; font-weight: 700; white-space: nowrap; }
a.mz-peca:hover .mz-botao { background: #5cffb1; }
/* Nos formatos pequenos o botão vira link. */
.mz-botao-link { min-height: 28px; padding: 0; background: none; color: #00ff88; }
.mz-botao-link::after { content: " ›"; white-space: pre; }
a.mz-peca:hover .mz-botao-link { background: none; color: #5cffb1; }
/* Os títulos pequenos (P e M) não são condensados: lê-se melhor em 15–17 px. */
.mz-titulo-pequeno { font-family: inherit; font-style: normal; font-weight: 700; text-transform: none; line-height: 1.2; }

/* Confronto: a torcida do Desafio na diagonal + o jogo. */
.mz-esticado { position: absolute; inset: 0; z-index: 1; }
.mz-torcida { position: absolute; left: 0; right: 0; top: 0; height: var(--arte, 58%); overflow: hidden; background: #0b0d10; }
.mz-t-casa, .mz-t-fora { position: absolute; top: 0; bottom: 0; width: 58%; }
.mz-t-casa { left: 0; clip-path: polygon(0 0, 100% 0, 72% 100%, 0 100%); }
.mz-t-fora { right: 0; clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%); }
.mz-torcida img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.mz-t-fora img { transform: scaleX(-1); }
.mz-alta { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 20px); padding: 4px 10px 4px 6px; box-sizing: border-box;
    border-radius: 999px; background: rgba(14, 16, 19, .86); color: #ffd43b; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mz-alta img { width: 18px; height: 18px; flex: none; }
.mz-meio { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 5px 11px; border-radius: 999px; background: #0e1013; border: 1px solid #3a424b;
    font-size: 12px; font-weight: 800; white-space: nowrap; }
.mz-meio-vivo { color: #ff6b75; }
.mz-jogo { position: absolute; left: 0; right: 0; bottom: 0; top: var(--arte, 58%); display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 10px 14px 12px;
    box-sizing: border-box; background: #1b1f24; min-width: 0; }
.mz-liga { color: #9aa1aa; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mz-rank { display: none; color: #ffd43b; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mz-times { display: flex; align-items: center; gap: 8px; font-size: 15px; min-width: 0; }
.mz-time { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px; }
.mz-time b { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mz-time-fora { justify-content: flex-end; text-align: right; }
.mz-escudo { width: 20px; height: 20px; flex: 0 0 20px; object-fit: contain; }
.mz-odds { position: relative; z-index: 2; }
.mz-odds .ne-odds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mz-odds .sp-odd { height: 40px; min-width: 0; }
/* As odds de reserva (do servidor, antes do motor ou sem o jogo nele): links com o desenho do botão de odd. */
.mz-odds a.sp-odd { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; box-sizing: border-box; border-radius: 10px;
    background: #14171b; border: 1px solid #2a3037; color: #fff !important; font-size: 14px; font-weight: 700; text-decoration: none; }
.mz-odds a.sp-odd:hover { border-color: #00ff88; }
.mz-odds a.sp-odd .sp-odd-label { color: #9aa1aa; font-size: 10px; font-weight: 600; }

/* Cassino: os mais jogados. */
.mz-cassino, .mz-ganhadores { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: #1b1f24; }
.mz-cab { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mz-cab b { font-size: 16px; white-space: nowrap; }
.mz-cab .mz-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mz-cab-link { margin-left: auto; color: #00ff88 !important; font-size: 13px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.mz-capas { --col: 6; display: grid; grid-template-columns: repeat(var(--col), minmax(0, 1fr)); gap: 8px; flex: 1; min-height: 0; align-content: center; overflow: hidden; }
.mz-capa { display: flex; flex-direction: column; gap: 4px; min-width: 0; color: #fff !important; text-decoration: none; }
.mz-capa img { display: block; width: 100%; aspect-ratio: 300 / 350; object-fit: cover; border-radius: 10px; background: #14171b; }
.mz-capa span { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mz-capa:hover img { outline: 2px solid #00ff88; outline-offset: -2px; }

/* Pacote de raspadinha: a foto do pacote + véu de baixo + texto. */
/* As regras de formato acima são das promoções: a raspadinha leva a dela em todos (seletor mais forte). */
.mz-peca.mz-rasp .mz-veu { background: linear-gradient(0deg, rgba(11, 13, 16, .96) 0%, rgba(11, 13, 16, .75) 40%, rgba(11, 13, 16, 0) 75%); }
.mz-peca.mz-rasp .mz-texto { left: 14px; right: 14px; top: auto; bottom: 12px; width: auto; justify-content: flex-end; gap: 3px; }
.mz-rasp .mz-kicker { color: #ffd43b; }
.mz-rasp-nome { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; font-size: 15px; }
.mz-rasp-nome b:first-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mz-preco { color: #ffd43b; white-space: nowrap; }
.mz-rasp .mz-sub { color: #c4c9cf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Ganhadores (só nos lugares pequenos). */
.mz-ganhou-lista { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; min-height: 0; overflow: hidden; }
.mz-ganhou { display: flex; align-items: baseline; gap: 8px; min-width: 0; padding: 5px 0; border-top: 1px solid #23282e; font-size: 13px; }
.mz-ganhou > span:first-child { white-space: nowrap; }
.mz-ganhou b { color: #ffd43b; white-space: nowrap; }
.mz-ganhou .mz-sub { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* "Ao vivo agora" (lugar fixo): o bloco do motor dos esportes, cortado na altura do lugar. */
.mz-fixo { background: #1b1f24; }
.mz-fixo > .ne-vazio { height: 100%; }
.mz-fixo .ne-bloco { height: 100%; margin: 0; display: flex; flex-direction: column; border: 0; border-radius: 0; background: transparent; }
.mz-fixo .ne-lista { flex: 1; min-height: 0; overflow: hidden; }

/* ------------------------------------------------------------------ computador: cada formato */
@media (min-width: 1025px) {
    .mz-pc-G .mz-texto { left: 32px; top: 0; bottom: 0; width: 54%; justify-content: center; }
    .mz-pc-G .mz-titulo { font-size: clamp(30px, 8.4cqi, 54px); }
    .mz-pc-G .mz-linha { font-size: 15px; }
    .mz-pc-L .mz-texto { left: 24px; top: 0; bottom: 0; width: 60%; justify-content: center; gap: 6px; }
    .mz-pc-L .mz-titulo { font-size: clamp(22px, 4.6cqi, 30px); -webkit-line-clamp: 2; }
    .mz-pc-L .mz-linha, .mz-pc-P .mz-linha { display: none; }
    .mz-pc-L .mz-botao { min-height: 38px; }
    .mz-pc-P .mz-texto { left: 16px; top: 0; bottom: 0; width: 60%; justify-content: center; gap: 5px; }
    .mz-pc-P .mz-titulo { font-family: inherit; font-style: normal; font-weight: 700; text-transform: none; line-height: 1.2; font-size: clamp(14px, 5.4cqi, 17px); }
    .mz-pc-P .mz-botao { min-height: 28px; padding: 0; background: none; color: #00ff88; }
    .mz-pc-P .mz-botao::after { content: " ›"; white-space: pre; }
    a.mz-pc-P:hover .mz-botao { background: none; color: #5cffb1; }
    .mz-pc-P .mz-obj { display: block; right: 8px; top: 50%; transform: translateY(-50%); width: min(112px, 36%); height: min(112px, 72%); }
    .mz-pc-A .mz-cena img { object-position: center top; }
    .mz-pc-A .mz-veu { background: linear-gradient(0deg, rgba(11, 13, 16, .98) 0%, rgba(11, 13, 16, .88) 40%, rgba(11, 13, 16, .15) 72%, rgba(11, 13, 16, 0) 100%); }
    .mz-pc-A .mz-texto { left: 18px; right: 18px; bottom: 16px; }
    .mz-pc-A .mz-titulo { font-size: clamp(24px, 10.8cqi, 34px); }
    .mz-pc-A .mz-linha { font-size: 13px; }

    /* Confronto: vertical no G e no A, de lado no L e no P. */
    .mz-confronto.mz-pc-A { --arte: 52%; }
    .mz-confronto.mz-pc-L .mz-torcida, .mz-confronto.mz-pc-P .mz-torcida { right: auto; width: 46%; height: 100%; }
    .mz-confronto.mz-pc-L .mz-jogo, .mz-confronto.mz-pc-P .mz-jogo { left: 46%; top: 0; justify-content: center; gap: 6px; padding: 10px 14px; }
    .mz-confronto.mz-pc-L .mz-alta, .mz-confronto.mz-pc-P .mz-alta, .mz-confronto.mz-pc-L .mz-meio, .mz-confronto.mz-pc-P .mz-meio, .mz-confronto.mz-pc-L .mz-liga, .mz-confronto.mz-pc-P .mz-liga { display: none; }
    .mz-confronto.mz-pc-L .mz-rank, .mz-confronto.mz-pc-P .mz-rank { display: block; }
    .mz-confronto.mz-pc-L .mz-times, .mz-confronto.mz-pc-P .mz-times { flex-direction: column; align-items: stretch; gap: 4px; font-size: 14px; }
    .mz-confronto.mz-pc-L .mz-time-fora, .mz-confronto.mz-pc-P .mz-time-fora { flex-direction: row-reverse; justify-content: flex-end; text-align: left; }
    .mz-confronto.mz-pc-L .mz-odds .sp-odd, .mz-confronto.mz-pc-P .mz-odds .sp-odd { height: 34px; }
    .mz-confronto.mz-pc-P .mz-escudo { display: none; }

    .mz-cassino.mz-pc-A .mz-capas { --col: 3; }
    .mz-cassino.mz-pc-A .mz-capa:nth-child(n + 7) { display: none; }
    .mz-cassino.mz-pc-L .mz-capas { --col: 7; }
    .mz-cassino.mz-pc-L .mz-capa:nth-child(n + 8), .mz-cassino.mz-pc-P .mz-capa:nth-child(n + 5) { display: none; }
    .mz-cassino.mz-pc-P .mz-capas { --col: 4; }
    .mz-cassino.mz-pc-L .mz-capa span, .mz-cassino.mz-pc-P .mz-capa span { display: none; }
    .mz-cassino.mz-pc-G .mz-capa:nth-child(n + 13) { display: none; }
    .mz-cassino.mz-pc-L, .mz-cassino.mz-pc-P { gap: 8px; padding: 12px 14px; }

    .mz-rasp.mz-pc-L .mz-rasp-nome, .mz-rasp.mz-pc-P .mz-rasp-nome { font-size: 13px; }

    .mz-ganhadores.mz-pc-L .mz-ganhou-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
    .mz-ganhadores.mz-pc-P .mz-ganhou:nth-child(n + 4) { display: none; }
    .mz-ganhadores.mz-pc-L, .mz-ganhadores.mz-pc-P { gap: 4px; padding: 12px 14px; }
}

/* ------------------------------------------------------------------ celular: 2 colunas, C e M */
@media (max-width: 1024px) {
    .mz-abas { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; margin: 0 -2px; padding: 0 2px; }
    .mz-abas::-webkit-scrollbar { display: none; }
    .mz { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 10px; }
    .mz > .mz-peca { grid-column: auto; grid-row: auto; height: 200px; }
    .mz > .mz-cel-C { grid-column: 1 / -1; }
    .mz > .mz-confronto.mz-cel-C { height: 300px; }
    .mz > .mz-fixo { grid-column: 1 / -1; height: auto; min-height: 200px; }
    .mz-l1 { order: 1; } .mz-l2 { order: 2; } .mz-l3 { order: 3; } .mz-fixo { order: 4; } .mz-l8 { order: 5; }
    .mz-l5 { order: 6; } .mz-l4 { order: 7; } .mz-l9 { order: 8; } .mz-l6 { order: 9; } .mz-l7 { order: 10; }
    .mz-fixo .ne-linha:nth-of-type(n + 4) { display: none; }

    .mz-cel-C .mz-texto { left: 16px; top: 0; bottom: 0; width: 60%; justify-content: center; gap: 6px; }
    .mz-cel-C .mz-titulo { font-size: clamp(24px, 9.5cqi, 34px); }
    .mz-cel-C .mz-linha { font-size: 13px; }
    .mz-cel-C .mz-botao, .mz-cel-M .mz-botao { min-height: 28px; padding: 0; background: none; color: #00ff88; }
    .mz-cel-C .mz-botao::after, .mz-cel-M .mz-botao::after { content: " ›"; white-space: pre; }
    .mz-cel-M .mz-cena img { object-position: center top; }
    .mz-cel-M .mz-veu { background: linear-gradient(0deg, rgba(11, 13, 16, .98) 0%, rgba(11, 13, 16, .88) 40%, rgba(11, 13, 16, .15) 72%, rgba(11, 13, 16, 0) 100%); }
    .mz-cel-M .mz-texto { left: 12px; right: 12px; bottom: 10px; gap: 4px; }
    .mz-cel-M .mz-titulo { font-family: inherit; font-style: normal; font-weight: 700; text-transform: none; line-height: 1.2; font-size: clamp(14px, 8.6cqi, 17px); }
    .mz-cel-M .mz-linha { display: none; }
    .mz-cel-M .mz-obj { display: block; left: 50%; top: 8px; transform: translateX(-50%); width: min(92px, 56%); height: 92px; }
    .mz-cel-M .mz-kicker { font-size: 10px; }

    .mz-confronto.mz-cel-M { --arte: 55%; }
    .mz-confronto.mz-cel-M .mz-odds, .mz-confronto.mz-cel-M .mz-liga, .mz-confronto.mz-cel-M .mz-meio { display: none; }
    .mz-confronto.mz-cel-M .mz-jogo { justify-content: center; gap: 4px; padding: 8px 10px; }
    .mz-confronto.mz-cel-M .mz-times { flex-direction: column; align-items: stretch; gap: 4px; font-size: 13px; }
    .mz-confronto.mz-cel-M .mz-time-fora { flex-direction: row-reverse; justify-content: flex-end; text-align: left; }
    .mz-confronto.mz-cel-M .mz-alta { font-size: 11px; }

    .mz-cassino.mz-cel-C .mz-capas { --col: 4; }
    .mz-cassino.mz-cel-C .mz-capa:nth-child(n + 5) { display: none; }
    .mz-cassino.mz-cel-M .mz-capas { --col: 2; }
    .mz-cassino.mz-cel-M .mz-capa:nth-child(n + 3) { display: none; }
    .mz-cassino.mz-cel-M { padding: 10px; gap: 8px; }
    .mz-cassino.mz-cel-M .mz-cab .mz-sub { display: none; }

    .mz-peca.mz-rasp.mz-cel-M .mz-texto { left: 10px; right: 10px; bottom: 10px; }
    .mz-rasp.mz-cel-M .mz-rasp-nome { flex-direction: column; gap: 0; font-size: 13px; }

    .mz-ganhadores.mz-cel-M .mz-ganhou { flex-wrap: wrap; row-gap: 0; }
    .mz-ganhadores.mz-cel-M .mz-ganhou:nth-child(n + 4) { display: none; }
    .mz-ganhadores.mz-cel-M .mz-ganhou .mz-sub { flex-basis: 100%; }
    .mz-ganhadores.mz-cel-M { padding: 10px; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) { a.mz-peca { transition: none; } a.mz-peca:hover { transform: none; } }
