:root {
    --sage-green: #719A73;
    --evergreen: #003A35;
    --ink-black: #001F27;
    --bright-marine: #1F73C2;
    --bg-top: var(--ink-black);
    --bg-bottom: var(--evergreen);
    --panel: rgba(113, 154, 115, 0.18);
    --panel-soft: rgba(113, 154, 115, 0.26);
    --panel-border: rgba(113, 154, 115, 0.42);
    --text: #f2fbf6;
    --text-dark: var(--ink-black);
    --muted: #d6e6d7;
    --accent: var(--bright-marine);
    --accent-strong: var(--evergreen);
    --accent-soft: rgba(113, 154, 115, 0.2);
    --danger-bg: rgba(248, 113, 113, 0.14);
    --danger-border: rgba(248, 113, 113, 0.32);
    --danger-text: #fecaca;
    --shadow: 0 24px 60px rgba(0, 31, 39, 0.28);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI Variable", "Trebuchet MS", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(113, 154, 115, 0.46), transparent 34%),
        radial-gradient(circle at top right, rgba(31, 115, 194, 0.22), transparent 30%),
        radial-gradient(circle at bottom right, rgba(113, 154, 115, 0.22), transparent 32%),
        linear-gradient(145deg, var(--ink-black), var(--evergreen) 48%, var(--sage-green));
    color: var(--text);
}

.page-backdrop {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(113, 154, 115, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(113, 154, 115, 0.12) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 90%);
    pointer-events: none;
}

.page {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 56px;
}

.hero-card,
.panel,
.stat-card,
.series-card {
    backdrop-filter: blur(18px);
    background:
        linear-gradient(145deg, rgba(0, 58, 53, 0.88), rgba(113, 154, 115, 0.24)),
        var(--panel);
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow);
}

.hero-card {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    padding: 28px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: auto -10% -45% 50%;
    height: 240px;
    background: radial-gradient(circle, rgba(31, 115, 194, 0.28), transparent 68%);
    pointer-events: none;
}

.hero-card-compact {
    align-items: center;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent-strong);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 700;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1.05;
}

h2 {
    margin-bottom: 8px;
    font-size: 1.3rem;
}

h3 {
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.hero-text,
.panel-header p,
.series-head p,
.series-label,
.feature-list,
.empty-state,
small,
pre,
td,
th {
    color: var(--muted);
}

.hero-text {
    max-width: 60ch;
    font-size: 1.02rem;
    line-height: 1.6;
}

.hero-link-row {
    margin: 18px 0 0;
    font-weight: 700;
}

.retention-note {
    display: inline-flex;
    margin: 8px 0 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(113, 154, 115, 0.16);
    border: 1px solid rgba(113, 154, 115, 0.28);
    color: #dff2df;
    font-size: 0.9rem;
}

a {
    color: #9ac9f4;
}

.hero-stats,
.stats-grid {
    display: grid;
    gap: 16px;
}

.hero-stats {
    align-content: stretch;
}

.stats-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-bottom: 24px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-height: 120px;
    padding: 18px;
    border-radius: var(--radius-md);
}

.stat-card:hover,
.download-item:hover {
    border-color: rgba(113, 154, 115, 0.58);
    box-shadow: 0 18px 42px rgba(0, 58, 53, 0.14);
}

