@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
   opacity: 1;
}

*,
*:after,
*:before {
	box-sizing: border-box;
}

:root {
	--color-text-primary: #1c2a38;
	--color-text-secondary: #8A8F98;
	--color-text-alert: #d72641;
	--color-text-icon: #dbdade;
	--color-bg-primary: #fff;
	--color-bg-secondary: #f3f5f9;
	--color-bg-alert: #fdeaec;
	--color-theme-primary: #623ce6;
}

a, a:hover {
	text-decoration: none;
	color: #212529;
}

@media (max-width: 978px) {
    .container {
      padding:0;
      margin:0;
    }

    body {
      padding:0;
    }

    .navbar-fixed-top, .navbar-fixed-bottom, .navbar-static-top {
      margin-left: 0;
      margin-right: 0;
      margin-bottom:0;
    }
}


.container-fluid {
	margin-right: auto;
	margin-left: auto;
	max-width: 1600px; /* or 950px */
}

h1, h3 {
	margin-top: 20px;
	margin-bottom: 20px;
}

.page-header-banner {
	position: relative;
	margin: 24px 0 28px;
	padding: 1rem 1.35rem 1.1rem 1.5rem;
	border-radius: 18px;
	border: 1px solid rgba(98, 60, 230, 0.08);
	background:
		radial-gradient(circle at top right, rgba(98, 60, 230, 0.08), transparent 34%),
		linear-gradient(135deg, rgba(98, 60, 230, 0.05), rgba(255, 255, 255, 0.98) 52%),
		var(--color-bg-primary);
	box-shadow: 0 10px 24px rgba(28, 42, 56, 0.05);
	overflow: hidden;
}

.page-header-banner__layout {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem 1.5rem;
}

.page-header-banner__main {
	flex: 1 1 auto;
	min-width: 0;
}

.page-header-banner__controls {
	flex: 0 1 auto;
	display: flex;
	justify-content: flex-end;
	align-items: flex-start;
	min-width: min(100%, 360px);
}

.page-header-banner::before {
	content: "";
	position: absolute;
	top: 12px;
	bottom: 12px;
	left: 0;
	width: 5px;
	border-radius: 0 999px 999px 0;
	background: linear-gradient(180deg, rgba(98, 60, 230, 0.75), rgba(42, 167, 255, 0.7));
}

.page-header-banner::after {
	content: "";
	position: absolute;
	right: 24px;
	top: 18px;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	border: 1px solid rgba(98, 60, 230, 0.08);
	background: rgba(255, 255, 255, 0.32);
}

.page-header-banner__eyebrow {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.35rem;
	padding-left: 0.05rem;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--color-theme-primary);
	z-index: 1;
	opacity: 0.82;
}

.page-header-banner__eyebrow::before {
	content: "";
	display: inline-block;
	width: 22px;
	height: 2px;
	border-radius: 999px;
	background: currentColor;
	opacity: 0.4;
}

.page-header-title {
	position: relative;
	margin: 0;
	max-width: none;
	font-size: clamp(1.85rem, 2.6vw, 2.45rem);
	font-weight: 650;
	letter-spacing: -0.01em;
	line-height: 1.08;
	color: var(--color-text-primary);
	text-wrap: balance;
	z-index: 1;
}

.page-header-title::after {
	content: "";
	display: block;
	width: 54px;
	height: 3px;
	margin-top: 0.6rem;
	border-radius: 999px;
	background: linear-gradient(90deg, rgba(98, 60, 230, 0.85), rgba(42, 167, 255, 0.6));
}

.page-header-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.7rem;
	width: 100%;
	padding: 0.85rem 0.95rem;
	border-radius: 14px;
	border: 1px solid rgba(28, 42, 56, 0.08);
	background: rgba(255, 255, 255, 0.82);
	box-shadow: 0 12px 24px rgba(28, 42, 56, 0.06);
	backdrop-filter: blur(3px);
}

.page-header-toolbar form,
.page-header-toolbar .form-inline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.7rem;
	margin: 0;
	width: 100%;
}

.page-header-toolbar .form-group {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin-bottom: 0;
}

.page-header-toolbar label,
.page-header-toolbar .form-label {
	margin: 0;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #667585;
	white-space: nowrap;
}

.page-header-toolbar select.form-control,
.page-header-toolbar select.form-select {
	min-width: 210px;
	padding: 0.45rem 0.8rem;
	border-radius: 12px;
	border: 1px solid rgba(28, 42, 56, 0.14);
	background-color: #fff;
	box-shadow: none;
}

.page-header-toolbar .btn,
.page-header-toolbar .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	border-radius: 999px;
	font-weight: 700;
	white-space: nowrap;
}

