/* =========================================
   FOXBET - FOOTBALL PAGE
   Dark Blue Sportsbook UI
========================================= */

.football-page {
    min-height: 100vh;
    padding-bottom: 90px;
    background: #071a2b;
    color: #ffffff;
}

/* =========================================
   PAGE HEADER
========================================= */

.football-header {
    padding: 16px 12px 10px;
    border-bottom: 1px solid #16384f;
    background: #071a2b;
}

.football-kicker {
    margin: 0 0 4px;
    color: #7892a5;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.football-title {
    margin: 0;
    color: #ffffff;
    font-size: 27px;
    line-height: 1.15;
    font-weight: 800;
}

.football-description {
    margin: 6px 0 0;
    color: #91a7b7;
    font-size: 12px;
    line-height: 1.4;
}

/* =========================================
   FILTER AREA
========================================= */

.football-filters {
    width: 100%;
    padding: 10px 10px;
    background: #092238;
    border-bottom: 1px solid #173d56;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.football-filters::-webkit-scrollbar {
    display: none;
}

.football-filter-list {
    display: flex;
    width: max-content;
    min-width: 100%;
    gap: 6px;
}

/* =========================================
   FILTER BUTTON
========================================= */

.football-filter,
.date-filter,
.live-filter {
    appearance: none;
    -webkit-appearance: none;

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

    flex: 0 0 auto;

    height: 34px;
    min-width: 74px;
    padding: 0 13px;

    margin: 0;

    border: 1px solid #1d455d;
    border-radius: 3px;

    outline: none;

    background: #102c42;
    color: #91a8b8;

    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;

    cursor: pointer;

    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease,
        transform .1s ease;
}

.football-filter:hover,
.date-filter:hover,
.live-filter:hover {
    background: #153a54;
    border-color: #28617e;
    color: #ffffff;
}

.football-filter:active,
.date-filter:active,
.live-filter:active {
    transform: translateY(1px);
}

/* ACTIVE DATE */

.football-filter.active,
.date-filter.active,
.football-filter[aria-selected="true"],
.date-filter[aria-selected="true"] {
    background: #35c759;
    border-color: #35c759;
    color: #06131e;
}

/* LIVE BUTTON */

.live-filter {
    min-width: 68px;
    gap: 6px;
    background: #102c42;
    border-color: #1d455d;
}

.live-filter .live-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #35c759;
    box-shadow: 0 0 0 3px rgba(53, 199, 89, .12);
}

.live-filter.active,
.live-filter[aria-selected="true"] {
    background: #35c759;
    border-color: #35c759;
    color: #06131e;
}

.live-filter.active .live-dot,
.live-filter[aria-selected="true"] .live-dot {
    background: #06131e;
    box-shadow: none;
}

/* =========================================
   LIVE STATUS BAR
========================================= */

.football-status {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 36px;
    padding: 7px 12px;

    background: #071a2b;
    border-bottom: 1px solid #12364e;
}

.football-status-left {
    display: flex;
    align-items: center;
    gap: 7px;
}

.status-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #35c759;
}

.status-text {
    color: #8fa6b6;
    font-size: 11px;
    font-weight: 700;
}

.status-count {
    color: #35c759;
    font-size: 11px;
    font-weight: 800;
}

/* =========================================
   MATCH LIST
========================================= */

#matchList,
.match-list,
#footballMatchList {
    width: 100%;
    padding: 10px 8px 20px;
}

/* =========================================
   LEAGUE BLOCK
========================================= */

.league-block {
    width: 100%;
    margin: 0 0 9px;

    overflow: hidden;

    background: #0b263b;
    border: 1px solid #173e57;
    border-radius: 3px;
}

/* =========================================
   LEAGUE HEADER
========================================= */

.league-header {
    display: flex;
    align-items: center;

    min-height: 46px;
    padding: 7px 10px;

    background: #0d2c43;
    border-bottom: 1px solid #173e57;

    cursor: pointer;
}

.league-header:active {
    background: #123650;
}

.league-logo {
    width: 30px;
    height: 30px;

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

    flex: 0 0 30px;

    margin-right: 9px;

    background: #102f46;
    border: 1px solid #204a63;
    border-radius: 3px;

    overflow: hidden;
}

.league-logo img {
    width: 23px;
    height: 23px;
    object-fit: contain;
}

.league-info {
    min-width: 0;
    flex: 1;
}

.league-name {
    overflow: hidden;

    color: #ffffff;
    font-size: 11px;
    font-weight: 800;

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

.league-country {
    margin-top: 2px;

    overflow: hidden;

    color: #708b9e;
    font-size: 9px;
    font-weight: 600;

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

.league-arrow {
    width: 24px;
    height: 24px;

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

    flex: 0 0 24px;

    color: #7895a8;
}

.league-block.is-collapsed .league-arrow {
    transform: rotate(-90deg);
}

.league-block.is-collapsed .league-content {
    display: none;
}

/* =========================================
   MATCH ROW
========================================= */

.match-row {
    position: relative;

    display: grid;

    grid-template-columns:
        52px
        minmax(0, 1fr)
        34px
        minmax(132px, 42%);

    align-items: center;

    min-height: 72px;
    padding: 8px 8px;

    background: #0a2235;
    border-bottom: 1px solid #15384f;

    cursor: pointer;

    transition:
        background .15s ease;
}

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

.match-row:hover {
    background: #0e2d44;
}

.match-row:active {
    background: #12364f;
}

/* =========================================
   MATCH TIME
========================================= */

.match-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 0;
}

.match-time .live-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 17px;
    padding: 0 5px;

    border-radius: 2px;

    background: #35c759;
    color: #06131e;

    font-size: 8px;
    font-weight: 900;
    letter-spacing: .3px;
}

