﻿:root {
    --green: #61dc34;
    --green-dark: #42bd19;
    --black: #101210;
    --dark: #171a17;
    --grey: #666;
    --light-grey: #f3f5f3;
    --border: #e1e5e1;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--black);
    background: #fff;
}

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


/* HEADER */

.site-header {
    background: #101210;
    border-bottom: 4px solid var(--green);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1280px;
    margin: auto;
    min-height: 82px;
    padding: 0 24px;

    display: flex;
    align-items: center;
    gap: 38px;
}

.brand {
    min-width: 175px;
}

.brand-value {
    color: white;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -1px;
}

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

.brand-news {
    margin-top: 2px;
    color: var(--green);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2.4px;
}

.main-nav {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    color: #ddd;
    font-size: 14px;
    font-weight: bold;
    padding: 31px 0 27px;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--green);
}

.bet-button {
    background: var(--green);
    color: #111;
    font-size: 13px;
    font-weight: 900;
    padding: 13px 20px;
    border-radius: 4px;
}


/* MAIN */

main {
    max-width: 1280px;
    margin: auto;
    padding: 34px 24px 70px;
}


/* HERO */

.hero {
    display: grid;
    grid-template-columns: 2fr 0.85fr;
    gap: 25px;
}

.hero-main {
    position: relative;
    min-height: 460px;
    background:
        linear-gradient(
            90deg,
            rgba(8, 12, 8, .97) 0%,
            rgba(8, 12, 8, .85) 45%,
            rgba(8, 12, 8, .25) 100%
        ),
        linear-gradient(135deg, #253825, #111);

    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.hero-placeholder {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    padding-right: 7%;

    color: rgba(97,220,52,.08);
    font-size: clamp(60px, 9vw, 140px);
    font-weight: 900;
    letter-spacing: -6px;
}

.hero-content {
    position: relative;
    max-width: 680px;
    padding: 48px;
    color: white;
}

.category,
.eyebrow {
    color: var(--green);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.hero h1 {
    margin: 12px 0 15px;
    font-size: clamp(32px, 4vw, 58px);
    line-height: .98;
    letter-spacing: -2px;
}

.hero p {
    max-width: 580px;
    margin: 0;
    color: #d5d8d5;
    font-size: 17px;
    line-height: 1.55;
}

.hero-side {
    background: var(--light-grey);
    border-radius: 8px;
    padding: 26px;
}

.section-label {
    padding-bottom: 14px;
    border-bottom: 3px solid var(--green);
    font-weight: 900;
    font-size: 18px;
}

.hero-side article {
    padding: 23px 0;
    border-bottom: 1px solid #d7dbd7;
}

.hero-side article:last-child {
    border-bottom: 0;
}

.hero-side article span {
    color: var(--green-dark);
    font-size: 10px;
    font-weight: 900;
}

.hero-side h3 {
    margin: 7px 0 0;
    font-size: 19px;
    line-height: 1.25;
}


/* RESULTS / FIXTURES */

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 34px;
}

.panel {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.panel-heading,
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.panel-heading {
    padding: 22px 24px;
    border-bottom: 1px solid var(--border);
}

.panel-heading h2,
.section-heading h2 {
    margin: 4px 0 0;
    font-size: 26px;
}

.panel-heading > a,
.section-heading > a {
    color: #3e9f1c;
    font-size: 13px;
    font-weight: bold;
}

.match-row {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
}

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

.match-meta {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 9px;

    color: #777;
    font-size: 11px;
    font-weight: bold;
}

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

.team {
    font-size: 14px;
    font-weight: 700;
}

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

.score {
    min-width: 62px;
    padding: 7px 9px;

    text-align: center;

    background: #111;
    color: white;

    border-radius: 4px;

    font-size: 15px;
    font-weight: 900;
}

.fixture-time {
    min-width: 76px;
    text-align: center;
    color: #222;
    font-size: 12px;
    font-weight: 900;
}

.loading,
.load-error {
    padding: 35px 24px;
    color: #777;
    text-align: center;
}


/* NEWS */

.news-section {
    margin-top: 55px;
}

.section-heading {
    padding-bottom: 17px;
    border-bottom: 3px solid #111;
    margin-bottom: 24px;
}

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

.news-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.news-image {
    height: 190px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 31px;
    font-weight: 900;
    letter-spacing: -1px;
}

.football-bg {
    background: #172317;
    color: var(--green);
}

.fixtures-bg {
    background: var(--green);
    color: #111;
}

.racing-bg {
    background: #222;
    color: white;
}

.news-card-content {
    padding: 22px;
}

.news-card-content span {
    color: #3e9f1c;
    font-size: 10px;
    font-weight: 900;
}

.news-card-content h3 {
    margin: 8px 0 10px;
    font-size: 21px;
    line-height: 1.2;
}

.news-card-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}


/* CTA */

.betting-cta {
    margin-top: 55px;
    padding: 35px 40px;

    background: var(--green);
    border-radius: 8px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.betting-cta span {
    font-size: 11px;
    font-weight: 900;
}

.betting-cta h2 {
    margin: 3px 0;
    font-size: 32px;
}

.betting-cta p {
    margin: 0;
    font-size: 14px;
}

.betting-cta a {
    background: #111;
    color: white;

    padding: 15px 28px;

    border-radius: 4px;

    font-size: 13px;
    font-weight: 900;
}


/* FOOTER */

footer {
    background: #101210;
    color: #bbb;
}

.footer-inner {
    max-width: 1280px;
    margin: auto;
    padding: 35px 24px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer strong {
    color: white;
}

footer p {
    margin: 7px 0 0;
    font-size: 12px;
}

.responsible {
    font-size: 12px;
}


/* MOBILE */

@media (max-width: 900px) {

    .header-inner {
        flex-wrap: wrap;
        gap: 10px;
        padding-top: 15px;
        padding-bottom: 12px;
    }

    .brand {
        flex: 1;
    }

    .main-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        gap: 22px;
    }

    .main-nav a {
        white-space: nowrap;
        padding: 12px 0 5px;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-main {
        min-height: 400px;
    }

    .hero-content {
        padding: 30px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 550px) {

    main {
        padding: 20px 14px 45px;
    }

    .site-header {
        position: relative;
    }

    .bet-button {
        padding: 11px 14px;
    }

    .hero-main {
        min-height: 360px;
    }

    .hero-content {
        padding: 24px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 15px;
    }

    .match-row {
        padding: 15px;
    }

    .team {
        font-size: 12px;
    }

    .betting-cta {
        padding: 28px 24px;
        display: block;
    }

    .betting-cta a {
        display: inline-block;
        margin-top: 20px;
    }

    .footer-inner {
        display: block;
    }

    .responsible {
        margin-top: 18px;
    }

}

/* =========================================================
   V1.1.1 - DYNAMIC NEWS
   ========================================================= */

.read-story {
    display: inline-block;
    margin-top: 22px;
    color: var(--green);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .7px;
}

.story-date {
    margin-top: 10px;
    color: #888;
    font-size: 11px;
}

.news-card h3 a:hover,
.hero-side h3 a:hover {
    color: #3e9f1c;
}


/* ARTICLE PAGE */

.article-main {
    max-width: 1050px;
}

.article-page {
    margin: 15px auto 60px;
}

.article-header {
    max-width: 850px;
    margin: 0 auto 35px;
    text-align: center;
}

.article-category {
    color: #3e9f1c;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.7px;
}

.article-header h1 {
    margin: 14px 0 18px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1;
    letter-spacing: -2.5px;
}

.article-summary {
    max-width: 750px;
    margin: auto;
    color: #666;
    font-size: 19px;
    line-height: 1.55;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 22px;
    color: #888;
    font-size: 12px;
    font-weight: bold;
}

.article-hero {
    min-height: 370px;
    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: clamp(40px, 8vw, 100px);
    font-weight: 900;
    letter-spacing: -4px;
}

.article-body {
    max-width: 760px;
    margin: 45px auto;
}

.article-body p {
    margin: 0 0 24px;
    color: #303430;
    font-size: 18px;
    line-height: 1.8;
}

.article-footer {
    max-width: 760px;
    margin: auto;
    padding-top: 25px;
    border-top: 1px solid var(--border);
}

.back-news {
    color: #3e9f1c;
    font-size: 13px;
    font-weight: 900;
}

.article-error {
    padding: 100px 20px;
    text-align: center;
}

.article-error h1 {
    font-size: 45px;
}


@media (max-width: 550px) {

    .article-header {
        text-align: left;
    }

    .article-header h1 {
        font-size: 39px;
    }

    .article-summary {
        font-size: 17px;
    }

    .article-meta {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .article-hero {
        min-height: 230px;
        font-size: 42px;
    }

    .article-body {
        margin-top: 30px;
    }

    .article-body p {
        font-size: 17px;
    }
}

/* =========================================================
   VALUEPLUS MATCH SCORE CARD
   ========================================================= */

.match-score-card {
    max-width: 760px;
    margin: 32px auto 45px;
    padding: 28px 32px;
    background: #111;
    color: #fff;
    border-radius: 8px;
    border-top: 5px solid #61dc34;
}

.match-score-teams {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 20px;
}

.match-score-team {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.match-score-team:first-child {
    text-align: left;
}

.match-score-team:last-child {
    text-align: right;
}

.match-score-row {
    display: grid;
    grid-template-columns: 1fr 70px 1fr;
    align-items: center;
    text-align: center;
}

.match-score-ft {
    margin-bottom: 4px;
}

.match-score-ft .match-score-number {
    font-size: 58px;
    font-weight: 900;
    line-height: 1;
}

.match-score-ft .match-score-label {
    color: #61dc34;
    font-size: 15px;
    font-weight: 900;
}

.match-score-ht {
    margin-top: 10px;
}

.match-score-ht .match-score-number {
    color: #bbb;
    font-size: 24px;
    font-weight: 800;
}

.match-score-ht .match-score-label {
    color: #888;
    font-size: 12px;
    font-weight: 900;
}

.match-score-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #333;
    color: #aaa;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 550px) {

    .match-score-card {
        margin: 22px auto 30px;
        padding: 22px 16px;
    }

    .match-score-teams {
        gap: 20px;
    }

    .match-score-team {
        font-size: 14px;
    }

    .match-score-row {
        grid-template-columns: 1fr 50px 1fr;
    }

    .match-score-ft .match-score-number {
        font-size: 48px;
    }

    .match-score-info {
        flex-direction: column;
        align-items: center;
        gap: 5px;
        text-align: center;
    }
}


/* =========================================================
   Dedicated Results / Fixtures
   Collapsible competition groups
   ========================================================= */

.competition-group {
    margin-bottom: 14px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.competition-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 14px 18px;

    background: #f4f4f4;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;
    user-select: none;

    list-style: none;
}

.competition-header::-webkit-details-marker {
    display: none;
}

.competition-header::before {
    content: "\25B6";

    display: inline-block;

    margin-right: 10px;

    font-size: 11px;

    transition: transform 0.2s ease;
}

.competition-group[open] >
.competition-header::before {
    transform: rotate(90deg);
}

.competition-group[open] >
.competition-header {
    background: #61dc34;
    color: #111111;
}

.competition-header > span:first-child {
    flex: 1;
}

.competition-count {
    flex: 0 0 auto;

    padding: 4px 9px;

    border-radius: 20px;

    background: rgba(0, 0, 0, 0.08);

    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;
}

.competition-matches {
    background: #ffffff;
}

.competition-matches .match-row:last-child {
    border-bottom: 0;
}


/* Mobile */

@media (max-width: 700px) {

    .competition-header {
        padding: 12px 14px;
        font-size: 14px;
    }

    .competition-count {
        font-size: 11px;
    }

}

/* =========================================================
   Expand / Collapse controls
   ========================================================= */

.competition-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;

    padding: 10px 0 12px;
}

.competition-controls > span {
    display: none;
}

.competition-controls button {
    appearance: none;
    -webkit-appearance: none;

    border: 1px solid #d9d9d9;
    border-radius: 999px;

    background: #ffffff;
    color: #111111;

    padding: 7px 14px;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.competition-controls button:first-child {
    background: #61dc34;
    border-color: #61dc34;
    color: #111111;
}

.competition-controls button:hover {
    border-color: #61dc34;
    background: #f2f2f2;
}

.competition-controls button:first-child:hover {
    background: #55c92d;
    border-color: #55c92d;
}

.competition-controls button:active {
    transform: translateY(1px);
}

.competition-controls button:focus-visible {
    outline: 2px solid #111111;
    outline-offset: 2px;
}


/* Mobile */

@media (max-width: 700px) {

    .competition-controls {
        padding: 8px 0 10px;
        gap: 6px;
    }

    .competition-controls button {
        padding: 6px 11px;
        font-size: 11px;
    }

}

/* =========================================================
   Match date headings inside competition groups
   ========================================================= */

.match-date-heading {
    padding: 9px 24px;

    background: #f7f7f7;
    border-bottom: 1px solid #e7e7e7;

    color: #666666;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.match-date-group + .match-date-group
.match-date-heading {
    border-top: 1px solid #e1e1e1;
}


/* Mobile */

@media (max-width: 700px) {

    .match-date-heading {
        padding: 8px 14px;

        font-size: 10px;
        letter-spacing: 0.06em;
    }

}

/* =========================================================
   ValuePlus article visual system
   ========================================================= */

.article-visual-link {
    display: block;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.article-visual {
    position: relative;

    width: 100%;
    height: 100%;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 78% 25%,
            rgba(97, 220, 52, 0.28),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #101010 0%,
            #1c1c1c 58%,
            #0b0b0b 100%
        );

    color: #ffffff;
}

.article-visual::before {
    content: "";

    position: absolute;
    top: -35%;
    right: -8%;

    width: 45%;
    height: 180%;

    background: #61dc34;

    opacity: 0.12;

    transform: rotate(18deg);
}

.article-visual::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;
    height: 5px;

    background: #61dc34;
}


/* ---------------------------------------------------------
   Brand
   --------------------------------------------------------- */

.visual-brand {
    position: absolute;
    top: 18px;
    left: 20px;

    z-index: 2;

    color: #61dc34;

    font-size: 12px;
    font-weight: 900;

    letter-spacing: 0.16em;
}

.visual-center {
    position: absolute;

    left: 20px;
    right: 20px;
    top: 50%;

    z-index: 2;

    transform: translateY(-50%);
}

.visual-kicker {
    display: block;

    margin-bottom: 8px;

    color: #61dc34;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.18em;
}

.visual-center strong {
    display: block;

    max-width: 85%;

    color: #ffffff;

    font-size: 22px;
    line-height: 1.08;
    font-weight: 900;

    text-transform: uppercase;
}

.visual-category {
    position: absolute;
    left: 20px;
    bottom: 18px;

    z-index: 2;

    color: rgba(255,255,255,0.72);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.14em;
}


/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.hero-visual-link {
    display: block;
    height: 100%;
    min-height: 300px;

    text-decoration: none;
}

.article-visual-hero {
    min-height: 300px;
}

.article-visual-hero .visual-brand {
    top: 28px;
    left: 30px;

    font-size: 14px;
}

.article-visual-hero .visual-center {
    left: 30px;
    right: 30px;
}

.article-visual-hero .visual-kicker {
    font-size: 11px;
}

.article-visual-hero .visual-center strong {
    max-width: 75%;

    font-size: clamp(
        28px,
        4vw,
        48px
    );
}

.article-visual-hero .visual-category {
    left: 30px;
    bottom: 28px;

    font-size: 11px;
}


/* ---------------------------------------------------------
   News cards
   --------------------------------------------------------- */

.news-image.article-visual-link {
    padding: 0;
}

.article-visual-card {
    min-height: 165px;
}

.article-visual-card .visual-center strong {
    font-size: 20px;
}


/* ---------------------------------------------------------
   Actual article photographs
   --------------------------------------------------------- */

.article-visual-image {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.article-visual-image::before {
    top: 0;
    right: 0;

    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,0.18) 0%,
            rgba(0,0,0,0.72) 100%
        );

    opacity: 1;

    transform: none;
}

.article-visual-overlay {
    position: absolute;
    inset: 0;

    z-index: 2;
}

.article-visual-overlay .visual-competition {
    position: absolute;
    left: 20px;
    bottom: 18px;

    color: #ffffff;

    font-size: 15px;
    font-weight: 800;
}


/* ---------------------------------------------------------
   Horse racing variation
   --------------------------------------------------------- */

.article-visual.racing-bg {
    background:
        radial-gradient(
            circle at 78% 25%,
            rgba(97, 220, 52, 0.34),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #102012 0%,
            #172d19 55%,
            #09130a 100%
        );
}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .hero-visual-link,
    .article-visual-hero {
        min-height: 230px;
    }

    .article-visual-hero .visual-brand {
        top: 20px;
        left: 20px;
    }

    .article-visual-hero .visual-center {
        left: 20px;
        right: 20px;
    }

    .article-visual-hero .visual-center strong {
        max-width: 90%;
        font-size: 28px;
    }

    .article-visual-hero .visual-category {
        left: 20px;
        bottom: 20px;
    }

    .article-visual-card {
        min-height: 150px;
    }

}

/* =========================================================
   PREMIER LEAGUE TABLE
   ========================================================= */

.league-table-section {
    max-width: 900px;
    margin: 32px auto 48px;
    padding: 0 20px;
}

.league-table-panel {
    width: 100%;
}

.league-table-matchweek {
    font-size: 13px;
    font-weight: 700;
    color: #666;
    white-space: nowrap;
}

.league-table-container {
    width: 100%;
}

.league-table-scroll {
    width: 100%;
    overflow-x: auto;
}

.league-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.league-table th,
.league-table td {
    padding: 13px 10px;
    text-align: center;
    border-bottom: 1px solid #e7e7e7;
}

.league-table thead th {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: #666;
    background: #f7f7f7;
}

.league-table .table-position {
    width: 50px;
    font-weight: 700;
    color: #555;
}

.league-table .table-team {
    text-align: left;
}

.league-table td.table-team {
    font-weight: 700;
    color: #222;
}

.league-table .table-points {
    font-weight: 800;
    color: #222;
}

.league-table tbody tr:hover {
    background: #f8f8f8;
}


/* Mobile */

@media (max-width: 700px) {

    .league-table-section {
        margin: 20px auto 36px;
        padding: 0 10px;
    }

    .league-table th,
    .league-table td {
        padding: 11px 6px;
        font-size: 12px;
    }

    .league-table .table-position {
        width: 36px;
    }

    .league-table td.table-team {
        min-width: 110px;
        font-size: 13px;
    }

    .league-table-matchweek {
        font-size: 11px;
    }
}


/* =========================================================
   PREMIER LEAGUE TABLE - COMPACT LAYOUT + CLUB CRESTS
   ========================================================= */

.league-table-section {
    margin-top: 32px;
    margin-bottom: 32px;
}

.league-table-panel .panel-heading {
    padding: 14px 24px;
}

.league-table-panel .panel-heading h2 {
    margin: 2px 0 0;
    font-size: 26px;
    line-height: 1.1;
}

.league-table-panel .eyebrow {
    font-size: 12px;
}

.league-table-matchweek {
    font-size: 13px;
}

.league-table th,
.league-table td {
    padding-top: 5px;
    padding-bottom: 5px;
    height: 32px;
    line-height: 1.1;
}

.league-table th {
    font-size: 12px;
}

.league-table td {
    font-size: 13px;
}

.league-team {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 24px;
}

.league-team-crest {
    display: block;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px;
    max-width: 24px;
    max-height: 24px;
    object-fit: contain;
    flex: 0 0 24px;
}

.table-team {
    white-space: nowrap;
}

.table-position,
.table-points {
    font-weight: 700;
}


/* Mobile keeps crests readable */

@media (max-width: 700px) {

    .league-table-section {
        margin-top: 18px;
        margin-bottom: 20px;
    }

    .league-table-panel .panel-heading {
        padding: 12px 14px;
    }

    .league-table-panel .panel-heading h2 {
        font-size: 22px;
    }

    .league-table th,
    .league-table td {
        padding-top: 6px;
        padding-bottom: 6px;
        height: 34px;
    }

    .league-team-crest {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px;
        max-width: 22px;
        max-height: 22px;
        flex-basis: 22px;
    }

    .league-team {
        gap: 7px;
        min-height: 22px;
    }
}


/* Final desktop table fit adjustment */
@media (min-width: 701px) {

    .league-table th,
    .league-table td {
        padding-top: 3px;
        padding-bottom: 3px;
        height: 30px;
    }

    .league-team {
        min-height: 22px;
    }

    .league-team-crest {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px;
        max-width: 22px;
        max-height: 22px;
        flex-basis: 22px;
    }
}


/* =========================================================
   Mobile Header Fix
   ========================================================= */
@media (max-width: 550px) {

    .header-inner {
        padding: 12px 14px 8px;
        gap: 8px 12px;
        min-height: auto;
    }

    .brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .brand-name {
        font-size: 24px;
    }

    .brand-subtitle {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .bet-button {
        flex: 0 0 auto;
        padding: 10px 14px;
        font-size: 12px;
        white-space: nowrap;
    }

    .main-nav {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        gap: 20px;

        overflow-x: auto;
        overflow-y: hidden;

        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;

        padding: 2px 0 5px;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .main-nav a {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 7px 0;
        font-size: 13px;
    }
}

/* ================================================= */
/* HORSE RACING HUB V1.1                             */
/* ================================================= */


.racing-hero {

    min-height: 420px;

    background:
    linear-gradient(
        rgba(0,0,0,.75),
        rgba(0,0,0,.75)
    ),
    linear-gradient(
        135deg,
        #101510,
        #1d3517
    );

    border-radius:18px;

    display:flex;

    align-items:center;

    padding:60px;

    margin-bottom:40px;

}


.racing-hero-content {

    max-width:700px;

}


.racing-hero h1 {

    color:white;

    font-size:64px;

    line-height:1.05;

    margin:20px 0;

}


.racing-hero p {

    color:#ddd;

    font-size:22px;

}


.racing-hero .eyebrow {

    color:#61dc34;

    font-weight:700;

    letter-spacing:3px;

}

/* ============================= */
/* HORSE RACING HUB */
/* ============================= */


.racing-card,
.racing-calendar-panel {

    background:#ffffff;
    border-radius:12px;
    overflow:hidden;

}


.racing-card .panel-heading h2,
.racing-calendar-panel h2 {

    font-size:28px;

}



.video-box {

    height:260px;
    background:#050805;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    color:white;

}


.video-icon {

    font-size:60px;
    color:#61dc34;

}



.racing-calendar-panel {

    margin-top:30px;

}



#racing-calendar .match-card,
#latest-meeting .match-card {

    padding:20px;
    border-bottom:1px solid #eee;

}


#racing-calendar strong,
#latest-meeting strong {

    color:#61dc34;
    font-size:20px;

}

.meeting-highlight {
    padding:25px;
}


.meeting-label {
    color:#61dc34;
    font-weight:700;
    letter-spacing:2px;
    margin-bottom:15px;
}


.meeting-highlight h3 {
    font-size:28px;
    margin:10px 0;
}


.meeting-date {
    color:#666;
    font-size:18px;
}


.feature-race {
    margin-top:20px;
    font-size:16px;
}


.feature-race strong {
    display:block;
    color:#61dc34;
    font-size:22px;
    margin-top:8px;
}

.meeting-button {

    display:inline-block;
    margin-top:25px;

    background:#61dc34;
    color:#000;

    padding:12px 25px;

    font-weight:bold;

    border-radius:6px;

    text-decoration:none;

}
.archive-meeting {

    padding:20px;

}


.video-item {

    padding:15px;

    margin-top:10px;

    background:#f7f7f7;

    border-radius:8px;

}


.video-item strong {

    color:#61dc34;

}

/* Mobile overflow fix */
@media (max-width: 700px) {

    html,
    body {
        width:100%;
        overflow-x:hidden;
    }

    .racing-hero {
        min-height:320px;
        width:100%;
    }

    .racing-hero-content {
        max-width:100%;
        padding:25px 20px;
    }

    .racing-hero h1 {
        font-size:38px;
        line-height:1;
        word-break:break-word;
    }

    .racing-hero p {
        font-size:16px;
        line-height:1.4;
    }

    main {
        width:100%;
        overflow:hidden;
    }
}

@media (max-width:550px) {

    .racing-hero h1 span {
        display:block;
        white-space:nowrap;
    }

    .racing-hero h1 {
        font-size:32px;
        line-height:1.05;
    }

}
/* =========================================================
   VALUEPLUS RACING - SEASON ARCHIVE
   ========================================================= */

.racing-season-card {
    margin: 24px;
    padding: 38px 42px;
    min-height: 210px;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            110deg,
            #0b0f0b 0%,
            #111811 62%,
            #193519 100%
        );

    border-radius: 16px;
    border-left: 6px solid #61dc34;

    color: #fff;
    cursor: pointer;

    position: relative;
    overflow: hidden;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.racing-season-card::after {
    content: "2026";

    position: absolute;
    right: 30px;
    top: 50%;

    transform: translateY(-50%);

    font-size: 150px;
    line-height: 1;
    font-weight: 900;

    color: rgba(255,255,255,.045);

    pointer-events: none;
}


.racing-season-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 30px rgba(0,0,0,.18);
}


.racing-season-small {
    color: #61dc34;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 5px;
}


.racing-season-year {
    font-size: 64px;
    line-height: 1;
    font-weight: 900;

    letter-spacing: -2px;
}


.racing-season-count {
    margin-top: 10px;

    color: #d8d8d8;

    font-size: 15px;
    font-weight: 700;

    letter-spacing: 1px;
}


.racing-season-link {
    display: inline-block;

    margin-top: 24px;

    padding: 11px 18px;

    background: #61dc34;

    color: #071007;

    border-radius: 6px;

    font-size: 13px;
    font-weight: 900;

    letter-spacing: .5px;
}


/* ==========================
   OPEN SEASON
   ========================== */

.racing-season-content {
    padding: 28px 20px 35px;
}


.racing-season-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 0 20px;

    border-bottom: 3px solid #61dc34;

    margin-bottom: 0;
}


.racing-season-top small {
    color: #666;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.5px;
}


.racing-season-top h2 {
    margin: 3px 0 0;

    font-size: 34px;
    line-height: 1;

    font-weight: 900;
}


/* ==========================
   MEETING ROWS
   ========================== */

.archive-meeting {
    padding: 22px 4px;

    border-bottom: 1px solid #e5e5e5;
}


.archive-meeting-header {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    gap: 20px;

    align-items: center;
}


.archive-meeting-number {
    color: #61dc34;

    font-size: 13px;
    font-weight: 900;

    letter-spacing: 1px;
}


.archive-meeting-date {
    margin-top: 3px;

    color: #777;

    font-size: 14px;
}


.archive-meeting h3 {
    margin: 8px 0 0;

    font-size: 19px;
    line-height: 1.3;

    font-weight: 800;

    color: #111;
}


/* ==========================
   BUTTONS
   ========================== */

.racing-replay-button,
.racing-season-back {

    appearance: none;
    -webkit-appearance: none;

    border: 0;

    border-radius: 6px;

    padding: 11px 17px;

    background: #61dc34;

    color: #071007;

    font-family: inherit;

    font-size: 12px;
    font-weight: 900;

    letter-spacing: .4px;

    cursor: pointer;

    transition:
        transform .15s ease,
        background .15s ease;
}


.racing-replay-button:hover,
.racing-season-back:hover {

    background: #55ca2c;

    transform: translateY(-1px);
}


.racing-replay-button {
    white-space: nowrap;
}


.racing-season-back {
    background: #111;
    color: #fff;
}


.racing-season-back:hover {
    background: #222;
}


/* ==========================
   VIDEO PLAYER
   ========================== */

.racing-replay-player {
    margin-top: 18px;
}


.racing-replay-player:empty {
    margin-top: 0;
}


.racing-replay-player .video-frame {
    overflow: hidden;

    border-radius: 10px;

    background: #000;
}


.racing-replay-player iframe {
    display: block;

    width: 100%;
    height: 560px;

    border: 0;
}


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

@media (max-width: 700px) {

    .racing-season-card {
        margin: 15px;
        padding: 28px 24px;

        min-height: 190px;
    }


    .racing-season-card::after {
        right: 5px;

        font-size: 100px;
    }


    .racing-season-year {
        font-size: 52px;
    }


    .racing-season-content {
        padding: 20px 15px 28px;
    }


    .racing-season-top h2 {
        font-size: 27px;
    }


    .archive-meeting-header {
        grid-template-columns: 1fr;
        gap: 15px;
    }


    .racing-replay-button {
        width: 100%;

        padding: 13px 15px;
    }


    .racing-replay-player iframe {
        height: 230px;
    }

}
/* =========================================================
   VALUEPLUS RACING - RACE TIMESTAMP NAVIGATION
   ========================================================= */

.racing-race-navigation {
    margin-top: 14px;
    padding: 16px 18px;
    background: #0d100e;
    border-left: 4px solid #61dc34;
    border-radius: 8px;
}

.racing-race-navigation-title {
    margin-bottom: 11px;
    color: #61dc34;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.racing-race-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.racing-race-button {
    appearance: none;
    border: 1px solid #303530;
    border-radius: 6px;
    background: #171a18;
    color: #ffffff;
    padding: 9px 13px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.racing-race-button span {
    margin-left: 6px;
    color: #61dc34;
    font-size: 11px;
    font-weight: 700;
}

.racing-race-button:hover {
    background: #61dc34;
    border-color: #61dc34;
    color: #071006;
    transform: translateY(-1px);
}

.racing-race-button:hover span {
    color: #071006;
}

.racing-race-button:active {
    transform: translateY(0);
}


/* Mobile */

@media (max-width: 700px) {

    .racing-race-navigation {
        margin-top: 10px;
        padding: 13px 12px;
    }

    .racing-race-buttons {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 5px;
        scrollbar-width: thin;
    }

    .racing-race-button {
        flex: 0 0 auto;
        min-width: 92px;
        padding: 10px 12px;
    }

}

/* ==========================================================
   VALUEPLUS NEWS GRAPHIC SYSTEM V1
   Football + Turf / Horse Racing
   ========================================================== */

/*
   These classes are intentionally isolated.
   Nothing changes visually until the corresponding
   vp-* classes are attached to page elements.
*/


/* ----------------------------------------------------------
   Shared sports graphic
   ---------------------------------------------------------- */

.vp-sports-visual {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    border-radius: 18px;
    background:
        linear-gradient(
            90deg,
            rgba(5, 10, 7, 0.96) 0%,
            rgba(5, 10, 7, 0.82) 38%,
            rgba(5, 10, 7, 0.25) 70%,
            rgba(5, 10, 7, 0.08) 100%
        ),
        #101713;
    isolation: isolate;
}


/* ----------------------------------------------------------
   Green accent
   ---------------------------------------------------------- */

.vp-sports-visual::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 7px;
    height: 100%;
    background: #61dc34;
    z-index: 3;
}


/* ----------------------------------------------------------
   Subtle broadcast texture
   ---------------------------------------------------------- */

.vp-sports-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.14;
    background-image:
        repeating-linear-gradient(
            -45deg,
            transparent 0,
            transparent 18px,
            rgba(97, 220, 52, 0.12) 19px,
            transparent 20px
        );
    z-index: 1;
}


/* ----------------------------------------------------------
   Official ValuePlus logo
   ---------------------------------------------------------- */

.vp-visual-logo {
    position: absolute;
    z-index: 4;
    top: 24px;
    left: 28px;
    width: 125px;
    height: 125px;
    object-fit: contain;
    object-position: center;
}


/* ----------------------------------------------------------
   Graphic content
   ---------------------------------------------------------- */

.vp-visual-content {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: inherit;
    box-sizing: border-box;
    padding:
        165px
        42px
        38px
        42px;
    max-width: 760px;
}


.vp-visual-category {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 14px;
    padding: 7px 14px;
    background: #61dc34;
    color: #071008;
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.vp-visual-content h1,
.vp-visual-content h2,
.vp-visual-content h3 {
    margin:
        0
        0
        12px;
    color: #ffffff;
    line-height: 1.05;
    font-weight: 900;
}


.vp-visual-content p {
    margin: 0;
    max-width: 650px;
    color: rgba(255,255,255,0.86);
    line-height: 1.55;
}


/* ----------------------------------------------------------
   Football visual identity
   ---------------------------------------------------------- */

.vp-football-visual {
    background:
        linear-gradient(
            90deg,
            rgba(4, 12, 7, 0.97) 0%,
            rgba(4, 12, 7, 0.83) 38%,
            rgba(4, 12, 7, 0.34) 70%,
            rgba(4, 12, 7, 0.14) 100%
        ),
        radial-gradient(
            circle at 78% 62%,
            rgba(97, 220, 52, 0.22),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            #13291a,
            #07100b
        );
}


/* ----------------------------------------------------------
   Horse racing / Turf visual identity
   ---------------------------------------------------------- */

.vp-racing-visual {
    background:
        linear-gradient(
            90deg,
            rgba(8, 11, 8, 0.97) 0%,
            rgba(8, 11, 8, 0.82) 38%,
            rgba(8, 11, 8, 0.32) 70%,
            rgba(8, 11, 8, 0.12) 100%
        ),
        radial-gradient(
            circle at 80% 55%,
            rgba(97, 220, 52, 0.20),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #203321,
            #090e0a
        );
}


/* ----------------------------------------------------------
   Article hero variant
   ---------------------------------------------------------- */

.vp-article-visual {
    min-height: 430px;
    margin:
        0
        0
        34px;
}


.vp-article-visual .vp-visual-content {
    min-height: 430px;
}


/* ----------------------------------------------------------
   News card variant
   ---------------------------------------------------------- */

.vp-card-visual {
    min-height: 220px;
    border-radius: 14px;
}


.vp-card-visual .vp-visual-logo {
    top: 15px;
    left: 18px;
    width: 76px;
    height: 76px;
}


.vp-card-visual .vp-visual-content {
    padding:
        105px
        22px
        22px;
}


/* ----------------------------------------------------------
   Mobile
   ---------------------------------------------------------- */

@media (max-width: 768px) {

    .vp-sports-visual {
        min-height: 310px;
        border-radius: 14px;
    }


    .vp-visual-logo {
        top: 18px;
        left: 20px;
        width: 96px;
        height: 96px;
    }


    .vp-visual-content {
        padding:
            125px
            22px
            26px;
    }


    .vp-visual-content h1 {
        font-size: clamp(
            28px,
            8vw,
            42px
        );
    }


    .vp-article-visual,
    .vp-article-visual .vp-visual-content {
        min-height: 330px;
    }


    .vp-card-visual {
        min-height: 210px;
    }


    .vp-card-visual .vp-visual-logo {
        width: 68px;
        height: 68px;
    }

}

/* ==========================================================
   VALUEPLUS ARTICLE STORY IMAGE V1
   Used only when an article has imageUrl
   ========================================================== */

.vp-story-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 620px;
    margin: 0 0 34px;
    overflow: hidden;
    border-radius: 18px;
    background: #101713;
}


.vp-story-image > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* Keeps branding readable without covering the photograph */

.vp-story-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,0.08) 0%,
            transparent 45%,
            rgba(0,0,0,0.58) 100%
        );
}


