/* ══════════════════════════════════════════════════════════════
   ALBUMFLUX INTERACTIVE SAMPLE ALBUM MODAL (PageFlip 3D Viewer)
   High-Impact Marketing & Promo Video Ready Edition
══════════════════════════════════════════════════════════════ */

.album-modal-backdrop {
  display: none !important;
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: radial-gradient(ellipse at 50% 30%, #150d2e 0%, #080612 60%, #030208 100%);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  overflow: hidden;
}

.album-modal-backdrop.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Ambient glow in background for cinematic video lighting */
.album-modal-backdrop::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70vw;
  height: 40vh;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.18) 0%, rgba(236, 72, 153, 0.08) 50%, transparent 80%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* ══════════════════════════════════════════
   TOP BAR: High-Profile Brand Bar
══════════════════════════════════════════ */
.album-modal-header {
  width: 100%;
  max-width: 1550px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.4rem;
  background: rgba(14, 10, 28, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 100px;
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(124, 58, 237, 0.15);
  position: relative;
  z-index: 10;
  gap: 1rem;
}

.album-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.album-brand-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(124, 58, 237, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.4);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.album-brand-pill:hover {
  background: rgba(124, 58, 237, 0.35);
  transform: translateY(-1px);
}

.album-brand-logo-img {
  height: 24px;
  width: auto;
  object-fit: contain;
  display: block;
}

.album-meta-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.album-badge-pin {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.6rem;
  border-radius: 50px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.album-title-text {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.album-title-text span {
  color: #a1a1aa;
  font-weight: 500;
  font-size: 0.82rem;
}

.album-header-controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.header-feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  background: rgba(236, 72, 153, 0.14);
  border: 1px solid rgba(236, 72, 153, 0.35);
  color: #f472b6;
  white-space: nowrap;
}

.btn-autoplay {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.95rem;
  border-radius: 50px;
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.5);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-autoplay:hover {
  transform: scale(1.04);
  box-shadow: 0 0 24px rgba(236, 72, 153, 0.7);
}

.btn-autoplay.playing {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  box-shadow: none;
}

.album-ctrl-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e4e4e7;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.album-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.album-ctrl-btn.btn-close {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.album-ctrl-btn.btn-close:hover {
  background: #ef4444;
  color: #fff;
}

/* ══════════════════════════════════════════
   STAGE & FLIPBOOK CANVAS
══════════════════════════════════════════ */
.album-stage {
  flex: 1;
  width: 100%;
  max-width: 1650px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0.5rem 0;
  min-height: 0;
}

.album-loader {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  z-index: 5;
  transition: opacity 0.3s ease;
}

.album-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.album-spinner-wrap {
  position: relative;
  width: 50px;
  height: 50px;
}

.album-spinner {
  width: 100%;
  height: 100%;
  border: 3px solid rgba(124, 58, 237, 0.2);
  border-top-color: #a78bfa;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.album-spinner-inner {
  position: absolute;
  inset: 6px;
  border: 2px solid transparent;
  border-top-color: #ec4899;
  border-radius: 50%;
  animation: spin 1.2s linear infinite reverse;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.album-loader-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.album-loader-sub {
  font-size: 0.75rem;
  color: #a1a1aa;
}

.album-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(18, 12, 36, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.album-nav-arrow:hover {
  background: rgba(124, 58, 237, 0.8);
  border-color: #c4b5fd;
  transform: translateY(-50%) scale(1.08);
}

.album-nav-arrow.prev { left: 0.5rem; }
.album-nav-arrow.next { right: 0.5rem; }

.album-book-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 35px rgba(124, 58, 237, 0.3));
}

#albumBook {
  margin: 0 auto;
}

.album-page {
  background: #000;
  overflow: hidden;
  position: relative;
  user-select: none;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
}

.album-page::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;
  pointer-events: none;
  z-index: 3;
}

.album-page.--left::after {
  right: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.15) 60%, transparent 100%);
}

.album-page.--right::after {
  left: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.15) 60%, transparent 100%);
}

.album-spread-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.page-num {
  position: absolute;
  bottom: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  z-index: 4;
}

.page-num.left { left: 14px; }
.page-num.right { right: 14px; }

.album-video-watermark {
  position: absolute;
  top: 12px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(14, 10, 28, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3px 8px;
  border-radius: 50px;
  z-index: 4;
  letter-spacing: 0.02em;
}

.album-video-watermark .wm-icon {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  color: #fff;
  font-weight: 900;
}

/* ══════════════════════════════════════════
   BOTTOM TOOLBAR
══════════════════════════════════════════ */
.album-modal-footer {
  width: 100%;
  max-width: 1550px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 1.4rem;
  background: rgba(14, 10, 28, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 100px;
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 10;
  gap: 1rem;
}

.album-footer-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.album-page-indicator {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.35);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  white-space: nowrap;
}

.album-marketing-chips {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.m-chip {
  font-size: 0.75rem;
  font-weight: 600;
  color: #c4b5fd;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.m-chip span {
  color: #10b981;
  font-weight: 800;
}

.album-hint {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #a1a1aa;
}

.album-hint kbd {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 1px 5px;
  color: #fff;
  font-size: 0.7rem;
}

.album-cta-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 1rem;
  border-radius: 50px;
  background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 14px rgba(124, 58, 237, 0.5);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.album-cta-mini:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.8);
}

/* ══════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .header-feature-chip,
  .album-marketing-chips {
    display: none;
  }
}

@media (max-width: 768px) {
  .album-modal-backdrop {
    padding: 0.4rem 0.6rem;
  }
  .album-modal-header,
  .album-modal-footer {
    padding: 0.35rem 0.85rem;
    border-radius: 12px;
  }
  .album-badge-pin,
  .album-hint {
    display: none;
  }
  .album-title-text {
    font-size: 0.8rem;
  }
  .album-title-text span {
    display: none;
  }
  .album-nav-arrow {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .album-nav-arrow.prev { left: 0.2rem; }
  .album-nav-arrow.next { right: 0.2rem; }
}
