/* ==========================================================================
   EFFECTS.CSS - CUỐN ALBUM KỶ NIỆM 3D & CÁC HIỆU ỨNG LÃNG MẠN
   ========================================================================== */

/* SCENE 3: ROMANTIC PHOTO ALBUM (CUỐN ALBUM KỶ NIỆM TÌNH YÊU)
   CỐ ĐỊNH CHIỀU CAO 100% VIEWPORT - TOÀN BỘ THÀNH PHẦN TỰ CO GIÃN ĐỒNG BỘ */
#scene-video {
  width: 100%;
  max-width: 1100px;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  min-height: 0;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  padding: 12px 18px;
  box-sizing: border-box;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
}

#scene-video.active {
  display: flex;
}

.album-header {
  flex-shrink: 0;
  margin-bottom: 6px;
  text-align: center;
}

.cinema-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 107, 139, 0.2);
  border: 1px solid rgba(255, 107, 139, 0.4);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: clamp(10px, 1.2vw, 12px);
  color: #ffb4c3;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.cinema-title {
  font-family: var(--font-heading);
  font-size: clamp(18px, 2.6vw, 28px);
  color: #fff;
  font-weight: 700;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 107, 139, 0.4);
  margin: 0;
  line-height: 1.2;
}

.cinema-title i {
  color: var(--primary-pink);
  margin: 0 6px;
  animation: heartPulse 1.2s infinite;
}

/* ==========================================================================
   3D BOOK / SCRAPBOOK ALBUM CONTAINER
   ========================================================================== */
.album-stage {
  perspective: 2000px;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0; /* Cho phép co giãn tự do theo chiều cao viewport còn lại */
  max-height: 100%;
  position: relative;
  margin: 2px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.album-book-3d {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 100%;
  transform-style: preserve-3d;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Glowing Neon Halo Behind Album */
.album-book-3d::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(135deg, #ff6b8b, #f8c291, #e0316b, #9b59b6);
  border-radius: 30px;
  z-index: -1;
  filter: blur(24px);
  opacity: 0.6;
  animation: neonHalo 8s linear infinite alternate;
}

/* ==========================================================================
   MẶT BÌA ALBUM NGOÀI CÙNG (3D ALBUM COVER)
   ========================================================================== */
.album-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
  background: radial-gradient(circle at 35% 30%, #541427 0%, #2e0814 65%, #160207 100%);
  border: 4px solid #f8c291;
  border-radius: 24px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.85), inset 0 0 40px rgba(0, 0, 0, 0.6), 0 0 35px rgba(255, 107, 139, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  z-index: 25;
  cursor: pointer;
  transform-origin: left center;
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s 0.7s;
  backface-visibility: hidden;
  box-sizing: border-box;
}

/* Viền chỉ vàng cổ điển (Filigree Border) */
.cover-filigree-border {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  bottom: 14px;
  border: 1px dashed rgba(248, 194, 145, 0.6);
  border-radius: 20px;
  pointer-events: none;
}

.cover-heart-badge {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd27d 20%, #d49339 70%, #8c5311 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 210, 125, 0.5);
  margin-bottom: 12px;
  border: 3px solid #ffeaa7;
  animation: heartPulse 1.8s infinite;
  flex-shrink: 0;
}

.cover-heart-badge i {
  font-size: 32px;
  color: #fff;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4));
}

.cover-title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3.6vw, 36px);
  color: #ffeaa7;
  font-weight: 700;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.7), 0 0 25px rgba(248, 194, 145, 0.6);
  margin-bottom: 6px;
  line-height: 1.2;
}

.cover-subtitle {
  font-family: var(--font-body);
  font-size: clamp(12px, 1.8vw, 15px);
  color: #ffd2dc;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 500;
}

.cover-clasp {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

.clasp-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #ffd27d 0%, #e58e26 50%, #b33939 100%);
  color: #fff;
  padding: 10px 26px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 8px 25px rgba(229, 142, 38, 0.5), 0 0 20px rgba(255, 210, 125, 0.6);
  border: 2px solid #fff;
  transition: var(--transition-smooth);
  animation: claspPulse 2.2s ease-in-out infinite;
  cursor: pointer;
}

