/* 熱門遊戲商外框 — 保留供日後復用
.hot-providers-section {
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  background:
    radial-gradient(130% 160% at 8% 0%, rgba(180, 146, 255, 0.14) 0%, rgba(180, 146, 255, 0) 46%),
    linear-gradient(180deg, rgba(15, 19, 30, 0.96) 0%, rgba(10, 14, 24, 0.96) 100%);
  border: 1px solid rgba(0, 61, 121, 0.2);
  box-shadow: 0 10px 24px rgba(34, 16, 72, 0.32);
}
*/

.hot-providers-brands {
  margin: 0;
  position: relative;
  z-index: 1;
}

/* 這裡原本有一層 ::before 分帶底色（接續遊戲區的交錯淡底）。
   改為純 LOGO 帶：只留 LOGO 與 LOGO 外框（.hp-card），外層底色與標題都拿掉。
   復原方式：把下面這塊解除註解，並移除「隱藏標題／箭頭」那兩條。
.hot-providers-brands::before {
  content: "";
  position: absolute;
  inset: -12px 0 -10px;
  z-index: -1;
  border-radius: 16px;
  background: var(--ref-band);
  pointer-events: none;
}
*/

/* Dexsport 風格促銷三卡（輪播上方） */
.hp-promo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
  padding-top: 22px;
}

.hp-promo-card--dex {
  position: relative;
  display: block;
  height: 120px;
  border-radius: 20px;
  overflow: visible;
  text-decoration: none;
  border: 2px solid transparent;
  box-shadow: 0 8px 22px rgba(8, 10, 20, 0.45);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.hp-promo-card__bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  overflow: hidden;
}

.hp-promo-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.hp-promo-card__character {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  line-height: 0;
}

.hp-promo-card__character-img {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  bottom: -1px;
  transform-origin: center bottom;
  transition: transform 0.3s ease;
}

.hp-promo-card--sport .hp-promo-card__bg {
  background-image: url("https://dexsport.io/_next/static/media/card-1-desk-bg-upd.8ffd9e63.webp");
}

.hp-promo-card--slot .hp-promo-card__bg {
  background-image: url("https://dexsport.io/_next/static/media/card-2-desk-bg-upd.ed45be96.webp");
}

.hp-promo-card--casino .hp-promo-card__bg {
  background-image: url("https://dexsport.io/_next/static/media/card-3-desk-bg-upd.05962c04.webp");
}

.hp-promo-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    197deg,
    rgba(0, 0, 0, 0) 18.84%,
    rgba(0, 0, 0, 0.18) 56%,
    rgba(2, 10, 22, 0.6) 103.44%
  );
  transition: background 0.3s ease;
}

.hp-promo-card__lottie {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.hp-promo-card__lottie svg {
  width: 100% !important;
  height: 100% !important;
}

.hp-promo-card__cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 16px 14px 24px;
  border-radius: inherit;
  pointer-events: none;
}

.hp-promo-card__cta {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) scale(0.96);
  opacity: 0;
  visibility: hidden;
  padding: 8px 0;
  width: 117px;
  border-radius: 12px;
  background: #fff;
  color: #0c0713;
  font-size: 14px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease, color 0.2s ease;
}

