:root {
	--bg:
		radial-gradient(circle at top left, rgba(206, 17, 38, 0.16), transparent 24%),
		radial-gradient(circle at top right, rgba(60, 59, 110, 0.18), transparent 28%),
		radial-gradient(circle at bottom right, rgba(0, 104, 71, 0.14), transparent 30%),
		linear-gradient(180deg, #f8fafc 0%, #eef5f9 42%, #f4fbf6 100%);
	--panel: rgba(255, 255, 255, 0.9);
	--panel-soft: rgba(242, 255, 247, 0.92);
	--ink: #152341;
	--muted: #4c5874;
	--line: rgba(21, 35, 65, 0.14);
	--accent: #1f3c88;
	--accent-deep: #10204d;
	--accent-alt: #ce1126;
	--warning: #b45309;
	--danger: #dc2626;
	--success: #006847;
	--shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
	--seam-ribbon: linear-gradient(90deg, #3c3b6e 0%, #b22234 27%, #f7f6f2 52%, #006847 76%, #ce1126 100%);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	color: var(--ink);
	background: var(--bg);
	font-family: "Trebuchet MS", "Avenir Next", "Segoe UI", sans-serif;
}

body.home-plain {
	background: #ffffff;
}

.site-nav {
	position: sticky;
	top: 0;
	z-index: 40;
	overflow: hidden;
	backdrop-filter: blur(8px);
	background: rgba(248, 250, 252, 0.88);
	border-bottom: 1px solid var(--line);
}

.site-nav::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: var(--seam-ribbon);
	opacity: 0.9;
}

.site-nav-inner {
	max-width: 1320px;
	margin: 0 auto;
	padding: 10px 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: space-between;
}

.site-nav-brand {
	color: var(--ink);
	text-decoration: none;
	font-weight: 900;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 0.9rem;
}

.top-nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.top-nav-select-wrap {
	display: none;
	width: 100%;
	position: relative;
}

.top-nav-select {
	width: 100%;
	appearance: none;
	border: 1px solid rgba(31, 60, 136, 0.36);
	border-radius: 12px;
	padding: 10px 36px 10px 12px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--ink);
	font-size: 0.9rem;
	font-weight: 700;
	box-shadow: 0 6px 14px rgba(31, 60, 136, 0.14);
	cursor: pointer;
}

.top-nav-select-wrap::before {
	content: 'Menu';
	display: block;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--accent-deep);
	margin: 0 0 6px 2px;
}

.top-nav-select-wrap::after {
	content: '▾';
	position: absolute;
	right: 12px;
	bottom: 12px;
	font-size: 1rem;
	font-weight: 900;
	color: var(--accent-deep);
	pointer-events: none;
}

.top-nav-link {
	display: inline-flex;
	align-items: center;
	padding: 7px 12px;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.82rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--accent-deep);
	background: rgba(31, 60, 136, 0.09);
	border: 1px solid rgba(31, 60, 136, 0.18);
}

.top-nav-link.is-active {
	color: #ffffff;
	background: linear-gradient(135deg, var(--accent), var(--accent-alt));
	border-color: transparent;
}

