﻿/* ═══════════════════════════════════════════
   PROKNOZ — Site Styles
   Sports prediction site. Clean, data-driven.
   Dark theme with accent colours per sport.
   ═══════════════════════════════════════════ */

/* ── Tokens ── */
:root {
    --pk-bg: #0f1117;
    --pk-bg-card: #181b24;
    --pk-bg-card-alt: #1e2230;
    --pk-bg-hover: #242838;
    --pk-border: #2a2e3d;
    --pk-border-light: #353a4d;
    --pk-text: #e2e4ea;
    --pk-text-muted: #8a8fa3;
    --pk-text-dim: #5c6178;
    --pk-accent: #3b82f6; /* blue – default / football */
    --pk-accent-glow: rgba(59, 130, 246, 0.15);
    --pk-green: #22c55e;
    --pk-red: #ef4444;
    --pk-amber: #f59e0b;
    --pk-font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --pk-mono: 'JetBrains Mono', 'Consolas', monospace;
    --pk-radius: 8px;
    --pk-radius-lg: 12px;
    --pk-shadow: 0 2px 8px rgba(0,0,0,0.25);
    --pk-max-width: 1120px;
    --pk-success: #10b981;
    --pk-danger: #ef4444;
    --pk-bg-card-hover: rgba(255, 255, 255, 0.03);
}

/* ── Reset / Base ── */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--pk-font);
    font-size: 15px;
    line-height: 1.55;
    color: var(--pk-text);
    background: var(--pk-bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--pk-accent);
    text-decoration: none;
}

    a:hover {
        color: #60a5fa;
    }

/* Override Bootstrap defaults that conflict */
.container {
    max-width: var(--pk-max-width);
}

.body-content {
    padding: 0;
}

/* ── Navigation ── */
.pk-nav {
    background: var(--pk-bg-card);
    border-bottom: 1px solid var(--pk-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.pk-nav__inner {
    max-width: var(--pk-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 56px;
}

.pk-nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--pk-text);
    font-weight: 700;
    font-size: 18px;
    margin-right: 32px;
    text-decoration: none;
}

    .pk-nav__brand:hover {
        color: var(--pk-text);
        text-decoration: none;
    }

.pk-nav__logo-svg {
    flex-shrink: 0;
}

.pk-nav__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .pk-nav__links li a {
        display: block;
        padding: 8px 14px;
        color: var(--pk-text-muted);
        font-size: 14px;
        font-weight: 500;
        border-radius: 6px;
        transition: all 0.15s;
    }

        .pk-nav__links li a:hover {
            color: var(--pk-text);
            background: var(--pk-bg-hover);
            text-decoration: none;
        }

        .pk-nav__links li a.active {
            color: var(--pk-accent);
            background: var(--pk-accent-glow);
        }

.pk-nav__disabled {
    opacity: 0.35 !important;
    cursor: default !important;
}

    .pk-nav__disabled:hover {
        background: transparent !important;
        color: var(--pk-text-muted) !important;
    }

.pk-nav__separator {
    width: 1px;
    height: 20px;
    background: var(--pk-border);
    margin: 0 8px;
}

/* Mobile toggle */
.pk-nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
}

    .pk-nav__toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--pk-text-muted);
        margin: 4px 0;
        transition: 0.2s;
    }

@media (max-width: 768px) {
    .pk-nav__toggle {
        display: block;
    }

    .pk-nav__links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--pk-bg-card);
        border-bottom: 1px solid var(--pk-border);
        flex-direction: column;
        padding: 8px 12px;
        gap: 2px;
    }

    .pk-nav__links--open {
        display: flex;
    }

    .pk-nav__separator {
        display: none;
    }

    .pk-nav__links li a {
        padding: 10px 14px;
    }
}

/* ── Main content ── */
.pk-main {
    max-width: var(--pk-max-width);
    margin: 0 auto;
    padding: 24px 20px 60px;
    min-height: calc(100vh - 56px - 200px);
}

/* ── Section headings ── */
.pk-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--pk-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--pk-border);
}

.pk-section-title--with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Event card (match row) ── */
.pk-match {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 0 16px;
    align-items: center;
    padding: 14px 16px;
    background: var(--pk-bg-card);
    border: 1px solid var(--pk-border);
    border-radius: var(--pk-radius);
    margin-bottom: 8px;
    transition: border-color 0.15s, background 0.15s;
    text-decoration: none;
    color: inherit;
}

    .pk-match:hover {
        border-color: var(--pk-border-light);
        background: var(--pk-bg-hover);
        color: inherit;
        text-decoration: none;
    }

.pk-match__time {
    font-family: var(--pk-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--pk-text-muted);
    text-align: center;
}

.pk-match__time--live {
    color: var(--pk-green);
    animation: pk-pulse 2s infinite;
}

.pk-match__time--ft {
    color: var(--pk-text-dim);
}

.pk-match__teams {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.pk-match__team {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

    .pk-match__team img {
        width: 18px;
        height: 18px;
        object-fit: contain;
    }

.pk-match__score {
    font-family: var(--pk-mono);
    font-weight: 600;
    font-size: 14px;
    margin-left: auto;
    min-width: 16px;
    text-align: right;
}

.pk-match__prediction {
    display: flex;
    gap: 6px;
    align-items: center;
}

.pk-match__prob {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 44px;
}

.pk-match__prob-label {
    font-size: 10px;
    color: var(--pk-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pk-match__prob-value {
    font-family: var(--pk-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--pk-text-muted);
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--pk-bg);
}

.pk-match__prob-value--fav {
    color: var(--pk-accent);
    background: var(--pk-accent-glow);
}

/* "No predictions yet" state */
.pk-match__no-prediction {
    font-size: 12px;
    color: var(--pk-text-dim);
    font-style: italic;
}

@media (max-width: 600px) {
    .pk-match {
        grid-template-columns: 44px 1fr;
        gap: 6px 12px;
    }

    .pk-match__prediction {
        grid-column: 1 / -1;
        padding-top: 8px;
        border-top: 1px solid var(--pk-border);
        margin-top: 4px;
        justify-content: center;
    }
}

/* ── Competition group header ── */
.pk-comp-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 28px 0 12px;
}

    .pk-comp-header:first-child {
        margin-top: 0;
    }

    .pk-comp-header img {
        width: 22px;
        height: 22px;
        object-fit: contain;
    }

.pk-comp-header__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--pk-text);
}

.pk-comp-header__country {
    font-size: 12px;
    color: var(--pk-text-dim);
    margin-left: 4px;
}

/* ── Competition filter pills ── */
.pk-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.pk-filter {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--pk-text-muted);
    background: var(--pk-bg-card);
    border: 1px solid var(--pk-border);
    border-radius: 20px;
    transition: all 0.15s;
}

    .pk-filter:hover {
        color: var(--pk-text);
        border-color: var(--pk-border-light);
        text-decoration: none;
    }