.vp-story-image-overlay {
    position: absolute;
    z-index: 2;
    inset:
        auto
        24px
        22px
        24px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}


.vp-story-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 104px;
    height: 104px;
    padding: 6px;
    box-sizing: border-box;
    border-radius: 14px;
    background: rgba(255,255,255,0.94);
    box-shadow:
        0 8px 28px
        rgba(0,0,0,0.22);
}


.vp-story-brand img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* Existing category badge is reused */

.vp-story-image-overlay
.vp-visual-category {
    margin: 0;
    flex-shrink: 0;
}


/* ----------------------------------------------------------
   Mobile
   ---------------------------------------------------------- */

@media (max-width: 768px) {

    .vp-story-image {
        aspect-ratio: 4 / 3;
        max-height: none;
        margin-bottom: 24px;
        border-radius: 14px;
    }


    .vp-story-image-overlay {
        inset:
            auto
            14px
            14px
            14px;
        gap: 12px;
    }


    .vp-story-brand {
        width: 76px;
        height: 76px;
        padding: 5px;
        border-radius: 10px;
    }


    .vp-story-image-overlay
    .vp-visual-category {
        font-size: 11px;
        padding: 6px 10px;
    }

}

/* ==========================================================
   VALUEPLUS HOMEPAGE BRANDED VISUALS V1
   Used by featured story + news cards when imageUrl is empty
   ========================================================== */

