/* =========================================================
   DEMIPLAY F1 UI STYLESHEET
   ---------------------------------------------------------
   DOEL
   Centrale stylesheet voor alle F1-onderdelen in de plugin.
   Mobile-first is leidend. Desktop-aanpassingen staan steeds
   in aparte DESKTOP-secties of media queries.

   STRUCTUUR
   01. Rankings - shared wrapper, links en vlaggen
   02. Rankings - mobile cards base
   03. Rankings - shared media / team / points
   04. Rankings - legacy / unused hide
   05. Rankings - mobile top 3 premium
   06. Rankings - desktop table base
   07. Rankings - desktop table drivers / generic
   08. Rankings - desktop table top 3 premium
   09. Rankings - constructors mobile
   10. Rankings - constructors desktop
   11. Driver profile - desktop
   12. Driver profile - mobile
   13. Driver profile - extra info
   14. Driver overview - desktop
   15. Driver overview - mobile
   16. Team overview - desktop
   17. Team overview - mobile
   18. Team profile - desktop
   19. Team profile - mobile
   20. Race overview - desktop
   21. Race overview - mobile
   22. Race profile - desktop
   23. Race profile - mobile
   24. Race facts grid - desktop
   25. Race facts grid - mobile
========================================================= */


/* =========================================================
   1. WRAPPER & HEADER
========================================================= */

.demiplay-f1-ranking-wrap {
    margin: 0;
    padding: 20px 12px 24px;
}

.demiplay-f1-ranking-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.demiplay-f1-ranking-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.1;
    font-weight: 800;
    color: #111827;
}

.demiplay-f1-ranking-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.demiplay-f1-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 16px;
    background: #f3f4f6;
    color: #111827;
    font-size: 13px;
    font-weight: 600;
}

.demiplay-f1-empty {
    padding: 10px 0;
    color: #6b7280;
}

/* ---------------------------------------------------------
   Shared link reset - rankings
--------------------------------------------------------- */
.demiplay-f1-card-title a,
.demiplay-f1-table-driver-name a,
.demiplay-f1-constructors-mobile-title a,
.demiplay-f1-table-team a {
    color: inherit;
    text-decoration: none;
}

.demiplay-f1-card-title a:hover,
.demiplay-f1-card-title a:focus,
.demiplay-f1-table-driver-name a:hover,
.demiplay-f1-table-driver-name a:focus,
.demiplay-f1-constructors-mobile-title a:hover,
.demiplay-f1-constructors-mobile-title a:focus,
.demiplay-f1-table-team a:hover,
.demiplay-f1-table-team a:focus {
    color: inherit;
    text-decoration: none;
}

.demiplay-f1-card-constructors,
.demiplay-f1-card-constructors:hover,
.demiplay-f1-card-constructors:focus,
.demiplay-f1-card-constructors:visited {
    text-decoration: none;
    color: inherit;
}

/* ---------------------------------------------------------
   Shared flag styling
   - demiplay-f1-ranking-flag: driver rankings
   - demiplay-driver-flag:     driver profile nationality
--------------------------------------------------------- */
.demiplay-f1-ranking-flag,
.demiplay-driver-flag {
    display: inline-block;
    height: auto;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.08);
}

.demiplay-f1-inline-flag,
.demiplay-f1-table-flag,
.demiplay-f1-ranking-flag {
    width: 16px;
}

.demiplay-f1-inline-flag {
    margin-left: 4px;
    vertical-align: -2px;
}

.demiplay-f1-table-flag {
    margin: 0 4px 0 0;
    vertical-align: -2px;
}

.demiplay-driver-flag {
    width: 22px;
}

/* =========================================================
   2. RANKINGS - MOBILE CARDS BASE
========================================================= */

.demiplay-f1-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.demiplay-f1-card {
    background: #f3f4f6;
    border-radius: 22px;
    padding: 14px 12px 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.demiplay-f1-card:active {
    transform: scale(0.98);
}

.demiplay-f1-card-top {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
}

.demiplay-f1-card-pos {
    margin-left: 4px;
    font-size: 28px;
    line-height: 1;
    font-weight: 800;
    color: #111827;
    text-align: center;
}

/* Driver naam + vlag + nummer in mobile card */
.demiplay-f1-card-title {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 0;
    font-size: 14px;
    line-height: 1.1;
    font-weight: 800;
    text-transform: uppercase;
    color: #111827;
}

.demiplay-f1-card-number {
    display: inline-block;
    position: relative;
    top: -1px;
    margin-left: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #1f2937;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.demiplay-f1-card-flag {
    display: inline-block;
    margin-left: 4px;
    font-size: 16px;
    line-height: 1;
    vertical-align: middle;
}

.demiplay-f1-card-bottom {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px;
    align-items: center;
}

.demiplay-f1-card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.demiplay-f1-card-team-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}


/* =========================================================
   3. SHARED MEDIA / TEAM / POINTS
========================================================= */

.demiplay-f1-driver-image {
    display: block;
    width: 76px;
    height: 76px;
    border-radius: 18px;
    object-fit: cover;
    background: #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.20);
}

.demiplay-f1-team-logo {
    display: block;
    width: 44px;
    height: auto;
    object-fit: contain;
}

.demiplay-f1-team {
    margin: 0;
    font-size: 14px;
    line-height: 1.2;
    color: #4b5563;
    text-align: center;
}

.demiplay-f1-points {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: #3b43c6;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.demiplay-f1-abbr {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
}


/* =========================================================
   4. LEGACY / UNUSED HIDE
========================================================= */

.demiplay-f1-side,
.demiplay-f1-pos,
.demiplay-f1-main,
.demiplay-f1-name-row,
.demiplay-f1-number,
.demiplay-f1-team-row {
    display: none;
}


/* =========================================================
   5. MOBILE TOP 3 PREMIUM
========================================================= */

