/* ── TVFL Events Widget ────────────────────────────────────────────────────── */

.tvfl-events-widget {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* ── Category Tabs ────────────────────────────────────────────────────────── */

.tvfl-ev-tabs {
	display: flex;
	gap: 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	border: 1px solid rgba(255, 255, 255, 0.1);
	margin-top: 10px;
}

.tvfl-ev-tabs::-webkit-scrollbar { display: none; }

.tvfl-ev-tab {
	flex-shrink: 0;
	padding: 8px 30px;
	border: none;
	border-right: 1px solid rgba(255, 255, 255, 0.15);
	background: transparent;
	color: var(--e-global-color-secondary);
	font-family: var(--e-global-typography-primary-font-family, "Bebas Neue"), sans-serif;
	font-size: 1.2rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.tvfl-ev-tab:last-child {
	border-right: none;
}

.tvfl-ev-tab:hover,
.tvfl-ev-tab.is-active {
    background-color: var(--e-global-color-primary);
    color: var(--e-global-color-secondary);
}

/* ── Filter Bar ────────────────────────────────────────────────────────────── */

.tvfl-ev-filters {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 10px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.tvfl-ev-filters::-webkit-scrollbar { display: none; }

.tvfl-ev-time-btns,
.tvfl-ev-select,
.tvfl-ev-reset {
	flex-shrink: 0;
}

.tvfl-ev-time-btns {
	display: flex;
	border-radius: 6px;
}

.tvfl-ev-time-btn {
	padding: 8px 18px;
	border: none;
	background: transparent !important;
	color: var(--e-global-color-secondary);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.tvfl-ev-time-btn:first-child {
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-right: none;
	border-radius: 6px 0 0 6px;
}

.tvfl-ev-time-btn:last-child {
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 0 6px 6px 0;
}

.tvfl-ev-time-btn.is-active {
	background: transparent;
	color: var(--e-global-color-secondary);
}

.tvfl-ev-time-btn:first-child.is-active {
	border: 1px solid var(--e-global-color-primary);
	border-right: none;
	border-radius: 4px 0 0 4px;
}

.tvfl-ev-time-btn:last-child.is-active {
	border: 1px solid var(--e-global-color-primary);
	border-left: none;
	border-radius: 0 4px 4px 0;
}

.tvfl-ev-select {
	width: auto;
	padding: 8px 32px 8px 12px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 6px;
	background: transparent;
	color: var(--e-global-color-secondary);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-color: rgba(255, 255, 255, 0.04);
}

.tvfl-ev-select option {
	background: #1a1a1a;
	color: #fff;
}

.tvfl-ev-reset {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 6px;
	background: transparent;
	color: var(--e-global-color-secondary);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.tvfl-ev-reset:hover {
	color: var(--e-global-color-secondary);
	border-color: rgba(255, 255, 255, 0.45);
}

.tvfl-ev-reset svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

/* ── Content layout (70 / 30) ─────────────────────────────────────────────── */

.tvfl-ev-content {
	display: grid;
	grid-template-columns: 7fr 3fr;
	gap: 28px;
	align-items: start;
}

/* ── Event Cards ──────────────────────────────────────────────────────────── */

.tvfl-ev-cards {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tvfl-ev-card {
	display: grid;
	grid-template-columns: 64px 250px 1fr;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.03);
	transition: border-color 0.2s ease;
}

.tvfl-ev-card:hover {
	border-color: rgba(255, 255, 255, 0.22);
}

/* Date column */
.tvfl-ev-card-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 14px 8px;
	background: rgba(255, 255, 255, 0.05);
	gap: 2px;
}

.tvfl-ev-card-month {
	font-size: 1.5rem;;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--e-global-color-primary);
	font-family: var(--e-global-typography-primary-font-family, "Bebas Neue"), sans-serif;
}

.tvfl-ev-card-day {
	font-size: 45px !important;
	font-weight: 800;
	line-height: 1;
	color: var(--e-global-color-secondary);
	font-family: var(--e-global-typography-primary-font-family, "Bebas Neue"), sans-serif;
}

.tvfl-ev-card-wday {
	font-size: 1.5rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--e-global-color-secondary);
	font-family: var(--e-global-typography-primary-font-family, "Bebas Neue"), sans-serif;
}

/* Image column */
.tvfl-ev-card-img {
	width: 250px;
	align-self: stretch;
	overflow: hidden;
}

.tvfl-ev-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tvfl-ev-card-img-ph {
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.06);
}

/* Body / details column */
.tvfl-ev-card-body {
	display: grid;
	grid-template-columns: 1fr 200px;
	gap: 10px 16px;
	padding: 14px 16px;
}

.tvfl-ev-card-bl,
.tvfl-ev-card-br {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.tvfl-ev-card-br {
	align-items: flex-start;
}

.tvfl-ev-card-time {
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--e-global-color-primary);
	letter-spacing: 0.04em;
}

.tvfl-ev-card-title {
	margin: 0;
	font-family: var(--e-global-typography-primary-font-family, "Bebas Neue"), sans-serif;
	font-size: 30px;
	font-weight: 500;
	color: var(--e-global-color-secondary);
	line-height: 1.2;
}

.tvfl-ev-card-division {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.55);
}

