/* Dr Book Banner Slider Pro v3.2 */

.drbook-banner-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 16px;
    overflow: hidden;
}

.db-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.55s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}

.db-slide-link {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    height: 100%;
    overflow: hidden;
}

.db-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0f172a;
}

.db-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
}

.db-video-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.db-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.db-mute-btn {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.db-mute-btn:hover { background: rgba(0,0,0,0.75); }

/* YouTube cover */
.db-youtube-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    pointer-events: none;
}
.db-youtube-wrap iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%) scale(1.5);
    border: 0;
    pointer-events: none;
}

.db-caption {
    position: absolute;
    right: 16px;
    left: auto;
    bottom: 18px;
    z-index: 6;
    text-align: right;
    max-width: 70%;
    pointer-events: none;
}
.db-caption h3 { margin: 0; font-size: 1.2rem; font-weight: 700; }
.db-ad-tag {
    position: absolute;
    bottom: 10px;
    right: 12px;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.55);
    z-index: 5;
}

.db-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}
.db-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}
.db-dot.active {
    background: #0ea5e9;
    width: 18px;
    border-radius: 10px;
}

@media (max-width: 600px) {
    .db-caption { right: 12px; left: auto; bottom: 14px; }
    .db-caption h3 { font-size: 1.05rem; }
    .db-mute-btn { width: 32px; height: 32px; bottom: 10px; left: 10px; }
}


/* Click layer so video/youtube still navigate */
.db-click-layer {
    position: absolute;
    inset: 0;
    z-index: 4;
    background: transparent;
}
.db-mute-btn {
    z-index: 12 !important;
    pointer-events: auto !important;
}
.db-youtube-wrap .db-mute-btn {
    pointer-events: auto;
}
.db-caption, .db-ad-tag {
    pointer-events: none;
}
.db-slide-link {
    cursor: pointer;
}


