.tsdb-pw {
	--tsdb-pw-ink: #f8f4ea;
	--tsdb-pw-ink-strong: #ffffff;
	--tsdb-pw-soft: #c9c3b5;
	--tsdb-pw-muted: #918b80;
	--tsdb-pw-line: rgba(255, 255, 255, 0.12);
	--tsdb-pw-line-strong: rgba(229, 178, 75, 0.34);
	--tsdb-pw-paper: #111317;
	--tsdb-pw-panel: #17191f;
	--tsdb-pw-panel-strong: #20232a;
	--tsdb-pw-gold: #e5b24b;
	--tsdb-pw-gold-soft: rgba(229, 178, 75, 0.16);
	--tsdb-pw-live: #e23d3d;
	--tsdb-pw-live-soft: rgba(226, 61, 61, 0.16);
	--tsdb-pw-win: #1fc084;
	--tsdb-pw-blue: #6aa8ff;
	position: relative;
	isolation: isolate;
	width: 100%;
	max-width: 100%;
	padding: 14px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 8px;
	background:
		linear-gradient(135deg, rgba(229, 178, 75, 0.13), transparent 28%),
		linear-gradient(180deg, #181a20 0%, #0f1115 100%);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.26);
	color: var(--tsdb-pw-ink);
	font-family: "Aptos", "Satoshi", "Manrope", ui-sans-serif, system-ui, sans-serif;
}

.tsdb-pw::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	content: "";
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 42px 42px;
	mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.9), transparent 82%);
}

.tsdb-pw * {
	box-sizing: border-box;
}

.tsdb-pw-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	margin-bottom: 14px;
	padding: 0 2px 12px;
	border-bottom: 1px solid var(--tsdb-pw-line);
}

.tsdb-pw-head h3 {
	margin: 0;
	color: var(--tsdb-pw-ink-strong);
	font-size: clamp(1.05rem, 1.6vw, 1.36rem);
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: 0;
}

.tsdb-pw-kicker:empty {
	display: none;
}

.tsdb-pw-kicker,
.tsdb-pw-refresh {
	color: var(--tsdb-pw-muted);
	font-size: 0.68rem;
	font-weight: 850;
	letter-spacing: 0;
	text-transform: uppercase;
}

.tsdb-pw-refresh {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 28px;
	padding: 0 10px;
	border: 1px solid var(--tsdb-pw-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.055);
	color: var(--tsdb-pw-soft);
	white-space: nowrap;
}

.tsdb-pw-refresh::before,
.tsdb-pw-live-dot {
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: var(--tsdb-pw-win);
	box-shadow: 0 0 0 4px rgba(31, 192, 132, 0.13);
	content: "";
}

.tsdb-pw-live-dot {
	display: inline-block;
}

.tsdb-pw-loading,
.tsdb-pw-empty {
	padding: 22px 14px;
	border: 1px solid var(--tsdb-pw-line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.055);
	color: var(--tsdb-pw-soft);
	font-size: 0.9rem;
	font-weight: 760;
	text-align: center;
}

.tsdb-pw-track {
	display: grid;
	grid-auto-columns: minmax(292px, 352px);
	grid-auto-flow: column;
	gap: 12px;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	scroll-snap-type: x proximity;
	padding: 2px 2px 14px;
	scrollbar-color: rgba(229, 178, 75, 0.6) rgba(255, 255, 255, 0.08);
	scrollbar-width: thin;
}

.tsdb-pw-track::-webkit-scrollbar {
	height: 8px;
}

.tsdb-pw-track::-webkit-scrollbar-track {
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
}

.tsdb-pw-track::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: linear-gradient(90deg, var(--tsdb-pw-gold), rgba(255, 255, 255, 0.5));
}

