:root {
    --bg: #020617;
    --bg-2: #07111f;
    --panel: #08111f;
    --panel-2: #0b1627;
    --panel-3: #101b2d;
    --line: #1e3a5f;
    --line-bright: #38bdf8;
    --blue: #38bdf8;
    --blue-2: #0ea5e9;
    --cyan: #22d3ee;
    --green: #22c55e;
    --yellow: #facc15;
    --magenta: #d946ef;
    --red: #ef4444;
    --orange: #f59e0b;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --muted-2: #64748b;
    --white: #f8fafc;
    --radius: 14px;
    --shadow: 0 0 24px rgba(56, 189, 248, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.10), transparent 32%),
        radial-gradient(circle at 90% 10%, rgba(14, 165, 233, 0.08), transparent 34%),
        linear-gradient(180deg, #020617 0%, #050b15 100%);
    color: var(--text);
    min-height: 100vh;
}

a {
    color: var(--blue);
    text-decoration: none;
}

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

.wrap {
    width: min(1600px, calc(100vw - 48px));
    margin: 0 auto;
    padding: 34px 0 60px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding: 14px 18px;
    background: rgba(8, 17, 31, 0.86);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-title {
    color: var(--white);
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 18px;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nav a,
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    color: var(--text);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
}

.nav a:hover,
.button-link:hover {
    border-color: var(--blue);
    color: var(--blue);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.18);
    text-decoration: none;
}

.breadcrumb {
    margin: 6px 0 22px;
    color: var(--muted);
    font-size: 14px;
}

.hero {
    margin-bottom: 28px;
}

.eyebrow {
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 900;
    font-size: 12px;
    margin-bottom: 10px;
}

h1 {
    color: var(--white);
    font-size: clamp(34px, 5vw, 58px);
    line-height: 0.95;
    margin: 0 0 12px;
    font-weight: 950;
    letter-spacing: -0.05em;
}

h2 {
    color: var(--white);
    font-size: 26px;
    line-height: 1.1;
    margin: 0 0 14px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

h3 {
    color: var(--white);
    margin: 0;
    font-size: 18px;
}

.muted {
    color: var(--muted);
}

.kicker {
    color: var(--muted);
    font-size: 17px;
    margin: 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: start;
}

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

.panel {
    background: linear-gradient(180deg, rgba(8, 17, 31, 0.96), rgba(5, 12, 24, 0.96));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.panel-header {
    padding: 14px 16px;
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.16), rgba(8, 17, 31, 0.6));
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.panel-body {
    padding: 16px;
}

.stat-card {
    background: rgba(8, 17, 31, 0.92);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    min-height: 92px;
}

.stat-label {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 900;
    margin-bottom: 8px;
}

.stat-value {
    color: var(--blue);
    font-size: 34px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.stat-value.white {
    color: var(--white);
}

.stat-value.green {
    color: var(--green);
}

.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 28px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(15, 23, 42, 0.74);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.pill.blue {
    color: var(--blue);
    border-color: rgba(56, 189, 248, 0.45);
}

.pill.green {
    color: var(--green);
    border-color: rgba(34, 197, 94, 0.45);
}

.pill.orange {
    color: var(--orange);
    border-color: rgba(245, 158, 11, 0.45);
}

.notice {
    background: rgba(245, 158, 11, 0.10);
    border: 1px solid rgba(245, 158, 11, 0.38);
    color: #fde68a;
    border-radius: var(--radius);
    padding: 15px 16px;
    margin: 20px 0;
}

.search-form {
    display: flex;
    gap: 10px;
    margin: 20px 0 28px;
}

.search-input {
    flex: 1;
    min-width: 200px;
    background: rgba(8, 17, 31, 0.95);
    color: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 12px 15px;
    font-size: 15px;
    outline: none;
}

.search-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.button {
    background: var(--blue);
    color: #00111d;
    border: 0;
    border-radius: 999px;
    padding: 12px 16px;
    font-weight: 950;
    cursor: pointer;
}

.button:hover {
    background: var(--cyan);
}

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

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

th,
td {
    padding: 12px 13px;
    border-bottom: 1px solid rgba(30, 58, 95, 0.72);
    text-align: left;
    white-space: nowrap;
}

th {
    background: rgba(15, 23, 42, 0.98);
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 950;
    border-bottom: 1px solid rgba(56, 189, 248, 0.35);
}

td {
    color: var(--text);
    font-size: 14px;
}

tbody tr:hover {
    background: rgba(56, 189, 248, 0.055);
}

.rank,
.points,
.number-strong {
    color: var(--white);
    font-weight: 950;
}

.points {
    color: var(--blue);
    font-size: 16px;
}

.driver-link {
    color: var(--white);
    font-weight: 850;
}

.driver-link:hover {
    color: var(--blue);
}

.series-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.series-card {
    background: linear-gradient(180deg, rgba(8, 17, 31, 0.96), rgba(4, 10, 20, 0.96));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    min-height: 135px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow);
}

.series-card:hover {
    border-color: var(--blue);
    box-shadow: 0 0 28px rgba(56, 189, 248, 0.15);
    text-decoration: none;
}

.series-card-title {
    color: var(--white);
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.series-card-meta {
    color: var(--muted);
    margin-top: 8px;
}

.race-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 28px;
}

.race-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    background: rgba(8, 17, 31, 0.84);
    border-radius: 999px;
    padding: 9px 13px;
    color: var(--text);
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
}

.race-link:hover {
    border-color: var(--blue);
    color: var(--blue);
    text-decoration: none;
}

.race-link.provisional {
    border-color: rgba(245, 158, 11, 0.45);
    color: #fbbf24;
}

.badge {
    color: var(--blue);
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.empty {
    padding: 18px;
    color: var(--muted);
}

.footer-note {
    margin-top: 34px;
    color: var(--muted-2);
    font-size: 12px;
    text-align: center;
}

@media (max-width: 980px) {
    .wrap {
        width: min(100% - 28px, 1600px);
        padding-top: 18px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .search-form {
        flex-direction: column;
    }

    table {
        min-width: 760px;
    }
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.award-card {
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.15), transparent 34%),
        rgba(8, 17, 31, 0.94);
    border: 1px solid rgba(56, 189, 248, 0.26);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    min-height: 150px;
}

.award-card:hover {
    border-color: var(--blue);
    box-shadow: 0 0 26px rgba(56, 189, 248, 0.18);
}

.award-icon {
    font-size: 34px;
    line-height: 1;
    margin-bottom: 12px;
}

.award-title {
    color: var(--white);
    font-size: 17px;
    font-weight: 950;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.award-description {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.award-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.award-meta span {
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.72);
    border-radius: 999px;
    padding: 5px 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

/* Trophy Case Refresh */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.award-card {
    position: relative;
    background:
        radial-gradient(circle at 16% 10%, rgba(56, 189, 248, 0.22), transparent 32%),
        linear-gradient(180deg, rgba(12, 24, 43, 0.98), rgba(4, 10, 20, 0.98));
    border: 1px solid rgba(56, 189, 248, 0.32);
    border-radius: 20px;
    padding: 20px;
    box-shadow:
        0 0 28px rgba(56, 189, 248, 0.10),
        inset 0 0 0 1px rgba(255, 255, 255, 0.025);
    min-height: 190px;
    overflow: hidden;
}

.award-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 38%);
    pointer-events: none;
}

.award-card:hover {
    border-color: var(--blue);
    transform: translateY(-1px);
    box-shadow:
        0 0 34px rgba(56, 189, 248, 0.20),
        inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.award-top {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.award-icon {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    font-size: 52px;
    line-height: 1;
    background: rgba(2, 6, 23, 0.62);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 18px;
    box-shadow: inset 0 0 22px rgba(56, 189, 248, 0.08);
}

.award-main {
    min-width: 0;
}

.award-title {
    color: var(--white);
    font-size: 20px;
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.035em;
    margin-bottom: 8px;
}

.award-description {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.award-meta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 16px;
}

.award-meta span {
    border: 1px solid rgba(30, 58, 95, 0.95);
    background: rgba(15, 23, 42, 0.78);
    border-radius: 999px;
    padding: 6px 9px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
}

.award-meta span.award-type {
    color: var(--blue);
    border-color: rgba(56, 189, 248, 0.45);
}

.award-empty {
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.11), transparent 30%),
        rgba(8, 17, 31, 0.92);
    border: 1px dashed rgba(56, 189, 248, 0.28);
    border-radius: 20px;
    padding: 28px;
    color: var(--muted);
    font-size: 15px;
}

@media (max-width: 620px) {
    .award-top {
        flex-direction: column;
    }

    .award-icon {
        width: 64px;
        height: 64px;
        font-size: 46px;
    }
}

/* Trophy Case v2 - forced card layout */
.trophy-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 18px !important;
}

