/*index*/
.market-group{
    margin-top: 10px;
}
.market-group .m-card{
    border-radius: 10px;
    background-color: var(--bg-color10);
    margin-top: 5px;
    display: flow-root;
}
.market-group .m-card-match{
    border-radius: 8px;
    display: flex;
    box-shadow: 0 5px 5px var(--box-shadow1);
    background-color: var(--bg-color1);
    position: relative;
    z-index: 1;
    background-image: var(--pattern-bg1);
    background-size: auto;
    background-position: left center;
    background-repeat: no-repeat;
}
.market-group .m-card-match-wrapper{
    position: relative;
}
.market-group .m-card-match-wrapper:after{
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right:-2px;
    bottom:-2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background:var(--normal-match-color);
    z-index: 0;
    border-radius: 10px;
    background-size: 100%;
}
.market-group .live .m-card-match-wrapper .m-card-match{
    box-shadow: 0 5px 5px var(--box-shadow2);
}
.market-group .live .m-card-match-wrapper:after{
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;  
    right:-2px;
    bottom:-2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background:var(--live-match-color);
    z-index: 0;
    border-radius: 10px;
    background-size: 100%;
}
.market-group .mmo .m-card-match-wrapper .m-card-match{
    box-shadow: 0 5px 5px var(--box-shadow3);
}
.market-group .mmo .m-card-match-wrapper:after{
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;  
    right:-2px;
    bottom:-2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background:var(--mmo-match-color);
    z-index: 0;
    border-radius: 10px;
    background-size: 100%;
}
.market-group .m-card-match .team{
    width: 50%;
    flex-shrink: 0;
}
.market-group .m-card-match .team .team-name{
    flex:1;
    width: 100%;
    font-size: 14px;
}
.market-group .m-card-match .team.team-red{
    color: var(--text-reject);
}
.market-group .m-card-match .team .red-card{
    width: 15px;
    flex-shrink: 0;
    /* background-color: #d81405;
    border-radius: 3px;
    color: #fff;
    text-align: center; */
}
.m-card-header{
    display: flex;
    background-color: var(--bg-color8);
    padding: 10px 10px;
    color: var(--text-color2);
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    line-height: 14px;
    position: sticky;
    top:50px;
    border-radius: 10px 10px 0 0;
    z-index: 9;
    border-top: 1px solid var(--line2);
}
.m-card-header .fav-icon{
    width: 15px;
    flex-shrink: 0;
}
.m-card-header .fav-icon.active{
    color: var(--theme-color3);
}