.top-nav-actions {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.top-nav-user {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 700;
	background: rgba(21, 128, 61, 0.12);
	color: var(--success);
	border: 1px solid rgba(21, 128, 61, 0.2);
}

.top-nav-btn,
.top-nav-btn-link {
	appearance: none;
	border: 0;
	border-radius: 999px;
	padding: 8px 12px;
	cursor: pointer;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	color: #ffffff;
	background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.top-nav-btn-link {
	background: linear-gradient(135deg, var(--accent), var(--accent-alt));
}

main {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 18px 40px;
}

.home-page {
	max-width: 1000px;
	display: grid;
	gap: 18px;
}

.home-hero {
	padding: 26px;
	border: 1px solid var(--line);
	border-radius: 24px;
	background: linear-gradient(140deg, rgba(31, 60, 136, 0.14), rgba(206, 17, 38, 0.13), rgba(0, 104, 71, 0.1));
	box-shadow: var(--shadow);
}

.home-kicker {
	margin: 0 0 8px;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent-deep);
}

.home-title {
	margin: 0;
	font-size: clamp(2rem, 4vw, 3.4rem);
	line-height: 0.94;
	text-transform: uppercase;
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.home-title-flag {
	font-size: clamp(1.7rem, 3.2vw, 2.5rem);
	line-height: 1;
}

.home-title-text {
	line-height: 0.94;
}

.home-copy {
	max-width: 72ch;
	margin: 12px 0 0;
	font-size: 1.02rem;
	line-height: 1.65;
	color: var(--muted);
}

h1 {
	margin: 0;
	font-size: clamp(2rem, 5vw, 3.25rem);
	line-height: 0.95;
	letter-spacing: -0.03em;
	text-transform: uppercase;
}

h2,
h3 {
	letter-spacing: -0.02em;
}

p {
	line-height: 1.55;
}

#matches {
	margin-top: 16px;
}

.session-banner {
	padding: 12px 14px;
	border-radius: 16px;
	border: 1px solid var(--line);
	background: var(--panel-soft);
	box-shadow: var(--shadow);
	font-size: 0.95rem;
}

.session-banner p,
.session-banner div {
	margin: 0;
}

.session-banner a {
	color: var(--accent-deep);
	font-weight: 700;
	text-decoration-thickness: 2px;
}

.intro-text {
	margin: 14px 0;
	color: var(--muted);
	line-height: 1.55;
	max-width: 70ch;
}

.lock-hint {
	margin: 0 0 14px;
	display: inline-flex;
	align-items: center;
	padding: 7px 10px;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--warning);
	background: rgba(180, 83, 9, 0.1);
	border: 1px solid rgba(180, 83, 9, 0.2);
}

.fixtures-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 18px;
}

.fixtures-summary span {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(31, 60, 136, 0.12);
	border: 1px solid rgba(31, 60, 136, 0.22);
	color: var(--accent-deep);
	font-weight: 700;
	font-size: 0.85rem;
	text-transform: uppercase;
}

.empty-state {
	padding: 16px;
	border: 1px dashed var(--line);
	border-radius: 12px;
	background: var(--panel);
	color: var(--muted);
	box-shadow: var(--shadow);
}

.fixture-group {
	margin-bottom: 18px;
	border: 1px solid var(--line);
	border-radius: 24px;
	background: var(--panel);
	box-shadow: var(--shadow);
	overflow: hidden;
	backdrop-filter: blur(8px);
}

.home-hero,
.league-hero,
.admin-hero,
.fixture-group,
.league-panel,
.admin-panel,
.world-group,
.session-banner {
	position: relative;
	overflow: hidden;
}

.home-hero::before,
.league-hero::before,
.admin-hero::before,
.fixture-group::before,
.league-panel::before,
.admin-panel::before,
.world-group::before,
.session-banner::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 3px;
	background: var(--seam-ribbon);
	opacity: 0.85;
	pointer-events: none;
}

.fixture-day {
	border: 0;
}

.fixture-day > .group-title {
	list-style: none;
	cursor: pointer;
	user-select: none;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-right: 46px;
}

.fixture-day > .group-title::-webkit-details-marker {
	display: none;
}

.fixture-day > .group-title::after {
	content: '+';
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.15rem;
	font-weight: 900;
	color: var(--accent-deep);
}

.fixture-day[open] > .group-title::after {
	content: '−';
}

.fixture-day.is-archived > .group-title {
	background: linear-gradient(90deg, rgba(180, 83, 9, 0.14), rgba(220, 38, 38, 0.1));
}

.group-title {
	margin: 0;
	padding: 16px 18px;
	border-bottom: 1px solid var(--line);
	font-size: 1.15rem;
	font-weight: 800;
	background: linear-gradient(90deg, rgba(31, 60, 136, 0.15), rgba(206, 17, 38, 0.12));
}

.group-title-text {
	padding-right: 10px;
}

.day-countdown {
	display: inline-flex;
	align-items: center;
	padding: 5px 9px;
	border-radius: 999px;
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: rgba(31, 60, 136, 0.12);
	border: 1px solid rgba(31, 60, 136, 0.2);
	color: var(--accent-deep);
	white-space: nowrap;
}

.day-countdown.is-open {
	color: var(--success);
	border-color: rgba(21, 128, 61, 0.25);
	background: rgba(21, 128, 61, 0.12);
}

