#djAdsSection[hidden],
.dj-ad-lightbox[hidden],
.dj-ad-image-fallback[hidden],
#djAdLightboxLink[hidden] {
  display: none !important;
}

.dj-ads-section {
  width: 100%;
  margin: 0;
  padding: 0;
  color: #f3f6f8;
}

.dj-ads-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 28px auto;
  padding: clamp(20px, 3vw, 30px);
  overflow: hidden;
  border: 1px solid rgba(230, 189, 65, 0.42);
  border-radius: 16px;
  background: #07111c;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
}

.dj-ads-heading {
  max-width: 720px;
  margin: 0 auto 24px;
  text-align: center;
}

.dj-ads-eyebrow {
  margin: 0 0 5px;
  color: #f0c94c;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
}

.dj-ads-heading h2 {
  margin: 0;
  color: #ffffff;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
}

.dj-ads-subtitle {
  margin: 8px 0 0;
  color: #aebccc;
  font-size: 14px;
  line-height: 1.5;
}

.dj-ads-viewport {
  width: 100%;
  overflow: hidden;
  touch-action: pan-y;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.dj-ads-viewport.is-dragging .dj-ad-card {
  cursor: grabbing !important;
}

.dj-ads-viewport.is-dragging .dj-ad-media {
  cursor: grabbing !important;
}

.dj-ads-track {
  display: flex;
  gap: 24px;
  align-items: stretch;
  will-change: transform;
}

.dj-ads-track.is-animating {
  transition: transform 400ms cubic-bezier(0.25, 1, 0.5, 1);
}

.dj-ads-nav-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  padding: 0 10px;
}

.dj-ads-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(13, 26, 39, 0.8);
  border: 1px solid rgba(240, 201, 76, 0.3);
  color: #aebccc;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.dj-ads-nav-btn:hover {
  background: rgba(240, 201, 76, 0.15);
  border-color: #f0c94c;
  color: #f0c94c;
  transform: scale(1.1);
}

.dj-ads-indicator {
  flex: 1;
  max-width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.dj-ads-indicator-thumb {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 25%;
  background: linear-gradient(90deg, #46b8d9, #f0c94c);
  border-radius: 2px;
  will-change: left;
}

.dj-ad-card {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  width: 320px; /* fixed width for carousel */
  flex-shrink: 0;
  max-width: 85vw; /* responsive protection */
  min-width: 0;
  overflow: hidden;
  border: 1px solid #334457;
  border-radius: 8px;
  background: #0d1a27;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 10px rgba(70, 184, 217, 0.05);
  transition: transform 300ms cubic-bezier(0.25, 1, 0.5, 1), border-color 300ms ease, box-shadow 300ms ease;
  will-change: transform, box-shadow;
  cursor: grab;
}

.dj-ad-card--active_now {
  border-color: #f0c94c;
  box-shadow: 0 0 0 1px rgba(240, 201, 76, 0.18), 0 10px 28px rgba(240, 201, 76, 0.18);
}

.dj-ad-card--upcoming, .dj-ad-card--scheduled {
  border-color: #46b8d9;
  box-shadow: 0 8px 24px rgba(42, 157, 188, 0.16);
}

.dj-ad-card--ended_today {
  border-color: #4a5968;
  opacity: 0.85;
}

/* Special Highlighting */
.dj-ad-card--special {
  border-color: #f0c94c;
  animation: dj-ad-pulse-glow 3s infinite alternate !important;
}

.dj-ad-status {
  position: absolute;
  z-index: 2;
  top: 6px;
  left: 6px;
  min-height: 0;
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.65);
  color: #cfd8e1;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(2px);
  box-sizing: border-box;
}

.dj-ad-card--active_now .dj-ad-status {
  border-color: rgba(240, 201, 76, 0.4);
  color: #f0c94c;
  background: rgba(0, 0, 0, 0.75);
}

.dj-ad-card--upcoming .dj-ad-status {
  border-color: rgba(70, 184, 217, 0.3);
  color: #8de4fa;
}

.dj-ad-card--ended_today .dj-ad-status {
  color: #9ba6b2;
}

.dj-ad-media {
  position: relative;
  display: block !important;
  width: 100%;
  aspect-ratio: 950 / 1600;
  height: auto !important;
  min-height: 0 !important;
  line-height: normal !important;
  overflow: hidden;
  padding: 0 !important;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #263748;
  border-radius: 0 !important;
  background: #03070c;
  color: #ffffff;
  cursor: pointer;
  box-sizing: border-box;
  flex-shrink: 0;
}

.dj-ad-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 300ms ease, filter 300ms ease;
}

.dj-ad-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(70, 184, 217, 0.08), transparent 40%, rgba(240, 201, 76, 0.05));
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
  z-index: 1;
}

.dj-ad-zoom-hint {
  display: none !important;
}

