/* Racing Today Hero Component */
/* Spacing scale: multiples of 8px (1rem = 10px) */
/* 0.8rem=8px | 1.6rem=16px | 2.4rem=24px | 3.2rem=32px | 4.0rem=40px | 4.8rem=48px */

.racing-today-hero {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 3.2rem 3.6rem;
    color: #000000;
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
}

.racing-today-hero__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.6rem;
    /* border-bottom: 1px solid rgba(0, 0, 0, 0.1); */
    margin-bottom: 2.4rem;
}

.racing-today-hero__title {
    font-size: clamp(2.4rem, 0.8rem + 2vw, 4.8rem);
    /* 24px → 48px */
    font-weight: 700;
    margin: 0;
    color: #000000;
    text-transform: none;
}

.racing-today-hero__bet-btn-block {
    display: flex;
    gap: 1.6rem;
}

.racing-today-hero__bet-btn {
    background-color: #E2231A;
    color: #fff !important;
    font-weight: 700;
    font-size: clamp(1.6rem, 0.8rem + 1vw, 2.4rem);
    /* 16px → 24px */
    padding: 0.5em 1.6em;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    /* 8px */
    transition: transform 0.3s;
    margin-left: auto;
}

.racing-today-hero__bet-btn:hover {
    transform: scale(1.03);
    color: #fff !important;
    text-decoration: none !important;
}

.racing-today-hero__bet-arrow {
    display: flex;
    line-height: 1;
}

.racing-today-hero__details {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex: 0 100%;
}

.racing-today-hero__col {
    display: flex;
    flex-direction: column;
    padding: 0 1.6rem;
    /* 16px */
}

.racing-today-hero__col:first-child {
    padding-left: 0;
}

.racing-today-hero__col:last-child {
    padding-right: 0;
}

.racing-today-hero__label {
    color: #E2231A;
    font-size: clamp(1.6rem, 0.8rem + 2vw, 2.4rem);
    /* 16px → 24px */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2.4rem;
}

.racing-today-hero__value {
    font-size: clamp(1.6rem, 0.8rem + 2vw, 4.0rem);
    /* 16px → 40px */
    font-weight: 600;
    color: #000000;
    white-space: nowrap;
}

.racing-today-hero__countdown {
    font-size: clamp(1.6rem, 0.8rem + 2vw, 4.0rem);
    /* 16px → 40px */
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: right;
    color: #E2231A;
}

.racing-today-hero__divider {
    /* width: 1px; */
    display: none;
    background-color: rgba(0, 0, 0, 0.15);
    align-self: stretch;
    flex-shrink: 0;
}

.racing-today-hero__fallback {
    font-size: 1.6rem;
    /* 16px */
    color: #666;
}

.racing-today-hero__fallback p {
    margin: 0;
    font-size: 1.1em;
    font-weight: 500;
    color: black;
    text-align: center;
}

.racing-today-hero__header {
    flex: 0 30%;
}

.racing-today-hero__buttons {
    flex: 0 70%;
    display: flex;
    justify-content: flex-end;
    padding-bottom: 1.6rem;
    margin-bottom: 2.4rem;
}


/* Responsive: stack columns on mobile */
@media (max-width: 767px) {
    .racing-today-hero {
        padding: 1.6rem 2.4rem;
        /* 16px 24px */
    }

    .racing-today-hero__header {
        flex-wrap: wrap;
        gap: 0.8rem;
        flex: 0 100%;
        margin-bottom: 1em;
        /* 8px */
    }

    .racing-today-hero__buttons {
        flex: 0 100%;
        order: 3;
        justify-content: flex-start;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .racing-today-hero__details {
        flex-direction: column;
        gap: 1.6rem;
        margin-bottom: 1.6em;
        /* 16px */
    }

    .racing-today-hero__bet-btn-block {
        flex: 0 100%;
    }

    .racing-today-hero__bet-btn {
        width: 100%;
    }

    .racing-today-hero__bet-btn:first-child {
        display: flex;
        justify-content: space-around;
    }

    .racing-today-hero__col {
        padding: 0;
    }

    .racing-today-hero__divider {
        width: 100%;
        height: 1px;
    }

    .racing-today-hero__countdown {
        font-size: 2.4rem;
        text-align: left;
    }

    .racing-today-hero__label {
        margin-bottom: 1rem;
    }

    .racing-today-hero__bet-btn {
        padding: 0.6rem 1rem;
    }
}


.racing-today-hero__loader {
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    font-size: 1.1em;
    flex: 0 100%;
}

.racing-today_spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #E12726;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}