.vp-home-visual {
    isolation: isolate;
}


/* Official logo */

.vp-home-logo {
    position: absolute;
    z-index: 3;

    top: 18px;
    left: 20px;

    width: 92px;
    height: 92px;

    padding: 5px;
    box-sizing: border-box;

    object-fit: contain;
    object-position: center;

    border-radius: 12px;

    background:
        rgba(255,255,255,0.94);

    box-shadow:
        0 8px 24px
        rgba(0,0,0,0.20);
}


/* Give the central text more breathing room */

.vp-home-visual .visual-center {
    padding-left: 2px;
}


.vp-home-visual .visual-kicker {
    letter-spacing: 0.12em;
}


/* ----------------------------------------------------------
   Featured homepage visual
   ---------------------------------------------------------- */

.article-visual-hero.vp-home-visual
.vp-home-logo {

    top: 26px;
    left: 30px;

    width: 122px;
    height: 122px;

    padding: 7px;

    border-radius: 15px;
}


.article-visual-hero.vp-home-visual
.visual-center {

    top: 61%;
}


.article-visual-hero.vp-home-visual
.visual-center strong {

    max-width: 72%;
}


/* ----------------------------------------------------------
   News cards
   ---------------------------------------------------------- */

.article-visual-card.vp-home-visual
.vp-home-logo {

    top: 13px;
    left: 15px;

    width: 72px;
    height: 72px;

    padding: 4px;

    border-radius: 9px;
}