.pk-filter--active {
    color: var(--pk-accent);
    border-color: var(--pk-accent);
    background: var(--pk-accent-glow);
}

.pk-filter__count {
    font-family: var(--pk-mono);
    font-size: 11px;
    color: var(--pk-text-dim);
}

/* ── Event detail page ── */
.pk-event-header {
    text-align: center;
    padding: 24px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--pk-border);
}

.pk-event-header__comp {
    font-size: 13px;
    color: var(--pk-text-muted);
    margin-bottom: 4px;
}

.pk-event-header__matchday {
    font-size: 12px;
    color: var(--pk-text-dim);
}

.pk-event-header__teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin: 20px 0;
}

.pk-event-header__team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 100px;
}

    .pk-event-header__team img {
        width: 48px;
        height: 48px;
        object-fit: contain;
    }

.pk-event-header__team-name {
    font-size: 16px;
    font-weight: 600;
}

.pk-event-header__vs {
    font-size: 14px;
    color: var(--pk-text-dim);
    font-weight: 500;
}

.pk-event-header__score {
    font-family: var(--pk-mono);
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 2px;
}

.pk-event-header__meta {
    font-size: 13px;
    color: var(--pk-text-muted);
    margin-top: 8px;
}

/* ── Prediction bars (football 1X2 stacked) ── */
.pk-pred-card {
    background: var(--pk-bg-card);
    border: 1px solid var(--pk-border);
    border-radius: var(--pk-radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}

.pk-pred-card__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--pk-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.pk-pred-bar {
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    height: 36px;
    background: var(--pk-bg);
    margin-bottom: 10px;
}

.pk-pred-bar__segment {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--pk-mono);
    color: #fff;
    transition: flex-basis 0.4s ease;
    min-width: 0;
    overflow: hidden;
}

.pk-pred-bar__segment--home {
    background: var(--pk-accent);
}

.pk-pred-bar__segment--draw {
    background: #6b7280;
}

.pk-pred-bar__segment--away {
    background: #8b5cf6;
}

.pk-pred-bar__segment--over {
    background: var(--pk-green);
}

.pk-pred-bar__segment--under {
    background: #6b7280;
}

.pk-pred-bar__segment--yes {
    background: var(--pk-green);
}

.pk-pred-bar__segment--no {
    background: #6b7280;
}

.pk-pred-legend {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.pk-pred-legend__item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.pk-pred-legend__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.pk-pred-legend__label {
    color: var(--pk-text-muted);
}

.pk-pred-legend__value {
    font-family: var(--pk-mono);
    font-weight: 600;
}

/* ── Reasoning block (standalone card — football event detail) ── */
.pk-reasoning {
    background: var(--pk-bg-card);
    border: 1px solid var(--pk-border);
    border-left: 3px solid var(--pk-accent);
    border-radius: var(--pk-radius);
    padding: 20px;
    margin-bottom: 16px;
}

/* Reasoning inside a pk-card — WRC/F1 inline style */
.pk-card > .pk-reasoning {
    background: none;
    border: none;
    border-left: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
    border-top: 1px solid var(--pk-border);
    padding-top: 16px;
    margin-top: 16px;
}

.pk-reasoning__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--pk-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.pk-reasoning__text {
    font-size: 14px;
    line-height: 1.65;
    color: var(--pk-text);
    white-space: pre-line;
}

.pk-reasoning__model {
    margin-top: 12px;
    font-size: 12px;
    color: var(--pk-text-dim);
    font-family: var(--pk-mono);
}

/* ── Result comparison ── */
.pk-comparison {
    background: var(--pk-bg-card);
    border: 1px solid var(--pk-border);
    border-radius: var(--pk-radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}

.pk-comparison__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--pk-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.pk-comparison__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--pk-border);
}

    .pk-comparison__row:last-child {
        border-bottom: none;
    }

.pk-comparison__market {
    font-size: 13px;
    color: var(--pk-text-muted);
    min-width: 100px;
}

.pk-comparison__predicted {
    font-size: 13px;
    font-family: var(--pk-mono);
}

.pk-comparison__actual {
    font-size: 13px;
    font-weight: 600;
}

.pk-comparison__icon {
    font-size: 16px;
    min-width: 24px;
    text-align: center;
}

.pk-comparison__icon--correct {
    color: var(--pk-green);
}

.pk-comparison__icon--wrong {
    color: var(--pk-red);
}

/* ── Match stats table ── */
.pk-stats {
    background: var(--pk-bg-card);
    border: 1px solid var(--pk-border);
    border-radius: var(--pk-radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}

.pk-stats__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--pk-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.pk-stats__row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    padding: 6px 0;
}

.pk-stats__home {
    text-align: right;
    font-family: var(--pk-mono);
    font-size: 14px;
    font-weight: 600;
}

.pk-stats__label {
    text-align: center;
    font-size: 12px;
    color: var(--pk-text-dim);
    min-width: 80px;
}

.pk-stats__away {
    text-align: left;
    font-family: var(--pk-mono);
    font-size: 14px;
    font-weight: 600;
}

/* ── Hero / Home page ── */
.pk-hero {
    text-align: center;
    padding: 32px 0 24px;
}

.pk-hero__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--pk-text);
    margin-bottom: 8px;
}

.pk-hero__subtitle {
    font-size: 15px;
    color: var(--pk-text-muted);
    max-width: 520px;
    margin: 0 auto;
}

/* ── Empty state ── */
.pk-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--pk-text-dim);
}

.pk-empty__icon-svg {
    margin-bottom: 16px;
    color: var(--pk-text-dim);
}

.pk-empty__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--pk-text-muted);
    margin-bottom: 6px;
}

.pk-empty__text {
    font-size: 14px;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

    .pk-empty__text a {
        color: var(--pk-accent);
    }

/* ── Breadcrumb ── */
.pk-breadcrumb {
    font-size: 13px;
    color: var(--pk-text-dim);
    margin-bottom: 16px;
}

    .pk-breadcrumb a {
        color: var(--pk-text-muted);
    }

        .pk-breadcrumb a:hover {
            color: var(--pk-accent);
        }

.pk-breadcrumb__sep {
    margin: 0 6px;
    color: var(--pk-text-dim);
}

/* ── Two-column layout for event detail ── */
.pk-event-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
}

@media (max-width: 860px) {
    .pk-event-grid {
        display: flex;
        flex-direction: column;
    }

        .pk-event-grid > div {
            width: 100%;
        }
}

/* ── Static pages ── */

.pk-page h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--pk-text);
}

.pk-page h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 28px 0 10px;
    color: var(--pk-text);
}

.pk-page p {
    margin-bottom: 14px;
    color: var(--pk-text-muted);
    line-height: 1.7;
}