.tvfl-ev-card-cat {
	display: inline-block;
	padding: 2px 10px;
	border: 1px solid var(--e-global-color-primary);
	border-radius: 5px;
	font-size: 0.8rem;
	font-weight: 300;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--e-global-color-primary);
	width: fit-content;
	font-family: var(--e-global-typography-primary-font-family, "Bebas Neue"), sans-serif;
}

.tvfl-ev-card-stadium,
.tvfl-ev-card-ticket-row {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 0.9rem;
	color: var(--e-global-color-secondary);
}

.tvfl-ev-card-ticket-row {
	font-family: var(--e-global-typography-primary-font-family, "Bebas Neue"), sans-serif;
}

.tvfl-ev-card-ticket-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
}

.tvfl-ev-card-stadium svg,
.tvfl-ev-card-ticket-row svg {
	width: 13px;
	height: 13px;
	flex-shrink: 0;
}

.tvfl-ev-card-place {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.5);
}

.tvfl-ev-card-ticket-status {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.tvfl-ticket-available       { color: rgba(255, 255, 255, 0.4); }
.tvfl-ticket-not-available   { color: #ef4444; }

.tvfl-ev-card-view {
	display: inline-block;
	margin-top: auto;
	padding: 4px 10px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 3px;
	font-family: var(--e-global-typography-primary-font-family, "Bebas Neue"), sans-serif;
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--e-global-color-secondary) !important;
	text-decoration: none;
	transition: border-color 0.15s ease;
	white-space: nowrap;
}

.tvfl-ev-card-view:hover { border-color: rgba(255, 255, 255, 0.65); }

.tvfl-ev-empty,
.tvfl-ev-no-results {
	color: rgba(255, 255, 255, 0.45);
	font-size: 0.875rem;
	padding: 20px 0;
}

/* ── Right Sidebar shared ─────────────────────────────────────────────────── */

.tvfl-ev-right {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.tvfl-ev-right-section {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tvfl-ev-sec-label {
	margin: 0;
	font-family: var(--e-global-typography-primary-font-family, "Bebas Neue"), sans-serif;
	font-style: normal;
	font-weight: 500;
	font-size: 32px;
	line-height: 32px;
	color: var(--e-global-color-secondary) !important;
}

/* ── Featured Event ───────────────────────────────────────────────────────── */

.tvfl-ev-featured {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	overflow: hidden;
	padding-bottom: 18px;
}

.tvfl-ev-featured-img {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.tvfl-ev-featured-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tvfl-ev-featured-date {
	padding: 12px 16px 0;
	font-size: 0.75rem;
	color: var(--e-global-color-primary);
	font-weight: 600;
}

.tvfl-ev-featured-title {
	margin: 6px 16px 0;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--e-global-color-secondary);
}

.tvfl-ev-featured-loc {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	padding: 8px 16px 0;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.6);
}

.tvfl-ev-featured-loc svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	margin-top: 2px;
}

.tvfl-ev-get-tickets {
	display: block;
	margin: 14px 16px 0;
	padding: 10px 16px;
	border: none;
	border-radius: 6px;
	background: var(--e-global-color-primary);
	color: var(--e-global-color-secondary);
	font-size: 1rem;
	font-weight: 300;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	transition: opacity 0.2s ease;
	font-family: var(--e-global-typography-primary-font-family, "Bebas Neue"), sans-serif;
}

.tvfl-ev-get-tickets:hover {
	color: var(--e-global-color-secondary);
}

/* ── Event Calendar ───────────────────────────────────────────────────────── */

.tvfl-ev-cal-wrap {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	padding: 16px;
}

.tvfl-ev-cal-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.tvfl-ev-cal-prev,
.tvfl-ev-cal-next {
	width: 28px;
	height: 28px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	background: transparent;
	color: var(--e-global-color-secondary);
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background-color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.tvfl-ev-cal-prev:hover,
.tvfl-ev-cal-next:hover {
	background: rgba(255, 255, 255, 0.1);
}

.tvfl-ev-cal-month-label {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--e-global-color-secondary);
}

/* Calendar grid */
.tvfl-ev-cal-grid {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tvfl-ev-cal-dow,
.tvfl-ev-cal-week {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 3px;
}

.tvfl-ev-cal-dow span {
	text-align: center;
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.35);
	text-transform: uppercase;
	padding: 2px 0;
}

.tvfl-ev-cal-day {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.7rem;
	color: rgba(255, 255, 255, 0.6);
	border-radius: 50%;
	cursor: default;
}

.tvfl-ev-cal-day.has-event {
	background: var(--e-global-color-primary);
	color: #fff;
	font-weight: 700;
}

.tvfl-ev-cal-day.is-today {
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: var(--e-global-color-secondary);
}

/* ── Countdown ────────────────────────────────────────────────────────────── */

.tvfl-ev-countdown {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	padding: 16px;
}

.tvfl-ev-cd-event {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 16px;
}

.tvfl-ev-cd-trophy {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	color: var(--e-global-color-primary);
	margin-top: 2px;
}

.tvfl-ev-cd-name {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--e-global-color-secondary);
	line-height: 1.3;
}