.day-countdown.is-locking {
	color: var(--warning);
	border-color: rgba(180, 83, 9, 0.25);
	background: rgba(180, 83, 9, 0.12);
}

.day-countdown.is-started {
	color: var(--danger);
	border-color: rgba(220, 38, 38, 0.25);
	background: rgba(220, 38, 38, 0.1);
}

.table-wrap {
	overflow-x: auto;
}

.fixtures-table {
	width: 100%;
	min-width: 760px;
	border-collapse: collapse;
}

.fixtures-table th,
.fixtures-table td {
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid var(--line);
}

.fixtures-table th {
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted);
	background: rgba(16, 35, 27, 0.04);
}

/* Let long prediction headers break neatly over two lines. */
.fixtures-table th:nth-child(5),
.fixtures-table th:nth-child(6) {
	white-space: normal;
	line-height: 1.15;
	min-width: 120px;
}

.fixtures-table tr:hover td {
	background: rgba(31, 60, 136, 0.04);
}

.team-cell {
	white-space: nowrap;
}

.team-wrap {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.team-flag {
	font-size: 1.05rem;
	line-height: 1;
}

.team-name {
	font-weight: 700;
}

.score-input {
	width: 72px;
	padding: 8px 10px;
	border-radius: 8px;
	border: 1px solid rgba(16, 35, 27, 0.18);
	background: #fffdf8;
	color: var(--ink);
	font: inherit;
	font-weight: 700;
}

.score-input:focus {
	outline: 3px solid rgba(31, 60, 136, 0.2);
	border-color: var(--accent);
}


.group-actions {
	padding: 12px 16px 16px;
}

.submit-group-btn {
	appearance: none;
	border: 0;
	border-radius: 999px;
	padding: 12px 18px;
	cursor: pointer;
	color: #f7fffe;
	background: linear-gradient(135deg, var(--accent), var(--accent-alt));
	font-weight: 700;
	font-size: 0.92rem;
	box-shadow: 0 10px 24px rgba(31, 60, 136, 0.24);
	text-transform: uppercase;
}

.submit-group-btn:hover {
	transform: translateY(-1px) scale(1.01);
	filter: brightness(1.03);
}

.submit-group-btn:disabled {
	cursor: not-allowed;
	opacity: 0.7;
}

.league-links {
	margin-top: 14px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.league-link {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #f8fffe;
	background: linear-gradient(135deg, #1f3c88, #ce1126);
	box-shadow: 0 8px 18px rgba(31, 60, 136, 0.24);
}

.league-link:hover {
	transform: translateY(-1px);
	filter: brightness(1.03);
}

.league-page {
	max-width: 1100px;
	display: grid;
	gap: 18px;
}

.league-hero {
	padding: 20px;
	border-radius: 22px;
	border: 1px solid var(--line);
	background: linear-gradient(140deg, rgba(31, 60, 136, 0.15), rgba(206, 17, 38, 0.11), rgba(0, 104, 71, 0.11));
	box-shadow: var(--shadow);
}

.league-kicker {
	margin: 0 0 8px;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent-deep);
}

.league-title {
	margin: 0;
	font-size: clamp(1.8rem, 4vw, 3rem);
	line-height: 0.95;
	text-transform: uppercase;
}

.league-copy {
	max-width: 70ch;
	margin: 10px 0 0;
	color: var(--muted);
}

.league-panel {
	padding: 16px;
	border-radius: 20px;
	border: 1px solid var(--line);
	background: var(--panel);
	box-shadow: var(--shadow);
}

.league-footnote {
	margin: 12px 2px 0;
	font-size: 0.76rem;
	line-height: 1.35;
	letter-spacing: 0.02em;
	color: var(--muted);
	opacity: 0.82;
}

.world-results-page {
	max-width: 1200px;
	display: grid;
	gap: 18px;
}

.world-results-content {
	display: grid;
	gap: 16px;
}

.world-group {
	border: 1px solid var(--line);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.85);
}

.world-group-details {
	border-radius: 16px;
	overflow: hidden;
}

.world-group-details > summary {
	list-style: none;
}

.world-group-details > summary::-webkit-details-marker {
	display: none;
}

.world-group-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	cursor: pointer;
	background: linear-gradient(90deg, rgba(31, 60, 136, 0.11), rgba(0, 104, 71, 0.08), rgba(206, 17, 38, 0.08));
	border-bottom: 1px solid var(--line);
	position: relative;
	padding-right: 42px;
}