.demiplay-f1-card-pos-1 {
    background: linear-gradient(90deg, #fff8d8 0%, #f3f4f6 70%);
    border: 1px solid rgba(255, 215, 0, 0.28);
    box-shadow: 0 8px 20px rgba(201, 162, 39, 0.12);
}

.demiplay-f1-card-pos-2 {
    background: linear-gradient(90deg, #f3f4f6 0%, #f8fafc 70%);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 8px 20px rgba(148, 163, 184, 0.10);
}

.demiplay-f1-card-pos-3 {
    background: linear-gradient(90deg, #f9ede2 0%, #f3f4f6 70%);
    border: 1px solid rgba(205, 127, 50, 0.24);
    box-shadow: 0 8px 20px rgba(168, 90, 36, 0.10);
}

.demiplay-f1-card-pos-1 .demiplay-f1-card-pos,
.demiplay-f1-card-pos-2 .demiplay-f1-card-pos,
.demiplay-f1-card-pos-3 .demiplay-f1-card-pos {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0 auto;
    border-radius: 999px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
}

.demiplay-f1-card-pos-1 .demiplay-f1-card-pos {
    background: linear-gradient(135deg, #f7d64a 0%, #c9a227 100%);
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.28);
}

.demiplay-f1-card-pos-2 .demiplay-f1-card-pos {
    background: linear-gradient(135deg, #cfd4dc 0%, #8f98a3 100%);
    box-shadow: 0 4px 12px rgba(143, 152, 163, 0.25);
}

.demiplay-f1-card-pos-3 .demiplay-f1-card-pos {
    background: linear-gradient(135deg, #d89a5b 0%, #a85a24 100%);
    box-shadow: 0 4px 12px rgba(168, 90, 36, 0.24);
}


/* =========================================================
   6. RANKINGS - DESKTOP TABLE BASE
========================================================= */

.demiplay-f1-desktop-table {
    display: none;
}


/* =========================================================
   7. RANKINGS - DESKTOP TABLE DRIVERS / GENERIC
========================================================= */

@media (min-width: 900px) {
    .demiplay-f1-ranking-wrap {
        margin: 24px 0;
        padding: 0;
    }

    .demiplay-f1-ranking-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

    .demiplay-f1-ranking-title {
        font-size: 32px;
    }

    .demiplay-f1-ranking-meta {
        align-items: flex-end;
    }

    .demiplay-f1-cards {
        display: none;
    }

    .demiplay-f1-desktop-table {
        display: block;
    }

    .demiplay-f1-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0 18px;
    }

    .demiplay-f1-table thead th {
        padding: 0 18px 6px;
        background: transparent;
        border: none;
        color: #6b7280;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        text-align: left;
    }

    .demiplay-f1-table thead th:first-child,
    .demiplay-f1-table thead th:nth-child(3),
    .demiplay-f1-table thead th:nth-child(4),
    .demiplay-f1-table thead th:nth-child(5) {
        text-align: center;
    }

    .demiplay-f1-table tbody tr {
        background: #ffffff;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    }

    .demiplay-f1-table tbody td {
        padding: 18px;
        border: none;
        vertical-align: middle;
        background: transparent;
    }

    .demiplay-f1-table tbody td:first-child {
        width: 90px;
        text-align: center;
        border-radius: 20px 0 0 20px;
    }

    .demiplay-f1-table tbody td:last-child {
        width: 90px;
        text-align: center;
        border-radius: 0 20px 20px 0;
    }

    .demiplay-f1-table tbody td:nth-child(3),
    .demiplay-f1-table tbody td:nth-child(4),
    .demiplay-f1-table tbody td:nth-child(5) {
        text-align: center;
    }

    .demiplay-f1-table-driver {
        display: flex;
        align-items: center;
        gap: 14px;
    }

   .demiplay-f1-table-driver-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: #e5e7eb;
    flex: 0 0 auto;
}

.demiplay-f1-table-flag,
.demiplay-f1-ranking-flag {
    width: 18px !important;
    height: auto !important;
    border-radius: 2px !important;
    object-fit: contain !important;
    background: transparent !important;
    flex: 0 0 auto;
}

    .demiplay-f1-table-driver-name {
        font-size: 15px;
        line-height: 1.1;
        font-weight: 800;
        color: #111827;
    }

    /* Driver subregel in desktop tabel: nummer + vlag + afkorting */
    .demiplay-f1-table-driver-sub {
        margin-top: 4px;
        color: #6b7280;
        font-size: 13px;
    }

    .demiplay-f1-table-driver-sub span {
        font-size: 13px;
    }

    .demiplay-f1-table-team {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        color: #4b5563;
    }

    .demiplay-f1-table-team img {
        width: 30px;
        height: auto;
        object-fit: contain;
    }

    .demiplay-f1-table-points {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 64px;
        margin: 0 auto;
        padding: 10px 16px;
        border-radius: 999px;
        background: #eef2ff;
        color: #1e3a8a;
        font-weight: 800;
    }

    .demiplay-f1-table tbody td:nth-child(5) {
        font-weight: 700;
        color: #111827;
    }

    .demiplay-f1-inline-flag,
    .demiplay-f1-table-flag,
    .demiplay-f1-ranking-flag {
        width: 18px;
    }
}


/* =========================================================
   8. RANKINGS - DESKTOP TABLE TOP 3 PREMIUM
========================================================= */

@media (min-width: 900px) {
    .demiplay-f1-table-row-pos-1 {
        background: linear-gradient(90deg, #fff8d8 0%, #ffffff 70%) !important;
    }

    .demiplay-f1-table-row-pos-2 {
        background: linear-gradient(90deg, #f3f4f6 0%, #ffffff 70%) !important;
    }

    .demiplay-f1-table-row-pos-3 {
        background: linear-gradient(90deg, #f9ede2 0%, #ffffff 70%) !important;
    }

    .demiplay-f1-table-row-pos-1 td:first-child .demiplay-f1-desktop-pos,
    .demiplay-f1-table-row-pos-2 td:first-child .demiplay-f1-desktop-pos,
    .demiplay-f1-table-row-pos-3 td:first-child .demiplay-f1-desktop-pos {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 999px;
        color: #ffffff;
        font-size: 15px;
        font-weight: 800;
        line-height: 1;
    }

    .demiplay-f1-table-row-pos-1 td:first-child .demiplay-f1-desktop-pos {
        background: linear-gradient(135deg, #f7d64a 0%, #c9a227 100%);
        box-shadow: 0 4px 12px rgba(201, 162, 39, 0.28);
    }

    .demiplay-f1-table-row-pos-2 td:first-child .demiplay-f1-desktop-pos {
        background: linear-gradient(135deg, #cfd4dc 0%, #8f98a3 100%);
        box-shadow: 0 4px 12px rgba(143, 152, 163, 0.25);
    }

    .demiplay-f1-table-row-pos-3 td:first-child .demiplay-f1-desktop-pos {
        background: linear-gradient(135deg, #d89a5b 0%, #a85a24 100%);
        box-shadow: 0 4px 12px rgba(168, 90, 36, 0.24);
    }
}


/* =========================================================
   9. RANKINGS - CONSTRUCTORS MOBILE
========================================================= */

@media (max-width: 767px) {
    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-card-constructors {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        min-height: 178px;
        margin-bottom: 14px;
        padding: 16px 16px 18px;
        border-radius: 22px;
        text-align: center;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-card-constructors:active {
        transform: scale(0.98);
    }

    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-constructors-mobile-toprow {
        display: grid;
        grid-template-columns: 58px 1fr;
        width: 100%;
        align-items: center;
        column-gap: 8px;
        margin-bottom: 10px;
    }

    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-card-pos {
        margin: 0;
        font-size: 1.85rem;
        line-height: 1;
        font-weight: 800;
        color: #111827;
    }

    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-card-pos-1 .demiplay-f1-card-pos,
    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-card-pos-2 .demiplay-f1-card-pos,
    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-card-pos-3 .demiplay-f1-card-pos {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        margin: 0;
        border-radius: 999px;
        color: #fff;
        font-size: 1.2rem;
    }

    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-card-constructors:not(.demiplay-f1-card-pos-1):not(.demiplay-f1-card-pos-2):not(.demiplay-f1-card-pos-3) .demiplay-f1-card-pos {
        width: 50px;
        text-align: left;
    }

    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-constructors-mobile-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 56px;
        margin: 0;
    }

    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-constructors-mobile-logo .demiplay-f1-team-logo {
        width: auto;
        max-width: 180px;
        max-height: 52px;
        object-fit: contain;
    }

    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-constructors-mobile-body {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding-top: 0;
    }

    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-constructors-mobile-title {
        max-width: 250px;
        margin: 0;
        font-size: 1rem;
        line-height: 1.15;
        font-weight: 600;
        letter-spacing: -0.015em;
        color: #111827;
        text-transform: none;
        text-wrap: balance;
    }

    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-constructors-mobile-points {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 104px;
        padding: 10px 18px;
        border-radius: 999px;
        background: #3b43c6;
        color: #fff;
        font-size: 0.98rem;
        font-weight: 800;
        line-height: 1;
        box-shadow: 0 6px 14px rgba(59, 67, 198, 0.16);
    }

    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-card-pos-1 {
        box-shadow: 0 10px 30px rgba(212, 175, 55, 0.25);
    }

    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-card-pos-2 {
        box-shadow: 0 10px 26px rgba(160, 160, 160, 0.25);
    }

    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-card-pos-3 {
        box-shadow: 0 10px 26px rgba(176, 111, 67, 0.25);
    }
    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-card-constructors,
    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-card-constructors:hover,
    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-card-constructors:focus,
    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-card-constructors:visited {
        text-decoration: none;
        color: inherit;
    }

    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-card-constructors * {
        text-decoration: none;
    }

    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-card-constructors h3,
    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-card-constructors .demiplay-f1-constructors-mobile-title,
    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-card-constructors .demiplay-f1-constructors-mobile-points {
        color: inherit;
        text-decoration: none;
    }

}


/* =========================================================
   10. RANKINGS - CONSTRUCTORS DESKTOP
========================================================= */

@media (min-width: 768px) {
    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-table-wrap {
        overflow: hidden;
        border-radius: 26px;
        background: transparent;
    }

    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0 18px;
    }

    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-table thead {
        border-bottom: 1px solid #e6e9f2;
    }

    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-table thead th {
        padding: 0 28px 14px;
        color: #7b8190;
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-table tbody tr {
        background: linear-gradient(180deg, #f8f9fd 0%, #f3f5fb 100%);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
        border-radius: 20px;
        transition: transform 0.18s ease, box-shadow 0.18s ease;
    }

    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-table tbody tr:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
    }

    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-table tbody td {
        padding: 22px 28px;
        border: none;
        vertical-align: middle;
        background: transparent;
    }

    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-table tbody td:first-child {
        width: 110px;
        border-top-left-radius: 22px;
        border-bottom-left-radius: 22px;
    }

    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-table tbody td:last-child {
        border-top-right-radius: 22px;
        border-bottom-right-radius: 22px;
    }

    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-table tbody td:nth-child(1) {
        font-size: 1.5rem;
        font-weight: 800;
        color: #111827;
    }

    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-table tbody td:nth-child(3) {
        width: 170px;
        text-align: center;
    }

    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-table tbody td:nth-child(4) {
        width: 120px;
        font-size: 1.3rem;
        font-weight: 700;
        color: #1f2937;
    }

    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-table-team {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-table-team img {
        width: auto;
        max-width: 140px;
        max-height: 40px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-table-team span,
    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-table-team strong {
        font-size: 1.1rem;
        font-weight: 600;
        line-height: 1.2;
        letter-spacing: -0.01em;
        color: #1f2430;
    }

    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-table tbody td:nth-child(3) .demiplay-f1-points-pill,
    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-table tbody td:nth-child(3) span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 100px;
        padding: 12px 22px;
        border-radius: 999px;
        background: linear-gradient(135deg, #3b43c6, #5a63f0);
        color: #fff;
        font-weight: 800;
        font-size: 1rem;
        box-shadow: 0 8px 18px rgba(59, 67, 198, 0.25);
    }

    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-table-row-pos-1 {
        background: linear-gradient(180deg, #fbf8df 0%, #f7f2cf 100%);
        box-shadow: 0 10px 28px rgba(212, 175, 55, 0.14);
    }

    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-table-row-pos-2 {
        background: linear-gradient(180deg, #f5f6fa 0%, #eceff5 100%);
        box-shadow: 0 10px 24px rgba(160, 160, 160, 0.12);
    }

    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-table-row-pos-3 {
        background: linear-gradient(180deg, #f8f1ea 0%, #f2e6da 100%);
        box-shadow: 0 10px 24px rgba(176, 111, 67, 0.12);
    }
    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-table-team a,
    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-table-team a:hover,
    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-table-team a:focus,
    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-table-team a:visited {
        color: inherit;
        text-decoration: none;
    }

    .demiplay-f1-ranking-wrap-constructors .demiplay-f1-table-team a:hover {
        opacity: 0.85;
    }

}


/* =========================================================
   11. DRIVER PROFILE PAGE - DESKTOP
========================================================= */

.demiplay-driver-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 16px 44px;
}

.demiplay-driver-hero-v2 {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(59, 67, 198, 0.06) 0%, rgba(59, 67, 198, 0) 30%),
    linear-gradient(180deg, #fbfcff 0%, #f4f7fc 100%);
  border: 1px solid #e8edf6;
  border-radius: 30px;
  padding: 34px;
  box-shadow: 0 18px 40px rgba(12, 18, 38, 0.07);
}

/* IMAGE */
.demiplay-driver-hero-media {
  display: flex;
  justify-content: center;
  align-items: end;
}

.demiplay-driver-hero-photo {
  width: 100%;
  max-width: 150px;
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(circle at top, #ffffff 0%, #eef2f8 100%);
  padding: 14px 14px 0;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
}

.demiplay-driver-hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* TEXT */
.demiplay-driver-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3b43c6;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demiplay-driver-title {
  margin: 0 0 12px;
  font-size: 3.5rem;
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: #111827;
  font-weight: 900;
}

/* BADGES */
.demiplay-driver-submeta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.demiplay-driver-number,
.demiplay-driver-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

/* TEAM */
.demiplay-driver-team-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.demiplay-driver-team-logo {
  width: auto;
  max-width: 140px;
  max-height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.demiplay-driver-team-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
}

/* STATS */
.demiplay-driver-stat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.demiplay-driver-stat-card {
  min-width: 160px;
  padding: 20px 22px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #e8edf6;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.demiplay-driver-stat-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 900;
  color: #111827;
}

.demiplay-driver-stat-card span {
  display: block;
  font-size: 0.95rem;
  color: #6b7280;
  font-weight: 600;
}

.demiplay-driver-overview {
  max-width: 1180px;
  margin: 28px auto 0;
  padding: 0 16px;
}

.demiplay-driver-overview-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid #e8edf6;
  border-radius: 24px;
  padding: 28px 30px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.demiplay-driver-overview-card h2 {
  margin: 0 0 14px;
  font-size: 1.6rem;
  line-height: 1.1;
  font-weight: 800;
  color: #111827;
}

.demiplay-driver-overview-card p {
  margin: 0 0 22px;
  font-size: 1rem;
  line-height: 1.7;
  color: #4b5563;
  max-width: 760px;
}

.demiplay-driver-season-stats {
  max-width: 1180px;
  margin: 24px auto 0;
  padding: 0 16px;
}

.demiplay-driver-season-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid #e8edf6;
  border-radius: 24px;
  padding: 26px 28px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.demiplay-driver-season-card h2 {
  margin: 0 0 18px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
}

.demiplay-driver-season-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.demiplay-driver-season-grid div {
  background: #f8fafc;
  border: 1px solid #e8edf6;
  border-radius: 18px;
  padding: 16px;
  text-align: center;
}

.demiplay-driver-season-grid span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 6px;
}

.demiplay-driver-season-grid strong {
  font-size: 1.2rem;
  font-weight: 800;
  color: #111827;
}

.demiplay-driver-results {
  max-width: 1180px;
  margin: 24px auto 0;
  padding: 0 16px;
}

.demiplay-driver-results-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid #e8edf6;
  border-radius: 24px;
  padding: 26px 28px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.demiplay-driver-results-card h2 {
  margin: 0 0 18px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
}

.demiplay-driver-results-list {
  display: grid;
  gap: 12px;
}

.demiplay-driver-result-item {
  background: #f8fafc;
  border: 1px solid #e8edf6;
  border-radius: 18px;
  padding: 16px 18px;
}

.demiplay-driver-result-race {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}

.demiplay-driver-result-pos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3b43c6;
  font-size: 0.95rem;
  font-weight: 800;
}

.demiplay-driver-result-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.demiplay-driver-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 0.85rem;
  color: #6b7280;
}

.demiplay-driver-result-meta span {
  display: inline-block;
}

.demiplay-driver-result-main {
  width: 100%;
}

.demiplay-driver-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
}

/* =========================================================
   DRIVER / TEAM / RACE ARTICLES  DESKTOP
========================================================= */

.demiplay-driver-articles,
.demiplay-team-articles,
.demiplay-race-articles {
  max-width: 1180px;
  margin: 24px auto 0;
  padding: 0 16px;
}

.demiplay-driver-articles h2,
.demiplay-team-articles h2,
.demiplay-race-articles h2 {
  margin: 0 0 18px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
}

.demiplay-driver-articles-grid,
.demiplay-team-articles-grid,
.demiplay-race-articles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.demiplay-driver-article-item,
.demiplay-team-article-item,
.demiplay-race-article-item {
  min-width: 0;
}

.demiplay-driver-article-link,
.demiplay-team-article-link,
.demiplay-race-article-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid #e8edf6;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.demiplay-driver-article-link:hover,
.demiplay-team-article-link:hover,
.demiplay-race-article-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.demiplay-driver-article-thumb-wrap,
.demiplay-team-article-thumb-wrap,
.demiplay-race-article-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e5e7eb;
}

.demiplay-driver-article-thumb,
.demiplay-team-article-thumb,
.demiplay-race-article-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demiplay-driver-article-thumb-placeholder,
.demiplay-team-article-thumb-placeholder,
.demiplay-race-article-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #eef2ff 0%, #e5e7eb 100%);
}

.demiplay-driver-article-body,
.demiplay-team-article-body,
.demiplay-race-article-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 16px 18px;
}

.demiplay-driver-article-title,
.demiplay-team-article-title,
.demiplay-race-article-title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.4;
  font-weight: 800;
  color: #111827;
}

.demiplay-driver-article-meta,
.demiplay-team-article-meta,
.demiplay-race-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.84rem;
  color: #6b7280;
}

.demiplay-driver-article-date,
.demiplay-team-article-date,
.demiplay-race-article-date,
.demiplay-driver-article-type,
.demiplay-team-article-type,
.demiplay-race-article-type {
  display: inline-block;
}

.demiplay-driver-article-link {
  display: block;
  height: 100%;
  background: #ffffff;
  border: 1px solid #e8edf6;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.demiplay-driver-article-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
}

.demiplay-driver-article-thumb-wrap {
  aspect-ratio: 16 / 9;
  background: #eef2f7;
  overflow: hidden;
}

.demiplay-driver-article-thumb,
.demiplay-driver-article-thumb-placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.demiplay-driver-article-thumb {
  object-fit: cover;
}

.demiplay-driver-article-thumb-placeholder {
  background: linear-gradient(135deg, #eef2f7 0%, #dde5f0 100%);
}

.demiplay-driver-article-body {
  padding: 18px 18px 20px;
}

.demiplay-driver-article-title {
  margin: 0 0 12px;
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 800;
  color: #111827;
}

.demiplay-driver-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.9rem;
  color: #6b7280;
}

.demiplay-driver-article-type {
  color: #3b43c6;
  font-weight: 700;
}

/* =========================================================
   12. DRIVER PROFILE PAGE - MOBILE
========================================================= */

@media (max-width: 767px) {

  .demiplay-driver-page {
    padding: 20px 14px 28px;
  }

  .demiplay-driver-hero-v2 {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px 18px 24px;
    border-radius: 24px;
    text-align: center;
  }
	
	.demiplay-driver-hero-photo {
  max-width: 150px;
  padding: 10px 10px 0;
}

  /* IMAGE */
  .demiplay-driver-hero-photo {
    max-width: 150px;
    margin: 0 auto;
    padding: 14px 14px 0;
  }

  /* TEXT */
  .demiplay-driver-kicker {
    margin-bottom: 10px;
  }

  .demiplay-driver-title {
    font-size: 2.4rem;
    line-height: 0.98;
    margin-bottom: 12px;
  }

  /* BADGES */
  .demiplay-driver-submeta {
    justify-content: center;
    margin-bottom: 16px;
  }

  /* TEAM */
  .demiplay-driver-team-row {
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
  }

  .demiplay-driver-team-logo {
    max-width: 180px;
    max-height: 54px;
  }

  .demiplay-driver-team-name {
    font-size: 1.05rem;
  }

  /* STATS */
  .demiplay-driver-stat-grid {
    justify-content: center;
    gap: 12px;
  }

  .demiplay-driver-stat-card {
    min-width: 136px;
    padding: 16px 16px;
    border-radius: 20px;
  }

  .demiplay-driver-stat-card strong {
    font-size: 1.7rem;
  }
.demiplay-driver-extra-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.demiplay-driver-extra-card {
  padding: 18px 14px;
  width: 100%;
  max-width: none;
  min-width: 0;
}

.demiplay-driver-extra-card:first-child {
  grid-column: 1 / -1;
}

.demiplay-driver-extra-grid > .demiplay-driver-extra-card:not(:first-child) {
  width: 100%;
}

.demiplay-driver-extra-grid {
  align-items: stretch;
}

.demiplay-driver-extra-grid > .demiplay-driver-extra-card {
  height: 100%;
}

.demiplay-driver-nationality-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
	flex-wrap: nowrap;
  white-space: nowrap;
}

.demiplay-driver-overview {
  margin-top: 22px;
  padding: 0 14px;
}

.demiplay-driver-overview-card {
  border-radius: 20px;
  padding: 22px 18px;
}

.demiplay-driver-overview-card h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.demiplay-driver-overview-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 18px;
}

.demiplay-driver-season-stats {
  margin-top: 22px;
  padding: 0 14px;
}

.demiplay-driver-season-card {
  border-radius: 20px;
  padding: 22px 18px;
}

.demiplay-driver-season-card h2 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.demiplay-driver-season-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.demiplay-driver-season-grid > div:last-child {
  grid-column: 1 / -1;
}

.demiplay-driver-season-grid span {
  font-size: 0.68rem;
  line-height: 1.25;
  word-break: normal;
  overflow-wrap: break-word;
}

.demiplay-driver-season-grid div {
  padding: 10px;
  border-radius: 16px;
	min-width: 0;
}

.demiplay-driver-season-grid strong {
  font-size: 1.05rem;
}

.demiplay-driver-page,
.demiplay-driver-hero-v2,
.demiplay-driver-extra,
.demiplay-driver-overview,
.demiplay-driver-season-stats,
.demiplay-driver-extra-grid,
.demiplay-driver-season-grid,
.demiplay-driver-overview-card,
.demiplay-driver-season-card {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.demiplay-driver-extra-grid,
.demiplay-driver-season-grid {
  overflow-x: hidden;
}

.demiplay-driver-extra-card,
.demiplay-driver-season-grid div {
  min-width: 0;
}

.demiplay-driver-extra-card strong,
.demiplay-driver-season-grid strong,
.demiplay-driver-overview-card p {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.demiplay-driver-results {
  margin-top: 22px;
  padding: 0 14px;
}

.demiplay-driver-results-card {
  border-radius: 20px;
  padding: 22px 18px;
}

.demiplay-driver-results-card h2 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.demiplay-driver-result-item {
  padding: 14px 14px;
  border-radius: 16px;
}

.demiplay-driver-result-race {
  font-size: 0.95rem;
}

.demiplay-driver-result-pos {
  min-width: 56px;
  padding: 8px 12px;
  font-size: 0.9rem;
}


.demiplay-driver-result-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.demiplay-driver-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.demiplay-driver-result-race {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}

.demiplay-driver-result-pos {
  flex-shrink: 0;
}

.demiplay-driver-result-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
}

.demiplay-driver-articles,
.demiplay-team-articles,
.demiplay-race-articles {
  margin-top: 22px;
  padding: 0 14px;
}

.demiplay-driver-articles h2,
.demiplay-team-articles h2,
.demiplay-race-articles h2 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.demiplay-driver-articles-grid,
.demiplay-team-articles-grid,
.demiplay-race-articles-grid {
  grid-template-columns: 1fr;
  gap: 14px;
}

.demiplay-driver-article-link,
.demiplay-team-article-link,
.demiplay-race-article-link {
  border-radius: 18px;
}

.demiplay-driver-article-body,
.demiplay-team-article-body,
.demiplay-race-article-body {
  padding: 14px 14px 16px;
}

.demiplay-driver-article-title,
.demiplay-team-article-title,
.demiplay-race-article-title {
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: 10px;
}

.demiplay-driver-article-meta,
.demiplay-team-article-meta,
.demiplay-race-article-meta {
  font-size: 0.82rem;
  gap: 6px 10px;
}

}



/* =========================================================
   13. DRIVER EXTRA INFO
========================================================= */

.demiplay-driver-extra {
  max-width: 1180px;
  margin: 26px auto 0;
  padding: 0 16px;
}

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

.demiplay-driver-extra-card {
  background: #ffffff;
  border: 1px solid #e8edf6;
  border-radius: 20px;
  padding: 20px 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  transition: all 0.2s ease;
}

.demiplay-driver-extra-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.demiplay-driver-extra-card span {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.demiplay-driver-extra-card strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: #3b43c6;
  letter-spacing: -0.02em;
}

/* =========================================================
   14. DRIVER OVERVIEW PAGE DESKTOP
========================================================= */

.demiplay-drivers-index {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 16px 36px;
}

.demiplay-drivers-index-top {
  margin-bottom: 20px;
}

.demiplay-drivers-index-title {
  margin: 0 0 8px;
  font-size: 1.8rem;
  line-height: 1.1;
  font-weight: 800;
  color: #111827;
}

.demiplay-drivers-index-text {
  margin: 0;
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.7;
  color: #4b5563;
}

.demiplay-drivers-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.demiplay-drivers-index-card {
  display: block;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid #e8edf6;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.demiplay-drivers-index-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
}

.demiplay-drivers-index-card-media {
  aspect-ratio: 4 / 3;
  background: radial-gradient(circle at top, #ffffff 0%, #eef2f8 100%);
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 18px 18px 0;
}

.demiplay-drivers-index-card-image,
.demiplay-drivers-index-card-image-placeholder {
  display: block;
  width: 100%;
  max-width: 150px;
  height: auto;
}

.demiplay-drivers-index-card-image {
  object-fit: contain;
}

.demiplay-drivers-index-card-image-placeholder {
  height: 150px;
  border-radius: 20px;
  background: linear-gradient(135deg, #eef2f7 0%, #dde5f0 100%);
}

.demiplay-drivers-index-card-body {
  padding: 18px 18px 20px;
}

.demiplay-drivers-index-card-name {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.2;
  font-weight: 800;
  color: #111827;
}

.demiplay-drivers-index-card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
}

.demiplay-drivers-index-card-team-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.demiplay-drivers-index-card-team-logo {
  width: auto;
  max-width: 90px;
  max-height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

.demiplay-drivers-index-card-team {
  font-size: 0.95rem;
  line-height: 1.3;
  color: #4b5563;
  font-weight: 600;
}

/* =========================================================
   15. DRIVER OVERVIEW PAGE - MOBILE
========================================================= */

@media (max-width: 767px) {
  .demiplay-drivers-index {
    padding: 20px 14px 28px;
  }

  .demiplay-drivers-index-top {
    margin-bottom: 16px;
  }

  .demiplay-drivers-index-title {
    font-size: 1.45rem;
  }

  .demiplay-drivers-index-text {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .demiplay-drivers-index-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .demiplay-drivers-index-card {
    border-radius: 20px;
  }

  .demiplay-drivers-index-card-media {
    padding: 14px 14px 0;
  }

  .demiplay-drivers-index-card-image,
  .demiplay-drivers-index-card-image-placeholder {
    max-width: 125px;
  }

  .demiplay-drivers-index-card-image-placeholder {
    height: 125px;
  }

  .demiplay-drivers-index-card-body {
    padding: 14px 14px 16px;
  }

  .demiplay-drivers-index-card-name {
    font-size: 1.05rem;
    margin-bottom: 8px;
  }

  .demiplay-drivers-index-card-number {
    min-height: 30px;
    padding: 0 12px;
    margin-bottom: 12px;
    font-size: 0.82rem;
  }

  .demiplay-drivers-index-card-team-logo {
    max-width: 78px;
    max-height: 24px;
  }

  .demiplay-drivers-index-card-team {
    font-size: 0.9rem;
  }
}

/* =========================================================
   16. TEAM OVERVIEW PAGE DESKTOP
========================================================= */

.demiplay-teams-index {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 16px 36px;
}

.demiplay-teams-index-top {
  margin-bottom: 20px;
}

.demiplay-teams-index-title {
  margin: 0 0 8px;
  font-size: 1.8rem;
  line-height: 1.1;
  font-weight: 800;
  color: #111827;
}

.demiplay-teams-index-text {
  margin: 0;
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.7;
  color: #4b5563;
}

.demiplay-teams-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.demiplay-teams-index-card {
  display: block;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid #e8edf6;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.demiplay-teams-index-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
}

.demiplay-teams-index-card-media {
  min-height: 118px;
  background: radial-gradient(circle at top, #ffffff 0%, #eef2f8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 20px;
}

.demiplay-teams-index-card-logo {
  display: block;
  width: auto;
  max-width: 250px;
  max-height: 100px;
  object-fit: contain;
}

.demiplay-teams-index-card-logo-placeholder {
  width: 160px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef2f7 0%, #dde5f0 100%);
}

.demiplay-teams-index-card-body {
  padding: 14px 16px 16px;
	text-align: center;
}

.demiplay-teams-index-card-name {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.25;
  font-weight: 800;
  color: #111827;
}

.demiplay-teams-index-card-linktext {
  font-size: 0.95rem;
  line-height: 1.3;
  color: #3b43c6;
  font-weight: 700;
}

/* =========================================================
   17. TEAM OVERVIEW PAGE - MOBILE
========================================================= */

@media (max-width: 767px) {
  .demiplay-teams-index {
    padding: 20px 14px 28px;
  }

  .demiplay-teams-index-top {
    margin-bottom: 16px;
  }

  .demiplay-teams-index-title {
    font-size: 1.45rem;
  }

  .demiplay-teams-index-text {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .demiplay-teams-index-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .demiplay-teams-index-card {
    border-radius: 20px;
  }

.demiplay-teams-index-card-media {
  min-height: 96px;
  padding: 14px 16px;
}

.demiplay-teams-index-card-logo {
  max-width: 230px;
  max-height: 100px;
}

.demiplay-teams-index-card-body {
  padding: 12px 14px 14px;
	text-align: center;
}

.demiplay-teams-index-card-name {
  font-size: 1rem;
  margin-bottom: 6px;
}

  .demiplay-teams-index-card-linktext {
    font-size: 0.9rem;
  }
}

/* =========================================================
   18. TEAM PROFILE PAGE DESKTOP
========================================================= */

.demiplay-team-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 16px 44px;
}

.demiplay-team-hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(59, 67, 198, 0.06) 0%, rgba(59, 67, 198, 0) 30%),
    linear-gradient(180deg, #fbfcff 0%, #f4f7fc 100%);
  border: 1px solid #e8edf6;
  border-radius: 30px;
  padding: 34px;
  box-shadow: 0 18px 40px rgba(12, 18, 38, 0.07);
}

.demiplay-team-hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.demiplay-team-hero-logo {
  display: block;
  width: auto;
  max-width: 220px;
  max-height: 90px;
  object-fit: contain;
}

.demiplay-team-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3b43c6;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demiplay-team-title {
  margin: 0;
  font-size: 3rem;
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 900;
  color: #111827;
}

.demiplay-team-extra {
  max-width: 1180px;
  margin: 26px auto 0;
  padding: 0 16px;
}

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

.demiplay-team-extra-card {
  background: #ffffff;
  border: 1px solid #e8edf6;
  border-radius: 20px;
  padding: 20px 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  text-align: center;
}

.demiplay-team-extra-card span {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.demiplay-team-extra-card strong {
  font-size: 1.7rem;
  font-weight: 800;
  color: #3b43c6;
  letter-spacing: -0.02em;
}

.demiplay-team-overview {
  max-width: 1180px;
  margin: 24px auto 0;
  padding: 0 16px;
}

.demiplay-team-overview-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid #e8edf6;
  border-radius: 24px;
  padding: 28px 30px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.demiplay-team-overview-card h2 {
  margin: 0 0 14px;
  font-size: 1.6rem;
  line-height: 1.1;
  font-weight: 800;
  color: #111827;
}

.demiplay-team-overview-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #4b5563;
  max-width: 860px;
}

.demiplay-team-drivers {
  max-width: 1180px;
  margin: 24px auto 0;
  padding: 0 16px;
}

.demiplay-team-drivers-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid #e8edf6;
  border-radius: 24px;
  padding: 26px 28px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.demiplay-team-drivers-card h2 {
  margin: 0 0 18px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
}

.demiplay-team-drivers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.demiplay-team-driver-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e8edf6;
  border-radius: 22px;
  padding: 16px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.demiplay-team-driver-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
}

.demiplay-team-driver-media {
  display: flex;
  align-items: end;
  justify-content: center;
  min-height: 110px;
  background: radial-gradient(circle at top, #ffffff 0%, #eef2f8 100%);
  border-radius: 18px;
  padding: 10px 10px 0;
}

.demiplay-team-driver-image,
.demiplay-team-driver-image-placeholder {
  display: block;
  width: 100%;
  max-width: 82px;
  height: auto;
}

.demiplay-team-driver-image {
  object-fit: contain;
}

.demiplay-team-driver-image-placeholder {
  height: 90px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef2f7 0%, #dde5f0 100%);
}

.demiplay-team-driver-body {
  min-width: 0;
}

.demiplay-team-driver-name {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.2;
  font-weight: 800;
  color: #111827;
}

.demiplay-team-driver-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.demiplay-team-driver-meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3b43c6;
  font-size: 0.85rem;
  font-weight: 700;
}

/* =========================================================
   19. TEAM PROFILE PAGE - MOBILE
========================================================= */

@media (max-width: 767px) {
  .demiplay-team-page {
    padding: 20px 14px 28px;
  }

  .demiplay-team-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 18px 24px;
    border-radius: 24px;
    text-align: center;
  }

  .demiplay-team-hero-logo {
    max-width: 180px;
    max-height: 72px;
  }

  .demiplay-team-title {
    font-size: 2.2rem;
    line-height: 1.02;
  }

  .demiplay-team-extra {
    margin-top: 22px;
    padding: 0 14px;
  }

  .demiplay-team-extra-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .demiplay-team-extra-card {
    padding: 18px 14px;
    border-radius: 18px;
  }

  .demiplay-team-extra-card strong {
    font-size: 1.45rem;
  }

  .demiplay-team-overview {
    margin-top: 22px;
    padding: 0 14px;
  }

  .demiplay-team-overview-card {
    border-radius: 20px;
    padding: 22px 18px;
  }

  .demiplay-team-overview-card h2 {
    font-size: 1.35rem;
    margin-bottom: 12px;
  }

  .demiplay-team-overview-card p {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .demiplay-team-drivers {
    margin-top: 22px;
    padding: 0 14px;
  }

  .demiplay-team-drivers-card {
    border-radius: 20px;
    padding: 22px 18px;
  }

  .demiplay-team-drivers-card h2 {
    font-size: 1.25rem;
    margin-bottom: 14px;
  }

  .demiplay-team-drivers-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .demiplay-team-driver-card {
    grid-template-columns: 88px 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
  }

  .demiplay-team-driver-media {
    min-height: 88px;
    border-radius: 16px;
    padding: 8px 8px 0;
  }

  .demiplay-team-driver-image,
  .demiplay-team-driver-image-placeholder {
    max-width: 66px;
  }

  .demiplay-team-driver-image-placeholder {
    height: 74px;
  }

  .demiplay-team-driver-name {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .demiplay-team-driver-meta span {
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.8rem;
  }
}

/* =========================================================
   20. RACE OVERVIEW PAGE DESKTOP
========================================================= */

.demiplay-races-index {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 16px 36px;
}

.demiplay-races-index-top {
  margin-bottom: 20px;
}

.demiplay-races-index-title {
  margin: 0 0 8px;
  font-size: 1.8rem;
  line-height: 1.1;
  font-weight: 800;
  color: #111827;
}

.demiplay-races-index-text {
  margin: 0;
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.7;
  color: #4b5563;
}

.demiplay-races-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.demiplay-races-index-card {
  display: block;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid #e8edf6;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.demiplay-races-index-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
}

.demiplay-races-index-card-media {
  aspect-ratio: 267 / 150;
  background: radial-gradient(circle at top, #ffffff 0%, #eef2f8 100%);
  overflow: hidden;
}

.demiplay-races-index-card-image,
.demiplay-races-index-card-image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.demiplay-races-index-card-image {
  object-fit: cover;
}

.demiplay-races-index-card-image-placeholder {
  background: linear-gradient(135deg, #eef2f7 0%, #dde5f0 100%);
}

.demiplay-races-index-card-body {
  padding: 18px 18px 20px;
}

.demiplay-races-index-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.demiplay-races-index-card-name {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 800;
  color: #111827;
}

.demiplay-races-index-card-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3b43c6;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.demiplay-races-index-card-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demiplay-races-index-card-meta span {
  font-size: 0.95rem;
  line-height: 1.45;
  color: #4b5563;
}

/* =========================================================
   21. RACE OVERVIEW PAGE - MOBILE
========================================================= */

@media (max-width: 767px) {
  .demiplay-races-index {
    padding: 20px 14px 28px;
  }

  .demiplay-races-index-top {
    margin-bottom: 16px;
  }

  .demiplay-races-index-title {
    font-size: 1.45rem;
  }

  .demiplay-races-index-text {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .demiplay-races-index-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .demiplay-races-index-card {
    border-radius: 20px;
  }

  .demiplay-races-index-card-body {
    padding: 14px 14px 16px;
  }

  .demiplay-races-index-card-top {
    gap: 10px;
    margin-bottom: 10px;
  }

  .demiplay-races-index-card-name {
    font-size: 1.05rem;
  }

  .demiplay-races-index-card-status {
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.75rem;
  }

  .demiplay-races-index-card-meta span {
    font-size: 0.88rem;
  }
}

/* =========================================================
   22. RACE PROFILE PAGE DESKTOP
========================================================= */

.demiplay-race-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 16px 44px;
}

.demiplay-race-hero {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 36px;
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(59, 67, 198, 0.06) 0%, rgba(59, 67, 198, 0) 30%),
    linear-gradient(180deg, #fbfcff 0%, #f4f7fc 100%);
  border: 1px solid #e8edf6;
  border-radius: 30px;
  padding: 34px;
  box-shadow: 0 18px 40px rgba(12, 18, 38, 0.07);
}

.demiplay-race-hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.demiplay-race-hero-image {
  display: block;
  width: 100%;
  max-width: 320px;
  border-radius: 24px;
  background: radial-gradient(circle at top, #ffffff 0%, #eef2f8 100%);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
}

.demiplay-race-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3b43c6;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demiplay-race-title {
  margin: 0 0 14px;
  font-size: 3rem;
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 900;
  color: #111827;
}

.demiplay-race-submeta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.demiplay-race-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
}

.demiplay-race-location {
  font-size: 1rem;
  line-height: 1.6;
  color: #4b5563;
  font-weight: 600;
}

.demiplay-race-circuit-name {
  margin: 0 0 14px;
  font-size: 1.2rem;
  line-height: 1.35;
  font-weight: 700;
  color: #3b43c6;
}

.demiplay-race-top-grid {
  max-width: 1180px;
  margin: 24px auto 0;
  padding: 0 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.demiplay-race-top-grid .demiplay-race-sessions,
.demiplay-race-top-grid .demiplay-race-winners {
  max-width: none;
  margin: 0;
  padding: 0;
}

.demiplay-race-winners-card {
  height: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid #e8edf6;
  border-radius: 24px;
  padding: 22px 28px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.demiplay-race-winners-card h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #111827;
}

.demiplay-race-winners-list {
  display: grid;
  gap: 10px;
}

.demiplay-race-winner-item {
  background: #f8fafc;
  border: 1px solid #e8edf6;
  border-radius: 16px;
  padding: 14px 16px;
}

.demiplay-race-winner-item span {
  display: block;
  margin: 0 0 4px;
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 700;
  color: #6b7280;
}

.demiplay-race-winner-item strong {
  display: block;
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 800;
  color: #111827;
}

.demiplay-race-winner-item small {
  display: block;
  font-size: 0.88rem;
  line-height: 1.35;
  color: #4b5563;
}

@media (min-width: 900px) {
  .demiplay-race-top-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    align-items: start;
  }
}


.demiplay-race-sessions {
  max-width: 1180px;
  margin: 24px auto 0;
  padding: 0 16px;
}

.demiplay-race-sessions-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid #e8edf6;
  border-radius: 24px;
  padding: 22px 28px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.demiplay-race-sessions-card h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #111827;
}

.demiplay-race-sessions-compact {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.demiplay-race-session-row {
  display: grid;
  grid-template-columns: 220px 170px 1fr;
  align-items: center;
  column-gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #e8edf6;
}

.demiplay-race-session-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.demiplay-race-session-row-type {
  font-size: 0.98rem;
  line-height: 1.3;
  font-weight: 700;
  color: #111827;
}

.demiplay-race-session-row-time {
  font-size: 0.92rem;
  line-height: 1.4;
  color: #4b5563;
}

.demiplay-race-session-row-status {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #4b5563;
}


.demiplay-race-overview {
  max-width: 1180px;
  margin: 24px auto 0;
  padding: 0 16px;
}

.demiplay-race-overview-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid #e8edf6;
  border-radius: 24px;
  padding: 28px 30px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.demiplay-race-overview-card h2 {
  margin: 0 0 14px;
  font-size: 1.6rem;
  line-height: 1.1;
  font-weight: 800;
  color: #111827;
}

.demiplay-race-overview-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #4b5563;
  max-width: 860px;
}

.demiplay-race-results {
  max-width: 1180px;
  margin: 24px auto 0;
  padding: 0 16px;
}

.demiplay-race-results-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid #e8edf6;
  border-radius: 24px;
  padding: 26px 28px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.demiplay-race-results-card h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
}

.demiplay-race-results-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.demiplay-race-results-filter {
  flex-shrink: 0;
  margin: 0;
}

.demiplay-race-results-filter select {
  min-width: 220px;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #dbe3f0;
  border-radius: 14px;
  background: #ffffff;
  color: #111827;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
  cursor: pointer;
}

.demiplay-race-results-list {
  display: grid;
  gap: 10px;
}

.demiplay-race-result-item {
  background: #f8fafc;
  border: 1px solid #e8edf6;
  border-radius: 16px;
  padding: 14px 16px;
}

.demiplay-race-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.demiplay-race-result-main {
  min-width: 0;
}

.demiplay-race-result-driver {
  display: block;
  margin: 0 0 2px;
  font-size: 0.98rem;
  line-height: 1.2;
  font-weight: 800;
  color: #111827;
}

.demiplay-race-result-team {
  display: block;
  font-size: 0.88rem;
  line-height: 1.35;
  color: #6b7280;
}

.demiplay-race-result-pos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3b43c6;
  font-size: 0.9rem;
  font-weight: 800;
  flex-shrink: 0;
}

.demiplay-race-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.demiplay-race-result-meta span {
  font-size: 0.84rem;
  line-height: 1.4;
  color: #4b5563;
}


/* =========================================================
   23. RACE PROFILE PAGE - MOBILE
========================================================= */

@media (max-width: 767px) {
  .demiplay-race-page {
    padding: 20px 14px 28px;
  }

  .demiplay-race-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 18px 24px;
    border-radius: 24px;
    text-align: center;
  }

  .demiplay-race-hero-image {
    max-width: 100%;
    border-radius: 20px;
  }

  .demiplay-race-title {
    font-size: 2.2rem;
    line-height: 1.02;
    margin-bottom: 12px;
  }

  .demiplay-race-submeta {
    justify-content: center;
    margin-bottom: 14px;
  }

  .demiplay-race-location {
    font-size: 0.95rem;
  }

.demiplay-race-circuit-name {
  margin-bottom: 12px;
  font-size: 1rem;
  line-height: 1.4;
}

.demiplay-race-top-grid {
  margin-top: 22px;
  padding: 0 14px;
  gap: 22px;
}

.demiplay-race-winners-card {
  border-radius: 20px;
  padding: 18px 18px;
}

.demiplay-race-winners-card h2 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.demiplay-race-winners-list {
  gap: 8px;
}

.demiplay-race-winner-item {
  border-radius: 14px;
  padding: 12px 14px;
}

.demiplay-race-winner-item span {
  font-size: 0.78rem;
}

.demiplay-race-winner-item strong {
  font-size: 0.95rem;
}

.demiplay-race-winner-item small {
  font-size: 0.82rem;
}
	.demiplay-race-sessions {
  margin-top: 22px;
  padding: 0 14px;
}

.demiplay-race-sessions-card {
  border-radius: 20px;
  padding: 18px 18px;
}

.demiplay-race-sessions-card h2 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.demiplay-race-sessions-compact {
  display: flex;
  flex-direction: column;
}

.demiplay-race-session-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid #e8edf6;
}

.demiplay-race-session-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.demiplay-race-session-row-type {
  font-size: 0.94rem;
  line-height: 1.3;
  font-weight: 700;
  color: #111827;
}

.demiplay-race-session-row-time,
.demiplay-race-session-row-status {
  font-size: 0.82rem;
  line-height: 1.4;
  color: #4b5563;
}

  .demiplay-race-overview {
    margin-top: 22px;
    padding: 0 14px;
  }

  .demiplay-race-overview-card {
    border-radius: 20px;
    padding: 22px 18px;
  }

  .demiplay-race-overview-card h2 {
    font-size: 1.35rem;
    margin-bottom: 12px;
  }

  .demiplay-race-overview-card p {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .demiplay-race-results {
    margin-top: 22px;
    padding: 0 14px;
  }

  .demiplay-race-results-card {
    border-radius: 20px;
    padding: 22px 18px;
  }

  .demiplay-race-results-card h2 {
    font-size: 1.25rem;
    margin: 0;
  }

  .demiplay-race-results-top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 14px;
  }

  .demiplay-race-results-filter {
    width: 100%;
    margin: 0;
  }

  .demiplay-race-results-filter select {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 0.9rem;
  }
	
	  .demiplay-race-results-list {
    gap: 8px;
  }

  .demiplay-race-result-item {
    border-radius: 14px;
    padding: 12px 14px;
  }

  .demiplay-race-result-head {
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
  }

  .demiplay-race-result-driver {
    font-size: 0.94rem;
    margin: 0 0 2px;
  }

  .demiplay-race-result-team {
    font-size: 0.84rem;
  }

  .demiplay-race-result-pos {
    min-width: 50px;
    padding: 7px 10px;
    font-size: 0.84rem;
  }

  .demiplay-race-result-meta {
    gap: 4px 10px;
  }

  .demiplay-race-result-meta span {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .demiplay-race-result-item {
    padding: 14px 14px;
    border-radius: 16px;
  }

  .demiplay-race-result-head {
    gap: 10px;
    margin-bottom: 8px;
  }

  .demiplay-race-result-driver {
    font-size: 0.95rem;
  }

  .demiplay-race-result-team {
    font-size: 0.84rem;
  }

  .demiplay-race-result-pos {
    min-width: 56px;
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .demiplay-race-result-meta {
    flex-direction: column;
    gap: 6px;
  }

  .demiplay-race-result-meta span {
    font-size: 0.82rem;
  }
}

/* =========================================================
   24. RACE FACTS GRID - DESKTOP
========================================================= */

.demiplay-race-facts {
  max-width: 1180px;
  margin: 24px auto 0;
  padding: 0 16px;
}

.demiplay-race-facts-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid #e8edf6;
  border-radius: 24px;
  padding: 26px 28px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.demiplay-race-facts-card h2 {
  margin: 0 0 18px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
}

.demiplay-race-facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.demiplay-race-fact-item {
  background: #f8fafc;
  border: 1px solid #e8edf6;
  border-radius: 16px;
  padding: 14px 16px;
}

.demiplay-race-fact-item span {
  display: block;
  margin: 0 0 4px;
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 700;
  color: #6b7280;
}

.demiplay-race-fact-item strong {
  display: block;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 800;
  color: #111827;
}

/* =========================================================
   25. RACE FACTS GRID - MOBILE
========================================================= */

@media (max-width: 767px) {
  .demiplay-race-facts {
    margin-top: 22px;
    padding: 0 14px;
  }

  .demiplay-race-facts-card {
    border-radius: 20px;
    padding: 22px 18px;
  }

  .demiplay-race-facts-card h2 {
    font-size: 1.25rem;
    margin-bottom: 14px;
  }

  .demiplay-race-facts-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .demiplay-race-fact-item {
    border-radius: 14px;
    padding: 12px 14px;
  }

  .demiplay-race-fact-item span {
    font-size: 0.78rem;
    margin-bottom: 4px;
  }

  .demiplay-race-fact-item strong {
    font-size: 0.95rem;
    line-height: 1.35;
  }
}

/* =========================================================
   DEMIPLAY NEWS SHORTCODE  LAYOUTS
   ========================================================= */
	 
/* =========================================================
   DEMIPLAY NEWS SHORTCODE  HERO RIGHT 2
   ========================================================= */

/* ===== DESKTOP ===== */

.demiplay-news-block {
  width: 100%;
}

.demiplay-news-layout-hero-right-2 {
  max-width: 100%;
}

.demiplay-news-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(280px, 0.9fr);
  gap: 14px;
  align-items: stretch;
}

.demiplay-news-main,
.demiplay-news-side {
  min-width: 0;
}

.demiplay-news-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
}

.demiplay-news-main-card,
.demiplay-news-side-card {
  height: 100%;
}

.demiplay-news-main-link,
.demiplay-news-side-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  text-decoration: none;
  background: #111827;
}

.demiplay-news-main-media,
.demiplay-news-side-media {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #dbe1ea;
}

.demiplay-news-main-media {
  min-height: 260px;
}

.demiplay-news-side-media {
  min-height: 123px;
}

.demiplay-news-main-image,
.demiplay-news-side-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demiplay-news-main-image-placeholder,
.demiplay-news-side-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #cfd8e3 0%, #e5ebf2 100%);
}

.demiplay-news-main-link::after,
.demiplay-news-side-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(17, 24, 39, 0.08) 0%,
    rgba(17, 24, 39, 0.18) 42%,
    rgba(17, 24, 39, 0.72) 100%
  );
  pointer-events: none;
}

.demiplay-news-main-overlay,
.demiplay-news-side-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  color: #ffffff;
}

