.lich-thi-dau-fixture {
    --fixture-ink: #101828;
    --fixture-muted: #667085;
    --fixture-line: #dfe5ee;
    --fixture-soft-line: #edf1f6;
    --fixture-soft: #f7f9fc;
    --fixture-yellow: #ffd21f;
    --fixture-yellow-dark: #d99a00;
    --fixture-live: #e11d48;
    --fixture-card-shadow: 0 10px 26px rgba(16, 24, 40, 0.08);
    width: 100%;
    max-width: none;
    margin: 28px 0;
    padding: 0;
    color: var(--fixture-ink);
    font-family: Inter, Roboto, "Segoe UI", Arial, Helvetica, sans-serif;
}

.lich-thi-dau-fixture *,
.lich-thi-dau-fixture *::before,
.lich-thi-dau-fixture *::after {
    box-sizing: border-box;
    letter-spacing: 0;
}

.lich-thi-dau-fixture .theme7m-fixture {
    width: 100%;
    padding: 0 !important;
}

.lich-thi-dau-fixture .theme7m-fixture-tools {
    display: grid !important;
    grid-template-columns: minmax(240px, 360px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0 0 14px;
    padding: 12px;
    border: 1px solid var(--fixture-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--fixture-card-shadow);
}

.lich-thi-dau-fixture .theme7m-league-filter {
    appearance: none;
    width: 100%;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding: 0 42px 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background:
        linear-gradient(45deg, transparent 50%, var(--fixture-ink) 50%) right 18px center / 7px 7px no-repeat,
        linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    color: var(--fixture-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 44px;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.lich-thi-dau-fixture .theme7m-league-filter:focus {
    border-color: var(--fixture-yellow);
    outline: 3px solid rgba(255, 210, 31, 0.28);
}

.lich-thi-dau-fixture .theme7m-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    padding: 2px 2px 6px;
    box-shadow: inset 0 -3px 0 #d6d9de;
    scrollbar-width: thin;
}

.lich-thi-dau-fixture .theme7m-tab,
.lich-thi-dau-fixture .theme7m-reset-hidden {
    min-height: 38px;
    margin: 0;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #344054;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
    transition:
        background-color 0.16s ease,
        border-color 0.16s ease,
        color 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.16s ease;
}

.lich-thi-dau-fixture .theme7m-tab:first-child::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--fixture-live);
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12);
}

.lich-thi-dau-fixture .theme7m-tab:hover,
.lich-thi-dau-fixture .theme7m-reset-hidden:hover {
    border-color: #ffe58a;
    background: #fffbeb;
    color: var(--fixture-ink);
    transform: translateY(-1px);
}

.lich-thi-dau-fixture .theme7m-tab-active {
    border-color: var(--fixture-yellow);
    background: var(--fixture-yellow);
    color: var(--fixture-ink);
    box-shadow: 0 8px 18px rgba(255, 210, 31, 0.26);
}

.lich-thi-dau-fixture .theme7m-reset-hidden {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.lich-thi-dau-fixture .theme7m-fixture-table {
    width: 100%;
    margin-top: 0 !important;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
    box-shadow: none;
}

.lich-thi-dau-fixture .theme7m-fixture-table-head {
    display: none !important;
}

.lich-thi-dau-fixture .theme7m-fixture-table-body {
    display: grid;
    gap: 8px;
    background: transparent;
}

.lich-thi-dau-fixture .theme7m-fixture-table-body-row {
    position: relative;
    display: grid !important;
    grid-template-columns:
        minmax(138px, 0.72fr)
        minmax(86px, 0.4fr)
        minmax(210px, 1.24fr)
        76px
        minmax(210px, 1.24fr)
        56px;
    align-items: center;
    min-width: 0;
    min-height: 70px;
    padding: 8px 10px 8px 12px;
    border: 1px solid var(--fixture-line) !important;
    border-radius: 8px;
    background: #fff !important;
    color: var(--fixture-ink) !important;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.16s ease;
}

.lich-thi-dau-fixture .theme7m-fixture-table-body-row::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 0 8px 8px 0;
    background: var(--fixture-yellow);
}