.world-group-header::after {
	content: '+';
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.1rem;
	font-weight: 900;
	color: var(--accent-deep);
}

.world-group-details[open] .world-group-header::after {
	content: '−';
}

.world-group-body {
	padding: 12px 14px 14px;
}

.world-group-title {
	margin: 0;
	font-size: 1.15rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.world-group-status {
	display: inline-flex;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--accent-deep);
	background: rgba(31, 60, 136, 0.12);
	border: 1px solid rgba(31, 60, 136, 0.2);
}

.world-results-subtitle {
	margin: 14px 0 8px;
	font-size: 0.92rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--muted);
}

.world-standings-table {
	border-collapse: separate;
	border-spacing: 0;
}

.world-standings-table tr:nth-child(even) td {
	background: rgba(31, 60, 136, 0.05);
}

.world-standings-table tr:nth-child(odd) td {
	background: rgba(16, 35, 27, 0.015);
}

.world-standings-table tr:first-child th {
	background: rgba(16, 35, 27, 0.07);
	border-bottom: 1px solid var(--line);
}

.world-standings-table td,
.world-standings-table th {
	border-bottom: 1px solid rgba(16, 35, 27, 0.09);
}

.world-standings-table td:first-child,
.world-standings-table th:first-child,
.world-standings-table td:nth-child(n+3),
.world-standings-table th:nth-child(n+3) {
	text-align: center;
}

.world-standings-table td:nth-child(2),
.world-standings-table th:nth-child(2) {
	text-align: left;
}

.world-standings-table tr:nth-child(2) td,
.world-standings-table tr:nth-child(3) td {
	font-weight: 700;
}

.world-results-list {
	display: grid;
	gap: 8px;
}

.world-result-item {
	display: grid;
	grid-template-columns: minmax(220px, 1.6fr) auto minmax(180px, 1fr);
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: rgba(16, 35, 27, 0.02);
}

.world-result-fixture {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-weight: 700;
}

.team-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.team-flag {
	font-size: 1rem;
	line-height: 1;
}

.team-name {
	line-height: 1.2;
}

.fixture-versus {
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--muted);
}

.world-result-score {
	font-weight: 800;
	font-size: 1.02rem;
	color: var(--accent-deep);
	text-align: center;
}

.world-result-kickoff {
	font-size: 0.86rem;
	color: var(--muted);
	text-align: right;
}

.world-knockout {
	padding: 14px;
}

.world-knockout-round + .world-knockout-round {
	margin-top: 8px;
}

.world-knockout-round-details {
	border: 1px solid var(--line);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.86);
	overflow: hidden;
}

.world-knockout-round-details > summary {
	list-style: none;
}

.world-knockout-round-details > summary::-webkit-details-marker {
	display: none;
}

.world-knockout-round-header {
	position: relative;
	margin: 0;
	padding: 10px 38px 10px 12px;
	font-size: 0.92rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
	background: linear-gradient(90deg, rgba(31, 60, 136, 0.1), rgba(0, 104, 71, 0.07), rgba(206, 17, 38, 0.07));
	border-bottom: 1px solid var(--line);
	cursor: pointer;
}

.world-knockout-round-header::after {
	content: '+';
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1rem;
	font-weight: 900;
	color: var(--accent-deep);
}

.world-knockout-round-details[open] .world-knockout-round-header::after {
	content: '−';
}

.world-knockout-list {
	display: grid;
	gap: 8px;
	padding: 10px;
}

.world-knockout-item {
	padding: 10px 12px;
	border: 1px dashed var(--line);
	border-radius: 12px;
	background: rgba(31, 60, 136, 0.03);
}

.world-knockout-id {
	margin: 0 0 4px;
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--accent-deep);
}

.world-knockout-fixture {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	color: var(--ink);
}

.league-empty {
	padding: 18px 12px;
	color: var(--muted);
	font-style: italic;
}

.league-points {
	font-weight: 800;
	color: var(--accent-deep);
}

.admin-page {
	max-width: 1320px;
}

.admin-shell {
	display: grid;
	gap: 18px;
}

