@media (max-width: 5000px) {
  #AdLayer1,
  #AdLayer2,
  #left_float_ad,
  #right{
      display: none;
  }
  #topAdDiv, #ad_middle_3, #ad_middle_2, #bottomFly, tr.ad_m, #ad_middle_2{
      display: none !important;
  }
  #topAdDivNew {
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
  }
    #topAdDivNew1 {
      margin: 0 -8px 8px -8px;
      background-color: #e5e5e5;
      text-align: center;
      max-width: 640px;
  }
  #topAdDivNew2 {
    display: block !important;
    margin: 0px -8px 5px -8px;
    text-align: center;
  }
  .bread{
    display: none;
  }
  #bottomFlyMobile {
      position: fixed !important;
  }

  #returnTop {
      display: none;
  }
}
@media screen and (min-width: 5000px) {
  #baseball #header-wrapper-sp {
    display: none;
  }
}
@media screen and (max-width: 5000px) {
  #container {
    max-width: 640px;
  }
  body {
    max-width: 640px !important;
    min-width: unset !important;
  }
  body {
    max-width: 640px !important;
  }
  #header-wrapper {
    display: none;
  }
  #header-wrapper-sp {
    display: block;
    width: 100%;
    background-color: var(--primary-color) !important;
  }
  #scoreDiv {
    display: none;
  }
  .dark #header-wrapper-sp {
    background-color: #22481f !important;
  }
  .theme .theme-style {
    background-color: #205c04 !important;
  }
  .dark #header-wrapper-sp .theme-style:before {
    left: 50%;
    background-image: url(../../images/dark.png);
    background-repeat: no-repeat;
    background-color: #fff;
  }
  .swiperMenu-baseball .swiper-wrapper{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
  }

  .swiperMenu-baseball .swiper-wrapper{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
  }

  #header-wrapper-sp .topBar-sp {
    height: 24px;
    padding: 12px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  #header-wrapper-sp .topBar-sp .topBar-left-sp .Choose-tool {
    margin-left: 8px;
    height: 20px;
    margin-top: 2px;
  }

  #header-wrapper-sp .topBar-sp .topBar-left-sp .Choose-tool img {
    margin-left: 0px;
  }

  #header-wrapper-sp .topBar-sp .topBar-right-sp .Choose-tool {
    margin-right: 8px;
    height: 20px;
  }

  body #header-wrapper-sp .topBar-sp .topBar-left-sp .Choose-tool .img-tool {
    border-radius: 0 !important;
  }

  #header-wrapper-sp .topBar-sp .size-20 {
    height: 20px;
    width: 20px;
  }

  #header-wrapper-sp .topBar-sp .topBar-right-sp {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  #header-wrapper-sp .topBar-middle-sp a img {
    height: 24px;
  }

  #header-wrapper-sp .topBar-middle-sp a {
    display: inline-block;
  }

  #header-wrapper-sp .mainBar-sp {
    padding: 0 8px;
  }

  #header-wrapper-sp .mainBar-sp .authBox {
    display: flex;
    justify-content: space-between;
  }

  #header-wrapper-sp .mainBar-sp .authBox > div {
    width: calc(100%);
    height: 36px;
    padding: 8px 24px;
    border: none;
  }

  #header-wrapper-sp .menu-icon {
    display: flex;
    width: 28px;
    height: 28px;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
  }

  .dark #menuSp {
    background-color: #030405;
  }

  .bottomBar-sp {
    padding: 11px 8px 11px 8px;
    background-color: #e5e5e5;
    transform: translateY(1px);
  }

  .dark .bottomBar-sp {
    background-color: #030405;
  }

  .bottomBar-sp #menuSp .sp-item-menu {
    /*display: inline-block;*/
    padding: 6px;
    border-radius: 4px;
    background-color: #f2f2f2;
  }

  .swiperMenu {
    width: 100%;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
  }

  .bottomBar-sp #menuSp .sp-item-menu a {
    text-align: center;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 44px;
  }

  .swiper-slide a {
    text-decoration: none !important;
  }
  #menuSp .swiperMenu .swiper-wrapper {
    display: grid;
    scroll-snap-type: x proximity;
    grid-template-columns: repeat(6, minmax(63px, 1fr));
    gap: 4px;
    overflow-x: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  #menuSp .swiperMenu .swiper-wrapper::-webkit-scrollbar {
    display: none;
  }

  #menuSp .swiperMenu .swiper-slide {
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .menuMainSp .swiperMainMenu .swiper-slide {
    width: 76px;
    margin-right: 4px;
  }
  #menuSp .swiperMatchList .swiper-slide {
    width: 192px;
  }

  .bottomBar-sp #menuSp .swiper-box-icon {
    width: 100%;
    padding-bottom: 2px;
    height: 22px;
    margin-right: 0;
    text-align: center;
  }

  .bottomBar-sp #menuSp .swiper-box-icon img {
    width: 20px;
  }

  .bottomBar-sp #menuSp .sp-item-menu span {
    font-size: 10px;
    height: 100%;
    line-height: 1.1;
    flex-shrink: 1;
    flex-grow: 1;
    display: flex;
    text-align: center;
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .bottomBar-sp #menuSp .swiper-slide.swiper-slide-active .sp-item-menu {
    background-color: #eff9ea;
  }

  .dark .bottomBar-sp #menuSp .sp-item-menu {
    background-color: #1a1a1a;
  }

  .dark .bottomBar-sp #menuSp .swiper-slide.swiper-slide-active .sp-item-menu {
    background-color: #374033;
    justify-content: center;
  }

  .bottomBar-sp #menuSp .swiper-slide.swiper-slide-active .sp-item-menu span {
    color: #005030;
    font-weight: 600;
  }
  .dark
    .bottomBar-sp
    #menuSp
    .swiper-slide.swiper-slide-active
    .sp-item-menu
    span {
    color: #10e18d;
  }

  body:not(.dark)
    .bottomBar-sp
    #menuSp
    .swiper-slide
    .sp-item-menu
    .swiper-menu-icon.icon-dark,
  body:not(.dark)
    .bottomBar-sp
    #menuSp
    .swiper-slide.swiper-slide-active
    .sp-item-menu
    .swiper-menu-icon:not(.icon-active),
  body:not(.dark)
    .bottomBar-sp
    #menuSp
    .swiper-slide:not(.swiper-slide-active)
    .sp-item-menu
    .swiper-menu-icon:not(.icon-active) {
    display: none;
  }

  body.dark
    .bottomBar-sp
    #menuSp
    .swiper-slide
    .sp-item-menu
    .swiper-menu-icon:not(.icon-dark),
  body.dark
    .bottomBar-sp
    #menuSp
    .swiper-slide.swiper-slide-active
    .sp-item-menu
    .swiper-menu-icon:not(.icon-active),
  body.dark
    .bottomBar-sp
    #menuSp
    .swiper-slide:not(.swiper-slide-active)
    .sp-item-menu
    .swiper-menu-icon.icon-active {
    display: none;
  }

  /* .bottomBar-sp #menuSp .swiper-slide */

  #topAdDiv {
    display: none;
  }

  .bottomBar-sp
    #menuSp
    .swiperMenu
    .swiper-slide
    .sp-item-menu.active-menu
    .swiper-menu-icon {
    display: none;
  }

  .bottomBar-sp
    #menuSp
    .swiperMenu
    .swiper-slide
    .sp-item-menu.active-menu
    .swiper-menu-icon.icon-active {
    display: inline;
  }

  #header-wrapper-sp .topBar-sp .topBar-right-sp {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  #header-wrapper-sp .topBar-sp .topBar-right-sp .theme-div {
    margin: 0;
  }

  #menuMainSw {
    margin-bottom: 9px;
  }

  #menuMainSw .swiper-box {
    flex-direction: column;
    height: 44px;
    padding: 7px 6px;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    border-radius: 8px;
  }

  .menuMainSp {
    width: 100%;
    overflow: hidden;
  }

  #menuMainSw .swiper-box-icon {
    width: 28px;
    height: 28px;
    margin-right: 0;
    margin-bottom: 4px;
  }
  #menuMainSw .swiper-wrapper {
    gap: 4px;
  }
  #menuMainSw .swiper-slide {
    width: auto;
    flex: 1;
    margin-right: 0 !important;
  }

  #menuMainSw .swiper-box {
    display: flex;
    flex-direction: column;
    height: 44px;
    padding: 7px 6px;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    border-radius: 8px;
    animation: 0.5s;
    background-color: #205c04;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .dark #menuMainSw .swiper-box {
    background-color: #1c1e1b;
  }

  #menuMainSw .swiper-box.active {
    background-color: #ffffff;
  }

  #menuMainSw .swiper-box.active span {
    color: #005030;
    font-weight: 700;
  }

  .dark #menuMainSw .swiper-box:not(.active) span {
    color: #bbbbbb;
  }

  #menuMainSw .swiper-box:not(.active) .swiper-menu-icon.icon-active {
    display: none;
  }

  #menuMainSw .swiper-box.active .swiper-menu-icon:not(.icon-active) {
    display: none;
  }

  #menuMainSw .swiper-box span {
    font-size: 10px;
    text-align: center;
    letter-spacing: 0.3px;
    color: #99b9ac;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #baseball #tools {
    display: none;
  }

  #baseball #left,
  #baseball #right {
    display: none;
  }
  .mcontent {
    width: 100%;
    max-width: 100%;
  }
  .crumbs {
    display: none !important;
    width: 100% !important;
  }
  #main {
    width: 100%;
  }
  #main #min {
    width: 100%;
    max-width: 100%;
    float: none;
    box-sizing: border-box;
  }

  #main #min #Layer1 {
    display: none;
  }
  .footer .bottom {
    box-sizing: border-box;
    flex-direction: column;
    padding: 20px 8px;
    width: 100%;
  }

  #baseball #info {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }
  #baseball #info .divList {
    margin: 0;
    width: auto;
    float: none;
  }
  #baseball .div_inner_bottom_span_ul {
    z-index: 50;
    top: calc(100% + 10px);
    width: 267px;
    height: auto;
    overflow-y: auto;
    left: 0;
  }

  #baseball #teammain {
    max-width: 640px !important;
    box-sizing: border-box;
  }
  #baseball #div_ad_float,
  #baseball #searchWin {
    display: none;
  }
  #baseball #Layer1 #showoptional2,
  #baseball #Layer1 #showCountry {
    width: calc(100dvw - 20px);
    left: 0;
  }
  #showoptional2 li label,
  #countryListDiv li label,
  #showoptional li label,
  #showCompany li label {
    width: 88%;
  }

  #baseball .rbl {
    display: flex;
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  #baseball .rbl::-webkit-scrollbar {
    scrollbar-width: none;
  }

  #baseball .rbl span.el-radio-style {
    white-space: nowrap;
  }
  #header-wrapper-sp .shake {
    max-width: 28px;
    max-height: 28px;
  }
}