/* ── Footer ── */
.pk-footer {
    background: var(--pk-bg-card);
    border-top: 1px solid var(--pk-border);
    padding: 24px 20px;
    margin-top: 40px;
}

.pk-footer__inner {
    max-width: var(--pk-max-width);
    margin: 0 auto;
}

.pk-footer__disclaimer {
    font-size: 12px;
    color: var(--pk-text-dim);
    line-height: 1.6;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: var(--pk-radius);
    margin-bottom: 20px;
}

    .pk-footer__disclaimer strong {
        color: var(--pk-red);
    }

.pk-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pk-footer__links {
    display: flex;
    gap: 16px;
}

    .pk-footer__links a {
        font-size: 13px;
        color: var(--pk-text-dim);
    }

        .pk-footer__links a:hover {
            color: var(--pk-text-muted);
        }

.pk-footer__copy {
    font-size: 12px;
    color: var(--pk-text-dim);
}

@media (max-width: 600px) {
    .pk-footer__bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* ============================================================
   PERFORMANCE PAGE
   ============================================================ */

/* ── Summary cards row ── */
.pk-perf-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 600px) {
    .pk-perf-summary {
        grid-template-columns: 1fr;
    }
}

.pk-perf-card {
    background: var(--pk-bg-card);
    border: 1px solid var(--pk-border);
    border-radius: var(--pk-radius);
    padding: 20px;
    text-align: center;
}

.pk-perf-card__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--pk-text-dim);
    margin-bottom: 8px;
}

.pk-perf-card__value {
    font-size: 32px;
    font-weight: 700;
    color: var(--pk-text);
    font-family: var(--pk-mono);
    line-height: 1.2;
}

.pk-perf-card__sub {
    font-size: 12px;
    color: var(--pk-text-dim);
    margin-top: 4px;
}

/* ── Charts ── */
.pk-chart-wrap {
    display: block;
    position: relative;
    width: 100%;
    min-height: 280px;
    height: 350px;
    padding: 8px 0;
}

/* ── Breakdown grid (market + sport tables side by side) ── */
.pk-perf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

/* ── Generic card for performance sections ── */
.pk-card {
    background: var(--pk-bg-card);
    border: 1px solid var(--pk-border);
    border-radius: var(--pk-radius);
    padding: 20px;
    overflow-x: auto;
}

.pk-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.pk-card__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--pk-text);
    margin: 0;
}

.pk-card__link {
    font-size: 13px;
    color: var(--pk-text-muted);
    white-space: nowrap;
}

.pk-card__desc {
    font-size: 13px;
    color: var(--pk-text-dim);
    margin: 0 0 16px;
    line-height: 1.5;
}

/* ── Tables ── */
.pk-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

    .pk-table thead th {
        text-align: left;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        color: var(--pk-text-dim);
        padding: 8px 12px;
        border-bottom: 1px solid var(--pk-border);
    }

    .pk-table tbody td {
        padding: 10px 12px;
        color: var(--pk-text-muted);
        border-bottom: 1px solid var(--pk-border);
    }

    .pk-table tbody tr:last-child td {
        border-bottom: none;
    }

    .pk-table tbody tr:hover td {
        background: var(--pk-bg-hover);
    }

.pk-table__num {
    text-align: right !important;
}

.pk-table__pos {
    text-align: center !important;
    width: 40px;
}

.pk-table__bold {
    font-weight: 600;
    color: var(--pk-text);
}

.pk-table__dim {
    color: var(--pk-text-dim);
}

.pk-table__mono {
    font-family: var(--pk-mono);
    font-size: 12px;
}

/* ── Monospace helper ── */
.pk-mono {
    font-family: var(--pk-mono);
    font-size: 13px;
}

/* ── Badges (unified) ── */
.pk-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pk-badge--green {
    background: rgba(34, 197, 94, 0.12);
    color: var(--pk-green);
}

.pk-badge--dim {
    background: rgba(92, 97, 120, 0.15);
    color: var(--pk-text-dim);
}

.pk-badge--success {
    background: rgba(16, 185, 129, 0.12);
    color: var(--pk-success);
}

.pk-badge--danger {
    background: rgba(239, 68, 68, 0.12);
    color: var(--pk-danger);
}

/* FIX: Unified finished badge — green for all sports */
.pk-badge--finished {
    background: rgba(16, 185, 129, 0.15);
    color: var(--pk-success);
}

/* FIX: Single live badge definition with css var */
.pk-badge--live {
    background: rgba(239, 68, 68, 0.15);
    color: var(--pk-danger);
    animation: pk-pulse 2s ease-in-out infinite;
}

.pk-badge--scheduled {
    background: rgba(255, 255, 255, 0.06);
    color: var(--pk-text-muted);
}

.pk-badge--ps {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    font-size: 11px;
    font-weight: 700;
}

/* ── Prob badge (used in standings tables) ── */
.pk-prob-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--pk-accent);
    font-variant-numeric: tabular-nums;
}

/* ── Driver name ── */
.pk-driver-name {
    font-weight: 500;
    color: var(--pk-text);
}

/* ── Page title ── */
.pk-page-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--pk-text);
}

.pk-page-title__season {
    font-weight: 400;
    color: var(--pk-text-dim);
    font-size: 18px;
}

/* ── Two-column grid ── */
.pk-grid--2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .pk-grid--2col {
        grid-template-columns: 1fr;
    }
}

/* ── Disclaimer ── */
.pk-perf-disclaimer {
    font-size: 12px;
    color: var(--pk-text-dim);
    line-height: 1.6;
    padding: 14px 18px;
    margin-top: 28px;
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: var(--pk-radius);
}

    .pk-perf-disclaimer strong {
        color: var(--pk-red);
    }

/* ── Sport filter pills ── */
.pk-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pk-pills--center {
    justify-content: center;
    margin-bottom: 20px;
}

.pk-pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--pk-text-muted);
    background: var(--pk-bg-card);
    border: 1px solid var(--pk-border);
    text-decoration: none;
    transition: all 0.15s ease;
}

    .pk-pill:hover {
        color: var(--pk-text);
        border-color: var(--pk-border-light);
        background: var(--pk-bg-hover);
        text-decoration: none;
    }

.pk-pill--active {
    color: #fff;
    background: var(--pk-accent);
    border-color: var(--pk-accent);
}

    .pk-pill--active:hover {
        color: #fff;
        background: var(--pk-accent);
    }

/* ── Pulse animation (single definition) ── */
@keyframes pk-pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* ═══════════════════════════════════════════
   COMPETITION OUTRIGHT PAGE
   ═══════════════════════════════════════════ */

/* ── Competition header ── */
.pk-comp-header__logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: var(--pk-radius);
}