.demiplay-news-main-overlay {
  padding: 22px 22px 18px;
}

.demiplay-news-side-overlay {
  padding: 14px 14px 12px;
}

.demiplay-news-main-title,
.demiplay-news-side-title {
  margin: 0;
  color: #ffffff;
  text-decoration: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.demiplay-news-main-title {
  font-size: 2rem;
  line-height: 1.12;
  font-weight: 800;
}

.demiplay-news-side-title {
  font-size: 1.08rem;
  line-height: 1.22;
  font-weight: 800;
}

.demiplay-news-main-meta,
.demiplay-news-side-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  font-size: 0.8rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.demiplay-news-main-link:hover .demiplay-news-main-title,
.demiplay-news-side-link:hover .demiplay-news-side-title {
  text-decoration: underline;
}


/* ===== MOBILE ===== */

@media (max-width: 767px) {
  .demiplay-news-hero-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .demiplay-news-side {
    grid-template-rows: none;
    gap: 12px;
  }

  .demiplay-news-main-media {
    min-height: 220px;
  }

  .demiplay-news-side-media {
    min-height: 180px;
  }

  .demiplay-news-main-link,
  .demiplay-news-side-link {
    border-radius: 16px;
  }

  .demiplay-news-main-overlay {
    padding: 16px 16px 14px;
  }

  .demiplay-news-side-overlay {
    padding: 14px 14px 12px;
  }

  .demiplay-news-main-title {
    font-size: 1.45rem;
    line-height: 1.15;
  }

  .demiplay-news-side-title {
    font-size: 1rem;
    line-height: 1.25;
  }

  .demiplay-news-main-meta,
  .demiplay-news-side-meta {
    margin-top: 8px;
    font-size: 0.75rem;
    gap: 6px;
  }
}

/* =========================================================
   DEMIPLAY NEWS SHORTCODE  LIST
   ========================================================= */

/* ===== DESKTOP ===== */

.demiplay-news-layout-list {
  width: 100%;
}

.demiplay-news-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.demiplay-news-list-item {
  min-width: 0;
}

.demiplay-news-list-link {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  text-decoration: none;
}

.demiplay-news-list-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #dbe1ea;
}