.admin-hero {
	padding: 22px 24px;
	border: 1px solid var(--line);
	border-radius: 22px;
	background: linear-gradient(135deg, rgba(31, 60, 136, 0.15), rgba(206, 17, 38, 0.14), rgba(0, 104, 71, 0.12));
	box-shadow: var(--shadow);
}

.admin-kicker {
	margin: 0 0 8px;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent-deep);
}

.admin-title {
	margin: 0;
	font-size: clamp(1.8rem, 4vw, 3rem);
	line-height: 0.95;
	text-transform: uppercase;
}

.admin-copy {
	max-width: 68ch;
	margin: 10px 0 0;
	color: var(--muted);
}

.admin-panel {
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: var(--panel);
	box-shadow: var(--shadow);
	overflow: hidden;
}

.admin-panel h2 {
	margin: 0 0 12px;
	font-size: 1.05rem;
	text-transform: uppercase;
}

.admin-table-wrap {
	overflow-x: auto;
}

.admin-table {
	width: 100%;
	min-width: 720px;
	border-collapse: collapse;
}

.admin-table th,
.admin-table td {
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid var(--line);
}

.admin-table th {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted);
	background: rgba(16, 35, 27, 0.04);
}

.admin-table tr:hover td {
	background: rgba(31, 60, 136, 0.04);
}

.pill {
	display: inline-flex;
	align-items: center;
	padding: 4px 9px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.pill-open {
	background: rgba(0, 104, 71, 0.14);
	color: var(--success);
}

.pill-locked {
	background: rgba(220, 38, 38, 0.12);
	color: var(--danger);
}

.action-btn {
	appearance: none;
	border: 0;
	border-radius: 999px;
	padding: 9px 14px;
	cursor: pointer;
	font-weight: 800;
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #fff;
	background: linear-gradient(135deg, var(--accent), var(--accent-alt));
	box-shadow: 0 8px 20px rgba(31, 60, 136, 0.2);
}

.action-btn.action-btn-secondary {
	background: linear-gradient(135deg, #1d4ed8, #0f766e);
}

.action-btn:hover {
	transform: translateY(-1px);
}

.action-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
	transform: none;
}

.live-scores-page {
	max-width: 1320px;
	display: grid;
	gap: 18px;
}

.live-scores-hero {
	background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(249, 115, 22, 0.14), rgba(15, 118, 110, 0.12));
}

.live-scores-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.live-scores-toolbar .status {
	font-size: 0.95rem;
	color: var(--muted);
	font-weight: 700;
}

.live-scores-toolbar .status.ok {
	color: var(--success);
}

.live-scores-toolbar .status.error {
	color: var(--danger);
}

.live-scores-summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
}

.live-scores-page .summary-card {
	padding: 16px 18px;
	border-radius: 18px;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.9);
	box-shadow: var(--shadow);
	position: relative;
	overflow: hidden;
}

.live-scores-page .summary-card::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 3px;
	background: var(--seam-ribbon);
	opacity: 0.85;
	pointer-events: none;
}

.live-scores-page .summary-label {
	display: block;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--muted);
	font-weight: 800;
}

.live-scores-page .summary-value {
	display: block;
	margin-top: 8px;
	font-size: 1.9rem;
	font-weight: 800;
	line-height: 1;
	color: var(--accent-deep);
}

.live-scores-page .groups {
	display: grid;
	gap: 16px;
}

.live-scores-page .matchday-group {
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: var(--panel);
	box-shadow: var(--shadow);
	position: relative;
	overflow: hidden;
}

.live-scores-page .matchday-group::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 3px;
	background: var(--seam-ribbon);
	opacity: 0.85;
	pointer-events: none;
}

.live-scores-page .group-header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 14px;
	margin-bottom: 12px;
}

.live-scores-page .group-title {
	margin: 0;
	font-size: 1.3rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.live-scores-page .group-subtitle {
	font-size: 0.84rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--muted);
}

.live-scores-page .matches-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 12px;
}

.live-scores-page .match-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 255, 0.9));
	min-height: 240px;
}

.live-scores-page .match-card.unmapped {
	border-style: dashed;
	background: linear-gradient(180deg, rgba(255, 247, 237, 0.96), rgba(255, 241, 234, 0.92));
}

