body.k2-site .k2-tournament-videos--wc .k2-table-wrap {
	margin-bottom: var(--k2-nav-gap);
}

/* Spotlight vertical rhythm when scrolled to the player:
   small gap caption↔viewport top (scroll-margin-top),
   caption sits close on the video (head margin-bottom),
   player fills remaining height, small gap below (padding-bottom). */
body.k2-site .k2-tournament-videos__spotlight {
	--k2-tv-spotlight-top: 0.75rem;
	--k2-tv-spotlight-caption: 1.35rem; /* one tight caption row (line-height 1.2) */
	--k2-tv-spotlight-caption-gap: 5px;
	--k2-tv-spotlight-bottom: 0.5rem;
	--k2-tv-spotlight-chrome: calc(
		var(--k2-tv-spotlight-top)
		+ var(--k2-tv-spotlight-caption)
		+ var(--k2-tv-spotlight-caption-gap)
		+ var(--k2-tv-spotlight-bottom)
	);
	scroll-margin-top: var(--k2-tv-spotlight-top);
	padding-bottom: var(--k2-tv-spotlight-bottom);
}

body.k2-site .k2-tournament-videos__spotlight--empty,
body.k2-site .k2-tournament-videos__spotlight[hidden] {
	display: none;
}

body.k2-site .k2-tournament-videos__spotlight-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	/* Same width as the player box below; left-aligned with the index table. */
	width: min(100%, calc((100svh - var(--k2-tv-spotlight-chrome)) * 16 / 9));
	margin: 0 0 var(--k2-tv-spotlight-caption-gap);
}

body.k2-site .k2-tournament-videos__spotlight-label {
	margin: 0;
	min-width: 0;
	color: var(--k2-text-secondary);
}

/* Spotlight caption (game videos): headerless one-row scoreboard mirroring the
   index Games row — linked id, per-side flags, winner goal in blue, pre-game
   Elo in parentheses linking to the rating leaderboard table. */
body.k2-site .k2-tournament-videos__spotlight .k2-tournament-videos__caption-table {
	margin: 0; /* override .k2-page-nav .k2-table { margin-bottom: 16px } */
	font-size: 0.95rem;
	line-height: 1.2;
}

/* Caption sits on the page backdrop (no surface fill, no row hover). */
body.k2-site .k2-tournament-videos__caption-table tbody tr,
body.k2-site .k2-tournament-videos__caption-table tbody tr:hover {
	background: transparent;
}

body.k2-site .k2-tournament-videos__caption-table tbody td {
	padding: 0 0.55rem;
	border-bottom: 0;
	line-height: 1.2;
	vertical-align: bottom;
}

body.k2-site .k2-tournament-videos__caption-table tbody td:first-child {
	padding-left: 0;
}

body.k2-site .k2-tournament-videos__caption-date {
	padding-left: 1rem;
	color: var(--k2-text-secondary);
	white-space: nowrap;
}

body.k2-site .k2-tournament-videos__rating {
	color: var(--k2-text-secondary);
	font-weight: 400;
}

body.k2-site .k2-tournament-videos__rating-link {
	color: var(--k2-text-secondary);
}

body.k2-site .k2-tournament-videos__rating-link:hover,
body.k2-site .k2-tournament-videos__rating-link:focus-visible {
	color: var(--k2-accent);
	text-decoration: underline;
}

/* "↑ All videos" — flex sibling to the right of the player, top-aligned. */
body.k2-site .k2-tournament-videos__rating-link.k2-table-helped {
	cursor: help;
}

body.k2-site .k2-tournament-videos__player-row {
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
	width: 100%;
}

body.k2-site .k2-tournament-videos__back {
	flex: 0 0 auto;
	font-size: 0.85rem;
	color: var(--k2-accent);
	text-decoration: none;
	white-space: nowrap;
}

body.k2-site .k2-tournament-videos__back:hover,
body.k2-site .k2-tournament-videos__back:focus-visible {
	text-decoration: underline;
}

/* Keep the 16:9 player within the viewport height (incl. high browser zoom or
   short windows). Cap width from available viewport height minus spotlight
   chrome (caption + gaps) so the player fills the viewport with only a small
   margin below — left-aligned with the index table (no centering / 100vw bleed). */
body.k2-site .k2-tournament-videos__spotlight .k2-game-page__video-wrap {
	position: relative;
	flex: 0 1 auto;
	min-width: 0;
	width: min(
		calc((100svh - var(--k2-tv-spotlight-chrome)) * 16 / 9),
		calc(100% - 5.5rem)
	);
	margin-inline: 0;
}

