/**
 * Card trận đấu mới – TÂM ĐIỂM THỂ THAO, giống sv2.hoiquan1.live
 * Chỉ theme hoiquantv.
 */
.hoiquan-section {
  width: 100%;
  margin-top: 1rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  display: block !important;
  visibility: visible !important;
}
.hoiquan-section-title-wrap {
  width: 100%;
  display: flex !important;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  min-height: 60px;
  flex-shrink: 0;
}
/* Tiêu đề section – giống hệt sv2.hoiquan1.live (flex, space-x-2, border-y #0B2B53) */
.hoiquan-section-title-inner {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
/* Wrapper icon 60x60, nền sport-icon-wrapper – giống gốc */
.hoiquan-section-title-icon-wrap {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url(https://sv2.hoiquan1.live/assets/imgs/sport-icon-wrapper.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  padding: 0.25rem;
  box-sizing: border-box;
}
.hoiquan-section-title-icon-wrap .hoiquan-section-title-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* Tiêu đề: text-yellow-600, hover text-yellow-500, font-semibold, uppercase, text-base → lt:text-[20px] */
.hoiquan-section-title-text {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  color: rgb(202 138 4);
  display: inline-block;
  white-space: nowrap;
  text-transform: uppercase;
  transition: color 0.15s;
}
.hoiquan-section-title-wrap:hover .hoiquan-section-title-text {
  color: rgb(234 179 8);
}
.hoiquan-section-title-line {
  flex: 1 1 0%;
  min-width: 20px;
  border-top: 1px solid rgb(11 43 83);
  border-bottom: 1px solid rgb(11 43 83);
}
@media (min-width: 1024px) {
  .hoiquan-section-title-text {
    font-size: 20px;
  }
}

/* Khối Bóng chuyền – không nền màu, chỉ layout */
.hoiquan-section--bongchuyen {
  margin-top: 1.5rem;
  padding: 1rem 0.5rem;
  border-radius: 12px;
}
/* Ảnh nền trong từng card thuộc Bóng chuyền (giống web gốc) */
.hoiquan-section--bongchuyen .hoiquan-card {
  background-image: url(https://i.imgur.com/bkDGpG8.png) !important;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

/* Grid cards */
.hoiquan-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  width: 100%;
}
@media (min-width: 640px) {
  .hoiquan-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1536px) {
  .hoiquan-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card – div wrapper (tránh <a> lồng <a> gây lỗi DOM). Overlay link phủ toàn card */
.hoiquan-card {
  display: block;
  position: relative;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  min-height: 198px;
  aspect-ratio: 533.5 / 198;
  border-radius: 10px;
  color: inherit;
  transition: opacity 0.15s;
  overflow: hidden;
}
.hoiquan-card:hover {
  opacity: 0.95;
}
.hoiquan-card-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}
/* Nội dung để pointer-events: none để click xuyên qua tới overlay link; nút Đặt cược giữ pointer-events: auto */
.hoiquan-card-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}
.hoiquan-card-inner .hoiquan-card-btn {
  pointer-events: auto;
}
.hoiquan-card-top {
  width: 100%;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  gap: 0.5rem;
}
.hoiquan-card-top-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.hoiquan-card-league {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.hoiquan-card-league img,
.hoiquan-card-league svg,
.hoiquan-card-league-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  flex-shrink: 0;
  color: currentColor;
}
.hoiquan-card-league span {
  font-size: 0.75rem;
  font-weight: 400;
  color: #fff;
}
.hoiquan-card-sport {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.hoiquan-card-sport img {
  width: 1rem;
  height: 1rem;
  display: block;
}
.hoiquan-card-sport span {
  font-size: 0.75rem;
  font-weight: 300;
  color: #fff;
}
.hoiquan-card-middle {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  padding: 0 0.5rem;
  flex-shrink: 0;
  align-items: center;
}
.hoiquan-card-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
}
.hoiquan-card-team img {
  width: 3rem;
  height: 3rem;
  display: block;
  object-fit: contain;
}
.hoiquan-card-team span {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hoiquan-card-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.hoiquan-card-status {
  background: rgb(234 179 8);
  padding: 0 0.5rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 400;
  color: #000;
}
.hoiquan-card-vs,
.hoiquan-card-score {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  line-height: 1;
}
.hoiquan-card-score {
  letter-spacing: 0.05em;
}
.hoiquan-card-datetime {
  font-size: 0.875rem;
  line-height: 1;
  color: #fff;
}
.hoiquan-card-datetime .time {
  font-weight: 600;
}
.hoiquan-card-bottom {
  width: 100%;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}
.hoiquan-card-blv {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding-right: 1rem;
  background: rgb(59 130 246);
  border-radius: 9999px;
  padding: 0.25rem 1rem 0.25rem 0.25rem;
  max-width: 100%;
  overflow: hidden;
}
.hoiquan-card-blv-avatars {
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
}
.hoiquan-card-blv-avatars img {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 2px solid #fff;
  margin-left: -0.75rem;
  position: relative;
  z-index: 10;
}
.hoiquan-card-blv-avatars img:first-child {
  margin-left: 0;
}
.hoiquan-card-blv span {
  font-size: 0.75rem;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hoiquan-card-btn {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.75rem;
  color: #fff;
  border: none;
  cursor: pointer;
  background: linear-gradient(to right, #16a34a, #4ade80, #15803d);
  background-size: 200% 200%;
  white-space: nowrap;
  transition: opacity 0.15s;
  text-decoration: none;
  display: inline-block;
  animation: hoiquan-gradient-x 3s ease infinite;
}
.hoiquan-card-btn:hover {
  opacity: 0.9;
  color: #fff;
}
@keyframes hoiquan-gradient-x {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
