.left-main,
.middle-main,
.right-main {
    width: 100%;
}

.top-list ul li a {
    flex-direction: column;
}

.tab-list li:first-child {
    background-size: 18px 18px;
}

.tab-list li:first-child:not(.active) {
    background-size: 18px 18px;
}

.enter-live-btn {
    text-align: center;
}

.score-board-header {
    flex-direction: row;
    justify-content: space-between;
}

.main-container.mobile-reverse {
    flex-direction: column;
    padding: 20px 12px;
}

/* 移動端模塊重新排序 - 確保所有模塊都按順序顯示 */
.mobile-reverse .middle-main {
    display: flex;
    flex-direction: column;
}

.mobile-reverse .right-main {
    display: flex;
    flex-direction: column;
}

.top-list ul li a span {
    font-size: 13px;
}

.team-home,
.team-away {
    min-width: 105px;
}

.match-item {
    padding: 12px 3px;
    flex-wrap: wrap;
    gap: 6px;
}

.match-score {
    width: 42px;
    font-size: 13px;
    padding: 3px 0px 1px 0px;
}

.match-list {
    padding: 20px 10px;
}

/* 手機端顯示手機布局，隱藏PC布局 */
.pc-tab-list {
    display: none;
}

.mobile-tab-list {
    display: block;
}

.mobile-tab-list ul {
    display: flex;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}
.tab-list ul{
    border-radius: 5px 5px 0 0;
}

.tab-list ul::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.mobile-tab-list ul li {
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 10px 15px;
    flex-shrink: 0;
    white-space: nowrap;
    min-width: 80px;
}

/* 固定標籤樣式 */
.mobile-tab-list ul li.fixed-tab {
    position: sticky;
    z-index: 10;
    background-color: #fff;
}

.mobile-tab-list ul li.fixed-tab.active {
    background-color: #CC0303;
    color: #fff;
}

.mobile-tab-list ul li.fixed-tab:first-child {
    left: 0;
    border-right: 1px solid #f0f0f0;
}

.mobile-tab-list ul li.fixed-tab:last-child {
    right: 0;
    border-left: 1px solid #f0f0f0;
}

/* 可滾動標籤樣式 */
.mobile-tab-list ul li.scrollable-tab {
    min-width: 80px;
    text-align: center;
}

/* 篩選按鈕樣式 */
.mobile-tab-list ul li.filter-tab {
    min-width: 50px;
    padding: 10px 10px;
}

.mobile-tab-list ul li.filter-tab .filter-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: unset;
    color: #333;
    border: none;
    padding: 2px 0px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    justify-content: center;
    font-size: 12px;
    width: 100%;
}

.mobile-tab-list ul li.filter-tab.active .filter-btn {
    color: #fff;
}

.mobile-tab-list ul li.filter-tab.active .filter-btn svg path {
    fill: #fff;
}

.mobile-tab-list ul li.filter-tab .filter-btn:hover {
    background: #e0e0e0;
}

.mobile-tab-list ul li.filter-tab .filter-btn svg {
    width: 16px;
    height: 16px;
}

.welcome-title,
.section-title {
    font-size: 18px;
}

.left-main {
    order: 5;
}

.middle-main {
    order: 1;
}

.right-main {
    order: 2;
}

/* 移動端模塊重新排序 */
.mobile-reverse .middle-banner {
    order: 1;
    margin-bottom: 20px;
    margin-top: 0;
}

.mobile-reverse .top-list {
    order: 2;
}

.mobile-reverse .welcome-match-m {
    order: 3;
    display: block;
    margin-bottom: 0;
    margin-top: 10px;
}

/* .mobile-reverse .welcome-match-m:not(:empty){
    margin-bottom: 20px;
} */

.mobile-reverse .welcome-match-m:has(*) {
    margin-bottom: 20px;
}

.welcome-match-pc {
    display: none;
}

.mobile-reverse .tab-box {
    order: 4;
}

.mobile-reverse .score-board {
    order: 5;
}

.mobile-reverse .hot-match {
    order: 6;
}

.mobile-reverse .all-match {
    order: 7;
}

.match-actions {
    flex-direction: row;
}

.viewers-count {
    width: 63vw;
}

.enter-live-btn {
    flex: 1;
    width: auto;
    max-width: 110px;
}


.tab-box{
    border-radius: 5px;
}

@media screen and (max-width: 448px) {
    .match-time {
        /* width: 100%; */
        font-size: 14px;
        width: auto;
    }

    .duration{
        font-size: 14px;
        width: auto;
    }

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

    .match-score {
        width: 40px;
        font-size: 13px;
    }

    .table-header {
        padding: 12px 5px;
    }

    .top-list ul {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .top-list ul li {
        flex: 1;
        min-width: 10vw;
        padding: 5px 5px;
    }

    .top-list ul li a img {
        width: 28px;
        height: 28px;
    }

    .top-list ul li a span{
        padding-top: 0;
    }

    .left-box {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        margin-bottom: 3px;
    }

    .team-home,
    .team-away {
        display: flex;
        /* flex-direction: column; */
        align-items: center;
        min-width: unset;
        padding-left: 0;
        padding-right: 0;
    }

    .match-item{
        position: relative;
    }

    /* .right-box{
        flex-direction: row;
        gap: 10px;
        position: absolute;
        right: 10px;
        top: 12px;
    } */

    .corner-kicks{
        position: absolute;
        top: 12px;
        right: 10px;
    }

    .first-half{
        position: absolute;
        top: 12px;
        left: 48%;
        transform: translateX(-50%);
    }

    .team-flag{
        max-width: 20px;
        height: auto;
        max-height: 28px;
    }

    .match-score{
        margin: 0 5px;
    }

    .corner-kicks img{
        width: 14px;
        height: 14px;
    }

    .first-half span{
        font-size: 13px;
    }

    .banner-swiper{
        height: 180px;
    }

}

@media screen and (max-width: 375px) {
    .team-name{
        font-size: 12px;
    }
    .first-half span{
        font-size: 12px;
    }

    .banner-swiper{
        height: 170px;
    }
}