/* ============================================================
   Mariáš Tournament System – Main Stylesheet
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
    --color-primary:     #2B5797;
    --color-primary-dk:  #1a3b6e;
    --color-primary-lt:  #3a6cb5;
    --color-success:     #2a8c4a;
    --color-success-lt:  #d4edda;
    --color-error:       #c0392b;
    --color-error-lt:    #fce4e4;
    --color-warning:     #d97706;
    --color-warning-lt:  #fef3cd;
    --color-info:        #0369a1;
    --color-info-lt:     #e0f2fe;

    --color-gold:        #c9a227;
    --color-silver:      #9b9b9b;
    --color-bronze:      #cd7f32;

    --color-bg:          #f4f6f9;
    --color-surface:     #ffffff;
    --color-border:      #dde1e7;
    --color-text:        #1a202c;
    --color-text-muted:  #6b7280;
    --color-text-inv:    #ffffff;

    --radius-sm:  4px;
    --radius:     8px;
    --radius-lg:  12px;
    --shadow-sm:  0 1px 3px rgba(0,0,0,.1);
    --shadow:     0 2px 8px rgba(0,0,0,.12);
    --shadow-lg:  0 4px 20px rgba(0,0,0,.15);

    --font-base:  'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono:  'Courier New', monospace;

    --sidebar-w:  240px;
    --topbar-h:   60px;
    --transition: 180ms ease;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-base);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

/* ── Container ─────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ── Public Header ─────────────────────────────────────────── */
.site-header {
    background: var(--color-primary);
    color: var(--color-text-inv);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.site-header .container {
    display: flex;
    align-items: center;
    height: var(--topbar-h);
    gap: 2rem;
}

.site-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-inv);
    text-decoration: none;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    gap: .25rem;
    margin-left: auto;
    flex-wrap: wrap;
}

.nav-link {
    color: rgba(255,255,255,.85);
    padding: .4rem .8rem;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    transition: background var(--transition);
}
.nav-link:hover, .nav-link.active {
    background: rgba(255,255,255,.15);
    color: #fff;
    text-decoration: none;
}
.nav-link--admin {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.3);
}

/* ── Public Main ───────────────────────────────────────────── */
.site-main { padding: 2rem 0; }

.site-footer {
    background: var(--color-primary-dk);
    color: rgba(255,255,255,.7);
    text-align: center;
    padding: 1.2rem 0;
    font-size: .85rem;
    margin-top: 3rem;
}
.site-footer a { color: rgba(255,255,255,.85); }

/* ── Admin Layout ──────────────────────────────────────────── */
.admin-body { background: var(--color-bg); }

.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: var(--sidebar-w);
    background: var(--color-primary-dk);
    color: var(--color-text-inv);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 200;
    transition: transform var(--transition);
}

.sidebar-logo {
    padding: 1rem 1.2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.sidebar-logo a { color: #fff; }

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: .5rem 0;
    flex: 1;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem 1.2rem;
    color: rgba(255,255,255,.8);
    font-size: .9rem;
    transition: background var(--transition), color var(--transition);
    border-left: 3px solid transparent;
}
.sidebar-link:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
    text-decoration: none;
}
.sidebar-link.active {
    background: rgba(255,255,255,.15);
    color: #fff;
    border-left-color: var(--color-gold);
}
.sidebar-link--danger { color: rgba(255,150,150,.8); margin-top: auto; }
.sidebar-link--danger:hover { background: rgba(255,0,0,.15); color: #ff9999; }

.sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,.1);
    margin: .5rem 1rem;
}

.sidebar-icon { font-size: 1rem; }

/* Admin Content Area */
.admin-content {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-topbar {
    height: var(--topbar-h);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.page-title {
    font-size: 1.1rem;
    font-weight: 600;
    flex: 1;
}

.topbar-actions { display: flex; gap: .5rem; align-items: center; }

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--color-text);
}

.admin-page-content {
    padding: 1.5rem;
    flex: 1;
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
}

