/* Páginas de ligas (egolo#358): classificação, equipa, jogos por liga, e a
   secção «golos, frente-a-frente e notícias» da ficha. Escrito à mão (sem
   Tailwind) com as variáveis do tema; mobile primeiro, 390 px sem transbordo. */

.sp-lp { background: #f6f5f0; color: #0d0d0c; }
.sp-lp *, .sp-lp *::before, .sp-lp *::after { box-sizing: border-box; }

.sp-lp-hero { background: #0d0d0c; color: #fff; padding: 20px 16px 16px; }
.sp-lp-hero__inner, .sp-lp-body, .sp-lp-bar__inner { max-width: 1160px; margin: 0 auto; }
.sp-lp-hero__eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #bdbdb5; }
.sp-lp-hero__eyebrow a { color: #4ee38a; text-decoration: none; }
.sp-lp-hero__row { display: flex; align-items: center; gap: 12px; }
.sp-lp-hero__logo { width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 8px; padding: 4px; flex: 0 0 auto; }
.sp-lp-hero__title { margin: 0; font-size: 26px; line-height: 1.1; font-weight: 900; letter-spacing: -.01em; overflow-wrap: anywhere; }
.sp-lp-stats { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 14px 0 0; }
.sp-lp-stats div { display: flex; flex-direction: column; }
.sp-lp-stats dt { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #bdbdb5; }
.sp-lp-stats dd { margin: 0; font-size: 20px; font-weight: 900; color: #4ee38a; }
.sp-lp-tabs { display: flex; gap: 6px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sp-lp-tabs::-webkit-scrollbar { display: none; }
.sp-lp-tabs__item { flex: 0 0 auto; padding: 8px 12px; border-radius: 999px; background: #1f1f1d; color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.sp-lp-tabs__item.is-active { background: #00a24a; color: #fff; }
.sp-lp-epocas { margin: 10px 0 0; font-size: 13px; color: #bdbdb5; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.sp-lp-epocas__item { color: #fff; text-decoration: underline; }
.sp-lp-epocas__item.is-active { font-weight: 800; text-decoration: none; color: #4ee38a; }

.sp-lp-bar { background: #fff; border-bottom: 1px solid #e3e2da; }
.sp-lp-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; }
.sp-lp-chips { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.sp-lp-chip { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid #d6d5cc; color: #0d0d0c; font-size: 13px; font-weight: 700; text-decoration: none; }
.sp-lp-chip.is-active { background: #0d0d0c; color: #fff; border-color: #0d0d0c; }
.sp-lp-bar__count { margin: 0; font-size: 13px; color: #6b6b66; white-space: nowrap; }

.sp-lp-body { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 16px; }
.sp-lp-main { min-width: 0; }
.sp-lp-rail { min-width: 0; }
.sp-lp-card { background: #fff; border: 1px solid #e3e2da; border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; }
.sp-lp-card__title { margin: 0 0 10px; font-size: 14px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.sp-lp-card__title a { color: inherit; text-decoration: none; }
.sp-lp-card__title small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: #6b6b66; }
.sp-lp-card__more { display: inline-block; margin-top: 8px; color: #00782f; font-weight: 700; text-decoration: none; font-size: 14px; }
.sp-lp-nota { font-size: 12px; color: #6b6b66; margin: 8px 0 0; }
.sp-lp-intro { margin: 0 0 16px; font-size: 16px; line-height: 1.5; }

.sp-lp-lista, .sp-lp-jogos, .sp-lp-equipas, .sp-lp-noticias, .sp-lp-plantel, .sp-lp-grelha { list-style: none; margin: 0; padding: 0; }
.sp-lp-jogos__item + .sp-lp-jogos__item, .sp-lp-lista__item + .sp-lp-lista__item { border-top: 1px solid #efeee7; }
.sp-lp-jogo { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "data data data" "casa placar fora" "liga liga liga"; align-items: center; gap: 2px 8px; padding: 10px 0; color: inherit; text-decoration: none; }
.sp-lp-jogo__data { grid-area: data; font-size: 12px; color: #6b6b66; }
.sp-lp-jogo__equipa { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 14px; font-weight: 600; }
.sp-lp-jogo__equipa span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-lp-jogo__equipa img { width: 22px; height: 22px; object-fit: contain; flex: 0 0 auto; }
.sp-lp-jogo__equipa--casa { grid-area: casa; justify-content: flex-end; text-align: right; }
.sp-lp-jogo__equipa--casa img { order: 2; }
.sp-lp-jogo__equipa--fora { grid-area: fora; }
.sp-lp-jogo__placar { grid-area: placar; min-width: 52px; text-align: center; font-weight: 900; font-size: 15px; padding: 4px 8px; border-radius: 6px; background: #f1f0e9; }
.is-final .sp-lp-jogo__placar { background: #0d0d0c; color: #fff; }
.is-live .sp-lp-jogo__placar { background: #c0362c; color: #fff; }
.sp-lp-jogo__liga { grid-area: liga; font-size: 12px; color: #6b6b66; }
.sp-lp-jogo__equipas { font-weight: 600; font-size: 14px; }
.sp-lp-jogo__meta { font-size: 13px; color: #6b6b66; }
.sp-lp-lista .sp-lp-jogo { display: flex; justify-content: space-between; gap: 8px; }
.sp-lp-jogos__item--win .sp-lp-jogo__liga { color: #00782f; }
.sp-lp-jogos__item--loss .sp-lp-jogo__liga { color: #c0362c; }

.sp-lp-jornadas { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.sp-lp-jornadas__item { padding: 4px 8px; border-radius: 6px; background: #fff; border: 1px solid #e3e2da; font-size: 12px; font-weight: 700; color: #0d0d0c; text-decoration: none; }
.sp-lp-jornadas__item.is-active { background: #00a24a; color: #fff; border-color: #00a24a; }
.sp-lp-jornada { background: #fff; border: 1px solid #e3e2da; border-radius: 12px; margin: 0 0 12px; padding: 0 16px; }
.sp-lp-jornada__summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0; cursor: pointer; list-style: none; }
.sp-lp-jornada__summary::-webkit-details-marker { display: none; }
.sp-lp-jornada__summary::after { content: "▾"; color: #6b6b66; }
.sp-lp-jornada[open] > .sp-lp-jornada__summary::after { content: "▴"; }
.sp-lp-jornada__title { margin: 0; font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.sp-lp-jornada__count { font-size: 12px; color: #6b6b66; }
.sp-lp-jornada .sp-lp-jogos { border-top: 1px solid #efeee7; }

.sp-lp-equipas { columns: 2; gap: 12px; font-size: 14px; }
.sp-lp-equipas li { padding: 4px 0; break-inside: avoid; }
.sp-lp-equipas a { color: inherit; }
.sp-lp-grelha { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 12px; }
@media (min-width: 480px) { .sp-lp-grelha { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sp-lp-grelha a, .sp-lp-grelha span { display: flex; align-items: center; gap: 8px; padding: 6px 0; color: inherit; text-decoration: none; font-size: 14px; }
.sp-lp-grelha img { width: 24px; height: 24px; object-fit: contain; }
.sp-lp-noticias li { padding: 8px 0; border-bottom: 1px solid #efeee7; font-size: 15px; line-height: 1.35; }
.sp-lp-noticias a { color: inherit; text-decoration: none; font-weight: 600; }
.sp-lp-noticias time { display: block; font-size: 12px; color: #6b6b66; }
.sp-lp-plantel__pos { margin: 14px 0 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #6b6b66; }
.sp-lp-plantel { display: grid; grid-template-columns: 1fr; gap: 4px; }
.sp-lp-plantel__item { display: grid; grid-template-columns: 40px 1fr; grid-template-areas: "foto nome" "foto meta"; column-gap: 10px; align-items: center; padding: 4px 0; }
.sp-lp-plantel__item img { grid-area: foto; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #efeee7; }
.sp-lp-plantel__nome { grid-area: nome; font-size: 14px; }
.sp-lp-plantel__nome b { color: #00782f; }
.sp-lp-plantel__meta { grid-area: meta; font-size: 12px; color: #6b6b66; }
.sp-lp-mini { width: 100%; border-collapse: collapse; font-size: 13px; }
.sp-lp-mini th { text-align: left; font-size: 11px; text-transform: uppercase; color: #6b6b66; padding: 4px 6px; }
.sp-lp-mini td { padding: 6px; border-top: 1px solid #efeee7; }
.sp-lp-mini td:first-child, .sp-lp-mini td:nth-child(3), .sp-lp-mini td:nth-child(4), .sp-lp-mini th:first-child, .sp-lp-mini th:nth-child(3), .sp-lp-mini th:nth-child(4) { text-align: center; width: 36px; }
.sp-lp-mini tr.is-current td { background: #e8f8ee; font-weight: 800; }
.sp-lp-mini a { color: inherit; text-decoration: none; }
.sp-lp-ficha div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid #efeee7; font-size: 14px; }
.sp-lp-ficha div:first-child { border-top: 0; }
.sp-lp-ficha dt { color: #6b6b66; }
.sp-lp-ficha dd { margin: 0; text-align: right; font-weight: 600; }

/* A tabela de classificação reutiliza competicao.css (.sp-comp-table); as
   regras de ecrã pequeno dessa folha vivem debaixo de .sp-comp-page, por isso
   repetem-se aqui para a página nova: 5 colunas a 390 px, sem transbordo. */
.sp-lp .sp-comp-section { display: block; width: auto; max-width: 100%; min-width: 0; background: #fff; border: 1px solid #e3e2da; border-radius: 12px; padding: 14px 12px; overflow-x: auto; }
.sp-lp .sp-comp-section__head { flex-wrap: wrap; }
.sp-lp .sp-comp-table { width: 100%; min-width: 0; max-width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 13px; }
.sp-lp .sp-comp-table th, .sp-lp .sp-comp-table td { padding: 8px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-lp .sp-comp-table .sp-comp-th-pos, .sp-lp .sp-comp-table .sp-comp-pos { width: 30px; }
.sp-lp .sp-comp-table .sp-comp-c { width: 34px; text-align: center; }
.sp-lp .sp-comp-table .sp-comp-th-pts, .sp-lp .sp-comp-table .sp-comp-pts { width: 40px; font-weight: 800; }
.sp-lp .sp-comp-table .sp-comp-th-club, .sp-lp .sp-comp-table .sp-comp-club { width: auto; white-space: normal; overflow-wrap: anywhere; }
.sp-lp .sp-comp-only-desktop { display: none; }
.sp-lp .sp-comp-only-mobile { display: inline; }
@media (min-width: 768px) {
	.sp-lp .sp-comp-only-desktop { display: table-cell; }
	.sp-lp a.sp-comp-section__link .sp-comp-only-desktop { display: inline; }
	.sp-lp .sp-comp-only-mobile { display: none; }
	.sp-lp .sp-comp-section { padding: 14px 16px; }
	.sp-lp .sp-comp-table { font-size: 14px; }
}

/* Ficha de jogo: golos, frente-a-frente e notícias (zero API). */
.sp-fr-358 { background: #fff; border: 1px solid #e3e2da; border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; }
.sp-fr-358__title { margin: 0 0 10px; font-size: 13px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.sp-fr-358__golos { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.sp-fr-358__golos li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 6px 0; border-top: 1px solid #efeee7; min-width: 0; }
.sp-fr-358__golos li:first-child { border-top: 0; }
.sp-fr-358__golos a { color: inherit; text-decoration: none; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.sp-fr-358__min { color: #6b6b66; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.sp-fr-358__nome { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.sp-fr-358__lado { font-size: 12px; color: #6b6b66; margin-left: auto; }
.sp-fr-358__golos .is-away .sp-fr-358__lado { color: #00782f; }
.sp-fr-358__resumo { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin: 0 0 10px; }
.sp-fr-358__resumo b { display: block; font-size: 22px; font-weight: 900; }
.sp-fr-358__resumo span { font-size: 12px; color: #6b6b66; }
.sp-fr-358__links { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.sp-fr-358__links a { padding: 6px 10px; border-radius: 999px; background: #f1f0e9; color: #0d0d0c; font-size: 13px; font-weight: 700; text-decoration: none; }

@media (min-width: 768px) {
	.sp-lp-hero { padding: 32px 24px 24px; }
	.sp-lp-hero__logo { width: 64px; height: 64px; }
	.sp-lp-hero__title { font-size: 40px; }
	.sp-lp-body { padding: 24px; }
	.sp-lp-jogo { grid-template-columns: 120px 1fr auto 1fr auto; grid-template-areas: "data casa placar fora liga"; }
	.sp-lp-jogo__liga { text-align: right; }
	.sp-lp-plantel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sp-lp-grelha { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.sp-lp-equipas { columns: 1; }
}
@media (min-width: 1024px) {
	.sp-lp-body { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }
	.sp-lp-body--full { grid-template-columns: minmax(0, 1fr); }
	.sp-lp-plantel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