.pk-comp-header__title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.pk-comp-header__meta {
    color: var(--pk-text-muted);
    font-size: 14px;
    margin-top: 4px;
}

/* ── Chart container (card-style, used by outright pages) ── */
.pk-chart-container {
    position: relative;
    height: 350px;
    background: var(--pk-bg-card);
    border: 1px solid var(--pk-border);
    border-radius: var(--pk-radius-lg);
    padding: 24px;
    margin-bottom: 12px;
}

.pk-chart-note {
    color: var(--pk-text-dim);
    font-size: 12px;
    margin: 0 0 32px;
}

/* ── Outright table ── */
.pk-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pk-outright-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

    .pk-outright-table thead th {
        text-align: left;
        color: var(--pk-text-muted);
        font-weight: 500;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 10px 12px;
        border-bottom: 1px solid var(--pk-border);
        white-space: nowrap;
    }

.pk-outright-table__rank {
    width: 40px;
    text-align: center !important;
}

.pk-outright-table__team {
    min-width: 180px;
}

.pk-outright-table__prob {
    width: 140px;
}

.pk-outright-table__row {
    transition: background 0.15s;
}

    .pk-outright-table__row:hover {
        background: var(--pk-bg-hover);
    }

    .pk-outright-table__row td {
        padding: 10px 12px;
        border-bottom: 1px solid var(--pk-border);
        vertical-align: middle;
    }

.pk-outright-table__team {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pk-outright-table__team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ── Probability bar inside table cell ── */
.pk-prob-bar-cell {
    position: relative;
    height: 24px;
    display: flex;
    align-items: center;
}

.pk-prob-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--pk-accent-glow);
    border-radius: 4px;
    min-width: 2px;
    transition: width 0.3s ease;
}

.pk-prob-value {
    position: relative;
    z-index: 1;
    padding-left: 6px;
    font-size: 13px;
    color: var(--pk-text-muted);
    font-variant-numeric: tabular-nums;
}

.pk-prob-value--strong {
    color: var(--pk-accent);
    font-weight: 600;
}

.pk-prob-value--danger {
    color: var(--pk-red);
    font-weight: 600;
}

/* ── Reasoning cards grid ── */
.pk-reasoning-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .pk-reasoning-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .pk-reasoning-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pk-reasoning-card {
    background: var(--pk-bg-card);
    border: 1px solid var(--pk-border);
    border-radius: var(--pk-radius);
    overflow: hidden;
}

.pk-reasoning-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--pk-border);
    font-size: 14px;
}

.pk-reasoning-card__logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.pk-reasoning-card__prob {
    margin-left: auto;
    color: var(--pk-accent);
    font-weight: 600;
    font-size: 15px;
}

.pk-reasoning-card__body {
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--pk-text-muted);
}

    .pk-reasoning-card__body p {
        margin: 0 0 6px;
    }

        .pk-reasoning-card__body p:last-child {
            margin-bottom: 0;
        }

/* ── Note / disclaimer ── */
.pk-note {
    background: var(--pk-bg-card-alt);
    border: 1px solid var(--pk-border);
    border-radius: var(--pk-radius);
    padding: 14px 18px;
    font-size: 13px;
    color: var(--pk-text-dim);
    margin-top: 32px;
}

    .pk-note a {
        color: var(--pk-accent);
    }

/* ── Section spacing ── */
.pk-section {
    margin-bottom: 32px;
}

.pk-section__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px;
}

.pk-comp-outright-link {
    font-size: 12px;
    color: var(--pk-text-muted);
    margin-left: auto;
    padding: 4px 10px;
    border: 1px solid var(--pk-border);
    border-radius: 4px;
    transition: all 0.15s;
    text-decoration: none;
    white-space: nowrap;
}

    .pk-comp-outright-link:hover {
        color: var(--pk-accent);
        border-color: var(--pk-accent);
    }

/* ═══════════════════════════════════════════
   F1 — Phase 3 styles
   ═══════════════════════════════════════════ */

/* ── Next GP card ── */
.pk-f1-next {
    display: block;
    background: var(--pk-bg-card);
    border: 1px solid var(--pk-border);
    border-radius: 8px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s;
}

    .pk-f1-next:hover {
        border-color: var(--pk-accent);
        text-decoration: none;
        color: inherit;
    }

.pk-f1-next__header {
    margin-bottom: 20px;
}

.pk-f1-next__gp-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--pk-text);
    margin-bottom: 4px;
}

.pk-f1-next__circuit-info {
    font-size: 13px;
    color: var(--pk-text-muted);
    margin-bottom: 4px;
}

.pk-f1-next__time {
    font-size: 13px;
    color: var(--pk-text-dim);
    font-variant-numeric: tabular-nums;
}

.pk-f1-next__predictions {
    border-top: 1px solid var(--pk-border);
    padding-top: 16px;
}

.pk-f1-next__pred-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--pk-text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pk-f1-next__pred-window {
    font-size: 11px;
    font-weight: 500;
    background: var(--pk-accent);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: capitalize;
}

.pk-f1-next__no-pred {
    border-top: 1px solid var(--pk-border);
    padding-top: 16px;
    font-size: 13px;
    color: var(--pk-text-dim);
}

