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

/* ── Design tokens ── */
:root {
    --c-bg: #0c0e12;
    --c-surface: #141820;
    --c-surface-2: #1a1f2a;
    --c-border: #252b38;
    --c-border-light: #2f3647;
    --c-text: #eef0f4;
    --c-text-2: #9aa3b5;
    --c-text-3: #6b7280;
    --c-brand: #16a34a;
    --c-brand-hover: #15803d;
    --c-brand-soft: rgba(22, 163, 74, 0.12);
    --c-live: #dc2626;
    --c-live-soft: rgba(220, 38, 38, 0.1);
    --c-radius: 12px;
    --c-radius-sm: 8px;
    --c-header: 64px;
    --c-nav: 64px;
    --c-max: 1200px;
    --c-shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.25);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    min-height: 100dvh;
    -webkit-tap-highlight-color: transparent;
}

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

img { display: block; max-width: 100%; }

/* ── Utilities ── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-8 { gap: 32px; }
.grid { display: grid; }
.hidden { display: none !important; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-xs { font-size: 12px; }
.text-sm { font-size: 13px; }
.text-muted { color: var(--c-text-2); }
.text-brand { color: var(--c-brand); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-full { width: 100%; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.pt-4 { padding-top: 16px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.space-y-4 > * + * { margin-top: 16px; }
.space-y-5 > * + * { margin-top: 20px; }
.space-y-6 > * + * { margin-top: 24px; }
.col-span-full { grid-column: 1 / -1; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.max-w-md { max-width: 28rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

@media (min-width: 640px) {
    .sm\:inline { display: inline !important; }
    .sm\:inline-flex { display: inline-flex !important; }
    .sm\:px-6 { padding-left: 24px; padding-right: 24px; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
    .xl\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ── App shell ── */
.wc-app-shell {
    min-height: 100dvh;
    padding-bottom: calc(var(--c-nav) + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
    .wc-app-shell { padding-bottom: 0; }
}

/* ── Header ── */
.wc-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--c-header);
    background: rgba(12, 14, 18, 0.95);
    border-bottom: 1px solid var(--c-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.wc-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--c-max);
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 640px) {
    .wc-header-inner { padding: 0 24px; }
}

.wc-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wc-logo-img {
    height: 52px;
    width: auto;
    display: block;
    object-fit: contain;
}

@media (min-width: 640px) {
    .wc-logo-img { height: 56px; }
}

.wc-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--c-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wc-logo-icon svg { width: 18px; height: 18px; color: #fff; }

.wc-logo-text {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--c-text);
}

.wc-logo-text em {
    font-style: normal;
    color: var(--c-brand);
}

.wc-nav-desktop { display: none; align-items: center; gap: 2px; }

@media (min-width: 768px) {
    .wc-nav-desktop { display: flex; }
}

.wc-nav-link {
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--c-text-2);
    transition: color .15s, background .15s;
}

.wc-nav-link:hover { color: var(--c-text); background: var(--c-surface-2); }

.wc-nav-link.is-active {
    color: var(--c-brand);
    background: var(--c-brand-soft);
}

/* ── Mobile nav ── */
.wc-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    height: calc(var(--c-nav) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(12, 14, 18, 0.98);
    border-top: 1px solid var(--c-border);
}

@media (min-width: 768px) {
    .wc-mobile-nav { display: none; }
}

.wc-mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--c-text-3);
}

.wc-mobile-nav-item svg { width: 20px; height: 20px; }

.wc-mobile-nav-item.is-active { color: var(--c-brand); }

/* ── Buttons ── */
.wc-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--c-radius-sm);
    border: none;
    background: var(--c-brand);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

.wc-btn-primary:hover { background: var(--c-brand-hover); }

.wc-btn-sm { padding: 7px 14px; font-size: 12px; }

.wc-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--c-radius-sm);
    border: 1px solid var(--c-border-light);
    background: transparent;
    color: var(--c-text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.wc-btn-outline:hover { border-color: var(--c-text-3); background: var(--c-surface-2); }

.wc-btn-ghost {
    padding: 7px 12px;
    border: none;
    background: transparent;
    color: var(--c-text-2);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.wc-btn-ghost:hover { color: var(--c-text); }

/* ── Live section ── */
.wc-live-spotlight {
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
}

.wc-live-spotlight-inner {
    max-width: var(--c-max);
    margin: 0 auto;
    padding: 20px 16px;
}

@media (min-width: 640px) {
    .wc-live-spotlight-inner { padding: 24px; }
}

.wc-live-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.wc-live-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wc-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-live);
    flex-shrink: 0;
}

