/**
 * Cakhia Hero Block - khối trận live nổi bật giống https://xem.cakhia81.xyz/
 * Nền blur, giải + BLV, thông tin trận, thống kê, nút Trực tiếp / Đặt cược
 */
:root {
  --hero-primary: rgb(247 73 73);
  --hero-primary-1: rgb(247 115 73);
  --hero-minute: rgb(48 214 36);
  --hero-text: rgb(222 228 233);
  --hero-stats-bg: rgba(97, 97, 97, 0.24);
  --hero-overlay: rgba(26, 30, 40, 0.85);
  --hero-border-gradient: linear-gradient(90deg, hsla(0, 0%, 9%, 0), #cfcfcf 35.5%, #cfcfcf 64.5%, hsla(0, 0%, 9%, 0));
}

.cakhia-hero-block {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  margin-bottom: 1.25rem;
  min-height: 200px;
}

.hero-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(12px);
  transform: scale(1.05);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem 0.5rem 1.75rem;
}

@media (min-width: 640px) {
  .hero-inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* PC: căn nội dung hero sang trái chút */
@media (min-width: 1024px) {
  .hero-inner {
    margin-left: 1.5rem;
    margin-right: auto;
  }
}

.hero-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

.hero-league {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

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

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

.hero-blv-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: #4285f4;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
}

.hero-blv-pill:hover {
  color: #fff;
  opacity: 0.9;
}

.hero-blv-pill svg,
.hero-blv-avatar {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}

.hero-blv-avatar {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  object-fit: cover;
}

.hero-match-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .hero-match-row {
    flex-direction: row;
    align-items: stretch;
    gap: 1.25rem;
  }
}

.hero-match-center {
  flex: 1 1 0%;
  min-width: 0;
}

.hero-teams {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .hero-teams {
    gap: 1rem;
  }
}

.hero-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 0%;
  min-width: 0;
  max-width: 10rem;
}

@media (min-width: 768px) {
  .hero-team {
    max-width: 12rem;
  }
}

.hero-team-logo {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .hero-team-logo {
    width: 4rem;
    height: 4rem;
  }
}

.hero-team-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-team-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

@media (min-width: 768px) {
  .hero-team-name {
    font-size: 1.125rem;
  }
}

.hero-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0 0.5rem;
}

.hero-minute {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--hero-minute);
  line-height: 1.25rem;
}

.hero-score {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 600;
  color: #fff;
}

@media (min-width: 768px) {
  .hero-score {
    font-size: 1.5rem;
    line-height: 2rem;
  }
}

.hero-score-sep {
  margin: 0 0.125rem;
}

.hero-datetime {
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--hero-text);
}

.hero-border-gradient {
  width: 100%;
  height: 1px;
  margin: 1rem 0;
  background: var(--hero-border-gradient);
  border: none;
}

.hero-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

.hero-btn:hover {
  color: #fff;
  opacity: 0.95;
}

.hero-btn-truc-tiep {
  background: var(--hero-primary);
  color: #fff;
}

.hero-btn-dat-cuoc {
  background: var(--hero-primary-1);
  color: #fff;
}

/* Stats panel */
.hero-stats-panel {
  background: var(--hero-stats-bg);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  min-width: 0;
}

@media (min-width: 1024px) {
  .hero-stats-panel {
    width: 14rem;
    flex-shrink: 0;
    padding: 1rem;
  }
}

.hero-stat-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.hero-stat-row:last-child {
  margin-bottom: 0;
}

.hero-stat-label {
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--hero-text);
}

.hero-stat-values {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.hero-stat-home {
  font-size: 0.875rem;
  color: #fff;
  min-width: 1.5rem;
  text-align: left;
}

.hero-stat-away {
  font-size: 0.875rem;
  color: var(--hero-primary-1);
  min-width: 1.5rem;
  text-align: right;
}

.hero-stat-bar-wrap {
  flex: 1 1 0%;
  min-width: 4rem;
  padding: 0 0.25rem;
}

.hero-stat-bar {
  display: flex;
  flex-direction: row;
  height: 0.375rem;
  border-radius: 9999px;
  overflow: hidden;
  background: rgba(90, 90, 90, 0.6);
}

.hero-stat-bar-home {
  width: var(--pct-home, 50%);
  background: rgb(87 95 106);
  flex-shrink: 0;
}

.hero-stat-bar-away {
  flex: 1 1 0%;
  background: var(--hero-primary-1);
}

.max-w-6xl {
  max-width: 72rem;
}