.lich-thi-dau-fixture .theme7m-fixture-table-body-row:nth-child(4n + 1)::before {
    background: var(--fixture-yellow);
}

.lich-thi-dau-fixture .theme7m-fixture-table-body-row:nth-child(4n + 2)::before {
    background: #38bdf8;
}

.lich-thi-dau-fixture .theme7m-fixture-table-body-row:nth-child(4n + 3)::before {
    background: #34d399;
}

.lich-thi-dau-fixture .theme7m-fixture-table-body-row:nth-child(4n)::before {
    background: #fb7185;
}

.lich-thi-dau-fixture .theme7m-fixture-table-body-row:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 12px 24px rgba(16, 24, 40, 0.1);
    transform: translateY(-1px);
}

.lich-thi-dau-fixture .theme7m-fixture-table-body-row > * {
    width: auto !important;
    min-width: 0;
    padding: 0 10px !important;
    border-right: 0 !important;
    color: var(--fixture-ink) !important;
}

.lich-thi-dau-fixture .theme7m-remove,
.lich-thi-dau-fixture .theme7m-cht,
.lich-thi-dau-fixture .theme7m-td,
.lich-thi-dau-fixture .theme7m-none {
    display: none !important;
}

.lich-thi-dau-fixture .theme7m-league {
    grid-column: 1;
    height: 44px;
    border: 1px solid var(--fixture-soft-line);
    border-radius: 8px;
    background: var(--fixture-soft) !important;
    color: #475467 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: left !important;
}

.lich-thi-dau-fixture .theme7m-league-logo {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(16, 24, 40, 0.08);
}

.lich-thi-dau-fixture .theme7m-league-code {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lich-thi-dau-fixture .theme7m-time {
    grid-column: 2;
    min-height: 44px;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--fixture-ink) !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 13px;
    font-weight: 600;
    line-height: 16px;
    text-align: center !important;
}

.lich-thi-dau-fixture .theme7m-live-time {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    padding: 1px 7px;
    border-radius: 999px;
    background: #fff1f3;
    color: var(--fixture-live) !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
}

.lich-thi-dau-fixture .theme7m-live-time-flash {
    animation: theme7m-live-blink 1s infinite;
}

@keyframes theme7m-live-blink {
    0%,
    100% {
        opacity: 0.35;
    }

    50% {
        opacity: 1;
    }
}

.lich-thi-dau-fixture .theme7m-home {
    grid-column: 3;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    text-align: right !important;
}

.lich-thi-dau-fixture .theme7m-away {
    grid-column: 5;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    text-align: left !important;
}

