/**
 * FIFA World Cup Hub — layout aligned with Stand Out Games page (bp-wc-page only).
 */

/* Page shell — mirrors .bp-standout-page in global.css */
.bp-wc-page {
	background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(35, 40, 75, 0.8) 50%, rgba(107, 33, 168, 0.8) 100%);
	border-radius: 12px;
	padding: 10px 18px;
	margin-bottom: 25px;
}

.bp-wc-page .site-main {
	max-width: 1100px;
	margin: 0 auto;
}

.bp-wc-hub-wrap {
	padding: 20px 0 32px;
}

.bp-wc-hub {
	--bp-wc-accent: var(--logo-lime, #84cc16);
	--bp-wc-accent-glow: var(--logo-glow, rgba(132, 204, 22, 0.4));
	--bp-wc-surface: var(--logo-navy, #0f172a);
	--bp-wc-bg: var(--card-gradient, linear-gradient(135deg, rgba(30, 27, 75, 0.92) 0%, rgba(107, 33, 168, 0.92) 100%));
	--bp-wc-border: rgba(255, 255, 255, 0.1);
	--bp-wc-text: #ffffff;
	--bp-wc-muted: rgba(255, 255, 255, 0.72);
	--bp-wc-card-bg: #ffffff;
	--bp-wc-card-text: #1e293b;
	--bp-wc-card-muted: #64748b;

	color: var(--bp-wc-card-text);
}

/* Sticky nav — mirrors .bp-sog-page-tabs */
.bp-wc-nav {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	gap: 10px;
	flex-wrap: nowrap;
	overflow-x: auto;
	margin: 8px 0 18px;
	padding: 10px 0;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	backdrop-filter: blur(6px);
	border-bottom: 1px solid #e5e7eb;
}

.bp-wc-nav::-webkit-scrollbar {
	display: none;
}

.bp-wc-nav__tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 14px;
	border: 1px solid #d1d5db;
	border-radius: 999px;
	background: #fff;
	color: #374151;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: all 0.2s ease;
}

.bp-wc-nav__tab:hover {
	border-color: #93c5fd;
	background: #eff6ff;
	color: #1d4ed8;
}

.bp-wc-nav__tab.is-active {
	border-color: #3b82f6;
	background: #dbeafe;
	color: #1d4ed8;
}

.bp-wc-nav__tab:focus-visible {
	outline: 2px solid #3b82f6;
	outline-offset: 2px;
}

/* Tab panels — only the active section is shown */
.bp-wc-section {
	margin: 0 0 32px;
}

.bp-wc-section[hidden] {
	display: none !important;
}

.bp-wc-section__title {
	margin: 0 0 14px;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
	color: #ffffff;
}

/* Hero */
.bp-wc-hero {
	position: relative;
	overflow: hidden;
	margin-bottom: 20px;
	padding: 24px 20px;
	border-radius: 16px;
	border: 1px solid var(--bp-wc-border);
	background: var(--bp-wc-bg);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
	color: var(--bp-wc-text);
}

.bp-wc-hero__glow {
	position: absolute;
	inset: -40% auto auto -20%;
	width: 70%;
	height: 70%;
	/* background: radial-gradient(circle, var(--bp-wc-accent-glow) 0%, transparent 70%); */
	pointer-events: none;
}

.bp-wc-hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.bp-wc-hero__brand {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
}

.bp-wc-hero__logo-wrap {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: auto;
	min-width: 0;
	max-width: min(100%, 300px);
	padding: 4px 0;
	border: none;
	background: transparent;
	box-shadow: none;
}

.bp-wc-hero__logo-wrap .bp-wc-hero__feature-img {
	max-width: min(100%, 300px);
	max-height: 90px;
}

.bp-wc-hero__eyebrow {
	margin: 0 0 4px;
	color: var(--bp-wc-accent);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.bp-wc-hero__title {
	margin: 0 0 6px;
	font-size: clamp(1.35rem, 3vw, 1.85rem);
	font-weight: 800;
	line-height: 1.2;
	color: var(--bp-wc-text);
}

.bp-wc-hero__hosts {
	margin: 0;
	color: var(--bp-wc-muted);
	font-size: 0.9rem;
}

.bp-wc-hero__feature {
	flex: 1 1 180px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	padding: 0 10px;
}

.bp-wc-hero__feature-img {
	display: block;
	width: auto;
	max-width: min(100%, 300px);
	height: auto;
	max-height: 90px;
	object-fit: contain;
}

.bp-wc-hero__countdown {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem 0.5rem;
	padding: 12px 14px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--bp-wc-surface) 55%, transparent);
	border: 1px solid var(--bp-wc-border);
	min-width: min(100%, 320px);
}

