/**
 * Cakhia clone UI - CSS giống hệt https://xem.cakhia81.xyz/
 * Áp dụng: thẻ trận trắng, HOT, icon cúp/radar, border-gradient, nút Trực tiếp/Đặt cược
 */
@font-face {
  font-family: icomoon;
  src: url(https://xem.cakhia81.xyz/fonts/icomoon.woff) format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
:root {
  /* Màu nền toàn site giống xem.cakhia81.xyz */
  --cakhia-bg: #0c0c0c;
  --cakhia-bg-gradient: linear-gradient(180deg, #181820 0%, #181818 100%);
  /* Overlay trên ảnh nền phía trên (giống xem.cakhia81.xyz) */
  --cakhia-bg-overlay: linear-gradient(180deg, rgba(24, 24, 32, 0.75) 0%, rgba(24, 24, 24, 0.4) 40%, transparent 70%);
  --cakhia-card-bg: #1a1a1a;
  --cakhia-card-border: #c41e3a;
  --cakhia-live: #df2c2c;
  --cakhia-btn-live: #CB461B;
  --cakhia-btn-bet: #c41e3a;
  --cakhia-active: #feba4b;
  --cakhia-text: #fff;
  --cakhia-muted: #828b98;
}

/* ========== Màu nền toàn site giống xem.cakhia81.xyz ========== */
html,
body,
.site,
#content,
.site-main {
  background-color: var(--cakhia-bg) !important;
}

/* ========== Ảnh nền phía trên site (giống xem.cakhia81.xyz) – không lặp ========== */
#page {
  background-color: var(--cakhia-bg);
  background-image: var(--cakhia-bg-overlay), var(--cakhia-bg-top-image);
  background-repeat: no-repeat, no-repeat;
  background-position: top center, top center;
  background-size: 100% 100%, 100% auto;
  min-height: 100vh;
}

/* Vùng nội dung trong suốt để nền #page (ảnh + overlay + màu) hiện qua */
body.home .site-main,
body.home #content,
.home .match-list-container {
  background: transparent !important;
}

/* ========== page_bars - bỏ nền (transparent) ========== */
.page_bars {
  background: transparent;
  border-radius: 7px;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 1024px) {
  .page_bars {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ========== Môn thể thao - grid giống web gốc (header-sport-type) ========== */
/* Dùng .match-list-container để độ ưu tiên cao hơn .home .sports-bars { display: block !important } trong luongson-match.css */
.match-list-container .sports-bars.header-sport-type,
.home .sports-bars.header-sport-type {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem;
  padding-bottom: 1.5rem;
  background: transparent;
  border-bottom: none;
  margin-bottom: 0;
  list-style: none;
}

@media (max-width: 767px) {
  .match-list-container .sports-bars.header-sport-type,
  .home .sports-bars.header-sport-type {
    gap: 0.75rem;
    padding: 0.75rem;
    padding-bottom: 1.25rem;
  }
  .match-list-container .sports-bars.header-sport-type a.sport-type-link,
  .home .sports-bars.header-sport-type a.sport-type-link {
    height: 5rem;
  }
  .match-list-container .sports-bars.header-sport-type .sport-type-label,
  .home .sports-bars.header-sport-type .sport-type-label {
    font-size: 0.75rem;
  }
}

.match-list-container .sports-bars.header-sport-type::after,
.home .sports-bars.header-sport-type::after {
  display: none;
}

@media (min-width: 768px) {
  .match-list-container .sports-bars.header-sport-type,
  .home .sports-bars.header-sport-type {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* PC: 1 hàng 6 ô (giống ảnh 2 - giao diện PC) */
@media (min-width: 992px) {
  .match-list-container .sports-bars.header-sport-type,
  .home .sports-bars.header-sport-type {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* Mỗi ô môn thể thao - link dạng thẻ (dùng chung prefix tránh xung đột với luongson-match) */
.match-list-container .sports-bars.header-sport-type a.sport-type-link,
.home .sports-bars.header-sport-type a.sport-type-link {
  position: relative;
  display: flex;
  height: 6rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 1rem;
  font-weight: 600;
  color: rgb(255 255 255);
  text-decoration: none;
  transition: color 0.2s ease, background-image 0.2s ease;
  background-image: linear-gradient(to bottom, #3b4762, #252e3f);
}

.match-list-container .sports-bars.header-sport-type a.sport-type-link:hover,
.home .sports-bars.header-sport-type a.sport-type-link:hover {
  color: rgb(247 115 73);
}

.match-list-container .sports-bars.header-sport-type a.sport-type-link.active,
.home .sports-bars.header-sport-type a.sport-type-link.active {
  background-image: linear-gradient(to bottom, #fa764c, #c84217);
  color: rgb(255 255 255);
}

.match-list-container .sports-bars.header-sport-type a.sport-type-link.active:hover,
.home .sports-bars.header-sport-type a.sport-type-link.active:hover {
  color: rgb(255 255 255);
}

.match-list-container .sports-bars.header-sport-type .sport-type-label,
.home .sports-bars.header-sport-type .sport-type-label {
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-transform: uppercase;
}

/* Wrapper icon để đặt badge số */
.match-list-container .sports-bars.header-sport-type .img-wrapper,
.home .sports-bars.header-sport-type .img-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.match-list-container .sports-bars.header-sport-type .img-wrapper .sport-icon,
.home .sports-bars.header-sport-type .img-wrapper .sport-icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

@media (min-width: 768px) {
  .match-list-container .sports-bars.header-sport-type .img-wrapper .sport-icon,
  .home .sports-bars.header-sport-type .img-wrapper .sport-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* Badge số trận - vòng tròn trắng, chữ đen */
.match-list-container .sports-bars.header-sport-type .count-icon,
.home .sports-bars.header-sport-type .count-icon {
  position: absolute;
  top: -0.75rem;
  left: -0.75rem;
  display: flex;
  height: 1.25rem;
  width: 1.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: rgb(255 255 255);
  color: rgb(0 0 0);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
}

/* Badge LIVE - góc phải trên */
.match-list-container .sports-bars.header-sport-type .live-icon,
.home .sports-bars.header-sport-type .live-icon {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border-radius: 0.375rem;
  background-color: rgb(247 73 73);
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  font-size: 0.75rem;
  line-height: 1rem;
  text-transform: uppercase;
  color: rgb(255 255 255);
  font-weight: 600;
}

/* ========== Cakhia card UI giống xem.cakhia81.xyz (trắng, HOT, icon, border-gradient) ========== */
/* Icon SVG - dùng inline SVG thay font để tránh font không tải / xung đột CSS */
.match-list-container .cakhia-cards-list .cakhia-live-indicator .cakhia-icon-radar {
  display: block;
  flex-shrink: 0;
}
.match-list-container .cakhia-cards-list .cakhia-live-indicator .cakhia-icon-radar.live {
  animation: cakhia-live 1s linear infinite;
}
.match-list-container .cakhia-cards-list .gmd-match-league .cakhia-icon-cup {
  display: block;
  flex-shrink: 0;
  color: rgb(138 151 169);
}
.match-list-container .border-gradient {
  border-image: linear-gradient(90deg, hsla(0,0%,9%,0), #cfcfcf 35.5%, #cfcfcf 64.5%, hsla(0,0%,9%,0)) 1;
}
.match-list-container .live {
  animation: cakhia-live 1s linear infinite;
}
@keyframes cakhia-live {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

/* Wrapper list - giống style_wrapper-list-hot (xem.cakhia81.xyz) */
.match-list-container .cakhia-cards-list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  margin-left: 0;
  margin-right: 0;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 1rem;
}
@media (min-width: 1024px) {
  .match-list-container .cakhia-cards-list {
    padding-left: 0;
    padding-right: 0;
  }
}
.match-list-container .cakhia-cards-list > .grid-matches__item {
  height: auto;
  width: 100%;
  padding: 0.5rem;
  flex: 0 0 auto;
}
@media (min-width: 768px) {
  .match-list-container .cakhia-cards-list > .grid-matches__item {
    width: 50%;
  }
}
@media (min-width: 1536px) {
  .match-list-container .cakhia-cards-list > .grid-matches__item {
    width: 33.333333%;
  }
}

/* Card: nền trắng bg-white, rounded-3xl, shadow nhẹ giống web gốc */
.match-list-container .cakhia-cards-list .grid-matches__item {
  background: rgb(255 255 255) !important;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.match-list-container .cakhia-cards-list .main-grid-match {
  position: relative;
  display: block;
  padding: 0.75rem;
  min-height: 10rem;
}
.match-list-container .cakhia-cards-list .main-grid-match.grid-match--is-hot {
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* Hàng 1 ngang: HOT | Tên giải | Live (giống xem.cakhia81.xyz) */
.match-list-container .cakhia-cards-list .cakhia-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0 0 0.75rem;
  min-height: 2rem;
}
.match-list-container .cakhia-cards-list .cakhia-card-top-left {
  flex-shrink: 0;
  min-width: 3rem;
  display: flex;
  align-items: center;
}
.match-list-container .cakhia-cards-list .cakhia-card-top-right {
  flex-shrink: 0;
  min-width: 3rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.match-list-container .cakhia-cards-list .match-badge-hot {
  display: inline-flex !important;
  align-items: center;
  gap: 0.25rem;
  color: rgb(247 73 73);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  text-transform: uppercase;
  background: transparent;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}
.match-list-container .cakhia-cards-list .match-badge-hot img {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
  flex-shrink: 0;
}
.match-list-container .cakhia-cards-list .cakhia-live-indicator {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.match-list-container .cakhia-cards-list .gmd-match-league {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex: 1 1 0%;
  min-width: 0;
  color: rgb(138 151 169);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 0.25rem;
}
.match-list-container .cakhia-cards-list .gmd-match-league .gmd-league-logo {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
  flex-shrink: 0;
}
.match-list-container .cakhia-cards-list .gmd-match-league .gmd-league-name {
  color: rgb(138 151 169);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Đường phân cách gradient giống gốc */
.match-list-container .cakhia-cards-list .cakhia-card-border {
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, hsla(0,0%,9%,0), #cfcfcf 35.5%, #cfcfcf 64.5%, hsla(0,0%,9%,0)) 1;
  margin: 0.5rem 0 0.75rem;
  padding: 0;
}

/* Nội dung: đội (text-black, text-xl font-semibold) + tỷ số (text-2xl text-black) giống gốc */
.match-list-container .cakhia-cards-list .gmd-content_match {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0 0.75rem;
  color: rgb(0 0 0);
}
.match-list-container .cakhia-cards-list .gmd-home_team,
.match-list-container .cakhia-cards-list .gmd-away_team {
  flex: 1 1 0%;
  min-width: 0;
  min-height: 3.5rem;
  padding: 0;
}
.match-list-container .cakhia-cards-list .gmd-home_team {
  flex-direction: row-reverse;
}
.match-list-container .cakhia-cards-list .gmd-team .team-logo-group {
  min-width: 3rem;
  min-height: 3rem;
}
.match-list-container .cakhia-cards-list .gmd-team .team-logo-group img {
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  min-height: 3rem;
  object-fit: contain;
  flex-shrink: 0;
}
.match-list-container .cakhia-cards-list .gmd-team p {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
  color: rgb(0 0 0);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}
.match-list-container .cakhia-cards-list .gmd-home_team .team-name-group {
  text-align: right;
}
.match-list-container .cakhia-cards-list .gmd-mid_score {
  flex-shrink: 0;
}
.match-list-container .cakhia-cards-list .gmd-score-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
}
.match-list-container .cakhia-cards-list .gmd-score-box::before {
  display: none;
}
.match-list-container .cakhia-cards-list .gmd_home-score p,
.match-list-container .cakhia-cards-list .gmd_away-score p {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 600;
  color: rgb(0 0 0);
  margin: 0;
  padding: 0 0.125rem;
}
.match-list-container .cakhia-cards-list .gmd_home-score p::after {
  content: " - ";
  font-weight: 600;
  color: rgb(0 0 0);
}

/* Ngày giờ dưới tỷ số (giống web gốc) */
.match-list-container .cakhia-cards-list .gmd-match-datetime {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.25rem 0 0.75rem;
  color: rgb(138 151 169);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
}
.match-list-container .cakhia-cards-list .gmd-match-datetime .gmd-datetime-date {
  font-size: 0.75rem;
  line-height: 1rem;
  color: rgb(138 151 169);
}

/* Hàng cuối 1 ngang: BLV + Nút Trực tiếp/Đặt cược (giống web gốc) */
.match-list-container .cakhia-cards-list .cakhia-card-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0 0;
  margin: 0;
  flex-wrap: nowrap;
}
.match-list-container .cakhia-cards-list .gmd-match-footer {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  border-radius: 0;
  height: auto;
  border: none;
  grid-template-columns: unset;
}
.match-list-container .cakhia-cards-list .gmd-match-footer::before {
  display: none;
}
.match-list-container .cakhia-cards-list .gmd-match-footer__streamer {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: nowrap;
  min-width: 0;
}
.match-list-container .cakhia-cards-list .gmd-match-footer__streamer .extra-info_one a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.5rem;
  background: rgb(59 130 246);
  color: #fff;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
}
.match-list-container .cakhia-cards-list .gmd-match-footer__streamer .extra-info_one a:hover {
  background: rgb(37 99 235);
  color: #fff;
}
.match-list-container .cakhia-cards-list .gmd-match-footer__streamer .img_blv_inner {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  overflow: hidden;
  flex-shrink: 0;
  border: none;
}
.match-list-container .cakhia-cards-list .gmd-match-footer__streamer .img_blv_inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.match-list-container .cakhia-cards-list .gmd-match-footer__streamer .extra-info_one span {
  color: #fff;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
}

/* Nút Trực tiếp + Đặt cược - cùng hàng với BLV */
.match-list-container .cakhia-cards-list .cakhia-card-bottom-row .gmd-match-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}
.match-list-container .cakhia-cards-list .gmd-match-actions .btn-truc-tiep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  min-height: 2.5rem;
  background: rgb(247 73 73);
  color: rgb(255 255 255);
  border: none;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 1.75rem;
  text-decoration: none;
}
.match-list-container .cakhia-cards-list .gmd-match-actions .btn-truc-tiep:hover {
  background: rgb(220 60 60);
  color: rgb(255 255 255);
}
.match-list-container .cakhia-cards-list .gmd-match-actions .btn-dat-cuoc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  min-height: 2.5rem;
  background: rgb(247 115 73);
  color: rgb(255 255 255);
  border: none;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 1.75rem;
  text-decoration: none;
}
.match-list-container .cakhia-cards-list .gmd-match-actions .btn-dat-cuoc:hover {
  background: rgb(230 100 60);
  color: rgb(255 255 255);
}

/* ========== Mobile: card giống UI web gốc xem.cakhia81.xyz ========== */
@media (max-width: 767px) {
  .match-list-container .cakhia-cards-list > .grid-matches__item {
    padding: 0.375rem;
  }
  .match-list-container .cakhia-cards-list .main-grid-match {
    padding: 0.625rem;
    min-height: auto;
  }
  .match-list-container .cakhia-cards-list .cakhia-card-top-row {
    padding: 0 0 0.5rem;
    min-height: 1.75rem;
  }
  .match-list-container .cakhia-cards-list .match-badge-hot {
    font-size: 0.75rem;
  }
  .match-list-container .cakhia-cards-list .match-badge-hot img {
    width: 0.875rem;
    height: 0.875rem;
  }
  .match-list-container .cakhia-cards-list .gmd-match-league {
    font-size: 0.75rem;
    padding: 0 0.125rem;
  }
  .match-list-container .cakhia-cards-list .cakhia-card-border {
    margin: 0.375rem 0 0.5rem;
  }
  /* Trên mobi: đội bố cục logo trên – tên dưới (giống web gốc), ghi đè luongson 55px */
  .match-list-container .cakhia-cards-list .gmd-home_team,
  .match-list-container .cakhia-cards-list .gmd-away_team {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
  }
  .match-list-container .cakhia-cards-list .gmd-team {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .match-list-container .cakhia-cards-list .gmd-home_team .team-name-group {
    text-align: center;
  }
  .match-list-container .cakhia-cards-list .gmd-team .team-logo-group img {
    width: 2.5rem;
    height: 2.5rem;
  }
  .match-list-container .cakhia-cards-list .gmd-team p {
    width: auto !important;
    max-width: 90px;
    font-size: 0.8125rem;
    line-height: 1.25rem;
  }
  .match-list-container .cakhia-cards-list .gmd-content_match {
    padding: 0 0 0.5rem;
    gap: 0.375rem;
  }
  .match-list-container .cakhia-cards-list .gmd_home-score p,
  .match-list-container .cakhia-cards-list .gmd_away-score p {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
  .match-list-container .cakhia-cards-list .gmd-match-datetime {
    padding: 0.125rem 0 0.5rem;
    font-size: 0.75rem;
  }
  .match-list-container .cakhia-cards-list .cakhia-card-bottom-row {
    padding: 0.375rem 0 0;
    gap: 0.375rem;
  }
  .match-list-container .cakhia-cards-list .gmd-match-footer__streamer .extra-info_one a {
    padding: 0.2rem 0.4rem;
    font-size: 0.6875rem;
  }
  .match-list-container .cakhia-cards-list .gmd-match-footer__streamer .img_blv_inner {
    width: 1.25rem;
    height: 1.25rem;
  }
  .match-list-container .cakhia-cards-list .gmd-match-actions .btn-truc-tiep,
  .match-list-container .cakhia-cards-list .gmd-match-actions .btn-dat-cuoc {
    padding: 0.4rem 0.75rem;
    min-height: 2.25rem;
    font-size: 0.75rem;
    border-radius: 1.5rem;
  }
  .match-list-container .cakhia-cards-list .cakhia-card-bottom-row .gmd-match-actions {
    gap: 0.375rem;
  }
}

/* Load more - xanh lá */
.btn-loadmore.full-width,
#load-more-match.load-more {
  background: #1a1a1a !important;
  color: #CB461B !important;
  border: 1px solid rgba(0, 145, 57, 0.3);
}

.btn-loadmore:hover,
#load-more-match.load-more:hover {
  color: #00b347 !important;
}

/* ========== Header Cakhia top bar ========== */
.cakhia-top-bar {
  background: #0d0d0d !important;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ========== Scrollbar tối ========== */
.match-list-container ::-webkit-scrollbar {
  height: 5px;
}

.match-list-container ::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.match-list-container ::-webkit-scrollbar-thumb {
  background: #3a3a3e;
  border-radius: 4px;
}

.match-list-container ::-webkit-scrollbar-thumb:hover {
  background: #4a4a4e;
}
