/**
 * Header Hội Quán TV – giống sv2.hoiquan1.live/trang-chu
 * Chỉ dùng trong theme hoiquantv. Class prefix: hoiquan-
 */
:root {
  --hq-from: #124783;
  --hq-to: #1A62B3;
  --hq-yellow-from: #ca8a04;
  --hq-yellow-to: #eab308;
  --hq-blue: rgb(37 99 235);
  --hq-blue-hover: rgb(29 78 216);
  --hq-blue-text: rgb(59 130 246);
  --hq-blue-text-hover: rgb(96 165 250);
  --hq-ring: rgb(96 165 250 / 0.5);
}

/* Reset/scope: chỉ ảnh hưởng header Hội Quán */
.hoiquan-header-wrap {
  box-sizing: border-box;
}
.hoiquan-header-wrap *,
.hoiquan-header-wrap *::before,
.hoiquan-header-wrap *::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

body.has-hoiquan-header .hoiquan-header-wrap {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(to right, var(--hq-from), var(--hq-to));
}

.hoiquan-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  min-height: 56px;
}

.hoiquan-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}
.hoiquan-brand img {
  display: block;
  vertical-align: middle;
  max-width: 144px;
  width: auto;
  height: auto;
  aspect-ratio: 120 / 36;
  object-fit: contain;
}

.hoiquan-nav {
  display: none;
}
@media (min-width: 640px) {
  .hoiquan-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
  }
}
.hoiquan-nav a {
  color: rgb(255 255 255 / 0.95);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: color 0.15s, background-color 0.15s;
}
.hoiquan-nav a:hover {
  color: #fff;
  background: rgb(255 255 255 / 0.1);
}

.hoiquan-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.hoiquan-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 9999px;
  background: linear-gradient(to right, var(--hq-yellow-from), var(--hq-yellow-to));
  transition: color 0.15s, background-color 0.15s, border-color 0.15s, opacity 0.15s;
}
.hoiquan-btn-icon {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  color: currentColor;
}
.hoiquan-btn-icon[src*=".svg"] {
  filter: brightness(0) invert(1);
}
.hoiquan-btn:hover {
  opacity: 0.95;
  color: #fff;
}
.hoiquan-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--hq-ring);
}

/* Nút primary (vàng) */
.hoiquan-btn--primary {
  background: linear-gradient(to right, var(--hq-yellow-from), var(--hq-yellow-to));
  border-color: rgba(255, 255, 255, 0.9);
}
/* Nút secondary (xanh) */
.hoiquan-btn--secondary {
  background: var(--hq-blue);
  border-color: rgba(255, 255, 255, 0.9);
}
.hoiquan-btn--secondary:hover {
  background: var(--hq-blue-hover);
}

/* Mobile: ẩn CTA hoặc thu gọn tùy thiết kế */
@media (max-width: 639px) {
  .hoiquan-header-inner {
    padding: 0.5rem 0.75rem;
  }
  .hoiquan-brand img {
    max-width: 120px;
  }
  .hoiquan-cta {
    gap: 0.25rem;
  }
  .hoiquan-btn {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
  }
}

/* ===== Sport Navbar (bên dưới header) – giống sv2.hoiquan1.live ===== */
.hoiquan-sport-nav {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 56px;
  border-top: 2px solid rgba(59, 130, 246, 0.5);
  background-image: var(--hq-sport-nav-bg);
  background-size: cover;
  background-position: center;
  padding: 0.5rem 1.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hoiquan-sport-nav::-webkit-scrollbar {
  display: none;
}
body.has-hoiquan-header .hoiquan-header-wrap + .hoiquan-sport-nav {
  --hq-sport-nav-bg: url("../images/header/bg-sport-navbar.png");
}
.hoiquan-sport-nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  width: max-content;
  margin: 0 auto;
}
.hoiquan-sport-nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.75rem 1.5rem;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
  transition: color 0.15s;
  flex-shrink: 0;
}
.hoiquan-sport-nav-item:hover {
  color: rgb(96 165 250) !important;
}
.hoiquan-sport-nav-live {
  position: absolute;
  right: 0;
  top: 0.125rem;
  font-size: 7px;
  font-weight: 600;
  color: #fff;
  background-color: rgb(239 68 68);
  padding: 0.125rem 0.25rem;
  border-radius: 9999px;
  animation: hoiquan-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.hoiquan-sport-nav-icon-img {
  display: block;
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
  transition: transform 0.5s;
}
.hoiquan-sport-nav-item:hover .hoiquan-sport-nav-icon-img {
  transform: scale(1.1);
}
.hoiquan-sport-nav-label {
  display: inline-block;
}
@keyframes hoiquan-pulse {
  50% { opacity: 0.5; }
}
@media (min-width: 1024px) {
  .hoiquan-sport-nav {
    min-height: 70px;
    padding: 1rem 1.5rem;
  }
  .hoiquan-sport-nav-inner {
    gap: 0.5rem;
  }
  .hoiquan-sport-nav-item {
    padding: 1rem;
    font-size: 0.875rem;
    gap: 0.5rem;
  }
  .hoiquan-sport-nav-live {
    top: 0.25rem;
    font-size: 8px;
    padding: 0.125rem 0.5rem;
  }
  .hoiquan-sport-nav-icon-img {
    width: 1rem;
    height: 1rem;
  }
}

/* ===== Intro Slider (dưới sport nav, chỉ PC) – giống sv2.hoiquan1.live ===== */
.hoiquan-intro-slider-wrap {
  display: none;
  position: relative;
  cursor: pointer;
  z-index: 10;
  max-width: 1320px;
  margin: 0 auto;
  margin-top: 1.25rem;
  overflow: hidden;
  min-height: 200px;
  border-radius: 12px;
}
@media (min-width: 1024px) {
  .hoiquan-intro-slider-wrap {
    display: block;
  }
}
.hoiquan-intro-slider-wrap .keen-slider {
  width: 100%;
}
.hoiquan-intro-slider-wrap .keen-slider__slide {
  min-height: 200px;
  overflow: hidden;
  border-radius: 12px;
}
.hoiquan-intro-slider-wrap .keen-slider__slide img {
  width: 100%;
  height: auto;
  min-height: 200px;
  object-fit: cover;
  border-radius: 12px;
}
.hoiquan-slider-img {
  width: 100%;
  display: block;
  transition: transform 0.15s;
}
.hoiquan-intro-slider-wrap:hover .hoiquan-slider-img {
  transform: scale(1.05);
}
.hoiquan-slider-btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 1rem;
  border-radius: 9999px;
  background: transparent;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.15s;
}
.hoiquan-slider-btn:hover {
  background-color: rgba(255, 255, 255, 0.25) !important;
}
.hoiquan-intro-slider-wrap:hover .hoiquan-slider-btn {
  background-color: rgba(255, 255, 255, 0.1);
}
.hoiquan-intro-slider-wrap:hover .hoiquan-slider-btn svg {
  transform: scale(1.25);
}
.hoiquan-slider-btn svg {
  display: block;
  transition: transform 0.15s;
}
.hoiquan-slider-prev {
  left: 0.25rem;
}
.hoiquan-slider-next {
  right: 0.25rem;
}
@media (min-width: 1024px) {
  .hoiquan-slider-btn {
    display: block;
  }
}
