/**
 * Cakhia Trận đấu khác – UI giống xem.cakhia81.xyz
 * Font + utility classes từ web gốc
 */

/* Font icomoon từ web gốc */
@font-face {
  font-family: icomoon;
  src: url(https://xem.cakhia81.xyz/fonts/icomoon.eot?sxxkxi), url(https://xem.cakhia81.xyz/fonts/icomoon.eot?sxxkxi#iefix) format("embedded-opentype"), url(https://xem.cakhia81.xyz/fonts/icomoon.ttf?sxxkxi) format("truetype"), url(https://xem.cakhia81.xyz/fonts/icomoon.woff?sxxkxi) format("woff"), url(https://xem.cakhia81.xyz/fonts/icomoon.svg?sxxkxi#icomoon) format("svg");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

/* Icon cup (SVG) – không dùng font ngoài */
.cakhia-tk-icon-cup {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  color: rgb(138 151 169);
}

/* Icon live (chấm đỏ) */
.cakhia-tk-icon-live {
  display: inline-block;
  color: #f74949;
  font-size: 0.65rem;
  line-height: 1;
  vertical-align: middle;
}

.border-gradient {
  border-image: linear-gradient(90deg, hsla(0, 0%, 9%, 0), #cfcfcf 35.5%, #cfcfcf 64.5%, hsla(0, 0%, 9%, 0)) 1;
}

.border-gradient-2 {
  border-bottom: 1px solid;
  border-image: linear-gradient(90deg, #2c2c2c, #747474 52%, #2c2c2c) 1;
}

.live {
  animation: live 1s linear infinite;
}

@keyframes live {
  0% { opacity: 1; }
  50% { opacity: 0; }
  to { opacity: 1; }
}

/* Utility */
.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Section */
.cakhia-trandau-khac-section {
  margin-bottom: 1.5rem;
  padding: 0 0.75rem;
}

.cakhia-tk-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 1rem;
  line-height: 1.5;
}

.cakhia-tk-empty {
  color: rgb(138 151 169);
  font-size: 0.875rem;
  margin: 0;
}

/* Grid */
.cakhia-tk-grid {
  display: grid;
  gap: 0.75rem;
  width: 100%;
}

.cakhia-tk-cols-1 {
  grid-template-columns: 1fr;
}

/* Mobile: 1 card 1 hàng. Tablet+ : 2 cột */
.cakhia-tk-cols-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .cakhia-tk-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Card */
.cakhia-tk-card {
  position: relative;
  background-color: rgb(46 50 58);
  border-radius: 1.5rem;
  overflow: hidden;
  min-height: 2.5rem;
  display: flex;
  flex-direction: column;
  border: 0;
}

.cakhia-tk-card-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
}

/* Top row: league + live */
.cakhia-tk-card-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem 0.25rem;
  flex-shrink: 0;
}

.cakhia-tk-card-league {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 0;
  flex: 1 1 0%;
  min-width: 0;
}

.cakhia-tk-league-logo,
.cakhia-tk-icon-cup {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  color: #fff;
  object-fit: contain;
}

.cakhia-tk-league-logo {
  width: 1.25rem;
  height: 1.25rem;
}

.cakhia-tk-icon-cup {
  font-size: 1rem;
}

.cakhia-tk-league-name {
  font-size: 0.75rem;
  line-height: 1rem;
  color: rgb(138 151 169);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 9rem;
}

.cakhia-tk-status-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 500;
}

.cakhia-tk-status-live .cakhia-tk-status-text {
  color: #f74949;
}

.cakhia-tk-status-upcoming .cakhia-tk-status-text {
  color: rgb(138 151 169);
}

.cakhia-tk-icon-live {
  font-size: 0.65rem;
  color: #f74949;
}

/* Border gradient */
.cakhia-tk-card-border {
  height: 1px;
  background: linear-gradient(90deg, #2c2c2c, #747474 52%, #2c2c2c);
  flex-shrink: 0;
}

/* Content: teams + score */
.cakhia-tk-card-content {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem;
  flex: 1 1 0%;
  min-height: 0;
}

.cakhia-tk-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 0%;
  min-width: 0;
  gap: 0.25rem;
}

.cakhia-tk-team-logo {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 0.25rem;
}

.cakhia-tk-team-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cakhia-tk-team-name {
  font-size: 0.75rem;
  line-height: 1.15;
  font-weight: 500;
  color: #fff;
  margin: 0;
  text-align: center;
  max-width: 100%;
}

.cakhia-tk-score {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 0.25rem;
}

.cakhia-tk-score-box {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 600;
  color: #fff;
}

.cakhia-tk-score-home,
.cakhia-tk-score-away {
  min-width: 1.5rem;
  text-align: center;
}

/* Datetime – rõ ràng hơn */
.cakhia-tk-card-datetime {
  padding: 0.35rem 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  flex-shrink: 0;
}

.cakhia-tk-datetime-text {
  font-size: 0.8125rem;
  line-height: 1.25rem;
  color: rgb(160 172 190);
  font-weight: 500;
}

.cakhia-tk-datetime-date {
  font-size: 0.8125rem;
  line-height: 1.25rem;
  color: rgb(160 172 190);
  font-weight: 500;
}

/* Bottom: actions */
.cakhia-tk-card-bottom {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem 0.75rem;
  flex-shrink: 0;
  gap: 0.5rem;
}

.cakhia-tk-card-blv {
  flex: 1 1 0%;
  min-width: 0;
}

.cakhia-tk-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cakhia-tk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  border-radius: 1.75rem;
  text-decoration: none;
  border: 0;
  white-space: nowrap;
  cursor: pointer;
}

.cakhia-tk-btn-live {
  background-color: rgb(247 73 73);
  color: #fff;
}

.cakhia-tk-btn-live:hover {
  background-color: rgb(220 60 60);
  color: #fff;
}

.cakhia-tk-btn-bet {
  background-color: rgb(247 115 73);
  color: #fff;
}

.cakhia-tk-btn-bet:hover {
  background-color: rgb(220 100 60);
  color: #fff;
}

/* PC: 1 hàng nhiều card */
@media (min-width: 1024px) {
  .cakhia-tk-grid {
    gap: 1rem;
  }

  .cakhia-tk-card-content {
    flex-direction: row;
    padding: 0.75rem 1rem;
  }

  .cakhia-tk-card-datetime {
    padding: 0.25rem 1rem 0.5rem;
  }

  .cakhia-tk-card-bottom {
    padding: 0.5rem 1rem 0.75rem;
  }

  .cakhia-tk-league-name {
    font-size: 0.875rem;
    line-height: 1.25rem;
    max-width: 10rem;
  }

  .cakhia-tk-team-name {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
}