@media screen and (max-width: 5000px) {

  #showoptional2 ul {
    display: flex;
    flex-direction: column;
  }
   #showoptional2 ul li {
    width: 100%;
   }
}

@media screen and (min-width: 5000px) {
  #tools-mobile {
    display: none!important;
  }
}



#tools-mobile {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 11px;
}
#filter-match-type {
  display: flex;
  justify-content: start;
  gap: 6px;
}
#filter-match-type.fixture {
  justify-content: space-between;
}
#filter-match-type .filter-button, #CompanySelMobile .dropdown-toggle{
  font-size: 12px;
  width: 90px;
  height: 34px;
  padding: 10px 20px;
  text-align: center;
  color: #5F5F5F;
  background-color: #F2F2F2;
  border: 0;
  border-radius: 4px;
  font-weight: bold;
  white-space: nowrap;
}
#filter-match-type .filter-button.auto-width {
  width: auto;
}

.dark #filter-match-type .filter-button,.dark #CompanySelMobile .dropdown-toggle{
  background-color: #444;
  color: #fff;
}

#filter-match-type [data-id="li_FilterHot"] {
  display: flex;
  align-items:center;
  justify-content: space-between;
}
#CompanySelMobile {
  height: 100%;
  flex-grow: 1;
  display: flex;
  justify-content: end;
}