.article-visual-card.vp-home-visual
.visual-center {

    left: 15px;
    right: 15px;

    top: 62%;
}


.article-visual-card.vp-home-visual
.visual-center strong {

    max-width: 88%;

    font-size: 18px;
}


/* ----------------------------------------------------------
   Mobile
   ---------------------------------------------------------- */

@media (max-width: 768px) {

    .article-visual-hero.vp-home-visual
    .vp-home-logo {

        top: 18px;
        left: 18px;

        width: 96px;
        height: 96px;

        padding: 5px;

        border-radius: 12px;
    }


    .article-visual-hero.vp-home-visual
    .visual-center {

        top: 62%;

        left: 20px;
        right: 20px;
    }


    .article-visual-hero.vp-home-visual
    .visual-center strong {

        max-width: 90%;
    }


    .article-visual-card.vp-home-visual
    .vp-home-logo {

        width: 66px;
        height: 66px;
    }

}

/* ==========================================================
   VALUEPLUS HOMEPAGE HERO LAYOUT V1
   Graphic/photo on top, editorial content below
   ========================================================== */

.hero-main {
    display: grid;
    grid-template-rows:
        minmax(270px, 1.15fr)
        auto;

    align-items: stretch;

    min-height: 560px;

    background: #0a0f0b;
}


/* First child is the clickable visual */

.hero-main > .hero-visual-link {
    position: relative;

    width: 100%;
    height: 100%;
    min-height: 270px;

    overflow: hidden;
}


/* Make both fallback graphics and real photos fill the area */

.hero-main > .hero-visual-link
.article-visual {

    width: 100%;
    height: 100%;
    min-height: 270px;
}


/* Editorial text becomes its own clean lower panel */

.hero-main > .hero-content {
    position: relative;
    z-index: 4;

    max-width: none;

    padding:
        30px
        38px
        34px;

    background:
        linear-gradient(
            135deg,
            #101712 0%,
            #090d0a 100%
        );

    color: #ffffff;
}


/* Headline no longer needs billboard-size text */

.hero-main .hero-content h1 {
    max-width: 760px;

    margin:
        10px
        0
        12px;

    font-size:
        clamp(
            30px,
            3vw,
            46px
        );

    line-height: 1.03;

    letter-spacing: -1.4px;
}


.hero-main .hero-content p {
    max-width: 720px;

    font-size: 15px;
    line-height: 1.5;
}


/* Slightly tighter CTA in the new editorial panel */

.hero-main .read-story {
    margin-top: 17px;
}


/* Existing hero visual can now use its full graphic area */

.hero-main
.article-visual-hero.vp-home-visual
.visual-center {

    top: 64%;
}


/* ----------------------------------------------------------
   Mobile
   ---------------------------------------------------------- */

@media (max-width: 768px) {

    .hero-main {
        grid-template-rows:
            220px
            auto;

        min-height: 0;
    }


    .hero-main > .hero-visual-link,
    .hero-main > .hero-visual-link
    .article-visual {

        min-height: 220px;
    }


    .hero-main > .hero-content {

        padding:
            24px
            20px
            27px;
    }


    .hero-main .hero-content h1 {

        font-size:
            clamp(
                27px,
                8vw,
                38px
            );

        letter-spacing: -1px;
    }


    .hero-main .hero-content p {

        font-size: 14px;
    }

}

/* ==========================================================
   VALUEPLUS HERO LOGO SPACING V1
   Prevent hero text from sitting underneath official logo
   ========================================================== */

.article-visual-hero.vp-home-visual
.visual-center {

    left: 180px;
    right: 30px;
    top: 52%;

    transform: translateY(-20%);
}


.article-visual-hero.vp-home-visual
.visual-center strong {

    max-width: 82%;
}


.article-visual-hero.vp-home-visual
.visual-kicker {

    margin-bottom: 9px;
}


/* Keep category anchored independently at lower left */

.article-visual-hero.vp-home-visual
.visual-category {

    left: 30px;
    bottom: 25px;
}


/* ----------------------------------------------------------
   Mobile
   ---------------------------------------------------------- */

@media (max-width: 768px) {

    .article-visual-hero.vp-home-visual
    .visual-center {

        left: 132px;
        right: 16px;
        top: 50%;

        transform: translateY(-15%);
    }


    .article-visual-hero.vp-home-visual
    .visual-center strong {

        max-width: 100%;

        font-size:
            clamp(
                22px,
                6vw,
                32px
            );
    }


    .article-visual-hero.vp-home-visual
    .visual-category {

        left: 18px;
        bottom: 16px;
    }

}

/* ==========================================================
   VALUEPLUS NEWS CARD VISUAL POLISH V1
   Compact fallback branding for Latest Sports News cards
   ========================================================== */

.article-visual-card.vp-home-visual
.vp-home-logo {

    top: 13px;
    left: 15px;

    width: 62px;
    height: 62px;

    padding: 4px;

    border-radius: 9px;
}


/*
   Position competition beside the logo rather than
   underneath it.
*/

.article-visual-card.vp-home-visual
.visual-center {

    left: 92px;
    right: 14px;
    top: 47%;

    padding-left: 0;

    transform: translateY(-50%);
}


.article-visual-card.vp-home-visual
.visual-kicker {

    margin-bottom: 5px;

    font-size: 8px;
    line-height: 1.2;

    letter-spacing: 0.11em;
}


.article-visual-card.vp-home-visual
.visual-center strong {

    max-width: 100%;

    font-size: 17px;
    line-height: 1.08;
}


/* Category remains a small footer label */

.article-visual-card.vp-home-visual
.visual-category {

    left: 15px;
    bottom: 13px;

    font-size: 9px;
}


/* ----------------------------------------------------------
   Mobile
   ---------------------------------------------------------- */

@media (max-width: 768px) {

    .article-visual-card.vp-home-visual
    .vp-home-logo {

        width: 58px;
        height: 58px;
    }


    .article-visual-card.vp-home-visual
    .visual-center {

        left: 86px;
        right: 12px;
    }


    .article-visual-card.vp-home-visual
    .visual-center strong {

        font-size: 16px;
    }

}


/* ==========================================================
   VALUEPLUS MOBILE NAV GRID V1
   Prevent navigation overflow on narrow phones
   ========================================================== */

@media (max-width: 550px) {

    .main-nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));

        flex: 0 0 100%;
        width: 100%;

        gap: 0;

        overflow: visible;
        padding: 4px 0 2px;
    }

    .main-nav a {
        min-width: 0;

        padding: 7px 4px;

        font-size: 12px;
        line-height: 1.2;

        text-align: center;
        white-space: nowrap;
    }
}
/* ==========================================================
   VALUEPLUS RACING PROMOTIONS V1
   ========================================================== */

.vp-racing-promotions {
    width: 100%;
    margin: 28px auto 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.vp-racing-promo-link {
    display: block;
    width: 100%;
    max-width: 900px;
    line-height: 0;
    text-decoration: none;
}

.vp-racing-promo-link img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    border: 0;
}

@media (max-width: 768px) {

    .vp-racing-promotions {
        margin-top: 22px;
        gap: 10px;
    }

    .vp-racing-promo-link {
        width: 100%;
    }
}

/* ==========================================================
   VALUEPLUS RESPONSIBLE GAMBLING BADGE V1
   ========================================================== */

.responsible {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.responsible-text {
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.2;
}

.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;
    flex: 0 0 48px;

    border: 3px solid #ffffff;
    border-radius: 50%;

    color: #ffffff;
    font-size: 17px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.5px;

    box-sizing: border-box;
}

@media (max-width: 900px) {

    .responsible {
        justify-content: flex-start;
        margin-top: 20px;
    }
}

@media (max-width: 550px) {

    .responsible {
        gap: 10px;
    }

    .responsible-text {
        font-size: 11px;
    }

    .age-badge {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        font-size: 16px;
    }
}


/* ==========================================================
   VALUEPLUS COMPACT MOBILE RACING CALENDAR V1
   Upcoming meetings only
   ========================================================== */

@media (max-width: 700px) {

    .racing-calendar-panel .panel-heading {
        padding: 18px 20px;
    }

    .racing-calendar-panel .panel-heading h2 {
        margin: 0;
        font-size: 24px;
        line-height: 1.15;
    }

    #racing-calendar .match-card {
        padding: 14px 18px;
        min-height: 0;
    }

    #racing-calendar .match-card h3 {
        margin: 0 0 4px;
        font-size: 20px;
        line-height: 1.15;
    }

    #racing-calendar .match-card p {
        margin: 0 0 5px;
        font-size: 14px;
        line-height: 1.25;
        color: #666;
    }

    #racing-calendar .match-card strong {
        display: block;
        margin: 0;
        font-size: 17px;
        line-height: 1.2;
    }

}
/* ==========================================================
   VALUEPLUS RACING CALENDAR GRID V1
   Desktop: 3 columns
   Mobile:  2 columns
   Layout only - no racing data changes
   ========================================================== */

/* Desktop / tablet */
#racing-calendar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#racing-calendar .match-card {
    min-width: 0;
    padding: 20px 22px;
    border-right: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

#racing-calendar .match-card h3 {
    margin: 0 0 6px;
    font-size: 22px;
    line-height: 1.15;
}

#racing-calendar .match-card p {
    margin: 0 0 7px;
    font-size: 15px;
    line-height: 1.25;
}

#racing-calendar .match-card strong {
    display: block;
    margin: 0;
    font-size: 17px;
    line-height: 1.25;
}


/* Mobile */
@media (max-width: 700px) {

    #racing-calendar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #racing-calendar .match-card {
        padding: 14px 12px;
    }

    #racing-calendar .match-card h3 {
        margin: 0 0 4px;
        font-size: 18px;
        line-height: 1.15;
    }

    #racing-calendar .match-card p {
        margin: 0 0 5px;
        font-size: 13px;
        line-height: 1.2;
    }

    #racing-calendar .match-card strong {
        font-size: 15px;
        line-height: 1.2;
    }
}

/* ==========================================================
   VALUEPLUS RACING PROMOTIONS V2
   Full content width + repeated calendar promotion
   ========================================================== */

.vp-racing-promotions {
    width: 100%;
    max-width: none;
}

.vp-racing-promo-link {
    width: 100%;
    max-width: none;
}

.vp-racing-promo-link img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    object-fit: contain;
}

.vp-racing-promotions-calendar {
    margin-top: 10px;
    margin-bottom: 28px;
}


/* Mobile: use the complete available page width */
@media (max-width: 768px) {

    .vp-racing-promotions {
        width: 100%;
        gap: 8px;
    }

    .vp-racing-promo-link,
    .vp-racing-promo-link img {
        width: 100%;
        max-width: none;
    }

    .vp-racing-promotions-calendar {
        margin-top: 6px;
        margin-bottom: 22px;
    }
}

/* =========================================================
   V1J.4 HORSE RACING HOMEPAGE
   ========================================================= */

.racing-home-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

.racing-feature-card {
    background: #ffffff;
    border: 1px solid #e4e4e4;
    border-radius: 14px;
    overflow: hidden;
    padding: 24px;
    min-width: 0;
}

.racing-card-kicker {
    color: #49b928;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
}

.racing-meeting-number {
    color: #111111;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
}

.racing-meeting-date {
    color: #666666;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-top: 6px;
}

.racing-feature-card h3 {
    color: #111111;
    font-size: 20px;
    line-height: 1.3;
    margin: 18px 0;
}

.racing-upcoming {
    border-top: 1px solid #e7e7e7;
    margin-top: 22px;
    padding-top: 18px;
}