.page-header-toolbar__group {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.page-header-toolbar__group--week-nav {
	flex-wrap: nowrap;
}

.page-header-toolbar__week {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.45rem 0.85rem;
	border-radius: 999px;
	background: rgba(98, 60, 230, 0.08);
	color: #4d2cb8;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

@media screen and (max-width:767px) {
	h1 {
		font-size: 20px;
		font-weight: 600;
	}

	.page-header-banner {
		margin: 16px 0 22px;
		padding: 0.85rem 0.95rem 0.9rem 1.05rem;
		border-radius: 16px;
	}

	.page-header-banner__layout {
		flex-direction: column;
		align-items: stretch;
		gap: 0.9rem;
	}

	.page-header-banner__controls {
		min-width: 0;
		width: 100%;
	}

	.page-header-banner::before {
		top: 10px;
		bottom: 10px;
		width: 4px;
	}

	.page-header-banner::after {
		right: -6px;
		top: 18px;
		width: 38px;
		height: 38px;
	}

	.page-header-banner__eyebrow {
		margin-bottom: 0.3rem;
		font-size: 0.58rem;
		letter-spacing: 0.14em;
	}

	.page-header-title {
		font-size: 1.4rem;
		font-weight: 700;
		line-height: 1.12;
	}

	.page-header-title::after {
		width: 44px;
		margin-top: 0.45rem;
	}

	.page-header-toolbar {
		padding: 0.75rem 0.8rem;
		gap: 0.6rem;
	}

	.page-header-toolbar form,
	.page-header-toolbar .form-inline {
		justify-content: stretch;
	}

	.page-header-toolbar .form-group {
		width: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 0.45rem;
	}

	.page-header-toolbar select.form-control,
	.page-header-toolbar select.form-select {
		width: 100%;
		min-width: 0;
	}

	.page-header-toolbar .btn,
	.page-header-toolbar .button,
	.page-header-toolbar__group {
		width: 100%;
	}

	.page-header-toolbar__group {
		justify-content: stretch;
	}

	.page-header-toolbar__group > * {
		flex: 1 1 auto;
	}

	.page-header-toolbar__week {
		min-width: 0;
	}

	.page-header-toolbar__group--week-nav {
		width: 100%;
		flex-wrap: nowrap;
		justify-content: stretch;
	}

	.page-header-toolbar__group--week-nav > * {
		width: 0;
		min-width: 0;
		flex: 1 1 0;
	}

	.page-header-toolbar__group--week-nav .btn,
	.page-header-toolbar__group--week-nav .button {
		width: 0;
		min-width: 0;
		flex: 1 1 0;
	}

	.page-header-toolbar__group--week-nav .page-header-toolbar__week {
		flex: 1 1 0;
	}
}

.footer {
    margin-top: 50px;
}

button,
input,
select,
textarea {
	font: inherit;
}

.bobby-button {
	display: inline;
	padding: 5px 12px;
}
@media screen and (max-width:767px) {
	.bobby-button {
		display: inline;
		padding: 2px 5px;
	}
}


img {
	display: inline;
}

strong {
	font-weight: 600;
}


.table td,th,tr {
	vertical-align: middle  !important;
}
@media screen and (max-width:767px) {
	.table td,th,tr {
		vertical-align: middle  !important;
		padding: 0px 2px;
	}
}


.page_controls {
	text-align: right;
	margin-top: 10px;
	margin-bottom: 20px;
}

.page_title {
	margin-top: 25px;
	font-size: 28px;
	font-weight: 700;
}

.page_text {
	margin-left: 24px;
	margin-right: 24px;
	margin-bottom: 12px;
	font-size: 18px;
	font-weight: 500;
}
@media screen and (max-width:767px) {
	.page_text {
		margin-left: 10px;
		margin-right: 10px;
		margin-bottom: 8px;
		font-size: 14px;
		font-weight: 300;
	}
}

.the_week {
	margin-left: 15px;
	margin-right: 15px;
	font-size: 22px;
	font-weight: 500;
}
@media screen and (max-width:767px) {
	.the_week {
		margin-left: 15px;
		margin-right: 15px;
		font-size: 16px;
		font-weight: 500;
	}
}


.active-player {
	color: var(--color-text-alert)  !important;
	font-weight: 600  !important;
}
.active-player-header {
	color: var(--color-text-alert)  !important;
}


.match {
	background-color: var(--color-bg-secondary);
	display: flex;
	flex-direction: column;
	border-radius: 10px;
	margin-top: 5px;
	box-shadow: 0 0 2px 0 rgba(#303030, 0.1), 0 4px 4px 0 rgba(#303030, 0.1);
	position: relative;
}


.motw {
	background-color: gold;
}


.match-tournament {
	display: flex;
	justify-content: center;
	align-items: center;
	font-weight: 600;
	border-radius: 0%;
	img {
		width: 40px;
		margin-right: 12px;
	}
}
@media screen and (max-width:767px) {
	.match-tournament {
		display: flex;
		justify-content: center;
		align-items: center;
		font-weight: 600;
		border-radius: 0%;
		img {
			width: 20px;
			margin-right: 12px;
		}
	}
}


.match-date {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-text-secondary);
	strong {
		color: var(--color-text-primary);
	}
}
@media screen and (max-width:767px) {
	.match-date {
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 12px;
		font-weight: 600;
		color: var(--color-text-icon);
		strong {
			color: var(--color-text-primary);
		}
	}
}


.match-actions {
	display: flex;
	margin-left: auto;
}

.btn-icon {
	border: 0;
	background-color: transparent;
	color: var(--color-text-icon);
	display: flex;
	align-items: center;
	justify-content: center;
}

.match-content {
	display: flex;
	position: relative;
}

.fixture-column {
	padding: 5px;
	display: flex;
}

.team {
	display: flex;
	align-items: center;
}

.team-logo {
	height: 30px;
	width: 30px;
	border-radius: 50%;
	background-color: var(--color-bg-primary);
	box-shadow: 0 4px 4px 0 rgba(#303030, 0.15),
		0 0 0 15px var(--color-bg-secondary);
}
@media screen and (max-width:767px) {
	.team-logo {
		height: 20px;
		width: 20px;
		border-radius: 50%;
		background-color: var(--color-bg-primary);
		box-shadow: 0 4px 4px 0 rgba(#303030, 0.15),
			0 0 0 15px var(--color-bg-secondary);
	}
}

.team-name {
	font-size: 15px;
	font-weight: 600;
}
@media screen and (max-width:767px) {
	.team-name {
		font-size: 12px;
		font-weight: 600;
	}
}

.team-home {
	text-align: right;
	justify-content: right;
}

.team-away {
	text-align: left;
	justify-content: left;
}


.home-team-name {
	text-align: right;
	margin-right: 24px;
}
@media screen and (max-width:767px) {
	.home-team-name {
		text-align: right;
		margin-right: 10px;
	}
}


.away-team-name {
	text-align: left;
	margin-left: 24px;
}
@media screen and (max-width:767px) {
	.away-team-name {
		text-align: left;
		margin-left: 10px;
	}
}


.fixture-select-button {
	margin-left: 10px;
	font-size: 12px;
}
@media screen and (max-width:767px) {
	.fixture-select-button {
		margin-left: 2px;
		font-size: 10px;
	}
}


.match-details {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.score_entry {
	width: 50px !important;
	padding: 5px;
}
@media screen and (max-width:767px) {
	.score_entry {
		width: 40px !important;
		padding: 2px;
	}
}

.fixture-center {
	justify-content: center;
	align-items: center;
}

.match-score {
	margin-top: 2px;
	display: flex;
	align-items: center;
}

.match-score-number {
	font-size: 22px;
	font-weight: 600;
	line-height: 1;
	&--leading {
		color: var(--color-theme-primary);
	}
}

.match-score-divider {
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
	color: var(--color-text-icon);
	margin-left: 10px;
	margin-right: 10px;
}

.player-score {
	margin-top: 2px;
	text-align: center;
}

.player-score-number {
	font-size: 20px;
	font-weight: 600;
	line-height: 1;
	text-align: center;
	color: var(--color-theme-primary);
}
@media screen and (max-width:767px) {
	.player-score-number {
		font-size: 14px;
		font-weight: 600;
		line-height: 1;
		text-align: center;
		color: var(--color-theme-primary);
	}
}

.player-blind {
	color: #DF9443;
	font-size: 15px;
	font-weight: 600;
	display: flex;
	justify-content: center;
	text-align: center;
	align-items: center;
}
@media screen and (max-width:767px) {
	.player-blind {
		color: #DF9443;
		font-size: 12px;
		font-weight: 600;
		display: flex;
		justify-content: center;
		text-align: center;
		align-items: center;
	}
}

.last-updated, .forecast_deadline {
	color: #da43df;
	font-weight: 600;
}



.scorecard-header {
	text-align: center;
}
@media screen and (max-width:767px) {
	.scorecard-header {
		text-align: center;
		font-size: 12px;
	}
}

.scorecard-league-logo {
	display: inline;
	height: 20px;
	opacity: 0.5;
	border-top: 0;
}

.scorecard-teams {
	text-align: center;
}
@media screen and (max-width:767px) {
	.scorecard-teams {
		text-align: center;
		font-size: 12px;
	}
}

.scorecard-team-logo {
	display: inline;
	height: 20px;
	width: 20px;
	border-radius: 50%;
	background-color: var(--color-bg-primary);
	box-shadow: 0 4px 4px 0 rgba(#303030, 0.15),
		0 0 0 15px var(--color-bg-secondary);
}

.scorecard-team-name {
	justify-content: center;
	text-align: center;
}

.scorecard-team-code {
	justify-content: center;
	text-align: center;
	padding-left: 3px;
}


.scorecard-status {
	color: #DF9443;
	font-size: 12px;
	font-weight: 600;
	text-align: left;
	align-items: left;
}

.scorecard-result {
	align-items: center;
	text-align: center;
}


.scorecard-result-number {
	font-size: 20px;
	font-weight: 600;
	line-height: 1;
}
@media screen and (max-width:767px) {
	.scorecard-result-number {
		font-size: 14px;
		font-weight: 600;
		line-height: 1;
	}
}

.scorecard-entry {
	padding: 0.3rem;
}
@media screen and (max-width:767px) {
	.scorecard-entry {
		padding: 0.1rem !important;
	}
}

.scorecard-score {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.scorecard-score-number {
	font-size: 18px;
	font-weight: 300;
	line-height: 1;
}
@media screen and (max-width:767px) {
	.scorecard-score-number {
		font-size: 14px;
		font-weight: 300;
		line-height: 1;
	}
}

.scorecard-score-placeholder {
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	color: var(--color-text-icon);
}
@media screen and (max-width:767px) {
	.scorecard-score-placeholder {
		font-size: 15px;
		font-weight: 700;
		line-height: 1;
		color: var(--color-text-icon);
	}
}

.scorecard-score-divider {
	font-size: 20px;
	font-weight: 500;
	line-height: 1;
	margin-left: 5px;
	margin-right: 5px;
}
@media screen and (max-width:767px) {
	.scorecard-score-divider {
		font-size: 14px;
		font-weight: 500;
		line-height: 1;
		margin-left: 3px;
		margin-right: 3px;
	}
}

.scorecard-vs {
	font-weight: 700;
}

.scorecard-points-number {
	font-size: 10px;
	font-weight: 100;
	line-height: 1;
	margin-left: 5px;
	&--leading {
		color: var(--color-theme-primary);
	}
}


.scorecard-stat {
	margin-left:100px;
	font-size: 20px;
}
@media screen and (max-width:767px) {
	.scorecard-stat {
		margin-left:30px;
		font-size: 15px;
	}
}

.scorecard-stat-name {
	font-weight: 600;
}

.scorecard-stat-value {
	font-weight: 300;
}



.league-header {
	font-size: 20px;
	font-weight: 600;
	text-align: center;
	border-bottom: 2px solid rgba(#303030, 0.1);
	padding: 20px;
}
@media screen and (max-width:767px) {
	.league-header {
		font-size: 12px;
		font-weight: 600;
		text-align: center;
		border-bottom: 2px solid rgba(#303030, 0.1);
		padding: 20px;
	}
}

.league-value {
	font-size: 16px;
	font-weight: 500;
	text-align: center;
}
@media screen and (max-width:767px) {
	.league-value {
		font-size: 12px;
		font-weight: 400;
		text-align: center;
	}
}

.league-up {
	color: #36c213;
	font-size: 12px;
	font-weight: 800;
	text-align: left;
	align-items: left;
}

.league-down {
	color: #ce1f1f;
	font-size: 12px;
	font-weight: 800;
	text-align: left;
	align-items: left;
}



.table-sortable {
	position: relative;
}
.table-sortable .sortable-placeholder {
	height: 30px;
}
.table-sortable .sortable-placeholder:after {
	position: absolute;
	z-index: 10;
	content: " ";
	height: 37px;
	background: #f9f9f9;
	left: 0;
	right: 0;
}
.picker_order {
	width: 300px;
}

/* Player Stats Page Styles */
.stats-container {
    padding: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--color-background-secondary);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: var(--color-text-secondary);
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: var(--color-text-primary);
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-container {
    background: var(--color-background-secondary);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chart-container h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: var(--color-text-primary);
}

.stats-table-container {
    background: var(--color-background-secondary);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stats-table-container h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: var(--color-text-primary);
}

@media screen and (max-width: 767px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-card h3 {
        font-size: 14px;
    }

    .stat-value {
        font-size: 20px;
    }

    .chart-container h3,
    .stats-table-container h3 {
        font-size: 16px;
    }
}

/* Previous Matches Container Styles */
.previous-matches-container {
    background: white;
    border-bottom: 1px solid #ddd;
    padding: 20px;
    margin-top: 5px;
}

.previous-matches-header {
    margin-bottom: 15px;
}

.previous-matches-header h4 {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.previous-matches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.previous-matches-grid--developer {
    grid-template-columns: repeat(4, 1fr);
}

.match-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.match-card h5 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 12px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.match-card h5 .card-title-text {
    min-width: 0;
}

.match-card h5 .card-standing-badge {
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--color-text-secondary);
    background-color: #f5f5f5;
}

.match-card h5 .card-standing-badge--higher {
    color: #2e7d32;
    background-color: #e8f5e9;
    font-weight: 600;
}

.match-card h5 .card-standing-badge--lower {
    color: #c62828;
    background-color: #ffebee;
}

.match-card h5 .card-standing-badge--same {
    color: #ef6c00;
    background-color: #fff3e0;
    font-weight: 600;
}

.match-list {
    max-height: 300px;
    overflow-y: auto;
}

.odds-empty-state {
    margin: 0;
    color: #6c757d;
    font-size: 12px;
    line-height: 1.5;
}

.odds-bookmaker {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px solid #eceff3;
}

.odds-bookmaker:first-of-type {
    padding-top: 0;
}

.odds-bookmaker:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.odds-bookmaker-name {
    flex: 0 0 92px;
    font-size: 13px;
    font-weight: 700;
    color: #2f3640;
    line-height: 1.2;
}

.odds-bookmaker-favourite {
    flex: 0 0 68px;
    font-size: 10px;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: right;
    line-height: 1.2;
}

.odds-outcome-grid {
    display: inline-flex;
    flex: 1 1 auto;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}

.odds-outcome {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 6px;
    border-radius: 999px;
    border: 1px solid transparent;
    line-height: 1.1;
    white-space: nowrap;
}

.odds-outcome-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.odds-outcome-value {
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.odds-outcome--favorite {
    background-color: #e8f5e9;
    border-color: #cdebd3;
    color: #2e7d32;
}

.odds-outcome--contender {
    background-color: #fff3e0;
    border-color: #ffe0b2;
    color: #ef6c00;
}

.odds-outcome--outsider {
    background-color: #ffebee;
    border-color: #ffcdd2;
    color: #c62828;
}

.previous-match {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.previous-match:last-child {
    border-bottom: none;
}

.previous-match .match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    gap: 8px;
}

.previous-match .match-date {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    min-width: 70px;
}

.previous-match .home-team {
    flex: 1;
    text-align: right;
    padding-right: 8px;
    color: #666;
}

.previous-match .away-team {
    flex: 1;
    text-align: left;
    padding-left: 8px;
    color: #666;
}

.previous-match .score {
    font-weight: bold;
    color: #333;
    padding: 0 8px;
    min-width: 45px;
    text-align: center;
}

.previous-match .result {
    font-weight: 600;
    font-size: 12px;
    min-width: 25px;
    text-align: center;
    padding: 2px 6px;
    border-radius: 4px;
}

.previous-match .result-win,
.previous-match .home-team.result-win,
.previous-match .away-team.result-win {
    color: #2e7d32;
}

.previous-match .result-loss,
.previous-match .home-team.result-loss,
.previous-match .away-team.result-loss {
    color: #c62828;
}

.previous-match .result-draw,
.previous-match .home-team.result-draw,
.previous-match .away-team.result-draw {
    color: #ef6c00;
}

.previous-match .result.result-win {
    background-color: #e8f5e9;
}

.previous-match .result.result-loss {
    background-color: #ffebee;
}

.previous-match .result.result-draw {
    background-color: #fff3e0;
}

/* Highlight team names in their respective cards */
.previous-match .highlighted-team {
    color: #623ce6;
    font-weight: 600;
}

@media screen and (max-width: 991px) {
    .previous-matches-grid {
        grid-template-columns: 1fr;
    }
    
    .match-card {
        margin-bottom: 15px;
    }
}

@media screen and (max-width: 1399px) and (min-width: 992px) {
    .previous-matches-grid--developer {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 575px) {
    .odds-bookmaker {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .odds-bookmaker-name,
    .odds-bookmaker-favourite {
        flex: 0 0 auto;
    }

    .odds-bookmaker-favourite {
        text-align: left;
        margin-left: auto;
    }

    .odds-outcome-grid {
        flex: 1 0 100%;
        justify-content: flex-start;
        gap: 5px;
        order: 3;
    }
}

/* Remove old popup styles */
.previous-matches-popup {
    display: none;
}

/* Match Statistics Page Styles */
.season-selector {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.season-selector select {
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
}

.season-selector label {
    font-weight: 500;
    color: #333;
    margin-right: 10px;
}

/* Responsive adjustments for season selector */
@media (max-width: 768px) {
    .season-selector .form-inline {
        flex-direction: column;
        align-items: stretch;
    }
    
    .season-selector select {
        margin-top: 10px;
        width: 100%;
    }
}

/* Player & Season Stats Refresh */
.stats-page {
    --stats-accent: #1d6b63;
    --stats-accent-strong: #104944;
    --stats-accent-soft: rgba(29, 107, 99, 0.12);
    --stats-highlight: #d77a44;
    --stats-card-min: 230px;
    padding: clamp(1rem, 2.4vw, 1.75rem);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(215, 122, 68, 0.1), transparent 24%),
        radial-gradient(circle at top left, rgba(29, 107, 99, 0.1), transparent 28%);
}

.stats-page--season {
    --stats-accent: #245f9b;
    --stats-accent-strong: #163d66;
    --stats-accent-soft: rgba(36, 95, 155, 0.12);
    --stats-highlight: #d59733;
    --stats-card-min: 280px;
}

.stats-page .season-selector {
    padding: 1rem 1.15rem;
    border: 1px solid rgba(28, 42, 56, 0.08);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 251, 0.96));
    box-shadow: 0 14px 30px rgba(28, 42, 56, 0.06);
}

.stats-page .season-selector .form-inline {
    gap: 0.85rem;
}

.stats-page .season-selector label {
    margin-right: 0;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #667585;
}

.stats-page .season-selector select {
    min-width: 240px;
    padding: 0.7rem 0.95rem;
    border: 1px solid rgba(28, 42, 56, 0.14);
    border-radius: 12px;
    box-shadow: none;
}

.stats-page .stats-section-title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 1.1rem;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--stats-accent-strong);
}

.stats-page .stats-section-title::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--stats-accent), var(--stats-highlight));
    box-shadow: 0 8px 18px rgba(28, 42, 56, 0.12);
}

.stats-page .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--stats-card-min), 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.stats-page .stat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.3rem 1.35rem;
    border: 1px solid rgba(28, 42, 56, 0.08);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 248, 250, 0.96));
    box-shadow: 0 14px 28px rgba(28, 42, 56, 0.06);
    overflow: hidden;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stats-page .stat-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--stats-accent), var(--stats-highlight));
}

