html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #0f172a;
    color: #e5e7eb;
}

a, .btn-link {
    color: #93c5fd;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Layout */
.page-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    background: radial-gradient(circle at 10% 20%, rgba(255,255,255,0.08), transparent 35%),
        radial-gradient(circle at 80% 0%, rgba(0,123,255,0.08), transparent 25%),
        #0f172a;
    color: #e5e7eb;
}

.sidebar-panel {
    background: #0b1221;
    border-right: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem 1.25rem;
    position: sticky;
    top: 0;
    height: 100vh;
}

.nav-branding {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #2563eb, #22d3ee);
    color: #fff;
    border-radius: 12px;
    font-size: 24px;
    box-shadow: 0 12px 28px rgba(34, 211, 238, 0.15);
}

.brand-title {
    font-weight: 700;
    color: #fff;
}

.brand-subtitle {
    font-size: 0.9rem;
    color: #9ca3af;
}

.nav-menu {
    display: grid;
    gap: 0.75rem;
}

.nav-tile {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    color: #e5e7eb;
    text-decoration: none;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.04);
    transition: all 0.2s ease;
}

.nav-tile:hover,
.nav-tile.active {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.45);
    color: #fff;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.15);
}

.nav-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.08);
    font-weight: 700;
}

.nav-label {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.main-panel {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.canvas {
    padding: 2rem;
}

/* Web key gate */
.webkey-overlay {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(4, 6, 15, 0.85);
    z-index: 10;
    backdrop-filter: blur(6px);
}

.webkey-panel {
    width: min(420px, 90vw);
    padding: 1.5rem;
    background: #0f172a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.35);
    color: #e5e7eb;
}

.webkey-header {
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.webkey-copy {
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.webkey-inputs label {
    font-weight: 600;
    color: #cbd5e1;
}

.webkey-btn {
    margin-top: 1rem;
    width: 100%;
}

.webkey-content.locked {
    filter: blur(2px);
    pointer-events: none;
    user-select: none;
}

.webkey-content.unlocked {
    filter: none;
}

/* Hero + cards */
.hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(16, 185, 129, 0.12));
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
}

.eyebrow {
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    color: #a5b4fc;
    margin-bottom: 0.5rem;
}

.hero h1 {
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.lead {
    color: #cbd5e1;
}

.hero-list {
    margin: 1rem 0;
    padding-left: 1.2rem;
    color: #cbd5e1;
    display: grid;
    gap: 0.35rem;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.hero-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    color: #cbd5e1;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.metric {
    letter-spacing: 0.1em;
    font-weight: 600;
    color: #a5b4fc;
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}

.metric-caption {
    color: #94a3b8;
}

.learning-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
}

.stat-card {
    padding: 1.25rem;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    display: grid;
    gap: 0.4rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.stat-card.highlight {
    background: linear-gradient(135deg, rgba(37,99,235,0.25), rgba(16,185,129,0.18));
    border-color: rgba(37,99,235,0.45);
}

.stat-label {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: #a5b4fc;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
}

.stat-copy {
    margin: 0;
    color: #cbd5e1;
}

.stat-foot {
    font-size: 0.95rem;
    color: #94a3b8;
}

.grid.two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.panel {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.25rem;
}

.learning-path {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1rem;
    align-items: center;
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
}

.progress-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.progress-steps li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(37,99,235,0.25);
    font-weight: 800;
    color: #fff;
}

.step-title {
    font-weight: 700;
    color: #fff;
}

.step-copy {
    margin: 0;
    color: #cbd5e1;
}

/* Cards */
.page-header h1 {
    font-weight: 800;
    color: #fff;
}

.page-header .lead {
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.feature-grid {
    margin-top: 1.25rem;
}

.lesson-callouts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1.25rem 0 1.5rem;
}

.lesson-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 1.1rem 1.25rem;
    display: grid;
    gap: 0.6rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.lesson-card.subtle {
    background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(37,99,235,0.12));
}

.lesson-title {
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.lesson-copy {
    margin: 0;
    color: #cbd5e1;
}

.bullet-checklist {
    list-style: disc;
    padding-left: 1.1rem;
    margin: 0;
    display: grid;
    gap: 0.35rem;
    color: #cbd5e1;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tile-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    color: #e5e7eb;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.tile-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.5);
    color: #fff;
}

.tile-card.disabled {
    opacity: 0.45;
    filter: grayscale(0.2);
    pointer-events: none;
    border-style: dashed;
}

.card-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.2);
    font-size: 1.5rem;
}

.card-title {
    font-weight: 700;
    color: #fff;
}

.card-subtitle {
    color: #cbd5e1;
}

.card-pill {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.2);
    color: #bbf7d0;
    font-weight: 700;
}