.racing-upcoming-title {
    color: #777777;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}

.racing-upcoming-row {
    align-items: center;
    border-bottom: 1px solid #eeeeee;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 10px 0;
}

.racing-upcoming-row span {
    color: #666666;
    font-size: 12px;
}

.racing-upcoming-row strong {
    color: #111111;
    font-size: 13px;
}

.racing-card-link {
    color: #2f9f18;
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    margin-top: 20px;
    text-decoration: none;
}

.racing-card-link:hover {
    text-decoration: underline;
}

.racing-video-thumbnail {
    background: #111111;
    border-radius: 10px;
    display: block;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.racing-video-thumbnail img {
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
    width: 100%;
}

.racing-video-thumbnail::after {
    background: rgba(0, 0, 0, 0.18);
    content: "";
    inset: 0;
    position: absolute;
}

.racing-play-button {
    align-items: center;
    background: #61dc34;
    border-radius: 50%;
    color: #111111;
    display: flex;
    font-size: 20px;
    height: 58px;
    justify-content: center;
    left: 50%;
    padding-left: 4px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    z-index: 2;
}

.racing-race-count {
    color: #666666;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

.racing-editorial {
    margin-top: 34px;
}

.racing-editorial-heading {
    color: #111111;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 16px;
}


@media (max-width: 768px) {

    .racing-home-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .racing-feature-card {
        padding: 20px;
    }

    .racing-meeting-number {
        font-size: 22px;
    }

    .racing-feature-card h3 {
        font-size: 18px;
    }
}

/* V1J.4C RACING GRID WIDTH FIX */

/*
 * The existing homepage racing container also carries
 * the generic .news-grid class. Override that grid only
 * inside the Horse Racing homepage section so the new
 * racing layout can use the full available width.
 */
#racing-section > #racing-news-grid {
    display: block;
    width: 100%;
}

#racing-section .racing-home-grid {
    width: 100%;
}


/* =========================================================
   V1N.6 RACING DOCUMENTS
   ========================================================= */

.racing-document-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.racing-document-button {
    align-items: center;
    background: #111;
    border-radius: 4px;
    color: #fff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    justify-content: center;
    letter-spacing: .3px;
    line-height: 1;
    min-height: 34px;
    padding: 0 14px;
    text-decoration: none;
    white-space: nowrap;
}

.racing-document-button:hover {
    background: #222;
}

.racing-document-racecard {
    background: #61dc34;
    color: #071007;
}

.racing-document-racecard:hover {
    background: #55ca2c;
}

@media (max-width: 700px) {

    .racing-document-links {
        gap: 7px;
        margin-top: 11px;
    }

    .racing-document-button {
        font-size: 11px;
        min-height: 32px;
        padding: 0 12px;
    }
}

/* =========================================================
   V1N.8 RACING DOCUMENT VIEWER
   ========================================================= */

.racing-document-button {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

body.racing-document-open {
    overflow: hidden;
}

.racing-document-viewer {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: none;

    padding: 24px;

    background: rgba(0,0,0,.82);
}

.racing-document-viewer.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.racing-document-dialog {
    width: min(1180px, 100%);
    height: min(94vh, 1100px);

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: #f1f1f1;
    border-radius: 8px;

    box-shadow:
        0 18px 60px rgba(0,0,0,.45);
}

.racing-document-toolbar {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    min-height: 64px;
    padding: 10px 14px 10px 20px;

    background: #101210;
    border-bottom: 3px solid #61dc34;
    color: #fff;
}

.racing-document-title {
    min-width: 0;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 17px;
    font-weight: 900;
}

.racing-document-controls {
    display: flex;
    align-items: center;
    gap: 7px;
}

.racing-document-control,
.racing-document-reset,
.racing-document-close {
    appearance: none;
    -webkit-appearance: none;

    border: 0;
    border-radius: 4px;

    min-height: 36px;

    cursor: pointer;

    font-family: inherit;
    font-weight: 900;
}

.racing-document-control {
    width: 38px;

    background: #2b2d2b;
    color: #fff;

    font-size: 20px;
}

.racing-document-reset {
    padding: 0 12px;

    background: #2b2d2b;
    color: #fff;

    font-size: 11px;
}

.racing-document-close {
    padding: 0 15px;

    background: #61dc34;
    color: #071007;

    font-size: 11px;
}

.racing-document-control:hover,
.racing-document-reset:hover {
    background: #3b3e3b;
}

.racing-document-close:hover {
    background: #55ca2c;
}

.racing-document-zoom {
    min-width: 48px;

    text-align: center;

    color: #ddd;

    font-size: 12px;
    font-weight: 800;
}

.racing-document-stage {
    flex: 1 1 auto;

    overflow: auto;

    padding: 20px;

    text-align: center;

    background: #d8d8d8;

    -webkit-overflow-scrolling: touch;
}

.racing-document-image {
    display: block;

    width: 100%;
    max-width: none;
    height: auto;

    margin: 0 auto;

    background: #fff;

    box-shadow:
        0 4px 18px rgba(0,0,0,.20);
}


@media (max-width: 700px) {

    .racing-document-viewer {
        padding: 0;
    }

    .racing-document-dialog {
        width: 100%;
        height: 100dvh;
        max-height: none;

        border-radius: 0;
    }

    .racing-document-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;

        min-height: 0;
        padding: 10px 10px 9px;
    }

    .racing-document-title {
        width: 100%;

        font-size: 14px;
    }

    .racing-document-controls {
        width: 100%;
    }

    .racing-document-control {
        width: 36px;
        min-height: 34px;
    }

    .racing-document-reset {
        min-height: 34px;
        padding: 0 9px;
    }

    .racing-document-close {
        min-height: 34px;
        margin-left: auto;
        padding: 0 12px;
    }

    .racing-document-zoom {
        min-width: 43px;
    }

    .racing-document-stage {
        padding: 8px;
    }
}

/* =========================================================
   V1N.9 PRINT AND DETAILS
   ========================================================= */

.racing-document-print {
    appearance: none;
    -webkit-appearance: none;

    border: 0;
    border-radius: 4px;

    min-height: 36px;
    padding: 0 13px;

    cursor: pointer;

    background: #fff;
    color: #111;

    font-family: inherit;
    font-size: 11px;
    font-weight: 900;
}

.racing-document-print:hover {
    background: #e8e8e8;
}

button.meeting-button {
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-weight: 800;
}

.archive-meeting:target {
    scroll-margin-top: 100px;
}

@media (max-width: 700px) {

    .racing-document-print {
        min-height: 34px;
        padding: 0 10px;
    }

}

/* =========================================================
   V1O.2 MULTI-FORMAT RACING DOCUMENTS
   ========================================================= */

.racing-document-pdf {
    display: none;

    width: 100%;
    height: 100%;

    min-height: 700px;

    border: 0;
    background: #fff;
}

.racing-document-stage:has(.racing-document-pdf[style*="display: block"]) {
    padding: 0;
    overflow: hidden;
}

@media (max-width: 700px) {

    .racing-document-pdf {
        min-height: 0;
        height: 100%;
    }

}


/* =========================================================
   V1P.4 MOBILE RACING UX
   - Keep desktop season card unchanged
   - Give mobile season selector a clear vertical hierarchy
   ========================================================= */

@media (max-width: 700px) {

    .racing-season-card {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;

        width: auto;
        min-height: 0;

        margin: 15px;
        padding: 28px 24px;

        overflow: hidden;
    }

    .racing-season-card::after {
        right: 8px;

        font-size: 118px;
        line-height: 1;

        opacity: .055;
    }

    .racing-season-small {
        position: relative;
        z-index: 2;

        max-width: 190px;

        margin: 0 0 8px;

        font-size: 13px;
        line-height: 1.25;
        letter-spacing: 2px;
    }

    .racing-season-year {
        position: relative;
        z-index: 2;

        margin: 0;

        font-size: 58px;
        line-height: .95;
    }

    .racing-season-count {
        position: relative;
        z-index: 2;

        margin: 8px 0 0;

        font-size: 16px;
        line-height: 1.15;
    }

    .racing-season-link {
        position: relative;
        z-index: 3;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        width: auto;

        margin: 22px 0 0;
        padding: 12px 16px;

        background: #61dc34;
        border-radius: 5px;

        color: #071007;

        font-size: 12px;
        font-weight: 900;
        line-height: 1;

        white-space: nowrap;
    }
}
/* ==========================================================
   V1Q VP RACE HERO BRANDING
   ========================================================== */

.vp-race-hero-logo {
    display: block;
    width: 260px;
    max-width: 42%;
    height: auto;
    object-fit: contain;
    margin: 0 0 22px 0;
}

@media (max-width: 700px) {

    .vp-race-hero-logo {
        width: 200px;
        max-width: 62%;
        margin: 0 auto 18px;
    }

    .racing-hero-content {
        text-align: center;
    }

}
/* ==========================================================
   V1Q VP RACE ARCHIVE BRANDING
   ========================================================== */

.vp-race-archive-brand {
    display: flex;
    justify-content: center;
    align-items: center;
}

.vp-race-archive-logo {
    display: block;
    width: 120px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto 8px;
}

@media (max-width: 700px) {

    .vp-race-archive-logo {
        width: 105px;
        margin-bottom: 6px;
    }

}
/* ==========================================================
   V1Q ARCHIVE DESKTOP SPACING
   ========================================================== */

@media (min-width: 701px) {

    .racing-season-count {
        margin-left: 14px;
    }

}
/* V1R.2C HOMEPAGE REPLAY UX */

button.racing-card-link {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.racing-home-replay-player:not(:empty) {
    margin-top: 16px;
}

.racing-home-replay-actions {
    margin-top: 12px;
    text-align: right;
}

.racing-home-replay-close {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    border-radius: 4px;
    background: #111;
    color: #fff;
    padding: 10px 16px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.racing-home-replay-close:hover,
.racing-home-replay-close:focus-visible {
    opacity: 0.85;
}


/* ==========================================================
   V1T.5P.2 - BACK TO TOP
   ========================================================== */

.vp-back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9000;

    display: flex;
    align-items: center;
    gap: 7px;

    min-width: 72px;
    height: 46px;
    padding: 0 16px;

    border: 0;
    border-radius: 23px;

    background: #111;
    color: #fff;

    font: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s ease;

    box-shadow:
        0 4px 16px rgba(0,0,0,.20);
}

.vp-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.vp-back-to-top:hover,
.vp-back-to-top:focus-visible {
    background: #54e326;
    color: #0b0b0b;
}

.vp-back-to-top > span:first-child {
    font-size: 20px;
    line-height: 1;
}

@media (max-width: 700px) {

    .vp-back-to-top {
        right: 14px;
        bottom: 14px;

        min-width: 48px;
        width: 48px;
        height: 48px;
        padding: 0;

        justify-content: center;

        border-radius: 50%;
    }

    .vp-back-to-top-label {
        display: none;
    }
}

/* ==========================================================
   V1U.2 MAURITIUS HORSE RACING HERO
   Presentation only.
   ========================================================== */

.racing-hero {
    position: relative;
    overflow: hidden;

    min-height: 420px;

    background-image:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, .82) 0%,
            rgba(0, 0, 0, .64) 34%,
            rgba(0, 0, 0, .20) 62%,
            rgba(0, 0, 0, .06) 100%
        ),
        url("/news-assets/images/vp_news_horseracing.jpg");

    background-size: cover;
    background-position: center 42%;
    background-repeat: no-repeat;
}

.racing-hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.racing-hero h1 {
    text-shadow:
        0 2px 4px rgba(0, 0, 0, .55),
        0 8px 24px rgba(0, 0, 0, .35);
}

.racing-hero p {
    max-width: 570px;
    color: #f0f0f0;
    text-shadow:
        0 2px 5px rgba(0, 0, 0, .75);
}

/*
 * Preserve more of the photograph on smaller screens.
 * The banner and starting stalls remain the visual focus.
 */
@media (max-width: 700px) {

    .racing-hero {
        min-height: 360px;

        background-image:
            linear-gradient(
                90deg,
                rgba(0, 0, 0, .78) 0%,
                rgba(0, 0, 0, .52) 55%,
                rgba(0, 0, 0, .18) 100%
            ),
            url("/news-assets/images/vp_news_horseracing.jpg");

        background-position: center center;
    }

    .racing-hero-content {
        text-align: left;
        max-width: 88%;
    }

    .racing-hero h1 {
        font-size: 34px;
        line-height: 1.04;
    }
}

@media (max-width: 550px) {

    .racing-hero {
        min-height: 330px;
        background-position: 52% center;
    }

    .racing-hero h1 span {
        display: block;
        white-space: normal;
    }

    .racing-hero h1 {
        font-size: 31px;
    }
}

/* ==========================================================
   V1U.2D REAL-DEVICE MOBILE CORRECTION
   Prevent title fragmentation on physical mobile devices.
   Desktop/tablet presentation remains unchanged.
   ========================================================== */

@media (max-width: 550px) {

    .racing-hero {
        min-height: 330px;
        padding: 24px 14px;
        background-position: 52% center;
    }

    .racing-hero-content {
        width: 100%;
        max-width: 100%;
        padding: 18px 6px;
        box-sizing: border-box;
        text-align: center;
    }

    .racing-hero .vp-race-hero-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .racing-hero .eyebrow {
        display: block;
        text-align: center;
    }

    .racing-hero h1 {
        width: 100%;
        max-width: none;
        margin-left: auto;
        margin-right: auto;

        font-size: 30px;
        line-height: 1.06;

        text-align: center;
        word-break: normal;
        overflow-wrap: normal;
    }

    .racing-hero h1 span {
        display: block;
        width: 100%;
        white-space: nowrap;
        word-break: normal;
        overflow-wrap: normal;
    }

    .racing-hero p {
        width: 100%;
        max-width: 310px;
        margin-left: auto;
        margin-right: auto;

        font-size: 16px;
        line-height: 1.45;
        text-align: center;
    }
}