#CompanySelMobile .dropdown-toggle {
  max-width: 181px;
  width: 100%;
  height: 100%;
  position: relative;
  margin-right: 0;
}

#filter-match-type .filter-button.active {
  color: white;
  background-color: #205C04;
}

.dropdown {
  position: relative;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.dropdown .dropdown-toggle {
  display: flex;
  height: 30px;
  width: 100%;
  padding: 0px 8px;
  justify-content: space-between;
  align-items: center;
  flex: 1 0 0;
  background-color: #f2f2f2;
  border-radius: 4px;
  border: none;
}

.dark .dropdown-toggle::before {
  color: #fff;
  /* background: url(../../assets/vn/images/icon_arrow_right-white.svg) */
}

.dark .dropdown-toggle {
  color: #fff;
}

.dark .dropdown .dropdown-toggle {
  background-color: #22481f;
}

.dropdown-menu {
  z-index: 103;
  position: absolute;
  background-color: red;
  top: 34px;
  display: flex;
  width: 100%;
  padding: 4px;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  border-radius: 4px;
  background: #fff;
  box-shadow: -1px -1px 8px 0px rgba(0, 0, 0, 0.2),
  1px 1px 6px 0px rgba(0, 0, 0, 0.2);
  display: none;
}

.dark .dropdown-menu {
  background-color: #24351b;
}

.dark .dropdown-menu .option {
  background-color: #100e0e;
}

.dropdown-menu.show {
  display: flex;
}

.dropdown-menu {
  width: calc(100% - 8px);
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -4px;
  right: 0;
  left: 10px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-bottom: 4.5px solid #ffffff;
  border-right: 5px solid transparent;
}

.dropdown-menu .option {
  display: flex;
  height: 30px;
  padding: 0px 8px;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  border-radius: 4px;
  background: #f2f2f2;
}

.option.active {
  background: #c1e1b1;
}

.dark .option.active {
  background-color: #697974;
}

.dropdown-toggle::before {
  content: "";
  transition: 0.3s all ease-in-out;
  width: 16px;
  height: 16px;
  line-height: 16px;
  right: 3px;
  left: auto;
  position: absolute;
  border: 0;
  transform: rotate(0);
  background: url(/assets/images/icon_arrow_right-black.svg);
}

.dropdown.show .dropdown-toggle::before {
  transform: rotate(180deg);
}

@media screen and (max-width: 1024px) {
  #teammain {
    width: unset;
  }
}