/* === v5.8.3 mobile + video click === */
.drbook-banner-slider {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}
.db-slider-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100%;
    height: 100%;
    transition: transform 0.45s ease;
    will-change: transform;
}
.db-slide-link {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
    overflow: hidden;
    cursor: default;
}
.db-slide-link.db-has-link { cursor: pointer; }
.db-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0f172a;
}
.db-media,
.db-slide img.db-media,
.db-slide video.db-media {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    pointer-events: none !important;
}
.db-video-wrap,
.db-youtube-wrap {
    position: absolute;
    inset: 0;
    pointer-events: none !important;
}
.db-youtube-wrap iframe {
    pointer-events: none !important;
}
.db-click-layer {
    position: absolute !important;
    inset: 0 !important;
    z-index: 8 !important;
    background: transparent;
}
.db-has-link .db-click-layer { cursor: pointer; }
.db-mute-btn {
    position: absolute !important;
    bottom: 12px;
    left: 12px;
    z-index: 12 !important;
    pointer-events: auto !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.db-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    z-index: 9;
    display: flex;
    justify-content: center;
    gap: 6px;
    pointer-events: auto;
}
.db-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.45);
    padding: 0;
    cursor: pointer;
}
.db-dot.active { background: #fff; width: 18px; border-radius: 4px; }

@media (max-width: 768px) {
    .db-mute-btn { width: 44px; height: 44px; bottom: 10px; left: 10px; }
}

/* Glass capsule title button */
.db-caption {
    position: absolute;
    right: 16px;
    left: auto;
    bottom: 18px;
    transform: none;
    z-index: 6;
    text-align: right;
    width: auto;
    max-width: 70%;
    pointer-events: none;
}
.db-glass-btn {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.25);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
@media (max-width: 600px) {
    .db-glass-btn { padding: 8px 20px; font-size: 0.85rem; }
    .db-caption { right: 12px; left: auto; bottom: 14px; }
}


/* === Layout lock v6.2.3 — prevent broken overflow / giant video === */
.drbook-banner-slider {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  margin: 0 auto 16px !important;
  background: #0f172a;
  isolation: isolate;
}
.drbook-banner-slider .db-slider-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  height: 100% !important;
  max-height: 100% !important;
}
.drbook-banner-slider .db-slide-link,
.drbook-banner-slider .db-slide {
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
  position: relative !important;
}
.drbook-banner-slider img.db-media,
.drbook-banner-slider video.db-media,
.drbook-banner-slider .db-slide-img,
.drbook-banner-slider .db-slide-video {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
  background: #0f172a;
}
.drbook-banner-slider .db-video-wrap,
.drbook-banner-slider .db-youtube-wrap,
.drbook-banner-slider .db-yt-wrap {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  pointer-events: none !important;
  background: #000;
}
.drbook-banner-slider .db-youtube-wrap iframe,
.drbook-banner-slider .db-yt-wrap iframe {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  transform: translate(-50%, -50%) scale(1.35) !important;
  border: 0 !important;
  pointer-events: none !important;
}
.drbook-banner-slider .db-nav {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 15 !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  border: none !important;
  background: rgba(0,0,0,0.45) !important;
  color: #fff !important;
  font-size: 22px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.drbook-banner-slider .db-prev { left: 8px !important; }
.drbook-banner-slider .db-next { right: 8px !important; }
.drbook-banner-slider .db-dots {
  position: absolute !important;
  bottom: 10px !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 15 !important;
  margin: 0 !important;
}
@media (max-width: 768px) {
  .drbook-banner-slider {
    margin-bottom: 12px !important;
  }
}


/* v6.3.1 — no side arrows, speaker left */
.drbook-banner-slider .db-nav,
.drbook-banner-slider .db-prev,
.drbook-banner-slider .db-next {
  display: none !important;
}
.drbook-banner-slider .db-mute-btn {
  position: absolute !important;
  left: 12px !important;
  bottom: 14px !important;
  right: auto !important;
  top: auto !important;
  z-index: 20 !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: rgba(0,0,0,0.55) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25) !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  padding: 0 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.drbook-banner-slider .db-mute-btn:active {
  transform: scale(0.94);
}
.drbook-banner-slider .db-caption {
  right: 14px !important;
  left: auto !important;
  bottom: 14px !important;
  z-index: 16 !important;
}
.drbook-banner-slider .db-glass-btn {
  pointer-events: auto !important;
  cursor: pointer !important;
}
.drbook-banner-slider .db-ad-tag {
  right: 12px !important;
  bottom: 52px !important;
}
@media (max-width: 768px) {
  .drbook-banner-slider .db-mute-btn {
    width: 44px !important;
    height: 44px !important;
    left: 10px !important;
    bottom: 12px !important;
  }
}


/* CTA click feedback */
@keyframes db-btn-pulse-kf {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.55); }
  40% { transform: scale(0.92); box-shadow: 0 0 0 8px rgba(255,255,255,0.15); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.db-glass-btn.db-btn-pulse {
  animation: db-btn-pulse-kf 0.55s ease !important;
}
.db-glass-btn {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.db-glass-btn:active {
  transform: scale(0.94);
}


/* First-login state picker */
body.db-state-modal-open { overflow: hidden; }
.db-state-modal {
  position: fixed; inset: 0; z-index: 999999;
  background: rgba(15, 23, 42, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.db-state-modal-card {
  width: 100%; max-width: 420px; max-height: 90vh;
  background: #fff; border-radius: 16px;
  padding: 22px 20px 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  display: flex; flex-direction: column; gap: 12px;
}
.db-state-modal-card h2 {
  margin: 0; font-size: 1.25rem; color: #0f172a;
}
.db-state-modal-sub {
  margin: 0; font-size: 0.9rem; color: #64748b;
}
.db-state-modal-search {
  width: 100%; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 10px 12px; font-size: 14px;
}
.db-state-modal-list {
  overflow: auto; max-height: 50vh;
  border: 1px solid #f1f5f9; border-radius: 12px;
}
.db-state-modal-item {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border: 0; border-bottom: 1px solid #f1f5f9;
  background: #fff; cursor: pointer; text-align: left; font-size: 14px;
}
.db-state-modal-item:hover { background: #f8fafc; }
.db-state-modal-item.is-selected {
  background: #e0f2fe; color: #0369a1; font-weight: 600;
}
.db-state-modal-count { color: #64748b; font-size: 12px; }
.db-state-modal-item.is-selected .db-state-modal-count { color: #0284c7; }
.db-state-modal-save {
  border: 0; border-radius: 12px; padding: 12px 16px;
  background: #0ea5e9; color: #fff; font-weight: 700; font-size: 15px;
  cursor: pointer;
}
.db-state-modal-save:disabled { opacity: 0.5; cursor: not-allowed; }
.db-state-modal-msg { margin: 0; font-size: 13px; min-height: 1.2em; }