.demiplay-news-list-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demiplay-news-list-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #cfd8e3 0%, #e5ebf2 100%);
}

.demiplay-news-list-body {
  min-width: 0;
}

.demiplay-news-list-title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.35;
  font-weight: 800;
  color: #111827;
}

.demiplay-news-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.92rem;
  line-height: 1.3;
  color: #6b7280;
}

.demiplay-news-list-link:hover .demiplay-news-list-title {
  text-decoration: underline;
}


/* ===== MOBILE ===== */

@media (max-width: 767px) {
  .demiplay-news-list {
    gap: 14px;
  }

  .demiplay-news-list-link {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }

  .demiplay-news-list-media {
    border-radius: 16px;
  }

  .demiplay-news-list-title {
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .demiplay-news-list-meta {
    display: none;
		margin-top: 8px;
    font-size: 0.8rem;
    gap: 6px;
  }
}

/* =========================================================
   DEMIPLAY NEWS SHORTCODE  GRID
   ========================================================= */

/* ===== DESKTOP ===== */

.demiplay-news-layout-grid {
  width: 100%;
}

.demiplay-news-grid {
  display: grid;
  gap: 18px;
}

.demiplay-news-grid-cols-2 .demiplay-news-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.demiplay-news-grid-cols-3 .demiplay-news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.demiplay-news-grid-item {
  min-width: 0;
}

.demiplay-news-grid-link {
  display: block;
  width: 100%;
  text-decoration: none;
}

.demiplay-news-grid-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #dbe1ea;
}

