/*
Theme Name:           Flatsome
Theme URI:            http://flatsome.uxthemes.com
Author:               UX-Themes
Author URI:           https://uxthemes.com
Description:          Multi-Purpose Responsive WooCommerce Theme
Version:              3.19.12
Requires at least:    6.4
Requires PHP:         7.4
WC requires at least: 8.3
Text Domain:          flatsome
License:              https://themeforest.net/licenses
License URI:          https://themeforest.net/licenses
*/


/***************
All custom CSS should be added to Flatsome > Advanced > Custom CSS,
or in the style.css of a Child Theme.
***************/


.sports-filter {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.sports-filter__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  max-width: 100%;
  border-radius: 10px;
    background: #0c0c0c;
    border: solid 2px #2b2b2b;
}

.sports-filter__group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.sports-filter__button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: #20242c;
  border: none;
  border-radius: 5px;
  color: var(--color-white);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
  cursor: pointer;
  transition: background-color 0.3s;
  white-space: nowrap;
}

.sports-filter__button_child {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: #20242c;
  border: none;
  border-radius: 5px;
  color: var(--color-white);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
  cursor: pointer;
  transition: background-color 0.3s;
  white-space: nowrap;
}

.sports-filter__group.sports-categories .sports-filter__button {
  background-color: transparent;
}

.sports-filter__group.sports-categories
  .sports-filter__button
  .sports-filter__button-text {
  font-weight: 700;
}

.sports-filter__button-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.sports-filter__button-icon img {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
}

.sports-filter__button_child.active .sports-filter__button-icon {
  transform: rotate(180deg);
}

.sports-filter__button.active .sports-filter__button-icon {
  transform: rotate(180deg);
}

.sports-filter__button-text {
  font-weight: 400;
  flex: 1;
  text-align: left;
}

.sports-filter__button-count {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  /* padding: 0 6px; */
  /* background-color: rgba(255, 255, 255, 0.1); */
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
}

.sports-filter__button-count:empty {
  display: none;
}

.sports-filter__button:hover {
  background-color: #2a2f38;
}

.sports-filter__button.active {
  background-color: transparent;
  color: #00fffd;
}

.sports-filter__button.live {
  background-color: #f2152d;
}

.sports-filter__button.live .sports-filter__button-count {
  background-color: #f2152d;
  color: #ffffff;
}

.sports-filter__divider {
  width: 100%;
  height: 1px;
  background-color: #676161;
  margin: 8px 0;
}

.sports-filter__dropdown-wrapper {
  position: relative;
}

.sports-filter__button.has-dropdown {
  position: relative;
}

.sports-filter__button.has-dropdown.active::after {
  transform: translateY(-50%) rotate(180deg);
}

.sports-filter__button.has-dropdown.active .sports-filter__button-icon {
  transform: rotate(180deg);
}

.sports-filter__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 240px;
  background-color: #20242c;
  border-radius: 8px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sports-filter__dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sports-filter__dropdown-content {
  max-height: 300px;
  overflow-y: auto;
}

.sports-filter__dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  color: var(--color-white);
  transition: background-color 0.3s;
}

.sports-filter__dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.sports-filter__dropdown-item img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.sports-filter__dropdown-item span {
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .sports-filter__dropdown {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 32px);
    max-width: 320px;
    max-height: calc(100vh - 32px);
    background-color: #2d3034;
  }

  .sports-filter__dropdown.active {
    transform: translate(-50%, -50%);
  }

  .sports-filter__dropdown::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }
}

@media (max-width: 480px) {
    h1 {
        margin: 1rem 0;
    }
    
  .sports-filter__button {
    padding: 4px 10px;
    font-size: 14px;
  }

  .sports-filter__button-icon img {
    width: 16px;
    height: 16px;
  }

  .sports-filter__button-count {
    min-width: 16px;
    height: 16px;
    font-size: 10px;
    padding: 0 4px;
  }
  .sports-filter__button_child {
      padding: 6px 14px;
      font-size: 13px;
  }
}