.dj-ad-media:focus-visible {
  outline: 3px solid #6fd6f0;
  outline-offset: -3px;
}

.dj-ad-content {
  padding: 8px 10px;
}

.dj-ad-title {
  margin: 0 0 2px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0;
}

.dj-ad-details {
  margin: 0;
  color: #aebccc;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dj-ad-image-fallback {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 28px;
  color: #c3cdd6;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  box-sizing: border-box;
}

.dj-ad-lightbox {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 2.5vw;
  overflow: auto;
  background: rgba(0, 0, 0, 0.88);
  box-sizing: border-box;
}

.dj-ad-lightbox__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: auto;
  max-width: 95vw;
  max-height: 92vh;
  overflow: hidden;
  border: 1px solid rgba(240, 201, 76, 0.7);
  border-radius: 8px;
  background: #07111c;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58);
}

.dj-ad-lightbox__close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(1, 6, 10, 0.9);
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.dj-ad-lightbox__close:focus-visible,
.dj-ad-lightbox__close:hover {
  border-color: #f0c94c;
  color: #ffe181;
  outline: none;
}

.dj-ad-lightbox__media {
  display: flex;
  min-height: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #020509;
  box-sizing: border-box;
}

.dj-ad-lightbox__media img {
  display: block;
  width: auto;
  height: auto;
  max-width: 95vw;
  max-height: calc(92vh - 80px);
  object-fit: contain;
  object-position: center;
}

.dj-ad-lightbox__info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 16px;
  align-items: center;
  padding: 14px 16px;
  border-top: 1px solid #263748;
}

.dj-ad-lightbox__info h3,
.dj-ad-lightbox__info p {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.dj-ad-lightbox__info h3 {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0;
}

.dj-ad-lightbox__info p {
  grid-column: 1;
  color: #aebccc;
  font-size: 12px;
  line-height: 1.4;
}

.dj-ad-lightbox__info a {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border: 1px solid #d9af33;
  border-radius: 6px;
  background: #d9af33;
  color: #07111c;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  box-sizing: border-box;
}

.dj-ad-lightbox-open {
  overflow: hidden !important;
}

@keyframes dj-ad-live-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(240, 201, 76, 0); }
  50% { box-shadow: 0 0 12px rgba(240, 201, 76, 0.3); }
}

@keyframes dj-ad-pulse-glow {
  0% { box-shadow: 0 8px 25px rgba(240, 201, 76, 0.15), 0 0 8px rgba(240, 201, 76, 0.2) inset; }
  100% { box-shadow: 0 12px 35px rgba(240, 201, 76, 0.4), 0 0 15px rgba(240, 201, 76, 0.4) inset; }
}

@media (hover: hover) and (pointer: fine) {
  .dj-ad-card:hover {
    transform: translateY(-5px) scale(1.02) !important;
    border-color: #6fd6f0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(70, 184, 217, 0.25);
    z-index: 10;
  }
  
  .dj-ad-card.dj-ad-card--active_now:hover,
  .dj-ad-card.dj-ad-card--special:hover {
    border-color: #f0c94c;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 30px rgba(240, 201, 76, 0.4);
  }

  .dj-ad-card:hover .dj-ad-media img {
    transform: scale(1.03);
    filter: brightness(1.1);
  }

  .dj-ad-card:hover .dj-ad-media::after {
    opacity: 1;
  }

  .dj-ad-media:hover .dj-ad-zoom-hint,
  .dj-ad-media:focus-visible .dj-ad-zoom-hint {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 620px) {
  .dj-ads-shell {
    width: min(calc(100% - 20px), 1180px);
    margin: 20px auto;
    padding: 18px 14px;
    border-radius: 12px;
  }

  .dj-ads-heading {
    margin-bottom: 18px;
  }

  .dj-ads-heading h2 {
    font-size: 25px;
  }

  .dj-ads-track {
    gap: 16px;
  }

  .dj-ad-title {
    min-height: 0;
  }

  .dj-ad-zoom-hint {
    opacity: 1;
    transform: none;
  }

  .dj-ad-lightbox {
    padding: 3vh 10px;
  }

  .dj-ad-lightbox__dialog {
    max-width: 95vw;
    max-height: 94vh;
  }

  .dj-ad-lightbox__media img {
    max-height: calc(94vh - 110px);
  }

  .dj-ad-lightbox__info {
    grid-template-columns: minmax(0, 1fr);
  }

  .dj-ad-lightbox__info p,
  .dj-ad-lightbox__info a {
    grid-column: 1;
    grid-row: auto;
  }

  .dj-ad-lightbox__info a {
    margin-top: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dj-ad-card,
  .dj-ad-media img,
  .dj-ad-zoom-hint,
  .dj-ad-card--active_now .dj-ad-status {
    animation: none;
    transition: none;
  }
}
