/**
 * Roster Single Post — styling for the dynamic repeater shortcodes.
 *
 * Colours and fonts reference the Elementor kit's global variables so these
 * blocks stay in step with the site design system. Fallbacks match the kit
 * values in case a block is rendered outside an Elementor-styled context.
 */

/* -------------------------------------------------------------------------
 * Title and section headings
 * ---------------------------------------------------------------------- */

.roster-title {
	margin: 0;
	font-family: var(--font-display, "Bebas Neue"), sans-serif;
	font-weight: 400;
	font-size: clamp(3.25rem, 1.5rem + 5.5vw, 6.5rem);
	line-height: 0.9;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--color-black, #000);
}

.roster-title__accent {
	color: var(--color-brand-pink, #ff2280);
}

.roster-section__heading {
	margin: 0 0 1.5rem;
	font-family: var(--font-display, "Bebas Neue"), sans-serif;
	font-weight: 400;
	font-size: var(--size-h4, clamp(1.25rem, 0.74324rem + 2.16216vw, 2.5rem));
	line-height: 1;
	text-transform: uppercase;
	color: var(--color-brand-pink, #ff2280);
}

/* -------------------------------------------------------------------------
 * Show Dates
 * ---------------------------------------------------------------------- */

.roster-showdates {
	background-color: var(--color-brand-purple, #4c0078);
	border-radius: 12px;
	padding: 2rem 1.75rem 2.25rem;
	color: var(--color-white, #fff);
}

.roster-showdates__heading {
	margin: 0 0 1.5rem;
	font-family: var(--font-display, "Bebas Neue"), sans-serif;
	font-weight: 400;
	font-size: var(--size-h4, clamp(1.25rem, 0.74324rem + 2.16216vw, 2.5rem));
	line-height: 1;
	text-transform: uppercase;
	color: var(--color-brand-pink, #ff2280);
}

.roster-showdates__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
}

.roster-showdates__item > * {
	margin: 0;
}

.roster-showdates__title,
.roster-showdates__location {
	font-family: var(--font-body, "DM Sans"), sans-serif;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.25;
	text-transform: uppercase;
	color: var(--color-white, #fff);
}

.roster-showdates__location {
	font-weight: 400;
}

.roster-showdates__dates {
	margin-top: 0.15rem;
	font-family: var(--font-body, "DM Sans"), sans-serif;
	font-style: italic;
	font-size: 0.875rem;
	line-height: 1.4;
	color: var(--color-brand-pink, #ff2280);
}

.roster-showdates__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 0.85rem;
	padding: 0.5rem 1rem;
	border-radius: 4px;
	background-color: var(--color-brand-pink, #ff2280);
	color: var(--color-white, #fff);
	font-family: var(--font-body, "DM Sans"), sans-serif;
	font-weight: 700;
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.roster-showdates__cta:hover,
.roster-showdates__cta:focus-visible {
	background-color: var(--color-white, #fff);
	color: var(--color-brand-purple, #4c0078);
}

.roster-showdates__cta-arrow {
	font-size: 0.9em;
	line-height: 1;
}

/* -------------------------------------------------------------------------
 * Media (click-to-play video grid)
 * ---------------------------------------------------------------------- */

.roster-media {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
}

.roster-media__item {
	margin: 0;
}

.roster-media__trigger {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	border-radius: 4px;
	overflow: hidden;
	background: var(--color-black, #000);
	cursor: pointer;
	aspect-ratio: 16 / 9;
}

.roster-media__thumb {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease, opacity 0.2s ease;
}

.roster-media__trigger:hover .roster-media__thumb,
.roster-media__trigger:focus-visible .roster-media__thumb {
	transform: scale(1.03);
	opacity: 0.85;
}

.roster-media__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: clamp(56px, 23%, 132px);
	aspect-ratio: 1;
	border: clamp(3px, 0.6vw, 6px) solid var(--color-white, #fff);
	border-radius: 50%;
	background-color: rgba(0, 0, 0, 0.15);
	box-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
	transition: background-color 0.2s ease;
}

.roster-media__play svg {
	width: 62%;
	height: 62%;
	margin-left: 8%;
	fill: var(--color-white, #fff);
	filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.3));
	transition: fill 0.2s ease;
}

.roster-media__trigger:hover .roster-media__play,
.roster-media__trigger:focus-visible .roster-media__play {
	background-color: var(--color-white, #fff);
}

.roster-media__trigger:hover .roster-media__play svg,
.roster-media__trigger:focus-visible .roster-media__play svg {
	fill: var(--color-brand-purple, #4c0078);
}

.roster-media__trigger:focus-visible {
	outline: 3px solid var(--color-brand-pink, #ff2280);
	outline-offset: 3px;
}

/* Injected on click, replacing the facade. */
.roster-media__frame {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: 4px;
}

/* -------------------------------------------------------------------------
 * Responsive
 * ---------------------------------------------------------------------- */

@media (max-width: 767px) {
	.roster-media {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.75rem;
	}
}

@media (max-width: 480px) {
	.roster-media {
		grid-template-columns: minmax(0, 1fr);
	}

	.roster-showdates {
		padding: 1.5rem 1.25rem 1.75rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.roster-media__thumb,
	.roster-media__play,
	.roster-media__play svg,
	.roster-showdates__cta {
		transition: none;
	}

	.roster-media__trigger:hover .roster-media__thumb,
	.roster-media__trigger:focus-visible .roster-media__thumb {
		transform: none;
	}
}