.tsdb-pw-card {
	position: relative;
	scroll-snap-align: start;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	gap: 14px;
	min-height: 188px;
	padding: 14px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 8px;
	background:
		linear-gradient(150deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03) 42%),
		linear-gradient(180deg, rgba(32, 35, 42, 0.96), rgba(18, 20, 25, 0.96));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.11), 0 14px 28px rgba(0, 0, 0, 0.22);
	transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tsdb-pw-card::before {
	position: absolute;
	top: 0;
	right: 14px;
	left: 14px;
	height: 2px;
	border-radius: 999px;
	background: linear-gradient(90deg, transparent, var(--tsdb-pw-gold), transparent);
	content: "";
}

.tsdb-pw-card:hover {
	transform: translateY(-2px);
	border-color: var(--tsdb-pw-line-strong);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 18px 34px rgba(0, 0, 0, 0.32);
}

.tsdb-pw-card-glow {
	position: absolute;
	inset: auto -18px -34px 34%;
	height: 92px;
	pointer-events: none;
	background: radial-gradient(ellipse at center, rgba(229, 178, 75, 0.18), transparent 68%);
}

.tsdb-pw-card.is-live {
	border-color: rgba(226, 61, 61, 0.55);
	background:
		linear-gradient(150deg, rgba(226, 61, 61, 0.2), rgba(255, 255, 255, 0.035) 44%),
		linear-gradient(180deg, rgba(35, 24, 27, 0.98), rgba(18, 20, 25, 0.98));
}

.tsdb-pw-card.is-live::before {
	background: linear-gradient(90deg, transparent, var(--tsdb-pw-live), var(--tsdb-pw-gold), transparent);
}

.tsdb-pw-card.is-finished {
	opacity: 0.92;
}

.tsdb-pw-card-top,
.tsdb-pw-card footer {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-width: 0;
}

.tsdb-pw-card-top {
	min-height: 28px;
}

.tsdb-pw-league-name {
	min-width: 0;
	overflow: hidden;
	color: var(--tsdb-pw-soft);
	font-size: 0.72rem;
	font-weight: 850;
	letter-spacing: 0;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

.tsdb-pw-versus {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(76px, 92px) minmax(0, 1fr);
	align-items: center;
	gap: 10px;
}

.tsdb-pw-team {
	min-width: 0;
	display: grid;
	grid-template-rows: 48px auto;
	justify-items: center;
	align-items: center;
	gap: 8px;
	color: var(--tsdb-pw-ink-strong);
	font-size: 0.86rem;
	font-weight: 880;
	line-height: 1.15;
	text-align: center;
}

.tsdb-pw-team span,
.tsdb-pw-row-team span,
.tsdb-pw-card footer span {
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tsdb-pw-score {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	justify-content: center;
	min-height: 58px;
	padding: 8px 7px;
	border: 1px solid rgba(229, 178, 75, 0.22);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.28);
	color: var(--tsdb-pw-ink-strong);
	font-size: 1.34rem;
	font-weight: 950;
	font-variant-numeric: tabular-nums;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tsdb-pw-score strong {
	min-width: 22px;
	color: inherit;
	font: inherit;
	text-align: center;
}

.tsdb-pw-score span {
	color: var(--tsdb-pw-gold);
	font-size: 0.95rem;
	font-weight: 900;
}

.tsdb-pw-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-width: 66px;
	height: 26px;
	padding: 0 10px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.075);
	color: var(--tsdb-pw-soft);
	font-size: 0.64rem;
	font-weight: 950;
	letter-spacing: 0;
	text-transform: uppercase;
	white-space: nowrap;
}

.tsdb-pw-pill.is-live {
	border-color: rgba(226, 61, 61, 0.74);
	background: var(--tsdb-pw-live);
	color: #fff8f1;
	box-shadow: 0 0 0 4px var(--tsdb-pw-live-soft);
}

.tsdb-pw-pill.is-finished {
	border-color: rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.14);
	color: var(--tsdb-pw-ink);
}

.tsdb-pw-logo,
.tsdb-pw-logo-fallback {
	width: 48px;
	height: 48px;
	flex: 0 0 48px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	object-fit: contain;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(226, 220, 205, 0.9));
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.tsdb-pw-logo {
	padding: 5px;
}