.card-body { padding: 1.25rem; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.btn-primary:hover {
    background: var(--color-primary-lt);
    border-color: var(--color-primary-lt);
    color: #fff;
    text-decoration: none;
}

.btn-success {
    background: var(--color-success);
    color: #fff;
    border-color: var(--color-success);
}
.btn-success:hover { opacity: .88; color: #fff; text-decoration: none; }

.btn-danger {
    background: var(--color-error);
    color: #fff;
    border-color: var(--color-error);
}
.btn-danger:hover { opacity: .88; color: #fff; text-decoration: none; }

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
}

.btn-secondary {
    background: #6b7280;
    color: #fff;
    border-color: #6b7280;
}
.btn-secondary:hover { opacity: .88; color: #fff; text-decoration: none; }

.btn-sm { padding: .3rem .7rem; font-size: .8rem; }
.btn-lg { padding: .75rem 1.5rem; font-size: 1rem; }

/* ── Forms ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }

.form-label {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    margin-bottom: .35rem;
    color: var(--color-text);
}

.form-control {
    width: 100%;
    padding: .55rem .8rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-family: var(--font-base);
    background: var(--color-surface);
    color: var(--color-text);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(43,87,151,.15);
}

.form-control-lg {
    padding: .75rem 1rem;
    font-size: 1.1rem;
}

.form-text {
    font-size: .8rem;
    color: var(--color-text-muted);
    margin-top: .25rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Cents input – large, touch-friendly */
.cents-input {
    width: 100%;
    padding: .75rem;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
}
.cents-input:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(43,87,151,.15);
}

/* ── Tables ────────────────────────────────────────────────── */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

.table th {
    background: var(--color-primary);
    color: #fff;
    padding: .65rem .9rem;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.table td {
    padding: .55rem .9rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #f0f4fb; }

.table-striped tbody tr:nth-child(even) { background: #f8f9fb; }

/* Season standings table */
.standings-table th, .standings-table td {
    text-align: center;
}
.standings-table td:first-child,
.standings-table th:first-child {
    text-align: left;
    min-width: 160px;
}
.standings-table td.highlight {
    font-weight: 700;
    color: var(--color-primary);
}

/* ── Badges ────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: .2rem .55rem;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-draft     { background: #e5e7eb; color: #374151; }
.badge-drawn     { background: var(--color-info-lt); color: var(--color-info); }
.badge-progress  { background: var(--color-warning-lt); color: var(--color-warning); }
.badge-completed { background: var(--color-success-lt); color: var(--color-success); }

/* ── Alerts ────────────────────────────────────────────────── */
.alert {
    padding: .85rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: .9rem;
    border-left: 4px solid transparent;
}
.alert-success { background: var(--color-success-lt); color: #166534; border-color: var(--color-success); }
.alert-error   { background: var(--color-error-lt); color: #7f1d1d; border-color: var(--color-error); }
.alert-info    { background: var(--color-info-lt); color: #075985; border-color: var(--color-info); }
.alert-warning { background: var(--color-warning-lt); color: #78350f; border-color: var(--color-warning); }

/* ── Stepper ───────────────────────────────────────────────── */
.stepper {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: .5rem;
}

.stepper-step {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.stepper-step a {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.stepper-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    border: 2px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all var(--transition);
    touch-action: manipulation;
}

.stepper-step.active .stepper-circle {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.stepper-step.done .stepper-circle {
    background: var(--color-success);
    border-color: var(--color-success);
    color: #fff;
}

.stepper-label {
    font-size: .75rem;
    color: var(--color-text-muted);
    margin-top: .3rem;
    text-align: center;
}

.stepper-step.active .stepper-label { color: var(--color-primary); font-weight: 600; }
.stepper-step.done .stepper-label { color: var(--color-success); }

.stepper-connector {
    flex: 1;
    height: 2px;
    background: var(--color-border);
    min-width: 20px;
}
.stepper-connector.done { background: var(--color-success); }

.stepper-step-inner { display: flex; flex-direction: column; align-items: center; }

/* ── Draw Cards ────────────────────────────────────────────── */
.rounds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.round-section { }

.round-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: .75rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.table-cards { display: flex; flex-direction: column; gap: .75rem; }

.table-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: .85rem 1rem;
    box-shadow: var(--shadow-sm);
}

.table-card-header {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: .5rem;
    letter-spacing: .05em;
}

.table-card-players { display: flex; flex-direction: column; gap: .2rem; }

.table-card-player {
    font-size: .9rem;
    padding: .15rem 0;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.sit-outs-section {
    margin-top: 1rem;
    padding: .75rem 1rem;
    background: #f8f9fb;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.sit-outs-title {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: .4rem;
}

/* ── Results table within session ─────────────────────────── */
.group-result-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.group-result-header {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: .75rem;
    font-size: .9rem;
}

.cents-sum {
    font-size: .8rem;
    font-weight: 600;
    margin-top: .6rem;
    padding: .25rem .5rem;
    border-radius: var(--radius-sm);
    text-align: right;
    color: var(--color-text-muted);
}
.cents-sum-ok  { color: var(--color-success); background: var(--color-success-lt); }
.cents-sum-err { color: var(--color-error);   background: var(--color-error-lt); }

.result-player-row {
    display: grid;
    grid-template-columns: 1fr 100px 60px 60px;
    gap: .5rem;
    align-items: center;
    padding: .35rem 0;
    border-bottom: 1px solid var(--color-border);
}
.result-player-row:last-child { border-bottom: none; }

.result-player-name { font-size: .9rem; }

/* ── Placement Colors ──────────────────────────────────────── */
.pos-1 { color: var(--color-gold); font-weight: 700; }
.pos-2 { color: var(--color-silver); font-weight: 700; }
.pos-3 { color: var(--color-bronze); font-weight: 700; }

.pos-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: .8rem;
    font-weight: 700;
}
.pos-badge-1 { background: var(--color-gold); color: #fff; }
.pos-badge-2 { background: var(--color-silver); color: #fff; }
.pos-badge-3 { background: var(--color-bronze); color: #fff; }

/* ── Stats ─────────────────────────────────────────────────── */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: .8rem;
    color: var(--color-text-muted);
    margin-top: .25rem;
}

/* ── Attendance checkboxes ─────────────────────────────────── */
.player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: .5rem;
}

.player-checkbox {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem .8rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    background: var(--color-surface);
}

.player-checkbox:hover { border-color: var(--color-primary); background: #f0f4fb; }

.player-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.player-checkbox.checked {
    background: #e8effa;
    border-color: var(--color-primary);
}

.attendance-counter {
    background: var(--color-primary);
    color: #fff;
    padding: .6rem 1.2rem;
    border-radius: var(--radius);
    font-size: .9rem;
    margin-bottom: 1rem;
    display: inline-block;
}

/* ── Login page ────────────────────────────────────────────── */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-dk);
}

.login-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 360px;
    box-shadow: var(--shadow-lg);
}

.login-logo {
    text-align: center;
    font-size: 2rem;
    margin-bottom: .5rem;
}

.login-title {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    color: var(--color-primary);
}

/* ── Workflow Status Banner ────────────────────────────────── */
.status-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: .9rem;
    font-weight: 600;
}

.status-banner-draft    { background: #e5e7eb; color: #374151; }
.status-banner-drawn    { background: var(--color-info-lt); color: var(--color-info); }
.status-banner-progress { background: var(--color-warning-lt); color: var(--color-warning); }
.status-banner-done     { background: var(--color-success-lt); color: var(--color-success); }

/* ── Live refresh indicator ────────────────────────────────── */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    color: var(--color-text-muted);
}

.live-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--color-success);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .3; }
}

/* ── Utilities ─────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--color-text-muted); }
.text-bold   { font-weight: 700; }
.text-sm     { font-size: .85rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

.w-full { width: 100%; }

.hidden { display: none !important; }

/* ── Nav toggle (hamburger) ─────────────────────────────────── */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: rgba(255,255,255,.9);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: .2rem .4rem;
    margin-left: auto;
    flex-shrink: 0;
}

/* ── Responsive ────────────────────────────────────────────── */

/* Tablet + large mobile */
@media (max-width: 768px) {
    /* Admin sidebar */
    .admin-sidebar        { transform: translateX(-100%); }
    .admin-sidebar.open   { transform: translateX(0); }
    .admin-content        { margin-left: 0; }
    .sidebar-toggle       { display: block; }
    .admin-page-content   { padding: 1rem; }

    /* Grids */
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

    /* Round cards: 2 columns */
    .rounds-grid { grid-template-columns: 1fr 1fr; }

    /* Result rows: slightly narrower fixed cols */
    .result-player-row {
        grid-template-columns: 1fr 80px 50px 50px;
        font-size: .85rem;
    }
}

/* Mobile: hamburger nav */
@media (max-width: 640px) {
    .site-header .container {
        flex-wrap: wrap;
        height: auto;
        padding: .65rem 1rem;
        gap: 0;
    }

    .site-logo { flex: 1; font-size: 1.05rem; }

    .nav-toggle { display: flex; align-items: center; }

    .site-nav {
        display: none;
        order: 3;
        width: 100%;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0;
        padding: .3rem 0 .4rem;
        border-top: 1px solid rgba(255,255,255,.15);
        margin-top: .5rem;
    }
    .site-nav.open { display: flex; }

    .nav-link {
        font-size: .95rem;
        padding: .7rem .8rem;
        border-radius: 0;
        border-left: 3px solid transparent;
    }
    .nav-link.active  { border-left-color: var(--color-gold); }
    .nav-link--admin  { border: none; border-top: 1px solid rgba(255,255,255,.12); margin-top: .2rem; }

    .site-main { padding: 1rem 0; }

    h2 { font-size: 1.15rem; }
    h3 { font-size: 1rem; }
}

/* Small mobile */
@media (max-width: 480px) {
    /* Round cards: single column */
    .rounds-grid { grid-template-columns: 1fr; }

    /* Stat cards: 2 col */
    .stat-cards { grid-template-columns: 1fr 1fr; }

    /* Result rows: hide the 4th (empty) column */
    .result-player-row {
        grid-template-columns: 1fr 65px 48px;
        font-size: .82rem;
    }
    .result-player-row > div:nth-child(4) { display: none; }

    /* Cards */
    .card-body   { padding: .85rem .9rem; }
    .card-header { padding: .7rem .9rem; }

    /* Standings: tighter first column */
    .standings-table td:first-child,
    .standings-table th:first-child { min-width: 110px; }

    /* Buttons */
    .btn-lg { padding: .6rem 1rem; font-size: .9rem; }

    /* Status banner */
    .status-banner { font-size: .82rem; padding: .6rem .75rem; gap: .5rem; }

    /* Filter forms: stack */
    .flex.items-center.gap-2 { flex-wrap: wrap; }
}