.hp-promo-card__label {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 24px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hp-promo-card__label i {
  flex: 0 0 auto;
  width: 20px;
  font-size: 16px;
  color: #ecf7ff;
  margin-right: 8px;
  text-align: center;
}

@media (hover: hover) and (pointer: fine) {
  .hp-promo-card--dex:hover {
    border-color: #fff;
    box-shadow: 0 12px 28px rgba(34, 16, 72, 0.5), 0 0 24px rgba(0, 61, 121, 0.22);
    transform: translateY(-2px);
  }

  .hp-promo-card--dex:hover .hp-promo-card__bg {
    transform: scale(1.02);
  }

  .hp-promo-card--dex:hover .hp-promo-card__character-img {
    transform: scale(1.06);
  }

  .hp-promo-card--dex:hover .hp-promo-card__overlay {
    background: linear-gradient(
      197deg,
      rgba(0, 0, 0, 0) 18.84%,
      rgba(0, 0, 0, 0.08) 56%,
      rgba(2, 10, 22, 0.35) 103.44%
    );
  }

  .hp-promo-card--dex:hover .hp-promo-card__lottie {
    opacity: 1;
  }

  .hp-promo-card--dex:hover .hp-promo-card__label {
    opacity: 0;
    visibility: hidden;
  }

  .hp-promo-card--dex:hover .hp-promo-card__cta {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
  }

  .hp-promo-card--dex:hover .hp-promo-card__cta:hover {
    color: #7747e5;
  }
}

@media (hover: none) {
  .hp-promo-card--dex.hp-promo-card--touch {
    border-color: #fff;
    box-shadow: 0 12px 28px rgba(34, 16, 72, 0.5), 0 0 24px rgba(0, 61, 121, 0.22);
    transform: translateY(-2px);
  }

  .hp-promo-card--dex.hp-promo-card--touch .hp-promo-card__bg {
    transform: scale(1.02);
  }

  .hp-promo-card--dex.hp-promo-card--touch .hp-promo-card__character-img {
    transform: scale(1.06);
  }

  .hp-promo-card--dex.hp-promo-card--touch .hp-promo-card__overlay {
    background: linear-gradient(
      197deg,
      rgba(0, 0, 0, 0) 18.84%,
      rgba(0, 0, 0, 0.08) 56%,
      rgba(2, 10, 22, 0.35) 103.44%
    );
  }

  .hp-promo-card--dex.hp-promo-card--touch .hp-promo-card__lottie {
    opacity: 1;
  }

  .hp-promo-card--dex.hp-promo-card--touch .hp-promo-card__label {
    opacity: 0;
    visibility: hidden;
  }

  .hp-promo-card--dex.hp-promo-card--touch .hp-promo-card__cta {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
  }
}

@media (min-width: 1024px) {
  .hp-promo-card--dex {
    height: 150px;
  }

  .hp-promo-card__cover {
    padding: 0 16px 16px 24px;
  }

  .hp-promo-card__label i {
    width: 20px;
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  .hp-promo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding-top: 0;
  }

  .hp-promo-card--dex {
    height: 96px;
    border-radius: 14px;
    overflow: hidden;
  }

  .hp-promo-card__character {
    display: none;
  }

  .hp-promo-card--sport .hp-promo-card__bg {
    background-image: url("https://dexsport.io/_next/static/media/card-1-mob-upd-new.e4751bd3.webp");
  }

  .hp-promo-card--slot .hp-promo-card__bg {
    background-image: url("https://dexsport.io/_next/static/media/card-2-mob-upd-new.bc6a6edf.webp");
  }

  .hp-promo-card--casino .hp-promo-card__bg {
    background-image: url("https://dexsport.io/_next/static/media/card-3-mob-upd-new.4b1fdf69.webp");
  }

  .hp-promo-card__cover {
    padding: 0 8px 8px 10px;
  }

  .hp-promo-card__label {
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: 0;
  }

  .hp-promo-card__label i {
    width: 12px;
    font-size: 10px;
    margin-right: 4px;
  }

  .hp-promo-card__cta {
    font-size: 10px;
    padding: 4px 8px;
    width: auto;
    min-width: 72px;
  }
}

.hot-providers-brands .swiper-hot-providers.content,
.hot-providers-section .swiper-hot-providers.content {
  position: relative;
  margin-bottom: 0;
  padding: 0 2px 4px;
  overflow: hidden;
}

/* 不顯示標題列（樣式保留供日後復用，只加一條 display:none 蓋掉） */
.hot-providers-brands .hp-title-row,
.hot-providers-section .hp-title-row {
  margin: 0 0 10px !important;
  padding-left: 10px !important;
  border-left: 2px solid var(--lux-gold-line) !important;
}

.hot-providers-brands .hp-title-row,
.hot-providers-section .hp-title-row {
  display: none !important;
}

/* 左右箭頭是靠標題列高度（--lux-swiper-title-mt/-row-h）定位在標題那一行的右側；
   標題拿掉後它們會直接壓在 LOGO 上，所以一併隱藏。這排 LOGO 仍可拖曳捲動
   （swiper 的 allowTouchMove / grabCursor 都是開的，桌機用滑鼠拖也行）。 */
.hot-providers-brands .swiper-hot-providers.content > .swiper-button-prev,
.hot-providers-brands .swiper-hot-providers.content > .swiper-button-next,
.hot-providers-section .swiper-hot-providers.content > .swiper-button-prev,
.hot-providers-section .swiper-hot-providers.content > .swiper-button-next {
  display: none !important;
}

.hot-providers-brands .hp-title-row h2,
.hot-providers-section .hp-title-row h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ref-primary, #003d79);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
}