/* River layout */
.river-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 1.25rem;
    align-items: stretch;
}

.court-shell {
    position: relative;
    width: 100%;
    aspect-ratio: var(--court-aspect-ratio, 2 / 1);
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.05), transparent 40%);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
}

.court {
    width: 100%;
    height: 100%;
    display: block;
}

.court-surface {
    fill: #1f2937;
}

.paint {
    fill: rgba(37, 99, 235, 0.12);
    stroke: rgba(255,255,255,0.15);
}

.court-line, .court-arc {
    stroke: rgba(255,255,255,0.25);
    stroke-width: 4;
    fill: none;
}

.player-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.player-dot {
    position: absolute;
    width: 38px;
    height: 38px;
    margin-left: -19px;
    margin-top: -19px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22d3ee, #2563eb);
    color: #0b1221;
    display: grid;
    place-items: center;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
    transition: all 0.6s ease;
}

.ball {
    position: absolute;
    width: 18px;
    height: 18px;
    margin-left: -9px;
    margin-top: -9px;
    background: radial-gradient(circle at 30% 30%, #fcd34d, #f97316);
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
    transition: all 0.6s ease;
}

.pass-line {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.pass-line line {
    stroke: rgba(34, 197, 94, 0.8);
    stroke-width: 2;
    stroke-dasharray: 4;
    animation: dash 0.4s linear infinite;
}

@keyframes dash {
    to { stroke-dashoffset: 8; }
}

.play-script {
    display: flex;
    align-items: stretch;
}

.script-box {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 1.25rem;
    color: #e5e7eb;
    width: 100%;
}

.script-label {
    color: #a5b4fc;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.script-step {
    font-weight: 800;
    color: #fff;
}

@media (max-width: 900px) {
    .page-shell {
        grid-template-columns: 1fr;
    }

    .sidebar-panel {
        position: relative;
        height: auto;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .learning-path {
        grid-template-columns: 1fr;
    }

    .river-layout {
        grid-template-columns: 1fr;
    }
}

.feature-list {
    list-style: disc;
    padding-left: 1.2rem;
    color: #cbd5e1;
    display: grid;
    gap: 0.35rem;
}

.secure-hint {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-top: 0.15rem;
}

.top-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-links .btn-link {
    color: #cbd5e1;
    text-decoration: none;
}

.top-links .btn-link:hover {
    text-decoration: underline;
}

.webkey-status {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: #cbd5e1;
    font-weight: 600;
}
.river-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-stage {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
}

.options-rail {
    display: flex;
    gap: 1rem;
    overflow-x: auto; /* Allows horizontal scrolling on mobile */
    padding-bottom: 0.5rem;
}

.option-card {
    flex: 0 0 200px; /* Fixed width cards */
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

    .option-card:hover {
        border-color: #666;
    }

    .option-card.active {
        border-color: #007bff; /* Active Color */
        background-color: #f0f8ff;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

.option-title {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.option-desc {
    font-size: 0.85rem;
    color: #666;
}
/* River experience */
.river-page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    color: #e5e7eb;
}

.river-header {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    gap: 1.25rem;
    background: linear-gradient(135deg, rgba(37,99,235,0.16), rgba(14,165,233,0.1));
    border: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

.river-header h1 {
    margin: 0.25rem 0 0.5rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: #93c5fd;
    margin: 0;
}

.lede {
    color: #cbd5e1;
    margin: 0;
}

.badge-deck {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Training plans */
.plan-header {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.25rem;
    align-items: center;
}

.plan-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.plan-hero-card {
    background: linear-gradient(135deg, rgba(37,99,235,0.2), rgba(16,185,129,0.18));
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 1.2rem 1.4rem;
    box-shadow: 0 16px 38px rgba(0,0,0,0.35);
    display: grid;
    gap: 0.5rem;
}

.plan-hero-card.compact {
    max-width: 320px;
}

.mini-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e5e7eb;
}

.mini-stat .label {
    color: #cbd5e1;
    font-weight: 600;
}

.mini-stat .value {
    font-weight: 800;
    color: #fff;
}

.divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 0.25rem 0;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}

.plan-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 1.1rem;
    display: grid;
    gap: 0.5rem;
    text-decoration: none;
    color: #e5e7eb;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.plan-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59,130,246,0.6);
    color: #fff;
}

.plan-card h3 {
    margin: 0;
    color: #fff;
}

.plan-card-top {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
}

.plan-focus {
    color: #a5b4fc;
    font-weight: 700;
    margin: 0;
}

.plan-copy {
    margin: 0;
    color: #cbd5e1;
}

.plan-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
}

.plan-banner {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    align-items: center;
    margin: 1rem 0 1.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(14,165,233,0.18), rgba(79,70,229,0.16));
}

.drill-timeline {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    background: rgba(255,255,255,0.02);
    padding: 1.25rem;
    display: grid;
    gap: 1rem;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.8rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: stretch;
}

.timeline-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(37,99,235,0.25);
    display: grid;
    place-items: center;
    font-weight: 800;
}

.timeline-body {
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    background: rgba(255,255,255,0.03);
    display: grid;
    gap: 0.5rem;
}

.timeline-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.timeline-title {
    font-weight: 800;
    color: #fff;
}

.timeline-meta {
    color: #cbd5e1;
}

.timeline-actions {
    display: flex;
    justify-content: flex-start;
}

.empty-state {
    border: 1px dashed rgba(255,255,255,0.2);
    border-radius: 14px;
    padding: 2rem;
    text-align: center;
    display: grid;
    gap: 0.5rem;
}

.empty-state .card-icon {
    margin: 0 auto;
}

.builder-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.builder-panel {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 1.2rem;
    background: rgba(255,255,255,0.03);
    display: grid;
    gap: 0.75rem;
}

.builder-panel.highlight {
    background: linear-gradient(135deg, rgba(34,197,94,0.16), rgba(14,165,233,0.14));
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.form-grid {
    display: grid;
    gap: 0.75rem;
}

.form-group label {
    font-weight: 700;
    color: #cbd5e1;
}

.drill-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    align-items: end;
}

.playlist {
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 1rem;
    background: rgba(255,255,255,0.02);
    display: grid;
    gap: 0.6rem;
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.playlist-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.playlist-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 0.5rem;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
}

.playlist-body {
    display: grid;
    gap: 0.25rem;
}

.playlist-title {
    font-weight: 700;
}

.playlist-meta {
    color: #94a3b8;
}

.playlist-actions {
    display: flex;
    gap: 0.35rem;
}

.icon-btn {
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.08);
    color: #fff;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
}