.stats-page .stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(28, 42, 56, 0.1);
    border-color: rgba(28, 42, 56, 0.12);
}

.stats-page .stat-card h3 {
    margin: 0 0 0.8rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7785;
}

.stats-page .stat-value {
    margin: 0;
    font-size: clamp(1.55rem, 2.7vw, 2.05rem);
    line-height: 1.05;
    font-weight: 750;
    color: var(--stats-accent-strong);
}

.stats-page .stat-subtitle,
.stats-page .stat-subtext {
    margin: 0.6rem 0 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #5f6c7b;
}

.stats-page .stat-card .table-responsive {
    flex: 1;
    margin-top: 0.2rem;
    border-radius: 14px;
    overflow: hidden;
}

.stats-page .charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.stats-page .chart-container,
.stats-page .stats-table-container,
.stats-page .card.shadow-sm {
    border: 1px solid rgba(28, 42, 56, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 30px rgba(28, 42, 56, 0.06);
}

.stats-page .chart-container,
.stats-page .stats-table-container {
    padding: 1.15rem 1.25rem;
}

.stats-page .chart-container {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.stats-page .chart-container h3,
.stats-page .stats-table-container h3,
.stats-page .card.shadow-sm .card-title {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--stats-accent-strong);
    letter-spacing: 0.01em;
    text-align: left;
}

.stats-page .chart-shell,
.stats-page .position-history-shell {
    position: relative;
    width: 100%;
}

.stats-page .chart-shell {
    height: clamp(320px, 36vw, 420px);
}

.stats-page .position-history-shell {
    height: clamp(460px, 55vw, 700px);
    min-height: 460px;
}

.stats-page .chart-container canvas,
.stats-page .card.shadow-sm canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
}