@keyframes claspPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 25px rgba(229, 142, 38, 0.5), 0 0 20px rgba(255, 210, 125, 0.6);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 12px 32px rgba(229, 142, 38, 0.75), 0 0 32px rgba(255, 210, 125, 0.85);
  }
}

.album-cover:hover .clasp-seal {
  transform: scale(1.08);
  box-shadow: 0 14px 35px rgba(229, 142, 38, 0.8), 0 0 35px rgba(255, 210, 125, 0.9);
}

/* Trạng thái Bìa Album Đã Mở (Opened) */
.album-book-3d.opened .album-cover {
  transform: rotateY(-180deg);
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   KHÔNG GIAN TRANG BÊN TRONG ALBUM (INSIDE PAGES)
   ========================================================================== */
.album-inside-pages {
  width: 100%;
  height: 100%;
  max-height: 100%;
  box-sizing: border-box;
  background: #250711 url('data:image/svg+xml;utf8,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="%23ffffff" fill-opacity="0.03"><circle cx="30" cy="30" r="1.5"/></g></svg>');
  border: 4px solid #f8c291;
  border-radius: 24px;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.85), 0 0 45px rgba(255, 107, 139, 0.35);
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  transform-origin: left center;
}

/* Animation lật trang 3D (Page Turn Flip) */
.album-inside-pages.flipping {
  opacity: 0.2;
  transform: rotateY(-35deg) scale(0.92) translateX(-40px);
}

.album-inside-pages.flipped-in {
  animation: pageIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageIn {
  0% { opacity: 0.2; transform: rotateY(30deg) scale(0.92) translateX(40px); }
  100% { opacity: 1; transform: rotateY(0deg) scale(1) translateX(0); }
}

/* ==========================================================================
   SCRAPBOOK PHOTO MOUNTS (KHÔNG CẮT XÉN ẢNH - TỰ ĐỘNG THU PHÓNG THEO VIEWPORT)
   ========================================================================== */
.album-spread {
  width: 100%;
  height: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 24px);
  padding: 4px;
  box-sizing: border-box;
  overflow: hidden;
}

.layout-duo-scrapbook {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.5vw, 26px);
  width: 100%;
  height: 100%;
  max-height: 100%;
  box-sizing: border-box;
}

.layout-hero-scrapbook {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-height: 100%;
  box-sizing: border-box;
}

.photo-mount {
  position: relative;
  background: #ffffff;
  padding: 6px 6px 10px 6px;
  border-radius: 16px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.75), 0 0 20px rgba(255, 107, 139, 0.25);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  max-width: 48%;
  max-height: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
}

.photo-mount:hover {
  transform: translateY(-6px) scale(1.02) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 107, 139, 0.55);
  z-index: 10;
}

.photo-img-wrap {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background: #fdfaf7;
}

/* KHÔNG CẮT XÉN & TỰ ĐỘNG THU PHÓNG THEO CHIỀU CAO VIEWPORT */
.photo-img-wrap img {
  max-height: clamp(160px, 46vh, 400px);
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  transition: transform 0.3s ease;
}

.photo-mount-caption {
  margin-top: 6px;
  font-family: var(--font-letter);
  font-size: clamp(14px, 1.8vw, 19px);
  color: #8c1936;
  font-weight: 700;
  text-align: center;
  max-width: 95%;
  flex-shrink: 0;
  line-height: 1.2;
}

.hero-mount {
  max-width: 80%;
  max-height: 100%;
}

.hero-mount .photo-img-wrap img {
  max-height: clamp(200px, 50vh, 450px);
}

/* ==========================================================================
   CÁC KIỂU THIẾT KẾ KHUNG ẢNH ĐA DẠNG (DIVERSE FRAME STYLES)
   ========================================================================== */