body.k2-site .k2-tournament-videos__spotlight .k2-game-page__video {
	width: 100%;
	height: auto;
	max-height: calc(100svh - var(--k2-tv-spotlight-chrome));
	overflow: hidden;
	border-radius: var(--k2-radius-md);
}

body.k2-site .k2-table--tournament-videos-games tbody tr.is-active,
body.k2-site .k2-table--tournament-videos-extras tbody tr.is-active {
	background: color-mix(in srgb, var(--k2-accent) 10%, transparent);
}

body.k2-site .k2-tournament-videos__play-btn {
	display: inline-grid;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	padding: 0;
	border: 1px solid color-mix(in srgb, var(--k2-accent) 45%, var(--k2-border-subtle));
	border-radius: 999px;
	background: color-mix(in srgb, var(--k2-accent) 14%, transparent);
	color: var(--k2-accent);
	cursor: pointer;
	vertical-align: middle;
	text-decoration: none;
}

body.k2-site .k2-tournament-videos__play-btn:hover,
body.k2-site .k2-tournament-videos__play-btn.is-active {
	background: color-mix(in srgb, var(--k2-accent) 28%, transparent);
	border-color: var(--k2-accent);
}

body.k2-site .k2-tournament-videos__play-glyph {
	display: grid;
	line-height: 0;
}

body.k2-site .k2-tournament-videos__play-glyph svg {
	width: 14px;
	height: 14px;
	margin-left: 1px;
}

body.k2-site .k2-tournament-videos__section + .k2-tournament-videos__section {
	margin-top: 2rem;
}

body.k2-site .k2-tournament-videos__card {
	display: grid;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
	max-width: 52rem;
}

body.k2-site .k2-tournament-videos__title {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.35;
}

body.k2-site .k2-tournament-videos__meta p {
	margin: 0.25rem 0 0;
	font-size: 0.92rem;
	color: var(--k2-text-secondary);
}

body.k2-site .k2-tournament-videos__score {
	font-weight: 600;
	color: var(--k2-text-primary);
}

body.k2-site .k2-tournament-videos__alternates {
	margin: 0.25rem 0 0;
	padding-left: 1.1rem;
}

body.k2-site .k2-tournament-videos__also-label {
	margin: 0;
	font-size: 0.85rem;
	color: var(--k2-text-secondary);
}

body.k2-site .k2-video-orphans__why {
	display: inline-grid;
	place-items: center;
	width: 1.35rem;
	height: 1.35rem;
	padding: 0;
	border: 1px solid var(--k2-border-subtle);
	border-radius: 999px;
	background: transparent;
	color: var(--k2-text-secondary);
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1;
	cursor: help;
}

/* Video index game rows — scoreboard side layout (flags use k2-amiga-country-flag-img). */
body.k2-site .k2-tournament-videos--wc .k2-amiga-tgame-side {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}

body.k2-site .k2-tournament-videos--wc .k2-table--tournament-games .k2-amiga-tgame-team--a {
	text-align: right;
}

body.k2-site .k2-tournament-videos--wc .k2-table--tournament-games .k2-amiga-tgame-team--a .k2-amiga-tgame-side {
	justify-content: flex-end;
}

body.k2-site .k2-tournament-videos--wc .k2-table--tournament-games .k2-amiga-tgame-goal--win {
	font-weight: 700;
}

/* Amiga single game page — embedded match video(s) below the game table. */
body.k2-site .k2-amiga-game-videos {
	margin-top: var(--k2-nav-gap);
}

body.k2-site .k2-amiga-game-videos .k2-amiga-tournament-page-anchor {
	scroll-margin-top: 0.75rem;
}

body.k2-site .k2-amiga-game-videos__menu {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.2rem;
	margin: 0 0 0.65rem;
}

body.k2-site .k2-amiga-game-videos__menu-link {
	font-size: 0.95rem;
	line-height: 1.35;
	text-decoration: none;
}

body.k2-site .k2-amiga-game-videos__menu-link--muted {
	color: var(--k2-text-secondary);
}

body.k2-site .k2-amiga-game-videos__menu-link--muted:hover,
body.k2-site .k2-amiga-game-videos__menu-link--muted:focus-visible {
	color: var(--k2-link-star);
}

body.k2-site .k2-amiga-game-videos .k2-tournament-videos__spotlight .k2-game-page__video-wrap {
	width: min(
		calc((100svh - var(--k2-tv-spotlight-chrome)) * 16 / 9),
		100%
	);
}
