/**
 * BITS Rugby Turnier Live Import - Stylesheet
 * Premium Sports Dashboard Design mit Glassmorphismus & responsiven Layouts
 */

.bits-rugby-tournament-wrapper {
	/* Farb- und Designvariablen */
	--rugby-primary: #002d72;
	--rugby-primary-light: #4d8aff;
	--rugby-secondary: #e03e2d;
	--rugby-accent: #ffb100;
	--rugby-bg: #0f172a;
	--rugby-card: rgba(30, 41, 59, 0.65);
	--rugby-card-hover: rgba(45, 58, 86, 0.85);
	--rugby-text: #f8fafc;
	--rugby-text-muted: #94a3b8;
	--rugby-border: rgba(255, 255, 255, 0.08);
	--rugby-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.4);
	--rugby-glow: rgba(77, 138, 255, 0.2);

	font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 21px !important;
	background-color: var(--rugby-bg);
	color: var(--rugby-text);
	padding: 30px;
	border-radius: 20px;
	box-shadow: var(--rugby-shadow);
	position: relative;
	overflow: hidden;
	margin: 20px 0;
	line-height: 1.5;
	box-sizing: border-box;
}

/* Background Glow Effect */
.bits-rugby-tournament-wrapper .rugby-bg-glow {
	position: absolute;
	top: -10%;
	left: -10%;
	width: 120%;
	height: 120%;
	background: radial-gradient(circle at 10% 20%, var(--rugby-glow) 0%, transparent 35%),
				radial-gradient(circle at 90% 80%, var(--rugby-glow) 0%, transparent 35%);
	z-index: 0;
	pointer-events: none;
}

/* Alle Container in relativem Z-Index positionieren wegen Glow */
.bits-rugby-tournament-wrapper > div {
	position: relative;
	z-index: 1;
}

/* Überschriften */
.bits-rugby-tournament-wrapper .rugby-section-title {
	margin: 40px 0 20px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
	border-left: 5px solid var(--rugby-primary-light);
	padding-left: 15px;
}

.bits-rugby-tournament-wrapper .rugby-section-title h2 {
	margin: 0;
	font-size: 32px !important;
	font-weight: 800;
	letter-spacing: -0.5px;
	color: var(--rugby-text);
}

/* 1. Header Card */
.bits-rugby-tournament-wrapper .rugby-header-card {
	background: var(--rugby-card);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid var(--rugby-border);
	padding: 30px;
	border-radius: 16px;
	box-shadow: var(--rugby-shadow);
}

.bits-rugby-tournament-wrapper .rugby-header-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	flex-wrap: wrap;
	gap: 10px;
}

/* Live Badge & Pulse Animation */
.bits-rugby-tournament-wrapper .rugby-badge-live {
	background: rgba(224, 62, 45, 0.15);
	color: var(--rugby-secondary);
	padding: 6px 14px;
	border-radius: 50px;
	font-weight: 700;
	font-size: 15px !important;
	letter-spacing: 1px;
	text-transform: uppercase;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid rgba(224, 62, 45, 0.3);
}

.bits-rugby-tournament-wrapper .rugby-pulse-dot {
	width: 8px;
	height: 8px;
	background-color: var(--rugby-secondary);
	border-radius: 50%;
	display: inline-block;
	box-shadow: 0 0 0 0 rgba(224, 62, 45, 0.7);
	animation: rugby-pulse 1.6s infinite;
}

@keyframes rugby-pulse {
	0% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(224, 62, 45, 0.7);
	}
	70% {
		transform: scale(1);
		box-shadow: 0 0 0 6px rgba(224, 62, 45, 0);
	}
	100% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(224, 62, 45, 0);
	}
}

.bits-rugby-tournament-wrapper .rugby-sync-time {
	color: var(--rugby-text-muted);
	font-size: 18px !important;
	display: flex;
	align-items: center;
	gap: 6px;
}

.bits-rugby-tournament-wrapper .rugby-sync-time .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.bits-rugby-tournament-wrapper .rugby-tournament-title {
	font-size: 48px !important;
	font-weight: 800;
	margin: 0 0 10px 0;
	line-height: 1.1;
	letter-spacing: -1px;
}

.bits-rugby-tournament-wrapper .rugby-league-badge {
	display: inline-block;
	background: var(--rugby-primary);
	color: var(--rugby-primary-light);
	font-weight: 700;
	font-size: 18px !important;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	padding: 6px 16px;
	border-radius: 4px;
	border: 1px solid rgba(77, 138, 255, 0.3);
	margin-bottom: 20px;
}

.bits-rugby-tournament-wrapper .rugby-header-meta {
	display: flex;
	gap: 25px;
	flex-wrap: wrap;
}

.bits-rugby-tournament-wrapper .rugby-meta-item {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--rugby-text);
	font-size: 22px !important;
}

.bits-rugby-tournament-wrapper .rugby-meta-item .dashicons {
	color: var(--rugby-primary-light);
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.bits-rugby-tournament-wrapper .rugby-header-comment {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--rugby-border);
	display: flex;
	gap: 12px;
	color: var(--rugby-text-muted);
	font-size: 20px !important;
}