.stats-page .stats-table-container .table-responsive {
    border-radius: 14px;
    overflow: hidden;
}

.stats-page .table {
    margin-bottom: 0;
}

.stats-page .table thead th {
    border-top: none;
    border-bottom: 1px solid #e7edf2;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #758291;
    background: #f7f9fb;
}

.stats-page .table tbody td {
    color: #2d3742;
    border-color: #edf1f4;
    vertical-align: middle;
}

.stats-page .extra-prediction-card {
    align-items: center;
    text-align: center;
}

.stats-page .extra-prediction-meta {
    margin-bottom: 0.45rem;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7a8694;
}

.stats-page .extra-team-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-bottom: 0.45rem;
}

.stats-page .extra-team-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.stats-page .extra-team-label {
    font-weight: 700;
    color: #24313d;
}

.stats-page .extra-result-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.3rem;
    padding: 0.35rem 0.72rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.stats-page .extra-result-pill--correct {
    background: rgba(31, 122, 54, 0.12);
    color: #1f7a36;
}

.stats-page .extra-result-pill--incorrect {
    background: rgba(198, 40, 40, 0.12);
    color: #c62828;
}

.stats-page .extra-result-pill--pending {
    background: rgba(95, 108, 123, 0.12);
    color: #5f6c7b;
}

