@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
	--c-bg: #07090d;
	--c-bg-2: #0c1018;
	--c-fg: #f5f6f8;
	--c-fg-dim: #8b909c;
	--c-green: #3dd68c;
	--c-green-dim: #1f7a4e;
	--c-orange: #ff6b35;
	--c-card: rgba(255,255,255,0.04);
	--c-card-hover: rgba(255,255,255,0.07);
	--c-border: rgba(255,255,255,0.08);
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	background: var(--c-bg);
	color: var(--c-fg);
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	background:
		radial-gradient(ellipse 80% 50% at 50% -20%, rgba(61,214,140,0.12), transparent),
		radial-gradient(ellipse 60% 40% at 100% 100%, rgba(255,107,53,0.08), transparent),
		var(--c-bg);
	background-attachment: fixed;
}

.display, h1.display {
	font-family: 'Bebas Neue', sans-serif;
	font-weight: 400;
	letter-spacing: 0.02em;
	line-height: 0.95;
}

a { color: inherit; text-decoration: none; }

.container {
	max-width: 720px;
	margin: 0 auto;
	padding: 1.25rem;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-family: 'Bebas Neue', sans-serif;
	font-size: 1.5rem;
	letter-spacing: 0.05em;
}

.brand-logo {
	width: 42px;
	height: 42px;
	border-radius: 8px;
	object-fit: cover;
	background: #0a1a3a;
}

.brand-dot {
	width: 10px; height: 10px; border-radius: 50%;
	background: var(--c-green);
	box-shadow: 0 0 12px var(--c-green);
	animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.6; transform: scale(0.8); }
}

.hero {
	padding: 3.5rem 0 2.5rem;
	text-align: left;
}

.hero h1 {
	font-size: clamp(3rem, 12vw, 5.5rem);
	margin: 0 0 0.75rem;
	background: linear-gradient(180deg, #fff 0%, #b8bcc7 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.hero .tagline {
	font-size: 1.05rem;
	color: var(--c-fg-dim);
	max-width: 28rem;
	line-height: 1.5;
	margin: 0;
}

.hero .green-stripe {
	display: inline-block;
	width: 48px; height: 3px;
	background: var(--c-green);
	margin-bottom: 1.25rem;
	border-radius: 2px;
}

.cards {
	display: grid;
	gap: 0.875rem;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.cards { grid-template-columns: repeat(2, 1fr); }
	.cards .card-wide { grid-column: 1 / -1; }
}

.card {
	background: var(--c-card);
	border: 1px solid var(--c-border);
	border-radius: 16px;
	padding: 1.5rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	transition: all 0.2s ease;
	cursor: pointer;
	position: relative;
	overflow: hidden;
}

.card:hover {
	background: var(--c-card-hover);
	border-color: var(--c-green-dim);
	transform: translateY(-2px);
}

.card-eyebrow {
	font-family: 'Bebas Neue', sans-serif;
	font-size: 0.85rem;
	letter-spacing: 0.12em;
	color: var(--c-green);
}

.card-title {
	font-size: 1.4rem;
	font-weight: 700;
	margin: 0;
	line-height: 1.15;
}

.card-desc {
	color: var(--c-fg-dim);
	font-size: 0.92rem;
	margin: 0;
	line-height: 1.45;
}

.card-arrow {
	position: absolute;
	right: 1.25rem;
	bottom: 1.25rem;
	font-size: 1.2rem;
	color: var(--c-green);
	opacity: 0.7;
}

/* ─── Court page specific ─── */
.court-status {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0.875rem 1rem;
	border-radius: 12px;
	background: var(--c-card);
	border: 1px solid var(--c-border);
	font-size: 0.95rem;
	margin: 1rem 0 1.5rem;
}

.status-dot {
	width: 10px; height: 10px; border-radius: 50%;
}

.status-dot.rec { background: var(--c-orange); animation: pulse 1.4s ease-in-out infinite; }
.status-dot.idle { background: var(--c-fg-dim); }
.status-dot.live { background: var(--c-green); }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 1rem 1.25rem;
	border-radius: 14px;
	border: none;
	cursor: pointer;
	font-family: inherit;
	font-size: 1.05rem;
	font-weight: 600;
	transition: all 0.15s ease;
	text-align: center;
	width: 100%;
}

.btn-primary {
	background: var(--c-green);
	color: #061a10;
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(61,214,140,0.25); }

.btn-secondary {
	background: var(--c-card);
	color: var(--c-fg);
	border: 1px solid var(--c-border);
}

.btn-secondary:hover { background: var(--c-card-hover); border-color: var(--c-fg-dim); }

.btn-orange {
	background: var(--c-orange);
	color: #1a0a02;
}

.btn-orange:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,107,53,0.25); }

.btn-stack { display: grid; gap: 0.75rem; margin-top: 1rem; }

/* ─── Video / match ─── */
.video-wrap {
	width: 100%;
	aspect-ratio: 16/9;
	background: #000;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--c-border);
	margin-bottom: 1rem;
}