.tvfl-ev-cd-clock {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 18px;
}

.tvfl-ev-cd-unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	flex: 1;
}

.tvfl-ev-cd-val {
	font-size: 26px;
	font-weight: 800;
	line-height: 1;
	color: var(--e-global-color-secondary);
	font-variant-numeric: tabular-nums;
}

.tvfl-ev-cd-lbl {
	font-size: 0.55rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.4);
}

.tvfl-ev-cd-sep {
	font-size: 22px;
	font-weight: 800;
	color: var(--e-global-color-primary);
	margin-bottom: 14px;
	flex-shrink: 0;
}

.tvfl-ev-view-event {
	display: block;
	padding: 10px 16px;
	border: 2px solid rgba(255, 255, 255, 0.25);
	border-radius: 6px;
	background: transparent;
	color: var(--e-global-color-secondary);
	font-size: 1rem;
	font-weight: 300;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	transition: border-color 0.2s ease, background-color 0.2s ease;
	font-family: var(--e-global-typography-primary-font-family);
}

.tvfl-ev-view-event:hover {
	color: var(--e-global-color-secondary);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
	.tvfl-ev-content {
		grid-template-columns: 1fr !important;
	}
	.tvfl-ev-right {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
		align-items: start;
	}
}

@media (max-width: 767px) {
	.tvfl-ev-content {
		grid-template-columns: 1fr !important;
	}
	.tvfl-ev-right {
		display: flex;
		flex-direction: column;
		gap: 20px;
	}
	.tvfl-ev-card {
		grid-template-columns: 56px 140px 1fr;
	}
	.tvfl-ev-card-img {
		width: 140px;
	}
	.tvfl-ev-card-day {
		font-size: 24px !important;
	}
	.tvfl-ev-card-body {
		grid-template-columns: 1fr;
		padding: 10px 12px;
	}
	.tvfl-ev-card-br {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 8px;
	}

	.tvfl-ev-cd-val {
		font-size: 20px !important;
	}
}

@media (max-width: 480px) {
	.tvfl-ev-card {
		grid-template-columns: 50px 1fr;
	}
	.tvfl-ev-card-img {
		display: none;
	}
	.tvfl-ev-card-body {
		grid-column: 2 / -1;
	}
}