/* =========================================================
   V1V - Dedicated Football News Feed
   Applies only when news.js adds .football-feed to the
   dedicated /news/football latest-news container.
   ========================================================= */

#latest-news-grid.football-feed {
    display: block;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

#latest-news-grid.football-feed .football-feed-item {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 24px;
    padding: 22px 0;
    border-bottom: 1px solid #dedede;
    background: #ffffff;
}

#latest-news-grid.football-feed .football-feed-item:first-child {
    border-top: 1px solid #dedede;
}

#latest-news-grid.football-feed .football-feed-visual {
    position: relative;
    display: block;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    border-radius: 4px;
}

#latest-news-grid.football-feed .football-feed-competition-visual {
    position: absolute;
    z-index: 3;
    top: 0;
    right: 0;
    bottom: 0;
    width: 48%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

#latest-news-grid.football-feed .football-feed-competition-visual-pl {
    top: 12%;
    right: 3%;
    bottom: 12%;
    width: 43%;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
}

#latest-news-grid.football-feed
.football-feed-competition-visual-pl img {
    display: block;
    width: 82%;
    height: auto;
    max-width: 112px;
    max-height: 82%;
    object-fit: contain;
    opacity: 1;
}

#latest-news-grid.football-feed .football-feed-visual
.article-visual {
    min-height: 150px;
    height: 150px;
    border-radius: 4px;
}

#latest-news-grid.football-feed .football-feed-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#latest-news-grid.football-feed .football-feed-meta {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
}

#latest-news-grid.football-feed .football-feed-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 25px;
    padding: 0 7px;
    border-radius: 4px;
    background: #111111;
    color: #ffffff;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

#latest-news-grid.football-feed .football-feed-competition {
    color: #178542;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

#latest-news-grid.football-feed .football-feed-title {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.18;
    font-weight: 800;
}

#latest-news-grid.football-feed .football-feed-title a {
    color: #111111;
    text-decoration: none;
}

#latest-news-grid.football-feed .football-feed-title a:hover {
    color: #178542;
}

#latest-news-grid.football-feed .football-feed-summary {
    margin: 0 0 10px;
    color: #555555;
    font-size: 14px;
    line-height: 1.5;
}

#latest-news-grid.football-feed .football-feed-date {
    color: #8a8a8a;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 600;
}


/* Tablet */

@media (max-width: 900px) {

    #latest-news-grid.football-feed .football-feed-item {
        grid-template-columns: 210px minmax(0, 1fr);
        gap: 18px;
    }

    #latest-news-grid.football-feed .football-feed-visual
    .article-visual {
        min-height: 135px;
        height: 135px;
    }

    #latest-news-grid.football-feed .football-feed-title {
        font-size: 19px;
    }
}


/* Mobile */

@media (max-width: 600px) {

    #latest-news-grid.football-feed .football-feed-item {
        grid-template-columns: 124px minmax(0, 1fr);
        gap: 12px;
        padding: 14px 0;
    }

    #latest-news-grid.football-feed .football-feed-visual
    .article-visual {
        min-height: 94px;
        height: 94px;
        overflow: hidden;
        border-radius: 3px;
    }

    /*
     * Keep thumbnails compact on the archive feed.
     * The article title carries the primary information.
     */
    #latest-news-grid.football-feed
    .football-feed-visual
    .visual-center {
        transform: scale(0.68);
        transform-origin: center center;
    }

    #latest-news-grid.football-feed
    .football-feed-visual
    .vp-home-logo {
        max-width: 50px;
        max-height: 50px;
    }

    #latest-news-grid.football-feed
    .football-feed-competition-visual {
        width: 50%;
    }

    #latest-news-grid.football-feed
    .football-feed-competition-visual-pl {
        top: 10%;
        right: 3%;
        bottom: 10%;
        width: 44%;
        border-radius: 4px;
        background: rgba(255, 255, 255, 0.84);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
    }
    #latest-news-grid.football-feed
    .football-feed-competition-visual-pl img {
        width: 84%;
        height: auto;
        max-width: 55px;
        max-height: 80%;
        object-fit: contain;
        opacity: 1;
    }
    #latest-news-grid.football-feed .football-feed-meta {
        gap: 6px;
        margin-bottom: 5px;
    }

    #latest-news-grid.football-feed .football-feed-badge {
        min-width: 27px;
        height: 20px;
        padding: 0 5px;
        font-size: 8px;
    }

    #latest-news-grid.football-feed .football-feed-competition {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 9px;
    }

    #latest-news-grid.football-feed .football-feed-title {
        display: -webkit-box;
        overflow: hidden;
        margin-bottom: 5px;
        font-size: 15px;
        line-height: 1.22;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    #latest-news-grid.football-feed .football-feed-summary {
        display: none;
    }

    #latest-news-grid.football-feed .football-feed-date {
        font-size: 9px;
    }
}

/* ==========================================================
   V1V.3F.2 COMPETITION-BRANDED FOOTBALL FEED THUMBNAILS
   ========================================================== */

#latest-news-grid.football-feed
.football-feed-visual
.competition-branded-visual
.visual-center,

#latest-news-grid.football-feed
.football-feed-visual
.competition-branded-visual
.visual-category {
    display: none;
}

/*
 * The official competition mark replaces the generic
 * VALUEPLUS SPORTS NEWS / competition / FOOTBALL wording.
 * The ValuePlus shield and existing ValuePlus background remain.
 */
#latest-news-grid.football-feed
.football-feed-competition-visual-pl {
    top: 0;
    right: 0;
    bottom: 0;
    width: 58%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

#latest-news-grid.football-feed
.football-feed-competition-visual-pl img {
    display: block;

    width: 72%;
    height: 72%;

    max-width: 118px;
    max-height: 118px;

    object-fit: contain;
    opacity: 1;
}

/* Narrow football feed */
@media (max-width: 600px) {

    #latest-news-grid.football-feed
    .football-feed-competition-visual-pl {
        top: 0;
        right: 0;
        bottom: 0;
        width: 55%;

        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    #latest-news-grid.football-feed
    .football-feed-competition-visual-pl img {
        width: 60%;
        height: 60%;

        max-width: 48px;
        max-height: 48px;

        object-fit: contain;
    }
}

/* ==========================================================
   V1V.4C MATCH REPORT COMPETITION BRANDING
   Homepage Latest Match Reports only
   ========================================================== */

#match-reports-grid
.match-report-card
.article-visual-link {
    position: relative;
}

#match-reports-grid
.match-report-card
.competition-branded-visual
.visual-center,

#match-reports-grid
.match-report-card
.competition-branded-visual
.visual-category {
    display: none;
}

#match-reports-grid
.match-report-card
.football-feed-competition-visual {
    position: absolute;
    z-index: 3;

    top: 0;
    right: 0;
    bottom: 0;

    width: 58%;

    display: flex;
    align-items: center;
    justify-content: center;

    pointer-events: none;
}

#match-reports-grid
.match-report-card
.football-feed-competition-visual img {
    display: block;

    width: 72%;
    height: 72%;

    max-width: 118px;
    max-height: 118px;

    object-fit: contain;
}

@media (max-width: 600px) {

    #match-reports-grid
    .match-report-card
    .football-feed-competition-visual {
        width: 55%;
    }

    #match-reports-grid
    .match-report-card
    .football-feed-competition-visual img {
        width: 60%;
        height: 60%;

        max-width: 72px;
        max-height: 72px;
    }
}
/* ==========================================================
   V1V.5B HOMEPAGE LATEST SPORTS NEWS COMPETITION BRANDING
   Homepage six-card grid only
   ========================================================== */

#latest-news-grid:not(.football-feed)
.homepage-latest-card
.article-visual-link {
    position: relative;
}

#latest-news-grid:not(.football-feed)
.homepage-latest-card
.competition-branded-visual
.visual-center,

#latest-news-grid:not(.football-feed)
.homepage-latest-card
.competition-branded-visual
.visual-category {
    display: none;
}

#latest-news-grid:not(.football-feed)
.homepage-latest-card
.football-feed-competition-visual {
    position: absolute;
    z-index: 3;

    top: 0;
    right: 0;
    bottom: 0;

    width: 58%;

    display: flex;
    align-items: center;
    justify-content: center;

    pointer-events: none;
}

#latest-news-grid:not(.football-feed)
.homepage-latest-card
.football-feed-competition-visual img {
    display: block;

    width: 72%;
    height: 72%;

    max-width: 118px;
    max-height: 118px;

    object-fit: contain;
}

@media (max-width: 600px) {

    #latest-news-grid:not(.football-feed)
    .homepage-latest-card
    .football-feed-competition-visual {
        width: 55%;
    }

    #latest-news-grid:not(.football-feed)
    .homepage-latest-card
    .football-feed-competition-visual img {
        width: 60%;
        height: 60%;

        max-width: 72px;
        max-height: 72px;
    }
}
/* =========================================================
   V1W.5A.1 MULTI-LEAGUE TABLE SELECTOR
   ========================================================= */

.league-table-selector {
    display: flex;
    gap: 8px;
    padding: 12px 24px;
    overflow-x: auto;
    border-bottom: 1px solid #e7e7e7;
    scrollbar-width: thin;
}

.league-table-selector-button {
    flex: 0 0 auto;
    border: 1px solid #d8d8d8;
    border-radius: 999px;
    background: #fff;
    padding: 8px 13px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
}

.league-table-selector-button:hover {
    background: #f5f5f5;
}

.league-table-selector-button.active {
    background: #111;
    border-color: #111;
    color: #fff;
}

.league-conference + .league-conference {
    margin-top: 22px;
}

.league-conference-title {
    margin: 0;
    padding: 12px 16px;
    border-top: 1px solid #e7e7e7;
    border-bottom: 1px solid #e7e7e7;
    background: #f7f7f7;
    font-size: 15px;
    font-weight: 800;
}

@media (max-width: 700px) {

    .league-table-selector {
        gap: 6px;
        padding: 10px 12px;
    }

    .league-table-selector-button {
        padding: 7px 11px;
        font-size: 11px;
    }

    .league-conference + .league-conference {
        margin-top: 18px;
    }

    .league-conference-title {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* ==========================================================
   V1U.3C.2 NEXT MEETING COUNTDOWN
   Upcoming meeting only
   ========================================================== */

.next-meeting-panel {
    margin-bottom: 24px;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            #071007 0%,
            #111b11 100%
        );
    color: #ffffff;
}

.next-meeting-panel[hidden] {
    display: none !important;
}

.next-meeting-countdown-inner {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    grid-template-areas:
        "kicker clock"
        "details clock";

    align-items: center;

    gap:
        8px
        30px;

    padding:
        26px
        30px;
}

.next-meeting-kicker {
    grid-area: kicker;

    color: #61dc34;

    font-size: 12px;
    font-weight: 900;

    letter-spacing: 2px;
}

.next-meeting-details {
    grid-area: details;
    min-width: 0;
}

.next-meeting-details h2 {
    margin:
        0
        0
        6px;

    color: #ffffff;

    font-size: 29px;
    line-height: 1.1;
}

.next-meeting-date {
    color: #d7d7d7;

    font-size: 15px;
    font-weight: 700;
}

.next-meeting-feature {
    margin-top: 8px;

    color: #61dc34;

    font-size: 15px;
    font-weight: 800;
}

.next-meeting-clock {
    grid-area: clock;

    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 9px;
}

.next-meeting-time-unit {
    min-width: 70px;
    text-align: center;
}

.next-meeting-time-unit strong {
    display: block;

    color: #ffffff;

    font-size: 36px;
    font-weight: 900;

    line-height: 1;

    font-variant-numeric:
        tabular-nums;
}

.next-meeting-time-unit span {
    display: block;

    margin-top: 6px;

    color: #61dc34;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1.4px;
}

.next-meeting-time-separator {
    margin-top: -16px;

    color: #61dc34;

    font-size: 28px;
    font-weight: 900;
}

@media (max-width: 700px) {

    .next-meeting-panel {
        margin-bottom: 18px;
    }

    .next-meeting-countdown-inner {

        grid-template-columns:
            1fr;

        grid-template-areas:
            "kicker"
            "details"
            "clock";

        gap: 10px;

        padding:
            20px
            18px;
    }

    .next-meeting-details h2 {
        font-size: 23px;
    }

    .next-meeting-clock {
        justify-content: flex-start;

        margin-top: 8px;

        gap: 7px;
    }

    .next-meeting-time-unit {
        min-width: 58px;
    }

    .next-meeting-time-unit strong {
        font-size: 30px;
    }

    .next-meeting-time-separator {
        font-size: 23px;
    }
}

/* =========================================================
   V1U.3D.4 HOMEPAGE HORSE RACING SECTION
   Homepage presentation only.
   ========================================================= */

.homepage-racing-section {
    margin-top: 36px;
    margin-bottom: 42px;
}

.homepage-racing-heading {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 3px solid #111;
}

.homepage-racing-heading h2 {
    margin-bottom: 0;
}

.homepage-racing-heading > a {
    white-space: nowrap;
}

.homepage-next-meeting-panel {
    margin-top: 0;
    margin-bottom: 0;
}

.homepage-next-meeting-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

@media (max-width: 700px) {

    .homepage-racing-section {
        margin-top: 28px;
        margin-bottom: 32px;
    }

    .homepage-racing-heading {
        margin-bottom: 14px;
    }
}

/* ==========================================================
   V1U.4E.3 LIVE ODDS
   Native Mauritius Horse Racing odds page.
   All selectors isolated to live-odds-*.
   ========================================================== */

.live-odds-page {
    margin: 0;
    min-height: 100vh;
    background: #f4f6f8;
    color: #17202a;
}

.live-odds-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 60px;
}

.live-odds-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.live-odds-back {
    color: #263238;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-decoration: none;
}

.live-odds-back:hover {
    text-decoration: underline;
}

.live-odds-brand {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
}

.live-odds-hero {
    background: #101820;
    color: #fff;
    border-radius: 16px;
    padding: 30px 32px;
    margin-bottom: 18px;
}

.live-odds-eyebrow {
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
    opacity: .78;
}

.live-odds-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 6vw, 58px);
    line-height: .98;
    letter-spacing: -.035em;
}

