.tiw-speaker-years {
	--tiw-sy-accent: var(--accent-color, #00b5cb);
	--tiw-sy-gold: #b89b62;
	--tiw-sy-surface: rgba(0, 22, 29, 0.72);
	--tiw-sy-line: rgba(255, 255, 255, 0.14);
	width: 100%;
}

.tiw-speaker-years__tabs {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0 0 clamp(1.75rem, 4vw, 3.5rem);
	padding: 0.45rem;
	overflow-x: auto;
	border: 1px solid var(--tiw-sy-line);
	border-radius: 999px;
	background: var(--tiw-sy-surface);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	scrollbar-width: thin;
}

.tiw-speaker-years__tab {
	display: inline-flex;
	flex: 1 0 auto;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	min-width: 8rem;
	min-height: 3.25rem;
	padding: 0.7rem 1.35rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: rgba(255, 255, 255, 0.7);
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.02em;
	text-decoration: none;
	cursor: pointer;
	transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.tiw-speaker-years__tab small {
	display: inline-grid;
	place-items: center;
	min-width: 1.65rem;
	height: 1.65rem;
	padding: 0 0.4rem;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 0.68rem;
	line-height: 1;
	opacity: 0.68;
}

.tiw-speaker-years__tab:hover,
.tiw-speaker-years__tab:focus-visible {
	color: #fff;
}

.tiw-speaker-years__tab:focus-visible {
	outline: 2px solid var(--tiw-sy-accent);
	outline-offset: 2px;
}

.tiw-speaker-years__tab.is-active {
	background: linear-gradient(110deg, var(--tiw-sy-accent), var(--tiw-sy-gold));
	box-shadow: 0 0.7rem 2rem rgba(0, 181, 203, 0.18);
	color: #001116;
}

.tiw-speaker-years__panel[hidden] {
	display: none !important;
}

.tiw-speaker-years__panel.is-active {
	animation: tiw-speaker-year-panel-in 280ms ease both;
}

.tiw-speaker-years__empty,
.tiw-speaker-years__notice {
	display: grid;
	place-items: center;
	min-height: 12rem;
	padding: 2rem;
	border: 1px solid var(--tiw-sy-line);
	border-radius: 1.4rem;
	background: var(--tiw-sy-surface);
	color: rgba(255, 255, 255, 0.72);
	text-align: center;
}

.tiw-speaker-years__fallback-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}

.tiw-speaker-years__fallback-card {
	position: relative;
	min-height: 32rem;
	overflow: hidden;
	border: 1px solid var(--tiw-sy-accent);
	border-radius: 1.4rem;
	background: #051116 center/cover no-repeat;
}

.tiw-speaker-years__fallback-card::after {
	position: absolute;
	inset: 35% 0 0;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.94));
	content: "";
	pointer-events: none;
}

.tiw-speaker-years__fallback-link {
	position: absolute;
	inset: 0;
	z-index: 1;
	color: #fff;
	text-decoration: none;
}

.tiw-speaker-years__fallback-content {
	position: absolute;
	right: 1.6rem;
	bottom: 1.6rem;
	left: 1.6rem;
	display: grid;
	gap: 0.35rem;
}

.tiw-speaker-years__fallback-content strong {
	font-size: 1.7rem;
	line-height: 1.08;
}

.tiw-speaker-years__fallback-content span {
	color: rgba(255, 255, 255, 0.7);
}

@keyframes tiw-speaker-year-panel-in {
	from {
		opacity: 0;
		transform: translateY(0.6rem);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 760px) {
	.tiw-speaker-years__tabs {
		justify-content: flex-start;
		margin-bottom: 1.5rem;
		border-radius: 1.25rem;
	}

	.tiw-speaker-years__tab {
		min-width: 6.8rem;
		min-height: 2.8rem;
		padding: 0.65rem 1rem;
		font-size: 0.9rem;
	}

	.tiw-speaker-years__fallback-grid {
		grid-template-columns: 1fr;
	}

	.tiw-speaker-years__fallback-card {
		min-height: 28rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tiw-speaker-years__tab {
		transition: none;
	}

	.tiw-speaker-years__panel.is-active {
		animation: none;
	}
}