.wc-live-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--c-text);
    letter-spacing: -0.01em;
}

.wc-live-meta {
    font-size: 12px;
    color: var(--c-text-3);
    margin-top: 2px;
}

.wc-live-badge {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--c-live-soft);
    border: 1px solid rgba(220, 38, 38, 0.2);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #f87171;
}

.wc-live-grid {
    display: grid;
    gap: 12px;
}

@media (min-width: 768px) {
    .wc-live-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Promo strip ── */
.wc-promo {
    border-bottom: 1px solid var(--c-border);
    background: var(--c-bg);
}

.wc-promo-inner {
    max-width: var(--c-max);
    margin: 0 auto;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

@media (min-width: 640px) {
    .wc-promo-inner { padding: 20px 24px; }
}

.wc-promo-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c-text-3);
}

.wc-promo-title {
    margin-top: 4px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.wc-promo-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── Page & sections ── */
.wc-page {
    max-width: var(--c-max);
    margin: 0 auto;
    padding: 24px 16px 32px;
}

@media (min-width: 640px) {
    .wc-page { padding: 28px 24px 40px; }
}

.wc-page-header { margin-bottom: 28px; }

.wc-page-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--c-text);
}

.wc-page-subtitle {
    margin-top: 6px;
    font-size: 14px;
    color: var(--c-text-2);
}

.wc-section { margin-bottom: 32px; }

.wc-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--c-border);
}

.wc-section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-text-3);
    margin-bottom: 2px;
}

.wc-section-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.wc-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--c-brand);
    white-space: nowrap;
}

.wc-link:hover { text-decoration: underline; }

/* ── Cards ── */
.wc-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    padding: 16px;
    box-shadow: var(--c-shadow);
}

.wc-card-live {
    border-color: rgba(220, 38, 38, 0.25);
    background: linear-gradient(to bottom, rgba(220,38,38,.04), var(--c-surface));
}

/* ── Match card ── */
.wc-match-card { padding: 0; overflow: hidden; }

.wc-match-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--c-surface-2);
    border-bottom: 1px solid var(--c-border);
    font-size: 12px;
    color: var(--c-text-2);
}

.wc-match-body {
    padding: 20px 16px;
}

.wc-match-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}

.wc-match-side {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.wc-match-side.away {
    flex-direction: row-reverse;
    text-align: right;
}

.wc-team-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.wc-team-initial {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--c-text-2);
    flex-shrink: 0;
}

.wc-team-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wc-score-center { text-align: center; }

.wc-score-num {
    font-size: 28px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--c-text);
}

.wc-card-live .wc-score-num { color: #f87171; }

.wc-score-vs {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text-3);
}

.wc-match-minute {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--c-live);
    letter-spacing: 0.04em;
}

.wc-match-footer {
    padding: 10px 16px;
    border-top: 1px solid var(--c-border);
    font-size: 12px;
    color: var(--c-text-3);
    text-align: center;
}

.wc-countdown-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-text-3);
}

.wc-countdown-timer {
    margin-top: 2px;
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--c-brand);
    font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace;
}

/* ── Badges ── */
.wc-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.wc-badge-live { background: var(--c-live-soft); color: #f87171; }
.wc-badge-upcoming { background: var(--c-brand-soft); color: #4ade80; }
.wc-badge-finished { background: rgba(107,114,128,.15); color: var(--c-text-2); }

/* ── Scroll row ── */
.wc-scroll-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 0 16px 4px;
}

.wc-scroll-row::-webkit-scrollbar { display: none; }

@media (min-width: 640px) {
    .wc-scroll-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        overflow: visible;
        margin: 0;
        padding: 0;
    }
}

@media (min-width: 1024px) {
    .wc-scroll-row { grid-template-columns: repeat(4, 1fr); }
}

.wc-scroll-row > * {
    flex: 0 0 85%;
    scroll-snap-align: start;
    min-width: 0;
}

@media (min-width: 640px) {
    .wc-scroll-row > * { flex: unset; }
}

/* ── Stats ── */
.wc-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.wc-stat {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    padding: 20px 12px;
    text-align: center;
}

.wc-stat-value {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--c-text);
}

.wc-stat-label {
    margin-top: 4px;
    font-size: 12px;
    color: var(--c-text-3);
}

.wc-stats-bar {
    border-top: 1px solid var(--c-border);
    background: var(--c-surface);
    padding: 28px 16px;
}

/* ── Rank rows ── */
.wc-rank-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.wc-rank-row + .wc-rank-row { border-top: 1px solid var(--c-border); }

.wc-rank-num {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--c-text-2);
}