.icon-btn:hover {
    background: rgba(59,130,246,0.2);
    border-color: rgba(59,130,246,0.5);
}

.icon-btn.danger {
    border-color: rgba(239,68,68,0.6);
    background: rgba(239,68,68,0.15);
}

.success-message {
    color: #bbf7d0;
    margin: 0;
}

.pill {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
    font-weight: 600;
    color: #e2e8f0;
}

.river-stage {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.court-column {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 25px 60px rgba(0,0,0,0.35);
}

.commentary-card {
    background: linear-gradient(135deg, rgba(15,23,42,0.9), rgba(30,41,59,0.9));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 1.25rem;
    display: grid;
    gap: 0.5rem;
    box-shadow: 0 25px 50px rgba(0,0,0,0.35);
}

.commentary-card h2 {
    margin: 0;
}

.commentary {
    color: #cbd5e1;
    margin: 0;
}

.action-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.variation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.9rem;
}

.variation-tile {
    text-align: left;
    border-radius: 14px;
    padding: 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
}

.variation-tile:hover {
    border-color: rgba(37, 99, 235, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(37,99,235,0.18);
}

.variation-tile.active {
    background: linear-gradient(135deg, rgba(37,99,235,0.35), rgba(14,165,233,0.25));
    border-color: rgba(37,99,235,0.65);
}

.tile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.tile-index {
    background: rgba(255,255,255,0.08);
    padding: 0.35rem 0.65rem;
    border-radius: 10px;
    font-weight: 700;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #64748b;
    box-shadow: 0 0 0 0 rgba(52,211,153,0.5);
    transition: all 0.2s ease;
}

.status-dot.live {
    background: #34d399;
    animation: pulse 1.4s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.4); }
    70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); }
    100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}

/* Court + players */
.court-shell svg.court,
.court-shell svg.court-vertical,
.court-shell svg.court-half {
    width: 100%;
    height: 100%;
    display: block;
}