.trophy-card {
    display: block !important;
    position: relative;
    min-height: 190px;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(56, 189, 248, 0.38);
    background:
        radial-gradient(circle at 18% 10%, rgba(56, 189, 248, 0.25), transparent 34%),
        radial-gradient(circle at 90% 90%, rgba(14, 165, 233, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(9, 22, 40, 0.98), rgba(3, 8, 18, 0.98));
    box-shadow:
        0 0 32px rgba(56, 189, 248, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.025);
    overflow: hidden;
}

.trophy-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), transparent 42%);
    pointer-events: none;
}

.trophy-card:hover {
    border-color: var(--blue);
    transform: translateY(-2px);
    box-shadow:
        0 0 38px rgba(56, 189, 248, 0.24),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.trophy-card-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.trophy-icon {
    flex: 0 0 auto;
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    font-size: 58px;
    line-height: 1;
    border-radius: 22px;
    background: rgba(2, 6, 23, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.34);
    box-shadow:
        inset 0 0 28px rgba(56, 189, 248, 0.10),
        0 0 18px rgba(56, 189, 248, 0.08);
}

.trophy-copy {
    min-width: 0;
}

.trophy-title {
    color: var(--white);
    font-size: 22px;
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.045em;
    margin: 0 0 9px;
}

.trophy-description {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
    margin: 0;
}

.trophy-meta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.trophy-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(30, 58, 95, 0.95);
    background: rgba(15, 23, 42, 0.78);
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}

.trophy-chip.primary {
    color: var(--blue);
    border-color: rgba(56, 189, 248, 0.48);
}

.trophy-empty {
    border: 1px dashed rgba(56, 189, 248, 0.32);
    border-radius: 22px;
    padding: 28px;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 30%),
        rgba(8, 17, 31, 0.92);
    color: var(--muted);
}

@media (max-width: 680px) {
    .trophy-card-top {
        flex-direction: column;
    }

    .trophy-icon {
        width: 72px;
        height: 72px;
        font-size: 52px;
    }
}

/* Trophy Case compact 5-across layout */
@media (min-width: 1500px) {
    .trophy-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

    .trophy-card {
        min-height: 168px;
        padding: 16px;
        border-radius: 18px;
    }

    .trophy-card-top {
        gap: 12px;
    }

    .trophy-icon {
        width: 58px;
        height: 58px;
        font-size: 42px;
        border-radius: 16px;
    }

    .trophy-title {
        font-size: 17px;
        line-height: 1.08;
        margin-bottom: 7px;
    }

    .trophy-description {
        font-size: 12px;
        line-height: 1.35;
    }

    .trophy-meta {
        gap: 6px;
        margin-top: 13px;
    }

    .trophy-chip {
        font-size: 10px;
        padding: 5px 8px;
    }
}