/* 1. FRAME POLAROID VINTAGE */
.frame-polaroid {
  background: #ffffff;
  padding: 10px 10px 38px 10px;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.scrapbook-badge {
  position: absolute;
  bottom: 8px;
  right: 12px;
  background: linear-gradient(135deg, #ff8e9e, #ff6b8b);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.5px;
}

/* 2. FRAME ROYAL GOLD GALLERY */
.frame-royal-gold {
  background: #1e060f;
  padding: 14px;
  border: 3px double #ffd27d;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(248, 194, 145, 0.4);
}

.gold-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: #ffd27d;
  border-style: solid;
  pointer-events: none;
}
.corner-tl { top: 6px; left: 6px; border-width: 3px 0 0 3px; }
.corner-tr { top: 6px; right: 6px; border-width: 3px 3px 0 0; }
.corner-bl { bottom: 6px; left: 6px; border-width: 0 0 3px 3px; }
.corner-br { bottom: 6px; right: 6px; border-width: 0 3px 3px 0; }

.gold-caption {
  color: #ffeaa7 !important;
  text-shadow: 0 2px 10px rgba(248, 194, 145, 0.6);
}

/* 3. FRAME VINTAGE CINEMA FILMSTRIP */
.frame-filmstrip {
  background: #111111;
  padding: 12px 12px 16px 12px;
  border: 2px solid #333333;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
}

.film-perforations-top,
.film-perforations-bottom {
  width: 100%;
  height: 10px;
  background-image: radial-gradient(circle, #fff 35%, transparent 40%);
  background-size: 16px 10px;
  background-repeat: repeat-x;
  opacity: 0.8;
}

.film-tag {
  font-family: monospace;
  font-size: 10px;
  color: #f8c291;
  letter-spacing: 2px;
  text-align: center;
  margin: 4px 0 6px 0;
}

.film-caption {
  color: #ffffff !important;
  font-family: var(--font-letter);
}

/* 4. FRAME POSTCARD & STAMPS */
.frame-postcard {
  background: #fffdf8;
  border: 1px solid #ebd8c8;
  padding: 12px 12px 18px 12px;
  border-radius: 14px;
}

.postmark-stamp {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 55px;
  height: 55px;
  border: 2px dashed #e17055;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #e17055;
  transform: rotate(14deg);
  font-size: 8px;
  font-weight: 700;
  z-index: 5;
  opacity: 0.85;
}

.postmark-stamp i {
  font-size: 14px;
  margin-bottom: 2px;
}

.frame-stamp {
  background: #fffdf8;
  padding: 12px 12px 18px 12px;
  border: 3px dashed #ff7675;
  border-radius: 16px;
}

.air-mail-ribbon {
  position: absolute;
  top: -8px;
  left: 20px;
  background: #d63031;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 10px;
  border-radius: 4px;
  z-index: 5;
}

/* 5. FRAME ROMANTIC DOME ARCH */
.frame-arch {
  border-radius: 70px 70px 14px 14px;
  padding: 8px 6px 10px 6px;
  border: 3px solid #fff;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75);
}

.arch-wrap {
  border-radius: 64px 64px 10px 10px !important;
}

.arch-ribbon-badge {
  position: absolute;
  top: 6px;
  background: rgba(224, 49, 107, 0.9);
  color: #fff;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 5;
}

/* 6. FRAME GLITTER ROSE GOLD */
.frame-glitter-rose {
  background: #200610;
  border: 3px solid #ffd27d;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 107, 139, 0.6);
  padding: 10px;
}

.glitter-sparkle-tag {
  position: absolute;
  top: -10px;
  background: linear-gradient(135deg, #ff6b8b, #d63031);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(214, 48, 49, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  z-index: 5;
}

/* ==========================================================================
   7. FRAME CIRCULAR LOCKET (Khung Tròn Kỷ Niệm Hoàng Gia / Cameo Locket)
   ========================================================================== */
.layout-circle-scrapbook {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-height: 100%;
  padding: 4px;
  box-sizing: border-box;
}

.circle-locket-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100%;
  max-height: 100%;
  box-sizing: border-box;
}

.frame-circle-locket {
  width: clamp(190px, 42vh, 340px);
  height: clamp(190px, 42vh, 340px);
  aspect-ratio: 1 / 1;
  border-radius: 50% !important;
  background: radial-gradient(circle at 35% 35%, #4a1224 0%, #220612 70%, #110208 100%);
  border: 5px double #ffd27d !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 210, 125, 0.45), inset 0 0 25px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  position: relative;
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
  box-sizing: border-box;
  flex-shrink: 0;
  max-height: 85%;
  max-width: 90vw;
}

.frame-circle-locket:hover {
  transform: scale(1.03) rotate(1deg) !important;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.95), 0 0 40px rgba(255, 210, 125, 0.75);
}

.circle-locket-outer-halo {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 210, 125, 0.55);
  animation: locketHaloSpin 35s linear infinite;
  pointer-events: none;
}

@keyframes locketHaloSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.circle-wrap {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
  background: #150309;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circle-wrap img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center 25% !important;
  border-radius: 50% !important;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.frame-circle-locket:hover .circle-wrap img {
  transform: scale(1.08);
}

.circle-locket-badge-top {
  position: absolute;
  top: -10px;
  background: linear-gradient(135deg, #ffd27d, #e58e26);
  color: #3b1402;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 210, 125, 0.6);
  border: 2px solid #fff;
  z-index: 10;
  white-space: nowrap;
}

.circle-locket-seal {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: linear-gradient(135deg, #ff4757, #b33939);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  border: 2px solid #ffd27d;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.6);
  z-index: 10;
  text-align: center;
}

.circle-locket-seal i {
  font-size: 13px;
  margin-bottom: 2px;
}

.circle-locket-caption {
  margin-top: 8px;
  font-family: var(--font-letter);
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 700;
  text-align: center;
  max-width: 90%;
  flex-shrink: 0;
  line-height: 1.2;
}

/* Khung tròn khi đặt trong bố cục Duo (Scrapbook Khung Tròn + Khung Chữ Nhật) */
.frame-circle-duo {
  width: clamp(160px, 34vh, 260px);
  height: clamp(160px, 34vh, 260px);
  aspect-ratio: 1 / 1;
  border-radius: 50% !important;
  background: radial-gradient(circle at 35% 35%, #4a1224 0%, #220612 70%, #110208 100%);
  border: 4px double #ffd27d !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 20px rgba(255, 210, 125, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  box-sizing: border-box;
  max-height: 95%;
}

.frame-circle-duo:hover {
  transform: translateY(-6px) scale(1.03) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 210, 125, 0.6);
}

.frame-circle-duo .circle-wrap {
  width: 100% !important;
  height: 100% !important;
}

.frame-circle-duo .circle-locket-badge-top {
  top: -8px;
  font-size: 10px;
  padding: 2px 10px;
}

/* CÁC KIỂU BĂNG DÁN WASHI TAPE */
.tape-pink-dots {
  background: radial-gradient(#ff6b8b 20%, transparent 20%) 0 0/8px 8px, #ffe4ea;
  border-color: #ff8e9e;
}

.tape-gold-glitter {
  background: linear-gradient(135deg, #ffd27d 0%, #e58e26 100%);
  border-color: #f8c291;
}

.tape-rose-lace {
  background: #ffd6df;
  border: 1px dashed #d63031;
}

.tape-kraft-vintage {
  background: #dfb180;
  border-color: #a0522d;
}

.tape-heart-pattern {
  background: #ffc4d0;
  border-color: #ff6b8b;
}

.tape-center {
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
}

.tape-gold {
  top: -10px;
  right: 20px;
  background: rgba(255, 234, 167, 0.85);
  border-color: rgba(229, 142, 38, 0.4);
  transform: rotate(-5deg);
}

.tape-top-left {
  top: -10px;
  left: 20px;
  transform: rotate(-8deg);
}

.tape-top-right {
  top: -10px;
  right: 20px;
  transform: rotate(8deg);
}

/* Chú thích ảnh */
.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 15px;
  background: linear-gradient(to top, rgba(15, 3, 8, 0.85), transparent);
  color: #fff;
  font-family: var(--font-letter);
  font-size: 20px;
  text-align: center;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   ALBUM CONTROLS BAR (ĐIỀU HƯỚNG & ĐẾM TRANG)
   ========================================================================== */
.album-controls-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 6px;
  margin-bottom: 6px;
  z-index: 10;
  flex-shrink: 0;
}

.album-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(40, 10, 20, 0.7);
  border: 1px solid rgba(255, 180, 195, 0.4);
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 107, 139, 0.3);
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.album-nav-btn:hover {
  transform: scale(1.1);
  background: var(--primary-pink);
  border-color: #fff;
  box-shadow: 0 8px 25px rgba(224, 49, 107, 0.6);
}

.album-counter {
  font-family: var(--font-heading);
  font-size: 13px;
  color: #ffd2dc;
  background: rgba(30, 8, 18, 0.6);
  padding: 5px 16px;
  border-radius: 25px;
  border: 1px solid rgba(255, 180, 195, 0.3);
  letter-spacing: 1px;
}

/* ==========================================================================
   LIGHTBOX MODAL (XEM ẢNH PHÓNG TO SẮC NÉT)
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 2, 5, 0.92);
  backdrop-filter: blur(16px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 20px;
  border: 4px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 50px rgba(255, 107, 139, 0.4);
  overflow: hidden;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.lightbox-close:hover {
  background: var(--primary-pink);
}

/* ==========================================================================
   LOVE MESSAGE MARQUEE RIBBON (DẢI LỜI YÊU THƯƠNG)
   ========================================================================== */
.love-ribbon-ticker {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  overflow: hidden;
  background: rgba(30, 8, 18, 0.6);
  border: 1px solid rgba(255, 180, 195, 0.25);
  border-radius: 30px;
  padding: 6px 16px;
  backdrop-filter: blur(10px);
  position: relative;
  flex-shrink: 0;
}

.love-ticker-track {
  display: flex;
  white-space: nowrap;
  animation: tickerScroll 26s linear infinite;
  gap: 25px;
  font-size: 12px;
  color: #ffd2dc;
  font-weight: 500;
}

.love-ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ticker-item i {
  color: var(--primary-pink);
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   FLOATING LOVE NOTE POPUPS & FAIRY SPARKLES
   ========================================================================== */
.floating-love-badge {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(255, 107, 139, 0.95), rgba(224, 49, 107, 0.95));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 107, 139, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.5);
  animation: badgeFlyUp 2.8s cubic-bezier(0.2, 0.6, 0.35, 1) forwards;
  white-space: nowrap;
}

@keyframes badgeFlyUp {
  0% { opacity: 0; transform: translateY(20px) scale(0.7) rotate(0deg); }
  15% { opacity: 1; transform: translateY(-20px) scale(1.05) rotate(-3deg); }
  30% { transform: translateY(-50px) scale(1) rotate(2deg); }
  80% { opacity: 0.95; transform: translateY(-160px) scale(0.98); }
  100% { opacity: 0; transform: translateY(-240px) scale(0.9) rotate(-4deg); }
}

.fairy-sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  border-radius: 50%;
  animation: sparkleFade 0.9s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes sparkleFade {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.1) rotate(180deg); }
}

/* ==========================================================================
   RESPONSIVE MÀN HÌNH ĐIỆN THOẠI & TABLET (CỐ ĐỊNH 100% CHIỀU CAO VIEWPORT)
   ========================================================================== */
@media (max-width: 850px) {
  #scene-video {
    padding: 8px 10px;
  }
  .album-header {
    margin-bottom: 4px;
  }
  .cinema-title {
    font-size: clamp(16px, 3.8vw, 22px);
  }
  .cinema-badge {
    padding: 2px 10px;
    font-size: 10px;
    margin-bottom: 2px;
  }
  .album-inside-pages {
    padding: 6px 8px;
  }
  .album-spread {
    gap: 8px;
  }
  .layout-duo-scrapbook {
    gap: 8px;
  }
  .photo-mount {
    max-width: 48%;
    padding: 4px 4px 6px 4px;
  }
  .photo-img-wrap img {
    max-height: clamp(120px, 40vh, 260px);
  }
  .hero-mount {
    max-width: 90%;
  }
  .hero-mount .photo-img-wrap img {
    max-height: clamp(160px, 46vh, 320px);
  }
  .frame-circle-locket {
    width: clamp(150px, 38vh, 240px);
    height: clamp(150px, 38vh, 240px);
  }
  .frame-circle-duo {
    width: clamp(120px, 30vh, 190px);
    height: clamp(120px, 30vh, 190px);
  }
  .photo-mount-caption {
    font-size: 12px;
    margin-top: 3px;
  }
  .album-controls-bar {
    gap: 10px;
    margin-top: 4px;
    margin-bottom: 4px;
  }
  .album-nav-btn {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }
  .album-counter {
    font-size: 11px;
    padding: 3px 12px;
  }
  .love-ribbon-ticker {
    padding: 4px 12px;
  }
  .love-ticker-track {
    font-size: 10px;
    gap: 16px;
  }
}