.lich-thi-dau-fixture .theme7m-home,
.lich-thi-dau-fixture .theme7m-away {
    color: var(--fixture-ink) !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lich-thi-dau-fixture .theme7m-team-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lich-thi-dau-fixture .theme7m-team-logo {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    box-shadow:
        0 0 0 1px rgba(16, 24, 40, 0.08),
        0 5px 12px rgba(16, 24, 40, 0.08);
}

.lich-thi-dau-fixture .theme7m-score {
    grid-column: 4;
    min-width: 62px;
    min-height: 40px;
    border-radius: 8px;
    background: var(--fixture-yellow);
    color: var(--fixture-ink) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-align: center !important;
    box-shadow: 0 8px 18px rgba(255, 210, 31, 0.22);
}

.lich-thi-dau-fixture .theme7m-top {
    grid-column: 6;
    position: relative;
    min-height: 50px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lich-thi-dau-fixture .theme7m-top::before {
    content: "\2606";
    width: 34px;
    height: 34px;
    border: 1px solid var(--fixture-yellow);
    border-radius: 50%;
    background: #fffdf0;
    color: var(--fixture-yellow-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    transition:
        background-color 0.16s ease,
        color 0.16s ease,
        transform 0.16s ease,
        box-shadow 0.16s ease;
}

.lich-thi-dau-fixture .theme7m-top:hover::before {
    background: var(--fixture-yellow);
    color: var(--fixture-ink);
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 8px 18px rgba(255, 210, 31, 0.3);
}

.lich-thi-dau-fixture .theme7m-top-active::before {
    content: "\2605";
    background: var(--fixture-yellow);
    color: var(--fixture-ink);
    box-shadow: 0 8px 18px rgba(255, 210, 31, 0.3);
}

.lich-thi-dau-fixture .theme7m-top img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100% !important;
    height: 100% !important;
    opacity: 0;
    cursor: pointer;
}

.lich-thi-dau-fixture .theme7m-date,
.lich-thi-dau-fixture .theme7m-top-item,
.lich-thi-dau-fixture .theme7m-empty {
    padding: 13px 16px;
    border: 1px solid var(--fixture-line);
    border-radius: 8px;
    background: #f8fafc !important;
    color: var(--fixture-ink) !important;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
}

.lich-thi-dau-fixture .theme7m-top-item {
    background: #fffbeb !important;
}

.lich-thi-dau-fixture .theme7m-top-item::before {
    content: "\2605";
    margin-right: 8px;
    color: var(--fixture-yellow-dark);
}

.lich-thi-dau-fixture .theme7m-clear-top {
    margin-left: 8px;
    color: var(--fixture-live);
    cursor: pointer;
}

.lich-thi-dau-fixture .theme7m-empty {
    text-align: center;
    color: var(--fixture-muted) !important;
}

@media (max-width: 1080px) {
    .lich-thi-dau-fixture .theme7m-fixture-table-body-row {
        grid-template-columns:
            minmax(118px, 0.64fr)
            minmax(78px, 0.36fr)
            minmax(170px, 1fr)
            70px
            minmax(170px, 1fr)
            52px;
    }

    .lich-thi-dau-fixture .theme7m-home,
    .lich-thi-dau-fixture .theme7m-away {
        font-size: 13px;
    }
}

@media (max-width: 780px) {
    .lich-thi-dau-fixture {
        margin: 16px 0;
    }

    .lich-thi-dau-fixture .theme7m-fixture-tools {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 10px;
        padding: 10px;
        box-shadow: 0 8px 22px rgba(16, 24, 40, 0.08);
    }

    .lich-thi-dau-fixture .theme7m-league-filter {
        height: 42px;
        padding-left: 12px;
        font-size: 13px;
        line-height: 42px;
    }

    .lich-thi-dau-fixture .theme7m-tabs {
        width: 100%;
        gap: 5px;
        padding-bottom: 7px;
        scroll-snap-type: x mandatory;
    }

    .lich-thi-dau-fixture .theme7m-tab,
    .lich-thi-dau-fixture .theme7m-reset-hidden {
        min-height: 36px;
        padding: 0 10px;
        font-size: 12px;
        scroll-snap-align: start;
    }

    .lich-thi-dau-fixture .theme7m-tab:first-child::before {
        width: 9px;
        height: 9px;
        box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
    }

    .lich-thi-dau-fixture .theme7m-fixture-table-body {
        gap: 12px;
    }

    .lich-thi-dau-fixture .theme7m-fixture-table-body-row {
        grid-template-columns: minmax(0, 1fr) auto 38px;
        grid-template-areas:
            "league time star"
            "home score star"
            "away score star";
        gap: 9px 8px;
        min-height: 0;
        padding: 12px 10px 12px 12px;
        background: #fff !important;
        box-shadow: var(--fixture-card-shadow);
    }

    .lich-thi-dau-fixture .theme7m-fixture-table-body-row:hover {
        transform: none;
        box-shadow: var(--fixture-card-shadow);
    }

    .lich-thi-dau-fixture .theme7m-fixture-table-body-row::before {
        top: 12px;
        bottom: 12px;
    }

    .lich-thi-dau-fixture .theme7m-fixture-table-body-row > * {
        padding: 0 !important;
    }

    .lich-thi-dau-fixture .theme7m-league {
        grid-area: league;
        height: 26px;
        max-width: 100%;
        padding: 2px 8px 2px 4px !important;
        border-radius: 999px;
        background: #f6f8fb !important;
        font-size: 12px;
        color: #475467 !important;
    }

    .lich-thi-dau-fixture .theme7m-league-logo {
        width: 20px;
        height: 20px;
        border-radius: 5px;
    }

    .lich-thi-dau-fixture .theme7m-time {
        grid-area: time;
        justify-self: end;
        align-self: center;
        min-width: 58px;
        min-height: 40px;
        padding: 5px 8px !important;
        border-radius: 999px;
        background: #111827;
        color: #fff !important;
        font-size: 12px;
        line-height: 15px;
        text-align: center !important;
    }

    .lich-thi-dau-fixture .theme7m-live-time {
        min-width: 0;
        padding: 1px 6px;
        background: #fff1f3;
        font-size: 11px;
        line-height: 14px;
    }

    .lich-thi-dau-fixture .theme7m-home,
    .lich-thi-dau-fixture .theme7m-away {
        min-width: 0;
        gap: 8px;
        justify-content: flex-start;
        font-size: 13px;
        font-weight: 600;
        line-height: 18px;
        text-align: left !important;
        white-space: normal;
    }

    .lich-thi-dau-fixture .theme7m-home {
        grid-area: home;
    }

    .lich-thi-dau-fixture .theme7m-away {
        grid-area: away;
    }

    .lich-thi-dau-fixture .theme7m-home .theme7m-team-logo {
        order: -1;
    }

    .lich-thi-dau-fixture .theme7m-team-logo {
        width: 32px;
        height: 32px;
    }

    .lich-thi-dau-fixture .theme7m-team-name {
        max-width: 100%;
        white-space: normal;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .lich-thi-dau-fixture .theme7m-score {
        grid-area: score;
        align-self: center;
        min-width: 56px;
        min-height: 36px;
        padding: 8px 10px !important;
        font-size: 16px;
    }

    .lich-thi-dau-fixture .theme7m-top {
        grid-area: star;
        align-self: stretch;
        min-height: 100%;
        padding: 0 !important;
    }

    .lich-thi-dau-fixture .theme7m-top::before {
        width: 32px;
        height: 32px;
        font-size: 19px;
    }

    .lich-thi-dau-fixture .theme7m-date,
    .lich-thi-dau-fixture .theme7m-top-item,
    .lich-thi-dau-fixture .theme7m-empty {
        padding: 12px 14px;
        box-shadow: 0 8px 20px rgba(16, 24, 40, 0.06);
    }
}

@media (max-width: 420px) {
    .lich-thi-dau-fixture .theme7m-fixture-tools {
        padding: 9px;
    }

    .lich-thi-dau-fixture .theme7m-tab,
    .lich-thi-dau-fixture .theme7m-reset-hidden {
        min-height: 34px;
        padding: 0 9px;
        font-size: 11.5px;
    }

    .lich-thi-dau-fixture .theme7m-fixture-table-body-row {
        grid-template-columns: minmax(0, 1fr) auto 34px;
        gap: 8px 6px;
        padding: 10px 8px 10px 10px;
    }

    .lich-thi-dau-fixture .theme7m-time {
        min-width: 54px;
        padding: 5px 6px !important;
        font-size: 11.5px;
    }

    .lich-thi-dau-fixture .theme7m-team-logo {
        width: 29px;
        height: 29px;
    }

    .lich-thi-dau-fixture .theme7m-home,
    .lich-thi-dau-fixture .theme7m-away {
        gap: 7px;
        font-size: 12.5px;
    }

    .lich-thi-dau-fixture .theme7m-score {
        min-width: 50px;
        min-height: 34px;
        padding: 7px 8px !important;
        font-size: 15px;
    }

    .lich-thi-dau-fixture .theme7m-top::before {
        width: 29px;
        height: 29px;
        font-size: 18px;
    }
}
