@media screen and (max-width: 1200px) {
  #basketball {
    min-width: 100dvw!important;
  }
}
@media screen and (max-width: 1024px) {
  html {
    width: 100vw;
    min-width: 0 !important;
  }
  #basketball {
    min-width: 0 !important;
    width: 100%;
    /* overflow-x: hidden; */
  }
  #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;
  }

  #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;
  }

  #basketball #tools {
    display: none;
  }

  #basketball #left,
  #basketball #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;
  }

  #basketball #live tbody {
    display: flex;
    flex-direction: column;
    align-items: start;
  }

  /* Css for <tr> League */

  .display-info:hover:after,
  .hidden-info:hover:after {
    display: none;
  }

  .match_table_data .league_tr {
    display: grid;
    width: 100%;
    overflow: hidden;
    grid-template-areas: "favorite league_name";
    grid-template-columns: 20px auto;
  }
  .match_table_data .league_tr td:first-child {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .match_table_data .add-div,
  .match_table_data .add-div span {
    display: inline-flex;
  }
  .match_table_data .league_tr .add-div span::after {
    display: none;
  }
  .match_table_data .league_tr td:nth-child(2) {
    display: flex;
  }
  .match_table_data .league_tr td:nth-child(2) > span {
    display: flex;
    gap: 3px;
    flex-grow: 1;
    align-items: center;
  }
  .match_table_data .league_tr td:nth-child(2) img {
    top: 0;
  }
  .match_table_data .league_tr td:nth-child(2) b {
    display: block;
  }
  .match_table_data .league_tr td:nth-child(2) b a {
    display: block;
    max-width: 250px;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .match_table_data tr {
    width: 100%;
  }
  .match_table_data .scoretitle {
    display: grid;
    grid-template-areas: "favorite match_time control";
    grid-template-columns: 24px auto minmax(67px, 90px);
  }
  #basketball
    .bftab
    .scoretitle
    td:not(:first-child):not(:nth-child(2)):not(:last-child) {
    display: none;
  }
  .match_table_data .scoretitle td:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .match_table_data .scoretitle td:nth-child(2) {
    display: flex;
    gap: 3px;
    padding-left: 0 !important;
  }
  .match_table_data .scoretitle td:nth-child(2) span:first-child {
    flex-grow: 1;
  }
  .match_table_data .scoretitle .control {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: end;
  }
  .match_table_data .scoretitle .control .iconbox {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .match_table_data .scoretitle .control .iconbox > span {
    margin: 0;
  }
  .match_table_data .b1 {
    display: flex;
  }

  .match_table_data .b1 td.favorite_td {
    display: none;
  }
  .match_table_data .b1 td[rowspan]:last-child {
    display: none;
  }
  .match_table_data .team_info_match {
    flex-grow: 1;
    display: flex !important;
    align-items: center;
  }
  .match_table_data .b1 td.r-line,
  .match_table_data .b1 td[id^="hs"],
  .match_table_data .b1 td[id^="gs"],
  .match_table_data .b1 td[id^="hzf_"],
  .match_table_data .b1 td[id^="gzf_"] {
    min-width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .match_table_data .b1 td[id^="hzf_"],
  .match_table_data .b1 td[id^="gzf_"] {
    border-left: 1px solid #bfbfbf;
  }

  .match_table_data tr[state-run="true"] td[id^="hw_"],
  .match_table_data tr[state-run="true"] td[id^="ht_"],
  .match_table_data tr[state-run="true"] td[id^="hl_"],
  .match_table_data tr[state-run="true"] td[id^="gw_"],
  .match_table_data tr[state-run="true"] td[id^="gt_"],
  .match_table_data tr[state-run="true"] td[id^="gl_"] {
    display: none !important;
  }

  .match_table_data tr[state-run="false"] td[id^="hw_"],
  .match_table_data tr[state-run="false"] td[id^="ht_"],
  .match_table_data tr[state-run="false"] td[id^="hl_"],
  .match_table_data tr[state-run="false"] td[id^="gw_"],
  .match_table_data tr[state-run="false"] td[id^="gt_"],
  .match_table_data tr[state-run="false"] td[id^="gl_"] {
    display: flex !important;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    padding: 0 3px;
  }

  .match_table_data tr[state-run="false"] td[id^="hw_"] span,
  .match_table_data tr[state-run="false"] td[id^="ht_"] span,
  .match_table_data tr[state-run="false"] td[id^="hl_"] span,
  .match_table_data tr[state-run="false"] td[id^="gw_"] span,
  .match_table_data tr[state-run="false"] td[id^="gt_"] span,
  .match_table_data tr[state-run="false"] td[id^="gl_"] span {
    display: inline-block;
    white-space: nowrap;
    padding: 0 2px;
  }

  .match_table_data tr[state-run="false"] td.r-line,
  .match_table_data tr[state-run="false"] td[id^="hs"],
  .match_table_data tr[state-run="false"] td[id^="gs"],
  .match_table_data tr[state-run="false"] td[id^="hzf_"],
  .match_table_data tr[state-run="false"] td[id^="gzf_"] {
    display: none !important;
  }

  .match_table_data .r-line {
    border-right: 0;
  }
  .match_table_data td[id^="hw_"],
  .match_table_data td[id^="ht_"],
  .match_table_data td[id^="hl_"] {
    border: 0;
  }

  #basketball .date-picker .timeBox {
    display: flex;
    scroll-snap-type: x proximity;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  #basketball .date-picker .timeBox::-webkit-scrollbar {
    display: none;
  }

  #basketball .date-picker .timeBox li[class^="da_"] {
    min-width: calc(100% / 10);
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
  #basketball .date-picker .timeBox li[class^="da_"].on {
    scroll-snap-stop: always;
  }
  .footer .bottom {
    box-sizing: border-box;
    flex-direction: column;
    padding: 20px 8px;
    width: 100%;
  }

  #basketball #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;
  }
  #basketball #info .divList {
    margin: 0;
    width: auto;
    float: none;
  }
  #basketball .div_inner_bottom_span_ul {
    z-index: 50;
    top: calc(100% + 10px);
    width: 267px;
    height: auto;
    overflow-y: auto;
    left: 0;
  }
}

@media screen and (max-width: 450px) {
  #basketball .floatDiv {
    left: 0 !important;
  }
  #basketball .div_inner_bottom_span_ul {
    width: 100dvw;
  }
}

@media screen and (max-width: 450px) {
  #basketball .date-picker .timeBox li[class^="da_"] {
    min-width: calc(100% / 10);
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
}

@media screen and (max-width: 950px) {
  #basketball .date-picker .timeBox li[class^="da_"] {
    min-width: calc(100% / 15);
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
}

@media screen and (min-width: 1025px) {
  #header-wrapper-sp,
  #basketball #tools-mobile,
  .match_table_data .scoretitle td:first-child,
  .match_table_data .scoretitle td:last-child,
  .match_table_data .scoretitle .control {
    display: none;
  }
}

.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);
}
