@media (min-width: 768px) and (max-width: 991px) {
    .container,
    .container-md,
    .container-sm {
        max-width: 100%;
    }
    .navbar-nav {
        gap: 20px;
    }
}

@media (max-width: 1200px) {
    .avatar-user .avatar {
        padding: 20px 12px;
    }
    .hot-news {
        max-height: unset;
    }
    .old {
        display: flex;
        justify-content: space-between;
        gap: 12px;
    }
    .old .most.item {
        display: block;
        padding: 0;
        position: relative;
    }
    .old .most .news-title {
        position: absolute;
        width: 100%;
        height: 80%;
        bottom: 0;
        background: linear-gradient(180deg, rgba(21, 21, 21, 0) 0%, #151515 100%);
        padding: 12px;
        margin: 0;
        font-weight: 600;
    }
    .old .most .news-thumb img {
        width: 100%;
    }
    .old .most .news-thumb {
        display: block;
    }
    .old .most .news-time {
        display: block;
    }
    .footer-content {
        padding: 40px;
    }
    .top-hot-news .hot-news {
        margin-top: 30px;
        flex-direction: row;
        justify-content: space-between;
        gap: 12px;
    }
    #match-link .table>:not(caption)>*>* {
        padding: 16px 0;
    }
}

@media (max-width: 991px) {
    .list-leagues_tab button {
        max-width: 100px;
    }
    .gm-match .left {
        gap: 0;
    }
    .score-table {
        height: 340px;
    }
    .item-new:not(.news-big) .new-event {
        font-size: 0;
    }
    .item-new:not(.news-big) .new-event a {
        font-size: 12px;
    }
    .table>:not(caption)>*>* {
        font-size: 14px;
    }
    .top-banner {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .inner-content .table>:not(caption)>*>*:not(.tld-name) {
        min-width: unset;
    }
    .xitems-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) and (min-width: 576px) {
    .score-table {
        height: 240px;
        padding: 10px;
    }
}

@media (max-width: 767px) {
    #header .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .top-banner {
        grid-template-columns: auto;
        padding-bottom: 30px;
    }
    .xitems-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        grid-auto-flow: column;
        grid-auto-columns: minmax(300px, 1fr);
        overflow-x: auto;
    }
    .list-matchs_tab {
        display: block;
    }
    .nav-tabs {
        gap: 8px;
        margin-bottom: 8px;
    }
    .gm-match {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        padding: 12px 8px;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    .gm-match .left {
        position: relative;
        flex-direction: column;
        gap: 10px;
    }
    .gm-match .xitem-main {
        flex: 1;
        flex-direction: column;
        padding: 0;
        gap: 16px;
    }
    .gm-match .xitem-main .team {
        display: flex;
        justify-content: space-between;
    }
    .gm-match .team-home .xname {
        flex-direction: row-reverse;
    }
    .gm-match .num-link {
        position: relative;
        padding: 0;
        transform: none;
        right: unset;
        min-width: 50px;
    }
    .gm-match .time {
        font-size: 14px;
    }
    .gm-match .badge-live {
        padding: 0 8px;
    }
    .group-bxh {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(266px, 1fr));
        grid-auto-flow: column;
        grid-auto-columns: minmax(266px, 1fr);
        overflow-x: auto;
        gap: 16px;
    }
    #main-content {
        padding-bottom: 100px;
    }
    .top-match_detail .xitem-main {
        gap: unset;
        justify-content: space-between;
    }
    .top-match_detail .team {
        flex-direction: column !important;
        gap: 8px;
    }
    .top-match_detail .team-logo-img {
        max-width: 65px;
    }
    .top-match_detail .xinfo,
    .top-match_detail .xinfo .ts>span {
        min-width: unset;
    }
    .top-match_detail .xitem-header .item-info {
        margin-bottom: 20px;
    }
    .top-stat .team-logo-img,
    .hth-top .team-logo-img {
        max-width: 48px;
    }
    .top-stat .xname {
        display: none;
    }
    .hth-top {
        padding: 20px 12px;
        gap: 15px;
    }
    .hth-param {
        gap: 12px;
    }
    .hth-param>span {
        width: 56px;
        height: 56px;
    }
    .hth-history .gm-match .xitem-main {
        flex: unset;
        flex-wrap: wrap;
        width: 100%;
        order: 1;
        flex-direction: row;
        padding: 0 8px 20px;
        align-items: center;
    }
    .hth-history .gm-match {
        padding: 0;
        gap: 12px;
    }
    .hth-history .tournament {
        border-radius: 0 0 12px 0;
    }
    .hth-history .hth-date {
        padding-top: 6px;
        padding-right: 12px;
    }
    .hth-history .gm-match .xitem-main .team,
    #tab-match-lastest .gm-match .xitem-main .team {
        justify-content: flex-end;
    }
    .hth-history .gm-match .xitem-main .team.team-away,
    #tab-match-lastest .gm-match .xitem-main .team.team-away {
        justify-content: flex-start;
    }
    .hth-history .gm-match .team-home .xname,
    #tab-match-lastest .gm-match .team-home .xname {
        flex-direction: row;
    }
    .match-lastest .list {
        grid-template-columns: 1fr;
    }
    .match-lastest .gm-match .team-home {
        text-align: right;
    }
    #match-lastest-tab {
        margin: 0;
    }
    .table-stat>div {
        padding: 12px;
    }
    .xinfo .time {
        font-size: 14px;
    }
    #match-link .link-detail {
        height: auto;
    }
    #match-link .link-detail .accordion,
    .link-detail .choose.show,
    .link-detail .choose.collapsing {
        overflow: hidden;
        overflow-x: scroll;
        white-space: nowrap;
        display: block;
    }
    #match-link .link-detail .accordion li,
    .link-detail .choose.show li,
    .link-detail .choose.collapsing li {
        display: inline-block;
        margin-right: 5px;
    }
    .group-button .btn {
        width: 100%;
    }
    .big-hot-new .news-title {
        padding: 0 12px;
    }
    .big-hot-new .news-title>a {
        font-size: 16px;
        line-height: 24px;
    }
    .old {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(266px, 1fr));
        grid-auto-flow: column;
        grid-auto-columns: minmax(266px, 1fr);
        overflow-x: auto;
        gap: 16px;
    }
    .old .item-new+.item-new {
        margin: 0;
    }
    .full-content h1 {
        font-size: 16px;
        line-height: 24px;
    }
    .form-group {
        margin-bottom: 16px;
    }
    .description {
        font-size: 14px;
    }
    .top-hot-news .top-banner svg {
        height: auto;
    }
    section {
        padding-top: 24px;
    }
    .mb-5 {
        margin-bottom: 24px !important;
    }
    .mt-5,
    .group-matchs .list+.list {
        margin-top: 24px !important;
    }
    .new-lastest {
        grid-template-columns: 1fr 1fr;
    }
    .bottom-content {
        margin: 50px 0;
    }
    .info-author {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

@media (max-width: 575px) {
    #lineup-tab {
        margin: 0;
    }
    .lineup-list {
        background: url(../images/bg-lineup-mobile.png) no-repeat;
        background-position: center;
    }
    .top-match_detail .item-info {
        gap: 12px;
    }
    .top-match_detail {
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
    }
    .score-list {
        flex-direction: column;
        gap: 30px;
        padding: 24px;
        background: url(../images/bg-lineup-mobile.png) no-repeat;
        background-position: center;
    }
    .score-list .ll-row {
        flex-direction: row;
    }
    .item-new .news-detail {
        padding: 15px 10px;
    }
    .item-new:not(.news-big) .new-info {
        gap: 0;
        flex-direction: column;
    }
    .item-new:not(.news-big) .new-event {
        font-size: inherit;
    }
    .item-new:not(.news-big) .news-detail .news-title {
        margin-top: 8px;
    }
}