/* ── F1 probability bars ── */
.pk-f1-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pk-f1-bar {
    display: grid;
    grid-template-columns: 140px 1fr 50px;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.pk-f1-bar__driver {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.pk-f1-bar__code {
    font-weight: 700;
    font-size: 12px;
    color: var(--pk-accent);
    width: 32px;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.pk-f1-bar__name {
    color: var(--pk-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pk-f1-bar__track {
    height: 18px;
    background: var(--pk-bg-card-hover);
    border-radius: 3px;
    overflow: hidden;
}

.pk-f1-bar__fill {
    height: 100%;
    border-radius: 3px;
    min-width: 2px;
    transition: width 0.4s ease;
}

.pk-f1-bar__fill--p1 {
    background: var(--pk-accent);
}

.pk-f1-bar__fill--podium {
    background: #3b82f6;
    opacity: 0.7;
}

.pk-f1-bar__fill--other {
    background: var(--pk-text-dim);
    opacity: 0.4;
}

.pk-f1-bar__pct {
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: var(--pk-text-muted);
    font-size: 12px;
}

/* ── Schedule items ── */
.pk-f1-next__schedule {
    border-top: 1px solid var(--pk-border);
    margin-top: 16px;
    padding-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
}

.pk-f1-schedule-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--pk-text-dim);
    padding: 3px 0;
}

.pk-f1-schedule-item--done {
    opacity: 0.5;
}

.pk-f1-schedule-item__label {
    font-weight: 600;
    color: var(--pk-text-muted);
    min-width: 60px;
}

.pk-f1-schedule-item__check {
    color: var(--pk-success);
    font-size: 11px;
}

/* ── Standings grid ── */
.pk-f1-standings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .pk-f1-standings-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Driver code badge ── */
.pk-f1-driver-code {
    font-weight: 700;
    font-size: 11px;
    color: var(--pk-accent);
    margin-right: 4px;
    letter-spacing: 0.5px;
}

/* ── Fastest lap badge ── */
.pk-f1-fl-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    background: #a855f7;
    color: #fff;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0.5px;
}

/* ── Position change ── */
.pk-f1-pos-change {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.pk-f1-pos-change--up {
    color: var(--pk-success);
}

.pk-f1-pos-change--down {
    color: var(--pk-danger);
}

/* ── Tyre compound badges ── */
.pk-f1-compound {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pk-f1-compound--soft {
    background: #ef4444;
    color: #fff;
}

.pk-f1-compound--medium {
    background: #f59e0b;
    color: #1a1a1a;
}

.pk-f1-compound--hard {
    background: #e5e7eb;
    color: #1a1a1a;
}

.pk-f1-compound--intermediate {
    background: #10b981;
    color: #fff;
}

.pk-f1-compound--wet {
    background: #3b82f6;
    color: #fff;
}

/* ── DNF row styling ── */
.pk-table__row--dnf td {
    opacity: 0.5;
}

.pk-table__row--fl td:first-child {
    border-left: 2px solid #a855f7;
}

/* ── GP header ── */
.pk-f1-gp-header {
    margin-bottom: 28px;
}

.pk-f1-gp-header__title {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 4px;
}

    .pk-f1-gp-header__title h1 {
        margin: 0;
    }

.pk-f1-gp-header__round {
    font-size: 14px;
    font-weight: 500;
    color: var(--pk-text-dim);
}

.pk-f1-gp-header__circuit {
    font-size: 14px;
    color: var(--pk-text-muted);
    margin-bottom: 4px;
}

.pk-f1-gp-header__date {
    font-size: 13px;
    color: var(--pk-text-dim);
}

/* ── Prediction window badge ── */
.pk-f1-pred-window {
    font-size: 11px;
    font-weight: 500;
    background: var(--pk-accent);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: capitalize;
    vertical-align: middle;
}

/* ── Market prediction card ── */
.pk-f1-market-card {
    margin-bottom: 16px;
}

.pk-f1-market-card__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--pk-text);
    margin: 0 0 14px 0;
}

/* ── Weather/temp badges ── */
.pk-f1-weather,
.pk-f1-temp {
    font-size: 12px;
    font-weight: 400;
    color: var(--pk-text-dim);
    margin-left: 10px;
}

/* ── Accuracy section ── */
.pk-f1-accuracy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pk-f1-accuracy__item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid var(--pk-border);
}

    .pk-f1-accuracy__item:last-child {
        border-bottom: none;
    }

.pk-f1-accuracy__market {
    font-weight: 600;
    color: var(--pk-text);
    min-width: 120px;
}

.pk-f1-accuracy__result {
    font-size: 16px;
    width: 24px;
    text-align: center;
}

.pk-f1-accuracy__result--correct {
    color: var(--pk-success);
}

.pk-f1-accuracy__result--wrong {
    color: var(--pk-danger);
}

.pk-f1-accuracy__detail {
    color: var(--pk-text-muted);
}

/* ── Recent results ── */
.pk-f1-recent {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.pk-f1-recent__item {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 16px;
    transition: border-color 0.2s;
}

    .pk-f1-recent__item:hover {
        border-color: var(--pk-accent);
        text-decoration: none;
        color: inherit;
    }

.pk-f1-recent__gp {
    font-weight: 600;
    font-size: 14px;
    color: var(--pk-text);
    margin-bottom: 2px;
}

.pk-f1-recent__circuit {
    font-size: 12px;
    color: var(--pk-text-dim);
    margin-bottom: 8px;
}

.pk-f1-recent__winner {
    font-size: 13px;
    color: var(--pk-text-muted);
    margin-bottom: 6px;
}

.pk-f1-recent__pred {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

.pk-f1-recent__pred--correct {
    background: rgba(16, 185, 129, 0.1);
    color: var(--pk-success);
}

.pk-f1-recent__pred--wrong {
    background: rgba(239, 68, 68, 0.1);
    color: var(--pk-danger);
}

/* ── Championship page ── */
.pk-f1-champ-updated {
    text-align: center;
    font-size: 13px;
    color: var(--pk-text-dim);
    margin: 0 0 24px;
}

.pk-f1-chart-card {
    padding: 20px;
    min-height: 340px;
}

    .pk-f1-chart-card canvas {
        width: 100% !important;
    }

.pk-chart-wrap canvas {
    display: block;
}

/* ── Probability cell with inline bar ── */
.pk-f1-prob-cell {
    position: relative;
    min-width: 90px;
}

.pk-f1-prob-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: var(--pk-accent);
    opacity: 0.12;
    border-radius: 2px;
}

.pk-f1-prob-cell span {
    position: relative;
    z-index: 1;
}

/* ── Reasoning cards ── */
.pk-f1-reasoning-card {
    margin-bottom: 12px;
}

.pk-f1-reasoning-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.pk-f1-reasoning-card__name {
    font-weight: 700;
    font-size: 15px;
    color: var(--pk-text);
}

.pk-f1-reasoning-card__prob {
    font-size: 14px;
    font-weight: 600;
    color: var(--pk-accent);
    font-variant-numeric: tabular-nums;
}

/* ── F1 Responsive ── */
@media (max-width: 600px) {
    .pk-f1-bar {
        grid-template-columns: 90px 1fr 42px;
        gap: 6px;
    }

    .pk-f1-accuracy__item {
        flex-wrap: wrap;
    }

    .pk-f1-gp-header__title {
        flex-direction: column;
        gap: 4px;
    }
}

/* ═══════════════════════════════════════════════════
   WRC — Phase 4 styles
   ═══════════════════════════════════════════════════ */

/* ── Surface badges ── */
.pk-wrc-surface {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--pk-text-muted);
}

.pk-wrc-surface--gravel {
    background: rgba(194, 139, 76, 0.15);
    color: #d4a96a;
}

.pk-wrc-surface--asphalt {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
}

.pk-wrc-surface--snow {
    background: rgba(147, 197, 253, 0.15);
    color: #93c5fd;
}

.pk-wrc-surface--mixed {
    background: rgba(167, 139, 250, 0.15);
    color: #a78bfa;
}

/* ── Next Rally card ── */
.pk-wrc-next__link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 16px 0;
    transition: opacity 0.15s;
}

    .pk-wrc-next__link:hover {
        opacity: 0.85;
    }

.pk-wrc-next__name {
    font-size: 20px;
    font-weight: 700;
    color: var(--pk-text);
    margin-bottom: 6px;
}

