/* Pronisto · melhorias v3. Tudo com prefixo .pm-, temas claro/escuro via variáveis da app. */
.pm-stack { display: flex; flex-direction: column; gap: 14px; }
.pm-stack[hidden], .pm-stack > [hidden] { display: none !important; }
.pm-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 16px; color: var(--text); text-decoration: none; }
.pm-skel { background: linear-gradient(90deg, var(--card) 0%, var(--card-2) 50%, var(--card) 100%); background-size: 200% 100%; animation: pm-shimmer 1.3s linear infinite; }
@keyframes pm-shimmer { to { background-position: -200% 0; } }
.pm-kicker { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.pm-muted { color: var(--muted); }
.pm-small { font-size: 12px; line-height: 1.4; }
.pm-link { color: var(--accent); font-weight: 700; text-decoration: none; font-size: 12px; }
.pm-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pm-ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pm-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--text); }
.pm-chip i { font-style: normal; color: var(--muted); font-weight: 500; font-size: 11px; }
.pm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card-2); color: var(--text); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; text-decoration: none; }
.pm-btn-primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.pm-crest { position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: none; box-shadow: none; border: 0; }
.pm-crest img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.pm-crest-fb { color: #fff; font-weight: 800; letter-spacing: -.02em; border-radius: 999px; }

/* 1. destaque */
.pm-dest { position: relative; overflow: hidden; padding: 18px 16px 16px; border: 1px solid color-mix(in srgb, var(--pm-c1) 30%, var(--line));
  background:
    radial-gradient(420px 220px at 0% 0%, color-mix(in srgb, var(--pm-c1) 30%, transparent), transparent 70%),
    radial-gradient(420px 220px at 100% 0%, color-mix(in srgb, var(--pm-c2) 30%, transparent), transparent 70%),
    var(--card); }
.pm-dest::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--pm-c1), var(--pm-c2)); }
.pm-dest-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pm-dest-comp { font-size: 12px; font-weight: 700; color: var(--muted); text-align: right; }
.pm-dest-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 16px 0 14px; }
.pm-dest-team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.pm-dest-team b { font-size: 14px; font-weight: 800; text-transform: uppercase; line-height: 1.15; overflow-wrap: anywhere; }
.pm-dest-vs { font-family: Outfit, system-ui, sans-serif; font-style: italic; font-weight: 800; font-size: 22px; color: var(--accent); }
.pm-dest-tip { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 18px; background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--line); }
.pm-dest-lbl { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pm-dest-sel { font-family: Outfit, system-ui, sans-serif; font-size: 22px; font-weight: 800; line-height: 1.15; margin-top: 2px; }
.pm-dest-ring { --p: 50; flex-shrink: 0; width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(closest-side, var(--card) 76%, transparent 78% 100%), conic-gradient(var(--accent) calc(var(--p) * 1%), var(--line) 0); animation: pm-pop .6s ease-out; }
.pm-dest-ring span { font-family: Outfit, system-ui, sans-serif; font-weight: 800; font-size: 19px; }
@keyframes pm-pop { from { transform: scale(.7); opacity: 0; } }
.pm-dest-tipl { min-width: 0; }
.pm-dest-meta { margin-top: 4px; font-size: 12px; color: var(--muted); }
.pm-dest-meta b { color: var(--text); }
.pm-dest-why { margin: 10px 2px 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.pm-dest-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 14px; }
.pm-dest-more { display: block; margin-top: 8px; text-align: center; font-size: 12px; font-weight: 700; color: var(--gold); text-decoration: none; }


/* 2. acertos */
.pm-acc-head { font-family: Outfit, system-ui, sans-serif; font-size: 22px; font-weight: 600; line-height: 1.2; }
.pm-acc-head b { font-weight: 800; color: var(--accent); }
.pm-acc-chart { width: 100%; height: 96px; margin-top: 12px; display: block; }
.pm-bar-pre { fill: var(--accent); }
.pm-bar-rb { fill: color-mix(in srgb, var(--accent) 32%, transparent); }
.pm-bar-none { fill: var(--line); }
.pm-grid { stroke: var(--line); stroke-dasharray: 3 3; stroke-width: 1; }
.pm-acc-axis { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin: 4px 0 8px; }
.pm-acc-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.pm-acc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.pm-lg-pre { background: var(--accent); }
.pm-lg-rb { background: color-mix(in srgb, var(--accent) 32%, transparent); }
.pm-acc-legend i.pm-lg-line { width: 14px; height: 0; border-top: 1px dashed var(--muted); border-radius: 0; vertical-align: 3px; }

/* 8. combinadas */
.pm-pills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 10px; }
.pm-pill { flex-shrink: 0; border: 1px solid var(--line); background: var(--card-2); color: var(--text); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.pm-pill.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.pm-legs { display: flex; flex-direction: column; gap: 6px; }
.pm-leg { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; background: var(--card-2); color: var(--text); text-decoration: none; }
.pm-leg-crests { display: flex; }
.pm-leg-crests .pm-crest + .pm-crest { margin-left: 3px; }
.pm-leg-main { display: flex; flex-direction: column; min-width: 0; }
.pm-leg-main b { font-size: 13px; }
.pm-leg-num { display: flex; flex-direction: column; align-items: flex-end; }
.pm-leg-num b { font-family: Outfit, system-ui, sans-serif; font-size: 16px; }
.pm-combo-total { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.pm-combo-total > div { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); }
.pm-combo-total b { font-family: Outfit, system-ui, sans-serif; font-size: 24px; font-weight: 800; color: var(--accent); }
.pm-combo-why { margin: 10px 0 6px; }
.pm-rg { margin: 8px 0 0; padding: 8px 10px; border-radius: 12px; background: var(--gold-dim); color: var(--text); font-size: 11px; line-height: 1.4; }

/* 6. liga de palpites */
.pm-board { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pm-board li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 12px; background: var(--card-2); font-size: 13px; }
.pm-board li.me { outline: 2px solid var(--accent); }
.pm-rank { font-weight: 800; color: var(--muted); }
.pm-board li:first-child .pm-rank { color: var(--gold); }
.pm-pts { font-weight: 800; }
.pm-liga p { margin: 0 0 10px; }

/* 3. ao vivo */
.pm-live[hidden] { display: none; }
.pm-live-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; background: #e11d48; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.pm-live-badge i, .pm-live-min i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pm-dot 1.2s ease-in-out infinite; }
@keyframes pm-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.pm-live-tr .s, .pm-hero-live .s { font-family: Outfit, system-ui, sans-serif; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pm-flash { animation: pm-flash 1.6s ease-out; }
@keyframes pm-flash { 0% { color: var(--accent); transform: scale(1.35); } 100% { transform: scale(1); } }
.pm-pbar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; gap: 2px; margin-top: 10px; }
.pm-pbar span { transition: flex .8s ease; min-width: 3px; }
.pm-pbar .h { background: var(--home); } .pm-pbar .d { background: var(--draw); } .pm-pbar .a { background: var(--away); }
.pm-pbar-lbl { display: flex; justify-content: space-between; gap: 6px; font-size: 11px; font-weight: 700; color: var(--muted); margin-top: 4px; }
.live-pill.pm-pulse { animation: pm-live-glow 1.6s ease-in-out infinite !important; }
@keyframes pm-live-glow { 0%, 100% { box-shadow: 0 0 0 0 #e11d4880; } 60% { box-shadow: 0 0 0 7px #e11d4800; } }

/* página do jogo */
.pm-match { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.pm-hero-actions { display: flex; justify-content: center; }
.pm-hero-actions .pm-btn { min-height: 36px; font-size: 12px; }
.pm-hero-live, .pm-palpite { padding: 12px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.pm-palpite:empty, .pm-hero-live[hidden] { display: none; }
.pm-pks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.pm-pk { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 8px 4px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; cursor: pointer; }
.pm-pk b { font-family: Outfit, system-ui, sans-serif; font-size: 18px; }
.pm-pk span { font-size: 11px; color: var(--muted); max-width: 100%; }
.pm-pk i { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); }
.pm-pk.on { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.pm-pk.on span, .pm-pk.on i { color: var(--accent-ink); }
.pm-pk:disabled { opacity: .6; cursor: default; }

/* 7. cores dos clubes nos cartões existentes */
.match-card.pm-themed { background-image: linear-gradient(90deg, var(--pm-c1), var(--pm-c2)); background-size: 100% 3px; background-repeat: no-repeat; background-position: top; }
.featured-card.pm-themed::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--pm-c1), var(--pm-c2)); pointer-events: none; }
/* emblemas/bandeiras sem moldura (remove o anel antigo, mesmo com JS em cache) */
.featured-card img.pm-ring, .match-card img.pm-ring, img.pm-ring { box-shadow: none !important; border: 0 !important; }

/* 5. sino e folha de alertas */
.pm-bell { position: relative; color: var(--text); flex-shrink: 0; }
.pm-badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: #e11d48; color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
.pm-sheet-bg { position: fixed; inset: 0; z-index: 60; background: #0008; display: flex; align-items: flex-end; justify-content: center; animation: pm-fade .2s ease; }
@keyframes pm-fade { from { opacity: 0; } }
.pm-sheet { width: 100%; max-width: 560px; max-height: 86dvh; overflow-y: auto; background: var(--card); color: var(--text); border-radius: 24px 24px 0 0; padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); animation: pm-up .25s ease; }
@keyframes pm-up { from { transform: translateY(30px); } }
.pm-sheet-head { display: flex; justify-content: space-between; align-items: center; font-size: 17px; margin-bottom: 10px; }
.pm-x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--card-2); color: var(--text); font-size: 20px; cursor: pointer; }
.pm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-sheet-sec { margin: 16px 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pm-alerts { display: flex; flex-direction: column; gap: 6px; }
.pm-alert { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 14px; background: var(--card-2); color: var(--text); text-decoration: none; }
.pm-alert > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.pm-alert-ic { font-size: 18px; line-height: 1.2; }
.pm-switch, .pm-check { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; }
.pm-switch input, .pm-check input { width: 20px; height: 20px; accent-color: var(--accent); }
.pm-check { font-size: 13px; color: var(--muted); padding-left: 30px; }

.pm-toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; z-index: 70; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 14px; font-size: 13px; font-weight: 700; transition: .25s ease; pointer-events: none; max-width: 90vw; text-align: center; }
.pm-toast.on { opacity: 1; transform: translate(-50%, 0); }