.tsdb-pw-logo-fallback {
	display: inline-block;
	background:
		linear-gradient(135deg, rgba(229, 178, 75, 0.8), rgba(255, 255, 255, 0.16)),
		#252932;
}

.tsdb-pw-card footer {
	padding-top: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: var(--tsdb-pw-muted);
	font-size: 0.72rem;
	font-weight: 760;
}

.tsdb-pw-card-time {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 6px;
	color: var(--tsdb-pw-gold);
	font-weight: 920;
}

.tsdb-pw-card-time::before {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: currentColor;
	content: "";
}

.tsdb-pw-card-venue {
	text-align: right;
}

.tsdb-pw-calendar-shell:empty {
	display: none;
}

.tsdb-pw-calendar-shell {
	margin-bottom: 12px;
	padding: 10px;
	border: 1px solid var(--tsdb-pw-line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.055);
}

.tsdb-pw-cal-head {
	display: grid;
	grid-template-columns: 34px 1fr 34px;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.tsdb-pw-cal-head strong {
	color: var(--tsdb-pw-ink-strong);
	font-size: 0.9rem;
	font-weight: 900;
	text-align: center;
	text-transform: capitalize;
}

.tsdb-pw-cal-head button,
.tsdb-pw-cal-day {
	border: 1px solid var(--tsdb-pw-line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.075);
	color: var(--tsdb-pw-ink);
	cursor: pointer;
}

.tsdb-pw-cal-head button {
	width: 34px;
	height: 32px;
	font-size: 1.25rem;
	line-height: 1;
}

.tsdb-pw-cal-weekdays,
.tsdb-pw-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 5px;
}

.tsdb-pw-cal-weekdays {
	margin-bottom: 6px;
	color: var(--tsdb-pw-muted);
	font-size: 0.62rem;
	font-weight: 900;
	text-align: center;
	text-transform: uppercase;
}

.tsdb-pw-cal-day {
	aspect-ratio: 1;
	min-height: 32px;
	font-size: 0.78rem;
	font-weight: 900;
}

.tsdb-pw-cal-day.is-muted {
	opacity: 0.35;
}

.tsdb-pw-cal-day.is-today {
	border-color: var(--tsdb-pw-line-strong);
	background: var(--tsdb-pw-gold-soft);
}

.tsdb-pw-cal-day.is-active {
	border-color: var(--tsdb-pw-gold);
	background: var(--tsdb-pw-gold);
	color: #17130b;
}

.tsdb-pw-day-summary {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
	padding: 10px 12px;
	border: 1px solid var(--tsdb-pw-line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.065);
	color: var(--tsdb-pw-soft);
	font-size: 0.84rem;
	font-weight: 820;
	text-transform: capitalize;
}

.tsdb-pw-league-list {
	display: grid;
	gap: 10px;
}

.tsdb-pw-league {
	overflow: hidden;
	border: 1px solid var(--tsdb-pw-line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.055);
}

.tsdb-pw-league header {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 10px 12px;
	border-bottom: 1px solid var(--tsdb-pw-line);
	background: rgba(255, 255, 255, 0.055);
}

.tsdb-pw-league header strong {
	color: var(--tsdb-pw-ink-strong);
	font-size: 0.86rem;
	font-weight: 900;
}

.tsdb-pw-league header span {
	display: block;
	color: var(--tsdb-pw-muted);
	font-size: 0.7rem;
	font-weight: 760;
}

.tsdb-pw-match-list {
	display: grid;
}

.tsdb-pw-row {
	display: grid;
	grid-template-columns: 62px minmax(0, 1fr) 66px minmax(0, 1fr) 72px;
	align-items: center;
	gap: 9px;
	padding: 10px 12px;
	border-top: 1px solid var(--tsdb-pw-line);
}

.tsdb-pw-row:first-child {
	border-top: 0;
}