@media (min-width: 1150px) and (max-width: 1499px) {
    .trophy-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* Trophy preview: force 5 across on desktop */
.latest-trophy-grid,
.trophy-preview-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

.latest-trophy-grid .trophy-card,
.trophy-preview-grid .trophy-card {
    min-height: 150px !important;
    padding: 14px !important;
    border-radius: 18px !important;
}

.latest-trophy-grid .trophy-card-top,
.trophy-preview-grid .trophy-card-top {
    gap: 10px !important;
}

.latest-trophy-grid .trophy-icon,
.trophy-preview-grid .trophy-icon {
    width: 52px !important;
    height: 52px !important;
    font-size: 38px !important;
    border-radius: 15px !important;
}

.latest-trophy-grid .trophy-title,
.trophy-preview-grid .trophy-title {
    font-size: 16px !important;
    line-height: 1.08 !important;
    margin-bottom: 6px !important;
}

.latest-trophy-grid .trophy-description,
.trophy-preview-grid .trophy-description {
    font-size: 12px !important;
    line-height: 1.35 !important;
}

.latest-trophy-grid .trophy-meta,
.trophy-preview-grid .trophy-meta {
    margin-top: 11px !important;
    gap: 5px !important;
}

.latest-trophy-grid .trophy-chip,
.trophy-preview-grid .trophy-chip {
    font-size: 9px !important;
    padding: 4px 7px !important;
}

@media (max-width: 1500px) {
    .latest-trophy-grid,
    .trophy-preview-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 1150px) {
    .latest-trophy-grid,
    .trophy-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 680px) {
    .latest-trophy-grid,
    .trophy-preview-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Trophy Case v3 - tighter 5-wide cards */
@media (min-width: 1180px) {
    .latest-trophy-grid,
    .trophy-preview-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .latest-trophy-grid .trophy-card,
    .trophy-preview-grid .trophy-card {
        min-width: 0 !important;
        min-height: 145px !important;
        padding: 13px !important;
        border-radius: 16px !important;
    }

    .latest-trophy-grid .trophy-card-top,
    .trophy-preview-grid .trophy-card-top {
        gap: 9px !important;
        align-items: flex-start !important;
    }

    .latest-trophy-grid .trophy-icon,
    .trophy-preview-grid .trophy-icon {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        font-size: 34px !important;
        border-radius: 13px !important;
    }

    .latest-trophy-grid .trophy-copy,
    .trophy-preview-grid .trophy-copy {
        min-width: 0 !important;
        max-width: 145px !important;
    }

    .latest-trophy-grid .trophy-title,
    .trophy-preview-grid .trophy-title {
        font-size: 14px !important;
        line-height: 1.05 !important;
        margin-bottom: 5px !important;
        letter-spacing: -0.04em !important;
    }

    .latest-trophy-grid .trophy-description,
    .trophy-preview-grid .trophy-description {
        font-size: 10.5px !important;
        line-height: 1.28 !important;
        max-width: 135px !important;
        margin: 0 !important;

        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .latest-trophy-grid .trophy-driver-name,
    .trophy-preview-grid .trophy-driver-name {
        color: var(--white) !important;
        font-size: 12.5px !important;
        line-height: 1.1 !important;
        font-weight: 900 !important;
        margin: 0 0 5px !important;
        max-width: 145px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .latest-trophy-grid .trophy-meta,
    .trophy-preview-grid .trophy-meta {
        margin-top: 10px !important;
        gap: 4px !important;
    }

    .latest-trophy-grid .trophy-chip,
    .trophy-preview-grid .trophy-chip {
        font-size: 8.5px !important;
        padding: 3px 6px !important;
        max-width: 135px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

@media (min-width: 900px) and (max-width: 1179px) {
    .latest-trophy-grid,
    .trophy-preview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* Trophy Cards v4 - portrait 5-wide driver profile layout */
@media (min-width: 1050px) {
    .trophy-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

    .trophy-grid .trophy-card {
        min-width: 0 !important;
        min-height: 285px !important;
        padding: 16px !important;
        border-radius: 18px !important;
    }

    .trophy-grid .trophy-card-top {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .trophy-grid .trophy-icon {
        width: 64px !important;
        height: 64px !important;
        min-width: 64px !important;
        font-size: 46px !important;
        border-radius: 17px !important;
    }

    .trophy-grid .trophy-copy {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .trophy-grid .trophy-title {
        font-size: 18px !important;
        line-height: 1.08 !important;
        margin-bottom: 8px !important;
        letter-spacing: -0.045em !important;
    }

    .trophy-grid .trophy-description {
        font-size: 12px !important;
        line-height: 1.35 !important;
        max-width: 100% !important;

        display: -webkit-box !important;
        -webkit-line-clamp: 4 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .trophy-grid .trophy-meta {
        margin-top: 14px !important;
        gap: 6px !important;
    }

    .trophy-grid .trophy-chip {
        font-size: 9.5px !important;
        padding: 4px 7px !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

/* Keep homepage/latest preview cards shorter */
@media (min-width: 1050px) {
    .latest-trophy-grid .trophy-card,
    .trophy-preview-grid .trophy-card {
        min-height: 185px !important;
    }

    .latest-trophy-grid .trophy-card-top,
    .trophy-preview-grid .trophy-card-top {
        flex-direction: row !important;
    }

    .latest-trophy-grid .trophy-icon,
    .trophy-preview-grid .trophy-icon {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        font-size: 35px !important;
    }

    .latest-trophy-grid .trophy-title,
    .trophy-preview-grid .trophy-title {
        font-size: 14px !important;
    }
}

/* iRacing license color badges */
.license-pill {
    border-width: 1px;
    font-weight: 950;
}

.license-rookie {
    color: #fecaca !important;
    border-color: rgba(239, 68, 68, 0.65) !important;
    background: rgba(127, 29, 29, 0.38) !important;
}

.license-d {
    color: #fed7aa !important;
    border-color: rgba(249, 115, 22, 0.7) !important;
    background: rgba(124, 45, 18, 0.38) !important;
}

.license-c {
    color: #fef08a !important;
    border-color: rgba(250, 204, 21, 0.7) !important;
    background: rgba(113, 63, 18, 0.38) !important;
}

.license-b {
    color: #bbf7d0 !important;
    border-color: rgba(34, 197, 94, 0.7) !important;
    background: rgba(20, 83, 45, 0.38) !important;
}

.license-a {
    color: #bfdbfe !important;
    border-color: rgba(59, 130, 246, 0.75) !important;
    background: rgba(30, 64, 175, 0.38) !important;
}

.license-pro {
    color: #f8fafc !important;
    border-color: rgba(248, 250, 252, 0.75) !important;
    background: rgba(0, 0, 0, 0.72) !important;
}

.license-unknown {
    color: var(--muted) !important;
    border-color: var(--line) !important;
}

/* Public schedule cards */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.schedule-card {
    display: block;
    text-decoration: none;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 34%),
        rgba(8, 17, 31, 0.94);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.schedule-card:hover {
    border-color: var(--blue);
    box-shadow: 0 0 28px rgba(56, 189, 248, 0.16);
}

.schedule-card.completed {
    border-color: rgba(34, 197, 94, 0.35);
}

.schedule-card.provisional {
    border-color: rgba(251, 191, 36, 0.36);
}

.schedule-card.future {
    opacity: 0.92;
}

.schedule-date {
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.schedule-title {
    color: var(--white);
    font-size: 18px;
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.schedule-meta {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
    margin-top: 8px;
}

.schedule-week {
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.schedule-series-group {
    margin-bottom: 22px;
}

.schedule-series-group:last-child {
    margin-bottom: 0;
}

.schedule-series-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.schedule-series-heading h3 {
    margin: 0;
    color: var(--white);
    font-size: 18px;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.schedule-series-heading a {
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.schedule-series-heading a:hover {
    text-decoration: underline;
}

/* Victory Lane */
.victory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(390px, 1fr));
    gap: 18px;
}

.victory-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(56, 189, 248, 0.34);
    background:
        radial-gradient(circle at 16% 0%, rgba(250, 204, 21, 0.18), transparent 30%),
        radial-gradient(circle at 86% 16%, rgba(56, 189, 248, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(9, 22, 40, 0.98), rgba(3, 8, 18, 0.98));
    box-shadow:
        0 0 36px rgba(56, 189, 248, 0.14),
        inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.victory-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.08), transparent 38%),
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.025) 0,
            rgba(255,255,255,0.025) 6px,
            transparent 6px,
            transparent 16px
        );
    pointer-events: none;
}

.victory-head {
    position: relative;
    z-index: 1;
    padding: 20px 20px 14px;
    border-bottom: 1px solid rgba(30, 58, 95, 0.95);
}

.victory-eyebrow {
    color: var(--blue);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.victory-series {
    color: var(--white);
    font-size: 23px;
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.victory-race {
    color: var(--muted);
    font-size: 13px;
    margin-top: 8px;
}

.victory-body {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 16px 20px 20px;
}

.victory-class {
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.38);
    padding: 13px;
}

.victory-class-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 11px;
}

.victory-class-title span:first-child {
    color: var(--white);
    font-size: 15px;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.victory-class-title span:last-child {
    color: var(--blue);
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.victory-podium {
    display: grid;
    gap: 8px;
}

.victory-driver {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 9px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(30, 58, 95, 0.95);
}

.victory-driver.p1 {
    border-color: rgba(250, 204, 21, 0.48);
    background:
        radial-gradient(circle at left, rgba(250, 204, 21, 0.14), transparent 42%),
        rgba(15, 23, 42, 0.76);
}

.victory-medal {
    font-size: 24px;
    line-height: 1;
}

.victory-name {
    min-width: 0;
    color: var(--white);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.victory-points {
    color: var(--blue);
    font-size: 11px;
    font-weight: 950;
}

.victory-empty {
    color: var(--muted);
    font-size: 12px;
    padding: 10px;
    border-radius: 14px;
    border: 1px dashed rgba(56, 189, 248, 0.22);
}

@media (max-width: 850px) {
    .victory-grid {
        grid-template-columns: 1fr;
    }

    .victory-body {
        grid-template-columns: 1fr;
    }
}

/* Mobile standings fix - make points visible */
@media (max-width: 760px) {
    .standings-table,
    .results-table,
    table {
        width: 100%;
    }

    .table-wrap {
        overflow-x: visible !important;
    }

    .standings-table thead,
    .results-table thead {
        display: none;
    }

    .standings-table tbody,
    .standings-table tr,
    .standings-table td,
    .results-table tbody,
    .results-table tr,
    .results-table td {
        display: block;
        width: 100%;
    }

    .standings-table tr,
    .results-table tr {
        position: relative;
        margin: 10px 10px 14px;
        padding: 12px 12px 12px;
        border: 1px solid rgba(56, 189, 248, 0.18);
        border-radius: 16px;
        background:
            radial-gradient(circle at top left, rgba(56, 189, 248, 0.09), transparent 32%),
            rgba(2, 6, 23, 0.72);
        box-shadow: 0 0 18px rgba(0, 0, 0, 0.18);
    }

    .standings-table td,
    .results-table td {
        border: 0 !important;
        padding: 4px 0 !important;
        font-size: 13px !important;
        line-height: 1.25;
    }

    .standings-table td:first-child,
    .results-table td:first-child {
        color: var(--blue);
        font-size: 11px !important;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin-bottom: 2px;
    }

    .standings-table td:nth-child(2),
    .results-table td:nth-child(3) {
        color: var(--white);
        font-size: 17px !important;
        font-weight: 950;
        letter-spacing: -0.035em;
        margin-bottom: 8px;
    }

    .standings-table td:not(:first-child):not(:nth-child(2)),
    .results-table td:not(:first-child):not(:nth-child(2)):not(:nth-child(3)) {
        display: inline-flex;
        width: auto;
        margin: 4px 6px 0 0;
        padding: 5px 8px !important;
        border: 1px solid rgba(56, 189, 248, 0.16) !important;
        border-radius: 999px;
        background: rgba(15, 23, 42, 0.72);
        color: var(--muted);
        font-size: 11px !important;
        font-weight: 850;
    }

    .standings-table td:nth-child(3),
    .standings-table td:nth-child(4),
    .standings-table td:nth-child(5),
    .results-table td.points,
    .results-table td:nth-child(4),
    .results-table td:nth-child(5) {
        color: var(--blue) !important;
        border-color: rgba(56, 189, 248, 0.34) !important;
    }

    .standings-table td:nth-child(3)::before {
        content: "Pts ";
        color: var(--muted);
        margin-right: 4px;
    }

    .standings-table td:nth-child(4)::before {
        content: "Base ";
        color: var(--muted);
        margin-right: 4px;
    }

    .standings-table td:nth-child(5)::before {
        content: "Bonus ";
        color: var(--muted);
        margin-right: 4px;
    }

    .standings-table td:nth-child(6)::before {
        content: "Drop ";
        color: var(--muted);
        margin-right: 4px;
    }

    .results-table td:nth-child(4)::before {
        content: "Pts ";
        color: var(--muted);
        margin-right: 4px;
    }

    .results-table td:nth-child(5)::before {
        content: "Laps ";
        color: var(--muted);
        margin-right: 4px;
    }

    .results-table td:nth-child(6)::before {
        content: "Inc ";
        color: var(--muted);
        margin-right: 4px;
    }

    .results-table td:nth-child(7)::before {
        content: "Best ";
        color: var(--muted);
        margin-right: 4px;
    }

    .panel-header {
        padding: 14px 14px;
    }

    .panel-header h2 {
        font-size: 20px;
    }

    .panel-body {
        padding: 10px;
    }

    .race-list,
    .schedule-grid,
    .victory-grid,
    .trophy-grid {
        grid-template-columns: 1fr !important;
    }

    .victory-body {
        grid-template-columns: 1fr !important;
    }

    .nav {
        gap: 6px;
    }

    .nav a {
        font-size: 11px;
        padding: 7px 10px;
    }
}

/* Mobile responsive race/standings cards */
@media (max-width: 760px) {
    .mobile-card-wrap {
        overflow-x: visible !important;
    }

    .responsive-table {
        border-collapse: separate;
        border-spacing: 0 10px;
    }

    .responsive-table thead {
        display: none;
    }

    .responsive-table,
    .responsive-table tbody,
    .responsive-table tr,
    .responsive-table td {
        display: block;
        width: 100%;
    }

    .responsive-table tr {
        position: relative;
        padding: 13px;
        border: 1px solid rgba(56, 189, 248, 0.2);
        border-radius: 16px;
        background:
            radial-gradient(circle at top left, rgba(56, 189, 248, 0.1), transparent 32%),
            rgba(2, 6, 23, 0.72);
        box-shadow: 0 0 18px rgba(0, 0, 0, 0.16);
    }

    .responsive-table td {
        border: 0 !important;
        padding: 0 !important;
    }

    .responsive-table .mobile-rank {
        color: var(--blue);
        font-size: 11px !important;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.09em;
        margin-bottom: 4px;
    }

    .responsive-table .mobile-rank::before {
        content: "#";
    }

    .responsive-table .mobile-driver {
        color: var(--white);
        font-size: 17px !important;
        font-weight: 950;
        letter-spacing: -0.035em;
        margin-bottom: 10px;
    }

    .responsive-table .mobile-driver .driver-link {
        color: var(--white);
        font-size: 17px !important;
        font-weight: 950;
        text-decoration: none;
    }

    .responsive-table td:not(.mobile-rank):not(.mobile-driver) {
        display: inline-flex;
        align-items: center;
        width: auto;
        margin: 4px 5px 0 0;
        padding: 5px 8px !important;
        border: 1px solid rgba(56, 189, 248, 0.18) !important;
        border-radius: 999px;
        background: rgba(15, 23, 42, 0.72);
        color: var(--muted);
        font-size: 11px !important;
        font-weight: 850;
        line-height: 1.1;
    }

    .responsive-table td:not(.mobile-rank):not(.mobile-driver)::before {
        content: attr(data-label) " ";
        color: var(--muted);
        opacity: 0.82;
        margin-right: 4px;
        font-weight: 800;
    }

    .responsive-table .mobile-points {
        color: var(--blue) !important;
        border-color: rgba(56, 189, 248, 0.42) !important;
        background: rgba(14, 116, 144, 0.16) !important;
    }

    .responsive-table .mobile-points::before {
        color: var(--muted);
    }

    .standings-responsive-table .mobile-points {
        font-size: 13px !important;
        font-weight: 950;
    }

    .race-results-responsive-table .mobile-points {
        font-size: 13px !important;
        font-weight: 950;
    }
}

/* Driver profile race results mobile cards */
@media (max-width: 760px) {
    .driver-race-results-responsive-table .mobile-date {
        color: var(--blue);
        font-size: 11px !important;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.09em;
        margin-bottom: 5px;
    }

    .driver-race-results-responsive-table .mobile-series {
        color: var(--muted);
        font-size: 12px !important;
        font-weight: 850;
        margin-bottom: 4px;
    }

    .driver-race-results-responsive-table .mobile-series a {
        color: var(--blue);
        text-decoration: none;
    }

    .driver-race-results-responsive-table .mobile-race-title,
    .driver-race-results-responsive-table .mobile-race-title .driver-link {
        color: var(--white);
        font-size: 17px !important;
        font-weight: 950;
        letter-spacing: -0.035em;
        line-height: 1.1;
        margin-bottom: 10px;
        text-decoration: none;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .driver-race-results-responsive-table td:not(.mobile-date):not(.mobile-series):not(.mobile-race-title) {
        display: inline-flex;
        align-items: center;
        width: auto;
        max-width: 100%;
        margin: 4px 5px 0 0;
        padding: 5px 8px !important;
        border: 1px solid rgba(56, 189, 248, 0.18) !important;
        border-radius: 999px;
        background: rgba(15, 23, 42, 0.72);
        color: var(--muted);
        font-size: 11px !important;
        font-weight: 850;
        line-height: 1.1;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .driver-race-results-responsive-table td:not(.mobile-date):not(.mobile-series):not(.mobile-race-title)::before {
        content: attr(data-label) " ";
        color: var(--muted);
        opacity: 0.82;
        margin-right: 4px;
        font-weight: 800;
    }

    .driver-race-results-responsive-table .mobile-points {
        color: var(--blue) !important;
        border-color: rgba(56, 189, 248, 0.42) !important;
        background: rgba(14, 116, 144, 0.16) !important;
        font-size: 13px !important;
        font-weight: 950;
    }
}

/* Race results mobile chip wrapping */
@media (max-width: 760px) {
    .race-results-responsive-table tr,
    .standings-responsive-table tr,
    .driver-race-results-responsive-table tr {
        overflow: hidden;
    }

    .race-results-responsive-table td,
    .standings-responsive-table td,
    .driver-race-results-responsive-table td {
        max-width: 100%;
    }

    .race-results-responsive-table td:not(.mobile-rank):not(.mobile-driver),
    .standings-responsive-table td:not(.mobile-rank):not(.mobile-driver),
    .driver-race-results-responsive-table td:not(.mobile-date):not(.mobile-series):not(.mobile-race-title) {
        flex-wrap: wrap;
        white-space: normal !important;
    }
}

/* HARD MOBILE TABLE OVERRIDE - driver/race/standings cards */
@media (max-width: 760px) {
    .table-wrap.mobile-card-wrap,
    .mobile-card-wrap {
        overflow-x: visible !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .responsive-table,
    .responsive-table thead,
    .responsive-table tbody,
    .responsive-table tr,
    .responsive-table td {
        box-sizing: border-box !important;
    }

    .responsive-table {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        border-collapse: separate !important;
        border-spacing: 0 12px !important;
        table-layout: auto !important;
    }

    .responsive-table thead {
        display: none !important;
    }

    .responsive-table tbody {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .responsive-table tr {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 12px 0 !important;
        padding: 14px !important;
        border: 1px solid rgba(56, 189, 248, 0.24) !important;
        border-radius: 16px !important;
        background:
            radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 34%),
            rgba(2, 6, 23, 0.82) !important;
        overflow: hidden !important;
    }

    .responsive-table td {
        border: 0 !important;
        max-width: 100% !important;
        min-width: 0 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }

    .responsive-table td.mobile-rank,
    .responsive-table td.mobile-date {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 0 5px 0 !important;
        color: var(--blue) !important;
        font-size: 11px !important;
        font-weight: 950 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.09em !important;
    }

    .responsive-table td.mobile-series {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 0 6px 0 !important;
        color: var(--blue) !important;
        font-size: 12px !important;
        font-weight: 850 !important;
    }

    .responsive-table td.mobile-series a {
        color: var(--blue) !important;
        text-decoration: none !important;
    }

    .responsive-table td.mobile-driver,
    .responsive-table td.mobile-race-title {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 0 10px 0 !important;
        color: var(--white) !important;
        font-size: 17px !important;
        font-weight: 950 !important;
        line-height: 1.15 !important;
    }

    .responsive-table td.mobile-driver a,
    .responsive-table td.mobile-race-title a {
        color: var(--white) !important;
        font-size: 17px !important;
        font-weight: 950 !important;
        line-height: 1.15 !important;
        text-decoration: none !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .responsive-table td:not(.mobile-rank):not(.mobile-date):not(.mobile-series):not(.mobile-driver):not(.mobile-race-title) {
        display: inline-flex !important;
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        margin: 4px 5px 0 0 !important;
        padding: 5px 8px !important;
        border: 1px solid rgba(56, 189, 248, 0.2) !important;
        border-radius: 999px !important;
        background: rgba(15, 23, 42, 0.76) !important;
        color: var(--muted) !important;
        font-size: 11px !important;
        font-weight: 850 !important;
        line-height: 1.1 !important;
    }

    .responsive-table td:not(.mobile-rank):not(.mobile-date):not(.mobile-series):not(.mobile-driver):not(.mobile-race-title)::before {
        content: attr(data-label) " " !important;
        color: var(--muted) !important;
        opacity: 0.82 !important;
        margin-right: 4px !important;
        font-weight: 800 !important;
    }

    .responsive-table td.mobile-points,
    .responsive-table td.points {
        color: var(--blue) !important;
        border-color: rgba(56, 189, 248, 0.42) !important;
        background: rgba(14, 116, 144, 0.18) !important;
        font-size: 13px !important;
        font-weight: 950 !important;
    }
}

/* Desktop race result table tightening */
@media (min-width: 761px) {
    .race-results-responsive-table {
        table-layout: fixed;
        width: 100%;
    }

    .race-results-responsive-table th,
    .race-results-responsive-table td {
        padding-left: 10px;
        padding-right: 10px;
        white-space: nowrap;
    }

    .race-results-responsive-table th:nth-child(1),
    .race-results-responsive-table td:nth-child(1) {
        width: 70px;
    }

    .race-results-responsive-table th:nth-child(2),
    .race-results-responsive-table td:nth-child(2) {
        width: 58px;
    }

    .race-results-responsive-table th:nth-child(3),
    .race-results-responsive-table td:nth-child(3) {
        width: auto;
        min-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .race-results-responsive-table th:nth-child(4),
    .race-results-responsive-table td:nth-child(4),
    .race-results-responsive-table th:nth-child(5),
    .race-results-responsive-table td:nth-child(5),
    .race-results-responsive-table th:nth-child(6),
    .race-results-responsive-table td:nth-child(6) {
        width: 62px;
        text-align: center;
    }

    .race-results-responsive-table th:nth-child(7),
    .race-results-responsive-table td:nth-child(7),
    .race-results-responsive-table th:nth-child(8),
    .race-results-responsive-table td:nth-child(8) {
        width: 54px;
        text-align: center;
    }

    .race-results-responsive-table th:nth-child(9),
    .race-results-responsive-table td:nth-child(9) {
        width: 78px;
        text-align: right;
    }

    .race-results-responsive-table .driver-link {
        display: inline-block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: bottom;
    }

    .race-results-responsive-table .points {
        text-align: center;
    }
}

/* Desktop race result table correction - compact but readable */
@media (min-width: 761px) {
    .race-results-responsive-table {
        table-layout: fixed;
        width: 100%;
        min-width: 0;
    }

    .race-results-responsive-table th,
    .race-results-responsive-table td {
        padding-left: 8px !important;
        padding-right: 8px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .race-results-responsive-table th {
        font-size: 11px !important;
        letter-spacing: 0.08em !important;
    }

    .race-results-responsive-table th:nth-child(1),
    .race-results-responsive-table td:nth-child(1) {
        width: 48px !important;
        text-align: left;
    }

    .race-results-responsive-table th:nth-child(2),
    .race-results-responsive-table td:nth-child(2) {
        width: 44px !important;
        text-align: center;
    }

    .race-results-responsive-table th:nth-child(3),
    .race-results-responsive-table td:nth-child(3) {
        width: 150px !important;
        min-width: 0 !important;
        text-align: left;
    }

    .race-results-responsive-table th:nth-child(4),
    .race-results-responsive-table td:nth-child(4) {
        width: 48px !important;
        text-align: center;
    }

    .race-results-responsive-table th:nth-child(5),
    .race-results-responsive-table td:nth-child(5) {
        width: 56px !important;
        text-align: center;
    }

    .race-results-responsive-table th:nth-child(6),
    .race-results-responsive-table td:nth-child(6) {
        width: 52px !important;
        text-align: center;
    }

    .race-results-responsive-table th:nth-child(7),
    .race-results-responsive-table td:nth-child(7) {
        width: 48px !important;
        text-align: center;
    }

    .race-results-responsive-table th:nth-child(8),
    .race-results-responsive-table td:nth-child(8) {
        width: 42px !important;
        text-align: center;
    }

    .race-results-responsive-table th:nth-child(9),
    .race-results-responsive-table td:nth-child(9) {
        width: 86px !important;
        text-align: right;
        overflow: visible;
        text-overflow: clip;
    }

    .race-results-responsive-table td:nth-child(3),
    .race-results-responsive-table td:nth-child(3) .driver-link {
        font-size: 14px !important;
        line-height: 1.1;
        max-width: 100%;
    }

    .race-results-responsive-table .driver-link {
        display: inline-block;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: bottom;
    }

    .race-results-responsive-table .points {
        text-align: center !important;
    }
}

/* Race environment metadata */
.environment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.environment-card {
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.1), transparent 34%),
        rgba(2, 6, 23, 0.72);
    padding: 13px;
}

.environment-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 5px;
}

.environment-value {
    color: var(--white);
    font-size: 16px;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.environment-sub {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

/* Standings page layout cleanup */
.grid-2,
.grid-3,
.series-grid,
.schedule-grid,
.victory-grid,
.trophy-grid {
    min-width: 0;
}

.panel,
.panel-body,
.table-wrap,
.mobile-card-wrap {
    min-width: 0;
    max-width: 100%;
}

.table-wrap {
    max-width: 100%;
}

/* Stack class standings earlier so PRO/AM boxes do not force sideways scroll */
@media (max-width: 1180px) {
    .grid-2 {
        grid-template-columns: 1fr !important;
    }
}

/* Public standings table should fit the panel on desktop/tablet */
@media (min-width: 761px) {
    .standings-responsive-table,
    .standings-responsive-table table {
        width: 100%;
        table-layout: fixed;
    }

    .standings-responsive-table th,
    .standings-responsive-table td {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .standings-responsive-table th:nth-child(1),
    .standings-responsive-table td:nth-child(1) {
        width: 54px;
    }

    .standings-responsive-table th:nth-child(2),
    .standings-responsive-table td:nth-child(2) {
        width: auto;
    }

    .standings-responsive-table th:nth-child(3),
    .standings-responsive-table td:nth-child(3),
    .standings-responsive-table th:nth-child(4),
    .standings-responsive-table td:nth-child(4),
    .standings-responsive-table th:nth-child(5),
    .standings-responsive-table td:nth-child(5) {
        width: 88px;
        text-align: center;
    }

    .standings-responsive-table .driver-link {
        display: inline-block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: bottom;
    }
}

html,
body {
    max-width: 100%;
}

body {
    overflow-x: hidden;
}

/* Standings layout correction - undo over-tight fixed table sizing */
@media (min-width: 761px) {
    .standings-responsive-table {
        table-layout: auto !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .standings-responsive-table th,
    .standings-responsive-table td {
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    .standings-responsive-table th:nth-child(1),
    .standings-responsive-table td:nth-child(1) {
        width: 42px !important;
        text-align: left !important;
    }

    .standings-responsive-table th:nth-child(2),
    .standings-responsive-table td:nth-child(2) {
        width: auto !important;
        max-width: 220px !important;
    }

    .standings-responsive-table th:nth-child(3),
    .standings-responsive-table td:nth-child(3),
    .standings-responsive-table th:nth-child(4),
    .standings-responsive-table td:nth-child(4),
    .standings-responsive-table th:nth-child(5),
    .standings-responsive-table td:nth-child(5) {
        width: 72px !important;
        text-align: center !important;
    }

    .standings-responsive-table .driver-link {
        display: inline-block !important;
        max-width: 220px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        vertical-align: bottom !important;
    }
}

/* Stack standings class boxes earlier without stretching table columns */
@media (max-width: 1180px) {
    .standings-grid,
    .standings-page .grid-2 {
        grid-template-columns: 1fr !important;
    }
}

/* Driver directory license pills */
.license-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0.04em;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.license-rookie {
    background: #dc2626;
}

.license-d {
    background: #f97316;
}

.license-c {
    background: #ca8a04;
}

.license-b {
    background: #16a34a;
}

.license-a {
    background: #2563eb;
}

.license-pro {
    background: #050505;
    border-color: rgba(255, 255, 255, 0.34);
}

.license-unknown {
    background: rgba(71, 85, 105, 0.9);
}

/* Driver directory desktop tightening */
@media (min-width: 761px) {
    .drivers-directory-table {
        table-layout: auto;
        width: 100%;
    }

    .drivers-directory-table th:nth-child(2),
    .drivers-directory-table td:nth-child(2) {
        width: 80px;
        text-align: center;
    }

    .drivers-directory-table th:nth-child(3),
    .drivers-directory-table td:nth-child(3),
    .drivers-directory-table th:nth-child(4),
    .drivers-directory-table td:nth-child(4),
    .drivers-directory-table th:nth-child(5),
    .drivers-directory-table td:nth-child(5) {
        width: 110px;
        text-align: center;
    }

    .drivers-directory-table th:nth-child(6),
    .drivers-directory-table td:nth-child(6) {
        width: 120px;
        text-align: right;
    }
}

/* Driver directory mobile cards */
@media (max-width: 760px) {
    .drivers-directory-table .mobile-driver,
    .drivers-directory-table .mobile-driver .driver-link {
        color: var(--white);
        font-size: 17px !important;
        font-weight: 950;
        line-height: 1.15;
        text-decoration: none;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .drivers-directory-table td:not(.mobile-driver) {
        display: inline-flex !important;
        align-items: center;
        width: auto !important;
        max-width: 100%;
        margin: 4px 5px 0 0 !important;
        padding: 5px 8px !important;
        border: 1px solid rgba(56, 189, 248, 0.2) !important;
        border-radius: 999px !important;
        background: rgba(15, 23, 42, 0.76) !important;
        color: var(--muted) !important;
        font-size: 11px !important;
        font-weight: 850 !important;
        line-height: 1.1 !important;
    }

    .drivers-directory-table td:not(.mobile-driver)::before {
        content: attr(data-label) " ";
        color: var(--muted);
        opacity: 0.82;
        margin-right: 4px;
        font-weight: 800;
    }

    .drivers-directory-table .license-pill {
        margin-left: 2px;
    }
}

/* Laravel pagination cleanup */
nav[role="navigation"] svg,
.pagination svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
}

nav[role="navigation"] {
    color: var(--muted);
    font-size: 13px;
}

nav[role="navigation"] a,
nav[role="navigation"] span {
    text-decoration: none;
}

nav[role="navigation"] .relative {
    border-radius: 10px;
}

nav[role="navigation"] p {
    color: var(--muted);
    font-size: 12px;
}

nav[role="navigation"] > div {
    gap: 10px;
}

@media (max-width: 760px) {
    nav[role="navigation"] {
        overflow-x: auto;
        max-width: 100%;
    }

    nav[role="navigation"] svg {
        width: 14px !important;
        height: 14px !important;
    }
}

/* Driver directory width/readability */
.driver-directory-panel {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.driver-directory-panel .table-wrap {
    overflow-x: visible;
}

@media (min-width: 761px) {
    .drivers-directory-table {
        width: 100%;
        table-layout: fixed;
    }

    .drivers-directory-table th,
    .drivers-directory-table td {
        padding-left: 10px;
        padding-right: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .drivers-directory-table th:nth-child(1),
    .drivers-directory-table td:nth-child(1) {
        width: auto;
        max-width: 300px;
    }

    .drivers-directory-table th:nth-child(2),
    .drivers-directory-table td:nth-child(2) {
        width: 76px;
        text-align: center;
    }

    .drivers-directory-table th:nth-child(3),
    .drivers-directory-table td:nth-child(3) {
        width: 112px;
        text-align: right;
    }

    .drivers-directory-table th:nth-child(4),
    .drivers-directory-table td:nth-child(4),
    .drivers-directory-table th:nth-child(5),
    .drivers-directory-table td:nth-child(5) {
        width: 72px;
        text-align: center;
    }

    .drivers-directory-table th:nth-child(6),
    .drivers-directory-table td:nth-child(6) {
        width: 115px;
        text-align: right;
    }

    .drivers-directory-table .driver-link {
        display: inline-block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: bottom;
    }

    .drivers-directory-table .button-link {
        padding: 6px 10px;
        font-size: 12px;
    }
}

@media (max-width: 760px) {
    .driver-directory-panel {
        max-width: 100%;
    }
}

/* Driver directory last updated column */
@media (min-width: 761px) {
    .drivers-directory-table th:nth-child(1),
    .drivers-directory-table td:nth-child(1) {
        width: auto;
        max-width: 260px;
    }

    .drivers-directory-table th:nth-child(2),
    .drivers-directory-table td:nth-child(2) {
        width: 70px;
        text-align: center;
    }

    .drivers-directory-table th:nth-child(3),
    .drivers-directory-table td:nth-child(3) {
        width: 105px;
        text-align: right;
    }

    .drivers-directory-table th:nth-child(4),
    .drivers-directory-table td:nth-child(4),
    .drivers-directory-table th:nth-child(5),
    .drivers-directory-table td:nth-child(5) {
        width: 64px;
        text-align: center;
    }

    .drivers-directory-table th:nth-child(6),
    .drivers-directory-table td:nth-child(6) {
        width: 105px;
        text-align: center;
    }

    .drivers-directory-table th:nth-child(7),
    .drivers-directory-table td:nth-child(7) {
        width: 112px;
        text-align: right;
    }
}

/* Driver directory header/readability correction */
@media (min-width: 761px) {
    .driver-directory-panel {
        max-width: 1040px;
    }

    .drivers-directory-table {
        table-layout: fixed !important;
        width: 100% !important;
    }

    .drivers-directory-table th,
    .drivers-directory-table td {
        padding-left: 8px !important;
        padding-right: 8px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .drivers-directory-table th {
        font-size: 11px !important;
        letter-spacing: 0.04em !important;
        text-transform: uppercase;
    }

    .drivers-directory-table th:nth-child(1),
    .drivers-directory-table td:nth-child(1) {
        width: 245px !important;
        max-width: 245px !important;
        text-align: left !important;
    }

    .drivers-directory-table th:nth-child(2),
    .drivers-directory-table td:nth-child(2) {
        width: 74px !important;
        text-align: center !important;
    }

    .drivers-directory-table th:nth-child(3),
    .drivers-directory-table td:nth-child(3) {
        width: 128px !important;
        text-align: right !important;
    }

    .drivers-directory-table th:nth-child(4),
    .drivers-directory-table td:nth-child(4) {
        width: 74px !important;
        text-align: center !important;
    }

    .drivers-directory-table th:nth-child(5),
    .drivers-directory-table td:nth-child(5) {
        width: 74px !important;
        text-align: center !important;
    }

    .drivers-directory-table th:nth-child(6),
    .drivers-directory-table td:nth-child(6) {
        width: 118px !important;
        text-align: center !important;
    }

    .drivers-directory-table th:nth-child(7),
    .drivers-directory-table td:nth-child(7) {
        width: 115px !important;
        text-align: right !important;
    }

    .drivers-directory-table .driver-link {
        display: inline-block !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        vertical-align: bottom !important;
    }
}

/* League News */
.home-split {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 22px;
    margin-bottom: 24px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.news-card,
.news-list-item {
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.035);
    text-decoration: none;
    color: inherit;
}

.news-card:hover,
.news-list-item:hover {
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.news-card-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
}

.news-card h2,
.news-list-item h3 {
    margin: 0 0 8px;
}

.news-card p,
.news-list-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

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

.news-article h1 {
    font-size: clamp(34px, 5vw, 64px);
    margin: 12px 0;
}

.news-body {
    margin-top: 28px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
}

.news-body p {
    margin-bottom: 1rem;
}

.compact-series-list {
    display: grid;
    gap: 10px;
}

.compact-series-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: inherit;
}

.compact-series-item:hover {
    border-color: rgba(255, 255, 255, 0.22);
}

.compact-series-item strong {
    display: block;
}

.compact-series-item span {
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 900px) {
    .home-split {
        grid-template-columns: 1fr;
    }
}

/* League News / Active Seasons homepage refinement */
.league-news-home-grid.home-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 28px;
}

.league-news-home-grid .panel {
    overflow: hidden;
}

.league-news-home-grid .panel-header {
    padding: 26px 28px;
}

.league-news-home-grid .news-list,
.league-news-home-grid .compact-series-list {
    padding: 0 0 6px;
}

.league-news-home-grid .news-list-item {
    margin: 0 0 14px;
    padding: 24px 26px;
}

.league-news-home-grid .news-list-item:first-child {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.league-news-home-grid .compact-series-list {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.league-news-home-grid .compact-series-item {
    padding: 20px 22px;
    min-height: 86px;
}

.league-news-home-grid .compact-series-item strong {
    font-size: 18px;
    margin-bottom: 4px;
}

.league-news-home-grid .news-card-meta {
    margin-bottom: 14px;
}

.league-news-home-grid .news-list-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.league-news-home-grid .news-list-item p {
    font-size: 16px;
}

@media (max-width: 900px) {
    .league-news-home-grid.home-split {
        grid-template-columns: 1fr;
    }
}

/* Compact homepage news list */
.league-news-home-grid .compact-news-item {
    padding: 14px 18px;
    margin: 0;
    border-radius: 14px;
}

.league-news-home-grid .compact-news-item h3 {
    font-size: 18px;
    line-height: 1.18;
    margin: 0 0 6px;
}

.league-news-home-grid .compact-news-item .news-card-meta {
    margin: 0 0 7px;
    gap: 7px;
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 0.8;
}

.league-news-home-grid .compact-news-item p {
    font-size: 14px;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Match homepage news spacing to compact active seasons */
.league-news-home-grid .news-list {
    padding: 18px;
    gap: 14px;
}

.league-news-home-grid .compact-news-item {
    margin: 0;
    padding: 20px 22px;
    min-height: 86px;
}

.league-news-home-grid .compact-news-item:first-child {
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

/* Standings overview */
.standings-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
}

.standings-overview-card .panel-header {
    align-items: flex-start;
}

.standings-overview-card .panel-header h2 {
    margin-bottom: 4px;
}

.standings-class-stack {
    display: grid;
    gap: 18px;
    padding: 18px;
}

.standings-mini-class {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.025);
}

.standings-mini-class-title {
    padding: 12px 16px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.standings-mini-table {
    display: grid;
}

.standings-mini-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 72px;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.standings-mini-row:last-child {
    border-bottom: 0;
}

.standings-mini-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mini-pos {
    color: var(--muted);
    font-weight: 800;
}

.mini-driver {
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-points {
    text-align: right;
    font-weight: 900;
}

.compact-empty {
    margin: 18px;
}

/* Active standings overview refinement */
.standings-overview-grid.two-up {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.standings-class-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 18px;
}

.standings-class-columns .standings-mini-class {
    min-width: 0;
}

.standings-class-columns .standings-mini-row {
    grid-template-columns: 34px minmax(0, 1fr) 58px;
    padding: 11px 12px;
}

.standings-class-columns .mini-driver {
    font-size: 14px;
}

.standings-class-columns .mini-points {
    font-size: 14px;
}

@media (max-width: 1100px) {
    .standings-overview-grid.two-up {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .standings-class-columns {
        grid-template-columns: 1fr;
    }
}

/* Clickable standings card header */
.standings-card-header-link {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
}

.standings-card-header-link:hover h2 {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.standings-card-header-link .button-link {
    flex-shrink: 0;
}

/* Standings card header hover refinement */
.standings-card-header-link {
    transition: background-color 0.16s ease, border-color 0.16s ease;
}

.standings-card-header-link:hover {
    background: rgba(0, 0, 0, 0.18);
}

.standings-card-header-link:hover h2 {
    text-decoration: none;
}

/* Standings overview footer button */
.standings-card-footer {
    display: flex;
    justify-content: center;
    padding: 0 18px 22px;
}

.full-standings-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
}


/* Panel header actions */
.panel-header-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.no-underline-hover,
.no-underline-hover:hover,
.no-underline-hover:focus {
    text-decoration: none;
}

.no-underline-hover:hover {
    background: rgba(0, 0, 0, 0.18);
}



/* Any Victory Lane header row containing the button should behave like a flex row */
.victory-header-button,
.victory-header-button:visited {
    text-decoration: none;
}

.victory-header-button {
    position: relative;
}

/* Target likely parent wrappers */
.victory-card:has(.victory-header-button) > div:first-child,
.victory-card article:has(.victory-header-button) > div:first-child,
article:has(.victory-header-button) > div:first-child,
.victory-item:has(.victory-header-button) > div:first-child {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
}

/* Target the direct parent of the button in modern browsers */
div:has(> .victory-header-button) {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
}

div:has(> .victory-header-button) > div:first-child {
    min-width: 0;
}

@media (max-width: 700px) {
    div:has(> .victory-header-button) {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .victory-header-button {
        margin-left: 0 !important;
        width: 100%;
    }
}




/* Victory Lane race result button - clean layout */
.victory-head-with-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.victory-head-copy {
    min-width: 0;
}

.victory-head-with-button .victory-header-button {
    flex: 0 0 auto;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: background-color 0.16s ease, border-color 0.16s ease;
}

.victory-head-with-button .victory-header-button:hover,
.victory-head-with-button .victory-header-button:focus {
    color: inherit;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.38);
    border-color: rgba(255, 255, 255, 0.28);
}

@media (max-width: 900px) {
    .victory-head-with-button {
        flex-direction: column;
        align-items: stretch;
    }

    .victory-head-with-button .victory-header-button {
        width: 100%;
        margin-left: 0;
    }
}

/* Victory Lane track/date emphasis */
.victory-head-with-button .victory-race {
    font-size: clamp(18px, 1.25vw, 22px);
    font-weight: 800;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.88);
    margin-top: 6px;
}

/* Victory Lane series title refinement */
.victory-head-with-button .victory-series {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.58);
    letter-spacing: 0.02em;
    margin-top: 3px;
}

/* Victory Lane series title refinement */
.victory-head-with-button .victory-series {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.58);
    letter-spacing: 0.02em;
    margin-top: 3px;
}

/* Homepage news cards - vertical article layout */
.league-news-home-grid .homepage-news-card {
    display: flex;
    flex-direction: column;
    min-height: 190px;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.homepage-news-main-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 22px 12px;
    color: inherit;
    text-decoration: none;
}

.homepage-news-main-link:hover,
.homepage-news-main-link:focus {
    color: inherit;
    text-decoration: none;
}

.league-news-home-grid .homepage-news-card h3 {
    font-size: 20px;
    line-height: 1.2;
    margin: 0 0 8px;
}

.league-news-home-grid .homepage-news-card .news-card-meta {
    margin: 0 0 12px;
    gap: 7px;
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 0.78;
}

.league-news-home-grid .homepage-news-card p {
    font-size: 15px;
    line-height: 1.45;
    margin: 0;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.homepage-news-card-footer {
    display: flex;
    justify-content: flex-start;
    padding: 0 22px 20px;
    margin-top: auto;
}

.news-read-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    text-decoration: none;
}

.news-read-more-button:hover,
.news-read-more-button:focus {
    text-decoration: none;
    background: rgba(0, 0, 0, 0.18);
}

/* Final override: homepage news article cards */
.league-news-home-grid .news-list {
    display: grid;
    gap: 18px;
    padding: 18px;
}

.league-news-home-grid .news-list > .homepage-news-card {
    display: flex !important;
    flex-direction: column !important;
    min-height: 230px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
}

.league-news-home-grid .homepage-news-card .homepage-news-main-link {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    padding: 22px 24px 14px !important;
    color: inherit;
    text-decoration: none !important;
}

.league-news-home-grid .homepage-news-card .homepage-news-main-link:hover,
.league-news-home-grid .homepage-news-card .homepage-news-main-link:focus {
    color: inherit;
    text-decoration: none !important;
}

.league-news-home-grid .homepage-news-card h3 {
    font-size: 22px !important;
    line-height: 1.18 !important;
    margin: 0 0 10px !important;
}

.league-news-home-grid .homepage-news-card .news-card-meta {
    order: 2;
    margin: 0 0 14px !important;
    gap: 7px;
    font-size: 12px !important;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 0.78;
}

.league-news-home-grid .homepage-news-card p {
    order: 3;
    font-size: 15px !important;
    line-height: 1.48 !important;
    margin: 0 !important;
    color: var(--muted);
    display: -webkit-box !important;
    -webkit-line-clamp: 6 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.league-news-home-grid .homepage-news-card .homepage-news-card-footer {
    display: flex !important;
    justify-content: flex-start;
    padding: 0 24px 22px !important;
    margin-top: auto !important;
}

.league-news-home-grid .homepage-news-card .news-read-more-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    text-decoration: none !important;
}

.league-news-home-grid .homepage-news-card .news-read-more-button:hover,
.league-news-home-grid .homepage-news-card .news-read-more-button:focus {
    text-decoration: none !important;
    background: rgba(0, 0, 0, 0.18);
}

/* Final homepage news compact vertical layout */
.league-news-home-grid .news-list {
    display: grid !important;
    gap: 12px !important;
    padding: 18px !important;
}

.league-news-home-grid .news-list > .homepage-news-card {
    display: block !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
}

.league-news-home-grid .homepage-news-card .homepage-news-main-link {
    display: block !important;
    padding: 18px 20px 10px !important;
    color: inherit !important;
    text-decoration: none !important;
}

.league-news-home-grid .homepage-news-card h3 {
    font-size: 19px !important;
    line-height: 1.18 !important;
    margin: 0 0 8px !important;
}

.league-news-home-grid .homepage-news-card .news-card-meta {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    margin: 0 0 10px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    opacity: 0.72 !important;
}

.league-news-home-grid .homepage-news-card p {
    font-size: 14px !important;
    line-height: 1.38 !important;
    margin: 0 !important;
    color: var(--muted) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.league-news-home-grid .homepage-news-card .homepage-news-card-footer {
    display: flex !important;
    justify-content: flex-start !important;
    padding: 0 20px 16px !important;
    margin: 0 !important;
}

.league-news-home-grid .homepage-news-card .news-read-more-button {
    min-width: 104px !important;
    padding: 8px 13px !important;
    font-size: 13px !important;
    text-decoration: none !important;
}

.league-news-home-grid .homepage-news-card .news-read-more-button:hover,
.league-news-home-grid .homepage-news-card .news-read-more-button:focus {
    text-decoration: none !important;
    background: rgba(0, 0, 0, 0.18) !important;
}

/* Homepage news card columns */
.league-news-home-grid .news-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    padding: 18px !important;
    align-items: stretch !important;
}

.league-news-home-grid .news-list > .homepage-news-card {
    height: 100% !important;
}

.league-news-home-grid .homepage-news-card {
    display: flex !important;
    flex-direction: column !important;
}

.league-news-home-grid .homepage-news-card .homepage-news-main-link {
    flex: 1 1 auto !important;
}

.league-news-home-grid .homepage-news-card .homepage-news-card-footer {
    margin-top: auto !important;
}

@media (max-width: 1200px) {
    .league-news-home-grid .news-list {
        grid-template-columns: 1fr !important;
    }
}