/* ---------- v3: estrutura por secções ---------- */
.pm-h1 { display: flex; align-items: center; gap: 8px; margin: 0; font-family: Outfit, system-ui, sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -.01em; color: var(--text); }
.pm-h2 { margin: 0; font-family: Outfit, system-ui, sans-serif; font-size: 16px; font-weight: 800; line-height: 1.25; color: var(--text); }
.pm-h3 { font-size: 14px; font-weight: 800; color: var(--text); }
.pm-meta { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.pm-body { margin: 6px 0 0; font-size: 14px; line-height: 1.45; }
.pm-center { text-align: center; }
.pm-skel-in { border-radius: 14px; background: linear-gradient(90deg, var(--card-2) 0%, var(--card) 50%, var(--card-2) 100%); background-size: 200% 100%; animation: pm-shimmer 1.3s linear infinite; }

/* sub-separadores de Hoje (fixos por baixo do cabeçalho) */
.pm-subnav { position: sticky; top: var(--pm-hh, 64px); z-index: 25; margin: -12px -16px 0; padding: 10px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.pm-seg { display: flex; gap: 2px; padding: 3px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); }
.pm-seg-btn { flex: 1 1 0; min-width: 0; min-height: 36px; padding: 0 6px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: background .15s, color .15s; }
.pm-seg-btn.on { background: var(--card); color: var(--text); box-shadow: 0 1px 4px #0000001f; }
.pm-seg-sm { margin-bottom: 12px; }
.pm-seg-sm .pm-seg-btn { min-height: 32px; font-size: 12px; }

/* visibilidade por secção: a lista de jogos da app fica em "Jogos"; o resto vai para a sua secção */
body.pm-v-jogos .pm-host > #pm-view, body.pm-v-jogos .pm-host > #pm-view2,
body.pm-v-jogos .pm-host > .god-wrap, body.pm-v-jogos .pm-host > #pr-gratis { display: none !important; }
body.pm-v-destaques .pm-host > :not(#pm-subnav):not(#pm-view):not(#pm-view2):not(.god-wrap):not(#pr-gratis):not(.pr-ad-banner),
body.pm-v-combinadas .pm-host > :not(#pm-subnav):not(#pm-view):not(.pr-ad-banner),
body.pm-v-palpites .pm-host > :not(#pm-subnav):not(#pm-view):not(.pr-ad-banner),
body.pm-v-ao-vivo .pm-host > :not(#pm-view):not(.pr-ad-banner) { display: none !important; }
body.pm-home:not(.pm-v-jogos) .pm-host { display: flex; flex-direction: column; gap: 16px; }
body.pm-home:not(.pm-v-jogos) .pm-host > :not(#pm-subnav) { margin-top: 0 !important; margin-bottom: 0 !important; }
body.pm-home .pm-host > #pm-subnav { order: -1; }
body.pm-home .pm-host > #pm-view { order: 1; }
body.pm-home .pm-host > .god-wrap { order: 2; }
body.pm-home .pm-host > #pr-gratis { order: 3; }
body.pm-home .pm-host > #pm-view2 { order: 4; }
body.pm-home .pm-host > .pr-ad-banner { order: 9; }
#pm-view:empty, #pm-view2:empty { display: none; }

/* separador "Ao vivo" na barra de baixo */
.pm-nav-live { position: relative; text-decoration: none; }
.pm-nav-ic { position: relative; display: inline-flex; }
.pm-nav-badge { position: absolute; top: -4px; right: -10px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #e11d48; color: #fff; font-size: 9px; font-weight: 800; line-height: 12px; display: grid; place-items: center; border: 2px solid var(--bg); }
.pm-nav-badge[hidden] { display: none; }
body.pm-v-ao-vivo .app-nav .nav-links a[href="/"]:not(.pm-nav-live) { color: var(--muted) !important; background: none !important; }
body.pm-v-ao-vivo .app-nav .nav-links a[href="/"]:not(.pm-nav-live) svg { stroke: currentColor !important; }

/* página Ao vivo */
.pm-view-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 2px 0; }
.pm-live-dot { width: 10px; height: 10px; border-radius: 50%; background: #e11d48; animation: pm-dot 1.2s ease-in-out infinite; }
.pm-count { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: #e11d48; color: #fff; font-size: 12px; font-weight: 800; font-family: inherit; }
.pm-live-list { display: flex; flex-direction: column; gap: 10px; }
.pm-live-card { position: relative; overflow: hidden; padding: 12px 14px; }
.pm-live-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--pm-c1), var(--pm-c2)); }
.pm-live-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.pm-live-min { display: inline-flex; align-items: center; gap: 5px; color: #e11d48; font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.pm-live-rows { display: flex; flex-direction: column; gap: 8px; }
.pm-live-tr { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font-size: 15px; }
.pm-live-tr .s { font-size: 20px; }
.pm-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 18px; text-align: center; }
.pm-empty-ic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #e11d48; background: color-mix(in srgb, #e11d48 12%, transparent); }
.pm-empty .pm-body { margin: 0; }
.pm-empty .pm-btn { margin-top: 6px; }
.pm-next { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 8px 12px; border-radius: 14px; background: var(--card-2); color: var(--text); font-size: 14px; font-weight: 700; text-decoration: none; }

/* palpites */
.pm-rules { margin: -4px 0 12px; }
.pm-cta { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; padding: 12px; border-radius: 14px; background: var(--accent-dim); font-size: 13px; line-height: 1.4; }
.pm-pk-list { display: flex; flex-direction: column; }
.pm-pk-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.pm-pk-info { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 8px; row-gap: 2px; min-width: 0; color: var(--text); text-decoration: none; }
.pm-pk-time { grid-row: 1 / span 2; align-self: center; font-size: 13px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.pm-pk-teams { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 13px; font-weight: 700; }
.pm-pk-teams > span { display: flex; align-items: center; gap: 6px; }
.pm-pk-comp { grid-column: 2; font-size: 11px; color: var(--muted); }
.pm-pks-sm { grid-template-columns: repeat(3, 40px); gap: 4px; margin: 0; }
.pm-pks-sm .pm-pk { padding: 8px 0; border-radius: 10px; }
.pm-pks-sm .pm-pk span { display: none; }
.pm-pks-sm .pm-pk b { font-size: 15px; }
.pm-more { width: 100%; margin-top: 8px; }
.pm-recent { list-style: none; margin: 0; padding: 0; }
.pm-recent li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.pm-recent li a { display: flex; flex-direction: column; min-width: 0; color: var(--text); text-decoration: none; font-size: 13px; font-weight: 700; }
.pm-tag { flex-shrink: 0; padding: 3px 9px; border-radius: 999px; background: var(--card-2); color: var(--muted); font-size: 11px; font-weight: 800; }
.pm-tag.ok { background: var(--accent-dim); color: var(--accent); }
.pm-tag.ko { color: var(--danger); }
.pm-board li.me { outline: 0; box-shadow: inset 0 0 0 2px var(--accent); }

/* alertas */
.pm-sheet-head .pm-h2 { font-size: 18px; }
.pm-alert-dot { width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; flex-shrink: 0; background: var(--muted); }
.pm-alert-dot.live { background: #e11d48; }
.pm-alert-dot.start { background: var(--gold); }
.pm-alert-dot.analysis { background: var(--accent); }
.pm-alert > span:last-child { min-width: 0; }
.pm-pre { margin-top: 6px; }

@media (prefers-reduced-motion: reduce) {
  .pm-live-badge i, .pm-live-min i, .pm-live-dot, .live-pill.pm-pulse, .pm-dest-ring, .pm-skel, .pm-skel-in { animation: none !important; }
}
.pm-cta-btn { width: 100%; margin-top: 12px; }
.pm-dest-actions-1 { grid-template-columns: 1fr; }
.pm-dest-locked .pm-dest-sel { font-size: 18px; }

/* ---------- equipas favoritas ---------- */
.pm-favpin { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 6px; }
.pm-favpin[hidden] { display: none !important; }
.pm-favpin-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px; }
.pm-favpin-title { display: inline-flex; align-items: center; gap: 6px; font-family: Outfit, system-ui, sans-serif; font-size: 13px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--text, inherit); }
.pm-favpin-title svg { color: #f5b301; }
.pm-favpin-manage { font-size: 12px; font-weight: 700; }
.pm-favpin .pm-pin-card { margin: 0 !important; }
body.pm-home:not(.pm-v-jogos) .pm-host > #pm-favpin { display: none !important; }
.pm-live-sec { display: flex; align-items: center; margin: 4px 2px 0; }
.pm-live-sec-t { font-family: Outfit, system-ui, sans-serif; font-size: 13px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
#pm-view .pm-live-list + .pm-live-sec { margin-top: 12px; }
.pm-tfav { margin-top: 8px; display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line, rgba(127,127,127,.25)); background: transparent; color: var(--muted, inherit); font: 700 12px/1 Outfit, system-ui, sans-serif; cursor: pointer; }
.pm-tfav.on { color: #d99a00; border-color: color-mix(in srgb, #f5b301 55%, transparent); background: color-mix(in srgb, #f5b301 12%, transparent); }
.pm-tfav svg { flex-shrink: 0; }
.pm-favteams { display: flex; flex-direction: column; gap: 10px; }
.pm-favteams .pm-h2 { display: flex; align-items: center; gap: 8px; margin: 0; }
.pm-favteams .pm-h2 svg { color: #f5b301; }
.pm-favteams > p { margin: 0; }
.pm-ft-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-ft-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 4px 4px 8px; border-radius: 999px; border: 1px solid var(--line, rgba(127,127,127,.25)); background: var(--bg, transparent); font-size: 13px; font-weight: 700; }
.pm-ft-x { width: 24px; height: 24px; border-radius: 999px; border: 0; background: transparent; color: var(--muted, inherit); font-size: 18px; line-height: 1; cursor: pointer; }
.pm-ft-search { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--line, rgba(127,127,127,.25)); background: var(--bg, transparent); color: var(--muted, inherit); }
.pm-ft-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text, inherit); font: 600 15px/1.2 inherit; font-family: inherit; }
.pm-ft-res { display: flex; flex-direction: column; gap: 6px; }
.pm-ft-res p { margin: 4px 2px; }
.pm-ft-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line, rgba(127,127,127,.2)); background: transparent; color: inherit; text-align: left; cursor: pointer; }
.pm-ft-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pm-ft-name b { font-size: 14px; }
.pm-ft-add { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; font: 700 12px/1 Outfit, system-ui, sans-serif; color: var(--muted, inherit); }
.pm-ft-row.on .pm-ft-add { color: #d99a00; }
/* ecrãs estreitos (≤ 370 px): os 4 separadores cabem sem reticências */
#pm-subnav .pm-seg-btn { flex: 1 1 auto; }
@media (max-width: 370px) { #pm-subnav .pm-seg-btn { font-size: 12px; padding: 0 4px; letter-spacing: -.01em; } }
.pm-ft-tags { display: flex; gap: 4px; }
.pm-ft-tag { display: inline-block; padding: 1px 7px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); color: var(--muted); font-size: 10.5px; font-weight: 700; line-height: 1.5; }

/* Histórico escondido da interface (barra de baixo e ligações); 5 separadores equilibrados */
html.pm-no-hist a[href="/historico"], html.pm-no-hist a[href^="/historico/"], html.pm-no-hist a[href^="/historico?"] { display: none !important; }
html.pm-no-hist nav.app-nav .nav-links > a { flex: 1 1 0 !important; min-width: 0; }
html.pm-no-hist nav.app-nav .nav-links > a > span:last-child, html.pm-no-hist nav.app-nav .nav-links .pm-nav-lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* Ver mais / Ver menos por competição */
.pm-more-hid { display: none !important; }
.pm-more { display: flex; width: 100%; align-items: center; justify-content: center; gap: 6px; margin: 2px 0 4px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line, rgba(127,127,127,.25)); background: var(--card, transparent); color: var(--accent, #22e58b); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pm-more svg { transition: transform .2s ease; }
.pm-more.on svg { transform: rotate(180deg); }
.pm-more:active { transform: scale(.99); }

/* Ligas: ordem + pesquisa (Hoje / Próximos) */
.pm-lord { display: flex !important; flex-direction: column; }
.pm-lord > #pm-subnav { order: -10; }
.pm-ls-hid { display: none !important; }
.date-filter-tools .pm-ls-btn { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; height: 36px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.date-filter-tools .pm-ls-btn.on { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.pm-ls { display: flex; flex-direction: column; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.pm-ls-row { display: flex; align-items: center; gap: 8px; padding: 0 6px 0 10px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); }
.pm-ls-row:focus-within { border-color: var(--accent); }
.pm-ls-row input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 15px; }
.pm-ls-row input::-webkit-search-cancel-button { display: none; }
.pm-ls-x { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--card-2, rgba(127,127,127,.15)); color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; }
.pm-ls-x[hidden] { display: none; }
.pm-ls-cap { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 0 2px; }
.pm-ls-chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 236px; overflow-y: auto; }
.pm-ls-chip { display: inline-flex; align-items: baseline; gap: 6px; max-width: 100%; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 12.5px; cursor: pointer; text-align: left; }
.pm-ls-chip b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-ls-chip.top { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.pm-ls-cty, .pm-ls-n { color: var(--muted); font-size: 11px; white-space: nowrap; }
.pm-ls-n::before { content: "· "; }
.pm-ls-none { margin: 2px; color: var(--muted); font-size: 13px; }
@media (max-width: 380px) { .date-filter-tools { gap: 6px !important; } .date-filter-tools > button { padding-left: 9px !important; padding-right: 9px !important; } }