.demiplay-news-grid-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demiplay-news-grid-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #cfd8e3 0%, #e5ebf2 100%);
}

.demiplay-news-grid-body {
  padding-top: 12px;
}

.demiplay-news-grid-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.85rem;
  line-height: 1.3;
  color: #6b7280;
}

.demiplay-news-grid-title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.28;
  font-weight: 800;
  color: #111827;
}

.demiplay-news-grid-link:hover .demiplay-news-grid-title {
  text-decoration: underline;
}


/* ===== MOBILE ===== */

@media (max-width: 767px) {
  .demiplay-news-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .demiplay-news-grid-media {
    border-radius: 16px;
  }

  .demiplay-news-grid-body {
    padding-top: 10px;
  }

  .demiplay-news-grid-meta {
    margin-bottom: 7px;
    font-size: 0.8rem;
    gap: 6px;
  }

  .demiplay-news-grid-title {
    font-size: 1rem;
    line-height: 1.3;
  }
}

/* =========================================================
   DEMIPLAY RACE BLOCK — NEXT RACE SCHEDULE
   ========================================================= */

/* ===== DESKTOP ===== */

.demiplay-race-block {
  width: 100%;
}

.demiplay-race-block-layout-next-race-schedule .demiplay-race-block-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid #e8edf6;
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.demiplay-race-block-top {
  padding: 20px 20px 18px;
  border-bottom: 1px solid #e8edf6;
}

