/* Clube Esporte News — frontend. Escopado em .cen-app e .cen-lateral. */

.cen-app, .cen-lateral {
	--cen-accent: #15803d;
	--cen-accent-dk: #0f5f2e;
	--cen-ink: #14181f;
	--cen-muted: #667085;
	--cen-line: #e6e8ec;
	--cen-surface: #ffffff;
	--cen-soft: #f6f7f9;
	--cen-live: #e11d48;
	--cen-rel: #dc2626;
	box-sizing: border-box;
	color: var(--cen-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}
.cen-app *, .cen-lateral * { box-sizing: border-box; }

@media (prefers-color-scheme: dark) {
	.cen-app, .cen-lateral {
		--cen-ink: #e8eaed; --cen-muted: #9aa3b2; --cen-line: #2a2f3a;
		--cen-surface: #161a21; --cen-soft: #1d222b; --cen-accent: #34d17a; --cen-accent-dk: #27b268;
	}
}

/* ---- escudos (compartilhado) ---- */
.cen-crest-wrap { position: relative; display: inline-block; flex: 0 0 auto; vertical-align: middle; }
.cen-crest { display: block; width: 100%; height: 100%; object-fit: contain; }
.cen-crest--img { position: absolute; inset: 0; }
.cen-crest--ph {
	display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
	border-radius: 50%; background: var(--cen-soft); border: 1px solid var(--cen-line);
	font-size: 8.5px; font-weight: 800; letter-spacing: .02em; color: var(--cen-muted);
}

/* ---- página ---- */
.cen-app {
	max-width: 760px; margin: 0 auto; border: 1px solid var(--cen-line);
	border-radius: 14px; background: var(--cen-surface); overflow: hidden;
}
.cen-head {
	display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
	padding: 18px 20px; background: linear-gradient(135deg, var(--cen-accent), var(--cen-accent-dk)); color: #fff;
}
.cen-badge {
	display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .12em;
	background: rgba(255,255,255,.18); padding: 3px 8px; border-radius: 999px; margin-bottom: 7px;
}
.cen-title { font-size: 20px; font-weight: 800; margin: 0; line-height: 1.15; color: #fff; }
.cen-sub { display: block; font-size: 12px; opacity: .9; margin-top: 3px; }
.cen-head__sync { display: flex; align-items: center; gap: 6px; font-size: 11px; opacity: .92; white-space: nowrap; padding-top: 4px; }
.cen-sync-dot { width: 7px; height: 7px; border-radius: 50%; background: #c7f9d9; box-shadow: 0 0 0 0 rgba(255,255,255,.6); animation: cen-pulse 2.4s infinite; }
@keyframes cen-pulse { 0%{box-shadow:0 0 0 0 rgba(255,255,255,.5)} 70%{box-shadow:0 0 0 6px rgba(255,255,255,0)} 100%{box-shadow:0 0 0 0 rgba(255,255,255,0)} }

.cen-tabs { display: flex; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--cen-line); background: var(--cen-soft); overflow-x: auto; }
.cen-tab {
	appearance: none; background: 0; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
	padding: 13px 14px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--cen-muted); white-space: nowrap;
}
.cen-tab:hover { color: var(--cen-ink); }
.cen-tab.is-on { color: var(--cen-accent); border-bottom-color: var(--cen-accent); }

.cen-view { padding: 16px 18px 20px; min-height: 120px; }
.cen-loading, .cen-empty { color: var(--cen-muted); font-size: 13.5px; text-align: center; padding: 28px 10px; }
.cen-empty--sm, .cen-loading--sm { padding: 14px 6px; font-size: 12.5px; }
.cen-foot { padding: 11px 18px; border-top: 1px solid var(--cen-line); font-size: 11.5px; color: var(--cen-muted); background: var(--cen-soft); }
.cen-foot a { color: var(--cen-accent); text-decoration: none; }

/* ---- tabela ---- */
.cen-tablewrap { width: 100%; }
.cen-table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.cen-table th { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--cen-muted); padding: 8px 6px; border-bottom: 1px solid var(--cen-line); }
.cen-table td { text-align: center; padding: 9px 6px; border-bottom: 1px solid var(--cen-line); }
.cen-table th.cen-team, .cen-table td.cen-team { text-align: left; }
.cen-pos { color: var(--cen-muted); font-weight: 600; width: 26px; }
.cen-team { display: flex; align-items: center; gap: 8px; }
.cen-team__nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cen-pts { font-weight: 800; color: var(--cen-accent); }
.cen-tr--lib td.cen-pos { box-shadow: inset 3px 0 0 var(--cen-accent); }
.cen-tr--rel td.cen-pos { box-shadow: inset 3px 0 0 var(--cen-rel); }