.stat-card-strong {
    background:
        linear-gradient(135deg, rgba(113, 154, 115, 0.36), rgba(0, 58, 53, 0.44)),
        var(--panel);
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.stat-card strong {
    font-size: 1.15rem;
    line-height: 1.35;
}

.content-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

.content-grid-wide {
    align-items: start;
    margin-bottom: 24px;
}

.panel {
    padding: 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.panel-muted {
    background:
        linear-gradient(160deg, rgba(113, 154, 115, 0.34), rgba(0, 58, 53, 0.72)),
        var(--panel);
}

.panel-video {
    overflow: hidden;
}

.panel-header {
    margin-bottom: 18px;
}

.alert {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
}

.alert-error {
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: var(--danger-text);
}

form {
    display: grid;
    gap: 18px;
}

.field {
    display: grid;
    gap: 8px;
}

.field span {
    font-weight: 700;
}

input,
select,
button,
.button {
    font: inherit;
}

input,
select {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(113, 154, 115, 0.42);
    background: rgba(0, 31, 39, 0.64);
    color: var(--text);
}

input::file-selector-button {
    margin-right: 12px;
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    background: rgba(31, 115, 194, 0.28);
    color: var(--text);
    cursor: pointer;
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

button:hover,
.button:hover {
    transform: translateY(-1px);
}

button:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

.button-primary {
    background: linear-gradient(135deg, var(--evergreen), var(--sage-green) 58%, var(--bright-marine));
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(0, 58, 53, 0.22);
}

.button-secondary {
    background: rgba(0, 31, 39, 0.48);
    color: var(--text);
    border: 1px solid rgba(113, 154, 115, 0.34);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    align-items: center;
}

.feature-list {
    margin: 0;
    padding-left: 18px;
    line-height: 1.8;
}

.sport-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.sport-card {
    display: grid;
    gap: 10px;
    min-height: 220px;
    padding: 22px;
    border-radius: var(--radius-md);
    background:
        linear-gradient(145deg, rgba(0, 31, 39, 0.46), rgba(113, 154, 115, 0.16)),
        var(--panel);
    border: 1px solid rgba(113, 154, 115, 0.3);
    color: var(--text);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.sport-card:hover {
    transform: translateY(-2px);
    border-color: rgba(113, 154, 115, 0.62);
    box-shadow: 0 20px 42px rgba(0, 31, 39, 0.24);
}

.sport-card-active {
    background:
        linear-gradient(145deg, rgba(0, 58, 53, 0.7), rgba(31, 115, 194, 0.2)),
        var(--panel);
}

.sport-kicker {
    color: #b9d8ba;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sport-card strong {
    font-size: 1.6rem;
}

.sport-card p {
    color: var(--muted);
    line-height: 1.6;
}

video {
    width: 100%;
    border-radius: var(--radius-md);
    background: var(--ink-black);
    border: 1px solid rgba(0, 58, 53, 0.2);
}

.download-list {
    display: grid;
    gap: 12px;
}

.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: rgba(0, 31, 39, 0.34);
    border: 1px solid rgba(113, 154, 115, 0.24);
    color: var(--text);
    text-decoration: none;
}

.download-item strong {
    color: #b9d8ba;
}

.series-grid {
    display: grid;
    gap: 20px;
}

.series-card {
    padding: 20px;
    border-radius: var(--radius-md);
}

.series-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 8px;
}

.score-pill {
    min-width: 108px;
    padding: 12px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid rgba(113, 154, 115, 0.42);
    color: #e7f4e8;
    text-align: center;
    font-weight: 800;
}

.video-fallback {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.score-pill-muted {
    background: rgba(148, 163, 184, 0.14);
    border-color: rgba(148, 163, 184, 0.2);
    color: #d6e6d7;
}

.series-label {
    margin-bottom: 16px;
    font-weight: 600;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

th,
td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(113, 154, 115, 0.18);
    text-align: left;
    white-space: nowrap;
}

th {
    color: var(--text);
    font-size: 0.84rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.empty-state {
    padding: 16px;
    border-radius: var(--radius-sm);
    background: rgba(0, 31, 39, 0.28);
    border: 1px dashed rgba(113, 154, 115, 0.36);
    line-height: 1.7;
}

pre {
    margin: 0;
    padding: 18px;
    border-radius: var(--radius-md);
    background: rgba(0, 31, 39, 0.42);
    border: 1px solid rgba(113, 154, 115, 0.28);
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.65;
}

@media (max-width: 1080px) {
    .hero-card,
    .content-grid,
    .content-grid-wide,
    .stats-grid,
    .sport-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .page {
        width: min(100% - 20px, 1180px);
        padding-top: 18px;
    }

    .hero-card,
    .panel,
    .series-card {
        padding: 18px;
        border-radius: 20px;
    }

    .stats-grid {
        gap: 12px;
    }

    .stat-card {
        min-height: 96px;
    }

    .series-head {
        flex-direction: column;
    }
}