.court-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.players-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.player-chip {
    position: absolute;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-weight: 800;
    color: #0f172a;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}

.player-chip.offense {
    background: linear-gradient(135deg, #38bdf8, #2563eb);
}

.player-chip.offense.has-ball {
    box-shadow: 0 0 0 8px rgba(56, 189, 248, 0.25), 0 8px 18px rgba(0,0,0,0.35);
}

.player-chip.defender {
    background: linear-gradient(135deg, #fb7185, #a855f7);
    color: #0b1221;
}

.jersey {
    font-size: 1.1rem;
}

.chip-tag {
    position: absolute;
    bottom: -12px;
    font-size: 0.65rem;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    color: #0b1221;
    background: #e2e8f0;
    transform: translateY(50%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.tag-pass { background: #facc15; }
.tag-bounce-pass { background: #4ade80; }
.tag-lob-pass { background: #a78bfa; }
.tag-receive { background: #bef264; }
.tag-move { background: #a5b4fc; }
.tag-cut { background: #a5b4fc; }
.tag-sweep { background: #22d3ee; }
.tag-dribble { background: #67e8f9; }
.tag-shot { background: #f472b6; }
.tag-floater { background: #fbcfe8; }
.tag-screen { background: #fbbf24; }
.tag-roll { background: #fb923c; }
.tag-exchange { background: #7dd3fc; }
.tag-dho { background: #f9a8d4; }
.tag-rebound { background: #c084fc; }

.player-chip.is-dribbling::before {
    content: "";
    position: absolute;
    width: 32px;
    height: 32px;
    border: 2px dashed rgba(103, 232, 249, 0.7);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    animation: dribble-ripple 0.85s infinite ease-in-out;
}

.player-chip.is-dribbling::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle at 30% 30%, #fbbf24, #c2410c);
    border-radius: 50%;
    left: 50%;
    bottom: -18px;
    transform: translate(-50%, 0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
    animation: dribble-bounce 0.5s infinite ease-in-out;
}

@keyframes dribble-bounce {
    0% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 8px); }
    100% { transform: translate(-50%, 0); }
}

@keyframes dribble-ripple {
    0% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.9; }
    70% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.35; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0; }
}

.ball {
    position: absolute;
    width: 16px;
    height: 16px;
    background: radial-gradient(circle at 30% 30%, #fbbf24, #c2410c);
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.35);
    transform: translate(-50%, -50%);
    box-shadow: 0 6px 10px rgba(0,0,0,0.35);
    transition: all 0.35s ease;
}

.pass-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.pass-line {
    fill: none;
    stroke: #facc15;
    stroke-width: 1.5;
    stroke-dasharray: 4 4;
}

.sweep-line {
    fill: none;
    stroke: #22d3ee;
    stroke-width: 1.5;
    stroke-dasharray: 2 3;
}

.pass-bounce-line {
    fill: none;
    stroke: #4ade80;
    stroke-width: 1.5;
    stroke-dasharray: 3 2;
    stroke-linecap: round;
}

.pass-lob-line {
    fill: none;
    stroke: #a78bfa;
    stroke-width: 1.5;
    stroke-dasharray: 6 4;
    stroke-linecap: round;
}

/* Drill library */
.breadcrumb-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.chip-row {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}

.chip-tag-soft {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: #cbd5e1;
    font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,0.08);
}

.drill-grid .tile-card {
    grid-template-columns: 64px 1fr auto;
    align-items: start;
}

.drill-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.drill-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
}

.drill-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.25rem;
    display: grid;
    gap: 0.75rem;
}

.meta-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.detail-block h3 {
    margin-bottom: 0.35rem;
}

.commentary-block {
    background: rgba(15, 23, 42, 0.65);
    color: #e2e8f0;
    padding: 0.75rem;
    border-radius: 10px;
    white-space: pre-line;
    border: 1px solid rgba(255,255,255,0.08);
}

.shot-line {
    fill: none;
    stroke: #f472b6;
    stroke-width: 2;
    stroke-dasharray: 5 6;
}

.handoff-line {
    fill: none;
    stroke: #67e8f9;
    stroke-width: 2;
    stroke-dasharray: 4 5;
}

/* court theme tweaks */
.court-surface { fill: #f2bb7b; }
.court-line { stroke: rgba(0,0,0,0.45); stroke-width: 3; }
.court-arc { stroke: rgba(0,0,0,0.35); stroke-width: 3; }

/* Court spot admin */
.spot-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.spot-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 16px 32px rgba(0,0,0,0.25);
}

.spot-card .panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.coord-chip {
    background: rgba(34,197,94,0.12);
    color: #a7f3d0;
    border: 1px solid rgba(34,197,94,0.35);
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
}

.spot-overlay {
    position: absolute;
    inset: 0;
    pointer-events: auto;
}

.spot-dot {
    position: absolute;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 30% 30%, #a5b4fc, #4f46e5);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

.spot-label {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translateX(-50%);
    white-space: nowrap;
    background: rgba(15,23,42,0.9);
    color: #e5e7eb;
    padding: 0.15rem 0.35rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    font-size: 0.65rem;
    line-height: 1.1;
    pointer-events: none;
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}
.paint { fill: rgba(255,255,255,0.18); stroke: rgba(0,0,0,0.2); stroke-width: 2; }

@media (max-width: 1024px) {
    .river-header { grid-template-columns: 1fr; }
    .river-stage { grid-template-columns: 1fr; }
}