.live-odds-meeting {
    margin-top: 17px;
    font-size: 17px;
    font-weight: 800;
}

.live-odds-updated {
    margin-top: 7px;
    font-size: 13px;
    opacity: .76;
}

.live-odds-status {
    margin: 18px 0;
    padding: 18px;
    border: 1px solid #d9dee3;
    border-radius: 12px;
    background: #fff;
    font-weight: 700;
}

.live-odds-status[hidden] {
    display: none;
}

.live-odds-tabs {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    margin: 18px 0;
}

.live-odds-tab {
    appearance: none;
    border: 1px solid #cfd5da;
    border-radius: 10px;
    background: #fff;
    color: #263238;
    padding: 13px 8px;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .03em;
    transition:
        background .15s ease,
        color .15s ease,
        border-color .15s ease,
        transform .15s ease;
}

.live-odds-tab:hover {
    border-color: #101820;
    transform: translateY(-1px);
}

.live-odds-tab.is-active {
    background: #101820;
    border-color: #101820;
    color: #fff;
}

.live-odds-race {
    overflow: hidden;
    border: 1px solid #dfe3e6;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .06);
}

.live-odds-race-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 26px;
    border-bottom: 1px solid #e7eaed;
}

.live-odds-race-label {
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
}

.live-odds-race-head h2 {
    max-width: 760px;
    margin: 0;
    color: #17202a;
    font-size: clamp(21px, 3vw, 30px);
    line-height: 1.15;
}

.live-odds-race-meta {
    margin-top: 9px;
    color: #65717b;
    font-size: 14px;
    font-weight: 800;
}

.live-odds-bet-race {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 9px;
    background: #101820;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-decoration: none;
}

.live-odds-bet-race:hover {
    opacity: .88;
}

.live-odds-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.live-odds-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.live-odds-table th {
    padding: 13px 14px;
    border-bottom: 1px solid #dfe3e6;
    background: #f7f8f9;
    color: #65717b;
    text-align: left;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .07em;
}

.live-odds-table td {
    padding: 15px 14px;
    border-bottom: 1px solid #edf0f2;
    vertical-align: middle;
    font-size: 14px;
}

.live-odds-table tbody tr:last-child td {
    border-bottom: 0;
}

.live-odds-table tbody tr:hover {
    background: #fafbfb;
}

.live-odds-number {
    width: 50px;
    font-weight: 900;
}

.live-odds-horse {
    min-width: 190px;
    font-weight: 900;
}

.live-odds-horse a {
    color: #17202a;
    text-decoration: none;
}

.live-odds-horse a:hover {
    text-decoration: underline;
}

.live-odds-price {
    width: 92px;
    text-align: center;
}

.live-odds-price a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 66px;
    min-height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    background: #101820;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
}

.live-odds-price a:hover {
    opacity: .84;
}

.live-odds-unavailable {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 66px;
    min-height: 38px;
    border-radius: 8px;
    background: #eef1f3;
    color: #89939b;
    font-weight: 800;
}

.live-odds-footnote {
    padding: 15px 26px 18px;
    border-top: 1px solid #edf0f2;
    color: #75808a;
    font-size: 12px;
    line-height: 1.55;
}

.live-odds-empty {
    padding: 36px 24px;
    text-align: center;
    font-weight: 800;
}


/* Tablet */

@media (max-width: 800px) {

    .live-odds-shell {
        width: min(100% - 24px, 1180px);
        padding-top: 16px;
    }

    .live-odds-hero {
        padding: 24px 22px;
    }

    .live-odds-tabs {
        display: flex;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .live-odds-tab {
        flex: 0 0 92px;
    }

    .live-odds-race-head {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px;
    }

    .live-odds-bet-race {
        width: 100%;
        box-sizing: border-box;
    }

}


/* Mobile */

@media (max-width: 560px) {

    .live-odds-shell {
        width: 100%;
        padding: 0 0 40px;
    }

    .live-odds-topbar {
        padding: 15px 16px;
        margin: 0;
    }

    .live-odds-brand {
        font-size: 11px;
    }

    .live-odds-hero {
        margin: 0;
        border-radius: 0;
        padding: 24px 16px;
    }

    .live-odds-meeting {
        font-size: 15px;
    }

    .live-odds-status {
        margin: 14px 12px;
    }

    .live-odds-tabs {
        margin: 14px 12px;
    }

    .live-odds-race {
        margin: 0 12px;
        border-radius: 12px;
    }

    .live-odds-race-head {
        padding: 18px 16px;
    }

    .live-odds-table {
        min-width: 720px;
    }

    .live-odds-table th {
        padding: 11px 12px;
    }

    .live-odds-table td {
        padding: 13px 12px;
    }

    .live-odds-footnote {
        padding: 14px 16px 17px;
    }

}


/* ==========================================================
   V1U.4E.7B VALUEPLUS LIVE ODDS
   Vertical layout + ValuePlus branding
   ========================================================== */


/* ----------------------------------------------------------
   Sticky race selector
   ---------------------------------------------------------- */

.live-odds-tabs {
    position: sticky;
    top: 0;
    z-index: 30;

    padding: 10px 0;

    margin-top: 8px;
    margin-bottom: 12px;

    background: #f4f6f8;
}


/* ----------------------------------------------------------
   Vertical race separation
   ---------------------------------------------------------- */

.live-odds-race {
    margin-bottom: 22px;

    scroll-margin-top: 88px;

    border-top: 4px solid #55e52b;
}

.live-odds-race:last-child {
    margin-bottom: 0;
}


/* ----------------------------------------------------------
   Hero ValuePlus accent
   ---------------------------------------------------------- */

.live-odds-hero {
    border-bottom: 4px solid #55e52b;
}


/* ----------------------------------------------------------
   Race label
   ---------------------------------------------------------- */

.live-odds-race-label {
    color: #3fcf1c;
}


/* ----------------------------------------------------------
   Race selector
   ---------------------------------------------------------- */

.live-odds-tab {
    transition:
        background .15s ease,
        color .15s ease,
        border-color .15s ease,
        transform .15s ease,
        box-shadow .15s ease;
}

.live-odds-tab:hover {
    border-color: #55e52b;

    box-shadow:
        0 0 0 1px #55e52b;
}

.live-odds-tab:focus-visible {
    outline:
        3px solid rgba(85, 229, 43, .35);

    outline-offset: 2px;
}


/* ----------------------------------------------------------
   BET ON RACE
   ---------------------------------------------------------- */

.live-odds-bet-race {
    background: #55e52b;
    color: #0d151a;

    transition:
        background .15s ease,
        transform .15s ease,
        box-shadow .15s ease;
}

.live-odds-bet-race:hover {
    background: #49d823;

    opacity: 1;

    transform: translateY(-1px);

    box-shadow:
        0 4px 12px rgba(0, 0, 0, .14);
}


/* ----------------------------------------------------------
   Odds
   Dark normally, ValuePlus green on hover
   ---------------------------------------------------------- */

.live-odds-price a {
    transition:
        background .15s ease,
        color .15s ease,
        transform .15s ease,
        box-shadow .15s ease;
}

.live-odds-price a:hover {
    background: #55e52b;
    color: #0d151a;

    opacity: 1;

    transform: translateY(-1px);

    box-shadow:
        0 3px 10px rgba(0, 0, 0, .14);
}

.live-odds-price a:focus-visible {
    outline:
        3px solid rgba(85, 229, 43, .40);

    outline-offset: 2px;
}


/* ----------------------------------------------------------
   Horse interaction
   ---------------------------------------------------------- */

.live-odds-horse a:hover {
    color: #35bd17;
}


/* ----------------------------------------------------------
   WIN / PLACE headings
   ---------------------------------------------------------- */

.live-odds-table th:nth-last-child(2),
.live-odds-table th:last-child {
    color: #35bd17;
}


/* ----------------------------------------------------------
   Tablet
   ---------------------------------------------------------- */

@media (max-width: 800px) {

    .live-odds-tabs {
        top: 0;

        padding-top: 8px;
        padding-bottom: 8px;
    }

    .live-odds-race {
        margin-bottom: 16px;

        scroll-margin-top: 78px;
    }

}


/* ----------------------------------------------------------
   Mobile
   ---------------------------------------------------------- */

@media (max-width: 560px) {

    .live-odds-tabs {
        margin-left: 0;
        margin-right: 0;

        padding-left: 12px;
        padding-right: 12px;
    }

    .live-odds-race {
        margin-bottom: 14px;
    }

}


/* ==========================================================
   V1U.4E.7C GREEN HERO
   ValuePlus Live Odds hero branding
   ========================================================== */

.live-odds-hero {
    background: #55e52b;
    color: #0d151a;
    border-bottom: 0;
}


/* Main LIVE ODDS heading */

.live-odds-hero h1 {
    color: #0d151a;
}


/* Mauritius Horse Racing eyebrow */

.live-odds-hero .live-odds-eyebrow {
    color: #0d151a;
}


/* Meeting 17 / Champ De Mars / date */

.live-odds-hero #live-odds-meeting {
    color: #0d151a;
}


/* Updated timestamp */

.live-odds-hero #live-odds-updated {
    color: rgba(13, 21, 26, .72);
}


/* ==========================================================
   V1U.4E.8C MOBILE RUNNER COMPOSITION

   /fwsodds/racedetails-inspired DATA COMPOSITION only.
   Existing ValuePlus News visual design retained.
   Desktop table unchanged.
   ========================================================== */


/* Mobile-specific information is invisible on desktop. */

.live-odds-mobile-details,
.live-odds-mobile-price-label {
    display: none;
}