.bp-wc-hero__countdown.is-live .bp-wc-timer__value {
	animation: bp-wc-pulse 1s ease-in-out infinite;
}

.bp-wc-timer__segment {
	display: inline-flex;
	align-items: baseline;
	gap: 0.2rem;
	white-space: nowrap;
}

.bp-wc-timer__value {
	color: var(--bp-wc-text);
	font-size: 1.1rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.bp-wc-timer__label {
	color: var(--bp-wc-muted);
	font-size: 0.68rem;
	font-weight: 600;
}

.bp-wc-timer__sep {
	color: var(--bp-wc-accent);
	font-weight: 700;
	user-select: none;
}

.bp-wc-timer__ended {
	margin: 0;
	color: var(--bp-wc-accent);
	font-size: 0.9rem;
	font-weight: 700;
	text-align: center;
}

@keyframes bp-wc-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.88; }
}

/* Stats — mirrors .bp-standout-summary / .bp-summary-chip */
.bp-wc-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 10px;
	margin: 14px 0 16px;
}

.bp-wc-stat {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
	padding: 10px 12px;
}

.bp-wc-stat__label {
	display: block;
	margin-bottom: 4px;
	color: #6b7280;
	font-size: 11px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.bp-wc-stat__value {
	display: block;
	color: #111827;
	font-size: 18px;
	font-weight: 700;
}

/* Cards & grid */
.bp-wc-grid {
	display: grid;
	gap: 16px;
	margin-bottom: 16px;
}

.bp-wc-grid--2 {
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.bp-wc-grid--2 {
		grid-template-columns: 1fr 1fr;
	}
}

.bp-wc-card {
	margin-bottom: 16px;
	padding: 15px;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	background: #fff;
	box-shadow: 0 4px 14px rgba(42, 64, 106, 0.08);
}

.bp-wc-card__title {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 700;
	color: #1e3a5f;
}

.bp-wc-card__body {
	font-size: 0.9rem;
	line-height: 1.55;
	color: var(--bp-wc-card-muted);
}

.bp-wc-cities {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bp-wc-cities li {
	padding: 8px 12px;
	border-radius: 8px;
	background: rgba(132, 204, 22, 0.08);
	border: 1px solid rgba(132, 204, 22, 0.2);
	font-size: 0.85rem;
	font-weight: 500;
}

.bp-wc-teams-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 12px;
}

.bp-wc-team-chip {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 10px 8px;
	border-radius: 10px;
	border: 1px solid #e5e7eb;
	background: #fff;
	text-align: center;
}

.bp-wc-team-chip img {
	width: 40px;
	height: 40px;
	object-fit: contain;
}

.bp-wc-team-chip__name {
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.25;
	color: var(--bp-wc-card-text);
}

.bp-wc-team-chip__group {
	font-size: 0.65rem;
	color: var(--bp-wc-card-muted);
}

/* Teams tab — groups A–L */
.bp-wc-teams-groups {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	width: 100%;
}

@media (min-width: 768px) {
	.bp-wc-teams-groups {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
}

@media (min-width: 1100px) {
	.bp-wc-teams-groups {
		grid-template-columns: repeat(3, 1fr);
	}
}

.bp-wc-teams-group-card {
	min-width: 0;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	background: var(--bp-wc-card-bg);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	overflow: hidden;
}

.bp-wc-teams-group-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 14px;
	background: linear-gradient(135deg, rgba(30, 27, 75, 0.95) 0%, rgba(107, 33, 168, 0.9) 100%);
	color: #fff;
}

.bp-wc-teams-group-card__title {
	margin: 0;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.bp-wc-teams-group-card__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.5rem;
	height: 1.5rem;
	padding: 0 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	font-size: 0.72rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.bp-wc-teams-group-card__body {
	padding: 12px;
}

.bp-wc-teams-group-card__body .bp-wc-teams-grid {
	grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
	gap: 10px;
}

.bp-wc-teams-group__empty {
	margin: 0;
	padding: 8px 4px;
	font-size: 0.82rem;
	color: var(--bp-wc-card-muted);
	text-align: center;
}

/* Date filter */
.bp-wc-date-filter-wrap {
	margin-bottom: 12px;
	overflow: hidden;
}

.bp-wc-date-filter {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 4px 2px 8px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.bp-wc-date-filter::-webkit-scrollbar {
	display: none;
}

.bp-wc-date-pill {
	flex-shrink: 0;
	padding: 7px 14px;
	border: 1px solid #d1d5db;
	border-radius: 999px;
	background: #fff;
	color: #374151;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.bp-wc-date-pill.is-active,
.bp-wc-date-pill:hover {
	border-color: #93c5fd;
	background: #eff6ff;
	color: #1d4ed8;
}

/* Status tabs */
.bp-wc-status-tabs {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.bp-wc-status-tab {
	padding: 8px 16px;
	border: 1px solid #d1d5db;
	border-radius: 999px;
	background: #fff;
	color: #374151;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.bp-wc-status-tab:hover {
	border-color: #93c5fd;
	background: #eff6ff;
	color: #1d4ed8;
}

.bp-wc-status-tab.is-active {
	border-color: #3b82f6;
	background: #dbeafe;
	color: #1d4ed8;
}

.bp-wc-status-tab:focus-visible {
	outline: 2px solid #3b82f6;
	outline-offset: 2px;
}

/* Match cards */
.bp-wc-matches-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

@media (min-width: 540px) {
	.bp-wc-matches-grid {
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	}
}

.bp-wc-match-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px 16px;
	border-radius: 12px;
	border: 1px solid rgba(34, 197, 94, 0.25);
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.bp-wc-match-card.is-live {
	border-color: var(--bp-wc-accent);
	box-shadow: 0 0 0 1px rgba(132, 204, 22, 0.3), 0 4px 16px rgba(132, 204, 22, 0.15);
}

.bp-wc-match-card__teams {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.bp-wc-match-card__team {
	display: flex;
	align-items: center;
	gap: 10px;
}

.bp-wc-match-card__team img {
	width: 28px;
	height: 28px;
	object-fit: contain;
	flex-shrink: 0;
}

.bp-wc-match-card__team-name {
	flex: 1;
	font-size: 0.9rem;
	font-weight: 600;
	color: #1e3a8a;
	min-width: 0;
}

.bp-wc-match-card__score {
	font-size: 0.95rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	min-width: 1.5rem;
	text-align: center;
}

.bp-wc-match-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	flex-wrap: wrap;
	padding-top: 8px;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	font-size: 0.78rem;
	color: var(--bp-wc-card-muted);
}

.bp-wc-match-card__status {
	padding: 3px 8px;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.bp-wc-match-card__status--live {
	background: rgba(132, 204, 22, 0.2);
	color: #365314;
	animation: bp-wc-pulse 1.2s ease-in-out infinite;
}

.bp-wc-match-card__status--completed {
	background: #f1f5f9;
	color: #64748b;
}

.bp-wc-match-card__status--upcoming {
	background: #eff6ff;
	color: #1d4ed8;
}

.bp-wc-match-card .bp-read-preview-btn {
	align-self: flex-start;
	margin-top: 4px;
}

.bp-wc-empty {
	grid-column: 1 / -1;
	padding: 24px;
	text-align: center;
	color: var(--bp-wc-card-muted);
	font-size: 0.9rem;
}

/* Standings — single-column stacked groups */
.bp-wc-standings-grid {
	width: 100%;
}

.bp-wc-standings-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
}

.bp-wc-standings-group {
	width: 100%;
	min-width: 0;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	background: var(--bp-wc-card-bg);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	overflow: hidden;
}

.bp-wc-standings-group__title {
	margin: 0;
	padding: 12px 16px;
	background: linear-gradient(135deg, rgba(30, 27, 75, 0.95) 0%, rgba(107, 33, 168, 0.9) 100%);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.3;
}

.bp-wc-standings-table-wrap {
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.bp-wc-standings-table {
	width: 100%;
	max-width: 100%;
	min-width: 520px;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 0.78rem;
}

.bp-wc-standings-table th,
.bp-wc-standings-table td {
	padding: 8px 6px;
	text-align: center;
	vertical-align: middle;
	border-bottom: 1px solid #f1f5f9;
	overflow: hidden;
}

.bp-wc-standings-table th {
	background: #f8fafc;
	color: #64748b;
	font-weight: 600;
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	line-height: 1.15;
}

.bp-wc-standings-table td:first-child,
.bp-wc-standings-table th:first-child {
	width: 6%;
}

.bp-wc-standings-table td:nth-child(2),
.bp-wc-standings-table th:nth-child(2) {
	width: 34%;
	min-width: 0;
	text-align: left;
}

.bp-wc-standings-table th:nth-child(3),
.bp-wc-standings-table td:nth-child(3),
.bp-wc-standings-table th:nth-child(4),
.bp-wc-standings-table td:nth-child(4),
.bp-wc-standings-table th:nth-child(5),
.bp-wc-standings-table td:nth-child(5),
.bp-wc-standings-table th:nth-child(6),
.bp-wc-standings-table td:nth-child(6),
.bp-wc-standings-table th:nth-child(7),
.bp-wc-standings-table td:nth-child(7),
.bp-wc-standings-table th:nth-child(8),
.bp-wc-standings-table td:nth-child(8),
.bp-wc-standings-table th:nth-child(9),
.bp-wc-standings-table td:nth-child(9),
.bp-wc-standings-table th:nth-child(10),
.bp-wc-standings-table td:nth-child(10) {
	width: 6.5%;
	white-space: nowrap;
}

.bp-wc-standings-table tbody tr.is-qualified {
	background: rgba(132, 204, 22, 0.1);
}

.bp-wc-standings-table tbody tr.is-qualified td:first-child {
	border-left: 3px solid var(--bp-wc-accent);
}

.bp-wc-standings-table tbody tr.is-possible {
	background: rgba(132, 204, 22, 0.04);
}

.bp-wc-standings-team {
	display: flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
	max-width: 100%;
}

.bp-wc-standings-team img {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	object-fit: contain;
}

.bp-wc-standings-team span {
	display: block;
	min-width: 0;
	flex: 1 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	line-height: 1.2;
}

.bp-wc-standings-qual {
	display: block;
	margin-top: 1px;
	font-size: 0.55rem;
	color: #65a30d;
	font-weight: 600;
	line-height: 1.15;
	overflow-wrap: break-word;
	word-break: break-word;
}

/* Bracket — tournament tree layout with connector lines */
.bp-wc-bracket-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.bp-wc-bracket-header .bp-wc-section__title {
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
}

.bp-wc-bracket-scroll-controls {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.bp-wc-bracket-scroll-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--bp-wc-border, #e5e7eb);
	border-radius: 50%;
	background: var(--bp-wc-bg, #fff);
	color: var(--bp-wc-accent, #84cc16);
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.bp-wc-bracket-scroll-arrow svg {
	width: 14px;
	height: 14px;
}

.bp-wc-bracket-scroll-arrow:hover {
	background: rgba(132, 204, 22, 0.12);
	border-color: var(--bp-wc-accent, #84cc16);
	color: #ffffff;
}

.bp-wc-bracket-scroll-arrow:focus-visible {
	outline: 2px solid var(--bp-wc-accent, #84cc16);
	outline-offset: 2px;
}

.bp-wc-bracket-scroll-arrow[hidden] {
	display: none;
}

.bp-wc-bracket-scroll {
	overflow-x: auto;
	overflow-y: visible;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 14px;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
	scrollbar-color: var(--bp-wc-accent, #84cc16) rgba(15, 23, 42, 0.55);
}

.bp-wc-bracket-scroll::-webkit-scrollbar {
	height: 8px;
}

.bp-wc-bracket-scroll::-webkit-scrollbar-track {
	background: linear-gradient(
		90deg,
		rgba(15, 23, 42, 0.72) 0%,
		rgba(30, 27, 75, 0.55) 45%,
		rgba(107, 33, 168, 0.4) 100%
	);
	border-radius: 999px;
	margin: 0 6px;
	border: 1px solid var(--bp-wc-border, rgba(255, 255, 255, 0.1));
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
}

.bp-wc-bracket-scroll::-webkit-scrollbar-thumb {
	background: linear-gradient(90deg, #65a30d 0%, var(--bp-wc-accent, #84cc16) 55%, #a3e635 100%);
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	box-shadow: 0 0 10px var(--bp-wc-accent-glow, rgba(132, 204, 22, 0.35));
}

.bp-wc-bracket-scroll::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(90deg, var(--bp-wc-accent, #84cc16) 0%, #a3e635 100%);
	box-shadow: 0 0 14px var(--bp-wc-accent-glow, rgba(132, 204, 22, 0.5));
}

.bp-wc-bracket-scroll::-webkit-scrollbar-thumb:active {
	background: linear-gradient(90deg, #4d7c0f 0%, #65a30d 100%);
}

.bp-wc-bracket {
	--bp-wc-bracket-rows: 16;
	--bp-wc-bracket-connector: #84cc16;
	--bp-wc-bracket-connector-width: 2px;
	--bp-wc-bracket-link-width: 40px;
	--bp-wc-bracket-link-half: calc(var(--bp-wc-bracket-link-width) * 0.5);
	--bp-wc-bracket-col-width: 220px;
	--bp-wc-bracket-row-height: 52px;
	--bp-wc-bracket-row-gap: 8px;

	display: flex;
	align-items: stretch;
	gap: 0;
	min-width: min-content;
	padding: 8px 4px 16px;
}

.bp-wc-bracket-round,
.bp-wc-bracket-connectors {
	scroll-snap-align: none;
}

.bp-wc-bracket-round {
	flex: 0 0 var(--bp-wc-bracket-col-width);
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: visible;
}

.bp-wc-page .bp-wc-bracket-round__title {
	margin: 0 0 14px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--bp-wc-accent);
	font-size: 0.78rem;
	font-weight: 700;
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	line-height: 1.3;
	flex-shrink: 0;
}

.bp-wc-bracket-round__body {
	position: relative;
	flex: 1;
	display: grid;
	grid-template-rows: repeat(var(--bp-wc-bracket-rows), minmax(var(--bp-wc-bracket-row-height), 1fr));
	row-gap: var(--bp-wc-bracket-row-gap);
	align-items: stretch;
	min-height: calc(var(--bp-wc-bracket-rows) * var(--bp-wc-bracket-row-height) + (var(--bp-wc-bracket-rows) - 1) * var(--bp-wc-bracket-row-gap));
	overflow: visible;
}

.bp-wc-bracket-slot {
	position: relative;
	grid-row: var(--bracket-row, auto) / span var(--bracket-span, 1);
	display: flex;
	align-items: center;
	align-self: stretch;
	z-index: 1;
	overflow: visible;
	min-height: 0;
}

/* Connector column between rounds */
.bp-wc-bracket-connectors {
	flex: 0 0 var(--bp-wc-bracket-link-width);
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: visible;
}

.bp-wc-bracket-connectors__title {
	flex-shrink: 0;
	margin: 0 0 14px;
	padding-bottom: 8px;
	border-bottom: 2px solid transparent;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.3;
	visibility: hidden;
}

.bp-wc-bracket-connectors__body {
	position: relative;
	flex: 1;
	display: grid;
	grid-template-rows: repeat(var(--bp-wc-bracket-rows), minmax(var(--bp-wc-bracket-row-height), 1fr));
	row-gap: var(--bp-wc-bracket-row-gap);
	align-items: stretch;
	min-height: calc(var(--bp-wc-bracket-rows) * var(--bp-wc-bracket-row-height) + (var(--bp-wc-bracket-rows) - 1) * var(--bp-wc-bracket-row-gap));
	overflow: visible;
}

.bp-wc-bracket-connector {
	position: relative;
	grid-row: var(--bracket-row, auto) / span var(--bracket-span, 1);
	align-self: stretch;
	z-index: 1;
	overflow: visible;
}

.bp-wc-bracket-connector__in,
.bp-wc-bracket-connector__out,
.bp-wc-bracket-connector__stem {
	position: absolute;
	display: block;
	background: var(--bp-wc-bracket-connector);
	pointer-events: none;
}

.bp-wc-bracket-connector__in {
	left: -1px;
	width: calc(50% + 1px);
	height: var(--bp-wc-bracket-connector-width);
	transform: translateY(-50%);
}

.bp-wc-bracket-connector__in--top {
	top: var(--feed-top, 25%);
}

.bp-wc-bracket-connector__in--bottom {
	top: var(--feed-bottom, 75%);
}

.bp-wc-bracket-connector__stem {
	left: calc(50% - (var(--bp-wc-bracket-connector-width) * 0.5));
	top: var(--feed-top, 25%);
	width: var(--bp-wc-bracket-connector-width);
	height: calc(var(--feed-bottom, 75%) - var(--feed-top, 25%));
}

.bp-wc-bracket-connector__out {
	left: 50%;
	top: var(--junction, 50%);
	width: calc(50% + 1px);
	height: var(--bp-wc-bracket-connector-width);
	transform: translateY(-50%);
}

.bp-wc-bracket-connector__out--final {
	top: var(--junction-final, 50%);
}

.bp-wc-bracket-connector__out--third {
	top: var(--junction-third, 80%);
	width: calc(50% + var(--bp-wc-bracket-col-width) + 1px);
}

.bp-wc-bracket-connector--split .bp-wc-bracket-connector__stem {
	height: calc(var(--stem-bottom, var(--feed-bottom, 75%)) - var(--feed-top, 25%));
}

.bp-wc-bracket-match {
	position: relative;
	z-index: 3;
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid #e5e7eb;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

/* Outgoing line — match card edge to connector hub */
.bp-wc-bracket-round:not([data-round="third_place"]):not([data-round="final"]) .bp-wc-bracket-match::after {
	content: '';
	position: absolute;
	left: 100%;
	top: 50%;
	/* width: calc(var(--bp-wc-bracket-link-half) + 1px);
	height: var(--bp-wc-bracket-connector-width);
	background: var(--bp-wc-bracket-connector); */
	transform: translateY(-50%);
	z-index: 2;
	pointer-events: none;
}

/* Incoming line — connector hub to match card edge */
.bp-wc-bracket-round:not([data-round="round_of_32"]) .bp-wc-bracket-match::before {
	content: '';
	position: absolute;
	right: 100%;
	top: 50%;
		/* width: calc(var(--bp-wc-bracket-link-half) + 1px);
		height: var(--bp-wc-bracket-connector-width);
		background: var(--bp-wc-bracket-connector); */
	transform: translateY(-50%);
	z-index: 2;
	pointer-events: none;
}

.bp-wc-bracket-match:hover {
	border-color: #c7d2fe;
	box-shadow: 0 6px 20px rgba(59, 130, 246, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
	transform: translateY(-1px);
}

.bp-wc-bracket-match__label {
	margin: 0 0 6px;
	font-size: 0.68rem;
	font-weight: 700;
	color: var(--bp-wc-card-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.bp-wc-bracket-match__team {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 4px 0;
	font-size: 0.78rem;
	font-weight: 600;
}

.bp-wc-bracket-match__team-info {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	flex: 1 1 auto;
}

.bp-wc-bracket-match__team-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bp-wc-bracket-match__score {
	flex-shrink: 0;
	font-variant-numeric: tabular-nums;
}

.bp-wc-bracket-match__team img {
	width: 18px;
	height: 18px;
	object-fit: contain;
	flex-shrink: 0;
}

.bp-wc-bracket-match__team.is-winner {
	color: #365314;
}

.bp-wc-bracket-empty {
	grid-row: 1 / -1;
	align-self: center;
	font-size: 0.78rem;
	color: var(--bp-wc-card-muted);
	font-style: italic;
	text-align: center;
}

.bp-wc-champion {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 20px;
	padding: 20px 24px;
	border-radius: 14px;
	border: 2px solid var(--bp-wc-accent);
	background: linear-gradient(135deg, rgba(132, 204, 22, 0.12) 0%, rgba(30, 27, 75, 0.08) 100%);
	text-align: center;
}

.bp-wc-champion img {
	width: 56px;
	height: 56px;
	object-fit: contain;
}

.bp-wc-champion__label {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #65a30d;
}

.bp-wc-champion__name {
	display: block;
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--bp-wc-surface);
}

/* Skeletons */
.bp-wc-skeleton {
	height: 16px;
	border-radius: 6px;
	background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
	background-size: 200% 100%;
	animation: bp-wc-shimmer 1.2s ease-in-out infinite;
}

.bp-wc-skeleton--card {
	height: 120px;
	border-radius: 12px;
}

.bp-wc-skeleton--table {
	height: 200px;
	border-radius: 12px;
}

.bp-wc-skeleton--bracket {
	height: 280px;
	min-width: 600px;
	border-radius: 12px;
}

.bp-wc-skeleton--timer {
	height: 48px;
	width: 100%;
	border-radius: 10px;
}

@keyframes bp-wc-shimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

/* Error */
.bp-wc-error {
	margin-top: 12px;
	padding: 14px 16px;
	border-radius: 10px;
	border: 1px solid #fecaca;
	background: #fef2f2;
	color: #991b1b;
	font-size: 0.9rem;
}

.bp-wc-error p {
	margin: 0 0 10px;
}

.bp-wc-error__retry {
	padding: 6px 14px;
	border: 1px solid #f87171;
	border-radius: 999px;
	background: #fff;
	color: #991b1b;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
}

.bp-wc-error__retry:hover {
	background: #fee2e2;
}

.bp-wc-editor-content {
	margin-top: 16px;
	padding: 15px;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	background: #fff;
	box-shadow: 0 4px 14px rgba(42, 64, 106, 0.08);
}

@media (max-width: 768px) {
	.bp-wc-page {
		padding: 10px 12px;
	}

	.bp-wc-nav {
		margin: 4px 0 14px;
		padding: 8px 0;
		gap: 8px;
	}

	.bp-wc-nav__tab {
		font-size: 12px;
		padding: 8px 12px;
	}

	.bp-wc-section {
		margin-bottom: 26px;
	}

	.bp-wc-hub-wrap {
		padding: 16px 0 28px;
	}

	.bp-wc-standings-list {
		gap: 12px;
	}

	.bp-wc-standings-group__title {
		padding: 10px 12px;
		font-size: 0.8rem;
	}

	.bp-wc-standings-table {
		font-size: 0.72rem;
		min-width: 480px;
	}

	.bp-wc-standings-table th,
	.bp-wc-standings-table td {
		padding: 6px 4px;
	}

	.bp-wc-standings-table th {
		font-size: 0.62rem;
	}

	.bp-wc-standings-table td:nth-child(2),
	.bp-wc-standings-table th:nth-child(2) {
		width: 32%;
	}

	.bp-wc-standings-team img {
		width: 16px;
		height: 16px;
	}
}

@media (max-width: 640px) {
	.bp-wc-hero__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.bp-wc-hero__feature {
		flex: 0 0 auto;
		width: 100%;
		padding: 4px 0;
	}

	.bp-wc-hero__feature-img {
		margin: 0 auto;
		max-width: min(100%, 260px);
		max-height: 110px;
	}

	.bp-wc-hero__countdown {
		width: 100%;
	}

	.bp-wc-bracket {
		scroll-snap-type: x mandatory;
		--bp-wc-bracket-col-width: 200px;
		--bp-wc-bracket-link-width: 32px;
		--bp-wc-bracket-row-height: 48px;
		--bp-wc-bracket-row-gap: 6px;
	}
}

@media (max-width: 900px) {
	.bp-wc-bracket {
		--bp-wc-bracket-col-width: 190px;
		--bp-wc-bracket-link-width: 28px;
		--bp-wc-bracket-row-height: 46px;
		--bp-wc-bracket-row-gap: 6px;
	}

	.bp-wc-bracket-match {
		padding: 8px 10px;
	}

	.bp-wc-bracket-match__team {
		font-size: 0.72rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bp-wc-skeleton,
	.bp-wc-hero__countdown.is-live .bp-wc-timer__value,
	.bp-wc-match-card__status--live {
		animation: none;
	}

	.bp-wc-bracket-match {
		transition: none;
	}

	.bp-wc-bracket-match:hover {
		transform: none;
	}
}