.live-scores-page .match-topline,
.live-scores-page .badge-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.live-scores-page .match-teams {
	font-size: 1.02rem;
	font-weight: 800;
	line-height: 1.35;
}

.live-scores-page .scoreline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 90px;
	padding: 8px 10px;
	border-radius: 12px;
	font-size: 1.05rem;
	font-weight: 800;
	background: linear-gradient(135deg, var(--accent), var(--accent-alt));
	color: #ffffff;
}

.live-scores-page .scoreline.pending {
	background: rgba(30, 64, 175, 0.14);
	color: #1e3a8a;
}

.live-scores-page .badge {
	display: inline-flex;
	align-items: center;
	padding: 5px 9px;
	border-radius: 999px;
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.live-scores-page .badge.final {
	background: rgba(21, 128, 61, 0.14);
	color: var(--success);
}

.live-scores-page .badge.live {
	background: rgba(180, 83, 9, 0.14);
	color: var(--warning);
}

.live-scores-page .badge.unmapped {
	background: rgba(220, 38, 38, 0.12);
	color: var(--danger);
}

.live-scores-page .badge.mapped {
	background: rgba(31, 60, 136, 0.12);
	color: var(--accent-deep);
}

.live-scores-page .badge.stage {
	background: rgba(14, 165, 233, 0.12);
	color: #0369a1;
}

.live-scores-page .meta-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 12px;
	font-size: 0.9rem;
}

.live-scores-page .meta-block span {
	display: block;
}

.live-scores-page .meta-label {
	font-size: 0.68rem;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	font-weight: 800;
	color: var(--muted);
	margin-bottom: 2px;
}

.live-scores-page .meta-value {
	word-break: break-word;
	font-weight: 600;
}

.live-scores-page details {
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid rgba(21, 35, 65, 0.12);
}

.live-scores-page summary {
	cursor: pointer;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--accent-deep);
}

.live-scores-page .raw {
	margin: 10px 0 0;
	max-height: 240px;
	overflow: auto;
	padding: 12px;
	border-radius: 12px;
	border: 1px solid var(--line);
	background: rgba(239, 246, 255, 0.92);
	font-size: 12px;
	line-height: 1.4;
	color: #0f172a;
}

.live-scores-page .empty-state {
	padding: 22px;
	border-radius: 16px;
	border: 1px dashed var(--line);
	background: rgba(255, 255, 255, 0.84);
	color: var(--muted);
	text-align: center;
	font-weight: 600;
}