.match-time .minute {
    margin-top: 4px;

    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
}

.match-time .status-text {
    margin-top: 2px;

    max-width: 52px;

    overflow: hidden;

    color: #607d90;
    font-size: 7px;
    font-weight: 600;

    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
}

/* =========================================
   TEAMS
========================================= */

.teams {
    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 7px;
}

.team {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 7px;
}

.team-logo {
    width: 23px;
    height: 23px;

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

    flex: 0 0 23px;

    overflow: hidden;

    border-radius: 3px;
}

.team-logo img {
    width: 21px;
    height: 21px;

    object-fit: contain;
}

.team-name {
    min-width: 0;

    overflow: hidden;

    color: #e6edf2;
    font-size: 10px;
    font-weight: 700;

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

/* =========================================
   SCORE
========================================= */

.score {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 7px;

    color: #ffffff;

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

/* =========================================
   ODDS
========================================= */

.match-odds {
    display: grid;

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

    gap: 4px;

    min-width: 0;
}

.odd {
    appearance: none;
    -webkit-appearance: none;

    min-width: 0;
    height: 36px;

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

    gap: 3px;

    padding: 0 4px;

    margin: 0;

    border: 1px solid #1c435a;
    border-radius: 2px;

    outline: none;

    background: #102e44;
    color: #d4e0e7;

    font-family: inherit;

    cursor: pointer;

    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease;
}

.odd:hover {
    background: #153b55;
    border-color: #2c617d;
    color: #ffffff;
}

.odd span {
    color: #6f899a;
    font-size: 8px;
    font-weight: 800;
}

.odd strong {
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
}

.odd.is-selected {
    background: #35c759;
    border-color: #35c759;
    color: #06131e;
}

.odd.is-selected span,
.odd.is-selected strong {
    color: #06131e;
}

/* =========================================
   LOGO PLACEHOLDER
========================================= */

.logo-placeholder {
    width: 100%;
    height: 100%;

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

    color: #577489;

    background: #102c42;
}

/* =========================================
   LOADING
========================================= */

#loadingState,
.loading-state {
    min-height: 180px;

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

    gap: 10px;

    padding: 30px 15px;

    color: #7892a4;
    text-align: center;
}

.loading-spinner {
    width: 30px;
    height: 30px;

    border: 3px solid #173b52;
    border-top-color: #35c759;
    border-radius: 50%;

    animation:
        foxbetSpin .8s linear infinite;
}

@keyframes foxbetSpin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 11px;
    font-weight: 600;
}

/* =========================================
   EMPTY STATE
========================================= */

#emptyState,
.empty-state {
    min-height: 180px;

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

    padding: 30px 20px;

    color: #718a9c;
    text-align: center;
}

.empty-icon {
    width: 42px;
    height: 42px;

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

    margin-bottom: 10px;

    color: #57758a;

    background: #0c293e;
    border: 1px solid #193e56;
    border-radius: 3px;
}

.empty-title {
    color: #b8c8d2;
    font-size: 12px;
    font-weight: 800;
}

.empty-description {
    max-width: 300px;

    margin-top: 5px;

    color: #637d90;
    font-size: 10px;
    line-height: 1.5;
}

/* =========================================
   ERROR
========================================= */

#errorState,
.error-state {
    margin: 12px 8px;
    padding: 14px;

    background: #251b24;
    border: 1px solid #563342;
    border-radius: 3px;

    color: #d5a9b7;

    text-align: center;
}

.error-title {
    margin-bottom: 5px;

    color: #efb8c6;
    font-size: 12px;
    font-weight: 800;
}

.error-message {
    color: #9d7a87;
    font-size: 10px;
    line-height: 1.5;
}

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

@media (max-width: 600px) {

    .football-page {
        padding-bottom: 76px;
    }

    .football-header {
        padding: 14px 11px 9px;
    }

    .football-title {
        font-size: 25px;
    }

    .football-description {
        font-size: 11px;
    }

    .football-filters {
        padding: 8px;
    }

    .football-filter,
    .date-filter,
    .live-filter {
        height: 32px;
        min-width: 70px;
        padding: 0 10px;

        font-size: 10px;
    }

    #matchList,
    .match-list,
    #footballMatchList {
        padding: 8px 6px 15px;
    }

    .league-block {
        margin-bottom: 7px;
    }

    .league-header {
        min-height: 43px;
        padding: 6px 8px;
    }

    .match-row {
        grid-template-columns:
            46px
            minmax(0, 1fr)
            29px
            minmax(120px, 40%);

        min-height: 68px;

        padding: 7px 6px;
    }

    .team-name {
        font-size: 9px;
    }

    .team-logo {
        width: 21px;
        height: 21px;
        flex-basis: 21px;
    }

    .team-logo img {
        width: 19px;
        height: 19px;
    }

    .odd {
        height: 33px;
    }

    .odd strong {
        font-size: 9px;
    }

    .odd span {
        font-size: 7px;
    }
}

/* =========================================
   VERY SMALL PHONES
========================================= */

@media (max-width: 380px) {

    .football-filter,
    .date-filter,
    .live-filter {
        min-width: 64px;
        padding: 0 8px;
    }

    .match-row {
        grid-template-columns:
            42px
            minmax(0, 1fr)
            26px
            minmax(105px, 39%);

        padding-left: 5px;
        padding-right: 5px;
    }

    .match-time .live-label {
        font-size: 7px;
    }

    .match-time .minute {
        font-size: 9px;
    }

    .team {
        gap: 5px;
    }

    .team-name {
        font-size: 8px;
    }

    .match-odds {
        gap: 3px;
    }

    .odd {
        height: 31px;
        padding: 0 2px;
    }

    .odd strong {
        font-size: 8px;
    }

    .odd span {
        display: none;
    }
}