.year-selector {
	display: block;
	background: #f8f9fa;
	padding: 0.5rem 1rem;
	border-radius: 25px;
	border: 2px solid #e2e8f0;
	margin-right: 0;
	width: 100%;
}

.year-selector select {
	border: none;
	background: transparent;
	color: #4a5568;
	font-weight: 600;
	cursor: pointer;
	width: 100%;
	text-align: center;
}

.filter-section {
	background: #f5deb3;
	border-radius: 15px;
	padding: 1.5rem;
	margin-bottom: 0.5rem;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.filter-group {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1rem;
}

.filter-group-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.filter-label {
	font-weight: 600;
	color: #4a5568;
	margin-bottom: 0.5rem;
	display: block;
}

.filter-btn {
	padding: 0.5rem 0.5rem;
	border: 2px solid #e2e8f0;
	background: white;
	border-radius: 25px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-weight: 500;
}

.filter-btn:hover {
	border-color: #a0522d;
	background: #f7fafc;
}

.filter-btn.active {
	background: linear-gradient(135deg, #a0522d 0%, #8b4513 100%);
	color: white;
	border-color: transparent;
}

.btn-goto-today {
	width: 100%;
	padding: 0.5rem 1rem;
	background: linear-gradient(135deg, #4db6ac, #26a69a);
	color: white;
	border: none;
	border-radius: 25px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.btn-goto-today:hover {
	background: linear-gradient(135deg, #26a69a, #00897b);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(77, 182, 172, 0.3);
}

.timeline-container {
	position: relative;
	padding: 2rem 0;
}

.timeline-date {
	background: white;
	border-radius: 10px;
	margin-bottom: 1rem;
	overflow: hidden;
	box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease;
	display: grid;
	grid-template-columns: 200px 1fr;
	min-height: auto;
}

.timeline-date.clickable {
	cursor: pointer;
}

.timeline-date:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.timeline-date.today {
	border: 3px solid #4db6ac !important;
	background: linear-gradient(135deg, #e0f7fa, #b2ebf2) !important;
	box-shadow: 0 0 20px rgba(77, 182, 172, 0.3) !important;
	animation: todayGlow 2s ease-in-out infinite alternate;
}

.timeline-date.near-today {
	border: 1px solid #4299e1;
	background: #ebf8ff;
}

@keyframes todayGlow {
	from {
		box-shadow: 0 0 20px rgba(77, 182, 172, 0.3);
	}
	to {
		box-shadow: 0 0 30px rgba(77, 182, 172, 0.6);
	}
}

.date-header {
	background: #f5deb3 !important;
	color: black;
	padding: 0.5rem 1rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	min-height: 100%;
}

.timeline-date.today .date-header {
	background: linear-gradient(135deg, #4db6ac, #26a69a) !important;
	color: white !important;
	animation: todayHeaderPulse 2s ease-in-out infinite alternate;
}

@keyframes todayHeaderPulse {
	from {
		background: linear-gradient(135deg, #4db6ac, #26a69a);
	}
	to {
		background: linear-gradient(135deg, #26a69a, #00897b);
	}
}

.date-text {
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 0.2rem;
}

.date-badges {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.badge {
	padding: 0.2rem 0.5rem;
	border-radius: 10px;
	font-size: 0.7rem;
	font-weight: 600;
}

.badge-today {
	background: linear-gradient(135deg, #fff, #f7fafc) !important;
	color: #00897b !important;
	font-weight: 800 !important;
	border: 2px solid #fff !important;
	animation: todayBadgePulse 1.5s ease-in-out infinite;
	text-shadow: none !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

@keyframes todayBadgePulse {
	0%, 100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.1);
	}
}

.badge-weekend {
	background: rgba(255, 255, 255, 0.3);
	color: white;
}

.race-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
}

.race-content.central-only {
	grid-template-columns: 1fr;
}

.race-content.central-only .race-section.local {
	display: none;
}

.race-content.local-only {
	grid-template-columns: 1fr;
}

.race-content.local-only .race-section.central {
	display: none;
}

.race-section {
	padding: 1rem;
	position: relative;
}

.race-section.central {
	border-right: none;
}

.section-title {
	font-weight: 700;
	color: #2d3748;
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.section-title i {
	font-size: 1.2rem;
}

.central-title {
	color: #3182ce;
}

.local-title {
	color: #38a169;
}

.race-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 0.5rem;
	border-radius: 8px;
}

.race-card {
	border-radius: 10px;
	padding: 1rem;
	border-left: 4px solid transparent;
	transition: all 0.3s ease;
}

.race-section.central .race-card {
	background: #e6f7e6 !important;
	border-left: 4px solid #3182ce;
	margin-right: auto;
	margin-left: 0;
	width: auto;
	max-width: 95%;
}

.race-section.local .race-card {
	background: #f5f0e0 !important;
	border-right: 4px solid #38a169;
	border-left: none;
	margin-left: auto;
	margin-right: 0;
	width: auto;
	max-width: 95%;
	text-align: right;
}

.race-section.local .race-header {
	flex-direction: row-reverse;
}

.race-section.local .race-details {
	flex-direction: row-reverse;
}

.race-card:hover {
	background: white;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.race-section.central .race-card:hover {
	transform: translateX(5px);
}

.race-section.local .race-card:hover {
	transform: translateX(-5px);
}

.race-section.central .grade-A {
	border-left-color: red !important;
}

.race-section.central .grade-B {
	border-left-color: orange !important;
}

.race-section.central .grade-C {
	border-left-color: pink !important;
}

.race-section.central .grade-D {
	border-left-color: #4299e1 !important;
}

.race-section.central .grade-F {
	border-left-color: #9f7aea !important;
}

.race-section.central .grade-G {
	border-left-color: #9f7aea !important;
}

.race-section.central .grade-H {
	border-left-color: #9f7aea !important;
}

.race-section.local .grade-A {
	border-right-color: red !important;
}

.race-section.local .grade-B {
	border-right-color: orange !important;
}

.race-section.local .grade-C {
	border-right-color: pink !important;
}

.race-section.local .grade-D {
	border-right-color: #4299e1 !important;
}

.race-section.local .grade-F {
	border-right-color: #9f7aea !important;
}

.race-section.local .grade-G {
	border-right-color: #9f7aea !important;
}

.race-section.local .grade-H {
	border-right-color: #9f7aea !important;
}

.race-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.5rem;
	gap: 0.5rem;
}

.race-name {
	font-weight: 600;
	color: #2d3748;
	font-size: 0.95rem;
	white-space: nowrap;
}

.grade-badge {
	padding: 0.2rem 0.5rem;
	border-radius: 5px;
	font-size: 1.2rem;
	font-weight: 700;
	color: white;
	background: none;
}

.grade-badge-A {
	background: none;
}

.grade-badge-B {
	background: none;
}

.grade-badge-C {
	background: none;
}

.grade-badge-D .grade-badge-F, .grade-badge-G, .grade-badge-H {
	background: none;
}

.race-details {
	display: flex;
	gap: 1rem;
	font-size: 0.85rem;
	color: #718096;
}

.race-details i {
	color: #a0aec0;
}

.race-details span:nth-child(3) {
	min-width: 85px;
	display: inline-block;
}

.no-races {
	display: none;
}

.floating-buttons {
	position: fixed;
	bottom: 20px;
	right: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	z-index: 1000;
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.3s ease;
	pointer-events: none;
}

.floating-buttons.show {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.floating-btn {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: none;
	color: white;
	font-size: 20px;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.floating-btn:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-today {
	background: linear-gradient(135deg, #4db6ac, #26a69a);
}

.btn-today:hover {
	background: linear-gradient(135deg, #26a69a, #00897b);
}

.btn-top {
	background: linear-gradient(135deg, #4299e1, #3182ce);
}

.btn-top:hover {
	background: linear-gradient(135deg, #3182ce, #2b6cb0);
}

.age-2 {
	background: #fed7d7;
}

.age-3 {
	background: #bee3f8;
}

.age-3up {
	background: #c6f6d5;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes pulse {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.5;
	}
}

.timeline-date {
	animation: fadeIn 0.5s ease forwards;
}

@media (max-width: 768px) {
	.timeline-date {
		grid-template-columns: 1fr;
	}
	
	.race-content {
		grid-template-columns: 1fr;
	}
	
	.race-section.central {
		border-right: none;
		border-bottom: none;
	}
	
	.race-section.central .race-card {
		margin-right: 1rem;
		margin-left: 0;
		width: auto !important;
		max-width: calc(100% - 1rem);
		background: #e6f7e6 !important;
		border-left: 4px solid #3182ce;
		border-right: none;
	}
	
	.race-section.local .race-card {
		margin-left: 1rem;
		margin-right: 0;
		width: auto !important;
		max-width: calc(100% - 1rem);
		background: #f5f0e0 !important;
		border-right: 4px solid #38a169;
		border-left: none;
		text-align: right;
	}
	
	.race-section.local .race-header {
		flex-direction: row-reverse;
	}
	
	.race-section.local .race-details {
		flex-direction: row-reverse;
	}
	
	.date-header {
		flex-direction: row;
		justify-content: center;
		text-align: center;
	}
	
	.date-badges {
		flex-direction: row;
	}
	
	.header-spacer {
		display: none;
	}
	
	.floating-buttons {
		bottom: 15px;
		right: 15px;
	}
	
	.floating-btn {
		width: 48px;
		height: 48px;
		font-size: 18px;
	}
}