/* Home sections DonaldBet — Top 10, Preferidos, Provedores */

.apex-home-sections {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.apex-home-sections .apex-section {
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .apex-home-sections .apex-section {
    margin-bottom: 1.5rem;
  }
}

/* ---- Section header ---- */
.apex-home-sections .apex-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .apex-home-sections .apex-section-head {
    margin-bottom: 0.75rem;
  }
}

.apex-home-sections .apex-section-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.apex-home-sections .apex-section-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: #0485f7;
}

.apex-home-sections .apex-section-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.apex-home-sections .apex-section-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

@media (min-width: 640px) {
  .apex-home-sections .apex-section-title {
    font-size: 18px;
  }
}

.apex-home-sections .apex-section-nav {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
}

@media (min-width: 640px) {
  .apex-home-sections .apex-section-nav {
    display: flex;
  }
}

.apex-home-sections .apex-section-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: color 0.15s;
}

.apex-home-sections .apex-section-nav-btn:hover:not(.is-disabled):not(:disabled) {
  color: rgba(255, 255, 255, 0.92);
}

.apex-home-sections .apex-section-nav-btn.is-disabled,
.apex-home-sections .apex-section-nav-btn:disabled {
  color: rgba(255, 255, 255, 0.2);
  cursor: not-allowed;
  pointer-events: none;
}

.apex-home-sections .apex-section-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.apex-home-sections .apex-section-more:hover {
  opacity: 0.8;
}

.apex-home-sections .apex-section-more svg {
  width: 16px;
  height: 16px;
}

/* ---- Carousel track ---- */
.apex-home-sections .apex-carousel-wrap {
  position: relative;
}

.apex-home-sections .apex-carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 16px;
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
}

@media (min-width: 640px) {
  .apex-home-sections .apex-carousel-track {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

.apex-home-sections .apex-carousel-track::-webkit-scrollbar {
  display: none;
}

.apex-home-sections .apex-carousel-track.providers-track {
  gap: 8.221px;
}

@media (min-width: 1024px) {
  .apex-home-sections .apex-carousel-track.providers-track {
    justify-content: safe center;
  }
}

/* ---- Top 10 cards ---- */
.apex-home-sections .top10-slide {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 100px;
}

@media (min-width: 640px) {
  .apex-home-sections .top10-slide {
    width: 149px;
  }
}

.apex-home-sections .top10-card {
  display: block;
  text-decoration: none;
}

.apex-home-sections .top10-card-inner {
  position: relative;
  width: 100%;
}

.apex-home-sections .top10-img-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
}

@media (min-width: 640px) {
  .apex-home-sections .top10-img-wrap {
    aspect-ratio: 3 / 4;
  }
}

.apex-home-sections .top10-img-wrap img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s;
}

@media (min-width: 640px) {
  .apex-home-sections .top10-img-wrap img {
    height: 100%;
    object-fit: cover;
  }

  .apex-home-sections .top10-card:hover .top10-img-wrap img {
    transform: scale(1.05);
  }
}

.apex-home-sections .top10-play {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 0 6px;
}

.apex-home-sections .top10-play span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 28px;
  min-width: 74px;
  padding: 0 16px;
  border-radius: 999px;
  background: #0485f7;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 12px;
}

.apex-home-sections .top10-play svg {
  width: 12px;
  height: auto;
  fill: currentColor;
}

/* ---- Preferidos ---- */
.apex-home-sections .preferidos-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

@media (min-width: 1024px) {
  .apex-home-sections .preferidos-grid {
    display: none;
  }
}

.apex-home-sections .preferidos-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .apex-home-sections .preferidos-desktop {
    display: block;
  }
}

.apex-home-sections .preferidos-slide {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 118px;
}

@media (min-width: 640px) {
  .apex-home-sections .preferidos-slide {
    width: 140px;
  }
}

@media (min-width: 1024px) {
  .apex-home-sections .preferidos-slide {
    width: 122px;
  }
}

.apex-home-sections .preferidos-track {
  gap: 8px;
}

@media (min-width: 640px) {
  .apex-home-sections .preferidos-track {
    gap: 12px;
  }
}

.apex-home-sections .preferidos-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 59 / 79;
  background: #18181b;
  text-decoration: none;
  isolation: isolate;
}

@media (min-width: 1024px) {
  .apex-home-sections .preferidos-card {
    border-radius: 20px;
  }
}

.apex-home-sections .preferidos-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.apex-home-sections .preferidos-card:hover img {
  transform: scale(1.04);
}

/* ---- Provedores ---- */
.apex-home-sections .providers-head-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .apex-home-sections .providers-head-desktop {
    display: block;
  }
}

.apex-home-sections .provider-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 75px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #28282c;
  background: transparent;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.15s;
}

.apex-home-sections .provider-chip:hover {
  opacity: 1;
}

@media (min-width: 1024px) {
  .apex-home-sections .provider-chip {
    height: 70px;
    padding: 16px 24px;
    border-radius: 20px;
    background: #18181b;
  }
}

.apex-home-sections .provider-chip img {
  max-height: 28px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  user-select: none;
}

.apex-home-sections .provider-chip span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

/* Esconde grids Vue antigos quando as seções Apex estão ativas */
html.apex-home-sections-ready .featured-games-slide,
html.apex-home-sections-ready .studios-slide {
  display: none !important;
}

html.apex-home-sections-ready .px-4.lg\:px-0 > div > .mb-8.flex.flex-col,
html.apex-home-sections-ready .px-4.lg\:px-0 > div > div.flex.flex-col.mb-8 {
  display: none !important;
}