.video-wrap video {
	width: 100%; height: 100%;
	object-fit: contain;
	background: #000;
}

.match-meta {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1rem;
	color: var(--c-fg-dim);
	font-size: 0.92rem;
}

.match-meta strong { color: var(--c-fg); font-weight: 600; }

/* ─── Footer ─── */
.footer {
	margin-top: 4rem;
	padding: 2rem 0 3rem;
	border-top: 1px solid var(--c-border);
	color: var(--c-fg-dim);
	font-size: 0.82rem;
	text-align: center;
}

.footer .powered {
	font-family: 'Bebas Neue', sans-serif;
	letter-spacing: 0.1em;
	color: var(--c-fg-dim);
	opacity: 0.8;
}

/* ─── Utilities ─── */
.text-green { color: var(--c-green); }
.text-orange { color: var(--c-orange); }
.text-dim { color: var(--c-fg-dim); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.fade-in { animation: fadeIn 0.4s ease both; }

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

.fade-in-1 { animation-delay: 0.05s; }
.fade-in-2 { animation-delay: 0.12s; }
.fade-in-3 { animation-delay: 0.2s; }

/* ─── Section titles entre cards ─── */
.section-title {
	font-family: 'Bebas Neue', sans-serif;
	font-size: 1.4rem;
	letter-spacing: 0.06em;
	color: var(--c-fg-dim);
	margin: 2.5rem 0 1rem;
	font-weight: 400;
}

/* ─── REC / status badges (compactos para cards) ─── */
.rec-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.25rem 0.6rem;
	border-radius: 100px;
	background: rgba(255,107,53,0.12);
	border: 1px solid rgba(255,107,53,0.3);
	color: var(--c-orange);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
}
.rec-badge.idle {
	background: rgba(255,255,255,0.04);
	border-color: var(--c-border);
	color: var(--c-fg-dim);
}
.rec-badge.done {
	background: rgba(61,214,140,0.12);
	border-color: rgba(61,214,140,0.3);
	color: var(--c-green);
}

/* ─── Match library cards ─── */
.match-group { margin: 1.5rem 0 2rem; }
.match-group-title {
	font-family: 'Bebas Neue', sans-serif;
	font-size: 1.1rem;
	letter-spacing: 0.1em;
	color: var(--c-fg-dim);
	margin: 0 0 0.75rem;
	text-transform: uppercase;
}

.match-card {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.25rem;
	background: var(--c-card);
	border: 1px solid var(--c-border);
	border-radius: 14px;
	margin-bottom: 0.5rem;
	transition: all 0.15s ease;
	color: var(--c-fg);
}
.match-card:hover {
	background: var(--c-card-hover);
	border-color: var(--c-green-dim);
	transform: translateX(2px);
}
.match-card .match-time {
	font-family: 'Bebas Neue', sans-serif;
	display: flex;
	flex-direction: column;
	align-items: center;
	font-size: 1.3rem;
	letter-spacing: 0.04em;
	line-height: 1;
	gap: 0.1rem;
	min-width: 4.5rem;
}
.match-card .match-arrow {
	color: var(--c-fg-dim);
	font-size: 0.7rem;
	margin: 0.1rem 0;
}
.match-card .match-info {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}
.match-card .match-court {
	font-weight: 600;
	font-size: 1rem;
}
.match-card .card-arrow {
	position: static;
	color: var(--c-green);
	opacity: 0.6;
	font-size: 1.1rem;
}

/* ─── Date filter ─── */
.date-filter {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	align-items: center;
	margin: 1rem 0 1.5rem;
	padding: 0.75rem 1rem;
	background: var(--c-card);
	border: 1px solid var(--c-border);
	border-radius: 14px;
}
.date-filter label {
	color: var(--c-fg-dim);
	font-size: 0.9rem;
}
.date-filter input[type="date"] {
	background: transparent;
	border: 1px solid var(--c-border);
	border-radius: 8px;
	color: var(--c-fg);
	padding: 0.4rem 0.6rem;
	font-family: inherit;
	font-size: 0.9rem;
	color-scheme: dark;
}
.btn-mini {
	background: rgba(61,214,140,0.12);
	color: var(--c-green);
	border: 1px solid rgba(61,214,140,0.25);
	border-radius: 8px;
	padding: 0.4rem 0.85rem;
	font-family: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
}
.btn-mini:hover {
	background: rgba(61,214,140,0.2);
	border-color: var(--c-green);
}

/* ─── Empty state ─── */
.empty-state {
	text-align: center;
	padding: 3rem 1rem;
	color: var(--c-fg-dim);
}
.empty-state .empty-icon {
	font-size: 3rem;
	margin-bottom: 1rem;
	opacity: 0.5;
}
.empty-state h3 {
	color: var(--c-fg);
	margin: 0 0 0.5rem;
	font-weight: 600;
}
.empty-state p {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.5;
	max-width: 24rem;
	margin: 0 auto;
}