.stats-page .extra-team-display {
    gap: 0.75rem;
}

.stats-page .extra-team-badge {
    width: 38px;
    height: 38px;
    margin-right: 0;
    border-radius: 10px;
}

.stats-page .extra-team-name {
    font-size: 1.25rem;
    color: var(--stats-accent-strong);
}

.stats-page .extra-current-status {
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    color: #7a8694;
}

.stats-page .card.shadow-sm {
    overflow: hidden;
}

.stats-page .card-body.position-history-container {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.3rem;
}

.stats-page .card-body.position-history-container .card-title {
    margin-bottom: 0;
}

@media screen and (max-width: 767px) {
    .stats-page {
        padding: 0.85rem;
        border-radius: 18px;
    }

    .stats-page .season-selector {
        padding: 0.85rem 0.9rem;
    }

    .stats-page .season-selector .form-inline {
        align-items: stretch;
    }

    .stats-page .season-selector select {
        min-width: 0;
        width: 100%;
    }

    .stats-page .stats-grid,
    .stats-page .charts-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .stats-page .stat-card,
    .stats-page .chart-container,
    .stats-page .stats-table-container {
        padding: 1rem;
    }

    .stats-page .stats-section-title {
        font-size: 1rem;
        margin-bottom: 0.9rem;
    }

    .stats-page .card-body.position-history-container {
        min-height: 0;
        padding: 1rem;
    }

    .stats-page .chart-shell {
        height: 300px;
    }

    .stats-page .position-history-shell {
        height: 440px;
        min-height: 440px;
    }
}

/* Extra Predictions Styling */
.extra-predictions {
    max-width: 600px;
    margin: 20px auto;
}

