

/* START: grid-matches */
.grid-matches {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}

.main-grid-match a {
  text-decoration: none;
}

.main-grid-match a.odds-comp img {
  width: 70px;
  height: auto;
  object-fit: contain;
}

#tennis a.odds-comp img {
  width: auto;
  max-width: 73px;
}

.home .grid-match__time {
  top: -9px;
}

#match-full-data-header .grid-match__time {
  top: -22px;
}

@media (max-width: 767px) {
  #match-full-data-header .grid-match__time {
    top: 12px;
  }
}

.gmd-wrapper {
  width: 85px;
  height: 26px;
  margin: 0 auto;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, #0B540B 0%, #069B3C 169.23%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  display: none;
}

.gmd-tournament-header {
  align-items: center;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 127px 1fr;
  padding: 15px;
  text-align: center;
  padding-top: 10px;
  padding-bottom: 8px
}

.gmd-tournament-header .gmd-match-league {
  text-align: left;
  color: #828b98;
  text-transform: uppercase;
  font-size: 11px;
}

.gmd-tournament-header .gmd-match-league .gmd-comp_logo {
  height: 14px;
  width: 14px;
  object-fit: contain;
}

.gmd-tournament-header .gmd-elapsed-time {
  width: 100%;
  height: 26px;
}

.icon-haflt {
  position: relative;
  z-index: 2
}

.icon-haflt text {
  position: absolute !important;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  color: #fff;
  text-align: center;
  font-style: normal;
  line-height: 20px;
  z-index: 2;
  font-family: var(--bs-body-font-family);
  font-size: 12px;
  font-weight: 600;
}

.icon-haflt .t_time.t_time_num {
  text-align: center;
  font-style: normal;
  line-height: 20px;
  z-index: 2;
  font-family: var(--bs-body-font-family);
  font-size: 12px;
  font-weight: 600
}

.icon-haflt .progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 26.5px;
  background: linear-gradient(97.93deg, #118c2e 6.42%, #0f6901 95.04%);
  border-bottom-left-radius: 1.25rem !important;
  border-bottom-right-radius: 1.25rem !important;
  border-top-left-radius: 5px !important;
  border-top-right-radius: 0 !important;
  clip-path: polygon(0 0, 100% 0, calc(100% - .8125rem) 100%, .8125rem 100%);
  min-width: 30%;
  max-width: 100px;
  display: none !important
}

@media (max-width: 768px) {
  .icon-haflt {
    z-index: 0
  }
}

.gmd-tournament-header .gmd-match-date {
  text-align: right;
  color: #8cd5ff;
}

.gmd-tournament-header .gmd-match-date {
  color: #b8c2c5;
  font-size: 12px;
  font-family: var(--bs-body-font-family);
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  height: 20px;
  gap: 10px;
  text-align: right;
}

.gmd-team {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 11px;
  flex: 1;
  min-width: 0; 
}

.gmd-team p {
  margin-bottom: 0 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  width: 100%;       /* thay vì width cố định 120px */
  max-width: 120px;  /* vẫn giữ mốc thiết kế cũ làm giới hạn trên */
  min-width: 0;
}

.gmd-home_team {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 11px;
  padding-right: 24px;

  p {
    margin-bottom: 0 !important;
    text-align: right;
  }
}

.gmd-away_team {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
  padding-left: 24px;

  p {
    margin-bottom: 0 !important;
    text-align: left;
  }
}

.gmd_home-score.is-win p::before,
.gmd_away-score.is-win p::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 6px;
  padding: 1px;
  background: linear-gradient(360deg,
      rgba(0, 200, 244, 0.75),
      rgba(66, 83, 243, 0.75));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
}

.gmd-match__odds-item {
  display: flex;
  justify-content: space-between;
  line-height: 16px;
  gap: 15px;
  position: relative;
}

.gmd-match__odds-item p {
  margin-bottom: 0;
}

.gmd-match__odds-item .up {
  color: #0cc956;
}

.gmd-match__odds-item .down {
  color: #ff0000;
}

.gmd-team .team-logo-group img {
  height: 40px;
  width: 40px;
  -o-object-fit: contain;
  object-fit: contain;
  padding: 2px;
}

@media (max-width: 1300px) {
  .gmd-team p {
    max-width: 100px;
  }
}

@media (max-width: 576px) {
  .gmd-team .team-logo-group img {
    height: 36px;
    width: 36px;
  }

  .gmd-team .team-logo-group {
    flex-direction: column;
  }

  .gmd-match__odds-item {
    line-height: 12px;
  }

  .gmd-home_team,
  .gmd-away_team {
    padding: 10px;
  }

  .gmd-away_team,
  .gmd-home_team {
    p {
      margin-bottom: 0 !important;
      text-overflow: ellipsis;
      white-space: nowrap;
      overflow: hidden;
      width: 90px;
    }
  }

  .gmd-home_team,
  .gmd-away_team {
    padding: 5px;
  }

  a.odds-comp img {
    width: 50px;
  }

}

@media (max-width: 467px) {
  .gmd-away_team,
  .gmd-home_team {
    p {
      margin-bottom: 0 !important;
      text-overflow: ellipsis;
      white-space: nowrap;
      overflow: hidden;
      width: 75px;
      max-width: 75px;
    }
  }
}

@media (max-width: 390px) {
  .gmd-tournament-header {
    & .gmd-match-date {
      span {
        padding: 5px 10px;
      }
    }
  }

  .gmd-tournament-header {
    padding: 7px;
    grid-template-columns: 1fr 1fr 1fr;
  }

  .gmd-home_team,
  .gmd-away_team {
    padding: 5px;
  }

  .match-item__h2h-vs {
    gap: 3px;
    align-items: center;
  }

  a.odds-comp img {
    width: 50px;
  }

  .gmd-away_team,
  .gmd-home_team {
    p {
      width: 45px;
      display: block;
      max-width: 45px;
    }
  }
}

