﻿.horses_wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.horses_container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .horses_container.horseracing {
        gap: 4px;
    }

.horses_header {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.horses_media_container {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-blue);
}

.horses_media_nav {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.horses_media_nav_button {
    width: 100%;
    height: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    background-color: var(--button-default);
    border: 1px solid var(--border-blue);
    border-radius: 48px;
}

    .horses_media_nav_button:focus,
    .horses_media_nav_button:active,
    .horses_media_nav_button:hover {
        color: var(--text-state);
        background-color: var(--button-state);
    }

.horses_media_nav_link {
    width: 100%;
    height: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    background-color: var(--button-default);
    border: 1px solid var(--border-blue);
    border-radius: 48px;
}

    .horses_media_nav_link:focus,
    .horses_media_nav_link:active,
    .horses_media_nav_link:hover {
        color: var(--text-state);
        background-color: var(--button-state);
    }

    .horses_body {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

.hr_podcast_container {
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 4px;
    background-color: var(--surface-1);
    border-radius: 8px;
}

    .hr_podcast_container[data-active="true"] {
        display: flex;
    }

.hr_podcast_header {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid var(--border-blue);
}

.hr_podcast_header_title {
    font-weight: 600;
}

.close_hr_podcast_button {
    width: 36px;
    height: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--button-default);
    border: 1px solid var(--border-blue);
    border-radius: 50%;
}

    .close_hr_podcast_button:focus,
    .close_hr_podcast_button:active,
    .close_hr_podcast_button:hover {
        color: var(--text-state);
        background-color: var(--button-state);
    }

    .hr_podcast_body {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

.hr_podcast_message {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hr_podcast_message_text {
    width: 100%;
    display: block;
    padding: 4px;
    text-align: center;
}

    .hr_podcast_message_text a {
        font-weight: 600;
        text-decoration: underline;
    }

.live_hr_streaming_container {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    background-color: var(--opacity);
    border-radius: 8px;
}

.live_hr_stream_message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.live_hr_stream_message_text a {
    font-weight: 600;
    text-decoration: underline;
}

.close_hr_stream_message_button {
    width: 32px;
    height: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 0 0 auto;
    background-color: var(--button-default);
    border: 1px solid var(--border-blue);
    border-radius: 50%;
    z-index: 1;
}

    .close_hr_stream_message_button:focus,
    .close_hr_stream_message_button:active,
    .close_hr_stream_message_button:hover {
        color: var(--text-state);
        background-color: var(--button-state);
    }

    .live_hr_stream_frame {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .live_hr_stream_frame iframe {
        width: 100%;
        height: 250px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

.horses {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}

.horses_coupon_info_container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.horses_coupon_info_description {
    width: 100%;
    min-height: 36px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    border-radius: 48px;
}

.horses_coupon_info_description_text {
    font-weight: 600;
}

.horses_card {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--surface-1);
    border-radius: 8px;
}

.horses_card_header {
    width: 100%;
    min-height: 72px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 4px;
    border-bottom: 1px solid var(--border-blue);
}

.horses_card_header_group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding-left: 2px;
}

    .horses_card_header_group:nth-child(1) {
        flex: 1;
    }

    .horses_card_header_group:nth-child(2) {
        flex: 0;
    }

.flag_icon {
    min-width: 24px;
    min-height: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .flag_icon img {
        width: 100%;
        max-width: 24px;
        height: auto;
        display: block;
    }

.horses_card_header_title {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.horses_card_header_title_text {
    font-size: 12px;
    font-weight: 600;
}

.horses_card_header_date_text {
    font-size: 12px;
    font-weight: 600;
}

.horses_card_header_track {
    font-size: 12px;
    font-weight: 600;
}

.live_hr_streaming_button {
    width: 84px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background-color: var(--button-default);
    border: 1px solid var(--border-blue);
    border-radius: 8px;
}

    .live_hr_streaming_button:focus,
    .live_hr_streaming_button:active,
    .live_hr_streaming_button:hover {
        background-color: var(--button-state);
    }

    .live_hr_streaming_icon {
        width: 24px;
        height: 24px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

.live_hr_stream_text {
    font-size: 12px;
    font-weight: 600;
}

.live_hr_streaming_button:focus .live_hr_stream_text,
.live_hr_streaming_button:active .live_hr_stream_text,
.live_hr_streaming_button:hover .live_hr_stream_text {
    color: var(--text-state);
}

.horses_card_header_market_type {
    min-width: 64px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
}

.horses_card_header_market_type_text {
    font-size: 12px;
}

.horses_card_body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.horse_card_body_message {
    padding: 16px 0;
}

.horse_card_body_results {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px;
}

.horse_card_body_results_text {
    width: 100%;
    display: none;
    flex-direction: row;
    align-items: center;
    padding: 8px;
}

    .horse_card_body_results_text[data-active="true"] {
        display: flex;
    }

.horses_card_body_participants {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 4px;
}

.horse_card_body_participant_group {
    width: 100%;
    min-height: 36px;
    display: none;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 1px 2px;
}

    .horse_card_body_participant_group:nth-child(-n+5) {
        display: flex;
    }

.horses_card_body_participants[data-active="true"] .horse_card_body_participant_group {
    display: flex;
}

.horse_card_body_participant_info {
    min-height: 48px;
    display: flex;
    flex: 1;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    background-color: var(--surface-2);
    border-radius: 48px;
}

.participant_jockey_silk {
    min-width: 24px;
    height: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.participant_jockey_silk_number {
    width: 24px;
    height: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .participant_jockey_silk_number.no_image[data-number="1"] {
        color: #ffffff;
        background-color: #f44336;
    }

    .participant_jockey_silk_number.no_image[data-number="2"] {
        color: #000000;
        background-color: #FFFFFF;
    }

    .participant_jockey_silk_number.no_image[data-number="3"] {
        color: #ffffff;
        background-color: #3F51B5;
    }

    .participant_jockey_silk_number.no_image[data-number="4"] {
        color: #000000;
        background-color: #FFEB3B;
    }

    .participant_jockey_silk_number.no_image[data-number="5"] {
        color: #ffffff;
        background-color: #4CAF50;
    }

    .participant_jockey_silk_number.no_image[data-number="6"] {
        color: #D4AF34;
        background-color: #2E2923;
    }

    .participant_jockey_silk_number.no_image[data-number="7"] {
        color: #000000;
        background-color: #FF5722;
    }

    .participant_jockey_silk_number.no_image[data-number="8"] {
        color: #000000;
        background-color: #E91E63;
    }

    .participant_jockey_silk_number.no_image[data-number="9"] {
        color: #000000;
        background-color: #00BCD4;
    }

    .participant_jockey_silk_number.no_image[data-number="10"] {
        color: #ffffff;
        background-color: #673AB7;
    }

    .participant_jockey_silk_number.no_image[data-number="11"] {
        color: #f44336;
        background-color: #9E9E9E;
    }

    .participant_jockey_silk_number.no_image[data-number="12"] {
        color: #000000;
        background-color: #CDDC39;
    }

    .participant_jockey_silk_number.no_image[data-number="13"] {
        color: #ffffff;
        background-color: #795548;
    }

    .participant_jockey_silk_number.no_image[data-number="14"] {
        color: #FFEB3B;
        background-color: #9C27B0;
    }

    .participant_jockey_silk_number.no_image[data-number="15"] {
        color: #000000;
        background-color: #C3B091;
    }

    .participant_jockey_silk_number.no_image[data-number="16"] {
        color: #f44336;
        background-color: #91D0E0;
    }

    .participant_jockey_silk_number.no_image[data-number="17"] {
        color: #ffffff;
        background-color: #1A237E;
    }

    .participant_jockey_silk_number.no_image[data-number="18"] {
        color: #FFEB3B;
        background-color: #1B5E20;
    }

    .participant_jockey_silk_number.no_image[data-number="19"] {
        color: #f44336;
        background-color: #304FFE;
    }

    .participant_jockey_silk_number.no_image[data-number="20"] {
        color: #FFEB3B;
        background-color: #F50057;
    }

[data-number="21"] {
    color: #1A237E;
    background-color: #AB47BC;
}

.participant_jockey_silk_icon {
    width: 100%;
    max-width: 28px;
    height: auto;
    display: block;
}

.participant_runner {
    width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.participant_runner_text {
    max-width: 95%;
    display: inline-block;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scratched .participant_runner_text {
    text-decoration: line-through;
    text-decoration-color: var(--red);
}

.participant_runner_text:nth-child(1) {
    font-weight: 600;
}

    .participant_runner.scratched .participant_runner_text:nth-child(2) {
        font-weight: 600;
    }

.jockey_info_modal_button {
    width: 24px;
    height: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    background-color: var(--button-default);
    border: 1px solid var(--border-blue);
    border-radius: 48px;
}

    .jockey_info_modal_button:focus,
    .jockey_info_modal_button:active,
    .jockey_info_modal_button:hover {
        color: var(--text-state);
        background-color: var(--button-state);
    }

    .horse_card_body_participant_odds {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

.add_bet_link {
    min-width: 64px;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    background-color: var(--button);
    border: 1px solid var(--border-default);
    border-radius: 8px;
}

    .add_bet_link:focus,
    .add_bet_link:active,
    .add_bet_link:hover {
        color: var(--text-state);
        background-color: var(--button-state);
    }

    .odds_changed_indicator {
        position: absolute;
        top: 2px;
        right: 2px;
    }

.is_long {
    width: 0;
    height: 0;
    top: 4px;
    right: 4px;
    border-left: 12px solid transparent;
    border-right: 0 solid transparent;
    border-bottom: 12px solid var(--red);
    border-radius: 4px;
    transform: rotateX(180deg);
}

.is_short {
    width: 0;
    height: 0;
    top: 4px;
    right: 4px;
    border-left: 12px solid transparent;
    border-right: 0 solid transparent;
    border-bottom: 12px solid var(--green);
    border-radius: 4px;
    transform: rotateX(180deg);
}

.add_bet_button {
    min-width: 64px;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--surface-2);
    border: 1px solid var(--border-blue);
}

    .add_bet_button[disabled="disabled"] {
        pointer-events: none;
        opacity: 0.50;
    } 

    .load_more_participants {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 4px;
    }

.load_more_participants_button {
    width: 100%;
    height: 36px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--button-default);
    border: 1px solid var(--border-blue);
    border-radius: 48px;
}

    .load_more_participants_button:focus,
    .load_more_participants_button:active,
    .load_more_participants_button:hover {
        background-color: var(--button-state);
    }

    .load_more_participants_button[data-active="true"] {
        background-color: var(--button-state);
    }

    .load_more_participants_button_icon {
        width: 24px;
        height: 24px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .load_more_participants_button_icon svg {
        width: 24px;
        height: 24px;
        display: block;
    }

.load_more_participants_button:focus .global_icon_fill,
.load_more_participants_button:active .global_icon_fill,
.load_more_participants_button:hover .global_icon_fill {
    fill: var(--icon-state);
}

.load_more_participants_button[data-active="true"] .global_icon_fill {
    fill: var(--icon-state);
}

.load_more_participants_button[data-active="true"] .load_more_participants_button_icon {
    transform: rotate(-180deg);
}

.load_more_participants_button:focus .load_more_participants_button_text,
.load_more_participants_button:active .load_more_participants_button_text,
.load_more_participants_button:hover .load_more_participants_button_text {
    color: var(--text-state);
}

.load_more_participants_button[data-active="true"] .load_more_participants_button_text {
    color: var(--text-state);
}

.horses_page_content_container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 16px auto 0 auto;
    padding: 8px;
}

.horses_page_content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.horses_page_content_list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 36px;
    list-style: disc;
}

.horse_race_cards_modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 4px;
    background-color: var(--opacity);
    z-index: 99999;
}

.horse_race_cards_modal {
    width: 100%;
    max-width: 480px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 4px;
    background-color: var(--surface-1);
    border: 1px solid var(--border-blue);
    border-radius: 8px;
}

.horse_race_cards_modal_header {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 4px;
    border-bottom: 1px solid var(--border-blue);
}

.close_horse_race_cards_modal {
    width: 36px;
    height: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--button-default);
    border: 1px solid var(--border-blue);
    border-radius: 50%;
}

    .close_horse_race_cards_modal:focus,
    .close_horse_race_cards_modal:active,
    .close_horse_race_cards_modal:hover {
        color: var(--text-state);
        background-color: var(--button-state);
    }

    .horse_race_cards_modal_body::-webkit-scrollbar {
        display: none;
    }

.horse_race_cards_modal_body {
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.race_cards_container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.race_cards_message {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.race_cards {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.race_cards_link {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 4px;
    background-color: var(--button-default);
    border: 1px solid var(--border-blue);
    border-radius: 48px;
}

    .race_cards_link:focus,
    .race_cards_link:active,
    .race_cards_link:hover {
        background-color: var(--button-state);
    }

    .race_cards_link_icon {
        width: 36px;
        height: 36px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

.race_cards_link:focus .race_cards_link_text,
.race_cards_link:active .race_cards_link_text,
.race_cards_link:hover .race_cards_link_text {
    color: var(--text-state);
}

.horse_race_results_modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 4px;
    background-color: var(--opacity);
    z-index: 99999;
}

.horse_race_results_modal {
    width: 100%;
    max-width: 480px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 4px;
    background-color: var(--surface-1);
    border: 1px solid var(--border-blue);
    border-radius: 8px;
}

.horse_race_results_modal_header {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 4px;
    border-bottom: 1px solid var(--border-blue);
}

.close_horse_race_results_modal {
    width: 36px;
    height: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--button-transparent-74);
    border: 1px solid var(--border-blue);
    border-radius: 50%;
}

    .close_horse_race_results_modal:focus,
    .close_horse_race_results_modal:active,
    .close_horse_race_results_modal:hover {
        color: var(--text-state);
        background-color: var(--button-state);
    }

    .horse_race_results_modal_body::-webkit-scrollbar {
        display: none;
    }

.horse_race_results_modal_body {
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.results_container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.results_message {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.results {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 4px;
    border-bottom: 1px solid var(--border-blue);
}

    .results:last-child {
        border-bottom-color: transparent;
    }

    .results_header {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 4px;
    }

.results_body {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.horse_jockey_modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 4px;
    background-color: var(--opacity);
    z-index: 999999;
}

.horse_jockey_modal {
    width: 100%;
    max-width: 480px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px;
    background-color: var(--surface-1);
    border: 1px solid var(--border-blue);
    border-radius: 8px;
}

.horse_jockey_modal_header {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 4px;
    border-bottom: 1px solid var(--border-blue);
}

.close_horse_jockey_modal {
    width: 36px;
    height: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--button-default);
    border: 1px solid var(--border-blue);
    border-radius: 50%;
}

    .close_horse_jockey_modal:focus,
    .close_horse_jockey_modal:active,
    .close_horse_jockey_modal:hover {
        color: var(--text-state);
        background-color: var(--button-state);
    }

    .horse_jockey_modal_body {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

.jockey_info_container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.jockey_info {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
    border-bottom: 1px solid var(--border-blue);
}

    .jockey_info:last-child {
        border-bottom-color: transparent;
    }

    .jockey_info_text {
        width: 50%;
    }

@media only screen and (min-width: 680px) {
    .live_hr_stream_frame iframe {
        height: 350px;
    }

    .horses_card {
        width: calc(50% - 4px);
    }

    .participant_jockey_silk {
        min-width: 36px;
        height: 36px;
    }
}

@media only screen and (min-width: 960px) {
    .live_hr_stream_frame iframe {
        height: 380px;
    }
}

@media only screen and (min-width: 1200px) {

    .horses_coupon_info_container {
        padding: 0;
    }

    .horses {
        padding: 0;
    }

    .horses_card {
        width: 100%;
    }
}

@media only screen and (min-width: 1360px) {
    .horses_card {
        width: calc(50% - 4px);
    }
}