.demiplay-race-block-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.demiplay-race-block-header-main {
  min-width: 0;
  flex: 1;
}

.demiplay-race-block-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.demiplay-race-block-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.demiplay-race-block-countdown {
  font-size: 0.88rem;
  font-weight: 600;
  color: #6b7280;
  line-height: 1.2;
}

.demiplay-race-block-title {
  margin: 0 0 10px;
  font-size: 2rem;
  line-height: 1.08;
  font-weight: 800;
  color: #111827;
}

.demiplay-race-block-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.4;
}

.demiplay-race-block-meta span {
  display: block;
}

.demiplay-race-block-header-action {
  flex: 0 0 auto;
}

.demiplay-race-block-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  background: #111827;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.demiplay-race-block-button:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.demiplay-race-block-sessions {
  display: flex;
  flex-direction: column;
}

.demiplay-race-block-session-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid #edf2f7;
}

.demiplay-race-block-session-row:first-child {
  border-top: 0;
}

.demiplay-race-block-session-label {
  min-width: 0;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 800;
  color: #111827;
}

.demiplay-race-block-session-time {
  font-size: 0.95rem;
  line-height: 1.3;
  color: #4b5563;
  text-align: right;
  white-space: nowrap;
}

.demiplay-race-block-session-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  min-width: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  color: #6b7280;
  background: #f3f4f6;
}