@media (max-width: 560px) {


    /* ------------------------------------------------------
       Remove desktop-table horizontal scrolling
       ------------------------------------------------------ */

    .live-odds-table-wrap {
        overflow-x: hidden;
    }


    .live-odds-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }


    /* ------------------------------------------------------
       Four visible mobile columns:
       NO | HORSE/DETAILS | WIN | PLACE

       Original JOCKEY and TRAINER columns are hidden because
       those values are composed underneath the horse name.
       ------------------------------------------------------ */

    .live-odds-table th:nth-child(3),
    .live-odds-table th:nth-child(4),
    .live-odds-table td:nth-child(3),
    .live-odds-table td:nth-child(4) {
        display: none;
    }


    .live-odds-table th:nth-child(1) {
        width: 34px;
    }


    .live-odds-table th:nth-child(2) {
        width: auto;
    }


    .live-odds-table th:nth-child(5),
    .live-odds-table th:nth-child(6) {
        width: 54px;
        text-align: center;
    }


    /* ------------------------------------------------------
       Header
       ------------------------------------------------------ */

    .live-odds-table th {
        padding: 9px 4px;
        font-size: 9px;
        white-space: nowrap;
    }


    /*
       WIN / PLACE are labelled inside each runner row,
       so remove the duplicated desktop headings on mobile.
    */

    .live-odds-table thead th:nth-child(5),
    .live-odds-table thead th:nth-child(6) {
        font-size: 0;
        color: transparent;
    }


    /* ------------------------------------------------------
       Runner row
       ------------------------------------------------------ */

    .live-odds-table td {
        padding: 12px 4px;
        vertical-align: top;
    }


    .live-odds-number {
        width: 34px;
        padding-top: 14px !important;
        padding-left: 7px !important;
        padding-right: 2px !important;

        font-size: 14px !important;
        font-weight: 900;
    }


    /* ------------------------------------------------------
       Horse + mobile runner information
       ------------------------------------------------------ */

    .live-odds-horse {
        min-width: 0;
        padding-top: 12px !important;
        padding-left: 2px !important;
        padding-right: 3px !important;
    }


    .live-odds-horse > a {
        display: block;

        color: #17202a;

        font-size: 13px;
        font-weight: 900;
        line-height: 1.15;

        overflow-wrap: anywhere;
        word-break: normal;
    }


    .live-odds-mobile-details {
        display: block;

        margin-top: 6px;

        color: #53616c;

        font-size: 8px;
        font-weight: 700;
        line-height: 1.45;
    }


    .live-odds-mobile-jockey {
        display: block;
        margin-bottom: 2px;
    }


    .live-odds-mobile-meta {
        display: flex;
        flex-wrap: wrap;

        gap: 1px 8px;
    }


    .live-odds-mobile-details b {
        color: #7b8790;

        font-size: 7px;
        font-weight: 900;
        letter-spacing: .02em;
    }


    /* ------------------------------------------------------
       WIN / PLACE right-hand composition
       ------------------------------------------------------ */

    .live-odds-price {
        width: 54px;

        padding-top: 10px !important;
        padding-left: 2px !important;
        padding-right: 2px !important;

        text-align: center;
        vertical-align: top !important;
    }


    .live-odds-mobile-price-label {
        display: block;

        margin-bottom: 3px;

        color: #17202a;

        font-size: 7px;
        font-weight: 900;
        line-height: 1;
        letter-spacing: .04em;
    }


    .live-odds-price a {
        display: inline-block;

        min-width: 0;
        min-height: 0;

        padding: 0;

        border-radius: 0;
        background: transparent;

        color: #35cf17;

        font-size: 15px;
        font-weight: 900;
        line-height: 1.1;
    }


    .live-odds-price a:hover {
        background: transparent;
        color: #2ebd12;

        transform: none;
        box-shadow: none;
    }


    .live-odds-unavailable {
        display: inline-block;

        min-width: 0;
        min-height: 0;

        padding: 0;

        background: transparent;
        color: #89939b;

        font-size: 15px;
        line-height: 1.1;
    }


    /* ------------------------------------------------------
       Preserve clean white ValuePlus News rows
       ------------------------------------------------------ */

    .live-odds-table tbody tr:hover {
        background: transparent;
    }

}


/* ==========================================================
   V1U.4E.9A DESKTOP KG DRAW

   Desktop:
   NO | HORSE | JOCKEY | TRAINER | KG | DRAW | WIN | PLACE

   Mobile:
   Keep V1U.4E.8C compact FWSOdds-style composition.
   ========================================================== */

.live-odds-weight,
.live-odds-draw {
    text-align: center;
    white-space: nowrap;
}


/* ---------------- DESKTOP ---------------- */

@media (min-width: 561px) {

    .live-odds-table th:nth-child(1) {
        width: 4%;
    }

    .live-odds-table th:nth-child(2) {
        width: 30%;
    }

    .live-odds-table th:nth-child(3) {
        width: 22%;
    }

    .live-odds-table th:nth-child(4) {
        width: 14%;
    }

    .live-odds-table th:nth-child(5),
    .live-odds-table th:nth-child(6) {
        width: 7%;
        text-align: center;
    }

    .live-odds-table th:nth-child(7),
    .live-odds-table th:nth-child(8) {
        width: 8%;
        text-align: center;
    }

}


/* ---------------- MOBILE ---------------- */

@media (max-width: 560px) {

    /*
       Columns after V1U.4E.9A:

       1 NO
       2 HORSE
       3 JOCKEY
       4 TRAINER
       5 KG
       6 DRAW
       7 WIN
       8 PLACE

       Jockey/Trainer/KG/Draw already appear inside the
       compact horse composition, so their desktop cells
       remain hidden on mobile.
    */

    .live-odds-table th:nth-child(3),
    .live-odds-table th:nth-child(4),
    .live-odds-table th:nth-child(5),
    .live-odds-table th:nth-child(6),

    .live-odds-table td:nth-child(3),
    .live-odds-table td:nth-child(4),
    .live-odds-table td:nth-child(5),
    .live-odds-table td:nth-child(6) {
        display: none !important;
    }


    /*
       WIN and PLACE moved from old positions 5/6
       to positions 7/8.
    */

    .live-odds-table th:nth-child(7),
    .live-odds-table th:nth-child(8),

    .live-odds-table td:nth-child(7),
    .live-odds-table td:nth-child(8) {
        display: table-cell !important;
    }


    .live-odds-table th:nth-child(1),
    .live-odds-table td:nth-child(1) {
        width: 34px;
    }


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


    .live-odds-table th:nth-child(7),
    .live-odds-table th:nth-child(8),

    .live-odds-table td:nth-child(7),
    .live-odds-table td:nth-child(8) {
        width: 54px;
        text-align: center;
    }

}


/* ==========================================================
   V1U.4E.10 MOBILE RACE CARD OUTLINE CLEANUP

   Removes the doubled/behind-card appearance caused by the
   green top border meeting the rounded outer race border.
   Desktop remains unchanged.
   ========================================================== */

@media (max-width: 560px) {

    .live-odds-race {
        position: relative;

        /*
           Remove the physical green top border on mobile.
           A contained accent is drawn inside the card instead.
        */
        border-top:
            1px solid #dfe3e6;

        overflow: hidden;
    }


    /*
       Single contained ValuePlus green accent.
       Because this sits INSIDE the card, it cannot create
       the visible "card behind card" rounded outline.
    */

    .live-odds-race::before {
        content: "";

        position: absolute;
        top: 0;
        left: 0;
        right: 0;

        height: 4px;

        background: #55e52b;

        z-index: 2;

        pointer-events: none;
    }


    /*
       Ensure race header/content paints normally underneath
       the contained accent.
    */

    .live-odds-race-head,
    .live-odds-table-wrap {
        position: relative;
        z-index: 1;
    }

}


/* ==========================================================
   V1U.4E.11B - RACING CALENDAR LIVE ODDS BUTTON
   ========================================================== */

.racing-live-odds-button {
    background: #63dc36;
    color: #071007;
}

.racing-live-odds-button:hover {
    background: #55ca2c;
    color: #071007;
}

/* ==========================================================
   V1U.4E.12G.3C - HORSE RACING RESULTS
   ========================================================== */

.racing-results-page {
    margin: 0;
    background: #f3f3f3;
    color: #111;
}

.racing-results-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 60px;
}

.racing-results-hero {
    background: #55e52b;
    padding: 26px 28px 30px;
    border-radius: 8px;
}

.racing-results-back {
    display: inline-flex;
    align-items: center;
    color: #111;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    margin-bottom: 24px;
}

.racing-results-kicker {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
}

.racing-results-hero h1 {
    margin: 4px 0 8px;
    font-size: clamp(34px, 6vw, 64px);
    line-height: .95;
    font-weight: 950;
}

.racing-results-meeting {
    font-size: 15px;
    font-weight: 800;
}

.racing-results-status {
    margin-top: 18px;
    padding: 22px;
    background: #fff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
}

.racing-results-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 0;
    background: #f3f3f3;
    scrollbar-width: thin;
}

.racing-results-nav a {
    flex: 0 0 auto;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    background: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 900;
}

.racing-results-content {
    display: grid;
    gap: 18px;
}

.racing-result-race {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.racing-result-race-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
    padding: 20px 22px;
    border-bottom: 1px solid #ddd;
}

.racing-result-race-number {
    color: #258b0b;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .06em;
}

.racing-result-race-header h2 {
    margin: 5px 0 0;
    font-size: 22px;
    line-height: 1.15;
}

.racing-result-race-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.racing-result-race-meta span {
    background: #111;
    color: #fff;
    padding: 6px 9px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 900;
}

.racing-result-table-head,
.racing-result-runner {
    display: grid;
    grid-template-columns:
        72px
        62px
        minmax(180px, 1.5fr)
        minmax(150px, 1fr)
        minmax(150px, 1fr)
        65px
        65px;
    align-items: center;
}

.racing-result-table-head {
    min-height: 38px;
    background: #111;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}

.racing-result-table-head > div,
.racing-result-runner > div {
    padding: 8px 10px;
}

.racing-result-runner {
    min-height: 58px;
    border-bottom: 1px solid #e4e4e4;
    font-size: 13px;
}

.racing-result-runner:last-child {
    border-bottom: 0;
}

.racing-result-position {
    font-size: 14px;
    font-weight: 950;
    color: #258b0b;
}

.racing-result-number {
    font-size: 14px;
    font-weight: 950;
}

.racing-result-horse strong {
    font-size: 14px;
}

.racing-result-mobile-meta {
    display: none;
}

.racing-result-empty {
    padding: 20px 22px;
    font-weight: 800;
}


@media (max-width: 700px) {

    .racing-results-shell {
        width: min(100% - 20px, 1180px);
        padding-top: 10px;
    }

    .racing-results-hero {
        padding: 20px 18px 22px;
    }

    .racing-results-back {
        margin-bottom: 18px;
    }

    .racing-results-meeting {
        font-size: 13px;
    }

    .racing-results-nav {
        margin-left: -10px;
        margin-right: -10px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .racing-result-race {
        border-left: 4px solid #55e52b;
    }

    .racing-result-race-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 16px 14px;
    }

    .racing-result-race-header h2 {
        font-size: 18px;
    }

    .racing-result-race-meta {
        justify-content: flex-start;
    }

    .racing-result-table-head {
        display: none;
    }

    .racing-result-runner {
        grid-template-columns:
            54px
            44px
            minmax(0, 1fr);
        min-height: 82px;
        align-items: start;
        padding: 12px 8px;
    }

    .racing-result-runner > div {
        padding: 2px 6px;
    }

    .racing-result-position {
        font-size: 15px;
    }

    .racing-result-number {
        font-size: 15px;
    }

    .racing-result-horse strong {
        display: block;
        font-size: 14px;
        line-height: 1.2;
    }

    .racing-result-jockey,
    .racing-result-trainer,
    .racing-result-weight,
    .racing-result-draw {
        display: none;
    }

    .racing-result-mobile-meta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5px 10px;
        margin-top: 8px;
    }

    .racing-result-mobile-meta span {
        min-width: 0;
        color: #666;
        font-size: 8px;
        font-weight: 900;
        line-height: 1.15;
    }

    .racing-result-mobile-meta b {
        display: block;
        margin-top: 2px;
        color: #111;
        font-size: 10px;
        overflow-wrap: anywhere;
    }
}

/* ==========================================================
   V1U.5C.2 VALUEPLUS RACING PAGE BRANDING
   Shared Live Odds + Results header/footer
   ========================================================== */

.vp-racing-topbar {
    align-items: center;
    background: #0d110e;
    border-bottom: 3px solid #55df2b;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 18px;
    min-height: 72px;
    padding: 10px 24px;
    width: 100%;
}

.vp-racing-back {
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    justify-self: start;
    text-decoration: none;
}

.vp-racing-back:hover {
    color: #55df2b;
}

.vp-racing-bet {
    align-items: center;
    background: #55df2b;
    border-radius: 7px;
    color: #071007;
    display: inline-flex;
    font-size: 14px;
    font-weight: 900;
    justify-content: center;
    min-height: 42px;
    padding: 0 24px;
    text-decoration: none;
    white-space: nowrap;
}

.vp-racing-bet:hover {
    background: #64ee3b;
}

.vp-racing-brand {
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    justify-self: end;
    letter-spacing: -0.8px;
    text-decoration: none;
    white-space: nowrap;
}

.vp-racing-brand span {
    color: #55df2b;
}

.vp-racing-footer {
    background: #101210;
    color: #bbbbbb;
    margin-top: 28px;
}

.vp-racing-footer .footer-inner {
    max-width: 1280px;
}

.vp-racing-footer strong {
    color: #ffffff;
}

.live-odds-shell .vp-racing-topbar {
    margin-left: 0;
    margin-right: 0;
}

.racing-results-topbar {
    position: relative;
    z-index: 10;
}

@media (max-width: 550px) {

    .vp-racing-topbar {
        gap: 8px;
        grid-template-columns: 1fr auto 1fr;
        min-height: 58px;
        padding: 7px 12px;
    }

    .vp-racing-back {
        font-size: 12px;
        line-height: 1.15;
    }

    .vp-racing-bet {
        border-radius: 6px;
        font-size: 12px;
        min-height: 36px;
        padding: 0 14px;
    }

    .vp-racing-brand {
        font-size: 17px;
        letter-spacing: -0.4px;
    }

    .vp-racing-footer {
        margin-top: 20px;
    }

    .vp-racing-footer .footer-inner {
        padding: 25px 16px;
    }
}