.hot-providers-brands .hp-title-row h2 i,
.hot-providers-section .hp-title-row h2 i {
  color: var(--lux-gold-soft);
  filter: drop-shadow(0 0 8px rgba(212, 161, 80, 0.35));
}

.hot-providers-brands .swiper-hot-providers .swiper-slide,
.hot-providers-section .swiper-hot-providers .swiper-slide {
  width: auto;
  height: auto;
  display: block;
  text-align: left;
}

.hot-providers-brands .hp-card,
.hot-providers-section .hp-card {
  width: 100%;
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: linear-gradient(
    145deg,
    rgba(0, 35, 70, 0.96) 0%,
    var(--ref-primary, #003d79) 52%,
    var(--ref-third, #3a506b) 100%
  );
  border: 1px solid rgba(137, 196, 244, 0.12);
  box-shadow: 0 1px 4px rgba(0, 61, 121, 0.16);
  transition: box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.hot-providers-brands .hp-card--thrill:hover,
.hot-providers-section .hp-card--thrill:hover,
.hot-providers-brands .hp-card:hover,
.hot-providers-section .hp-card:hover {
  transform: none;
  background: linear-gradient(
    145deg,
    rgba(0, 48, 92, 0.98) 0%,
    var(--ref-primary-hover, #0056a3) 50%,
    #456078 100%
  );
  border-color: rgba(137, 196, 244, 0.28);
  box-shadow: 0 2px 8px rgba(0, 61, 121, 0.24);
}

.hot-providers-brands .hp-card img,
.hot-providers-section .hp-card img {
  display: block;
  width: 100%;
  height: auto;
  /* 這批 logo PNG（與 /about-us 共用）圖檔本身四周留白偏多，
     沿用原本給 SVG 的 38px 會顯得縮成一小塊，放寬到卡片高度扣掉上下呼吸的程度。 */
  max-height: 46px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  opacity: 1;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.hot-providers-brands .hp-card--thrill:hover img,
.hot-providers-section .hp-card--thrill:hover img {
  opacity: 1;
  transform: scale(1.03);
  filter: drop-shadow(0 0 6px rgba(137, 196, 244, 0.35));
}

.hot-providers-brands .swiper-hot-providers.content > .swiper-button-prev,
.hot-providers-brands .swiper-hot-providers.content > .swiper-button-next,
.hot-providers-section .swiper-hot-providers.content > .swiper-button-prev,
.hot-providers-section .swiper-hot-providers.content > .swiper-button-next {
  color: #89c4f4 !important;
}

@media (max-width: 767px) {
  .hot-providers-brands .hp-card,
  .hot-providers-section .hp-card {
    height: 64px;
    padding: 0 12px;
    border-radius: 14px;
  }

  .hot-providers-brands .hp-card img,
  .hot-providers-section .hp-card img {
    max-height: 40px;
  }
}