.wc-rank-num.top { background: var(--c-brand-soft); color: var(--c-brand); border-color: rgba(22,163,74,.2); }

/* ── Forms ── */
.wc-input {
    width: 100%;
    margin-top: 6px;
    padding: 11px 14px;
    border-radius: var(--c-radius-sm);
    border: 1px solid var(--c-border-light);
    background: var(--c-bg);
    color: var(--c-text);
    font-family: inherit;
    font-size: 14px;
    transition: border-color .15s;
}

.wc-input:focus {
    outline: none;
    border-color: var(--c-brand);
    box-shadow: 0 0 0 3px var(--c-brand-soft);
}

.wc-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--c-text-2);
}

.wc-form-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    padding: 28px 24px;
}

.wc-btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 16px;
    border-radius: var(--c-radius-sm);
    border: 1px solid var(--c-border);
    background: #fff;
    color: #1f2937;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.wc-btn-google:hover {
    background: #f8fafc;
    border-color: var(--c-text-3);
    color: #111827;
}

.wc-btn-google-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.wc-google-setup-note {
    margin-top: 10px;
    font-size: 11px;
    line-height: 1.5;
    color: var(--c-text-3);
    text-align: center;
}

.wc-google-setup-note code {
    font-size: 10px;
    color: var(--c-text-2);
}

.wc-btn-google-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.wc-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--c-text-3);
    font-size: 12px;
}

.wc-auth-divider::before,
.wc-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--c-border);
}

.wc-auth-divider span {
    white-space: nowrap;
}

/* ── Tables ── */
.wc-table-wrap {
    overflow: hidden;
    border-radius: var(--c-radius);
    border: 1px solid var(--c-border);
    background: var(--c-surface);
}

.wc-table { width: 100%; border-collapse: collapse; font-size: 13px; }

.wc-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    color: var(--c-text-3);
    background: var(--c-surface-2);
    border-bottom: 1px solid var(--c-border);
}

.wc-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--c-border);
}

.wc-table tr:last-child td { border-bottom: none; }

.wc-table tr:hover td { background: rgba(255,255,255,.02); }

/* ── Alerts ── */
.wc-alert {
    padding: 12px 16px;
    border-radius: var(--c-radius-sm);
    font-size: 13px;
    border: 1px solid;
}

.wc-alert-success { border-color: rgba(22,163,74,.3); background: var(--c-brand-soft); color: #4ade80; }
.wc-alert-error { border-color: rgba(220,38,38,.3); background: var(--c-live-soft); color: #f87171; }
.wc-alert-warning { border-color: rgba(234,179,8,.3); background: rgba(234,179,8,.08); color: #fbbf24; }

/* ── Empty ── */
.wc-empty {
    padding: 40px 20px;
    text-align: center;
    font-size: 14px;
    color: var(--c-text-3);
    background: var(--c-surface);
    border: 1px dashed var(--c-border-light);
    border-radius: var(--c-radius);
}

.wc-empty-live { border-color: rgba(220,38,38,.2); }

/* ── Predict buttons ── */
.wc-predict-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 64px;
    padding: 10px 8px;
    border-radius: var(--c-radius-sm);
    border: 1px solid var(--c-border-light);
    background: var(--c-bg);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--c-text-2);
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
}

.wc-predict-team {
    line-height: 1.2;
    text-align: center;
}

.wc-predict-pct {
    font-size: 18px;
    font-weight: 700;
    color: var(--c-brand);
    font-variant-numeric: tabular-nums;
}

.wc-predict-btn:hover { border-color: var(--c-text-3); color: var(--c-text); }

.wc-predict-btn.is-selected {
    border-color: var(--c-brand);
    background: var(--c-brand-soft);
    color: #4ade80;
}

.wc-predict-btn.is-selected .wc-predict-pct {
    color: #4ade80;
}

.wc-predict-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.wc-share-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.wc-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: var(--c-radius-sm);
    background: #25d366;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.wc-btn-whatsapp:hover {
    background: #1ebe57;
    color: #fff;
}

.wc-btn-whatsapp-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.wc-win-chances {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    padding: 14px 16px;
}

.wc-win-chances-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.wc-win-chances-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--c-text-2);
}

.wc-win-chances-source {
    font-size: 11px;
    color: var(--c-text-3);
}

.wc-win-chances-bar {
    display: flex;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--c-surface-2);
    margin-bottom: 12px;
}

.wc-win-chances-seg {
    display: block;
    height: 100%;
    min-width: 2px;
}