.extra-prediction {
    background: var(--color-bg-secondary);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.extra-prediction .prediction-label h4 {
    color: var(--color-text-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.extra-prediction .prediction-input select {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    background-color: white;
    transition: border-color 0.3s ease;
}

.extra-prediction .prediction-input select:focus {
    border-color: var(--color-theme-primary);
    outline: none;
}

.extra-predictions-submitted {
    max-width: 600px;
    margin: 20px auto;
    background: var(--color-bg-secondary);
    border-radius: 8px;
    padding: 20px;
}

.extra-predictions-submitted h4 {
    color: var(--color-text-primary);
    margin-bottom: 15px;
    text-align: center;
}

.submitted-prediction {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    border-left: 4px solid var(--color-theme-primary);
}

.submitted-prediction strong {
    color: var(--color-text-primary);
    display: block;
    margin-bottom: 2px;
}

.submitted-prediction-label {
    margin-bottom: 8px;
}

.submitted-prediction-label small {
    display: block;
}

.submitted-team {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: var(--color-text-primary);
}

.team-logo-submitted {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    object-fit: contain;
}

.page_controls {
    text-align: center;
    margin-top: 30px;
}

/* Custom Dropdown with Team Logos */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-selected {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    background-color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.dropdown-selected:hover,
.custom-dropdown.open .dropdown-selected {
    border-color: var(--color-theme-primary);
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 12px;
    color: #666;
}

.custom-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--color-theme-primary);
    border-top: none;
    border-radius: 0 0 5px 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.custom-dropdown.open .dropdown-options {
    display: block;
}

.dropdown-option {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-option:hover {
    background-color: var(--color-bg-secondary);
}

.dropdown-option:last-child {
    border-bottom: none;
}

.team-logo-dropdown {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    object-fit: contain;
}

.team-logo-selected {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    object-fit: contain;
}

.selected-text {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

/* Scrollbar styling for dropdown */
.dropdown-options::-webkit-scrollbar {
    width: 6px;
}

.dropdown-options::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dropdown-options::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.dropdown-options::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Extras Status Page Styling */
.current-positions {
    background: var(--color-bg-secondary);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.current-positions h4 {
    color: var(--color-text-primary);
    margin-bottom: 15px;
    text-align: center;
}

.position-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.position-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: white;
    border-radius: 5px;
    border-left: 4px solid var(--color-theme-primary);
}

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

.team-logo-small {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.team-points {
    color: var(--color-text-secondary);
    font-size: 14px;
}

.extras-status-container {
    margin: 30px 0;
}

.prediction-type-section {
    margin-bottom: 40px;
}

.prediction-type-title {
    color: var(--color-text-primary);
    border-bottom: 2px solid var(--color-theme-primary);
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.predictions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.prediction-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #ddd;
    transition: all 0.3s ease;
}

.prediction-card.correct-prediction {
    border-left-color: #28a745;
    background: #f8fff9;
}

.prediction-card.incorrect-prediction {
    border-left-color: #dc3545;
    background: #fff8f8;
}

.prediction-card.unknown-status {
    border-left-color: #ffc107;
    background: #fffef7;
}

.prediction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.user-name {
    font-weight: 600;
    color: var(--color-text-primary);
}

.status-indicator {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: white;
}

.status-indicator.correct {
    background: #28a745;
}

.status-indicator.incorrect {
    background: #dc3545;
}

.status-indicator.unknown {
    background: #ffc107;
    color: #333;
}

.prediction-team {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.team-logo-prediction {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.team-name {
    font-weight: 500;
    color: var(--color-text-primary);
}

.current-position {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.position-status.correct {
    color: #28a745;
    font-weight: 600;
}

.position-status.unknown {
    color: #ffc107;
    font-style: italic;
}

.no-predictions {
    text-align: center;
    padding: 40px;
    color: var(--color-text-secondary);
    background: var(--color-bg-secondary);
    border-radius: 8px;
    font-style: italic;
}

.status-legend {
    background: var(--color-bg-secondary);
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

.status-legend h4 {
    color: var(--color-text-primary);
    margin-bottom: 15px;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-note {
    border-top: 1px solid #ddd;
    padding-top: 15px;
    margin-top: 15px;
}

.legend-note p {
    color: var(--color-text-secondary);
    font-size: 14px;
    margin: 0;
}

/* Home page fixture split */
.fixture-overview-banner,
.fixture-panels {
	margin-left: 24px;
	margin-right: 24px;
}

.fixture-overview-banner {
	background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
	border: 1px solid rgba(28, 42, 56, 0.08);
	border-top: 6px solid #623ce6;
	border-radius: 26px;
	padding: 14px;
	box-shadow: 0 22px 44px rgba(28, 42, 56, 0.08);
	margin-bottom: 24px;
}

.fixture-overview-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.fixture-overview-item {
	border-radius: 20px;
	padding: 22px 24px;
	border: 1px solid rgba(28, 42, 56, 0.08);
	background-color: rgba(255, 255, 255, 0.88);
	min-height: 100%;
}

.fixture-overview-item--selection {
	background: linear-gradient(180deg, rgba(98, 60, 230, 0.06) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.fixture-overview-item--upcoming {
	background: linear-gradient(180deg, rgba(229, 138, 45, 0.09) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.fixture-status-label {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border-radius: 999px;
	background-color: rgba(98, 60, 230, 0.1);
	color: #4d2cb8;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.fixture-overview-item--upcoming .fixture-status-label {
	background-color: rgba(229, 138, 45, 0.14);
	color: #b15f13;
}

.fixture-overview-date {
	margin: 12px 0 6px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #637282;
	text-transform: uppercase;
}

.fixture-overview-item h3 {
	margin: 14px 0 8px;
	font-size: 24px;
	font-weight: 700;
	color: var(--color-text-primary);
}

.fixture-overview-item p {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: #516171;
}

.fixture-overview-note {
	margin-top: 12px !important;
	padding-top: 12px;
	border-top: 1px solid rgba(28, 42, 56, 0.08);
}

.fixture-overview-note a {
	color: var(--color-theme-primary);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: rgba(98, 60, 230, 0.35);
	text-underline-offset: 2px;
}

.fixture-overview-note a:hover {
	color: #4d2cb8;
	text-decoration-color: currentColor;
}

.season-wrapup {
	margin-top: 14px;
}

.season-wrapup-podium {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.season-wrapup-place {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 10px;
	align-items: center;
	padding: 10px 12px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(28, 42, 56, 0.08);
}

.season-wrapup-rank {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #486581;
	min-width: 2.2rem;
}

.season-wrapup-place--1 .season-wrapup-rank { color: #9a6700; }
.season-wrapup-place--2 .season-wrapup-rank { color: #52606d; }
.season-wrapup-place--3 .season-wrapup-rank { color: #9a3412; }

.season-wrapup-place--1 {
	background: linear-gradient(135deg, rgba(255, 226, 122, 0.35), rgba(255, 255, 255, 0.92));
}

.season-wrapup-place--2 {
	background: linear-gradient(135deg, rgba(214, 214, 214, 0.35), rgba(255, 255, 255, 0.92));
}

.season-wrapup-place--3 {
	background: linear-gradient(135deg, rgba(226, 151, 104, 0.35), rgba(255, 255, 255, 0.92));
}

.season-wrapup-names {
	font-weight: 700;
	color: #1f2933;
}

.season-wrapup-points {
	font-size: 0.85rem;
	color: #627d98;
	white-space: nowrap;
}

.season-wrapup-cup {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 12px;
	margin: 8px 0 0 0;
	padding: 10px 12px;
	border-radius: 12px;
	background: rgba(15, 118, 110, 0.08);
	border: 1px solid rgba(15, 118, 110, 0.14);
	color: #1f2933;
}

.season-wrapup-cup-label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #0f766e;
}

.season-wrapup-cup-points {
	margin-left: auto;
	font-size: 0.85rem;
	color: #627d98;
}

.fixture-panels {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin-bottom: 32px;
	align-items: start;
}

.fixture-panel {
	background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
	border: 1px solid rgba(28, 42, 56, 0.08);
	border-top: 6px solid #d9dfeb;
	border-radius: 26px;
	padding: 24px;
	box-shadow: 0 22px 44px rgba(28, 42, 56, 0.08);
}

.fixture-panel--current {
	border-top-color: #2d6cdf;
}

.fixture-panel--upcoming {
	border-top-color: #e58a2d;
	background: linear-gradient(180deg, #fffdf8 0%, #f7f9fc 100%);
}

.fixture-panel-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 20px;
}

.fixture-panel-heading {
	flex: 1 1 auto;
}

.fixture-panel-badge {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.fixture-panel-badge--current {
	background-color: rgba(45, 108, 223, 0.12);
	color: #2457b6;
}

.fixture-panel-badge--upcoming {
	background-color: rgba(229, 138, 45, 0.14);
	color: #b15f13;
}

.fixture-panel-title {
	margin: 12px 0 6px;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.1;
	color: var(--color-text-primary);
}

.fixture-panel-date {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 700;
	color: #5d6b7a;
}

.fixture-panel-subtitle {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #5d6b7a;
}

.fixture-panel-stats {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 12px;
}

.fixture-panel-stat {
	min-width: 92px;
	padding: 12px 14px;
	border-radius: 18px;
	text-align: center;
	background-color: rgba(255, 255, 255, 0.8);
	border: 1px solid rgba(28, 42, 56, 0.08);
}

.fixture-panel--current .fixture-panel-stat {
	background-color: rgba(45, 108, 223, 0.08);
	border-color: rgba(45, 108, 223, 0.14);
}

.fixture-panel--upcoming .fixture-panel-stat {
	background-color: rgba(229, 138, 45, 0.08);
	border-color: rgba(229, 138, 45, 0.16);
}

.fixture-panel-stat-value {
	display: block;
	font-size: 28px;
	font-weight: 800;
	line-height: 1;
	color: var(--color-text-primary);
}

.fixture-panel-stat-label {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	font-weight: 600;
	color: #637282;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.fixture-panel-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.fixture-panel .match {
	margin-top: 0;
}

.fixture-panel .match:not(.motw) {
	background-color: rgba(255, 255, 255, 0.94);
	border: 1px solid rgba(28, 42, 56, 0.08);
	box-shadow: 0 12px 28px rgba(28, 42, 56, 0.06);
}

.fixture-panel .league-header {
	padding: 16px 20px;
	border-bottom: 0;
}

.fixture-panel .match-content {
	padding: 4px 0;
}

.fixture-date-stack {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	line-height: 1.15;
	width: 100%;
	text-align: center;
}

.fixture-date-primary {
	font-size: 13px;
	font-weight: 600;
	color: #5d6b7a;
}

.fixture-date-secondary {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--color-text-primary);
}

.league-logo {
	width: 28px;
	height: 28px;
	margin-right: 12px;
	object-fit: contain;
	flex-shrink: 0;
}

.fixture-empty-state,
.fixture-empty-season {
	background: rgba(255, 255, 255, 0.78);
	border: 1px dashed rgba(28, 42, 56, 0.16);
	border-radius: 20px;
	padding: 24px;
}

.fixture-empty-state {
	min-height: 240px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.fixture-empty-state h4,
.fixture-empty-season {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	color: var(--color-text-primary);
}

.fixture-empty-state p {
	margin: 10px 0 0;
	font-size: 15px;
	line-height: 1.6;
	color: #5d6b7a;
}

.fixture-empty-season {
	margin: 0 24px 32px;
	line-height: 1.6;
}

/* Responsive design */
@media (max-width: 768px) {
    .predictions-grid {
        grid-template-columns: 1fr;
    }
    
    .position-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .legend-items {
        flex-direction: column;
        gap: 10px;
    }
}

@media screen and (max-width: 1199px) {
	.fixture-panels {
		grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 991px) {
	.fixture-overview-grid {
		grid-template-columns: 1fr;
	}
}

@media screen and (min-width: 992px) {
	.forecast-fixture-date-column {
		flex: 0 0 104px;
		max-width: 104px;
		justify-content: center;
		align-items: center;
		text-align: center;
		padding-left: 8px;
		padding-right: 8px;
	}

	.forecast-fixture-date-column .fixture-date-stack,
	.forecast-fixture-date-column .match-date {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 100%;
		margin: 0 auto;
		text-align: center;
	}

	.forecast-fixture-date-column .fixture-date-primary,
	.forecast-fixture-date-column .fixture-date-secondary {
		display: block;
		width: 100%;
		text-align: center;
	}

	.fixture-panel .fixture-date-column {
		flex: 0 0 104px;
		max-width: 104px;
	}

	.fixture-panel .team-home,
	.fixture-panel .team-away {
		flex: 1 1 0;
		max-width: none;
	}

	.fixture-panel .fixture-center:not(.fixture-date-column) {
		flex: 0 0 92px;
		max-width: 92px;
	}
}

@media screen and (max-width: 767px) {
	.fixture-overview-banner,
	.fixture-panels,
	.fixture-empty-season {
		margin-left: 10px;
		margin-right: 10px;
	}

	.fixture-overview-banner,
	.fixture-panel,
	.fixture-empty-state,
	.fixture-empty-season {
		padding: 16px;
		border-radius: 18px;
	}

	.fixture-overview-grid,
	.fixture-panels {
		gap: 12px;
	}

	.fixture-overview-item {
		padding: 16px;
		border-radius: 16px;
	}

	.fixture-overview-item h3 {
		font-size: 18px;
	}

	.fixture-overview-item p {
		font-size: 14px;
	}

	.fixture-overview-date {
		font-size: 11px;
	}

	.fixture-panel-header {
		flex-direction: column;
	}

	.fixture-panel-title {
		font-size: 22px;
	}

	.fixture-panel-date {
		font-size: 12px;
	}

	.fixture-panel-subtitle {
		font-size: 13px;
	}

	.fixture-panel-stats {
		justify-content: flex-start;
	}

	.fixture-panel-stat {
		min-width: 82px;
		padding: 10px 12px;
	}

	.fixture-panel-stat-value {
		font-size: 22px;
	}

	.fixture-panel-stat-label {
		font-size: 10px;
	}

	.fixture-panel .league-header {
		padding: 14px 12px;
	}

	.fixture-empty-state {
		min-height: 160px;
	}

	.fixture-empty-state h4,
	.fixture-empty-season {
		font-size: 18px;
	}

	.fixture-empty-state p {
		font-size: 13px;
	}

	.league-logo {
		width: 20px;
		height: 20px;
		margin-right: 8px;
	}
}

/* ============================================================
   Season Stats Podium (Gold / Silver / Bronze)
   ============================================================ */
.season-podium {
    position: relative;
    margin: 0 0 32px;
    padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.5rem);
    border-radius: 24px;
    border: 1px solid rgba(28, 42, 56, 0.08);
    background:
        radial-gradient(circle at 50% -10%, rgba(255, 214, 102, 0.22), transparent 55%),
        radial-gradient(circle at 12% 110%, rgba(192, 192, 192, 0.18), transparent 50%),
        radial-gradient(circle at 88% 110%, rgba(205, 127, 50, 0.18), transparent 50%),
        linear-gradient(180deg, #ffffff 0%, #f7f4ec 100%);
    box-shadow: 0 24px 48px rgba(28, 42, 56, 0.08);
    overflow: hidden;
}

.season-podium::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #c0c0c0 0%, #c0c0c0 28%, #ffd700 28%, #ffd700 72%, #cd7f32 72%, #cd7f32 100%);
}

.season-podium__header {
    text-align: center;
    margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.season-podium__eyebrow {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffd86b, #d59733);
    color: #5a3a06;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    box-shadow: 0 6px 14px rgba(213, 151, 51, 0.28);
}

.season-podium__title {
    margin: 0.6rem 0 0.3rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--stats-accent-strong, #163d66);
    letter-spacing: -0.01em;
}

.season-podium__subtitle {
    margin: 0;
    color: #5f6c7b;
    font-size: 0.95rem;
}

.season-podium__board {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: end;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    max-width: 880px;
    margin: 0 auto;
}

.season-podium__board--count-1 {
    grid-template-columns: minmax(220px, 320px);
    justify-content: center;
}

.season-podium__board--count-2 {
    grid-template-columns: repeat(2, minmax(220px, 320px));
    justify-content: center;
}

.season-podium__step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem 0.75rem 0;
    border-radius: 18px 18px 0 0;
    background: transparent;
}

.season-podium__medal {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 1.6rem;
    box-shadow: 0 12px 22px rgba(28, 42, 56, 0.22), inset 0 -6px 12px rgba(0, 0, 0, 0.18), inset 0 4px 10px rgba(255, 255, 255, 0.6);
    margin-bottom: 0.85rem;
}

.season-podium__medal::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.55);
    pointer-events: none;
}

.season-podium__medal-rank {
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.season-podium__place {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6b7785;
    margin-bottom: 0.6rem;
}

.season-podium__players {
    list-style: none;
    margin: 0 0 0.85rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
}

.season-podium__player-name {
    display: inline-block;
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    font-weight: 750;
    color: var(--stats-accent-strong, #163d66);
    line-height: 1.2;
    word-break: break-word;
}

.season-podium__points {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    margin-bottom: 1rem;
}

.season-podium__points-value {
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    font-weight: 800;
    color: var(--stats-accent-strong, #163d66);
    line-height: 1;
}

.season-podium__points-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #8995a3;
}

.season-podium__pillar {
    width: 100%;
    border-radius: 14px 14px 0 0;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55), 0 -6px 18px rgba(28, 42, 56, 0.08);
    position: relative;
    overflow: hidden;
}

.season-podium__pillar::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 14px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
    pointer-events: none;
}

/* Gold (1st) */
.season-podium__step--gold .season-podium__medal {
    background: radial-gradient(circle at 30% 25%, #fff3b0 0%, #ffd700 32%, #c79500 100%);
}
.season-podium__step--gold .season-podium__pillar {
    height: 160px;
    background: linear-gradient(180deg, #ffe27a 0%, #f1bf3c 50%, #c79100 100%);
}
.season-podium__step--gold .season-podium__place {
    color: #b27500;
}

/* Silver (2nd) */
.season-podium__step--silver .season-podium__medal {
    background: radial-gradient(circle at 30% 25%, #ffffff 0%, #d6d6d6 35%, #888 100%);
}
.season-podium__step--silver .season-podium__pillar {
    height: 120px;
    background: linear-gradient(180deg, #e8e8e8 0%, #b9b9b9 50%, #7e7e7e 100%);
}
.season-podium__step--silver .season-podium__place {
    color: #5e6066;
}

/* Bronze (3rd) */
.season-podium__step--bronze .season-podium__medal {
    background: radial-gradient(circle at 30% 25%, #ffd6a8 0%, #d28a4a 35%, #8a4a14 100%);
}
.season-podium__step--bronze .season-podium__pillar {
    height: 90px;
    background: linear-gradient(180deg, #e29768 0%, #b86a30 50%, #783c10 100%);
}
.season-podium__step--bronze .season-podium__place {
    color: #8a4a14;
}

/* Gold step gets a subtle glow to celebrate the winner */
.season-podium__step--gold .season-podium__medal {
    box-shadow:
        0 12px 22px rgba(199, 145, 0, 0.45),
        0 0 0 4px rgba(255, 215, 0, 0.18),
        inset 0 -6px 12px rgba(120, 78, 0, 0.25),
        inset 0 4px 10px rgba(255, 255, 255, 0.7);
}

@media (max-width: 720px) {
    .season-podium__board,
    .season-podium__board--count-1,
    .season-podium__board--count-2 {
        grid-template-columns: 1fr;
        align-items: stretch;
        max-width: 420px;
    }
    /* On small screens, show steps in natural rank order: 1st, 2nd, 3rd. */
    .season-podium__step--rank-1 { order: 1; }
    .season-podium__step--rank-2 { order: 2; }
    .season-podium__step--rank-3 { order: 3; }
    .season-podium__pillar { display: none; }
    .season-podium__step {
        padding: 1rem 0.85rem 1.1rem;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.7);
        border: 1px solid rgba(28, 42, 56, 0.08);
    }
    .season-podium__step--gold { background: linear-gradient(135deg, rgba(255, 226, 122, 0.35), rgba(255, 255, 255, 0.9)); }
    .season-podium__step--silver { background: linear-gradient(135deg, rgba(214, 214, 214, 0.35), rgba(255, 255, 255, 0.9)); }
    .season-podium__step--bronze { background: linear-gradient(135deg, rgba(226, 151, 104, 0.35), rgba(255, 255, 255, 0.9)); }
}