.m-card-header .group{
    display: flex;
    gap: 5px;
    align-items: center;
}
.m-card-header .icon{
    width:15px;
    flex-shrink: 0;
}
.m-card-header.collapsed{
    background-color: var(--bg-color12);
    color: var(--text-color1);
    border-radius: 10px;
}
.m-card-header .icon.inactive{
    display: none;
}
.m-card-header.collapsed .icon.inactive{
    display: block;
}
.m-card-header.collapsed .icon.active{
    display: none;
}
.m-card-body .m-card-item{
    margin: 7px;
    position: relative;
}
.m-card-body .m-card-item.live:after{
    content: "";
    position: absolute;
    top: -2px;
    left:-2px;  
    right:-2px;
    bottom:-2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background:var(--live-match-color);
    z-index: 0;
    border-radius:12px;
    animation: shimmer 3s ease alternate infinite;
    background-size: 300% 300%;
}
.m-card-body .m-card-item.mmo:after{
    content: "";
    position: absolute;
    top: -2px;
    left:-2px;  
    right:-2px;
    bottom:-2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background:var(--mmo-match-color);
    z-index: 0;
    border-radius:10px;
    background-size: 100%;
}
@keyframes shimmer {
    0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

.m-card-body .m-card-item .m-card-wrap{
    z-index: 1;
    position: relative;
    background-color: var(--bg-color1);
    border-radius: 10px;
    box-shadow: 0 0 16px var(--box-shadow1);
}
.market-group .m-card-match .match-time{
    width: 65px;
    text-align: center;
    padding: 5px;
    border-right: 1px solid var(--line2);
    border-left: 1px solid var(--line2);
    color: var(--text-color1);
    font-size: 14px;
    height: 53px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.market-group .m-card-match .match-time .live-group{
    display: flex;
    flex: 1;
    gap: 2px;
    flex-direction: column;
}

.market-group .m-card-match .match-time .live{
    color: var(--text-color5);
    font-weight: 600;
    font-size: 11px;
    line-height: 11px;
}
.market-group .m-card-match .match-time .score{
    display: flex;
    border-radius: 30px;
    gap: 2px;
    width: 100%;
    overflow: hidden;
    justify-content: center;
}
.market-group .m-card-match .match-time .score .scorebox{
    display: flex;
    background-color: var(--theme-color1);
    color: var(--text-color2);
    width: 50%;
    font-size: 10px;
    justify-content: center;
    align-items: center;
}
.market-group .m-card-match .team{
    width: calc(50% - 30px);
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    font-size: 14px;
    line-height: 16px;
}
.market-group .m-card-match .team:first-child{
    justify-content: flex-end;
    text-align: right;
}
.market-group .m-card-match .team:last-child{
    justify-content: flex-start;
    text-align: left;
    margin-top: 5px !important;
}
.market-group .m-card-match .team .team-logo{
    width: 20px;
    flex-shrink: 0;
}
.m-card-odds{
    background-color: var(--bg-color1);
    padding: 10px;
    border-radius: 0 0px 10px 10px;
}
.odds-swiper .swiper-pagination {
    /* position: relative; */
    margin-top: 10px;
    bottom: 0;
}
.odds-swiper .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background-color: rgba(0, 0, 0, 0.2);
    opacity: 1;
    margin: 0 3px;
}
.odds-swiper .swiper-pagination-bullet-active {
    background-color: var(--theme-color3, #F6C344);
    opacity: 1;
}
.odds-wrapper{
    display: flex;
}
.odds-group{
    display: flex;
    gap: 5px;
    flex:1;
    /* border-left: 1px solid var(--line2); */
    /* padding-left: 5px; */
    align-items: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
}
.odds-group .col{
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.odds-group .three-col{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    flex: 1;
}
.odds-group .two-col{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    flex: 1;
}
.odds-group .col-more-scroll{
    flex: 0 0 calc(33.333% - 3.33px);
    min-width: calc(33.333% - 3.33px);
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.odds-group .row{
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 5px;
    margin: 0;
    flex-shrink: 1;
    flex-wrap: nowrap;
    padding: 0;
    --bs-gutter-x: 0;
}

.odd-box{
    display: flex;
    flex-direction: column;
    justify-content: center;
    border:1px solid var(--line2);
    /* background-color: var(--bg-odd-box); */
    border-radius: 7px;
    flex: 1;
    padding: 3px 7px;
    font-size: 12px;
    align-items: center;
    min-height: 47px;
    text-align: center;
    cursor: pointer;
}
.odd-box.increase,
.odd-box.decrease{
    position: relative;
    overflow: hidden;
}
.odd-box.increase:after{
    position: absolute;
    content: "\f0d8";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 16px;
    line-height: 12px;
    top:-2px;
    right:-2px;
    color:#00AC3F;
    transform: rotate(45deg);
    opacity: 0;
    animation: oddschangeArrow 0.7s linear 3;
}
.odd-box.decrease:after{
    position: absolute;
    content: "\f0d7";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 16px;
    line-height: 12px;
    bottom:-1px;
    right:-1px;
    color:#FF0000;
    transform: rotate(-45deg);
    opacity: 0;
    animation: oddschangeArrow 0.7s linear 3;
}
.odd-box.increase:before{
    position: absolute;
    content: "";
    width: 80%;
    height: 100%;
    background: var(--odds-increase);
    top: 0;
    left:-100%;
    animation: oddschange 2s linear 1;
    z-index: 0;
}
.odd-box.decrease:before{
    position: absolute;
    content: "";
    width: 80%;
    height: 100%;
    background: var(--odds-decrease);
    top: 0;
    left:-100%;
    animation: oddschange 2s linear 1;
    z-index: 0;
}
.odd-box.selected{
    background: var(--bg-odd-box-selected) !important;
}
@keyframes oddschange{
    0%{left:-100%;}
    100%{left:100%;}
}
@keyframes oddschangeArrow{
    0%{opacity: 0;}
    100%{opacity: 1;}
}
.odd-box.inactive{
    justify-content: center;
}
.odd-box.inactive i,
.odd-box.inactive svg{
    color: var(--text-color3);
    opacity: 0.3;
}
.odd-box .odd-point{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size:13px;
    white-space: nowrap;
    color: var(--text-color8);
    border-bottom: 1px solid var(--line2);
    padding-bottom: 1px;
    gap: 2px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    flex: 1;
}
.odd-box .odd-point .ha{
    color: var(--text-color3);
    opacity: 0.5;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    flex-shrink: 1;
    min-width: 0;
}
.odd-box .odd-value{
    font-size: 16px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
}
.odd-box .odd-value.negetive{
    color: var(--text-reject);
}
.odd-box.locked{
    justify-content: center;
    align-items: center;
    font-size: 12px;
    line-height: 16px;
    color: var(--text-color9);
}
/* .odd-box.locked:hover{
    background-color:var(--bg-odd-box);
} */
.all-market .odd-box.locked{
    min-height: 52px;
}
.m-label-wrap{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-right: 1px solid var(--line2);
    margin-right: 10px;
    min-width: 0;
    width: 30px;
    grid-row: span 2;
    grid-column: 1;
}
.m-label{
    padding: 0px 7px;
    border-radius: 100px 0px 0 100px;
    color: var(--text-color2);
    background:var(--bg-gradient);
    font-size: 12px;
    max-width: 35px;
    flex-shrink: 0;    
}
.m-label-top{
    text-align: center;
    font-size: 12px;
}
@media only screen and (min-width: 390px) {
    .odd-box{
        flex-direction: row;
        gap: 5px;
        padding: 7px 5px;
        min-height: 38px;
        align-items: center;
    }
    .odd-box.locked{
        padding: 7px 5px;
        min-height: 40px !important;
    }
    .odd-box .odd-point{
        justify-content:start;
        border-bottom: 0;
        padding-bottom: 0;
        line-height: normal;
    }
    .odd-box .odd-value{
        font-size: 16px;
    }
    .outright .odds-group .odd-box .odd-point{
        border-right: 0;
    }
}

.m-card-item .function-bar{
    display: flex;
    gap: 5px;
    justify-content: flex-start;
    height: 35px;
}
.m-card-item .function-bar .icon-btn{
    width: 35px;
    height: 35px;
    border-radius: 7px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color1);
    background-color: var(--bg-odd-box);
}
.m-card-item .function-bar .more-collapse-btn{
    flex: 1;
    border-radius: 7px;
    border: 1px solid var(--text-color8);
    color: var(--text-color8);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 300px;
    order: 98;
    margin-left: auto;
}
.m-card-item .function-bar .more-collapse-btn .close{
    position: absolute;
    right:10px;
    top:50%;
    transform: translateY(-50%);
    font-size: 14px;
    line-height: 14px;
}
.m-card-item .function-bar .more-btn{
    background-color: var(--theme-color3);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color-b);
    border-radius: 7px;
    padding: 0 5px;
    font-weight: 600;
    order: 99;
}

.more-market-tab-nav{
    margin-top: 10px;
    display: flex;
    gap: 5px;
    border-bottom: 1px solid var(--line2);
    overflow: scroll;
}
.more-market-tab-nav .tab-item{
    border-radius: 10px 10px 0 0;
    flex:1;
    text-align: center;
    padding: 7px 10px;
    border: 1px solid var(--line2);
    border-bottom: 0;
    color: var(--text-color1);
    cursor: pointer;
}
.more-market-tab-nav .tab-item.active{
   background-color: var(--theme-color1);
   border-color: var(--theme-color1); 
   color: var(--text-color2);
}
.more-market-collapse .odds-wrapper{
    margin-top: 10px;
}
.more-market-collapse .odds-group{
    padding: 0;
    border: none;
}
/*outright*/
.outright .odds-group{
    flex-direction: column;
    border: 0;
    padding: 0;
}
.outright .odds-group .row{
    width: 100%;
}
.outright .odds-group .odd-box{
    flex: 1;
    /* width: 50%; */
    flex-shrink: 0;
}
.outright .odds-group .odd-box .odd-point{
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    flex-shrink: 0;
    flex:1;
    width: auto;
    }
.outright .odds-group .odd-box .odd-point .ha{
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    flex-shrink: 0;
    flex:1;
    font-size: 13px;
    opacity: 1;
    color: var(--text-color8);
    display: block;
    text-align: left;
}
.four-d .odds-group .odd-box .odd-point{
    gap: 5px;
}
.four-d-title{
    background-color:var(--bg-color2);
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
}
.result{
    background-color: var(--theme-color3);
    padding: 0px 5px;
    border-radius: 5px;
    color: var(--text-color-b);
    line-height: 16px;
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    align-items: center;
}
/*more page*/
.all-market .upcoming-group{
    display: flex;
    gap: 5px;
}
.all-market .btn-dropdown{
    height: 100%;
    background-color: var(--bg-color1);
    width: 30px;
    font-size: 16px;
    color: var(--text-color1);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    border-radius: 7px;
}
.all-market .btn-dropdown:after{
    display: none;
}
.all-market .dropdown-menu {
    width: 300px;
}
.all-market .dropdown-menu .dropdown-item{
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 10px;
    width: 100%;
}
.all-market .dropdown-menu .dropdown-item .icon{
    width: 20px;
    flex-shrink: 0;
    position: relative;
}
.all-market .dropdown-menu .dropdown-item span{
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.all-market .dropdown-menu .dropdown-item .live{
    color: var(--text-color2);
    font-weight: bold;
    font-style: italic;
    font-size: 10px;
    position: absolute;
    bottom:-5px;
    left:50%;
    transform: translateX(-50%);
    background-color: var(--text-color5);
    line-height: 11px;
    padding: 0 2px;
}
.all-m-match-info{
    margin-top: 10px;
    background-color: var(--bg-color1);
    border-radius: 10px;
}
.all-m-match-info .m-card-header{
    border-radius: 10px 10px 0 0;
}
.all-m-match-info .m-card-match{
    display: flex;
    align-items: center;
    padding:5px 10px;
    background-image: var(--pattern-bg1);
    background-repeat: no-repeat;
    gap: 10px;
}
.all-m-match-info .m-card-match .match-time{
    padding-right: 5px;
    border-right: 1px solid var(--line2);
    display: flex;
    justify-content: center;
    align-items: center;
}
.all-m-match-info .m-card-match .match-time .dt-group{
    border-radius: 10px;
    box-shadow: 0 0 5px var(--box-shadow1);
    padding: 5px 10px;
    background-color: var(--bg-color1);
    margin-right: 10px;
}
.all-m-match-info .m-card-match .match-time .dt-group .date,
.all-m-match-info .m-card-match .match-time .dt-group .time{
    text-align: center;
    color: var(--text-color1);
}
.all-m-match-info .m-card-match .match-time .score{
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
.all-m-match-info .m-card-match .team-wrap{
    flex: 1;
}
.all-m-match-info .m-card-match .team{
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
}
.all-m-match-info .m-card-match .team:last-child{
    margin-bottom: 0px;
}
.all-m-match-info .m-card-match .team-logo{
    width: 25px;
}
.all-m-match-info .m-card-match .score{
    order: 99;
    margin-left: auto;
    background-color: var(--bg-color8);
    width: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color2);
    border-radius: 7px;
}
.all-m-match-info .m-card-match .match-time .live-group{
    color: var(--text-color1);
    text-align: center;
}
.all-m-match-info .m-card-match .match-time .live-group .live{
    color: var(--text-color5);
    font-weight: 600;
    font-size: 12px;
    line-height: 12px;
    text-transform: uppercase;
    font-style: italic;
}
.all-m-match-info .m-card-match .match-time .live-group .duration,
.upcoming-group .scrolling-wrapper .info .duration{
    line-height: 12px;
    white-space: nowrap;
    color: var(--text-color4);
    font-size: 12px;
}
.all-market .tab-nav ul li a{
    display: flex;
    justify-content: center;
    gap: 5px;
    align-items: center;
}
.all-market .tab-nav ul li a img{
    width: 16px;
}
.all-market .live-tv{
    border-radius: 10px;
    overflow: hidden;
    margin: 5px auto 0;
    background-color: #000;
}
.all-market .live-tv img{
    width: 100%;
    max-width: 480px;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
}
.all-market .btn-collapse{
    border-radius: 10px;
    background-color: var(--bg-color1);
    padding: px 10px;
    color: var(--text-color1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5px;
}
.all-market .btn-collapse:after{
    content: "\f0d8";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 16px;
    line-height: 18px;
}
.all-market .btn-collapse.collapsed:after{
    content: "\f0d7";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 16px;
    line-height: 18px;
}
.all-market .m-card-body {
    z-index: 1;
    position: relative;
    border-radius: 10px;
    /* display: flow-root; */
}
.all-market .m-card-body .m-card-item .m-card-wrap{
    padding: 10px;
}
.all-market .tab-betype-wrapper{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    gap: 5px;
}
.all-market .tab-nav2{
    margin-top: 0;
}
.all-market .btn-icon.collapse-all {
    background-color: var(--arrow-bg);
    height: 30px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
}
.all-market .odds-wrapper{
    margin: 5px 0;
}
.all-market .odds-wrapper.two-row{
    margin: 5px 0;
    display: grid;
    grid-template-columns: 30px 1fr;
    align-items: stretch;
    align-content: start;
    column-gap: 10px;
    row-gap: 0;
}
.all-market .odds-wrapper:first-child{
    margin-top: 0;
    border-bottom:1px solid var(--line2);
    padding-bottom: 5px;
}
.all-market .odds-wrapper:last-child{
    margin-bottom: 0;
    border-bottom:0;
    padding-bottom: 0px;
}
.all-m-odds-swiper .odd-box{
    margin-bottom: 5px;
}
/* .all-m-odds-swiper .odd-box:last-child{
    margin-bottom: 0px;
} */
.all-m-odds-swiper .odds-wrapper .odd-box:last-child{
    margin-bottom: 0;
}
.all-market .m-label{
    width: 30px;
    flex-shrink: 0;
}
.all-market .all-m-odds-swiper{
    min-width: 0;
    width: 100%;
}
.all-market .odds-group {
    min-width: 0;
    padding-bottom: 5px;
    margin-bottom: 5px;
    grid-column: 2;
}
.all-market .odds-group:last-child{
    border-bottom: 0;
    margin-bottom: 0px;
    padding-bottom: 0;
}
.all-market .m-label-sub{
    color: var(--text-color3);
    opacity: 0.5;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    min-width: 0;
    text-align: center;
}
.all-market .odds-group .three-col .m-label-sub{
    grid-column: span 3;
}
.all-market .odds-group .two-col .m-label-sub{
    grid-column: span 2;
}
/*Full Half correct time*/
.market-card-filter{
    display: flex;
    justify-content: space-between;
    padding: 5px 0px;
    flex-wrap: wrap;
    gap: 5px;
}

.market-card-filter .score-dropdown{
    position: relative;
    flex: 1;
}

.market-card-filter .score-dropdown:nth-child(2){
    margin-left: 5px;
    margin-right: 5px;
}

.market-card-filter .score-dropdown-wrapper{
    display: flex;
    justify-content: center;
    flex: 1;
}

.market-card-filter .score-dropdown .btn-dropdown{
    white-space: nowrap;
    padding: 5px 15px 5px 5px;
    border-radius: 7px;
    width: 100%;
    font-size: 12px;
    height: 100%;
    position: relative;
}
.market-card-filter .score-dropdown .btn-dropdown:after{
    font-family: 'Font Awesome 5 Free';
    font-weight: 300;
    font-size: 10px;
    color: var(--arrow-color2);
    content: "\f078";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 5px;
    display: block;
}
.score-dropdown-menu{
    width: 80px !important;
    max-height: 150px !important;
    box-shadow: none !important;
    position: fixed !important;
    z-index: 1000 !important;
    background-color: var(--bg-color1);
    box-shadow: 0 0 5px var(--box-shadow1);
    color: var(--text-color1);
    border-radius: 10px;
    border: 1px solid var(--line2);
}
.score-dropdown-menu ul{

}
.market-card-filter .correct-score-odds{
    flex: 1;
    height: 100%;
    background-color: var(--bg-color12);
    color: var(--text-color1);
    font-size: 14px;
    position: relative;
    border: 1px var(--line2) solid;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    min-width: 70px;
  }

.market-card-filter .view-all-btn{
    background-color: var(--theme-color3);
    color: var(--text-color-b);
    min-width: 80px;
    font-size: 12px;
    position: relative;
    line-height: 23px;
    border: 1px var(--line2) solid;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    padding: 5px;
    flex: 1;
}
.market-card-filter .view-all-btn:after{
    font-family: 'Font Awesome 5 Free';
    content: "\f0d7";
    margin-left: 5px;
}
.market-card-filter .view-all-btn[aria-expanded="true"]:after{
    font-family: 'Font Awesome 5 Free';
    content: "\f0d8";
    margin-left: 5px;
}

/*layout 2*/
.market-group .layout2 .m-card-wrap {
    display: flex;
    padding: 10px;
}

.market-group .layout2.active-open .m-card-wrap {
    padding: 0;
}

.market-group .layout2 .m-card-match-wrapper {
    width: 100%;
}

.market-group .layout2.active-open .m-card-match-wrapper {
    width: 30%;
    display: flex;
    flex-direction: column;
    padding: 10px;
}
.market-group .layout2.active-open .m-card-match-wrapper .custom-tooltip-trigger{
    display: none;
}
.market-group .layout2 .m-card-match-wrapper .custom-tooltip-trigger{
    font-size: 20px;
    color: var(--text-color1);
    opacity: 0.5;
    padding: 7px;
}
.my-brand-tooltip {
    --bs-tooltip-bg: var(--arrow-color1);
    --bs-tooltip-color: var(--text-color-b);
    --bs-tooltip-opacity: 1;
  }
.market-group .layout2 .m-card-match {
    flex-direction: row;
    box-shadow: none !important;
    background: none;
    align-items: center;
}

.market-group .layout2.active-open .m-card-match {
    flex-direction: column;
    flex-grow: 1;
    gap: 5px;
}
.market-group .layout2 .m-card-match .team{
    width: 100%;
    margin-bottom: 5px;
    display:inline-flex;
    position: relative;
    justify-content: flex-start;
}
.market-group .layout2 .m-card-match .team:first-child {
    text-align: left;
    margin-top: 5px;
}
.market-group .layout2.active-open .m-card-match .team .red-card{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: -11px;
}
.market-group .layout2 .m-card-match .team .team-name {
    flex: initial;
    width:auto;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}
.market-group .layout2.active-open .m-card-match .team .team-name{
    width: 100%;;
}
.market-group .layout2 .m-card-match .team-group {
    flex: 1;
}

.market-group .layout2.active-open .m-card-match .team {
    height: 47px;
    width: 100%;
    padding: 0;
    margin: 0;
}

.market-group .layout2 .m-card-match-wrapper:after {
    display: none;
}

.market-group .layout2 .m-card-match .match-time {
    width:60px;
    justify-content: center;
    height: auto;
    border: 0;
    padding: 0 10px 0 0;
    border-right: 1px solid var(--line2);
    line-height: 14px;
}

.market-group .layout2.active-open  .m-card-match .match-time{
    width: 100%;
}
.market-group .layout2.active-open .m-card-match .match-time {
    padding: 0;
    border-right: 0;
}
.market-group .layout2 .m-card-match .match-time .duration{
    line-height: 11px;
    white-space: nowrap;
    color: var(--text-color4);
    font-size: 11px;
}

.market-group .layout2 .m-card-match .match-time .live-wrap{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.market-group .layout2.active-open .m-card-match .match-time .live-wrap{
    flex-direction: row;
    gap: 5px;
}

.market-group .layout2.active-open .m-card-match .match-time .dt-group,
.market-group .layout2.active-open .m-card-match .match-time .live-group {
    display: flex;
    gap: 5px;
    background: var(--bg-top);
    padding: 5px;
    width: calc(100% + 40px);
    border-radius: 10px 0 10px 0;
    margin-left: -10px;
    margin-top: -10px;
    align-items: center;
    height: 35px;
    font-size:clamp(13px, 4vw, 14px);
    justify-content: center;
}
.market-group .layout2.active-open .m-card-match .match-time .live-group{
    flex-direction: column;
    gap: 0;
}
.market-group .layout2 .m-card-match .match-time .live-group .live{
    font-size: 12px;
    line-height: 13px;
    text-transform: uppercase;
    font-weight: bold;
    font-style: italic;
}
.market-group .layout2 .m-card-match .match-time .live-group .pen{
    color: var(--text-color6);
    border:1px solid var(--text-color6);
    border-radius: 3px;
    font-size: 11px;
    margin-top: 2px;
    padding:0 5px;
    display: inline-block;
}
.market-group .layout2.active-open .m-card-match .match-time .score{
    width: auto;
    flex-direction: row;
    font-size: 14px;
    color: var(--text-color1);
}
.market-group .layout2.live .m-card-match{
    box-shadow: none;
}
/* ================================
   Odds
   ================================ */
.market-group .layout2 .m-card-odds {
    width: calc(70% - 30px);
    padding: 5px;
    display: none;
}
.market-group .layout2.active-open .m-card-odds {
    display: block;
}
.market-group .layout2 .odds-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding-left: 0;
    border-left: 0;
}
.market-group .layout2 .odds-group.two-col {
    grid-template-columns: repeat(2, 1fr);
}
.market-group .layout2 .more-market-collapse .odds-group {
    display: grid;
    grid-template-columns: unset;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, auto);
    grid-auto-columns: calc(100% / 3.15); 
    gap: 5px;
    overflow-x: auto;
    overflow-y: hidden;   
}

.market-group .layout2 .odd-box {
    flex-direction: column;
    gap: 0;
    padding: 0;
    font-size: 12px;
    height: 47px;
}
.market-group .layout2 .odd-box.mmo{
    background-color: var(--mmo-color);
}

.market-group .layout2 .odd-box.mmo .odd-point .negetive{
    color: var(--text-reject);
}

.market-group .layout2 .odd-box .odd-point {
    font-size: 13px;
    border-bottom: 1px solid var(--line2);
    justify-content: center;
}

.market-group .layout2 .odd-box.mmo .odd-point {
    border-bottom: none !important;
}

.layout2 .more-market-btn {
    grid-column: span 2;
    flex: 1;
    border-radius: 7px;
    background: none;
    border: 1px solid var(--line2);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 47px;
    font-size: 13px;
    text-align: center;
}

.layout2 .more-market-btn.grid3{
    grid-column: span 3;
}

.layout2 .close-more-market-btn{
    border: 1px solid var(--line2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    border-radius: 7px;
    width: 100%;
    margin-top: 5px;
    position: relative;
    padding: 10px;
    color: var(--text-color3);
    height: 47px;
}
.layout2 .close-more-market-btn:after{
    content: "\f00d";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 12px;
    position: absolute;
    line-height: 15px;
    top: 50%;
    right:10px;
    transform: translateY(-50%);
}
.layout2 .odds-group .m-label-top{
    height: 30px;
    padding-top: 5px;
    line-height: 12px;
    font-weight: 500;
}
.layout2 .more-market-collapse .odds-wrapper{
    margin-top: 5px;
}
/* ================================
   Right Wrapper
   ================================ */
.layout2 .right-wrapper {
    position: relative;
    justify-content: center;
    display: flex;
    width: 25px;
    align-items: center;
}

.layout2.active-open .right-wrapper {
    align-items: start;
}

.layout2 .right-wrapper .more-btn {
    background-color: var(--theme-color3);
    justify-content: center;
    align-items: center;
    color: var(--text-color-b);
    border-radius: 7px;
    padding:5px 5px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    font-size: 12px;
    display: none;
}

.layout2.active-open .right-wrapper .more-btn {
    display: flex;
}

.layout2 .right-wrapper .arrow {
    position: relative;
    width: 100%;
    height: 30px;
}

.layout2 .right-wrapper .arrow:after {
    content: "\f0d7";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 18px;
    position: absolute;
    line-height: 15px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-color1);
}
.layout2.active-open .right-wrapper .arrow:after {
    content: "\f0d8";
}

/* ================================
   Function Bar
   ================================ */
.layout2.m-card-item .function-bar {
    height: auto;
    flex-wrap: wrap;
    gap: 3px;
    display: none;
}

.layout2.active-open.m-card-item .function-bar {
    display: flex;
    margin-top: 5px;
}

.layout2.m-card-item .function-bar .icon-btn {
    width: 25px;
    height: 25px;
}
.layout2.m-card-item .function-bar .icon-btn.active{
    background-color: var(--theme-color1);
    color: var(--text-color2);
}
.layout2.m-card-item .function-bar .icon-btn:first-child.active{
    background-color: var(--theme-color3);
    color: var(--text-color-b);
}
.layout2.m-card-item .toggle-m-btn{
    display: none;
}
.layout2.active-open.m-card-item .toggle-m-btn{
    color: var(--text-color1);
    background-color: var(--bg-odd-box);
    display: block;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 25px;
    font-size: clamp(11px,2.5vw,12px);
    flex: 1;
    white-space: nowrap;
}
/* .layout2.active-open.m-card-item .toggle-m-btn.mmo{
    background-color: var(--mmo-color);
} */
/* ================================
   Collapse & Tabs
   ================================ */

.layout2 .more-market-tab-nav {
    margin: 0;
    height: 30px;
}

.layout2 .more-market-tab-nav .tab-item {
    padding: 3px 7px;
}

.layout2 .more-market-collapse {
    width: 100%;
}

.odd-box:active,
.layout2 .close-more-market-btn:active,
.layout2 .more-market-btn:active,
.layout2 .more-market-tab-nav .tab-item:active{
    touch-action: manipulation;
    background-color: var(--bg-odd-box-selected);
}