/* Collegix Sports – scoreboard design (approved homepage proposal). */
:root {
	--cx-navy: #071426;
	--cx-navy-2: #0D1E36;
	--cx-blue-dark: #0D2A57;
	--cx-blue: #1D5FD1;
	--cx-red: #D8132A;
	--cx-red-light: #FF3B4E;
	--cx-green: #146C3A;
	--cx-live: #16C784;
	--cx-ink: #0B1B33;
	--cx-muted: #4A5A74;
	--cx-line: #E3E8F0;
	--cx-bg: #EEF2F7;
	--cx-radius: 12px;
	--cx-font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--cx-display: "Barlow Condensed", "Arial Narrow", sans-serif;
}
.cx-body { margin: 0; background: var(--cx-bg); color: var(--cx-ink); font-family: var(--cx-font); font-size: 16px; line-height: 1.45; }
.cx-body a { color: inherit; text-decoration: none; }
.cx-wrap { max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }
.cx-sr, .cx-skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cx-skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #fff; padding: 10px 14px; border-radius: 8px; }
.cx-body :focus-visible { outline: 3px solid #F5C518; outline-offset: 2px; }

/* Header */
.cx-header { color: #fff; background: var(--cx-navy); border-bottom: 1px solid #1C2E4A; color: #fff; }
.cx-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.cx-brand { display: flex; align-items: center; gap: 12px; }
.cx-brand__text { display: flex; flex-direction: column; line-height: 1; }
.cx-brand__name { font-family: var(--cx-display); font-style: italic; font-weight: 800; font-size: 32px; letter-spacing: .5px; color: #fff; }
.cx-brand__name span, .cx-footer__brand span { color: var(--cx-red-light); }
.cx-brand__tag { font-size: 12px; color: #A8B4C7; margin-top: 4px; font-style: italic; }
.cx-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.cx-nav__link { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; font-size: 15px; padding: 11px 14px; border-radius: 8px; min-height: 44px; box-sizing: border-box; }
.cx-nav__link:hover { background: #12264A; }
.cx-nav__link.is-active { background: var(--cx-red); }
.cx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cx-live); display: inline-block; }
.cx-search-btn, .cx-burger { width: 44px; height: 44px; border-radius: 8px; border: 1px solid #2A3F60; background: #101F35; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.cx-burger { display: none; }
.cx-search { display: flex; gap: 8px; padding-bottom: 16px; }
.cx-search[hidden] { display: none; }
.cx-search input, .cx-teamsearch input { flex: 1; height: 44px; border-radius: 8px; border: 1px solid #2A3F60; padding: 0 14px; font: inherit; }
.cx-search button, .cx-teamsearch button { height: 44px; padding: 0 18px; border: 0; border-radius: 8px; background: var(--cx-red); color: #fff; font: 600 15px var(--cx-font); cursor: pointer; }

/* Sports bar */
.cx-sportsbar { color: #fff; background: var(--cx-navy-2); border-bottom: 3px solid var(--cx-red); }
.cx-sportsbar__inner { display: flex; gap: 6px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: thin; }
.cx-sport { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 9px 14px; border-radius: 8px; color: #fff; font-weight: 600; font-size: 15px; min-height: 44px; box-sizing: border-box; }
.cx-sport:hover { background: #17305A; }
.cx-sport.is-active { background: var(--cx-red); }
.cx-sport__code { font-size: 10px; font-weight: 800; letter-spacing: .3px; background: rgba(255,255,255,.14); border-radius: 5px; padding: 3px 5px; }

/* Main */
.cx-main { padding-top: 20px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 18px; }
.cx-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--cx-muted); }
.cx-crumbs li + li::before { content: "›"; margin-right: 6px; }
.cx-crumbs a { color: var(--cx-blue); }
.cx-pagehead h1 { margin: 0; font-size: 28px; line-height: 1.2; }
.cx-intro { margin: 6px 0 0; color: var(--cx-muted); max-width: 900px; }

/* Date bar */
.cx-datebar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.cx-datebar__step { flex: 1 1 160px; max-width: 280px; min-height: 52px; border-radius: 10px; background: var(--cx-blue-dark); color: #fff !important; font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 10px; padding: 0 16px; box-sizing: border-box; }
.cx-datebar__step--next { justify-content: flex-end; }
.cx-datebar__step:hover { background: #12387A; }
.cx-datebar__pick { flex: 2 1 300px; max-width: 520px; display: flex; gap: 8px; align-items: center; position: relative; }
.cx-datebar__pick label { flex: 1; min-height: 52px; border-radius: 10px; border: 2px solid var(--cx-blue-dark); background: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 18px; cursor: pointer; padding: 0 12px; box-sizing: border-box; }
.cx-datebar__pick input[type=date] { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.cx-datebar__today { position: relative; z-index: 1; min-height: 52px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 10px; background: var(--cx-red); color: #fff !important; font-weight: 700; }
.cx-divs { display: flex; flex-wrap: wrap; gap: 6px; }
.cx-divs a { padding: 8px 14px; border-radius: 20px; border: 1px solid #C9D3E2; background: #fff; font-weight: 600; font-size: 14px; }
.cx-divs a.is-active { background: var(--cx-blue-dark); border-color: var(--cx-blue-dark); color: #fff; }

.cx-infobar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 13px; color: var(--cx-muted); }
.cx-infobar__upd { display: inline-flex; align-items: center; gap: 6px; }
.cx-linkbtn { background: none; border: 0; padding: 0; color: var(--cx-blue); font: 600 13px var(--cx-font); cursor: pointer; }

/* Sections */
.cx-board { display: flex; flex-direction: column; gap: 18px; }
.cx-sec { background: #fff; border: 2px solid var(--cx-blue-dark); border-radius: var(--cx-radius); overflow: hidden; }
.cx-sec__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 18px; background: var(--cx-blue-dark); color: #fff; }
.cx-sec__head h2 { margin: 0; display: flex; align-items: center; gap: 12px; font-family: var(--cx-display); font-style: italic; font-weight: 800; font-size: 30px; letter-spacing: .5px; }
.cx-sec__count { background: rgba(0,0,0,.22); padding: 5px 11px; border-radius: 6px; font-weight: 700; font-size: 14px; }
.cx-sec--live { border-color: var(--cx-red); }
.cx-sec--live .cx-sec__head { background: var(--cx-red); }
.cx-sec--final { border-color: var(--cx-green); }
.cx-sec--final .cx-sec__head { background: var(--cx-green); }
.cx-sec--other { border-color: #5A6A84; }
.cx-sec--other .cx-sec__head { background: #5A6A84; }
.cx-livedot { width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.3); animation: cx-pulse 1.6s ease-in-out infinite; }
@keyframes cx-pulse { 50% { box-shadow: 0 0 0 9px rgba(255,255,255,.08); } }
@media (prefers-reduced-motion: reduce) { .cx-livedot { animation: none; } }
.cx-sec__sport { margin: 0; padding: 8px 18px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; background: #F4F7FB; border-top: 1px solid var(--cx-line); color: var(--cx-muted); }
.cx-sec__sport a:hover { color: var(--cx-blue); }
.cx-sec__sport span { font-weight: 600; }

/* Game row */
.cx-row { display: grid; grid-template-columns: minmax(0,1fr) 112px minmax(0,1fr) 170px 140px; align-items: center; gap: 14px; padding: 12px 18px; border-top: 1px solid var(--cx-line); }
.cx-row:hover { background: #F6F8FB; }
.cx-team { display: flex; align-items: center; gap: 12px; min-width: 0; font-weight: 600; font-size: 18px; }
.cx-team--away { justify-content: flex-end; text-align: right; }
.cx-team__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-team__score { display: none; }
.cx-team.is-winner .cx-team__name { font-weight: 800; }
.cx-badge { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--cx-blue-dark); color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; letter-spacing: .2px; overflow: hidden; }
.cx-badge--logo { background: #fff; object-fit: contain; border: 1px solid var(--cx-line); padding: 3px; box-sizing: border-box; }
.cx-badge--dark, .cx-game__team .cx-badge--dark { background: transparent; border: 0; padding: 0; border-radius: 0; }
.cx-score { background: var(--cx-ink); color: #fff; border-radius: 8px; text-align: center; font-weight: 800; font-size: 24px; padding: 5px 0; font-variant-numeric: tabular-nums; }
.cx-row--live .cx-score { background: var(--cx-red); }
.cx-vs { justify-self: center; background: var(--cx-blue-dark); color: #fff; border-radius: 20px; font-weight: 800; font-size: 15px; padding: 5px 18px; }
.cx-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cx-status { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.cx-row--live .cx-status { color: var(--cx-red); }
.cx-row--stale .cx-status { color: #8A5A00; font-weight: 600; font-size: 13px; }
.cx-sub { font-size: 12px; color: var(--cx-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-livetag { background: var(--cx-red); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 4px; letter-spacing: .5px; }
.cx-cta { justify-self: end; border: 2px solid var(--cx-blue); color: var(--cx-blue); border-radius: 8px; padding: 7px 12px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.cx-row--live .cx-cta { border-color: var(--cx-red); color: var(--cx-red); }

.cx-empty { background: #fff; border: 1px dashed #B8C4D6; border-radius: var(--cx-radius); padding: 28px 20px; text-align: center; color: var(--cx-muted); }
.cx-empty p { margin: 0; font-size: 16px; }
.cx-empty--error { border-color: var(--cx-red); color: #9B1020; }
.cx-dayhead { margin: 8px 0 0; font-size: 20px; }
.cx-dayhead a:hover { color: var(--cx-blue); }

/* Cards, game page, teams */
.cx-card { background: #fff; border: 1px solid var(--cx-line); border-radius: var(--cx-radius); padding: 18px 20px; }
.cx-card__title { margin: 0 0 12px; font-size: 18px; }
.cx-game { background: var(--cx-navy); color: #fff; border-radius: var(--cx-radius); padding: 18px 20px 26px; }
.cx-game__status { display: flex; justify-content: center; align-items: center; gap: 8px; font-weight: 700; color: #C9D3E2; margin-bottom: 14px; }
.cx-game__board { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; }
.cx-game__team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: #fff !important; }
.cx-game__team .cx-badge { width: 72px; height: 72px; font-size: 16px; background: #1A3563; }
.cx-game__name { font-size: 22px; font-weight: 700; }
.cx-game__team.is-winner .cx-game__name { color: #FFD866; }
.cx-game__side { font-size: 13px; color: #A8B4C7; }
.cx-game__score { font-size: 52px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cx-game__score span { color: #6F82A3; }
.cx-tablewrap { overflow-x: auto; }
.cx-table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.cx-table th, .cx-table td { padding: 9px 10px; border-bottom: 1px solid var(--cx-line); text-align: center; }
.cx-table th[scope=row], .cx-table thead th:first-child { text-align: left; }
.cx-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 24px; margin: 0; }
.cx-facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--cx-muted); }
.cx-facts dd { margin: 2px 0 0; font-weight: 600; }
.cx-facts a, .cx-teamlist a { color: var(--cx-blue); }
.cx-source { margin: 14px 0 0; font-size: 12px; color: var(--cx-muted); }
.cx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.cx-chip { padding: 7px 12px; border-radius: 20px; background: #fff; border: 1px solid #C9D3E2; font-weight: 600; font-size: 14px; }
.cx-teamsearch { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cx-teamsearch label { font-weight: 700; }
.cx-teamsearch input { border-color: #C9D3E2; min-width: 220px; }
.cx-teamlist { list-style: none; margin: 0; padding: 0; columns: 3 220px; column-gap: 24px; }
.cx-teamlist li { padding: 4px 0; break-inside: avoid; }
.cx-teamlist span { color: var(--cx-muted); font-size: 13px; }

/* Ads: space reserved to avoid layout shift; kept away from buttons. */
.cx-ad { margin: 4px 0; text-align: center; min-height: 100px; }
.cx-ad__label { display: block; font-size: 11px; color: #7A889E; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }

/* Footer */
.cx-footer { background: var(--cx-navy); color: #A8B4C7; margin-top: 12px; }
.cx-footer__inner { padding-top: 22px; padding-bottom: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.cx-footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.cx-footer__links a { color: #fff; }
.cx-footer__brand { font-family: var(--cx-display); font-style: italic; font-weight: 800; font-size: 24px; color: #fff; }
.cx-footer__note { margin: 0; font-size: 12px; }

/* Tablet & phone */
@media (max-width: 1020px) {
	.cx-row { grid-template-columns: minmax(0,1fr) 96px minmax(0,1fr) 150px; }
	.cx-cta { display: none; }
}
@media (max-width: 760px) {
	.cx-wrap { padding-left: 14px; padding-right: 14px; }
	.cx-burger { display: inline-flex; }
	.cx-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; }
	.cx-nav.is-open { display: flex; }
	.cx-header__inner { flex-wrap: wrap; }
	.cx-brand { flex: 1; min-width: 0; }
	.cx-brand__mark { width: 36px; height: 36px; }
	.cx-brand__name { font-size: 23px; }
	.cx-brand__tag { font-size: 11px; }
	.cx-sub { display: none; }
	.cx-pagehead h1 { font-size: 22px; }
	.cx-datebar__step { flex: 1 1 40%; font-size: 14px; }
	.cx-datebar__pick { order: -1; flex-basis: 100%; max-width: none; }
	.cx-sec__head h2 { font-size: 24px; }
	/* Two stacked team lines + status column, like mobile score apps. */
	.cx-row { grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "away meta" "home meta"; gap: 6px 12px; padding: 10px 14px; }
	.cx-team--away { grid-area: away; justify-content: flex-start; text-align: left; }
	.cx-team--home { grid-area: home; }
	.cx-team { font-size: 16px; gap: 10px; }
	.cx-team--away .cx-badge { order: -1; }
	.cx-badge { width: 30px; height: 30px; font-size: 9px; }
	.cx-team__score { display: inline; margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
	.cx-score, .cx-vs { display: none; }
	.cx-meta { grid-area: meta; text-align: right; align-items: flex-end; max-width: 130px; }
	.cx-status { font-size: 14px; justify-content: flex-end; }
	.cx-game__score { font-size: 36px; }
	.cx-game__team .cx-badge { width: 52px; height: 52px; }
	.cx-game__name { font-size: 17px; }
}