@media (max-width: 992px) {
  .grid-matches {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* END: grid-matches */
@media (max-width: 768px) {
  .main-page .sports-bars ul li button {
    flex-direction: column;
  }

  .main-page .sports-bars {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
  }

  .main-page .sports-bars ul li::after {
    display: none;
  }

  .main-page .sports-bars ul {
    justify-content: center;
    flex-wrap: nowrap;
    width: 100%;
    gap: 30px;
  }

  .main-page .sports-bars ul::-webkit-scrollbar {
    display: none;
  }

  .main-page .sports-bars ul li button {
    gap: 4px;
  }

  .main-page .sports-bars ul li button span {
    white-space: normal;
    max-width: 47px;
    margin: 0 auto;
    text-align: center;
    font-family: var(--bs-body-font-family);
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 17px;
    text-transform: uppercase;
    min-height: 34px;
  }

  .main-page .sports-bars ul li button svg {
    width: 16px;
    height: 16px;
  }
}

/* Additional CSS */

.gmd-match-footer__streamer.active span.blv-arrow {
  color: #bbbbbb;
}


.gmd-match-footer__streamer.active .toggle-btn {
  border: none !important;
  box-shadow: none !important;
  background-color: none !important;
}

.gmd-match-footer__streamer.active .toggle-btn.no-blv {
  border: 1px solid transparent;
  background-color: transparent;
}

@media (max-width: 991px) {

  .gmd-match-footer__streamer.active .extra-info {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 85px;
    background: #071f69;
    border-radius: 6px;
    padding: 5px 7px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
  }
}

@media (max-width: 490px) {
  .main-page .sports-bars ul li button {
    font-size: 10px;
  }
}

@media (max-width: 367px) {
  .main-page .sports-bars ul {
    justify-content: center;
    padding-right: 0;
  }

  .main-page .sports-bars ul {
    gap: 0px;
  }

  .main-page .sports-bars ul li button {
    min-width: 55px !important;
  }
}

.gmd-tournament-header {
  .gmd-match-league {
    display: flex;
    gap: 6px;
    align-items: center;
  }
}

.redirectPopup {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 73%;
  z-index: 1;
}

.grid-matches__item {
  position: relative;
  border-radius: 8px;
}

.match-detail {
  .grid-matches__item {
    padding-left: 0;
    padding-right: 0;
  }
}

.grid-match {
  border-radius: 8px;
}

/* HOT MATCH */
.grid-matches__item .grid-match {
  background: linear-gradient(97deg, #32373800 61.58%, #00ff5e0d), #292d2e;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 11px;
  display: block;
  height: auto;
  color: #fff;
  padding: 0;
}

.grid-match--is-hot {
  position: relative;
  background: linear-gradient(97deg, #32373800 61.58%, #ff00001a), #2e2929 !important;
  background-size: cover;
}

@media only screen and (max-width: 480px) {
  .gmd-match-league .text-ellipsis {
    width: 100px;
  }

  .gmd-tournament-header {
    grid-template-columns: 1fr 110px 1fr;
  }
}

@media only screen and (max-width: 768px) {
  .main-page .sports-bars {
    display: flex;
    gap: 15px;
  }

  .gmd-match-footer__streamer.active .extra-info {
    align-items: flex-start;
  }

  /* matches mobiles */
  .grid-matches__item .gmd-content_match img {
    width: 40px;
  }

  .grid-matches__item .gmd-home_team p,
  .grid-matches__item .gmd-away_team p {
    font-size: 13px;
  }
}

/*Top Match*/
.teambox__status {
  color: #00ff4b;
}

.gmd-match-league span {
  color: white;
  font-weight: 500;
}

/* Recent Changes */

.gmd_home-score.is-win p,
.gmd_away-score.is-win p {
  position: relative;
  margin-bottom: 0;
  border-radius: 6px;
  background: linear-gradient(0deg, #2532d5 0%, #070e59 76.25%);
  padding: 3px 10px;
}

.gmd-content_match {
  color: #fff;
  display: flex;
  padding: 0 8px 17px 8px;
  text-align: center;
  align-items: center;

  min-width: 0;
}

.gmd-mid_score {
  width: max-content;
}

.gmd_home-score.is-win p::before,
.gmd_away-score.is-win p::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 6px;
  padding: 1px;
  background: linear-gradient(360deg,
      rgba(0, 200, 244, 0.75),
      rgba(66, 83, 243, 0.75));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
}

@media (max-width: 1200px) {
  .gmd-content_match {
    padding: 0 8px 8px 8px;
  }
}

@media only screen and (max-width: 480px) {
  .gmd-match-league .text-ellipsis {
    width: 90px !important;
  }

  .gmd-home_team {
    padding-right: 5px;
  }

  .gmd-away_team {
    padding-left: 5px;
  }
}

.gmd-match__odds-item {
  display: flex;
  justify-content: space-around;
  line-height: 16px;
  gap: 10px;
  position: relative;
  text-align: center;
}

.gmd-match__odds-item p {
  margin-bottom: 0;
  flex: 1;
}
.grid-match__status {
    height: 28px;
    position: relative;
    z-index: 2;
}
.match__vs.grid-match__vs.t_vs_num {
  display: flex;
  gap: 5px;
  background: #464f50;
  background: linear-gradient(156deg, #1553EF 0%, #0C3089 39.5%, #0C1A4C 98.5%);;
  color: #fff;
  text-align: center;
  font-size: 17px;
  font-style: normal;
  font-weight: 700;
  width: inherit;
  height: inherit;
  gap: 4px;
  padding: 1px;
  border-radius: 8px;
  position: relative;
}

.match__vs.grid-match__vs.t_vs_num:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 6px;
  padding: 1.02px;
  background: linear-gradient(159deg, #0C2F88 0%, #3B538D 51%, #05236D 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
}

.grid-match__vs.t_vs_num span.home-score,
.grid-match__vs.t_vs_num span.away-score {
  color: #fff;
  text-align: center;
  font-size: 17px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
  flex: 1;
  width: 30px;
  height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -2px;
}

.grid-match__vs.t_vs_num span.winner {
  border: none;
}

.grid-match__vs.t_vs_num span.home-score.winner,
.grid-match__vs.t_vs_num span.away-score.winner {
  /* border-radius: 5px;
    background: linear-gradient(102deg, #26ed8e -7.82%, #bee87a 110.99%);
    box-shadow: 0 2px #0dac5b;
    color: #000;
    font-size: 16px;
    font-family: var(--bs-body-font-family); */
}

/* MOBILE SHORT LEAGUE */
.gmd-match-league .text-ellipsis {
  position: relative;
  display: inline-block;
  text-wrap: nowrap;
  white-space: nowrap;
  font-size: 11px;
  font-family: var(--bs-body-font-family);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 14px;
  word-wrap: break-word;
  color: #D1D3D4;
  text-overflow: ellipsis;
  overflow: hidden;
  width: 100%;
  max-width: 150px;
}

.widget_container_inner .gmd-match-league .text-ellipsis {
  max-width: 100px;
}

.gmd-match-league .text-ellipsis::after {
  content: attr(data-attr);
  display: none;
}

@media (max-width: 767px) {
  .gmd-match-league .text-ellipsis {
    color: transparent;
    position: relative;
  }

  .gmd-match-league .text-ellipsis::after {
    display: inline;
    position: absolute;
    left: 0;
    top: 0;
    color: #828b98;
  }
}

/* MOBILE SHORT LEAGUE */

/* MORE BLV */
.gmd-match-footer__streamer.active .extra-info:has(.extra-info_one:nth-child(3)) {
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 85px;
  background: #071f69;
  border-radius: 6px;
  padding: 5px 7px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.gmd-match-footer__streamer.active .extra-info:has(.extra-info_one:nth-child(3)) .extra-info_one {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 3px;
}

.gmd-match-footer__streamer.active .extra-info:has(.extra-info_one:nth-child(3)) {
  align-items: flex-start;
}

/* matches__filter-leagues */


.custom-dropdown-option.active {
  border-top: 1px solid #006590;
  border-bottom: 1px solid #006590;
  color: #00ff4b;
  background: linear-gradient(270deg,
      rgba(11, 13, 12, 0.32) 42.28%,
      rgba(22, 53, 89, 0.2) 50.82%);
}


.custom-dropdown-option.active .count svg g {
  opacity: 1;
}


.custom-dropdown-option.active .count svg path {
  fill: #00fffd;
}

/* END: matches__filter-leagues */

@media (max-width: 767px) {
  #basketball .grid-match__vs {
    transform: scale(0.8);
  }

  #basketball .grid-match__status {
    min-width: 58px;
  }

  
  #basketball .grid-match__status .gmd_home-score.is-win p,
  #basketball .grid-match__status .gmd_away-score.is-win p {
    width: 50px;
    font-size: 15px;
  }
}

/* sports-bars */
@media (min-width: 768px) {
  #volleyball .main-grid-match a.odds-comp img {
    width: 80px;
    height: 24px;
    object-fit: contain;
  }
}

@media (max-width: 767px) {
  .main-page .sports-bars ul li {
    width: unset !important;
    min-width: unset !important;
  }

  .main-page .sports-bars ul li button {
    min-width: 55.716px;
    height: 70px;
    width: auto;
  }

  .main-page .sports-bars ul li.nav-item:after {
    opacity: 0;
    content: "";
    display: block;
    width: 1px;
    height: 24px;
    background: linear-gradient(360deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 55%,
        rgba(255, 255, 255, 0) 100%);
    position: absolute;
    right: -15%;
    top: 50%;
    transform: translate(50%, -50%);
  }

  .main-page .sports-bars ul li button.active,
  .main-page .sports-bars ul li button:focus {
    background-size: cover;
  }

  .sports-bars .nav-link.active:before {
    width: 24px;
    top: 0px;
  }

  .gmd-away_team,
  .gmd-home_team {
    gap: 5px;
  }

  .grid-matches {
    display: flex;
    gap: 12px;
    flex-direction: column;
  }
}

/* New home match */
@media (min-width: 374px) and (max-width: 1024px) {
  .home #matches .col-md-12 {
    padding-left: 15px;
    padding-right: 15px;
  }

  #football .grid-match__footer {
    padding: 4px;
    gap: 0;
  }

  #football .grid-match__footer .grid-match__footer-left {
    display: none;
  }

  #football .main-grid-match a.odds-comp img {
    width: 52px;
  }

  #football .grid-match__footer-right {
    gap: 6px !important;
  }

  #football .gmd-match__odds-item {
    gap: 10px;
  }
}