@media (max-width: 400px) {
    .list-matchs_tab .nav-tabs {
        display: block;
        overflow: hidden;
        overflow-x: scroll;
        white-space: nowrap;
    }
    .list-matchs_tab .nav-tabs .nav-link {
        display: inline-block;
        margin-right: 5px;
    }
    #datepickerModal .modal-content {
        max-width: 100%;
        padding: 20px 12px;
        font-size: 16px;
    }
    .datepicker-panel ul[data-view="days"] {
        gap: 16px;
    }
    .datepicker-panel ul:not(.head) li {
        min-width: 24px;
        line-height: 24px;
    }
}

@media (max-width: 320px) {
    .hth-history .gm-match .team .xname,
    #tab-match-lastest .gm-match .team .xname {
        flex-direction: column;
    }
    .hth-history .gm-match .team-home .xname,
    #tab-match-lastest .gm-match .team-home .xname {
        flex-direction: column-reverse;
    }
    .match-lastest .gm-match .team-home {
        text-align: center;
    }
    .hth-history .gm-match .xitem-main .team,
    #tab-match-lastest .gm-match .xitem-main .team {
        justify-content: center !important;
    }
    .hth-top,
    .hth-param {
        gap: 8px;
    }
    .hth-param>span {
        width: 50px;
        height: 50px;
    }
    .score-list,
    .lineup-list {
        padding: 0;
        background-size: contain;
    }
}