/* ===== MOBILE ===== */

@media (max-width: 767px) {
  .demiplay-race-block-layout-next-race-schedule .demiplay-race-block-card {
    border-radius: 18px;
  }

  .demiplay-race-block-top {
    padding: 16px 16px 14px;
  }

  .demiplay-race-block-header {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .demiplay-race-block-title {
    font-size: 1.55rem;
    line-height: 1.12;
    margin-bottom: 8px;
  }

  .demiplay-race-block-meta {
    font-size: 0.9rem;
    gap: 5px;
  }

  .demiplay-race-block-header-action {
    width: 100%;
  }

  .demiplay-race-block-button {
    width: 100%;
    min-height: 42px;
    border-radius: 12px;
  }

  .demiplay-race-block-session-row {
    grid-template-columns: minmax(0, 1fr) 126px 34px;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
  }

  .demiplay-race-block-session-label {
    font-size: 0.78rem;
    line-height: 1.15;
    white-space: nowrap;
  }

  .demiplay-race-block-session-time {
    font-size: 0.72rem;
    line-height: 1.1;
    text-align: right;
    white-space: nowrap;
  }

  .demiplay-race-block-session-status {
    min-height: 26px;
    min-width: 26px;
    padding: 0 6px;
    font-size: 0.72rem;
    justify-self: end;
  }
}

.demiplay-race-block-status-live {
  background: #dcfce7;
  color: #166534;
}

.demiplay-race-block-status-upcoming {
  background: #eef2ff;
  color: #1d4ed8;
}

.demiplay-race-block-status-cancelled {
  background: #fee2e2;
  color: #b91c1c;
}

.demiplay-race-block-status-pending {
  background: #fef3c7;
  color: #92400e;
}

.demiplay-race-block-status-finished {
  background: #e5e7eb;
  color: #374151;
}

.demiplay-race-block-session-status-live {
  background: #16a34a;
  color: #ffffff;
}

.demiplay-race-block-session-status-completed {
  background: #e5e7eb;
  color: #374151;
}

.demiplay-race-block-session-status-scheduled {
  background: #eef2ff;
  color: #1d4ed8;
}

.demiplay-race-block-session-status-cancelled {
  background: #fee2e2;
  color: #b91c1c;
}