@media (max-width: 767px) {

  .grid-match__status,
  .icon-haflt {
    z-index: 1 !important;
  }

  .gmd-elapsed-time.icon-haflt {
    z-index: 1 !important;
    top: -2px;
  }
}

.team-name-group {
  color: white;
  font-size: 13px;
  font-family: var(--bs-body-font-family);
  font-weight: 500;
  line-height: 20px;
  word-wrap: break-word;
  min-width: 0;
  /* flex: 1 1 auto; */
  overflow: hidden;
}

@media (max-width: 767px) {
  .main-page .list-filter {
    gap: 6px;
    padding: 10px 0px 6px 0px;
    border-top: none;
    margin-bottom: 0px;
  }

  .main-page .list-filter li a {
    gap: 4px;
    padding: 0 6px;
  }

  .main-page .list-filter li a .num {
    padding-left: 0;
    margin-left: 0;
    padding-right: 0;
  }

  
  .gmd_home-score.is-win p,
  .gmd_away-score.is-win p {
    padding: 4px 8px;
    width: 28px;
  }

  /* xltv */
  .grid-match__vs {
    padding: 0;
    white-space: nowrap;
    color: #fff;
    font-size: 17px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px;
    width: 74px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative
  }

  .grid-match__vs:before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 0;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none
  }

  .grid-match__vs.t_vs_num {
    display: flex;
    gap: 5px;
    background: #464f50;
    color: #fff;
    text-align: center;
    font-size: 17px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px;
    width: inherit;
    height: inherit;
    gap: 2px;
    padding: 1px;
    border-radius: 8px
  }

  .grid-match__vs.t_vs_num:before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 0;
    background: linear-gradient(134.26deg, #0c2f88 20.7%, #3b538d 56.77%, #05236d 91.42%);
    mask-composite: exclude;
    pointer-events: none
  }

  .grid-match__vs.t_vs_num span.winner {
    border: none
  }

  .gmd-tournament-header {
    padding: 2px 10px 5px;
  }

  .grid-matches {
    gap: 15px;
  }

  #football .gmd-match__odds-item {
    gap: 20px;
  }

  .gmd-match__odds-item p {
    width: 27px;
  }

  #football .gmd-match__odds-item:first-child p::after {
    content: "";
    display: block;
    width: 1px;
    height: 12px;
    background: linear-gradient(360deg,
        transparent 0%,
        #27334b 55%,
        transparent 100%);
    position: absolute;
    right: -33%;
    top: 100%;
    transform: translate(50%, -50%);
  }

  #football .gmd-match__odds-item:first-child p:last-child::after {
    content: none;
  }

  ul.list-filter::-webkit-scrollbar {
    width: 104px;
    height: 4px;
  }

  ul.list-filter::-webkit-scrollbar-thumb {
    background: #202229;
    transform: translateY(10px);
  }

  ul.list-filter::-webkit-scrollbar-track {
    background: transparent;
  }

  .main-page .list-filter li a:not(.active):not(.now) .num {
    background: #464F50;
  }
}

@media (max-width: 400px) {
  .main-page .sports-bars ul {
    padding-right: 0;
    gap: 1px;
    padding-bottom: 0;
  }

  .main-page .sports-bars ul li.nav-item:last-child:after {
    right: 0;
  }

  .main-page .sports-bars {
    gap: 5px;
  }
}

.sport-playing {
  position: absolute;
  font-size: 10px;
  vertical-align: baseline;
  font-style: normal;
  background: #DF2C2C;
  color: #fff;
  width: 28px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 8px;
  top: -5px;
  right: -13px;
  z-index: 1;
  display: none;
}

.sport-playing.is-sport-playing {
  display: inline-block;
}

@media only screen and (max-width: 992px) {
  .sport-playing {}
}

section.xltv-news_box {
  border-radius: 12px;
  background: #292D2E;
  padding: 19px;
}
.match-horizontals-wrapper {
  position: relative; /* Gốc tọa độ cho 2 nút */
  width: 100%;
}
.match-horizontals {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 120px;
  gap: 13px;
  background: #303536;
  padding: 10px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  justify-content: start;
  scroll-behavior: smooth;
}
.horiMatchControls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;

    border-radius: 4px;
    background: #464F50;
    box-shadow: 0 2px 0 0 #2D3334;
    color: #FFF;
    text-align: center;
    font-family: var(--bs-body-font-family);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px;
    text-transform: uppercase;
    padding: 3px 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;

    outline: none;
    -webkit-tap-highlight-color: transparent;
}

#prevHoriMatchBtn {
  left: -25px;
}
#prevHoriMatchBtn svg {
    /* transform: rotate(180deg); */
}
#nextHoriMatchBtn {
  right: -36px;
}
.horiMatchControls button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.h-time {
  color: #D1D3D4;
  font-size: 12px;
  font-family: var(--bs-body-font-family);
  font-weight: 400;
  line-height: 20px;
  word-wrap: break-word;
}

.section-match-horizontals {
  background: #303536;
}

@media (max-width: 991px) {
  .horiMatchControls {
    display: none;
  }
  .match-horizontals {
    justify-content: unset;
  }
}

.match-horizontals-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #D1D3D4;
  font-size: 12px;
  font-family: var(--bs-body-font-family);
  font-weight: 400;
  line-height: 20px;
}

.match-horizontals-item-hot {
  background: linear-gradient(97deg, #32373800 61.58%, #ff00001a), #2e2929 !important;
  padding: 4px;
  border-radius: 6px;
}

.match-horizontals-item:hover {
  color: #D1D3D4;
}

.match-horizontals-item .team-group:after {
  position: absolute;
  content: "";
  width: 1px;
  background: #ffffff1a;
  height: 100%;
  right: -5px;
}

.match-horizontals-item:last-child .team-group:after {
  content: none;
  display: none;
}

.match-horizontals-item .team-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.match-horizontals-item:last-child .team-group {
  border-right: 1px solid transparent;
}

.match-horizontals-item .team-group .h-team {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  align-items: center;
  color: #D1D3D4;
  font-size: 13px;
  font-family: var(--bs-body-font-family);
  font-weight: 400;
  line-height: 20px;
  word-wrap: break-word;
}

.match-horizontals-item .team-group .h-team img {
  width: 20px;
  height: 20px;
  max-height: 30px;
  object-fit: contain;
}

.match-horizontals-item .team-group .h-team .h-team-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.matches__title {
  margin-top: 13px !important;
  margin-bottom: 29px !important;
}

@media (max-width: 576px) {
  .matches__title {
    margin-bottom: 15px !important;
    margin-top: -15px !important;
  }
}

@media (min-width: 991px) {
  section#matches {
    margin-top: 29px;
  }
}

/* Fix: cụm HT / corner / yellow card bị xuống dòng trong cột hẹp
   vì các class match-item__* không khớp với rule .gmd-* hiện có */
.detail-widget {
  .match-item--flag.grid-match--flag {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;      /* chặn wrap xuống dòng 2 */
    gap: 6px;
    min-width: 0;            /* cho phép co lại trong flex cha */
    overflow-x: auto;        /* fallback: nếu vẫn không đủ chỗ thì scroll ngang thay vì vỡ dòng */
    scrollbar-width: none;
  }
  .match-item--flag.grid-match--flag::-webkit-scrollbar {
    display: none;
  }

  .match-item__goal-scoring,
  .match-item__corner-ball,
  .match-item__yellow-ball {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;          /* mỗi cụm giữ nguyên kích thước, không bị ép co dồn chữ */
    white-space: nowrap;
  }

  .match-item__half-court,
  .match-item__corner-goal,
  .corner-goal,
  .yellow-cards {
    white-space: nowrap;
  }

  @media (max-width: 991px) {
    .match-item--flag.grid-match--flag {
      gap: 4px;
      font-size: 11px;
    }
  }
}

.next-btn svg {
  transform: none !important;
}

/* =====================================================================
   HOMEPAGE LAYOUT 3 CỘT + KHUNG (phong cách livescorebet.com/uk)
   Thêm/Cập nhật 2026-10-19. CHỈ áp dụng trang chủ (body.home).
   ===================================================================== */