.tsdb-pw-row.is-live {
	background: var(--tsdb-pw-live-soft);
}

.tsdb-pw-row time {
	color: var(--tsdb-pw-muted);
	font-size: 0.72rem;
	font-weight: 850;
}

.tsdb-pw-row strong {
	color: var(--tsdb-pw-ink-strong);
	font-size: 0.9rem;
	font-weight: 950;
	font-variant-numeric: tabular-nums;
	text-align: center;
	white-space: nowrap;
}

.tsdb-pw-row-team,
.tsdb-pw-team-cell {
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--tsdb-pw-ink);
	font-size: 0.8rem;
	font-weight: 820;
}

.tsdb-pw-row-team .tsdb-pw-logo,
.tsdb-pw-row-team .tsdb-pw-logo-fallback,
.tsdb-pw-team-cell .tsdb-pw-logo,
.tsdb-pw-team-cell .tsdb-pw-logo-fallback,
.tsdb-pw-league header .tsdb-pw-logo,
.tsdb-pw-league header .tsdb-pw-logo-fallback,
.tsdb-pw-table-title .tsdb-pw-logo,
.tsdb-pw-table-title .tsdb-pw-logo-fallback {
	width: 28px;
	height: 28px;
	flex-basis: 28px;
	padding: 3px;
}

.tsdb-pw-table-title {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 10px;
	color: var(--tsdb-pw-ink-strong);
	font-size: 0.94rem;
	font-weight: 900;
}

.tsdb-pw-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--tsdb-pw-line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.04);
}

.tsdb-pw-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.8rem;
}

.tsdb-pw-table th,
.tsdb-pw-table td {
	padding: 9px 8px;
	border-bottom: 1px solid var(--tsdb-pw-line);
	color: var(--tsdb-pw-soft);
	text-align: center;
	white-space: nowrap;
}

.tsdb-pw-table th {
	color: var(--tsdb-pw-muted);
	font-size: 0.66rem;
	font-weight: 900;
	text-transform: uppercase;
}

.tsdb-pw-table th:nth-child(2),
.tsdb-pw-table td:nth-child(2) {
	text-align: left;
}

@media (max-width: 680px) {
	.tsdb-pw {
		padding: 12px;
	}

	.tsdb-pw-head {
		grid-template-columns: 1fr;
		align-items: start;
		gap: 8px;
	}

	.tsdb-pw-refresh {
		justify-self: start;
	}

	.tsdb-pw-track {
		grid-auto-columns: minmax(280px, 86vw);
	}

	.tsdb-pw-card {
		min-height: 180px;
		padding: 13px;
	}

	.tsdb-pw-row {
		grid-template-columns: 50px minmax(0, 1fr) 58px;
		gap: 8px;
	}

	.tsdb-pw-row .tsdb-pw-row-team:nth-of-type(2),
	.tsdb-pw-row .tsdb-pw-pill {
		grid-column: 2 / -1;
	}
}

@media (max-width: 420px) {
	.tsdb-pw {
		padding: 10px;
		border-radius: 8px;
	}

	.tsdb-pw-track {
		grid-auto-columns: minmax(254px, 88vw);
		gap: 10px;
	}

	.tsdb-pw-card {
		min-height: 172px;
		padding: 12px;
	}

	.tsdb-pw-versus {
		grid-template-columns: minmax(0, 1fr) minmax(66px, 78px) minmax(0, 1fr);
		gap: 7px;
	}

	.tsdb-pw-team {
		grid-template-rows: 40px auto;
		font-size: 0.76rem;
	}

	.tsdb-pw-logo,
	.tsdb-pw-logo-fallback {
		width: 40px;
		height: 40px;
		flex-basis: 40px;
	}

	.tsdb-pw-score {
		min-height: 52px;
		font-size: 1.12rem;
	}

	.tsdb-pw-pill {
		min-width: 58px;
		padding: 0 8px;
	}
}