.pk-wrc-next__meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 13px;
    color: var(--pk-text-muted);
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.pk-wrc-next__date {
    font-size: 14px;
    color: var(--pk-text-dim);
}

.pk-wrc-next__countdown {
    font-size: 13px;
    color: var(--pk-accent);
    margin-top: 4px;
}

.pk-wrc-next__predictions {
    border-top: 1px solid var(--pk-border);
    padding-top: 16px;
}

.pk-wrc-next__pred-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--pk-text-muted);
    margin-bottom: 12px;
}

/* ── Rally header (event detail) ── */
.pk-wrc-header__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.pk-wrc-header__meta {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    color: var(--pk-text-muted);
    margin-top: 6px;
    flex-wrap: wrap;
}

.pk-wrc-header__progress {
    margin-top: 16px;
}

.pk-wrc-header__progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.pk-wrc-header__progress-fill {
    height: 100%;
    background: var(--pk-accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.pk-wrc-header__progress-text {
    font-size: 12px;
    color: var(--pk-text-dim);
    margin-top: 4px;
    display: inline-block;
}

/* ── WRC Prediction bars (renamed from pk-pred-bar to avoid football conflict) ── */
.pk-wrc-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.pk-wrc-bar__label {
    flex: 0 0 100px;
    min-width: 0;
    overflow: hidden;
}

.pk-wrc-bar__name {
    font-size: 13px;
    font-weight: 500;
    color: var(--pk-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.pk-wrc-bar__track {
    flex: 1;
    height: 20px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 3px;
    overflow: hidden;
}

.pk-wrc-bar__fill {
    height: 100%;
    background: var(--pk-accent);
    border-radius: 3px;
    min-width: 2px;
    transition: width 0.3s ease;
}

.pk-wrc-bar__fill--secondary {
    background: var(--pk-success);
}

.pk-wrc-bar__fill--accent {
    background: #f59e0b;
}

.pk-wrc-bar__value {
    flex: 0 0 45px;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    color: var(--pk-text);
    font-variant-numeric: tabular-nums;
}

/* ── Prediction sections (WRC) ── */
.pk-pred-section {
    margin-bottom: 24px;
}

    .pk-pred-section:last-child {
        margin-bottom: 0;
    }

.pk-pred-section__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--pk-text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ── Stage results ── */
.pk-stages {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pk-stage {
    border: 1px solid var(--pk-border);
    border-radius: 6px;
    overflow: hidden;
}

.pk-stage--power {
    border-color: rgba(245, 158, 11, 0.3);
}

.pk-stage__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    cursor: default;
}

.pk-stage__id {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.pk-stage__number {
    font-size: 13px;
    font-weight: 700;
    color: var(--pk-text);
    font-variant-numeric: tabular-nums;
    min-width: 36px;
}

.pk-stage__info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.pk-stage__name {
    font-size: 13px;
    color: var(--pk-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pk-stage__distance {
    font-size: 12px;
    color: var(--pk-text-dim);
    flex-shrink: 0;
}

.pk-stage__status {
    flex: 0 0 auto;
}

.pk-stage__times {
    padding: 6px 14px 10px;
}

.pk-stage-time {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.pk-stage-time__pos {
    flex: 0 0 20px;
    font-weight: 700;
    color: var(--pk-text-muted);
}

.pk-stage-time__driver {
    flex: 0 0 65px;
    font-weight: 600;
    color: var(--pk-text);
}

.pk-stage-time__manufacturer {
    flex: 0 0 60px;
    color: var(--pk-text-dim);
}

.pk-stage-time__time {
    flex: 0 0 75px;
    font-family: var(--pk-mono);
    color: var(--pk-text);
}

.pk-stage-time__gap {
    flex: 0 0 60px;
    color: var(--pk-text-dim);
    font-family: var(--pk-mono);
}

.pk-stage-time__road {
    font-size: 11px;
    color: var(--pk-text-dim);
    padding: 1px 4px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 2px;
}

.pk-stage__prediction {
    padding: 8px 14px 10px;
    font-size: 12px;
    color: var(--pk-text-dim);
    display: flex;
    gap: 6px;
    align-items: center;
}

.pk-stage__pred-label {
    font-style: italic;
}

.pk-stage__pred-name {
    font-weight: 600;
    color: var(--pk-text-muted);
}

.pk-stage__pred-prob {
    color: var(--pk-accent);
    font-weight: 600;
}

/* ── Classification table extras ── */
.pk-codriver-name {
    font-size: 12px;
    color: var(--pk-text-dim);
    margin-top: 1px;
}

.pk-status-note {
    font-size: 11px;
    color: var(--pk-danger);
    margin-top: 2px;
}

.pk-table__row--retired {
    opacity: 0.55;
}

.pk-table__row--excluded {
    opacity: 0.4;
    text-decoration: line-through;
}

/* ── Recent results list ── */
.pk-recent-list {
    display: flex;
    flex-direction: column;
}

.pk-recent-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--pk-border);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

    .pk-recent-item:last-child {
        border-bottom: none;
    }

    .pk-recent-item:hover {
        background: var(--pk-bg-card-hover);
    }

.pk-recent-item__rally {
    flex: 1;
    min-width: 0;
}

.pk-recent-item__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--pk-text);
}

.pk-recent-item__meta {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 3px;
}

.pk-recent-item__date {
    font-size: 12px;
    color: var(--pk-text-dim);
}

.pk-recent-item__winner {
    flex: 0 0 auto;
    text-align: right;
}

.pk-recent-item__winner-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--pk-text);
}

.pk-recent-item__codriver {
    font-weight: 400;
    color: var(--pk-text-dim);
    font-size: 12px;
}

.pk-recent-item__winner-team {
    font-size: 12px;
    color: var(--pk-text-dim);
}

.pk-recent-item__accuracy {
    flex: 0 0 auto;
}

/* ── Championship-specific ── */
.pk-champ-entry {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pk-champ-entry__color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

.pk-prob-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 80px;
}

.pk-prob-inline__bar {
    height: 6px;
    border-radius: 3px;
    min-width: 2px;
    transition: width 0.3s ease;
}

.pk-prob-inline__value {
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.pk-delta {
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.pk-delta--up {
    color: var(--pk-success);
}

.pk-delta--down {
    color: var(--pk-danger);
}

.pk-delta--flat {
    color: var(--pk-text-dim);
}

/* ── Reasoning list (WRC championship) ── */
.pk-reasoning-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pk-reasoning-item {
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border: 1px solid var(--pk-border);
}

.pk-reasoning-item__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.pk-reasoning-item__name {
    font-size: 15px;
    font-weight: 600;
    color: var(--pk-text);
}

.pk-reasoning-item__text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--pk-text-muted);
    white-space: pre-line;
}

/* ── Accuracy card ── */
.pk-accuracy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pk-accuracy__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.pk-accuracy__label {
    color: var(--pk-text-dim);
    font-weight: 500;
}

/* ── Result summary ── */
.pk-result-summary {
    border-left: 3px solid var(--pk-success);
}

.pk-result-summary__text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--pk-text);
}

/* ── Table scroll for narrow screens ── */
.pk-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── WRC Responsive ── */
@media (max-width: 768px) {
    .pk-wrc-bar__label {
        flex: 0 0 90px;
    }

    .pk-stage__info {
        flex-direction: column;
        gap: 2px;
    }

    .pk-recent-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .pk-recent-item__winner {
        text-align: left;
    }

    .pk-wrc-header__top {
        flex-direction: column;
    }
}

/* ── Section title inline link ── */
.pk-section__title .pk-section__link,
.pk-section__link {
    float: right;
    font-size: 12px;
    font-weight: 500;
    color: var(--pk-accent);
    text-transform: none;
    letter-spacing: normal;
}

    .pk-section__link:hover {
        color: #60a5fa;
        text-decoration: none;
    }

.pk-badge--live {
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 8px;
    animation: pk-pulse-live 2s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes pk-pulse-live {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* ── Scroll horizontal em tabelas ── */

/* O wrapper faz scroll */
.pk-f1-standings-grid .pk-card,
.pk-section .pk-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Larguras mínimas para forçar o scroll a activar */
.pk-table--f1 {
    min-width: 500px;
}

.pk-table--classification {
    min-width: 560px;
}

.pk-f1-standings-grid .pk-table,
.pk-grid--2col .pk-table {
    min-width: 380px;
}

.pk-f1-standings-grid .pk-section {
    min-width: 0;
    overflow: hidden;
}

.pk-f1-standings-grid .pk-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pk-f1-standings-grid .pk-table {
    min-width: 380px;
}


/* ════════════════════════════════════════════════════════════
   CYCLING — pk-cyc-* namespace
   Append to site.css after WRC styles.
   ════════════════════════════════════════════════════════════ */

/* ── Race type badges ── */

.pk-cyc-type {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    vertical-align: middle;
}

.pk-cyc-type--stage {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.pk-cyc-type--oneday {
    background: rgba(168, 85, 247, 0.15);
    color: #c4b5fd;
    border: 1px solid rgba(168, 85, 247, 0.28);
}

/* ── Stage type labels ── */

.pk-cyc-stagetype {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pk-cyc-stagetype--sprint {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.pk-cyc-stagetype--mountain {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.pk-cyc-stagetype--tt {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.pk-cyc-stagetype--mixed {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

/* ── Stage count pill ── */

.pk-cyc-stage-count {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--pk-text-dim);
    margin-left: 8px;
}

/* ── Progress bar (index featured + event header) ── */

.pk-cyc-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.pk-cyc-progress__bar {
    flex: 1;
    height: 4px;
    background: var(--pk-border);
    border-radius: 2px;
    overflow: hidden;
}

.pk-cyc-progress__fill {
    height: 100%;
    background: var(--pk-accent);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.pk-cyc-progress__text {
    font-size: 0.75rem;
    color: var(--pk-text-dim);
    white-space: nowrap;
}

/* ── Race grid (index) ── */

.pk-cyc-race-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.pk-cyc-race-grid--compact {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* ── Race card ── */

.pk-cyc-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

    .pk-cyc-card:hover {
        border-color: var(--pk-accent);
        background: var(--pk-surface-hover, rgba(255,255,255,0.04));
        text-decoration: none;
    }

.pk-cyc-card--finished {
    opacity: 0.8;
}

.pk-cyc-card__header {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pk-cyc-card__name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--pk-text);
    line-height: 1.3;
}

.pk-cyc-card__meta {
    font-size: 0.78rem;
    color: var(--pk-text-dim);
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.pk-cyc-card__country {
    color: var(--pk-text-dim);
}

.pk-cyc-card__date {
    font-size: 0.82rem;
    color: var(--pk-text-dim);
}

.pk-cyc-card__winner {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pk-cyc-card__winner-label {
    color: var(--pk-text-dim);
    font-size: 0.78rem;
}

.pk-cyc-card__stages {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pk-cyc-card__progress {
    flex: 1;
    height: 3px;
    background: var(--pk-border);
    border-radius: 2px;
    overflow: hidden;
}

.pk-cyc-card__progress-fill {
    height: 100%;
    background: var(--pk-accent);
    border-radius: 2px;
}

.pk-cyc-card__stage-text {
    font-size: 0.75rem;
    color: var(--pk-text-dim);
    white-space: nowrap;
}

.pk-cyc-card__pred {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pk-cyc-card__pred-label {
    color: var(--pk-text-dim);
    font-size: 0.78rem;
}

.pk-cyc-card__no-pred {
    font-size: 0.78rem;
}

/* ── Prediction section header ── */

.pk-pred-section {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--pk-border);
}

    .pk-pred-section:last-child {
        padding-bottom: 0;
        margin-bottom: 0;
        border-bottom: none;
    }

.pk-pred-section__title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--pk-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 12px;
}

/* ── Stages list (event page) ── */

.pk-stages {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pk-stage {
    padding: 12px 0;
    border-bottom: 1px solid var(--pk-border);
}

    .pk-stage:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.pk-stage--completed {
    opacity: 0.85;
}

.pk-stage__header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pk-stage__id {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 130px;
}

.pk-stage__number {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pk-text);
}

.pk-stage__info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--pk-text-dim);
}

.pk-stage__distance {
    color: var(--pk-text-dim);
}

.pk-stage__elevation {
    color: var(--pk-text-dim);
}

.pk-stage__status {
    margin-left: auto;
}

/* ── Stage times ── */

.pk-stage__times {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-left: 2px;
}

.pk-stage-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
}

.pk-stage-time__pos {
    width: 18px;
    text-align: right;
    color: var(--pk-text-dim);
    font-size: 0.75rem;
}

.pk-stage-time__driver {
    flex: 1;
    color: var(--pk-text);
    font-weight: 500;
}

.pk-stage-time__gap {
    font-family: var(--pk-mono, monospace);
    font-size: 0.78rem;
    color: var(--pk-text-dim);
    min-width: 60px;
    text-align: right;
}

.pk-stage-time__bonus {
    font-size: 0.72rem;
    color: #10b981;
    min-width: 28px;
}

/* ── Stage prediction (not yet run) ── */

.pk-stage__prediction {
    margin-top: 7px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    padding-left: 2px;
}

.pk-stage__pred-label {
    color: var(--pk-text-dim);
    font-size: 0.78rem;
}

.pk-stage__pred-name {
    font-weight: 600;
    color: var(--pk-text);
}

.pk-stage__pred-prob {
    color: var(--pk-accent);
    font-size: 0.8rem;
}

/* ── Prob badge (small variant) ── */

.pk-prob-badge--sm {
    font-size: 0.7rem;
    padding: 1px 5px;
}

/* ── Chart wrap ── */

.pk-chart-wrap {
    position: relative;
    height: 260px;
    width: 100%;
}

/* ── Accuracy block ── */

.pk-accuracy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pk-accuracy__row {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr 80px;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--pk-border);
    font-size: 0.82rem;
}

    .pk-accuracy__row:last-child {
        border-bottom: none;
    }

.pk-accuracy__label {
    font-size: 0.72rem;
    color: var(--pk-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pk-accuracy__row--correct {
    color: #10b981;
}

.pk-accuracy__row--wrong {
    color: var(--pk-text-dim);
}

/* ── Responsive ── */

@media (max-width: 600px) {
    .pk-cyc-race-grid,
    .pk-cyc-race-grid--compact {
        grid-template-columns: 1fr;
    }

    .pk-cyc-progress {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .pk-stage__header {
        gap: 6px;
    }

    .pk-stage__id {
        min-width: unset;
    }

    .pk-accuracy__row {
        grid-template-columns: 1fr 1fr;
    }
}

.pk-stage-time__team {
    flex: 0 0 200px;
    color: var(--pk-text-dim);
}

@media (max-width: 600px) {
    /* WRC: esconder manufacturer em mobile */
    .pk-stage-time__manufacturer {
        display: none;
    }

    /* Cycling: esconder equipa em mobile */
    .pk-stage-time__team {
        display: none;
    }

    /* Garantir que o nome não rebenta para nova linha */
    .pk-stage-time__driver {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
    }

    /* WRC: driver code também mais compacto */
    .pk-stage-time__driver {
        flex: 0 0 auto;
    }
}

/* ═══════════════════════════════════════════════════
   Football Event — Pre-match context components
   Append to site.css
   ═══════════════════════════════════════════════════ */

/* ── Form badges ── */

.pk-form-context {
    background: var(--pk-card-bg, #1e1e2e);
    border: 1px solid var(--pk-border, #2a2a3a);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.pk-form-context__title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pk-text-muted, #9ca3af);
    margin-bottom: 0.75rem;
}

.pk-form-context__team {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.4rem 0;
}

    .pk-form-context__team + .pk-form-context__team {
        border-top: 1px solid var(--pk-border, #2a2a3a);
        margin-top: 0.25rem;
        padding-top: 0.65rem;
    }

.pk-form-context__name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--pk-text, #e5e7eb);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 55%;
}

.pk-form-badges {
    display: flex;
    gap: 4px;
}

.pk-form-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}

.pk-form-badge--w {
    background: #22c55e;
}

.pk-form-badge--d {
    background: #6b7280;
}

.pk-form-badge--l {
    background: #ef4444;
}


/* ── H2H section ── */

.pk-h2h {
    background: var(--pk-card-bg, #1e1e2e);
    border: 1px solid var(--pk-border, #2a2a3a);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.pk-h2h__title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pk-text-muted, #9ca3af);
    margin-bottom: 0.5rem;
}

.pk-h2h__summary {
    font-size: 0.85rem;
    color: var(--pk-text-muted, #9ca3af);
    margin-bottom: 0.75rem;
}

.pk-h2h__bar {
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    height: 32px;
    gap: 2px;
    margin-bottom: 0.5rem;
}

.pk-h2h__segment {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    min-width: 28px;
    transition: flex-basis 0.3s ease;
}

.pk-h2h__segment--home {
    background: #3b82f6;
    border-radius: 6px 0 0 6px;
}

.pk-h2h__segment--draw {
    background: #6b7280;
}

.pk-h2h__segment--away {
    background: #8b5cf6;
    border-radius: 0 6px 6px 0;
}

.pk-h2h__legend {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--pk-text-muted, #9ca3af);
}

.pk-h2h__last {
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--pk-border, #2a2a3a);
    font-size: 0.82rem;
    color: var(--pk-text-muted, #9ca3af);
}

/* ==========================================================================
   Squad News — injuries and suspensions
   Append to site.css after existing pk-h2h styles
   ========================================================================== */

.pk-squad-news {
    background: var(--pk-surface);
    border: 1px solid var(--pk-border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.pk-squad-news__title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pk-text-muted);
    margin-bottom: 0.875rem;
}

.pk-squad-news__team {
    margin-bottom: 0.875rem;
}

    .pk-squad-news__team:last-child {
        margin-bottom: 0;
    }

.pk-squad-news__team-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--pk-text);
    margin-bottom: 0.4rem;
}

.pk-squad-news__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.pk-squad-news__player {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    font-size: 0.8rem;
    flex-wrap: wrap;
}

.pk-squad-news__player-name {
    color: var(--pk-text);
    font-weight: 500;
}

.pk-squad-news__key {
    color: #f59e0b;
    font-size: 0.7rem;
    margin-left: 0.15rem;
}

.pk-squad-news__reason {
    color: var(--pk-text-muted);
    font-size: 0.75rem;
}

.pk-squad-news__empty {
    font-size: 0.78rem;
    color: var(--pk-text-muted);
    font-style: italic;
}

/* Absence type badges */
.pk-absence-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.pk-absence-badge--injury {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.pk-absence-badge--key {
    background: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.pk-absence-badge--suspension {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

/* Divider between home/away teams */
.pk-squad-news__team + .pk-squad-news__team {
    padding-top: 0.75rem;
    border-top: 1px solid var(--pk-border);
}


/* ==========================================================================
   Confirmed Lineups
   ========================================================================== */

.pk-lineup {
    background: var(--pk-surface);
    border: 1px solid var(--pk-border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.pk-lineup__title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pk-text-muted);
    margin-bottom: 0.875rem;
}

.pk-lineup__teams {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.pk-lineup__team-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--pk-text);
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pk-lineup__formation {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.pk-lineup__xi {
    list-style: decimal;
    padding-left: 1.2rem;
    margin: 0 0 0.5rem 0;
    font-size: 0.75rem;
    color: var(--pk-text);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

    .pk-lineup__xi li {
        line-height: 1.4;
    }

.pk-lineup__subs-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--pk-text-muted);
    margin-bottom: 0.25rem;
}

.pk-lineup__subs {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.72rem;
    color: var(--pk-text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

/* Single-team lineup (only one confirmed) — full width */
.pk-lineup__teams:has(> .pk-lineup__team:only-child) {
    grid-template-columns: 1fr;
}

/* ── Football event detail — mobile fixes ── */
@media (max-width: 600px) {
    .pk-event-header__teams {
        gap: 12px;
    }

    .pk-event-header__team {
        min-width: 70px;
    }

    .pk-event-header__score {
        font-size: 28px;
        letter-spacing: 1px;
        white-space: nowrap;
    }
}