.bits-rugby-tournament-wrapper .rugby-header-comment .dashicons {
	color: var(--rugby-accent);
	font-size: 20px;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.bits-rugby-tournament-wrapper .rugby-header-comment p {
	margin: 0;
}

/* 2. Highlights (Last Result / Next Match) */
.bits-rugby-tournament-wrapper .rugby-highlights-section {
	margin-top: 25px;
}

.bits-rugby-tournament-wrapper .rugby-grid-highlights {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

@media (max-width: 768px) {
	.bits-rugby-tournament-wrapper .rugby-grid-highlights {
		grid-template-columns: 1fr;
	}
}

.bits-rugby-tournament-wrapper .rugby-highlight-card {
	background: var(--rugby-card);
	border: 1px solid var(--rugby-border);
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.bits-rugby-tournament-wrapper .rugby-highlight-card h3 {
	margin: 0 0 15px 0;
	font-size: 22px !important;
	font-weight: 700;
	color: var(--rugby-text-muted);
	text-transform: uppercase;
	letter-spacing: 1px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.bits-rugby-tournament-wrapper .rugby-highlight-card h3 .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.bits-rugby-tournament-wrapper .rugby-no-match {
	color: var(--rugby-text-muted);
	font-style: italic;
	margin: 10px 0 0 0;
}

.bits-rugby-tournament-wrapper .rugby-mini-match {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bits-rugby-tournament-wrapper .mini-meta {
	display: flex;
	gap: 15px;
	font-size: 16px !important;
	color: var(--rugby-text-muted);
	text-transform: uppercase;
	font-weight: 600;
}

.bits-rugby-tournament-wrapper .mini-meta .mini-round {
	color: var(--rugby-primary-light);
}

.bits-rugby-tournament-wrapper .mini-teams {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-weight: 700;
	font-size: 24px !important;
	gap: 10px;
}

.bits-rugby-tournament-wrapper .mini-team {
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bits-rugby-tournament-wrapper .mini-team.winner {
	color: var(--rugby-accent);
}

.bits-rugby-tournament-wrapper .mini-teams .mini-team:last-child {
	text-align: right;
}

.bits-rugby-tournament-wrapper .mini-score {
	display: flex;
	gap: 10px;
	background: rgba(0, 0, 0, 0.3);
	padding: 4px 12px;
	border-radius: 6px;
	border: 1px solid var(--rugby-border);
	font-family: monospace;
	font-size: 26px !important;
	color: var(--rugby-text);
}

/* 3. Pooltabellen */
.bits-rugby-tournament-wrapper .rugby-grid-pools {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
	gap: 25px;
}

.bits-rugby-tournament-wrapper .rugby-pool-card {
	background: var(--rugby-card);
	border: 1px solid var(--rugby-border);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.bits-rugby-tournament-wrapper .pool-header {
	background: rgba(255, 255, 255, 0.02);
	border-bottom: 1px solid var(--rugby-border);
	padding: 15px 20px;
}

.bits-rugby-tournament-wrapper .pool-header h3 {
	margin: 0;
	font-size: 24px !important;
	font-weight: 700;
	color: var(--rugby-primary-light);
}

.bits-rugby-tournament-wrapper .pool-table-wrapper {
	overflow-x: auto;
}

.bits-rugby-tournament-wrapper .rugby-pool-table {
	width: 100% !important;
	border-collapse: collapse !important;
	font-size: 22px !important;
	text-align: left !important;
	background-color: transparent !important;
}

.bits-rugby-tournament-wrapper .rugby-pool-table th,
.bits-rugby-tournament-wrapper .rugby-pool-table td {
	padding: 14px 16px !important;
	border-bottom: 1px solid var(--rugby-border) !important;
	background-color: transparent !important;
}

.bits-rugby-tournament-wrapper .rugby-pool-table th {
	background-color: rgba(30, 41, 59, 0.9) !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	font-size: 18px !important;
	letter-spacing: 0.5px !important;
	color: var(--rugby-text-muted) !important;
}

.bits-rugby-tournament-wrapper .rugby-pool-table tr:nth-child(even) {
	background-color: rgba(255, 255, 255, 0.02) !important;
}

.bits-rugby-tournament-wrapper .rugby-pool-table tr:nth-child(odd) {
	background-color: rgba(0, 0, 0, 0.15) !important;
}

.bits-rugby-tournament-wrapper .rugby-pool-table tr:hover {
	background-color: rgba(77, 138, 255, 0.08) !important;
}

.bits-rugby-tournament-wrapper .rugby-pool-table tr:last-child td {
	border-bottom: none !important;
}

.bits-rugby-tournament-wrapper .rugby-pool-table td.rank {
	font-weight: 800 !important;
	width: 30px !important;
	text-align: center !important;
	color: var(--rugby-text-muted) !important;
}

.bits-rugby-tournament-wrapper .rugby-pool-table td.team {
	font-weight: 700 !important;
	color: #ffffff !important;
	font-size: 22px !important;
	max-width: 150px !important;
}

.bits-rugby-tournament-wrapper .rugby-pool-table td.team .short-name {
	display: none !important;
}

@media (max-width: 480px) {
	.bits-rugby-tournament-wrapper .rugby-pool-table td.team .full-name {
		display: none !important;
	}
	.bits-rugby-tournament-wrapper .rugby-pool-table td.team .short-name {
		display: inline !important;
	}
}

.bits-rugby-tournament-wrapper .rugby-pool-table td.stat {
	text-align: center !important;
	font-weight: 600 !important;
	color: #e2e8f0 !important;
	font-size: 20px !important;
}

.bits-rugby-tournament-wrapper .rugby-pool-table td.points {
	color: var(--rugby-accent) !important;
	font-weight: 800 !important;
	font-size: 24px !important;
	background-color: rgba(255, 177, 0, 0.12) !important;
	text-shadow: 0 0 10px rgba(255, 177, 0, 0.2) !important;
}

.bits-rugby-tournament-wrapper .rugby-pool-table tr.top-rank-row {
	background-color: rgba(0, 45, 114, 0.25) !important;
}

.bits-rugby-tournament-wrapper .rugby-pool-table tr.top-rank-row td.rank {
	color: var(--rugby-accent) !important;
}

.bits-rugby-tournament-wrapper .diff-positive {
	color: #4cd137 !important;
	font-weight: 700 !important;
}

.bits-rugby-tournament-wrapper .diff-negative {
	color: #ff4d4d !important;
	font-weight: 700 !important;
}

.bits-rugby-tournament-wrapper .score-cell {
	color: #e2e8f0 !important;
	font-family: monospace !important;
	font-size: 20px !important;
	font-weight: 600 !important;
}

/* 4. Brackets (K.O.-Baum) */
.bits-rugby-tournament-wrapper .rugby-bracket-card {
	background: var(--rugby-card);
	border: 1px solid var(--rugby-border);
	border-radius: 12px;
	padding: 25px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	margin-bottom: 25px;
}

.bits-rugby-tournament-wrapper .rugby-bracket-container-outer {
	width: 100%;
	overflow-x: auto;
	padding-bottom: 10px;
}

.bits-rugby-tournament-wrapper .bracket-container {
	display: flex;
	gap: 40px;
	min-width: 750px;
	justify-content: flex-start;
}

.bits-rugby-tournament-wrapper .bracket-column-wrapper {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.bits-rugby-tournament-wrapper .bracket-round-title {
	font-weight: 800;
	text-transform: uppercase;
	font-size: 20px !important;
	color: var(--rugby-primary-light);
	letter-spacing: 1px;
	text-align: center;
	margin-bottom: 20px;
	background: rgba(77, 138, 255, 0.05);
	padding: 6px;
	border-radius: 4px;
	border: 1px solid rgba(77, 138, 255, 0.1);
}

.bits-rugby-tournament-wrapper .bracket-column-matches {
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	flex-grow: 1;
	gap: 20px;
}

.bits-rugby-tournament-wrapper .bracket-match {
	background: rgba(15, 23, 42, 0.4);
	border: 1px solid var(--rugby-border);
	border-radius: 10px;
	padding: 12px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
	position: relative;
	z-index: 2;
	transition: all 0.2s ease;
}

.bits-rugby-tournament-wrapper .bracket-match:hover {
	border-color: var(--rugby-primary-light);
	box-shadow: 0 4px 15px rgba(77, 138, 255, 0.25);
	background: var(--rugby-card-hover);
}

.bits-rugby-tournament-wrapper .bracket-tbd-match {
	border-style: dashed;
	opacity: 0.5;
}

.bits-rugby-tournament-wrapper .bracket-match-info {
	display: flex;
	justify-content: space-between;
	font-size: 16px !important;
	color: var(--rugby-text-muted);
	font-weight: 600;
	text-transform: uppercase;
	margin-bottom: 8px;
	border-bottom: 1px solid var(--rugby-border);
	padding-bottom: 5px;
}

.bits-rugby-tournament-wrapper .bracket-team-row {
	display: flex;
	justify-content: space-between;
	font-size: 20px !important;
	padding: 3px 0;
	font-weight: 600;
}

.bits-rugby-tournament-wrapper .bracket-team-row.winner {
	color: var(--rugby-accent);
}

.bits-rugby-tournament-wrapper .bracket-team-name {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 180px;
}

.bits-rugby-tournament-wrapper .bracket-team-score {
	font-family: monospace;
	font-weight: 700;
}

.bits-rugby-tournament-wrapper .bracket-pools-column {
	gap: 15px;
	justify-content: center;
}

.bits-rugby-tournament-wrapper .bracket-pool-mini-card {
	border: 1px solid var(--rugby-border);
	border-radius: 8px;
	padding: 10px;
	background: rgba(15, 23, 42, 0.3);
}

.bits-rugby-tournament-wrapper .bracket-pool-mini-card h4 {
	margin: 0 0 6px 0;
	font-size: 16px !important;
	color: var(--rugby-primary-light);
	text-align: center;
}

.bits-rugby-tournament-wrapper .mini-pool-table {
	width: 100% !important;
	font-size: 18px !important;
	border-collapse: collapse !important;
	background-color: transparent !important;
}

.bits-rugby-tournament-wrapper .mini-pool-table th {
	border-bottom: 1px solid var(--rugby-border) !important;
	color: var(--rugby-text-muted) !important;
	padding: 6px 4px !important;
	font-size: 16px !important;
	background-color: rgba(30, 41, 59, 0.8) !important;
	text-transform: uppercase !important;
}

.bits-rugby-tournament-wrapper .mini-pool-table td {
	padding: 8px 4px !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
	background-color: transparent !important;
	color: #ffffff !important;
}

.bits-rugby-tournament-wrapper .mini-pool-table tr:nth-child(even) {
	background-color: rgba(255, 255, 255, 0.02) !important;
}

.bits-rugby-tournament-wrapper .mini-pool-table tr:nth-child(odd) {
	background-color: rgba(0, 0, 0, 0.1) !important;
}

/* Bracket Connecting Lines */
.bits-rugby-tournament-wrapper .bracket-svg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 1;
}

/* 5. Endplatzierungen */
.bits-rugby-tournament-wrapper .rugby-final-standings-card {
	background: var(--rugby-card);
	border: 1px solid var(--rugby-border);
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	margin-bottom: 25px;
	max-width: 600px;
}

.bits-rugby-tournament-wrapper .rugby-final-table {
	width: 100% !important;
	border-collapse: collapse !important;
	background-color: transparent !important;
}

.bits-rugby-tournament-wrapper .rugby-final-table th,
.bits-rugby-tournament-wrapper .rugby-final-table td {
	padding: 12px 15px !important;
	border-bottom: 1px solid var(--rugby-border) !important;
	background-color: transparent !important;
	color: #ffffff !important;
}

.bits-rugby-tournament-wrapper .rugby-final-table th {
	text-align: left !important;
	font-weight: 700 !important;
	color: var(--rugby-text-muted) !important;
	text-transform: uppercase !important;
	font-size: 16px !important;
	letter-spacing: 0.5px !important;
	background-color: rgba(30, 41, 59, 0.9) !important;
}

.bits-rugby-tournament-wrapper .rugby-final-table tr:nth-child(even) {
	background-color: rgba(255, 255, 255, 0.02) !important;
}

.bits-rugby-tournament-wrapper .rugby-final-table tr:nth-child(odd) {
	background-color: rgba(0, 0, 0, 0.15) !important;
}

.bits-rugby-tournament-wrapper .rugby-final-table tr:last-child td {
	border-bottom: none !important;
}

.bits-rugby-tournament-wrapper .rugby-final-table td.rank-cell {
	width: 60px !important;
	font-weight: 700 !important;
	font-size: 24px !important;
	text-align: center !important;
}

.bits-rugby-tournament-wrapper .rugby-final-table td.team-name {
	font-size: 24px !important;
	font-weight: 700 !important;
}

.bits-rugby-tournament-wrapper .rugby-final-table tr.top-rank td.team-name {
	color: var(--rugby-accent) !important;
}

/* Vererbung der Textfarbe für strong-Tags in Tabellen erzwingen (gegen Theme-Overrides) */
.bits-rugby-tournament-wrapper .mini-pool-table td strong,
.bits-rugby-tournament-wrapper .rugby-final-table td strong,
.bits-rugby-tournament-wrapper .rugby-pool-table td strong {
	color: inherit !important;
}

/* 6. Spielplan (Schedule) */
.bits-rugby-tournament-wrapper .rugby-filters-container {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.bits-rugby-tournament-wrapper .rugby-filter-btn {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--rugby-border);
	color: var(--rugby-text-muted);
	padding: 6px 14px;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
	font-size: 16px !important;
	transition: all 0.2s;
}

.bits-rugby-tournament-wrapper .rugby-filter-btn:hover {
	background: rgba(255, 255, 255, 0.08);
	color: var(--rugby-text);
}

.bits-rugby-tournament-wrapper .rugby-filter-btn.active {
	background: var(--rugby-primary-light);
	color: white;
	border-color: var(--rugby-primary-light);
	box-shadow: 0 4px 10px rgba(77, 138, 255, 0.3);
}

.bits-rugby-tournament-wrapper .rugby-schedule-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

/* Match Card */
.bits-rugby-tournament-wrapper .rugby-match-card {
	background: var(--rugby-card);
	border: 1px solid var(--rugby-border);
	border-radius: 12px;
	padding: 16px 20px;
	display: flex;
	align-items: center;
	cursor: pointer;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	transition: all 0.25s ease;
}

.bits-rugby-tournament-wrapper .rugby-match-card:hover {
	transform: translateY(-2px);
	border-color: var(--rugby-primary-light);
	background: var(--rugby-card-hover);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.bits-rugby-tournament-wrapper .rugby-match-card.active {
	border-color: var(--rugby-primary-light);
	background: var(--rugby-card-hover);
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	box-shadow: none;
}

.bits-rugby-tournament-wrapper .rugby-match-card.hidden {
	display: none;
}

/* Match Left */
.bits-rugby-tournament-wrapper .match-left {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 120px;
	flex-shrink: 0;
}

.bits-rugby-tournament-wrapper .match-number {
	font-size: 18px !important;
	font-weight: 700;
	color: var(--rugby-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Status Badges */
.bits-rugby-tournament-wrapper .match-status-badge,
.bits-rugby-tournament-list-wrapper .match-status-badge {
	font-size: 16px !important;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 4px 10px;
	border-radius: 4px;
	display: inline-block;
	text-align: center;
	width: fit-content;
}

.bits-rugby-tournament-wrapper .status-planned,
.bits-rugby-tournament-list-wrapper .status-planned {
	background: rgba(255, 255, 255, 0.05) !important;
	color: #ffffff !important;
	border: 1px solid var(--rugby-border) !important;
}

.bits-rugby-tournament-wrapper .status-live,
.bits-rugby-tournament-list-wrapper .status-live {
	background: rgba(76, 209, 55, 0.15) !important;
	color: #4cd137 !important;
	border: 1px solid rgba(76, 209, 55, 0.3) !important;
	box-shadow: 0 0 10px rgba(76, 209, 55, 0.1) !important;
}

.bits-rugby-tournament-wrapper .status-completed,
.bits-rugby-tournament-list-wrapper .status-completed {
	background: rgba(255, 255, 255, 0.02) !important;
	color: #ffffff !important;
	border: 1px solid var(--rugby-border) !important;
	opacity: 0.8;
}

/* Match Center */
.bits-rugby-tournament-wrapper .match-center {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 0 20px;
}

.bits-rugby-tournament-wrapper .match-meta-top {
	display: flex;
	gap: 15px;
	font-size: 18px !important;
	font-weight: 600;
	text-transform: uppercase;
}

.bits-rugby-tournament-wrapper .match-time-badge {
	color: var(--rugby-primary-light);
}

.bits-rugby-tournament-wrapper .match-round-label {
	color: var(--rugby-text-muted);
}

.bits-rugby-tournament-wrapper .match-pairing {
	display: flex;
	align-items: center;
	gap: 15px;
	font-size: 28px !important;
	font-weight: 700;
}

.bits-rugby-tournament-wrapper .team-a,
.bits-rugby-tournament-wrapper .team-b {
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bits-rugby-tournament-wrapper .team-a {
	text-align: right;
}

.bits-rugby-tournament-wrapper .team-a.winner,
.bits-rugby-tournament-wrapper .team-b.winner {
	color: var(--rugby-accent);
}

.bits-rugby-tournament-wrapper .match-vs-score {
	display: flex;
	align-items: center;
	gap: 6px;
	background: rgba(0, 0, 0, 0.3);
	padding: 4px 14px;
	border-radius: 6px;
	border: 1px solid var(--rugby-border);
	font-family: monospace;
	font-size: 24px !important;
	width: 130px !important;
	justify-content: center;
	flex-shrink: 0;
}

.bits-rugby-tournament-wrapper .score-display {
	font-weight: 700;
}

.bits-rugby-tournament-wrapper .vs-divider {
	opacity: 0.4;
	font-size: 16px !important;
}

.bits-rugby-tournament-wrapper .match-meta-bottom {
	display: flex;
	gap: 20px;
	font-size: 18px !important;
	color: var(--rugby-text-muted);
}

.bits-rugby-tournament-wrapper .match-meta-bottom .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
	vertical-align: text-top;
}

.bits-rugby-tournament-wrapper .match-comment-indicator {
	color: var(--rugby-accent);
	font-weight: 600;
}

/* Match Right */
.bits-rugby-tournament-wrapper .match-right {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	flex-shrink: 0;
}

.bits-rugby-tournament-wrapper .expand-arrow {
	color: var(--rugby-text-muted);
	font-size: 24px;
	width: 24px;
	height: 24px;
	transition: transform 0.25s ease;
}

.bits-rugby-tournament-wrapper .rugby-match-card.active .expand-arrow {
	transform: rotate(180deg);
	color: var(--rugby-primary-light);
}

/* Ausklappbare Detail-Ansicht */
.bits-rugby-tournament-wrapper .rugby-match-details {
	max-height: 0;
	overflow: hidden;
	background: rgba(15, 23, 42, 0.25);
	border: 1px solid var(--rugby-border);
	border-top: none;
	border-bottom-left-radius: 12px;
	border-bottom-right-radius: 12px;
	margin-top: -16px;
	margin-bottom: 0px;
	transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s;
}

.bits-rugby-tournament-wrapper .rugby-match-details.open {
	max-height: 1000px; /* Beliebiger hoher Wert für CSS Transition */
	transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

.bits-rugby-tournament-wrapper .rugby-match-details.hidden-anim {
	display: none;
}

.bits-rugby-tournament-wrapper .details-inner {
	padding: 25px;
	border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.bits-rugby-tournament-wrapper .details-columns {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

@media (max-width: 600px) {
	.bits-rugby-tournament-wrapper .details-columns {
		flex-direction: column;
	}
	.bits-rugby-tournament-wrapper .stats-divider {
		width: 100%;
		height: 1px;
		margin: 10px 0;
	}
}

.bits-rugby-tournament-wrapper .team-stats-col {
	flex: 1;
}

.bits-rugby-tournament-wrapper .team-stats-col h4 {
	margin: 0 0 15px 0;
	font-size: 22px !important;
	font-weight: 700;
	color: var(--rugby-primary-light);
	border-bottom: 1px solid var(--rugby-border);
	padding-bottom: 6px;
}

.bits-rugby-tournament-wrapper .stats-divider {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: var(--rugby-text-muted);
	font-size: 14px !important;
	font-weight: 700;
	letter-spacing: 1px;
	opacity: 0.3;
}

.bits-rugby-tournament-wrapper .stats-rows {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.bits-rugby-tournament-wrapper .stat-detail-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 18px !important;
	font-weight: 500;
	background: rgba(255, 255, 255, 0.01);
	padding: 4px 8px;
	border-radius: 4px;
}

.bits-rugby-tournament-wrapper .stat-icon {
	margin-right: 6px;
	font-size: 20px !important;
}

.bits-rugby-tournament-wrapper .stat-label {
	flex-grow: 1;
	color: var(--rugby-text-muted);
}

.bits-rugby-tournament-wrapper .stat-val {
	font-family: monospace;
	font-weight: 700;
	font-size: 20px !important;
}

.bits-rugby-tournament-wrapper .cards-detail-row {
	display: flex;
	gap: 6px;
	margin-top: 10px;
	padding: 5px 0;
}

.bits-rugby-tournament-wrapper .card-icon-detail {
	width: 14px;
	height: 20px;
	border-radius: 2px;
	display: inline-block;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.bits-rugby-tournament-wrapper .card-icon-detail.yellow {
	background-color: #ffd200;
}

.bits-rugby-tournament-wrapper .card-icon-detail.red {
	background-color: #ff3838;
}

/* Walkover-Ansichten & Kommentare */
.bits-rugby-tournament-wrapper .walkover-announcement,
.bits-rugby-tournament-wrapper .match-not-played-yet {
	display: flex;
	align-items: center;
	gap: 15px;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid var(--rugby-border);
	padding: 15px;
	border-radius: 8px;
	color: var(--rugby-text-muted);
}

.bits-rugby-tournament-wrapper .walkover-announcement .dashicons,
.bits-rugby-tournament-wrapper .match-not-played-yet .dashicons {
	font-size: 28px;
	width: 28px;
	height: 28px;
}

.bits-rugby-tournament-wrapper .walkover-announcement .dashicons {
	color: var(--rugby-secondary);
}

.bits-rugby-tournament-wrapper .match-not-played-yet .dashicons {
	color: var(--rugby-primary-light);
}

.bits-rugby-tournament-wrapper .walkover-announcement p,
.bits-rugby-tournament-wrapper .match-not-played-yet p {
	margin: 0;
}

.bits-rugby-tournament-wrapper .match-detail-comment {
	margin-top: 20px;
	border-top: 1px solid var(--rugby-border);
	padding-top: 15px;
	font-size: 20px !important;
}

.bits-rugby-tournament-wrapper .match-detail-comment strong {
	color: var(--rugby-accent);
	display: block;
	margin-bottom: 5px;
}

.bits-rugby-tournament-wrapper .match-detail-comment p {
	margin: 0;
	font-style: italic;
	color: var(--rugby-text-muted);
}

/* Responsive Match Cards */
@media (max-width: 600px) {
	.bits-rugby-tournament-wrapper .rugby-match-card {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
		position: relative;
	}

	.bits-rugby-tournament-wrapper .match-left {
		width: 100%;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		border-bottom: 1px solid rgba(255, 255, 255, 0.04);
		padding-bottom: 10px;
	}

	.bits-rugby-tournament-wrapper .match-center {
		padding: 0;
		width: 100%;
	}

	.bits-rugby-tournament-wrapper .match-pairing {
		flex-direction: column;
		align-items: center;
		gap: 8px;
	}

	.bits-rugby-tournament-wrapper .team-a,
	.bits-rugby-tournament-wrapper .team-b {
		text-align: center;
		width: 100%;
	}

	.bits-rugby-tournament-wrapper .match-right {
		position: absolute;
		right: 15px;
		top: 15px;
	}
}

/* 7. Sponsoren Marquee (Laufband) */
.bits-rugby-tournament-wrapper .rugby-sponsors-section {
	margin-top: 40px;
}

.bits-rugby-tournament-wrapper .rugby-sponsors-marquee-outer {
	border-top: 1px solid var(--rugby-border);
	padding-top: 30px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
}

.bits-rugby-tournament-wrapper .marquee-title {
	font-size: 16px !important;
	font-weight: 700;
	color: var(--rugby-text-muted);
	text-transform: uppercase;
	letter-spacing: 1.5px;
}

.bits-rugby-tournament-wrapper .rugby-sponsors-track {
	display: flex;
	gap: 50px;
	width: max-content;
	animation: rugby-marquee 25s linear infinite;
}

@keyframes rugby-marquee {
	0% {
		transform: translateX(0);
	}
	100% {
		/* Da wir die Sponsorenliste verdreifacht haben, verschieben wir um genau 1/3 der Breite */
		transform: translateX(-33.333%);
	}
}

.bits-rugby-tournament-wrapper .rugby-sponsor-logo {
	height: 35px;
	width: auto;
	opacity: 0.45;
	filter: grayscale(100%) brightness(200%);
	transition: opacity 0.2s, filter 0.2s;
}

.bits-rugby-tournament-wrapper .rugby-sponsor-logo:hover {
	opacity: 0.95;
	filter: none;
}

/* CSS Error Alert */
.bits-rugby-error {
	background: rgba(224, 62, 45, 0.1);
	border-left: 4px solid var(--rugby-secondary);
	color: #fca5a5;
	padding: 15px 20px;
	border-radius: 6px;
	margin: 20px 0;
	font-weight: 500;
}

.bits-rugby-error p {
	margin: 0;
}

/* 8. Turnierliste Shortcode Styles [rugby_tournament_list] */
.bits-rugby-tournament-list-wrapper {
	--rugby-primary: #002d72;
	--rugby-primary-light: #4d8aff;
	--rugby-secondary: #e03e2d;
	--rugby-accent: #ffb100;
	--rugby-bg: #0f172a;
	--rugby-card: rgba(30, 41, 59, 0.65);
	--rugby-card-hover: rgba(45, 58, 86, 0.85);
	--rugby-text: #f8fafc;
	--rugby-text-muted: #94a3b8;
	--rugby-border: rgba(255, 255, 255, 0.08);
	--rugby-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.4);

	font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	background-color: var(--rugby-bg);
	color: var(--rugby-text);
	padding: 30px;
	border-radius: 20px;
	box-shadow: var(--rugby-shadow);
	margin: 20px 0;
	box-sizing: border-box;
}

.bits-rugby-tournament-list-wrapper .rugby-list-card {
	background: var(--rugby-card);
	border: 1px solid var(--rugby-border);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.bits-rugby-tournament-list-wrapper .list-header {
	background: rgba(255, 255, 255, 0.02);
	border-bottom: 1px solid var(--rugby-border);
	padding: 20px;
	border-left: 5px solid var(--rugby-primary-light);
}

.bits-rugby-tournament-list-wrapper .list-header h2 {
	margin: 0;
	font-size: 28px !important;
	font-weight: 800;
	color: var(--rugby-text);
}

.bits-rugby-tournament-list-wrapper .list-table-wrapper {
	overflow-x: auto;
}

.bits-rugby-tournament-list-wrapper .rugby-list-table {
	width: 100% !important;
	border-collapse: collapse !important;
	font-size: 20px !important;
	text-align: left !important;
	background-color: transparent !important;
}

.bits-rugby-tournament-list-wrapper .rugby-list-table th,
.bits-rugby-tournament-list-wrapper .rugby-list-table td {
	padding: 16px 20px !important;
	border-bottom: 1px solid var(--rugby-border) !important;
	background-color: transparent !important;
}

.bits-rugby-tournament-list-wrapper .rugby-list-table th {
	background-color: rgba(30, 41, 59, 0.9) !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	font-size: 16px !important;
	letter-spacing: 0.5px !important;
	color: #ffffff !important;
}

.bits-rugby-tournament-list-wrapper .rugby-list-table tr:nth-child(even) {
	background-color: rgba(255, 255, 255, 0.02) !important;
}

.bits-rugby-tournament-list-wrapper .rugby-list-table tr:nth-child(odd) {
	background-color: rgba(0, 0, 0, 0.15) !important;
}

.bits-rugby-tournament-list-wrapper .rugby-list-table tr:hover {
	background-color: rgba(77, 138, 255, 0.08) !important;
}

.bits-rugby-tournament-list-wrapper .rugby-list-table tr:last-child td {
	border-bottom: none !important;
}

.bits-rugby-tournament-list-wrapper .rugby-list-table td.tournament-name {
	font-weight: 700 !important;
	color: #ffffff !important;
	font-size: 22px !important;
}

.bits-rugby-tournament-list-wrapper .rugby-list-table td.division,
.bits-rugby-tournament-list-wrapper .rugby-list-table td.date,
.bits-rugby-tournament-list-wrapper .rugby-list-table td.location {
	color: #ffffff !important;
}

.bits-rugby-tournament-list-wrapper .rugby-list-table td.action a.rugby-filter-btn {
	background-color: #4d8aff !important;
	color: #ffffff !important;
	border: 1px solid #4d8aff !important;
	display: inline-block !important;
	text-decoration: none !important;
	padding: 6px 16px !important;
	border-radius: 6px !important;
	transition: all 0.2s !important;
	font-weight: 600 !important;
}

.bits-rugby-tournament-list-wrapper .rugby-list-table td.action a.rugby-filter-btn:hover {
	background-color: #ffffff !important;
	color: #0f172a !important;
	border-color: #ffffff !important;
}

/* Pulsierender Punkt für Live-Turnierliste */
.bits-rugby-tournament-list-wrapper .rugby-pulse-dot {
	width: 8px;
	height: 8px;
	background-color: var(--rugby-secondary);
	border-radius: 50%;
	display: inline-block;
	box-shadow: 0 0 0 0 rgba(224, 62, 45, 0.7);
	animation: rugby-pulse 1.6s infinite;
}

/* Mobile Optimierungen (Smartphone Hochkant-Ansicht) */
@media (max-width: 600px) {
	.bits-rugby-tournament-wrapper {
		padding: 15px !important;
		font-size: 15px !important;
		border-radius: 12px !important;
	}

	.bits-rugby-tournament-wrapper .rugby-tournament-title {
		font-size: 28px !important;
	}

	.bits-rugby-tournament-wrapper .rugby-section-title h2 {
		font-size: 22px !important;
	}

	.bits-rugby-tournament-wrapper .rugby-meta-item {
		font-size: 15px !important;
	}

	.bits-rugby-tournament-wrapper .rugby-header-comment {
		font-size: 15px !important;
	}

	.bits-rugby-tournament-wrapper .rugby-highlight-card h3 {
		font-size: 16px !important;
	}

	.bits-rugby-tournament-wrapper .mini-meta {
		font-size: 13px !important;
	}

	.bits-rugby-tournament-wrapper .mini-teams {
		font-size: 16px !important;
	}

	.bits-rugby-tournament-wrapper .mini-score {
		font-size: 18px !important;
	}

	.bits-rugby-tournament-wrapper .pool-header h3 {
		font-size: 18px !important;
	}

	.bits-rugby-tournament-wrapper .rugby-pool-table {
		font-size: 15px !important;
	}

	.bits-rugby-tournament-wrapper .rugby-pool-table th {
		font-size: 13px !important;
		padding: 8px 6px !important;
	}

	.bits-rugby-tournament-wrapper .rugby-pool-table td {
		padding: 8px 6px !important;
	}

	.bits-rugby-tournament-wrapper .rugby-pool-table td.team {
		font-size: 15px !important;
	}

	.bits-rugby-tournament-wrapper .rugby-pool-table td.stat {
		font-size: 14px !important;
	}

	.bits-rugby-tournament-wrapper .rugby-pool-table td.points {
		font-size: 16px !important;
	}

	.bits-rugby-tournament-wrapper .score-cell {
		font-size: 14px !important;
	}

	.bits-rugby-tournament-wrapper .match-number {
		font-size: 14px !important;
	}

	.bits-rugby-tournament-wrapper .match-status-badge,
	.bits-rugby-tournament-list-wrapper .match-status-badge {
		font-size: 13px !important;
		padding: 2px 6px !important;
	}

	.bits-rugby-tournament-wrapper .match-meta-top {
		font-size: 13px !important;
	}

	.bits-rugby-tournament-wrapper .match-pairing {
		font-size: 18px !important;
	}

	.bits-rugby-tournament-wrapper .match-vs-score {
		font-size: 18px !important;
		width: 100px !important;
		padding: 4px 10px !important;
	}

	.bits-rugby-tournament-wrapper .vs-divider {
		font-size: 13px !important;
	}

	.bits-rugby-tournament-wrapper .match-meta-bottom {
		font-size: 13px !important;
	}

	.bits-rugby-tournament-wrapper .team-stats-col h4 {
		font-size: 16px !important;
	}

	.bits-rugby-tournament-wrapper .stat-detail-row {
		font-size: 14px !important;
	}

	.bits-rugby-tournament-wrapper .stat-val {
		font-size: 15px !important;
	}

	.bits-rugby-tournament-wrapper .match-detail-comment {
		font-size: 15px !important;
	}

	/* Final standings table */
	.bits-rugby-tournament-wrapper .rugby-final-table th {
		font-size: 13px !important;
		padding: 8px !important;
	}

	.bits-rugby-tournament-wrapper .rugby-final-table td {
		padding: 8px !important;
	}

	.bits-rugby-tournament-wrapper .rugby-final-table td.rank-cell {
		font-size: 16px !important;
		width: 40px !important;
	}

	.bits-rugby-tournament-wrapper .rugby-final-table td.team-name {
		font-size: 16px !important;
	}

	/* Tournament list shortcode mobile adjustments */
	.bits-rugby-tournament-list-wrapper {
		padding: 15px !important;
		border-radius: 12px !important;
	}

	.bits-rugby-tournament-list-wrapper .list-header h2 {
		font-size: 20px !important;
	}

	.bits-rugby-tournament-list-wrapper .rugby-list-table {
		font-size: 14px !important;
	}

	.bits-rugby-tournament-list-wrapper .rugby-list-table th,
	.bits-rugby-tournament-list-wrapper .rugby-list-table td {
		padding: 10px 8px !important;
	}

	.bits-rugby-tournament-list-wrapper .rugby-list-table th {
		font-size: 12px !important;
	}

	.bits-rugby-tournament-list-wrapper .rugby-list-table td.tournament-name {
		font-size: 15px !important;
	}
}

@media (max-width: 480px) {
	/* Verberge die Siege, Unentschieden und Niederlagen auf sehr schmalen Bildschirmen in der Pool-Tabelle */
	.bits-rugby-tournament-wrapper .rugby-pool-table th:nth-child(4),
	.bits-rugby-tournament-wrapper .rugby-pool-table td:nth-child(4),
	.bits-rugby-tournament-wrapper .rugby-pool-table th:nth-child(5),
	.bits-rugby-tournament-wrapper .rugby-pool-table td:nth-child(5),
	.bits-rugby-tournament-wrapper .rugby-pool-table th:nth-child(6),
	.bits-rugby-tournament-wrapper .rugby-pool-table td:nth-child(6) {
		display: none !important;
	}

	/* Verberge die Division (3) und Location (5) auf sehr schmalen Bildschirmen in der Turnierliste */
	.bits-rugby-tournament-list-wrapper .rugby-list-table th:nth-child(3),
	.bits-rugby-tournament-list-wrapper .rugby-list-table td:nth-child(3),
	.bits-rugby-tournament-list-wrapper .rugby-list-table th:nth-child(5),
	.bits-rugby-tournament-list-wrapper .rugby-list-table td:nth-child(5) {
		display: none !important;
	}
}