.wc-win-chances-home { background: #22c55e; }
.wc-win-chances-draw { background: #64748b; }
.wc-win-chances-away { background: #3b82f6; }

.wc-win-chances-labels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.wc-win-chances-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--c-text-3);
    text-align: center;
}

.wc-win-chances-label strong {
    font-size: 16px;
    color: var(--c-text);
    font-variant-numeric: tabular-nums;
}

.wc-win-chances-team {
    line-height: 1.2;
    min-height: 26px;
}

.wc-win-chances-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.wc-win-chances-dot-home { background: #22c55e; }
.wc-win-chances-dot-draw { background: #64748b; }
.wc-win-chances-dot-away { background: #3b82f6; }

.wc-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c-brand);
}

.wc-footer {
    display: none;
    margin-top: 48px;
    padding: 24px;
    border-top: 1px solid var(--c-border);
    text-align: center;
    font-size: 13px;
    color: var(--c-text-3);
}

@media (min-width: 768px) {
    .wc-footer { display: block; }
}

.live-pulse { animation: pulse 2s ease-in-out infinite; }

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

.text-accent { color: var(--c-brand); }

.prose { color: var(--c-text-2); line-height: 1.7; }
.prose p + p { margin-top: 16px; }

/* ── Brackets page ── */
.wc-bracket-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-bottom: 16px;
    padding: 14px 16px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    font-size: 13px;
    color: var(--c-text-2);
}

.wc-bracket-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wc-bracket-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.wc-bracket-legend-dot.live { background: var(--c-live); box-shadow: 0 0 8px var(--c-live-glow); }
.wc-bracket-legend-dot.upcoming { background: var(--c-brand); }
.wc-bracket-legend-dot.finished { background: var(--c-text-3); }

.wc-bracket-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.wc-bracket-filter {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--c-border-light);
    background: var(--c-surface);
    color: var(--c-text-2);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
}

.wc-bracket-filter:hover { border-color: var(--c-text-3); color: var(--c-text); }

.wc-bracket-filter.is-active {
    border-color: var(--c-brand);
    background: var(--c-brand-soft);
    color: #4ade80;
    font-weight: 600;
}

.wc-bracket-group-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--c-border);
}

.wc-bracket-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wc-bracket-row {
    padding: 10px 12px;
    border-radius: var(--c-radius-sm);
    border: 1px solid var(--c-border);
    background: var(--c-bg);
}

.wc-bracket-row[data-status="live"] {
    border-color: rgba(220, 38, 38, 0.3);
    background: var(--c-live-soft);
}

.wc-bracket-row[data-status="upcoming"] {
    border-color: rgba(22, 163, 74, 0.2);
    background: var(--c-brand-soft);
}

.wc-bracket-row[data-status="finished"] {
    opacity: 0.85;
}

.wc-bracket-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.wc-bracket-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.wc-bracket-status-live {
    background: rgba(220, 38, 38, 0.15);
    color: #f87171;
}

.wc-bracket-status-upcoming {
    background: rgba(22, 163, 74, 0.15);
    color: #4ade80;
}

.wc-bracket-status-finished {
    background: rgba(107, 114, 128, 0.15);
    color: var(--c-text-2);
}

.wc-bracket-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-live);
}

.wc-bracket-time {
    font-size: 11px;
    color: var(--c-text-3);
    white-space: nowrap;
}

.wc-bracket-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.wc-bracket-team {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wc-bracket-team-away { text-align: right; }

.wc-bracket-score {
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--c-text);
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--c-surface-2);
}

.wc-bracket-score-live {
    color: #f87171;
    background: rgba(220, 38, 38, 0.12);
}

.wc-bracket-score-upcoming {
    color: var(--c-text-3);
    font-size: 12px;
    font-weight: 600;
}

.wc-bracket-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(22, 163, 74, 0.2);
    font-size: 12px;
}

.wc-bracket-countdown-label {
    color: var(--c-text-3);
    font-size: 11px;
}

.wc-bracket-countdown-value {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--c-brand);
    font-family: ui-monospace, monospace;
}

.wc-bracket-hint {
    margin-top: 6px;
    font-size: 11px;
    color: var(--c-text-3);
    text-align: center;
}

.wc-bracket-hint-live {
    color: #f87171;
    font-weight: 500;
}

/* ── Clickable matches ── */
.wc-match-link,
.wc-bracket-row-link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform .15s;
}

.wc-match-link:hover,
.wc-bracket-row-link:hover {
    transform: translateY(-1px);
}

.wc-match-link:active,
.wc-bracket-row-link:active {
    transform: scale(0.99);
}

.wc-match-tap {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 500;
    color: var(--c-brand);
}

/* ── Lineups ── */
.wc-lineup-grid {
    display: grid;
    gap: 20px;
}