@media (max-width: 900px) {
	.site-nav-inner {
		padding: 10px 12px;
	}

	.top-nav-actions,
	.top-nav-links,
	.top-nav-select-wrap {
		width: 100%;
	}

	.top-nav-links {
		display: none;
	}

	.top-nav-select-wrap {
		display: block;
	}

	.top-nav-actions {
		justify-content: flex-end;
	}

	main {
		padding: 18px 12px 28px;
	}

	.group-title {
		font-size: 1.05rem;
	}

	.admin-hero,
	.admin-panel {
		padding: 16px;
	}

	.live-scores-toolbar {
		padding: 14px;
	}

	.live-scores-toolbar .action-btn {
		width: 100%;
	}

	.live-scores-page .meta-grid {
		grid-template-columns: 1fr;
	}

	.world-result-item {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.world-result-score,
	.world-result-kickoff {
		text-align: left;
	}
}

@media (max-width: 760px) {
	.table-wrap,
	.admin-table-wrap,
	.world-group .admin-table-wrap {
		overflow-x: hidden;
	}

	.fixtures-table,
	.admin-table,
	.world-standings-table {
		width: 100%;
		min-width: 0;
		table-layout: fixed;
		border-collapse: collapse;
		border-spacing: 0;
	}

	.fixtures-table th,
	.fixtures-table td,
	.admin-table th,
	.admin-table td,
	.world-standings-table th,
	.world-standings-table td {
		padding: 7px 4px;
		font-size: 0.72rem;
		text-align: center;
	}

	.fixtures-table th,
	.admin-table th,
	.world-standings-table th {
		letter-spacing: 0.03em;
	}

	.fixtures-table th:nth-child(5),
	.fixtures-table th:nth-child(6) {
		position: relative;
		white-space: normal;
		line-height: 0;
		word-break: break-word;
		overflow-wrap: anywhere;
		min-width: 0;
		font-size: 0;
	}

	.fixtures-table th:nth-child(5)::before,
	.fixtures-table th:nth-child(6)::before {
		display: block;
		line-height: 1.05;
		font-size: 0.66rem;
		font-weight: 800;
		text-transform: uppercase;
		white-space: pre-line;
	}

	.fixtures-table th:nth-child(5)::before {
		content: 'Pred.\A Home Score';
	}

	.fixtures-table th:nth-child(6)::before {
		content: 'Pred.\A Away Score';
	}

	.fixtures-table th:nth-child(2),
	.fixtures-table td:nth-child(2),
	.fixtures-table th:nth-child(3),
	.fixtures-table td:nth-child(3),
	.admin-table th:nth-child(2),
	.admin-table td:nth-child(2),
	.world-standings-table th:nth-child(2),
	.world-standings-table td:nth-child(2) {
		text-align: left;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.fixtures-table th:nth-child(2),
	.fixtures-table td:nth-child(2),
	.fixtures-table th:nth-child(3),
	.fixtures-table td:nth-child(3) {
		width: 16%;
	}

	.fixtures-table th:nth-child(4),
	.fixtures-table td:nth-child(4) {
		font-size: 0.64rem;
		line-height: 1.2;
		white-space: normal;
		width: 18%;
	}

	/* Mobile-only simplification: hide Actual score and Points columns. */
	.fixtures-table th:nth-child(7),
	.fixtures-table td:nth-child(7),
	.fixtures-table th:nth-child(8),
	.fixtures-table td:nth-child(8) {
		display: none;
	}

	.admin-table th:nth-child(2),
	.admin-table td:nth-child(2),
	.world-standings-table th:nth-child(2),
	.world-standings-table td:nth-child(2) {
		width: 34%;
	}

	.world-standings-table th:nth-child(1),
	.world-standings-table td:nth-child(1) {
		width: 10%;
	}

	.world-standings-table th:nth-child(10),
	.world-standings-table td:nth-child(10) {
		width: 11%;
	}

	.team-cell {
		white-space: normal;
	}

	.team-wrap {
		display: flex;
		gap: 4px;
		min-width: 0;
	}

	.team-name {
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.score-input {
		width: 100%;
		max-width: 44px;
		padding: 6px 4px;
		text-align: center;
	}

	.group-actions {
		padding: 10px 12px 12px;
	}

	.submit-group-btn {
		padding: 8px 12px;
		font-size: 0.74rem;
		letter-spacing: 0.03em;
	}

	.league-footnote {
		margin-top: 10px;
		font-size: 0.68rem;
		line-height: 1.3;
		opacity: 0.75;
	}

	/* Admin predictions mobile tuning */
	.admin-page .admin-table-wrap {
		overflow-x: auto;
	}

	#matches-table {
		table-layout: fixed;
	}

	#matches-table th:nth-child(1),
	#matches-table td:nth-child(1) {
		width: 30%;
	}

	#matches-table th:nth-child(2),
	#matches-table td:nth-child(2),
	#matches-table th:nth-child(3),
	#matches-table td:nth-child(3),
	#matches-table th:nth-child(4),
	#matches-table td:nth-child(4) {
		width: 11%;
		text-align: center;
	}

	#matches-table th:nth-child(2) {
		font-size: 0.62rem;
		line-height: 1.05;
	}

	#matches-table th:nth-child(5),
	#matches-table td:nth-child(5) {
		width: 26%;
	}

	#matches-table td:nth-child(5) {
		white-space: normal;
	}

	#predictions-table {
		table-layout: auto;
	}

	#predictions-table th,
	#predictions-table td {
		white-space: nowrap;
	}

	#predictions-table th:nth-child(2),
	#predictions-table td:nth-child(2),
	#predictions-table th:nth-child(8),
	#predictions-table td:nth-child(8) {
		display: none;
	}

	.admin-page .action-btn {
		padding: 6px 8px;
		font-size: 0.67rem;
		letter-spacing: 0.02em;
		border-radius: 10px;
		min-height: 30px;
	}

	#matches-table .action-btn + .action-btn {
		margin-left: 4px !important;
	}
}