/* ---- Lưới 3 cột ---- */
.home-3col {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 330px;
  gap: 14px;
  align-items: start;
  max-width: 1600px;
  margin: 0 auto;
  padding: 12px 16px;
}
.home-3col .home-col { min-width: 0; }

/* ---- KHUNG chung (card bo góc, có viền + header màu) ---- */
.home-box {
  background: #1e2329;
  border: 1px solid #2a313a;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
}
.home-box:last-child { margin-bottom: 0; }
.home-box__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  background: #262d35;
  border-bottom: 1px solid #2a313a;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.home-box__head i { color: var(--scl-primary, #00C44D); font-size: 15px; width: 18px; text-align: center; }
.home-box__body { padding: 6px; }

/* ---- CỘT TRÁI ---- */
.home-col--left { position: sticky; top: 80px; }

/* Ô HOME (ô đầu, có icon) */
.home-box--home { margin-bottom: 14px; }
.home-box--home .home-box__home {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  text-decoration: none;
  background: linear-gradient(97deg, #1e2329 55%, rgba(0,196,77,.12));
}
.home-box--home .home-box__home i { color: var(--scl-primary, #00C44D); font-size: 18px; }
.home-box--home .home-box__home:hover { background: #262d35; }

/* Ô MENU: menu dạng list dọc */
.home-box--menu .home-box__body { padding: 6px; }
.home-col--left .navbar-nav {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch;
  gap: 2px; margin: 0; padding: 0; list-style: none; width: 100%;
}
.home-col--left .navbar-nav > li,
.home-col--left .menu-item,
.home-col--left .nav-item { width: 100%; float: none; display: block; }
.home-col--left .navbar-nav .nav-link,
.home-col--left .navbar-nav a {
  display: block; width: 100%;
  padding: 9px 12px; border-radius: 8px;
  color: #cfd3d8; font-size: 14px; line-height: 20px;
  text-decoration: none; white-space: normal;
}
.home-col--left .navbar-nav .nav-link:hover,
.home-col--left .navbar-nav a:hover,
.home-col--left .navbar-nav .current-menu-item > a {
  background: rgba(0,196,77,.12); color: #fff;
}
.home-col--left .navbar-nav .dropdown-menu {
  position: static !important; display: block !important; float: none;
  background: transparent; border: 0; box-shadow: none; padding: 0 0 0 10px; margin: 0;
}
.home-col--left .navbar-nav .dropdown-menu a { font-size: 13px; color: #aeb3b9; }

/* Ô BẢNG XẾP HẠNG: danh sách giải đấu */
.home-league-list { list-style: none; margin: 0; padding: 4px; max-height: 420px; overflow-y: auto; scrollbar-width: thin; }
.home-league-list li { margin: 0; }
.home-league-list a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 8px;
  color: #cfd3d8; font-size: 13px; line-height: 18px;
  text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.home-league-list a:before {
  content: ""; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%;
  background: var(--scl-primary, #00C44D); opacity: .7;
}
.home-league-list a:hover { background: rgba(0,196,77,.12); color: #fff; }
.home-league-list .empty { padding: 10px; color: #8a9098; font-size: 13px; }

/* ---- CỘT GIỮA ---- */
.home-col--center > * { margin-bottom: 14px; }
.home-col--center > *:last-child { margin-bottom: 0; }
.home-col--center .container,
.home-col--center .main-page.container {
  max-width: 100% !important; width: 100% !important;
  padding-left: 0 !important; padding-right: 0 !important;
  margin-left: 0 !important; margin-right: 0 !important;
}
.home-col--center .match-list-container { padding: 0; }

/* Danh sách trận: 1 cột, MỖI TRẬN LÀ 1 KHUNG BO GÓC, tên giải nằm trên */
.home .grid-matches { grid-template-columns: 1fr !important; gap: 8px !important; background: transparent; }
.home .grid-matches__item { border: 0; border-radius: 12px; }
.home .grid-matches__item .grid-match {
  background: #262d35 !important;
  border: 1px solid #2a313a;
  border-radius: 12px;
  transition: background .15s ease, border-color .15s ease;
}
.home .grid-matches__item .grid-match:hover { background: #2d353e !important; border-color: #3a434e; }
.home .grid-matches__item .grid-match.grid-match--is-hot {
  background: linear-gradient(97deg, #262d35 60%, rgba(221,51,51,.12)) !important;
  border-color: rgba(221,51,51,.45);
}
.home .grid-matches__item.league-flash .grid-match { border-color: var(--scl-primary, #00C44D); box-shadow: 0 0 0 2px rgba(0,196,77,.4) inset; }

/* Header giải đấu + giờ trong mỗi khung: gọn */
.home .gmd-tournament-header { grid-template-columns: 1fr 90px 1fr; padding: 7px 12px 3px; }
.home .gmd-tournament-header .gmd-match-league,
.home .gmd-match-league .text-ellipsis,
.home .gmd-tournament-header .gmd-match-date { font-size: 11px; }

/* Hàng đội: gọn, logo nhỏ */
.home .gmd-content_match { padding: 2px 12px 9px; }
.home .gmd-team { gap: 8px; }
.home .gmd-home_team { padding-right: 10px; }
.home .gmd-away_team { padding-left: 10px; }
.home .gmd-team .team-logo-group img { width: 26px; height: 26px; }
.home .team-name-group { font-size: 13px; line-height: 18px; }
.home .grid-match__status { height: 26px; }
.home .match__vs.grid-match__vs.t_vs_num,
.home .grid-match__vs.t_vs_num span.home-score,
.home .grid-match__vs.t_vs_num span.away-score { font-size: 15px; }
.home .grid-match__footer { padding: 2px 10px 6px; gap: 6px; }
.home .grid-match__footer .blv-item-scl .dropdown-item { padding: 4px 8px; }

/* ---- CỘT PHẢI: khung chat (chưa dùng) ---- */
.home-col--right { position: sticky; top: 80px; }
.home-box--chat, #home-live-chat-slot {
  background: #1e2329; border: 1px solid #2a313a; border-radius: 12px;
  min-height: 480px; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 20px;
}
.home-chat-placeholder { color: #8a9098; font-size: 13px; line-height: 1.5; }

/* ---- Responsive ---- */
@media (max-width: 1300px) { .home-3col { grid-template-columns: 220px minmax(0,1fr) 300px; } }
@media (max-width: 1100px) {
  .home-3col { grid-template-columns: 210px minmax(0,1fr); }
  .home-col--right { display: none; }
}
@media (max-width: 820px) {
  .home-3col { grid-template-columns: 1fr; gap: 12px; padding: 10px; }
  .home-col--left, .home-col--right { position: static; }
  .home-col--left .navbar-nav { flex-direction: row !important; flex-wrap: nowrap; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .home-col--left .navbar-nav::-webkit-scrollbar { display: none; }
  .home-col--left .navbar-nav > li, .home-col--left .nav-item { width: auto; flex: 0 0 auto; }
  .home-col--left .navbar-nav .nav-link, .home-col--left .navbar-nav a { white-space: nowrap; padding: 8px 12px; }
  .home-col--left .navbar-nav .dropdown-menu { display: none !important; }
  .home-league-list { max-height: 240px; }
}
@media (max-width: 767px) {
  .home .grid-matches__item .gmd-content_match img { width: 26px; height: 26px; }
  .home .grid-matches__item .gmd-home_team p, .home .grid-matches__item .gmd-away_team p { font-size: 13px; }
}
/* END: HOMEPAGE LAYOUT 3 CỘT + KHUNG */

/* =====================================================================
   GOM TRẬN THEO GIẢI ĐẤU (B v2) — tên giải NGOÀI khung + cờ quốc gia,
   mỗi trận là 1 khung riêng bo 4 góc, có khoảng cách. Chỉ trang chủ (.home).
   ===================================================================== */
.home .load-more-wg { display: none !important; }

/* Ẩn menu ngang ở header (menu đã chuyển xuống cột trái) */
.home #header .header-nav-main { display: none !important; }

/* Tab môn + bộ lọc: gọn, nhỏ lại */
.home .main-page .sports-bars { padding: 6px 0 8px; }
.home .sports-bars ul li button { padding: 4px 8px; height: auto; gap: 3px; }
.home .sports-bars ul li button svg,
.home .sports-bars ul li button img { width: 18px !important; height: 18px !important; }
.home .sports-bars ul li button span { font-size: 11px !important; min-height: 0 !important; }
.home .list-filter li a,
.home .match_filter li,
.home .match_filter_wg li { height: 30px; min-width: auto; padding: 0 10px; font-size: 12px; line-height: 30px; }
.home .list-filter li a .num,
.home .match_filter li span::after { font-size: 10px; }

/* Lưới: 1 cột, có khoảng cách giữa các khung trận */
.home .grid-matches { grid-template-columns: 1fr !important; gap: 8px !important; background: transparent; }

/* Header giải đấu: NẰM NGOÀI khung (nền trong suốt, không viền), có cờ */
.home .league-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 2px 8px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #e8eaed;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.home .league-head:first-child { margin-top: 4px; }
.home .league-head .league-flag {
  width: 22px; height: 16px; object-fit: cover; border-radius: 3px; flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14);
}
.home .league-head .league-logo {
  width: 18px; height: 18px; object-fit: contain; border-radius: 50%;
  background: rgba(255,255,255,.08); flex: 0 0 auto;
}
.home .league-head__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home .league-head__count { margin-left: auto; background: #2a313a; color: #cfd3d8; border-radius: 10px; padding: 1px 9px; font-size: 11px; font-weight: 600; flex: 0 0 auto; }

/* MỖI TRẬN = 1 khung riêng bo 4 góc (reset kiểu dính nhau cũ) */
.home .grid-matches__item.lg-card .grid-match,
.home .grid-matches__item .grid-match {
  border: 1px solid #2a313a !important;
  border-radius: 12px !important;
  background: #262d35 !important;
}
.home .grid-matches__item .grid-match:hover { background: #2d353e !important; border-color: #3a434e !important; }
.home .grid-matches__item .grid-match.grid-match--is-hot { border-color: rgba(221,51,51,.5) !important; }
.home .grid-matches__item.league-flash .grid-match { border-color: var(--scl-primary, #00C44D) !important; box-shadow: 0 0 0 2px rgba(0,196,77,.4) inset; }
/* END: GOM TRẬN THEO GIẢI ĐẤU (B v2) */

/* =====================================================================
   TINH CHỈNH 2026-10-19 (b): head giống Home, giấu tên giải trong card,
   thu gọn tab môn + bộ lọc.
   ===================================================================== */
/* Head các khung giống thanh "Home" (gradient, icon to) */
.home .home-box__head,
.home .home-box__head--hero {
  padding: 13px 16px;
  background: linear-gradient(97deg, #1e2329 55%, rgba(0,196,77,.14));
  border-bottom: 1px solid #2a313a;
  font-size: 15px;
  letter-spacing: .4px;
}
.home .home-box__head i { color: var(--scl-primary, #00C44D); font-size: 18px; }
.home .home-col--left { top: 12px; }

/* Tên giải chỉ hiện ở header nhóm NGOÀI khung — ẩn trong từng card khi đã gom */
.home #match-list-shortcode.soco-grouped .grid-matches__item .gmd-tournament-header {
  grid-template-columns: 0 1fr auto !important;
}
.home #match-list-shortcode.soco-grouped .grid-matches__item .gmd-match-league {
  display: none !important;
}

/* Tabs môn + bộ lọc: nhỏ gọn như trang mẫu */
.home .sports-bars .nav-link { padding: 4px 8px !important; }
.home .sports-bars .nav-link svg,
.home .sports-bars .nav-link img { width: 18px !important; height: 18px !important; }
.home .sports-bars .nav-link span { font-size: 11px !important; min-height: 0 !important; line-height: 1.2 !important; }
.home .list-filter { gap: 6px !important; padding: 8px 0 !important; }
.home .list-filter li a { height: 28px !important; line-height: 28px !important; padding: 0 10px !important; font-size: 12px !important; border-radius: 14px !important; }
.home .list-filter li a img { width: 14px !important; height: 14px !important; margin-right: 4px; }
.home .list-filter li a .num { font-size: 10px !important; padding: 0 5px !important; }
/* END: TINH CHỈNH (b) */

/* Header giải đấu bám mẫu: cờ + "Quốc gia – Giải" + mũi tên › (ngoài khung) */
.home .league-head { text-transform: none; font-size: 14px; color: #fff; margin: 18px 2px 8px; }
.home .league-head .league-flag { width: 24px; height: 18px; }
.home .league-head__chev { margin-left: auto; color: #8a9098; font-size: 22px; line-height: 1; font-weight: 400; flex: 0 0 auto; }

/* =====================================================================
   2 CỘT 2026-10-19: bỏ cột phải (chat), cột giữa chia 2 cột giải đấu
   ===================================================================== */
.home-3col { grid-template-columns: 250px minmax(0, 1fr) !important; }
.home-col--right { display: none !important; }

/* Cột giữa: các nhóm giải flow thành 2 cột (masonry, không cắt giữa nhóm) */
.home .grid-matches { display: block !important; column-count: 2; column-gap: 14px; }
.home .league-block { break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid; margin: 0 0 16px; }
.home .league-block .league-head { margin: 0 2px 8px; }
.home .league-block:first-child .league-head { margin-top: 0; }
.home .league-block .grid-matches__item { display: block; margin-bottom: 8px; }
.home .league-block .grid-matches__item:last-child { margin-bottom: 0; }

/* Ẩn tên giải trong card khi đã gom (selector đúng container .grid-matches) */
.home .grid-matches.soco-grouped .grid-matches__item .gmd-tournament-header { grid-template-columns: 0 1fr auto !important; }
.home .grid-matches.soco-grouped .grid-matches__item .gmd-match-league { display: none !important; }

@media (max-width: 1100px) {
  .home-3col { grid-template-columns: 210px minmax(0, 1fr) !important; }
  .home .grid-matches { column-count: 1; }
}
@media (max-width: 820px) {
  .home-3col { grid-template-columns: 1fr !important; }
  .home .grid-matches { column-count: 1; }
}
/* END: 2 CỘT */

/* Phút trực tiếp (vd 13') — canh giữa khung + giảm 1px font (12 -> 11) */
.home .grid-matches .gmd-elapsed-time { display: flex !important; align-items: center; justify-content: center; width: 100%; text-align: center; }
.home .grid-matches .gmd-elapsed-time.icon-haflt text,
.home .grid-matches .gmd-elapsed-time.icon-haflt .t_time,
.home .grid-matches .gmd-elapsed-time.icon-haflt .t_time.t_time_num,
.home .grid-matches .time-text,
.home .grid-matches .status-text { font-size: 11px !important; }

/* FIX canh giữa phút live: giữ lưới header CÂN XỨNG, giấu tên giải bằng visibility
   (display:none làm mất 1 cột -> phút bị lệch trái sau khi gom nhóm) */
.home .grid-matches.soco-grouped .grid-matches__item .gmd-tournament-header { grid-template-columns: 1fr auto 1fr !important; }
.home .grid-matches.soco-grouped .grid-matches__item .gmd-match-league { display: block !important; visibility: hidden !important; }
.home .grid-matches .gmd-elapsed-time { display: block !important; width: auto !important; min-width: 70px; text-align: center; }
.home .grid-matches .gmd-elapsed-time.icon-haflt text,
.home .grid-matches .gmd-elapsed-time.icon-haflt .t_time,
.home .grid-matches .gmd-elapsed-time.icon-haflt .t_time.t_time_num,
.home .grid-matches .time-text,
.home .grid-matches .status-text { font-size: 11px !important; }

/* =====================================================================
   FOOTER TRẬN: bỏ odds, canh tỷ số trái, đẩy BLV sát phải
   ===================================================================== */
/* Bỏ ô tỷ lệ kèo (không dùng) */
.home .gmd-match__odds-item,
.home .grid-match__odds-item { display: none !important; }

/* Footer: tỷ số/HT bên trái — BLV đẩy sát bên phải */
.home .grid-match__footer { display: flex !important; align-items: center; gap: 10px; flex-wrap: nowrap; }
.home .grid-match__footer-left { margin-right: auto; }
.home .grid-match__footer-center { margin-left: auto; order: 99; }

/* Canh lại các dòng tỷ số (HT / góc / thẻ) gọn 1 hàng bên trái */
.home .grid-match__footer-left .match-item--flag.grid-match--flag {
  display: flex; align-items: center; gap: 8px; flex-wrap: nowrap;
}
.home .grid-match__footer .blv-list.slider-blv { justify-content: flex-end; }
/* END: FOOTER TRẬN */

/* Footer tối ưu: bỏ pill xám rỗng của dòng tỷ số, BLV sát phải */
.home .grid-match__footer { display: flex !important; align-items: center; gap: 8px; flex-wrap: nowrap; }
.home .grid-match__footer-left { margin: 0 !important; min-width: 0; }
.home .grid-match__footer-center { margin-left: auto !important; order: 99; }
/* pill tỷ số: nền trong suốt, bỏ padding -> rỗng thì vô hình, có số thì hiện chữ */
.home .grid-match__footer-left .match-item--flag.grid-match--flag {
  background: transparent !important;
  padding: 0 !important;
  gap: 8px;
}
/* nếu dòng tỷ số rỗng hoàn toàn thì ẩn khối trái */
.home .grid-match__footer-left:not(:has(.d-flex[style*="block"])) { display: none !important; }

/* Dòng tỷ số (HT / góc / thẻ): icon + số nằm CÙNG HÀNG (đè inline display:block) */
.home .match-item__goal-scoring,
.home .match-item__corner-ball,
.home .match-item__yellow-ball,
.home .match-item__red-ball { display: inline-flex !important; align-items: center; gap: 4px; }
.home .grid-match--flag.match-item--flag { display: flex !important; align-items: center; gap: 10px; flex-wrap: nowrap; }
.home .match-item__corner-goal,
.home .match-item__yellow-goal,
.home .match-item__red-goal,
.home .yellow-cards,
.home .match-item__half-court { white-space: nowrap; }
.home .grid-match--flag svg { flex: 0 0 auto; }

/* Bỏ hẳn khối odds bên phải (chỉ chứa tỷ lệ kèo + logo nhà cái) -> nhường chỗ BLV */
.home .grid-match__footer-right { display: none !important; }

/* BLV: bắt đầu ngay sát dòng tỷ số (thẻ vàng) và chiếm hết phần còn lại bên phải */
.home .grid-match__footer { gap: 10px; }
.home .grid-match__footer-left { flex: 0 0 auto; margin: 0 !important; }
.home .grid-match__footer-center { order: 0 !important; margin-left: 0 !important; flex: 1 1 auto; min-width: 0; }
.home .grid-match__footer .blv-list.slider-blv { justify-content: flex-start; }
.home .grid-match__footer .slider-wrapper { justify-content: flex-start; padding: 0 20px 0 0; }

/* =====================================================================
   BLV: nút "0X BLV" + dropdown chọn BLV
   ===================================================================== */
.home .match-blv-box.blv-enhanced { position: relative; display: flex; justify-content: flex-end; align-items: center; min-height: 0; }
.home .match-blv-box.blv-enhanced .nav-btn,
.home .match-blv-box.blv-enhanced .slider-wrapper { display: none !important; }

.home .blv-count-btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: #20262d; border: 1px solid #2a313a; color: #cfd3d8;
  border-radius: 16px; padding: 5px 12px; font-size: 12px; font-weight: 700; white-space: nowrap;
  line-height: 1;
}
.home .blv-count-btn:hover { background: #2a313a; color: #fff; }
.home .blv-count-btn i.fa-headset { color: var(--scl-primary, #00C44D); font-size: 13px; }
.home .blv-count-btn .blv-caret { font-size: 10px; opacity: .7; }
.home .match-blv-box.open .blv-count-btn .blv-caret { transform: rotate(180deg); }

/* Dropdown danh sách BLV */
.home .match-blv-box .blv-dropdown {
  display: none; position: absolute; top: 100%; right: 0; margin-top: 6px; z-index: 60;
  background: #1e2329; border: 1px solid #2a313a; border-radius: 10px; padding: 6px;
  min-width: 190px; max-height: 280px; overflow-y: auto;
  box-shadow: 0 10px 28px rgba(0,0,0,.45);
}
.home .match-blv-box.open .blv-dropdown { display: block; }
.home .blv-dropdown .blv-list { display: block !important; position: static !important; width: auto !important; overflow: visible !important; top: auto !important; }
.home .blv-dropdown .blv-item-scl { display: block !important; width: 100%; }
.home .blv-dropdown .blv-item-scl .dropdown-item { display: flex !important; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: #cfd3d8; font-size: 13px; }
.home .blv-dropdown .blv-item-scl .dropdown-item:hover { background: rgba(0,196,77,.12); color: #fff; }
.home .blv-dropdown .img_blv_inner img,
.home .blv-dropdown .blv-item-scl img { width: 24px !important; height: 24px !important; border-radius: 50%; object-fit: cover; }
/* END: BLV nút đếm */

/* Dropdown BLV luôn nổi trên mọi khung */
.home .match-blv-box.open .blv-dropdown { z-index: 99999 !important; }

/* Nút "X BLV" canh giữa dòng footer */
.home .grid-match__footer-center { display: flex; align-items: center; justify-content: center; }
.home .match-blv-box.blv-enhanced { justify-content: center; }

/* ROLL BACK canh ngang — canh nút BLV GIỮA theo chiều DỌC của footer */
.home .grid-match__footer { align-items: center !important; }
.home .grid-match__footer-center { display: flex !important; align-items: center !important; justify-content: flex-start !important; }
.home .match-blv-box.blv-enhanced { display: flex !important; align-items: center !important; justify-content: flex-start !important; }
.home .blv-count-btn { align-self: center; margin: 0; }

/* Nút BLV về góc phải (vẫn canh giữa dọc) */
.home .grid-match__footer-center { justify-content: flex-end !important; }
.home .match-blv-box.blv-enhanced { justify-content: flex-end !important; }

/* Dropdown BLV: style độc lập vị trí (áp dụng cả khi đã portal ra <body>) */
.blv-dropdown { background: #1e2329 !important; border: 1px solid #2a313a; border-radius: 10px; padding: 6px; min-width: 190px; max-height: 280px; overflow-y: auto; box-shadow: 0 10px 28px rgba(0,0,0,.5); }
.blv-dropdown .blv-list { display: block !important; position: static !important; width: auto !important; overflow: visible !important; top: auto !important; }
.blv-dropdown .blv-item-scl { display: block !important; width: 100%; }
.blv-dropdown .blv-item-scl .dropdown-item { display: flex !important; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: #cfd3d8; font-size: 13px; }
.blv-dropdown .blv-item-scl .dropdown-item:hover { background: rgba(0,196,77,.12); color: #fff; }
.blv-dropdown img { width: 24px !important; height: 24px !important; border-radius: 50%; object-fit: cover; }

/* =====================================================================
   SẮP XẾP: mỗi giải 1 hàng full-width; trận trong giải xếp 2 cột trái/phải
   (2 trận -> 2 bên; 3 trận -> trái,phải,trái; 1 trận -> full width)
   ===================================================================== */
.home .grid-matches { display: block !important; column-count: auto !important; }
.home .league-block { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 16px; break-inside: auto; }
.home .league-block.single { grid-template-columns: 1fr; }
.home .league-block .league-head { grid-column: 1 / -1; margin: 0 2px 8px; }
.home .league-block .grid-matches__item { margin: 0 !important; display: block; }
@media (max-width: 700px) { .home .league-block { grid-template-columns: 1fr !important; } }
/* END: SẮP XẾP 2 CỘT TRONG GIẢI */

/* =====================================================================
   KHỐI "ĐANG TRỰC TIẾP" (live lên đầu) + ưu tiên giải lớn
   ===================================================================== */
.home .league-head.live-head { color: #ff5a5f; }
.home .live-head .live-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #ff3b3b; flex: 0 0 auto;
  box-shadow: 0 0 0 0 rgba(255,59,59,.6); animation: socoLivePulse 1.4s infinite;
}
@keyframes socoLivePulse {
  0% { box-shadow: 0 0 0 0 rgba(255,59,59,.6); }
  70% { box-shadow: 0 0 0 7px rgba(255,59,59,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,59,59,0); }
}
.home .live-head .league-head__count { background: #ff3b3b !important; color: #fff; }
/* trong khối LIVE: hiện lại tên giải trong từng card (vì gộp nhiều giải) */
.home .grid-matches.soco-grouped .live-section .grid-matches__item .gmd-tournament-header { grid-template-columns: 1fr auto 1fr !important; }
.home .grid-matches.soco-grouped .live-section .grid-matches__item .gmd-match-league { display: block !important; visibility: visible !important; }
.home .live-section .gmd-match-league .text-ellipsis { font-size: 11px; color: #c2c6cc; }
/* viền nhẹ màu đỏ cho card trong khối live */
.home .live-section .grid-matches__item .grid-match { border-color: rgba(255,59,59,.35) !important; }
/* END: KHỐI ĐANG TRỰC TIẾP */

/* =====================================================================
   KHỐI TRÊN CÙNG CỘT GIỮA: tiêu đề + tab môn + gạch + bộ lọc (liền khối)
   ===================================================================== */
.home .home-center-top {
  background: #1a1e23; border: 1px solid #2a313a; border-radius: 12px;
  padding: 12px 14px; margin-bottom: 14px;
}
/* Tiêu đề lên trên cùng, canh trái, bỏ trang trí cũ */
.home .home-center-top h1 { font-size: 16px; line-height: 1.35; margin: 0 0 10px; color: #fff; text-align: left; font-weight: 700; }
.home .home-center-top h1.entry-title { background: transparent !important; padding: 0 !important; width: auto !important; }
.home .home-center-top h1.entry-title::before,
.home .home-center-top h1.entry-title::after { display: none !important; }

/* Tab môn: icon + chữ cùng 1 dòng, canh trái */
.home .home-center-top .sports-bars { margin: 0 0 8px; padding: 0; background: transparent; }
.home .home-center-top .sports-bars ul { display: flex; justify-content: flex-start !important; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; width: auto; }
.home .home-center-top .sports-bars ul li { width: auto !important; min-width: 0 !important; height: auto !important; }
.home .home-center-top .sports-bars ul li::after { display: none !important; }
.home .home-center-top .sports-bars .nav-link,
.home .home-center-top .sports-bars li button {
  display: flex !important; flex-direction: row !important; align-items: center; justify-content: flex-start;
  gap: 6px; padding: 6px 12px !important; height: auto !important; min-width: 0 !important; border-radius: 8px;
}
.home .home-center-top .sports-bars .nav-link svg,
.home .home-center-top .sports-bars .nav-link img,
.home .home-center-top .sports-bars li button svg,
.home .home-center-top .sports-bars li button img { width: 18px !important; height: 18px !important; margin: 0 !important; }
.home .home-center-top .sports-bars .nav-link span,
.home .home-center-top .sports-bars li button span { font-size: 12px !important; white-space: nowrap; margin: 0 !important; max-width: none !important; min-height: 0 !important; text-align: left; }

/* Gạch ngang ngăn cách */
.home .home-center-top .center-divider { height: 1px; background: #2a313a; margin: 10px 0; }

/* Bộ lọc: icon → chữ → số đều nhau, các nút space đều, canh trái */
.home .home-center-top .list-filter { display: flex !important; flex-wrap: wrap; justify-content: flex-start !important; gap: 8px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; list-style: none; }
.home .home-center-top .list-filter li { margin: 0 !important; }
.home .home-center-top .list-filter li a { display: flex !important; align-items: center; gap: 6px; height: 30px; padding: 0 12px !important; border-radius: 15px; font-size: 12px; line-height: 1; white-space: nowrap; }
.home .home-center-top .list-filter li a img { width: 14px !important; height: 14px !important; margin: 0 !important; }
.home .home-center-top .list-filter li a .num { margin: 0 !important; padding: 0 6px !important; }
/* END: KHỐI TRÊN CÙNG CỘT GIỮA */

/* Bỏ box khối trên cùng (để ngoài, trong suốt) + tiêu đề canh giữa */
.home .home-center-top { background: transparent !important; border: 0 !important; border-radius: 0 !important; padding: 0 !important; margin-bottom: 12px; }
.home .home-center-top h1 { text-align: center !important; }

/* FIX tab môn: badge "Live" chạy INLINE sau tên (hết đè lên chữ) */
.home .home-center-top .sports-bars .nav-item { position: static !important; display: inline-flex; align-items: center; gap: 5px; }
.home .home-center-top .sport-playing.is-sport-playing {
  position: static !important; top: auto !important; right: auto !important; left: auto !important; transform: none !important;
  display: inline-flex; align-items: center; width: auto; height: auto;
  padding: 1px 6px; font-size: 9px; line-height: 1.5; border-radius: 8px; margin: 0;
}

/* FIX filter: icon → chữ → số cách đều nhau ở MỌI nút (bỏ margin thừa) */
.home .home-center-top .list-filter li a { display: flex !important; align-items: center; gap: 6px !important; }
.home .home-center-top .list-filter li a > * { margin: 0 !important; }
.home .home-center-top .list-filter li a > img { width: 15px !important; height: 15px !important; object-fit: contain; flex: 0 0 auto; }
.home .home-center-top .list-filter li a > svg { height: 15px !important; width: auto !important; flex: 0 0 auto; }
.home .home-center-top .list-filter li a .num { flex: 0 0 auto; }

/* FIX (áp dụng rộng, không phụ thuộc .home-center-top) */
/* Badge "Live" của tab môn chạy inline, không đè chữ */
.home .sports-bars .nav-item { position: static !important; display: inline-flex !important; align-items: center; gap: 5px; }
.home .sports-bars .sport-playing.is-sport-playing {
  position: static !important; inset: auto !important; transform: none !important;
  display: inline-flex; align-items: center; width: auto; height: auto;
  padding: 1px 6px; font-size: 9px; line-height: 1.5; border-radius: 8px; margin: 0;
}
/* Ẩn span "Hot" ngắn (mobile) trên desktop, chỉ giữ "Trận Hot" */
.home .list-filter li a .sp { display: none; }
.home .list-filter li a { display: flex !important; align-items: center; gap: 6px !important; }
.home .list-filter li a > * { margin: 0 !important; }
.home .list-filter li a > img { width: 15px !important; height: 15px !important; object-fit: contain; flex: 0 0 auto; }
.home .list-filter li a > svg { height: 15px !important; width: auto !important; flex: 0 0 auto; }
@media (max-width: 600px) {
  .home .list-filter li a .pc { display: none; }
  .home .list-filter li a .sp { display: inline; }
}

/* =====================================================================
   RESET SẠCH TAB MÔN (trang chủ) — xoá pseudo/divider gây đè, ép flex gọn
   Dùng .home .main-page để thắng các rule cũ phức tạp.
   ===================================================================== */
.home .main-page .sports-bars { padding: 0 !important; margin: 0 0 8px !important; background: transparent !important; display: block !important; }
.home .main-page .sports-bars ul { display: flex !important; flex-wrap: wrap !important; justify-content: flex-start !important; align-items: center !important; gap: 8px !important; padding: 0 !important; margin: 0 !important; list-style: none !important; width: auto !important; max-width: none !important; overflow: visible !important; }
.home .main-page .sports-bars ul li,
.home .main-page .sports-bars .nav-item { position: relative !important; display: inline-flex !important; align-items: center !important; gap: 5px !important; width: auto !important; min-width: 0 !important; max-width: none !important; height: auto !important; margin: 0 !important; flex: 0 0 auto !important; }
.home .main-page .sports-bars ul li::before,
.home .main-page .sports-bars ul li::after,
.home .main-page .sports-bars .nav-item::before,
.home .main-page .sports-bars .nav-item::after { display: none !important; content: none !important; }
.home .main-page .sports-bars .nav-link { position: relative !important; display: inline-flex !important; flex-direction: row !important; align-items: center !important; justify-content: flex-start !important; gap: 6px !important; width: auto !important; min-width: 0 !important; height: auto !important; padding: 6px 12px !important; border-radius: 8px !important; background: #20262d !important; border: 1px solid #2a313a !important; white-space: nowrap !important; overflow: visible !important; }
.home .main-page .sports-bars .nav-link::before,
.home .main-page .sports-bars .nav-link::after { display: none !important; content: none !important; }
.home .main-page .sports-bars .nav-link.active { background: #2a313a !important; color: #fff !important; }
.home .main-page .sports-bars .nav-link svg,
.home .main-page .sports-bars .nav-link img { width: 18px !important; height: 18px !important; margin: 0 !important; flex: 0 0 auto !important; }
.home .main-page .sports-bars .nav-link span { font-size: 12px !important; line-height: 1.2 !important; margin: 0 !important; min-height: 0 !important; max-width: none !important; white-space: nowrap !important; text-align: left !important; }
.home .main-page .sports-bars .sport-playing.is-sport-playing { position: static !important; inset: auto !important; transform: none !important; display: inline-flex !important; align-items: center !important; width: auto !important; height: auto !important; padding: 1px 6px !important; font-size: 9px !important; line-height: 1.5 !important; border-radius: 8px !important; margin: 0 !important; }
/* END: RESET TAB MÔN */

/* Strip trận ngang (section-match-horizontals): không tràn ra ngoài, lấn Menu */
.home .section-match-horizontals,
.home .match-horizontals-wrapper { max-width: 100% !important; overflow: hidden; }
.home #prevHoriMatchBtn { left: 2px !important; }
.home #nextHoriMatchBtn { right: 2px !important; }
.home .match-horizontals { padding-left: 28px !important; padding-right: 28px !important; }

/* Bảng Xếp Hạng (shortcode standings_table) trong sidebar hẹp */
.home .home-box--standings .home-standings-embed { padding: 8px; max-height: 600px; overflow-y: auto; overflow-x: hidden; }
.home .home-standings-embed > * { max-width: 100%; }
.home .home-standings-embed table { width: 100%; border-collapse: collapse; font-size: 11px; }
.home .home-standings-embed th, .home .home-standings-embed td { padding: 4px 3px; }
.home .home-standings-embed img { width: 16px; height: 16px; object-fit: contain; vertical-align: middle; }
.home .home-standings-embed select,
.home .home-standings-embed .competition-picker,
.home .home-standings-embed .soco-competition-picker { max-width: 100%; font-size: 12px; margin-bottom: 8px; }
.home .home-standings-embed .loader-container { padding: 10px; text-align: center; }

/* BXH trong sidebar: chỉ giữ Hạng · Đội · Điểm (ẩn P/W/D/L/GD/Phong độ) */
.home .home-standings-embed .ranking-detail > *:not(:nth-child(6)) { display: none !important; }
.home .home-standings-embed .ranking-detail > *:nth-child(6) { display: block !important; }
.home .home-standings-embed .ranking-detail { gap: 0 !important; justify-content: flex-end !important; min-width: 0 !important; }
.home .home-standings-embed .ranking-title.left,
.home .home-standings-embed .ranking-item .team-name,
.home .home-standings-embed [class*="team"] { text-align: left; }

/* Standings switcher (select) + bảng gọn trong sidebar */
.home .soco-std-switch {
  width: 100%; margin: 8px 0; padding: 7px 10px; border-radius: 8px;
  background: #20262d; color: #fff; border: 1px solid #2a313a; font-size: 13px; cursor: pointer;
}
.home .soco-std-switch:focus { outline: none; border-color: var(--scl-primary,#00C44D); }
.home .home-standings-embed { padding: 0 8px 8px; }
.home .home-standings-embed .ranking-container { font-size: 12px; }
.home .home-standings-embed .ranking-row,
.home .home-standings-embed .ranking-item { display: flex; align-items: center; gap: 6px; padding: 5px 2px; border-bottom: 1px solid rgba(255,255,255,.05); }
.home .home-standings-embed .ranking-item img { width: 18px; height: 18px; object-fit: contain; }
.home .home-standings-embed .group-table { font-size: 11px; color: #8a9098; margin: 6px 0 2px; text-transform: uppercase; }

/* Bảng xếp hạng render server-side (3 cột: Hạng · Đội · Điểm) */
.home .soco-std-table { width: 100%; border-collapse: collapse; font-size: 12px; color: #cfd3d8; margin-top: 4px; }
.home .soco-std-table th { font-size: 10px; text-transform: uppercase; color: #8a9098; font-weight: 600; padding: 6px 4px; border-bottom: 1px solid #2a313a; text-align: left; }
.home .soco-std-table td { padding: 6px 4px; border-bottom: 1px solid rgba(255,255,255,.05); }
.home .soco-std-table th.c-rank, .home .soco-std-table td.c-rank { width: 22px; text-align: center; color: #8a9098; }
.home .soco-std-table th.c-pts, .home .soco-std-table td.c-pts { width: 30px; text-align: center; font-weight: 700; color: #fff; }
.home .soco-std-table td.c-team { max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home .soco-std-table td.c-team img { width: 18px; height: 18px; object-fit: contain; vertical-align: middle; margin-right: 7px; }
.home .soco-std-table td.c-team span { vertical-align: middle; }
.home .soco-std-empty { padding: 16px; text-align: center; color: #8a9098; font-size: 13px; }

/* BXH: bỏ thanh cuộn, hiện đủ 20 đội */
.home .home-box--standings .home-standings-embed { max-height: none !important; overflow: visible !important; }

/* Tên đội +1 size; sidebar BXH cuộn theo (sticky) tới đáy nội dung */
.home .soco-std-table td.c-team { font-size: 13px; }
@media (min-width: 821px) {
  .home .home-col--left { position: sticky !important; top: 12px !important; align-self: start; }
}

/* Tiêu đề +2 size */
.home .home-center-top h1 { font-size: 18px !important; }

/* Sticky sidebar BXH: gỡ overflow ở các wrapper cha (Flatsome) để sticky chạy */
@media (min-width: 821px) {
  .home #content.content-area,
  .home .content-area .row-main,
  .home .content-area .row-main > .col,
  .home .content-area .row-main > .col > .col-inner { overflow: visible !important; }
  .home .home-col--left { position: sticky !important; top: 12px !important; align-self: start !important; }
}

/* Kéo chữ "Live" sát button môn hơn */
.home .main-page .sports-bars .nav-item,
.home .sports-bars .nav-item { gap: 2px !important; }
.home .sports-bars .sport-playing.is-sport-playing { margin-left: 0 !important; }

/* Chữ "Live" đưa lên GÓC TRÊN-PHẢI của nút môn */
.home .main-page .sports-bars .nav-item,
.home .sports-bars .nav-item { position: relative !important; gap: 0 !important; overflow: visible !important; }
.home .sports-bars .sport-playing.is-sport-playing {
  position: absolute !important; top: -8px !important; right: -8px !important; left: auto !important; bottom: auto !important;
  transform: none !important; margin: 0 !important; z-index: 3;
  padding: 1px 6px !important; font-size: 9px !important; line-height: 1.4 !important; border-radius: 8px !important;
}

/* Sticky ổn định (wrapper): cột trái làm gốc toạ độ */
.home .home-col--left { position: relative !important; }
.home .hcl-sticky { will-change: auto; }

/* MOBILE: ẩn cột trái (menu + Bảng Xếp Hạng), cột giữa full-width */
@media (max-width: 820px) {
  .home .home-col--left { display: none !important; }
  .home .home-3col { grid-template-columns: 1fr !important; }
}

/* MOBILE bottom bar (#custom-footer-menu): icon FA + active + chừa chỗ cuối trang */
@media (max-width: 768px) {
  #custom-footer-menu { padding: 6px 0; }
  #custom-footer-menu a { flex: 1 1 0; text-align: center; }
  #custom-footer-menu .icon-box-img i { font-size: 20px; color: #bababa; line-height: 1; }
  #custom-footer-menu .icon-box-text { margin-top: 4px; font-size: 11px; color: #bababa; white-space: nowrap; }
  #custom-footer-menu a.active .icon-box-img i,
  #custom-footer-menu a.active .icon-box-text { color: var(--scl-primary, #00C44D) !important; }
  body { padding-bottom: 62px !important; }
}