@media (min-width: 768px) {
    .wc-lineup-grid { grid-template-columns: 1fr 1fr; }
}

.wc-lineup-team {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    overflow: hidden;
}

.wc-lineup-team-head {
    padding: 14px 16px;
    border-bottom: 1px solid var(--c-border);
    background: var(--c-surface-2);
}

.wc-lineup-team-name {
    font-size: 15px;
    font-weight: 700;
}

.wc-lineup-meta {
    margin-top: 4px;
    font-size: 12px;
    color: var(--c-text-3);
}

.wc-lineup-section {
    padding: 12px 0;
    border-bottom: 1px solid var(--c-border);
}

.wc-lineup-section:last-child {
    border-bottom: none;
}

.wc-lineup-section-title {
    padding: 0 16px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-text-3);
}

.wc-lineup-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wc-lineup-player {
    display: grid;
    grid-template-columns: 36px 1fr 40px;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-bottom: 1px solid var(--c-border);
    font-size: 13px;
}

.wc-lineup-player:last-child {
    border-bottom: none;
}

.wc-lineup-list-subs .wc-lineup-player {
    background: rgba(255, 255, 255, 0.02);
}

.wc-lineup-player-num {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--c-brand);
    text-align: center;
}

.wc-lineup-player-name {
    font-weight: 600;
    color: var(--c-text);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wc-lineup-player-pos {
    font-size: 11px;
    font-weight: 600;
    color: var(--c-text-3);
    text-align: right;
}

.wc-countdown-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 16px 12px;
    padding: 8px 12px;
    border-radius: var(--c-radius-sm);
    background: var(--c-brand-soft);
    border: 1px solid rgba(22, 163, 74, 0.15);
    font-size: 12px;
}

/* ── Standings page ── */
.wc-standings-note {
    margin-top: 8px;
    font-size: 13px;
    color: var(--c-text-3);
}

.wc-standings-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    font-size: 12px;
    color: var(--c-text-2);
}

.wc-standings-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wc-standings-legend-bar {
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: var(--c-brand);
}

.wc-standings-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .wc-standings-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .wc-standings-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
    .wc-standings-grid { grid-template-columns: repeat(4, 1fr); }
}

.wc-standings-card {
    display: flex;
    flex-direction: column;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    overflow: hidden;
    box-shadow: var(--c-shadow);
    min-width: 0;
}

.wc-standings-card-head {
    padding: 12px 14px;
    border-bottom: 1px solid var(--c-border);
    background: var(--c-surface-2);
}

.wc-standings-group-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--c-text);
}

.wc-standings-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.wc-standings-table {
    width: 100%;
    min-width: 280px;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 12px;
}

.wc-standings-table thead tr {
    border-bottom: 1px solid var(--c-border);
}

.wc-standings-table th {
    padding: 8px 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--c-text-3);
    white-space: nowrap;
    vertical-align: middle;
}

.wc-standings-table td {
    padding: 10px 4px;
    vertical-align: middle;
    border-bottom: 1px solid var(--c-border);
    font-variant-numeric: tabular-nums;
}

.wc-standings-table tbody tr:last-child td {
    border-bottom: none;
}

.wc-st-col-rank {
    width: 28px;
    text-align: center;
    color: var(--c-text-3);
    font-weight: 600;
}

.wc-st-col-team {
    width: auto;
    text-align: left;
    padding-left: 8px !important;
    padding-right: 4px !important;
}

.wc-st-col-stat {
    width: 26px;
    text-align: center;
    color: var(--c-text-2);
}

.wc-st-col-pts {
    width: 32px;
    text-align: center;
    font-weight: 700;
    color: var(--c-brand);
    padding-right: 8px !important;
}

.wc-standings-table th.wc-st-col-rank,
.wc-standings-table th.wc-st-col-stat,
.wc-standings-table th.wc-st-col-pts {
    text-align: center;
}

.wc-standings-table th.wc-st-col-team {
    text-align: left;
    padding-left: 8px;
}

.wc-standings-table th.wc-st-col-pts {
    color: var(--c-brand);
}

.wc-standings-team {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.wc-standings-flag {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.wc-standings-team-name {
    font-weight: 600;
    color: var(--c-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-variant-numeric: normal;
}

.wc-standings-row.wc-standings-qualified {
    background: var(--c-brand-soft);
}

.wc-standings-row.wc-standings-qualified .wc-st-col-rank {
    color: var(--c-brand);
    font-weight: 700;
}

.wc-standings-row.wc-standings-qualified td:first-child {
    box-shadow: inset 3px 0 0 var(--c-brand);
}