@media (max-width: 1200px) {
  .news__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .news__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .news__grid {
    grid-template-columns: 1fr;
  }

  .news-card--featured {
    grid-column: auto;
    grid-row: auto;
  }

  .news-card--featured .news-card__title {
    font-size: 16px;
  }

  .match-card__teams .team:first-of-type {
    flex-direction: column;
  }

  .team {
    flex-direction: column;
    text-align: center;
  }

  .team__name {
    font-size: 15px;
  }

  .match-card__score {
    font-size: 30px;
  }

  .match-card__info {
display: flex !important;
    flex-direction: column;
    align-items: center;
  }

  .match-card__stats {
    display: flex;
  justify-content: center;
  gap: 0.5rem;
  }

  .match-card__mic {
    position: relative;
    left: auto;
    transform: none;
    margin: 0;
  }

  .match-card__odds {
    display: flex;
  justify-content: center;
  gap: 0.5rem;
  }

  .match-card__odds-logo {
    height: 26px;
  }

  .match-card__league {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
    display: inline-block;
  }

  .match-card__time {
    min-width: 100px;
  }

  .match-card__status {
    min-width: 60px;
  }
}

@media (max-width: 576px) {
  .match-card__time-info img {
    display: none;
  }

  .match-card__time-info .match-card__time {
    display: none;
  }

  .match-card__time-mobile {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.25rem;
    margin-top: 0.25rem;
  }

  .match-card__info {
  display: flex;
  flex-direction: column;
  align-items: center; /* cÄƒn giá»¯a theo chiá»u ngang */
  gap: 0.5rem;
  padding: 1rem;
  }

  .match-card__stats-content {
    font-size: 15px;
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
    margin: 0.35rem 0;
    font-weight: 400;
  }

  .match-card__stat {
    gap: 0.25rem;
  }

  .match-card__stat span {
    font-size: 8px;
  }

  .match-card__stat img {
    width: 8px;
    height: 8px;
  }

  /* .match-card__mic {
    width: 20px;
    height: 20px;
  } */

  .match-card__mic img {
    width: 12px;
    height: 12px;
  }

  .match-card__odds {
    gap: 0.375rem;
  }

  .match-card__odd span {
    font-size: 8px;
  }

  .match-card__odd:not(:last-of-type)::after {
    display: none;
  }

  .match-card__odds-logo {
    height: 14px;
  }

  .match-card__league {
      white-space: nowrap;        /* KhĂ´ng xuá»‘ng dĂ²ng */
    overflow: hidden;           /* áº¨n pháº§n vÆ°á»£t quĂ¡ khung */
    text-overflow: ellipsis;    /* ThĂªm dáº¥u "..." náº¿u bá»‹ cáº¯t */
    max-width: 200px;           /* Chiá»u rá»™ng tá»‘i Ä‘a, chá»‰nh theo giao diá»‡n */
    display: inline-block;      /* Äáº£m báº£o Ă¡p dá»¥ng Ä‘Æ°á»£c */
    font-size: 14px;
    text-align: center;
    justify-content: center;
    text-align: left;
  }

  .match-card__time {
    min-width: auto;
    width: 100%;
    flex: 1;
    text-align: center;
    font-size: 15px;
  }

  .match-card__time span {
    font-size: 12px;
  }

  .match-card__status {
    font-size: 13px;
    min-width: auto;
    width: 100%;
    flex: 1;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .match-card__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}
.featured-matches h2 {
  color: var(--color-white);
  font-size: 24px;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.featured-matches h2::before {
  content: " ";
  margin-right: 1rem;
  border: 2px solid var(--color-primary);
}

.matches {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.match-card {
  border-radius: 10px;
  overflow: hidden;
  background: #0c0c0c url(/socolive/uploads/2025/04/bg-match-2.webp) no-repeat;
  border: solid 2px #2b2b2b;
  background-position: center;
}

.match-card__body {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 1rem;
  gap: 1rem;
  position: relative;
}

.match-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.match-card__league {
  align-items: center;
  /*gap: 0.5rem;*/
  font-size: 14px;
  font-weight: 500;
  color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
    display: inline-block;
}

.match-card__league img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.streaming {
  padding: 5px;
  border-radius: 6px;
    background: linear-gradient(179deg, #00db02, #102b0e52);
    border: 1px solid #09db2a85;
}

.match-card__status {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.match-card__time {
  text-align: right;
  min-width: 140px;
}

.match-card__time span {
  color: #acacac;
  font-size: 14px;
  font-weight: 500;
}

.match-card__teams {
  display: flex;
  align-items: center;
  text-align: center;
  /* margin-top: 1rem; */
}

.match-card__teams > div {
  flex: 1;
  min-width: 0; /* NGÄ‚N team dÃ i Ä‘áº©y layout lá»‡ch */
}

.team {
    justify-content: center;
    padding: 5px;
    word-break: break-word;
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 0.5rem;
}

.team.home {
    flex-direction: row-reverse !important; /* Äáº£o láº¡i: text trÆ°á»›c, logo sau */
}

.team__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 4px;
}

.team__name {
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
      white-space: nowrap;        /* KhÃ´ng xuá»‘ng dÃ²ng */
    overflow: hidden;           /* áº¨n pháº§n vÆ°á»£t quÃ¡ khung */
    text-overflow: ellipsis;    /* ThÃªm dáº¥u "..." náº¿u bá»‹ cáº¯t */
    max-width: 100px;           /* Chiá»u rá»™ng tá»‘i Ä‘a, chá»‰nh theo giao diá»‡n */
    display: inline-block;      /* Äáº£m báº£o Ã¡p dá»¥ng Ä‘Æ°á»£c */
}

.match-card__score {
  color: #ffffff;
  font-size: 30px;
  font-weight: 700;
}

.match-card__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid #fff;
  padding-top: 1rem;
  position: relative;
}

.match-card__stats {
  display: flex;
}

.match-card__stats-content {
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
    background: linear-gradient(220deg, #00711b 7.37%, #00691a 57.22%, #005b16 66.05%, #2dbf1b 131.67%);
    box-shadow: inset 0 0 0 2px #3f9705;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
    display: inline-block;
}

.match-card__mic {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 100px;
  padding: 0.5rem;
}

.match-card__mic img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.match-card__stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.match-card__stat span {
  color: #acacac;
  font-size: 12px;
  font-weight: 500;
}

.match-card__stat img {
  width: 16px;
  height: 16px;
}

.match-card__odds {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.match-card__odds-logo {
  height: 30px;
  object-fit: contain;
  /* margin-left: 0.5rem; */
}

.match-card__odd {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
  position: relative;
}

.match-card__odd:not(:last-of-type)::after {
  content: "";
  position: absolute;
  right: -0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 80%;
  background-color: #acacac;
}

.match-card__odd span {
  color: #acacac;
  font-size: 11px;
  font-weight: 500;
}
@media (max-width: 576px) {
    .matches {
        grid-template-columns: 1fr;
    }
    
  .match-card__time-info img {
    display: none;
  }
.match-card__status{
    top:8% !important;
}
  .match-card__time-info .match-card__time {
    display: none;
  }

  .match-card__time-mobile {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.25rem;
    margin-top: 0.25rem;
  }
}
@media (max-width: 480px) {
  .header__buttons .btn span {
    /* display: none; */
  }

  .hero h1 {
    font-size: 18px;
  }

  .news__grid {
    grid-template-columns: 1fr;
  }

  .match__buttons {
    flex-direction: column;
  }

  .match-card__info .match-card__time-info .btn {
    min-width: 97px;
    justify-content: center;
  }

.match-card__body {
    gap: 0.5rem !important;
}

  .match-card__header {
    display: flex;
    flex-direction: row !important;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
  }

  .match-card__league {
    white-space: nowrap;        /* KhĂ´ng xuá»‘ng dĂ²ng */
    overflow: hidden;           /* áº¨n pháº§n vÆ°á»£t quĂ¡ khung */
    text-overflow: ellipsis;    /* ThĂªm dáº¥u "..." náº¿u bá»‹ cáº¯t */
    max-width: 200px;           /* Chiá»u rá»™ng tá»‘i Ä‘a, chá»‰nh theo giao diá»‡n */
    display: inline-block;      /* Äáº£m báº£o Ă¡p dá»¥ng Ä‘Æ°á»£c */
    font-size: 13px;
    order: 1;
    justify-content: center;
    flex: initial !important;
    text-align: left;
  }

  .match-card__time {
    min-width: auto;
    width: 100%;
    text-align: right;
    order: 1;
    font-size: 13px !important;
  }

  .match-card__time span {
    font-size: 12px;
  }

  .match-card__status {
    font-size: 13px;
    min-width: auto;
    width: 100%;
    text-align: center;
    order: 3;
    justify-content: center;
    flex-basis: 100%;
  }
  
  .match-card__info {
        padding: 0.5rem;
  }
  
  .match-card__stats-content {
      font-size: 13px !important;
      margin: 0.25rem 0;
  }
  
 .team__name {
     font-size: 13px;
 }
 
 .team__logo {
     width: 40px;
     height: 40px;
 }
 
 
  .pagination {
    gap: 5px;
  }

  .pagination__item {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }