/* New style */
body #app {
  background: #232626 !important;
}

.main-page .sports-bars {
  margin-bottom: 0;
}

.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;
}

/* #football .grid-match,
#basketball .grid-match, */
#tennis .grid-match,
#volleyball .grid-match,
#badminton .grid-match {
  min-height: 174px;
}

/* Football Footer */
.grid-match__footer-football {
  display: none;
  justify-content: center;
  margin-bottom: 10px;
}

.grid-match__footer-football .grid-match--flag {
  justify-content: space-between;
}

/* Match Flag Container */

.match-item--flag {
  display: flex;
  justify-content: center;
  gap: 16px;
  color: #828b98;
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  font-family: Barlow;
}

.match-item--flag .title {
  color: #00c44d;
}

.match-item--flag .match-item__goal-scoring,
.match-item--flag .match-item__corner-ball,
.match-item--flag .match-item__h2h-vs {
  position: relative;
  gap: 2px;
}

.match-item--flag .match-item__goal-scoring:after,
.match-item--flag .match-item__corner-ball:after 
/* .match-item--flag .match-item__h2h-vs:after  */
{
  content: "";
  display: block;
  width: 1px;
  height: 16px;
  background: #3D4445;
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translate(50%, -50%);
}

@media screen and (max-width: 767px) {

  .match-item--flag .match-item__goal-scoring:after,
  .match-item--flag .match-item__corner-ball:after,
  .match-item--flag .match-item__h2h-vs:after {
    right: -16 !important;
  }

  .match-item__h2h-vs {
    gap: 2px !important;
  }
}

.match-item--flag .match-flag-item-dota2 {
  display: flex;
  align-items: center;
  gap: 3px
}

.match-item--flag .match-item__h2h-vs img {
  height: 12px;
  width: 12px;
  object-fit: contain;
}

.match-item--flag .match-item__h2h-vs:after {
  right: -10%
}

.match-item--flag .match-item__h2h-vs:last-child:after {
  content: none
}

.match-item--flag .match-item__goal-scoring {
  gap: 3px
}

.match-item--flag .match-item__corner-ball {
  gap: 3px;
  align-items: center
}

.match-item--flag .match-item__yellow-ball {
  gap: 3px;
  align-items: center;
  position: relative
}

@media screen and (max-width: 1200px) {
  .match-item--flag {
    padding: 6px 10px
  }

}

.grid-match--flag-h2h {
  gap: 4px;
}

.grid-match__h2h-vs {
  gap: 4px;
  align-items: center;
}

.grid-match__h2h-vs img {
  height: 14px;
  width: 14px;
  object-fit: contain;
}

@media screen and (max-width: 768px) {
  .grid-match--flag-h2h {
    gap: 16px;
  }

  .grid-match__h2h-vs img {
    height: 14px;
    width: 14px;
  }

  .match-item__h2h-vs:after {
    right: -20%;
  }
}

/* Goal Scoring Section */
.grid-match__goal-scoring {
  display: flex;
  align-items: center;
  gap: 4px;
}

.grid-match__goal-scoring span {
  color: #00C44D;
}

.grid-match__goal-scoring .grid-match__half-court {
  color: #C0C8D2;
}

/* Corner Ball Section */
.grid-match__corner-ball {
  display: flex;
  align-items: center;
  gap: 6px;
}

.grid-match__corner-ball .icon {
  display: inline-block;
  vertical-align: middle;
}

/* Yellow Card Section */
.grid-match__yellow-ball {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Common Icon Styles */
.icon.fs-12 {
  font-size: 12px;
}

/* Score Display */
.corner-goal,
.yellow-cards {
  color: #8D8F90;
}

/* Responsive */
@media screen and (max-width: 1200px) {
  .grid-match--flag {
    padding: 6px 10px;
  }

  .grid-match__h2h-vs img {
    height: 10px;
    width: 10px;
  }

  .grid-match__footer-football {
    display: flex;
  }
}

/* Match Footer */
.grid-match__footer {
  border-radius: 7px;
  position: relative;
  height: 38px;
  padding: 0 16px;
  display: flex;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  background: #32373880;
}

.grid-match__goal {
  margin-top: -3px;
}

/* Footer Sections */
.grid-match__footer-left {
  flex: 1;
  display: flex;
  z-index: 2;
}

.grid-match__footer-center {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.grid-match__footer-right {
  flex: 1;
  z-index: 2;
}

/* Score Elements */
.grid-match__goal-scoring {
  gap: 6px;
}

.grid-match__goal-scoring span {
  color: #00C44D;
}

.grid-match__half-court {
  color: #fff;
}

.grid-match__corner-ball,
.grid-match__yellow-ball {
  gap: 6px;
  align-items: center;
}

/* Responsive */
@media (max-width: 1200px) {
  .grid-match__footer .grid-match__footer-left {
    display: none;
  }
}

@media (max-width: 992px) {
  .grid-match__footer {
    padding: 10px;
  }
}

@media (max-width: 575px) {
  .grid-match__footer-right svg {
    width: 52px;
  }
}

/* Match Odds Container */
.grid-match__odds {
  color: #8D92A2;
  font-family: 'Roboto';
  font-size: 11px;
  font-weight: 400;
  line-height: 16px;
  position: relative;
  min-width: 105px;
  padding-right: 10px;
}

/* Odds Item Row */
.grid-match__odds-item {
  display: flex;
  justify-content: space-between;
  line-height: 16px;
  gap: 15px;
  position: relative;
}

/* Individual Odds Value */
.grid-match__odds-item p {
  color: #8D92A2;
  font-family: 'Roboto';
  font-size: 11px;
  margin: 0;
  position: relative;
  display: flex;
  flex: 1;
  justify-content: center;
}

/* Separator Lines */
div[odds]:not([odds=""]) .grid-match__odds::before,
div[odds]:not([odds=""]) .grid-match__odds::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  width: 1px;
  height: 24px;
  opacity: 0.3;
  background: linear-gradient(360deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 55%, rgba(255, 255, 255, 0) 100%);
}

div[odds]:not([odds=""]) .grid-match__odds::before {
  left: 30px;
}

div[odds]:not([odds=""]) .grid-match__odds::after {
  right: 38px;
}

/* Hide Empty Odds */
div[odds=""] .grid-match__odds {
  opacity: 0 !important;
}

/* Odds Status Colors */
.grid-match__odds-item .down {
  color: #FF0000;
}

.grid-match__odds-item .up {
  color: #00C44D;
}

/* Responsive */
@media (max-width: 575px) {
  .grid-match__odds {
    min-width: inherit;
  }

  .grid-match__odds-item {
    gap: 10px;
  }

  /* div[odds]:not([odds=""]) .grid-match__odds::before,
  div[odds]:not([odds=""]) .grid-match__odds::after {
    display: none;
  } */

  .grid-match__odds-item p {
    text-align: center;
    white-space: nowrap;
  }
}

/* Commentator Container */
.grid-match__footer-center {
  align-items: center;
  display: flex;
  gap: 4px;
  justify-content: center;
  z-index: 2;
}

/* Main Commentator Link */
.commentator {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  padding-left: 5px;
  color: #bbb;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  text-align: left;
}

/* Commentator More Dropdown */
.commentator-more .commentator-toggle-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: 38px;
  color: #bbbbbb;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  z-index: 2;
  position: relative;
}

.commentator-more .commentator-toggle-btn::after {
  display: none;
}

/* Left Line Separator */
.commentator-more .commentator-toggle-btn .line-left {
  position: absolute;
  left: -6px;
  top: 0;
}

/* Counter Badge */
.commentator-more .blv-count {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}

.commentator-more .blv-count span {
  font-size: 11px;
  line-height: 10px;
}

/* Dropdown Menu */
.commentator-more .commentator-list {
  width: 100px;
  background: #303030;
  border-radius: 6px;
  padding: 6px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.commentator-more .commentator-list a {
  margin-bottom: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.commentator-more .commentator-list a:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* Hide First Commentator in List */
.commentator-more .commentator-list .commentator-item_0 {
  display: none !important;
}

.grid-match__goal-scoring,
.grid-match__corner-ball,
.grid-match__yellow-ball,
.grid-match__h2h-vs {
  background: #2C314E;
  border-radius: 24px;
  padding: 3px 6px;
}

.gmd-elapsed-time {
  position: relative;

}

p#gmd_minutes {
  z-index: 1;
  position: relative;
  text-wrap: nowrap;
}

.progress-bar {
  content: "";
  width: 0%;
  display: block;
  height: 100%;
  position: absolute;
  top: 0;
  background-image: url(../images/bg-match/bg-match-status-spent.svg?t=1);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 7px !important;
  z-index: 0;
  left: 0;
}

.commentator svg {
  width: 24px;
  height: 24px;
}

/* Responsive */
@media (max-width: 575px) {
  .commentator {
    font-size: 10px;
  }



  .filter-tab-wrapper {
    margin-top: -12px;
  }
}

/*BLV*/
.gmd-match-footer__streamer {
  display: flex;
  gap: 5px;
  align-items: center;
  color: #bbbbbb;
  justify-content: flex-end;
  position: relative;
}

/* BLV toggle */
.extra-info {
  display: none;
  flex-direction: row;
  gap: 5px;
}

.toggle-btn {
  position: relative;
  background: none;
  border: none;
  color: #bbbbbb;
  /* background-color: #122A33; */
  border: none;
  border-radius: 38px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.toggle-btn::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  width: 1px;
  height: 24px;
  opacity: 0.3;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0) 0%,
      #fff 54.5%,
      rgba(255, 255, 255, 0) 100%);
}

.blv-count {
  display: flex;
  align-items: center;
  gap: 5px;
}

span.blv-arrow {
  color: #BBBBBB;
}

.gmd-match-footer__streamer.active span.blv-arrow {
  color: #2C73F2;
}

/* .gmd-match-footer__streamer.active span:first-child {
	display: none;
} */
.gmd-match-footer:has(.no-blv),
.gmd-match-footer:has(.int-blv) {
  grid-template-columns: 1fr 1fr 1fr;
}

.gmd-match-footer__streamer:has(.no-blv),
.gmd-match-footer__streamer:has(.int-blv) {
  justify-content: center;
}

.toggle-btn.no-blv:has(img) {
  pointer-events: none;
}

.no-blv .blv-count {
  display: none;
}

.toggle-btn.no-blv::after {
  display: none;
}

.toggle-btn:hover,
.gmd-match-footer__streamer.active .toggle-btn {
  /* border: 1px solid #00461D; */
  border: none;
  background: transparent;
}

.gmd-match-footer__streamer.active .toggle-btn img,
.gmd-match-footer__streamer.active .toggle-btn span:first-child {
  display: none;
}

.gmd-match-footer__streamer.active .toggle-btn.no-blv {
  border: 1px solid transparent;
  background-color: transparent;
}

button.toggle-btn span {
  font-size: 12px;
}

.toggle-btn:focus {
  outline: none;
}

.gmd-match-footer__streamer.active .extra-info {
  display: flex;
  align-items: flex-start;
  position: absolute;
  top: 27px;
  flex-direction: column;
  left: -3px;
  background: #040b23;
  padding: 4px;
  border-radius: 6px;
  min-width: 100px;
  z-index: 1000;
}

/* BLV toggle */