.cen-form { display: inline-flex; gap: 3px; }
.cen-fdot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.cen-fdot--v { background: #16a34a; } .cen-fdot--e { background: #d4a017; } .cen-fdot--d { background: #dc2626; }

.cen-legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11px; color: var(--cen-muted); padding: 12px 2px 2px; }
.cen-lg { width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-left: 10px; }
.cen-lg:first-child { margin-left: 0; }
.cen-lg--lib { background: var(--cen-accent); } .cen-lg--rel { background: var(--cen-rel); }

/* ---- jogos / resultados ---- */
.cen-round { border: 1px solid var(--cen-line); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.cen-round > summary { cursor: pointer; list-style: none; padding: 11px 14px; font-weight: 700; font-size: 13px; background: var(--cen-soft); display: flex; align-items: center; justify-content: space-between; }
.cen-round > summary::-webkit-details-marker { display: none; }
.cen-round__n { font-weight: 600; font-size: 11px; color: var(--cen-muted); background: var(--cen-surface); border: 1px solid var(--cen-line); border-radius: 999px; padding: 1px 8px; }
.cen-matches { padding: 4px 0; }
.cen-match { padding: 9px 14px; border-top: 1px solid var(--cen-line); }
.cen-match:first-child { border-top: 0; }
.cen-match__meta { display: block; font-size: 11px; color: var(--cen-muted); margin-bottom: 5px; }
.cen-st { font-weight: 700; }
.cen-st--live { color: var(--cen-live); } .cen-st--fin { color: var(--cen-accent); } .cen-st--off { color: #b45309; } .cen-st--up { color: var(--cen-muted); }
.cen-match__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.cen-side { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13.5px; }
.cen-side--h { justify-content: flex-end; text-align: right; }
.cen-side--a { justify-content: flex-start; }
.cen-side__nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cen-win .cen-side__nm, .cen-win { font-weight: 800; }
.cen-score { font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cen-score i { color: var(--cen-muted); font-style: normal; margin: 0 5px; font-weight: 500; }
.cen-vs { color: var(--cen-muted); font-size: 12.5px; white-space: nowrap; }

/* ---- artilharia ---- */
.cen-scorers { list-style: none; margin: 0; padding: 0; }
.cen-scorer { display: flex; align-items: center; gap: 10px; padding: 10px 6px; border-bottom: 1px solid var(--cen-line); }
.cen-scorer__rk { width: 22px; text-align: center; font-weight: 700; color: var(--cen-muted); font-variant-numeric: tabular-nums; }
.cen-scorer__id { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cen-scorer__nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cen-scorer__tm { font-size: 11.5px; color: var(--cen-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cen-scorer__g { font-weight: 800; font-size: 17px; color: var(--cen-accent); display: flex; flex-direction: column; align-items: center; line-height: 1; }
.cen-scorer__g small { font-size: 9px; font-weight: 600; color: var(--cen-muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }

/* ---- barra lateral ---- */
.cen-lateral {
	width: 100%; max-width: 100%; border: 1px solid var(--cen-line); border-radius: 12px;
	background: var(--cen-surface); overflow: hidden; font-size: 11.5px;
	box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 10px 26px -14px rgba(16,24,40,.22);
}
.cen-lat__head {
	display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px;
	background: linear-gradient(135deg, #0b3d22 0%, var(--cen-accent) 100%); color: #fff;
}
.cen-lat__brand { display: flex; flex-direction: column; min-width: 0; }
.cen-lat__eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .78; }
.cen-lat__title { font-size: 13.5px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; margin-top: 2px; }
.cen-lat__chip {
	font-size: 11px; font-weight: 700; white-space: nowrap; padding: 5px 10px; border-radius: 999px;
	background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.24);
}
.cen-lat__body { padding: 0 12px 2px; }

.cen-lat__lead { padding: 7px 0 6px; border-bottom: 1px solid var(--cen-line); }
.cen-lat__leadrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cen-lat__leadl { display: flex; align-items: center; gap: 11px; min-width: 0; }
.cen-lat__leadtx { display: flex; flex-direction: column; min-width: 0; }
.cen-lat__k { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cen-muted); }
.cen-lat__v { font-weight: 800; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cen-lat__pts { text-align: right; line-height: 1; flex: 0 0 auto; }
.cen-lat__pts b { display: block; font-size: 18px; font-weight: 800; color: var(--cen-accent); font-variant-numeric: tabular-nums; }
.cen-lat__pts small { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cen-muted); }
.cen-lat__stats {
	display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 7px;
	background: var(--cen-soft); border-radius: 10px; overflow: hidden;
}
.cen-lat__stats span { text-align: center; padding: 3px 0; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--cen-muted); }
.cen-lat__stats b { display: block; font-size: 12px; font-weight: 800; color: var(--cen-ink); letter-spacing: 0; font-variant-numeric: tabular-nums; }

.cen-lat__sec { padding: 9px 0 0; }
.cen-lat__sech {
	display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 9px; font-weight: 800;
	letter-spacing: .1em; text-transform: uppercase; color: var(--cen-muted);
}
.cen-lat__sech::after { content: ""; flex: 1; height: 1px; background: var(--cen-line); }

.cen-lat__m {
	display: grid; grid-template-columns: 1fr 74px 1fr; align-items: center; gap: 6px;
	padding: 4px 0; border-top: 1px dashed var(--cen-line);
}
.cen-lat__sec .cen-lat__m:first-of-type { border-top: 0; }
.cen-lat__t { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 11.5px; }
.cen-lat__t--h { justify-content: flex-end; }
.cen-lat__t--a { justify-content: flex-start; }
.cen-lat__tla { font-weight: 800; letter-spacing: .03em; white-space: nowrap; }
.cen-lat__t.is-lose { opacity: .5; }
.cen-lat__t.is-win .cen-lat__tla { color: var(--cen-accent); }

.cen-lat__mid { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.cen-lat__when { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.cen-lat__when b { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--cen-muted); }
.cen-lat__when span { font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cen-lat__score {
	font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap;
	padding: 2px 8px; border-radius: 7px; background: var(--cen-soft); line-height: 1.3;
}
.cen-lat__fin { font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cen-muted); }
.cen-lat__live {
	font-size: 9.5px; font-weight: 800; letter-spacing: .08em; color: #fff; background: var(--cen-live);
	padding: 2px 8px; border-radius: 999px;
}

.cen-lat__foot {
	padding: 5px 12px; border-top: 1px solid var(--cen-line); background: var(--cen-soft);
	font-size: 11px; color: var(--cen-muted);
}

/* ---- responsivo ---- */
@media (max-width: 560px) {
	.cen-hide-sm { display: none !important; }
	.cen-view { padding: 14px 12px 18px; }
	.cen-head { padding: 15px 14px; }
}
@media (max-width: 420px) {
	.cen-hide-xs { display: none !important; }
	.cen-lat__m { grid-template-columns: 1fr 74px 1fr; gap: 6px; }
}
