/* Live Rugby Dashboard - styles */
.lrd-dashboard {
	--lrd-accent: #e63946;
	--lrd-gold: #ffd166;
	background: linear-gradient(140deg, #0a1830 0%, #12305e 60%, #0d2242 100%);
	border-radius: 20px;
	padding: clamp(18px, 3vw, 32px);
	color: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	box-shadow: 0 24px 60px rgba(4, 12, 28, 0.35);
	overflow: hidden;
	position: relative;
}
.lrd-dashboard::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(600px 200px at 85% -10%, rgba(230, 57, 70, 0.18), transparent 60%);
	pointer-events: none;
}
.lrd-dashboard > * { position: relative; }

.lrd-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 6px;
}
.lrd-title {
	margin: 0;
	font-size: clamp(20px, 2.6vw, 28px);
	font-weight: 800;
	letter-spacing: 0.4px;
}
.lrd-league {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.4px;
	color: #dbe7ff;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.16);
	padding: 7px 14px;
	border-radius: 999px;
	white-space: nowrap;
}

.lrd-group-title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 22px 0 14px;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #9fb6dd;
}
.lrd-group-title::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent);
}
.lrd-group-title:first-of-type { margin-top: 14px; }

.lrd-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}

.lrd-match {
	background: rgba(255, 255, 255, 0.055);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 16px;
	padding: 16px 18px 14px;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.lrd-match:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
	border-color: rgba(255, 255, 255, 0.22);
}
.lrd-is-live {
	border-color: rgba(230, 57, 70, 0.55);
	background: rgba(230, 57, 70, 0.08);
}

.lrd-match-top {
	display: flex;
	justify-content: flex-start;
	margin-bottom: 10px;
}
.lrd-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 999px;
}
.lrd-pill-live { background: var(--lrd-accent); color: #fff; }
.lrd-pill-ft { background: rgba(255, 255, 255, 0.14); color: #cfd9ec; }
.lrd-pill-pre { background: rgba(6, 147, 227, 0.25); color: #bfe3ff; border: 1px solid rgba(6, 147, 227, 0.4); }
.lrd-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #fff;
	animation: lrd-blink 1.1s ease-in-out infinite;
}
@keyframes lrd-blink {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.35; transform: scale(0.8); }
}

.lrd-team {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 7px 0;
}
.lrd-logo {
	width: 38px;
	height: 38px;
	object-fit: contain;
	flex-shrink: 0;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}
.lrd-team-name {
	flex: 1;
	font-weight: 600;
	font-size: 15px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.lrd-team-score {
	font-size: 26px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	min-width: 44px;
	text-align: right;
	color: #e8eefb;
}
.lrd-winner .lrd-team-name { color: #fff; }
.lrd-winner .lrd-team-score { color: var(--lrd-gold); }
.lrd-vs { color: rgba(255, 255, 255, 0.35); font-weight: 400; }

.lrd-meta {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 12px;
	color: rgba(219, 231, 255, 0.55);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lrd-status {
	text-align: center;
	padding: 34px 10px;
	color: #9fb6dd;
	font-size: 15px;
}
.lrd-footer { margin-top: 18px; text-align: right; }
.lrd-updated {
	font-size: 11px;
	letter-spacing: 0.6px;
	color: rgba(219, 231, 255, 0.45);
}

/* Share row */
.lrd-share {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.lrd-share-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.4px;
	color: rgba(219, 231, 255, 0.5);
	margin-right: 2px;
}
.lrd-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.07);
	color: #dbe7ff;
	cursor: pointer;
	padding: 0;
	transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.lrd-share-btn:hover {
	transform: translateY(-2px) scale(1.06);
	background: #fff;
	color: #0a1830;
}
.lrd-share-btn.lrd-copied {
	background: #2a9d48;
	border-color: #2a9d48;
	color: #fff;
}

@media (max-width: 480px) {
	.lrd-header { flex-direction: column; align-items: flex-start; }
	.lrd-team-score { font-size: 22px; }
}
