

/* 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;
  }

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

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

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