/* ═════════════════════════════════════════════════════════════════════════════
   TIMELENSE — ADAPTIVE SOCIAL REELS PLAYER (Instagram Reels & TikTok)
   10 Thematic Content Engines, Full Countdown Dots, Responsive Mobile Fullscreen
   ═════════════════════════════════════════════════════════════════════════════ */

#timelense-reels-player {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(4, 6, 11, 0.94);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px 8px;
  box-sizing: border-box;
  color: #f1f5f9;
  font-family: 'Inter', -apple-system, sans-serif;
  user-select: none;
  animation: reelsFadeIn 0.25s ease-out;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@keyframes reelsFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* ─── Top Control Bar ──────────────────────────────────────────────────────── */
.reels-modal-topbar {
  width: 100%;
  max-width: 1560px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.reels-topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.reels-brand-pill {
  background: linear-gradient(135deg, #00e5ff, #3b82f6);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}
.reels-brand-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Theme selector chips scrollable bar: displays all 10 themes smoothly */
.reels-theme-chips {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: none;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.reels-theme-chips::-webkit-scrollbar { display: none; }

.reels-theme-chip {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.reels-theme-chip:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.reels-theme-chip.active {
  background: #fff;
  color: #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.reels-mode-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.reels-mode-chip:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
}
.reels-mode-chip.active {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: #fff;
  border-color: rgba(6, 182, 212, 0.4);
  font-weight: 800;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.45);
}
.reels-mode-chip.mode-social.active {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: #fff;
  border-color: rgba(6, 182, 212, 0.4);
  font-weight: 800;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.45);
}
.reels-mode-chip.mode-quick.active {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #000;
  border-color: transparent;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.45);
}

/* Center playback dock */
.reels-topbar-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.reels-btn-step {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.15s;
}
.reels-btn-step:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #00e5ff;
}
.reels-btn-play {
  background: #00e5ff;
  border: none;
  color: #000;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.5);
  transition: transform 0.15s;
}
.reels-btn-play:hover {
  transform: scale(1.08);
}
.reels-counter-badge {
  font-family: 'Space Grotesk', monospace;
  font-size: 11.5px;
  font-weight: 700;
  color: #94a3b8;
  padding: 0 6px;
}

/* Top bar countdown dots */
.reels-countdown-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.reels-countdown-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.15s ease, transform 0.15s ease;
}
.reels-countdown-dot.on {
  background: #00e5ff;
  box-shadow: 0 0 6px #00e5ff;
  transform: scale(1.15);
}
.reels-countdown-dot.paused.on {
  background: #94a3b8;
  box-shadow: none;
}

/* Speed adjustment stepper pill */
.reels-speed-pill {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 2px 5px;
  gap: 3px;
  user-select: none;
}
.reels-speed-sub-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  padding: 0;
  line-height: 1;
}
.reels-speed-sub-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #00e5ff;
}
.reels-speed-display {
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  font-weight: 800;
  color: #00e5ff;
  min-width: 26px;
  text-align: center;
  letter-spacing: -0.02em;
}

/* Close tool */
.reels-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.reels-btn-close {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.reels-btn-close:hover {
  background: #ef4444;
  color: #fff;
}

/* ─── Phone Stage (9:16 Canvas) ───────────────────────────────────────────── */
.reels-phone-stage {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 0;
  margin: 6px 0;
  width: 100%;
}

.reels-device-bezel {
  height: 100%;
  max-height: min(960px, calc(100vh - 54px));
  aspect-ratio: 9 / 16;
  border-radius: 36px;
  background: #000;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 0 3.5px #1c2333;
  display: flex;
  flex-direction: column;
  container-type: size;
  container-name: reel;
}

#timelense-reels-player.is-recording {
  animation: none !important;
  opacity: 1 !important;
  padding: 0 !important;
  background: #000 !important;
}

#timelense-reels-player.is-recording .reels-modal-topbar,
#timelense-reels-player.is-recording .reels-modal-bottom-dock,
#timelense-reels-player.is-recording .reels-phone-island {
  display: none !important;
}

#timelense-reels-player.is-recording .reels-phone-stage {
  margin: 0 !important;
  width: 100% !important;
  height: 100vh !important;
}

#timelense-reels-player.is-recording:not(.format-16-9) .reels-device-bezel {
  height: min(100vh, calc(100vw * 16 / 9)) !important;
  max-height: 100vh !important;
  width: min(100vw, calc(100vh * 9 / 16)) !important;
  aspect-ratio: 9 / 16 !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  margin: auto !important;
}

#timelense-reels-player.is-recording .reels-top-row {
  padding: clamp(26px, 5cqh, 40px) clamp(16px, 4cqw, 32px) 10px !important;
}

#timelense-reels-player.is-recording .reels-topic-badge {
  font-size: clamp(11px, 2.4cqw, 15px) !important;
  max-width: calc(100% - 150px) !important;
  letter-spacing: 0.08em !important;
}

#timelense-reels-player.is-recording .reels-brand-tag {
  top: clamp(24px, 4.8cqh, 36px) !important;
  right: clamp(16px, 4cqw, 32px) !important;
  font-size: clamp(11px, 2.4cqw, 14px) !important;
  padding: clamp(4px, 0.8cqh, 6px) clamp(10px, 2cqw, 15px) !important;
  gap: 6px !important;
}

#timelense-reels-player.is-recording .reels-brand-tag .dot {
  width: 6px !important;
  height: 6px !important;
}

#timelense-reels-player.is-recording .reels-story-bars {
  top: clamp(10px, 1.8cqh, 16px) !important;
  left: clamp(16px, 4cqw, 32px) !important;
  right: clamp(16px, 4cqw, 32px) !important;
  height: 3px !important;
  gap: 3px !important;
}

#timelense-reels-player.is-recording .reels-content-canvas {
  padding: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
}

#timelense-reels-player.is-recording:not(.format-16-9) .layout-fullscreen-hero,
#timelense-reels-player.is-recording:not(.format-16-9) #rp-inner-markup.layout-fullscreen-hero,
#timelense-reels-player.is-recording:not(.format-16-9) .layout-fullbleed-portrait,
#timelense-reels-player.is-recording:not(.format-16-9) .layout-portrait-hero {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

#timelense-reels-player.is-recording:not(.format-16-9) .reels-safe-container {
  position: relative !important;
  z-index: 10 !important;
  width: 100% !important;
  max-width: 900px !important;
  margin: 0 auto !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: center !important;
  text-align: center !important;
  box-sizing: border-box !important;
  padding: clamp(8px, 1.6cqh, 22px) clamp(14px, 3.2cqw, 28px) clamp(50px, 7.2cqh, 105px) !important;
}

#timelense-reels-player.is-recording:not(.format-16-9) .reels-safe-container .reels-top-meta {
  flex: 0 0 auto !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  padding-top: 4px !important;
}

#timelense-reels-player.is-recording .reels-pill-row {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
  margin-bottom: 0 !important;
}

#timelense-reels-player.is-recording .ed-archival-pill,
#timelense-reels-player.is-recording .comic-issue-badge,
#timelense-reels-player.is-recording .pop-chart-pill,
#timelense-reels-player.is-recording .corp-ticker-pill,
#timelense-reels-player.is-recording .lit-chapter-pill,
#timelense-reels-player.is-recording .sci-log-pill,
#timelense-reels-player.is-recording .geo-dossier-pill,
#timelense-reels-player.is-recording .art-gallery-pill,
#timelense-reels-player.is-recording .cul-heritage-pill,
#timelense-reels-player.is-recording .reels-anim-pill:not(.guitar-pick-badge):not(.guitar-stomp-row) {
  font-family: 'Space Grotesk', 'Outfit', sans-serif !important;
  font-size: clamp(12px, 2.5cqw, 15.5px) !important;
  padding: clamp(3.5px, 0.7cqh, 6.5px) clamp(10px, 2.2cqw, 16px) !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  white-space: nowrap !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-width: 1.5px !important;
}

#timelense-reels-player.is-recording .guitar-pick-badge {
  font-family: 'Space Grotesk', 'Outfit', sans-serif !important;
  font-size: clamp(10.5px, 2.2cqw, 13.5px) !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  padding: 2.5px clamp(6px, 1.3cqw, 9.5px) !important;
  border-radius: 4px !important;
  background: #f97316 !important;
  color: #000000 !important;
  border: 1px solid rgba(0, 0, 0, 0.3) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 0 10px rgba(249, 115, 22, 0.35) !important;
}

#timelense-reels-player.is-recording:not(.format-16-9) .reels-photo-box {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  min-height: none !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  z-index: 1 !important;
  background-size: cover !important;
  background-position: center 25% !important;
  display: block !important;
  animation: reelKenBurns 14s ease-in-out infinite alternate !important;
  image-rendering: -webkit-optimize-contrast !important;
  image-rendering: high-quality !important;
}

#timelense-reels-player.is-recording:not(.format-16-9) .reels-cinema-scrim {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.22) 18%,
    rgba(0, 0, 0, 0.22) 42%,
    rgba(0, 0, 0, 0.58) 65%,
    rgba(0, 0, 0, 0.88) 84%,
    rgba(0, 0, 0, 0.98) 100%
  ) !important;
  pointer-events: none !important;
}

#timelense-reels-player:not(.format-16-9) .reels-center-content {
  flex: 1 1 auto !important;
  margin: auto 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(6px, 1.2cqh, 12px) !important;
  width: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

#timelense-reels-player:not(.format-16-9) .reels-headline-block {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 2px !important;
  width: 100% !important;
}

#timelense-reels-player:not(.format-16-9) .reels-year,
#timelense-reels-player:not(.format-16-9) .guitar-year,
#timelense-reels-player:not(.format-16-9) .ed-year,
#timelense-reels-player:not(.format-16-9) .comic-year-pow,
#timelense-reels-player:not(.format-16-9) .pop-year,
#timelense-reels-player:not(.format-16-9) .corp-year,
#timelense-reels-player:not(.format-16-9) .lit-year,
#timelense-reels-player:not(.format-16-9) .sci-year,
#timelense-reels-player:not(.format-16-9) .geo-year,
#timelense-reels-player:not(.format-16-9) .art-year,
#timelense-reels-player:not(.format-16-9) .cul-year {
  font-family: 'Outfit', 'Space Grotesk', -apple-system, sans-serif !important;
  font-size: clamp(36px, 8.0cqw, 58px) !important;
  line-height: 1.0 !important;
  font-weight: 900 !important;
  margin: 1px 0 !important;
  color: #ffffff !important;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.95), 0 0 40px rgba(0, 229, 255, 0.6) !important;
  letter-spacing: -0.02em !important;
}

#timelense-reels-player:not(.format-16-9) .reels-title,
#timelense-reels-player:not(.format-16-9) .guitar-title,
#timelense-reels-player:not(.format-16-9) .ed-title,
#timelense-reels-player:not(.format-16-9) .comic-title,
#timelense-reels-player:not(.format-16-9) .pop-title,
#timelense-reels-player:not(.format-16-9) .corp-title,
#timelense-reels-player:not(.format-16-9) .lit-title,
#timelense-reels-player:not(.format-16-9) .sci-title,
#timelense-reels-player:not(.format-16-9) .geo-title,
#timelense-reels-player:not(.format-16-9) .art-title,
#timelense-reels-player:not(.format-16-9) .cul-title {
  font-family: 'Outfit', 'Space Grotesk', -apple-system, sans-serif !important;
  font-size: clamp(18px, 4.0cqw, 28px) !important;
  line-height: 1.18 !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  text-align: center !important;
  margin: 2px 0 6px !important;
  max-width: 92% !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95), 0 4px 30px rgba(0, 0, 0, 0.9) !important;
  letter-spacing: -0.01em !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  white-space: normal !important;
  text-wrap: balance !important;
}

#timelense-reels-player:not(.format-16-9) .reels-desc-card,
#timelense-reels-player:not(.format-16-9) .guitar-metal-chassis,
#timelense-reels-player:not(.format-16-9) .comic-panel-box,
#timelense-reels-player:not(.format-16-9) .pop-card,
#timelense-reels-player:not(.format-16-9) .ed-vellum-card {
  width: 100% !important;
  max-width: 860px !important;
  background: rgba(10, 15, 26, 0.78) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.24) !important;
  border-radius: clamp(12px, 2.2cqh, 18px) !important;
  padding: clamp(10px, 2.0cqh, 18px) clamp(12px, 2.6cqw, 20px) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9) !important;
  min-height: 0 !important;
  max-height: clamp(130px, 32cqh, 280px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

#timelense-reels-player:not(.format-16-9) .reels-desc-card::-webkit-scrollbar,
#timelense-reels-player:not(.format-16-9) .guitar-metal-chassis::-webkit-scrollbar,
#timelense-reels-player:not(.format-16-9) .comic-panel-box::-webkit-scrollbar,
#timelense-reels-player:not(.format-16-9) .pop-card::-webkit-scrollbar,
#timelense-reels-player:not(.format-16-9) .ed-vellum-card::-webkit-scrollbar {
  display: none !important;
}

#timelense-reels-player:not(.format-16-9) .reels-desc-card p,
#timelense-reels-player:not(.format-16-9) .guitar-desc,
#timelense-reels-player:not(.format-16-9) .comic-desc,
#timelense-reels-player:not(.format-16-9) .pop-desc,
#timelense-reels-player:not(.format-16-9) .reels-key-message-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: clamp(13px, 2.8cqw, 18px) !important;
  line-height: 1.42 !important;
  font-weight: 550 !important;
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85) !important;
  text-align: center !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: geometricPrecision !important;
  transform: translateZ(0);
}

#timelense-reels-player .reels-short-tags {
  display: flex !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: clamp(4px, 1cqw, 8px) !important;
  margin-top: clamp(5px, 0.9cqh, 9px) !important;
  padding-top: clamp(5px, 0.9cqh, 9px) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
}

#timelense-reels-player .reels-short-tag {
  font-size: clamp(10.5px, 2.2cqw, 14px) !important;
  padding: 2.5px clamp(6px, 1.4cqw, 10px) !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  background: rgba(0, 229, 255, 0.15) !important;
  border: 1.5px solid rgba(0, 229, 255, 0.35) !important;
  color: #00e5ff !important;
}

#timelense-reels-player .reels-url-watermark {
  flex-shrink: 0 !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: clamp(12px, 2.6cqw, 16px) !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.88) !important;
  letter-spacing: 0.04em !important;
  padding: clamp(3.5px, 0.7cqh, 6px) clamp(11px, 2.4cqw, 17px) !important;
  border-radius: 999px !important;
  background: rgba(0, 0, 0, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  margin: clamp(4px, 0.7cqh, 8px) auto clamp(6px, 1.1cqh, 12px) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6) !important;
}

#timelense-reels-player.is-recording:not(.format-16-9) .layout-hero-year,
#timelense-reels-player.is-recording:not(.format-16-9) .layout-hero-motif {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 100% !important;
}

#timelense-reels-player.is-recording:not(.format-16-9) .layout-hero-year .reels-hero-center,
#timelense-reels-player.is-recording:not(.format-16-9) .layout-hero-motif .reels-hero-center {
  margin: auto 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 12px !important;
}

#timelense-reels-player.is-recording:not(.format-16-9) .guitar-center-rack {
  transform: scale(1.6) !important;
  margin: 24px 0 !important;
}

#timelense-reels-player.is-recording:not(.format-16-9) .pop-center-stage {
  transform: scale(1.5) !important;
  margin: 24px 0 !important;
}

#timelense-reels-player.is-recording:not(.format-16-9) .ed-center-motif {
  transform: scale(1.5) !important;
  margin: 24px 0 !important;
}

#timelense-reels-player.is-recording:not(.format-16-9) .layout-hero-year .reels-year-hero,
#timelense-reels-player.is-recording:not(.format-16-9) .layout-hero-motif .reels-year-hero {
  font-size: 80px !important;
}

#timelense-reels-player.is-recording:not(.format-16-9) .layout-hero-year .reels-bottom-meta,
#timelense-reels-player.is-recording:not(.format-16-9) .layout-hero-motif .reels-bottom-meta {
  margin-top: auto !important;
  width: 100% !important;
  flex: 0 0 auto !important;
}

#timelense-reels-player.is-recording:not(.format-16-9) .reels-cover-canvas {
  padding-top: clamp(8px, 1.8cqh, 18px) !important;
  padding-left: clamp(14px, 3.5cqw, 28px) !important;
  padding-right: clamp(14px, 3.5cqw, 28px) !important;
  padding-bottom: clamp(45px, 6.5cqh, 95px) !important;
}

#timelense-reels-player.is-recording:not(.format-16-9) .reels-cover-top-tag {
  font-size: clamp(12.5px, 2.6cqw, 16px) !important;
  padding: clamp(3.5px, 0.7cqh, 7px) clamp(10px, 2.2cqw, 16px) !important;
  margin-bottom: clamp(6px, 1.2cqh, 16px) !important;
}

#timelense-reels-player:not(.format-16-9) .reels-cover-center-zone {
  padding: clamp(16px, 2.5cqh, 30px) clamp(16px, 3.0cqw, 26px) !important;
  border-radius: clamp(16px, 2.5cqh, 26px) !important;
  max-width: clamp(280px, 78cqw, 480px) !important;
  margin: auto 0 !important;
}

#timelense-reels-player:not(.format-16-9) .reels-cover-kicker {
  font-size: clamp(10px, 2.0cqw, 13.5px) !important;
  margin-bottom: clamp(6px, 1.0cqh, 10px) !important;
  letter-spacing: 0.12em !important;
}

#timelense-reels-player:not(.format-16-9) .reels-cover-title {
  font-size: clamp(26px, 6.2cqw, 42px) !important;
  line-height: 1.15 !important;
  margin-bottom: clamp(10px, 1.6cqh, 18px) !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  white-space: normal !important;
  text-wrap: balance !important;
}

#timelense-reels-player:not(.format-16-9) .reels-cover-pills {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: clamp(6px, 1.0cqh, 10px) !important;
  margin-top: clamp(6px, 1.0cqh, 10px) !important;
  margin-bottom: clamp(6px, 1.0cqh, 10px) !important;
  width: 100% !important;
}

#timelense-reels-player:not(.format-16-9) .cover-stat-pill {
  font-family: 'Space Grotesk', 'Outfit', sans-serif !important;
  font-size: clamp(11.5px, 2.3cqw, 15px) !important;
  padding: clamp(4.5px, 0.8cqh, 7.5px) clamp(12px, 2.4cqw, 18px) !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6) !important;
}

#timelense-reels-player:not(.format-16-9) .reels-cover-brand-badge {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: clamp(10.5px, 2.1cqw, 13.5px) !important;
  padding: clamp(3.5px, 0.7cqh, 6.5px) clamp(10px, 2.0cqw, 15px) !important;
  margin-top: clamp(8px, 1.4cqh, 14px) !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
}

#timelense-reels-player:not(.format-16-9) .reels-cover-footer-prompt {
  font-size: clamp(11.5px, 2.4cqw, 15.5px) !important;
  bottom: clamp(22px, 3.4cqh, 45px) !important;
}

.reels-phone-island {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 18px;
  background: #000;
  border-radius: 10px;
  z-index: 500;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── MANDATORY BRAND BADGE: Timeline.sg ALWAYS Prominent on Top Right ───── */
.reels-brand-tag {
  position: absolute;
  top: clamp(24px, 5cqh, 38px);
  right: clamp(16px, 4.5cqw, 24px);
  z-index: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(10, 14, 22, 0.82);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  padding: 3.5px 9px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  pointer-events: none;
  flex-shrink: 0;
}
.reels-brand-tag .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 8px #00e5ff;
}

/* Top Reel Countdown Dots right beside progress */
.reels-inreel-countdown {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 600;
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.reels-inreel-dot {
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: all 0.15s ease;
}
.reels-inreel-dot.on {
  background: #00e5ff;
  box-shadow: 0 0 5px #00e5ff;
  transform: scale(1.1);
}

/* ── Top Header Constraint: Long titles NEVER overlap Timeline.sg ────────── */
.reels-top-row {
  position: relative;
  z-index: 100;
  width: 100%;
  padding: clamp(24px, 5.2cqh, 38px) clamp(18px, 5cqw, 24px) 2px;
  box-sizing: border-box;
}
.reels-topic-badge {
  display: block;
  max-width: calc(100% - 130px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.35;
  font-size: clamp(9px, 2.2cqw, 10.5px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

/* ── Story Progress Segment Bar across top ───────────────────────────────── */
.reels-story-bars {
  position: absolute;
  top: 5px;
  left: clamp(16px, 4.5cqw, 24px);
  right: clamp(16px, 4.5cqw, 24px);
  display: flex;
  gap: 2.5px;
  z-index: 700;
}
.reels-story-bar {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.reels-story-bar-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: #fff;
  transition: width 0.1s linear;
}
.reels-story-bar.completed .reels-story-bar-fill { width: 100%; }

/* ── Canvas Interiors: Safe Responsive Vertical Layout ───────────────────── */
/* ── Canvas Interiors: Safe Responsive Vertical Layout ───────────────────── */
.reels-content-canvas {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: clamp(10px, 2cqh, 16px);
  padding-left: clamp(18px, 5cqw, 24px);
  padding-right: clamp(28px, 12cqw, 54px);
  padding-bottom: max(calc(env(safe-area-inset-bottom, 16px) + 24px), 18cqh, 18vh);
  overflow: hidden;
  box-sizing: border-box;
}

/* In full-screen hero / fullbleed mode, canvas must be edge-to-edge (zero padding) so hero photo fills the bezel */
.reels-content-canvas:has(.layout-fullscreen-hero),
.reels-content-canvas:has(.layout-fullbleed-portrait),
.reels-content-canvas.reels-has-photo {
  padding: 0 !important;
}

/* ── Dynamic Ambient Backdrop ────────────────────────────────────────────── */
.reels-ambient-backdrop {
  position: absolute;
  inset: -25px;
  pointer-events: none;
  z-index: 1;
  background-size: cover;
  background-position: center 25%;
  transition: opacity 0.5s ease, filter 0.5s ease;
  overflow: hidden;
}

.reels-ambient-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.88) 100%);
  pointer-events: none;
}

.ambient-non-photo {
  opacity: 1 !important;
  filter: none !important;
}

.theme-guitar .ambient-non-photo {
  background: radial-gradient(circle at 50% 30%, rgba(249, 115, 22, 0.24) 0%, rgba(234, 88, 12, 0.08) 50%, transparent 80%),
              radial-gradient(circle at 50% 80%, rgba(0, 229, 255, 0.1) 0%, transparent 60%);
}

.theme-pop .ambient-non-photo {
  background: radial-gradient(circle at 50% 25%, rgba(236, 72, 153, 0.28) 0%, rgba(168, 85, 247, 0.12) 50%, transparent 80%),
              radial-gradient(circle at 50% 85%, rgba(0, 229, 255, 0.14) 0%, transparent 60%);
}

.theme-editorial .ambient-non-photo {
  background: radial-gradient(circle at 50% 30%, rgba(245, 158, 11, 0.22) 0%, rgba(217, 119, 6, 0.08) 55%, transparent 80%);
}

.theme-comic .ambient-non-photo {
  background: radial-gradient(circle at 50% 30%, rgba(253, 224, 71, 0.2) 0%, rgba(239, 68, 68, 0.14) 55%, transparent 80%);
}

.theme-science .ambient-non-photo {
  background: radial-gradient(circle at 50% 30%, rgba(6, 182, 212, 0.24) 0%, rgba(59, 130, 246, 0.12) 55%, transparent 80%);
}

.theme-corporate .ambient-non-photo {
  background: radial-gradient(circle at 50% 30%, rgba(56, 189, 248, 0.22) 0%, rgba(37, 99, 235, 0.08) 55%, transparent 80%);
}

.theme-literature .ambient-non-photo {
  background: radial-gradient(circle at 50% 30%, rgba(217, 119, 6, 0.24) 0%, rgba(180, 83, 9, 0.08) 55%, transparent 80%);
}

.theme-geopolitics .ambient-non-photo {
  background: radial-gradient(circle at 50% 30%, rgba(239, 68, 68, 0.24) 0%, rgba(185, 28, 28, 0.08) 55%, transparent 80%);
}

.theme-art .ambient-non-photo {
  background: radial-gradient(circle at 50% 30%, rgba(245, 158, 11, 0.24) 0%, rgba(217, 119, 6, 0.1) 55%, transparent 80%);
}

.theme-culture .ambient-non-photo {
  background: radial-gradient(circle at 50% 30%, rgba(168, 85, 247, 0.26) 0%, rgba(126, 34, 206, 0.1) 55%, transparent 80%);
}

/* ── Content Stage & Dynamic Layout Containers ───────────────────────────── */
#rp-inner-markup {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  height: 100%;
  min-height: 0;
  position: relative;
  z-index: 10;
  width: 100%;
  box-sizing: border-box;
}

.reels-top-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 1;
  min-height: 0;
}

.reels-bottom-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 1;
  min-height: 0;
  margin-top: auto;
}

.reels-hero-center {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  width: 100%;
  margin: auto 0;
  box-sizing: border-box;
}

.reels-headline-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 2px;
}

.reels-headline-banner {
  background: rgba(8, 12, 18, 0.92);
  border-left: 4.5px solid #00e5ff;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  box-sizing: border-box;
}

.theme-editorial .reels-headline-banner { border-left-color: #f59e0b; }
.theme-comic .reels-headline-banner { border-left-color: #fde047; background: #000; border: 2px solid #fde047; }
.theme-pop .reels-headline-banner { border-left-color: #ec4899; }
.theme-guitar .reels-headline-banner { border-left-color: #f97316; }
.theme-science .reels-headline-banner { border-left-color: #06b6d4; }
.theme-corporate .reels-headline-banner { border-left-color: #38bdf8; }
.theme-literature .reels-headline-banner { border-left-color: #fbbf24; }
.theme-geopolitics .reels-headline-banner { border-left-color: #ef4444; }
.theme-art .reels-headline-banner { border-left-color: #f59e0b; }
.theme-culture .reels-headline-banner { border-left-color: #c084fc; }

.reels-pill-row {
  display: flex;
  align-items: center;
  margin-bottom: 2px;
  width: 100%;
}

#rp-inner-markup.layout-portrait-hero,
.layout-portrait-hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-start !important;
  gap: clamp(8px, 1.4cqh, 14px) !important;
  height: 100%;
  width: 100%;
}

#rp-inner-markup.layout-portrait-hero .reels-top-meta,
.layout-portrait-hero .reels-top-meta {
  flex: 0 0 auto;
  width: 100%;
}

#rp-inner-markup.layout-portrait-hero .reels-bottom-meta,
.layout-portrait-hero .reels-bottom-meta {
  margin-top: 0 !important;
  gap: clamp(8px, 1.4cqh, 12px);
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  width: 100%;
}

#rp-inner-markup.layout-portrait-hero .reels-headline-block,
.layout-portrait-hero .reels-headline-block {
  flex: 0 0 auto;
}

#rp-inner-markup.layout-portrait-hero .reels-desc-card,
.layout-portrait-hero .reels-desc-card {
  flex: 1 1 auto;
  min-height: min(150px, 18cqh);
  max-height: min(350px, 40cqh, 40vh);
}

/* ── Full-Screen Hero Layout (Cinematic 9:16 Edge-to-Edge) ──────────────── */
.layout-fullscreen-hero,
#rp-inner-markup.layout-fullscreen-hero,
.layout-fullbleed-portrait,
#rp-inner-markup.layout-fullbleed-portrait {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.layout-fullscreen-hero .reels-photo-box,
.layout-fullbleed-portrait .reels-photo-box {
  position: absolute !important;
  inset: -20px !important;
  width: calc(100% + 40px) !important;
  height: calc(100% + 40px) !important;
  max-height: none !important;
  min-height: none !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  z-index: 1;
  background-size: cover;
  background-position: center 25%;
  background-color: #ffffff !important;
  display: block !important;
  animation: reelKenBurns 14s ease-in-out infinite alternate !important;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}

.reels-cinema-scrim {
  content: '';
  position: absolute;
  inset: -20px;
  z-index: 2;
  background: linear-gradient(
    180deg, 
    rgba(0, 0, 0, 0.72) 0%, 
    rgba(0, 0, 0, 0.22) 20%, 
    rgba(0, 0, 0, 0.25) 45%, 
    rgba(0, 0, 0, 0.65) 70%, 
    rgba(0, 0, 0, 0.96) 100%
  );
  pointer-events: none;
}

.reels-safe-container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
  max-width: clamp(340px, 86cqw, 920px);
  margin: 0 auto;
  box-sizing: border-box;
  text-align: center;
  padding: 12px 18px clamp(18px, 3.5cqh, 30px);
}

.reels-safe-container .reels-top-meta {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  justify-content: center;
}

.reels-safe-container .reels-center-content {
  flex: 1 1 auto;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.5cqh, 14px);
  width: 100%;
  max-width: 100%;
  min-height: 0;
  overflow: hidden;
}

.reels-safe-container .reels-headline-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(4px, 0.8cqh, 8px);
  width: 100%;
}

.reels-safe-container .reels-bottom-meta {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  justify-content: center;
}

.reels-url-watermark {
  flex-shrink: 0;
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: clamp(10px, 2cqw, 13px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.04em;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.layout-fullscreen-hero .reels-desc-card,
.layout-fullbleed-portrait .reels-desc-card,
#rp-inner-markup.layout-fullscreen-hero .reels-desc-card {
  flex: 0 1 auto !important;
  min-height: 0 !important;
  max-height: min(270px, 34cqh, 34vh) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: thin !important;
  box-sizing: border-box !important;
}

.layout-fullscreen-hero .reels-desc-card.is-short-reel,
.layout-fullbleed-portrait .reels-desc-card.is-short-reel {
  max-height: min(240px, 30cqh, 30vh) !important;
}

.layout-fullscreen-hero .reels-key-message-box,
#timelense-reels-player.is-recording .reels-key-message-box {
  height: auto !important;
  min-height: 0 !important;
}

.layout-fullscreen-hero .reels-short-tags {
  margin-top: 14px !important;
}

#rp-inner-markup.layout-hero-year,
#rp-inner-markup.layout-hero-motif,
.layout-hero-year,
.layout-hero-motif {
  display: flex;
  flex-direction: column;
  justify-content: flex-start !important;
  gap: clamp(10px, 1.8cqh, 18px) !important;
  height: 100%;
  width: 100%;
}

#rp-inner-markup.layout-hero-year .reels-top-meta,
#rp-inner-markup.layout-hero-motif .reels-top-meta {
  flex: 0 0 auto;
  width: 100%;
}

#rp-inner-markup.layout-hero-year .reels-hero-center,
#rp-inner-markup.layout-hero-motif .reels-hero-center {
  margin: clamp(10px, 2cqh, 22px) 0 clamp(8px, 1.5cqh, 16px) !important;
  flex: 0 0 auto;
}

#rp-inner-markup.layout-hero-year .reels-bottom-meta,
#rp-inner-markup.layout-hero-motif .reels-bottom-meta {
  margin-top: 0 !important;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  width: 100%;
}

#rp-inner-markup.layout-hero-year .reels-desc-card,
#rp-inner-markup.layout-hero-motif .reels-desc-card {
  flex: 1 1 auto;
  min-height: min(180px, 22cqh);
  max-height: min(440px, 48cqh, 48vh) !important;
  font-size: clamp(17.5px, 2.3cqh, 21px);
  line-height: 1.58;
}

@keyframes reelKenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

/* ── GPU-Accelerated Dynamic Staggered Animations ───────────────────────── */
@keyframes reelSlideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes reelYearPop {
  0% { opacity: 0; transform: scale(0.82) translateY(12px); }
  70% { opacity: 1; transform: scale(1.05) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes reelTitleSlide {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes reelPhotoZoom {
  from { opacity: 0; transform: scale(1.06); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes reelMotifPulse {
  0% { opacity: 0; transform: scale(0.85); }
  65% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes reelCardSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.reels-step-enter .reels-anim-pill {
  animation: reelSlideDown 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.reels-step-enter .reels-anim-year {
  animation: reelYearPop 0.44s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s both;
}

.reels-step-enter .reels-anim-title {
  animation: reelTitleSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.reels-step-enter .reels-anim-photo {
  animation: reelPhotoZoom 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.reels-step-enter .reels-anim-motif {
  animation: reelMotifPulse 0.44s cubic-bezier(0.34, 1.56, 0.64, 1) 0.12s both;
}

.reels-step-enter .reels-anim-card,
.reels-step-enter .reels-url-watermark {
  animation: reelCardSlideUp 0.46s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

/* In recording mode, disable all staggered entrance animations and delays so every element appears immediately on frame 0 */
#timelense-reels-player.is-recording .reels-anim-pill,
#timelense-reels-player.is-recording .reels-anim-year,
#timelense-reels-player.is-recording .reels-anim-title,
#timelense-reels-player.is-recording .reels-anim-photo,
#timelense-reels-player.is-recording .reels-anim-motif,
#timelense-reels-player.is-recording .reels-anim-card,
#timelense-reels-player.is-recording .reels-url-watermark {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* ── Universal Scaled Typography (Razor Sharp & High Contrast) ───────────── */
.reels-year {
  font-size: clamp(34px, 5.2cqh, 44px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 1px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

.reels-year-hero {
  font-size: 76px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 4px 0;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.85);
}

.reels-title {
  font-size: clamp(20px, 3cqh, 25px);
  font-weight: 800;
  line-height: 1.22;
  margin: 2px 0 4px;
  letter-spacing: -0.01em;
  word-break: break-word;
  overflow-wrap: break-word;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.reels-content-canvas:not(.reels-has-photo) .reels-title {
  font-size: clamp(24px, 3.6cqh, 30px);
  line-height: 1.25;
}

/* ── Universal Scaled Description Card: Razor Sharp & Readable ──────────── */
.reels-desc-card {
  background: rgba(10, 14, 22, 0.96);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  padding: clamp(12px, 1.8cqh, 16px) clamp(14px, 3.5cqw, 18px);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(15.5px, 2.1cqh, 18.5px);
  font-weight: 600;
  line-height: 1.52;
  color: #ffffff;
  min-height: min(140px, 16cqh);
  max-height: min(350px, 40cqh, 40vh);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.88);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  box-sizing: border-box;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.reels-content-canvas:not(.reels-has-photo) .reels-desc-card {
  font-size: clamp(16.5px, 2.2cqh, 19.5px);
  line-height: 1.55;
  min-height: min(160px, 20cqh);
  max-height: min(440px, 48cqh, 48vh);
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(10, 14, 22, 0.98);
  border: 1.5px solid rgba(255, 255, 255, 0.32);
}

.reels-desc-card::-webkit-scrollbar {
  width: 3.5px;
}
.reels-desc-card::-webkit-scrollbar-track {
  background: transparent;
}
.reels-desc-card::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}
.reels-desc-card p { margin: 0; }
.reels-desc-card strong { color: #fff; font-weight: 700; }

/* Short Reel Key Message Layout */
.reels-desc-card.is-short-reel {
  overflow: hidden !important;
  max-height: none;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.9);
  padding: clamp(10px, 1.4cqh, 14px) clamp(12px, 3cqw, 16px);
}

.reels-key-message-box {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  min-height: 100%;
  gap: clamp(6px, 1cqh, 8px);
}

.reels-key-message-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(14px, 1.8cqh, 16.5px);
  font-weight: 600;
  line-height: 1.45;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.reels-content-canvas:not(.reels-has-photo) .reels-key-message-text {
  font-size: clamp(16px, 2.2cqh, 19.5px);
  line-height: 1.52;
}

.reels-short-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: auto;
}

.reels-short-tag {
  display: inline-flex;
  align-items: center;
  font-size: clamp(10.5px, 1.3cqh, 12px);
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.reels-source-badge {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  margin-top: 10px;
  padding-top: 8px;
  padding-bottom: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12.5px;
  line-height: 1.4;
  color: #94a3b8;
  width: 100%;
  box-sizing: border-box;
}

.reels-source-header {
  display: flex;
  align-items: baseline;
  gap: 5px;
  width: 100%;
}

.reels-source-icon {
  font-size: 13.5px;
  flex-shrink: 0;
  line-height: 1.2;
  opacity: 0.9;
}

.reels-source-label {
  font-weight: 700;
  color: #f1f5f9;
  word-break: break-word;
}

.reels-source-link {
  display: block;
  width: 100%;
  padding-left: 18px;
  box-sizing: border-box;
  color: #38bdf8;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
  overflow-wrap: anywhere;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.reels-source-link:hover {
  color: #7dd3fc;
  opacity: 0.9;
}

.reels-inline-link {
  color: #38bdf8;
  text-decoration: underline;
  word-break: break-all;
}

.reels-hashtag {
  color: #00e5ff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Theme-specific source link & badge accents */
.theme-editorial .reels-source-link,
.theme-art .reels-source-link {
  color: #f59e0b;
}
.theme-editorial .reels-source-badge,
.theme-art .reels-source-badge {
  border-top-color: rgba(245, 158, 11, 0.25);
}

.theme-comic .reels-source-link {
  color: #fde047;
  font-weight: 600;
}
.theme-comic .reels-source-badge {
  border-top-color: rgba(253, 224, 71, 0.35);
}

.theme-pop .reels-source-link {
  color: #ec4899;
}
.theme-pop .reels-source-badge {
  border-top-color: rgba(236, 72, 153, 0.25);
}

.theme-literature .reels-source-link {
  color: #f59e0b;
}
.theme-literature .reels-source-badge {
  border-top-color: rgba(217, 119, 6, 0.25);
}

.theme-science .reels-source-link {
  color: #06b6d4;
}
.theme-science .reels-source-badge {
  border-top-color: rgba(6, 182, 212, 0.25);
}

.theme-culture .reels-source-link {
  color: #c084fc;
}
.theme-culture .reels-source-badge {
  border-top-color: rgba(168, 85, 247, 0.25);
}

/* ── Photo Slot (Portrait & Full-Bleed Media) ────────────────────────────── */
.reels-photo-box {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: min(340px, 36cqh, 36vh);
  min-height: 180px;
  border-radius: 18px;
  overflow: hidden;
  margin: 2px 0 6px;
  position: relative;
  background-size: cover;
  background-position: center 25%;
  background-color: #ffffff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  display: none;
  flex-shrink: 0;
}
.reels-has-photo .reels-photo-box { display: block; }

.reels-has-photo .ed-stamp-box,
.reels-has-photo .ed-emblem-seal,
.reels-has-photo .comic-sfx-burst,
.reels-has-photo .pop-center-stage,
.reels-has-photo .pop-vinyl,
.reels-has-photo .guitar-center-rack,
.reels-has-photo .sci-center-motif,
.reels-has-photo .sci-hud-atom,
.reels-has-photo .lit-center-motif,
.reels-has-photo .corp-center-motif,
.reels-has-photo .geo-center-motif,
.reels-has-photo .art-center-motif,
.reels-has-photo .cul-center-motif,
.reels-has-photo .art-easel-motif { display: none !important; }

/* ═════════════════════════════════════════════════════════════════════════════
   10 THEMATIC CONTENT ENGINES (Scaled & Dynamic)
   ═════════════════════════════════════════════════════════════════════════════ */

/* 1. EDITORIAL HISTORY (Dynasties / Ancient Empires) */
.theme-editorial {
  background: radial-gradient(circle at 50% 20%, #1c150c 0%, #0a0c12 70%);
  font-family: 'Cinzel', serif;
}
.theme-editorial .reels-topic-badge { color: #f59e0b; }
.theme-editorial .ed-bg-watermark {
  position: absolute; right: -6px; top: 12%; font-family: 'Cinzel', serif;
  font-size: 115px; font-weight: 900; color: rgba(245, 158, 11, 0.05);
  pointer-events: none; line-height: 1; letter-spacing: -0.04em; user-select: none;
}
.theme-editorial .ed-archival-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(245, 158, 11, 0.14); border: 1.5px solid rgba(245, 158, 11, 0.45);
  color: #f59e0b; font-family: 'Space Grotesk', sans-serif; font-size: 10px;
  font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3.5px 9px; border-radius: 6px; margin: 2px 0 4px; max-width: calc(100% - 110px);
}
.theme-editorial .ed-archival-pill .pill-dot { width: 5px; height: 5px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 7px #f59e0b; }
.theme-editorial .ed-gold-divider { width: 44px; height: 2.5px; background: linear-gradient(90deg, #f59e0b, transparent); margin: 4px 0 6px; }
.theme-editorial .ed-center-motif {
  display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 6px auto;
}
.theme-editorial .ed-stamp-box {
  width: 60px; height: 60px; border: 2.5px solid #e11d48; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Noto Serif SC', serif; font-size: 32px; font-weight: 900;
  color: #e11d48; background: rgba(225, 29, 72, 0.1); box-shadow: 0 0 20px rgba(225, 29, 72, 0.35); margin: 4px 0;
}
.theme-editorial .ed-emblem-seal {
  width: 58px; height: 58px; border: 2px solid rgba(245, 158, 11, 0.5); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 30px;
  background: rgba(245, 158, 11, 0.12); box-shadow: 0 0 18px rgba(245, 158, 11, 0.25); margin: 4px 0;
}
.theme-editorial .ed-year { font-family: 'Cinzel', serif; color: #fff; text-shadow: 0 2px 14px rgba(245, 158, 11, 0.45); }
.theme-editorial .reels-year-hero { font-family: 'Cinzel', serif; color: #fef08a; text-shadow: 0 0 24px rgba(245, 158, 11, 0.7); }
.theme-editorial .ed-title { font-family: 'Cinzel', serif; color: #fff; line-height: 1.25; }
.theme-editorial .reels-desc-card { border-color: rgba(245, 158, 11, 0.35); }
.theme-editorial .reels-photo-box { border: 2px solid #f59e0b; }

/* 2. COMIC BOOK & MANGA (Superheroes / Fiction) */
.theme-comic {
  background: radial-gradient(circle at 50% 30%, #201335 0%, #0d091a 80%);
  font-family: 'Bangers', cursive;
}
.theme-comic .comic-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(253, 224, 71, 0.18) 1.5px, transparent 1.5px);
  background-size: 16px 16px; pointer-events: none;
}
.theme-comic .comic-issue-badge {
  display: inline-block; background: #fde047; color: #000; font-size: 11px;
  font-weight: 900; letter-spacing: 0.05em; padding: 3px 10px; border-radius: 4px;
  transform: rotate(-2deg); border: 2px solid #000; box-shadow: 2.5px 2.5px 0 #ef4444;
  margin-bottom: 4px; max-width: calc(100% - 110px);
}
.theme-comic .comic-year-pow {
  display: inline-flex; align-items: center; gap: 4px; background: #ef4444; color: #fff;
  letter-spacing: 0.04em; padding: 4px 12px; border: 2px solid #000;
  box-shadow: 3.5px 3.5px 0 #fde047; transform: rotate(1.5deg); margin: 3px 0 6px; max-width: calc(100% - 110px);
}
.theme-comic .reels-year-hero.comic-year-pow {
  font-size: 50px; padding: 6px 16px; box-shadow: 5px 5px 0 #fde047;
}
.theme-comic .comic-sfx-burst {
  background: #ef4444; color: #fde047; font-family: 'Bangers', cursive; font-size: 38px;
  letter-spacing: 0.08em; padding: 5px 18px; border: 3px solid #000; transform: rotate(-5deg);
  box-shadow: 5px 5px 0 #000; text-shadow: 2px 2px 0 #000; margin: 8px auto; display: table;
}
.theme-comic .comic-title { font-size: 28px; letter-spacing: 0.03em; color: #fff; line-height: 1.15; text-shadow: 2px 2px 0 #000; margin: 3px 0 5px; }
.reels-content-canvas:not(.reels-has-photo).theme-comic .comic-title { font-size: 32px; }
.theme-comic .reels-desc-card { border: 2px solid #fde047; box-shadow: 5px 5px 0 rgba(0,0,0,0.8); }
.theme-comic .reels-photo-box { border: 2.5px solid #fde047; box-shadow: 5px 5px 0 #000; }

/* 3. POP MUSIC & HITS (Billboard / Top 100) */
.theme-pop {
  background: radial-gradient(circle at 50% 30%, #2a082b 0%, #0d0414 70%);
  font-family: 'Outfit', sans-serif;
}
.theme-pop .pop-chart-pill {
  display: inline-flex; align-items: center; gap: 5px; background: rgba(236, 72, 153, 0.22);
  border: 1.5px solid #ec4899; color: #f472b6; font-size: 10px; font-weight: 800;
  padding: 3.5px 9px; border-radius: 999px; max-width: calc(100% - 110px); margin-bottom: 2px;
}
.theme-pop .pop-center-stage {
  display: flex; flex-direction: column; align-items: center; margin: 6px auto;
}
.theme-pop .pop-vinyl {
  width: 110px; height: 110px; border-radius: 50%;
  background: repeating-radial-gradient(circle at center, #111 0px, #111 2px, #222 3px, #111 4px);
  border: 3.5px solid #2d2d2d; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.85), 0 0 22px rgba(236, 72, 153, 0.4);
  display: flex; align-items: center; justify-content: center; margin: 4px auto; animation: spinRecord 12s linear infinite;
}
.theme-pop .pop-vinyl-center {
  width: 38px; height: 38px; border-radius: 50%; background: #ec4899; border: 2.5px solid #fff;
  display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 800; color: #fff;
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
}
@keyframes spinRecord { 100% { transform: rotate(360deg); } }
.theme-pop .pop-year {
  font-family: 'Outfit', sans-serif;
  background: linear-gradient(135deg, #fff 30%, #f472b6 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.theme-pop .reels-year-hero {
  font-family: 'Outfit', sans-serif;
  background: linear-gradient(135deg, #fff 15%, #f472b6 65%, #00e5ff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(236, 72, 153, 0.55));
}
.theme-pop .pop-title { font-size: 26px; font-weight: 800; color: #fff; line-height: 1.22; margin: 3px 0 5px; }
.theme-pop .pop-equalizer { display: flex; gap: 3px; align-items: flex-end; height: 16px; margin-top: 8px; justify-content: center; }
.theme-pop .eq-bar { width: 4.5px; background: linear-gradient(to top, #ec4899, #00e5ff); border-radius: 2px; animation: eqJump 0.8s ease-in-out infinite alternate; }
.theme-pop .eq-bar:nth-child(2) { animation-delay: 0.15s; }
.theme-pop .eq-bar:nth-child(3) { animation-delay: 0.3s; }
.theme-pop .eq-bar:nth-child(4) { animation-delay: 0.45s; }
.theme-pop .eq-bar:nth-child(5) { animation-delay: 0.2s; }
.theme-pop .eq-bar:nth-child(6) { animation-delay: 0.35s; }
.theme-pop .eq-bar:nth-child(7) { animation-delay: 0.5s; }
@keyframes eqJump { 0% { height: 3px; } 100% { height: 16px; } }
.theme-pop .reels-desc-card { border-color: rgba(236, 72, 153, 0.35); }
.theme-pop .reels-photo-box { border: 2px solid #ec4899; box-shadow: 0 0 18px rgba(236, 72, 153, 0.45); }

/* 4. KINETIC ROCK & GEAR (Guitars / Pedals / Amps) */
.theme-guitar {
  background: linear-gradient(180deg, #11151f 0%, #080b11 100%);
  font-family: 'Anton', sans-serif;
}
.theme-guitar .guitar-stomp-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  max-width: 100%;
  margin-bottom: 2px;
}
.theme-guitar .guitar-pick-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f97316;
  color: #000;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 4px;
  white-space: nowrap;
}
.theme-guitar .guitar-center-rack {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin: 8px auto; padding: 8px 16px; background: rgba(0, 0, 0, 0.65);
  border: 1.5px solid rgba(249, 115, 22, 0.35); border-radius: 10px;
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.2);
}
.theme-guitar .vac-tube {
  width: 28px; height: 52px; background: linear-gradient(to right, rgba(255,255,255,0.08), rgba(255,255,255,0.22) 50%, rgba(255,255,255,0.05));
  border: 1.5px solid rgba(255, 255, 255, 0.35); border-radius: 13px 13px 3px 3px;
  position: relative; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 16px rgba(249, 115, 22, 0.5);
}
.theme-guitar .tube-glow-core {
  width: 5px; height: 32px; background: #ffedd5; border-radius: 2px;
  box-shadow: 0 0 8px #f97316, 0 0 16px #ea580c; animation: tubeFlicker 3s ease-in-out infinite alternate;
}
@keyframes tubeFlicker {
  0% { opacity: 0.85; box-shadow: 0 0 8px #f97316, 0 0 14px #ea580c; }
  50% { opacity: 1; box-shadow: 0 0 12px #f97316, 0 0 20px #ea580c; }
  100% { opacity: 0.9; box-shadow: 0 0 9px #f97316, 0 0 15px #ea580c; }
}
.theme-guitar .guitar-vu-meter {
  width: 90px; height: 52px; background: #fef3c7; border: 2px solid #292524;
  border-radius: 6px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 4px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3), 0 0 14px rgba(249, 115, 22, 0.3);
}
.theme-guitar .vu-arc { width: 100%; height: 3px; background: linear-gradient(to right, #16a34a 60%, #eab308 80%, #dc2626 100%); border-radius: 1.5px; }
.theme-guitar .vu-needle { position: absolute; bottom: -4px; left: 45px; width: 2px; height: 42px; background: #b91c1c; transform-origin: bottom center; transition: transform 0.4s ease; }
.theme-guitar .vu-label { font-family: 'Space Grotesk', sans-serif; font-size: 7.5px; font-weight: 800; color: #451a03; text-align: center; letter-spacing: 0.05em; }
.theme-guitar .guitar-year { font-family: 'Anton', sans-serif; color: #fff; text-shadow: 0 0 16px rgba(249, 115, 22, 0.5); }
.theme-guitar .reels-year-hero { font-family: 'Anton', sans-serif; color: #fff; text-shadow: 0 0 28px rgba(249, 115, 22, 0.75), 0 0 50px rgba(234, 88, 12, 0.4); }
.theme-guitar .guitar-title { font-family: 'Anton', sans-serif; letter-spacing: 0.02em; color: #00e5ff; }
.theme-guitar .reels-desc-card { border: 1.5px solid rgba(0, 229, 255, 0.45); background: linear-gradient(145deg, #18202d, #0f141f); }
.theme-guitar .reels-photo-box { border: 2px solid #00e5ff; box-shadow: 0 0 18px rgba(0, 229, 255, 0.4); }

/* 5. CORPORATE & BUSINESS (Companies, Founders, Markets) */
.theme-corporate {
  background: linear-gradient(180deg, #0b1120 0%, #030712 100%);
  font-family: 'Space Grotesk', sans-serif;
}
.theme-corporate .corp-grid-watermark {
  position: absolute; right: -8px; top: 14%; font-family: 'Space Grotesk', sans-serif;
  font-size: 90px; font-weight: 900; color: rgba(56, 189, 248, 0.05); letter-spacing: -0.05em; pointer-events: none;
}
.theme-corporate .corp-ticker-pill {
  display: inline-flex; align-items: center; gap: 5px; background: rgba(56, 189, 248, 0.16);
  border: 1.5px solid rgba(56, 189, 248, 0.45); color: #38bdf8; font-size: 10px; font-weight: 800;
  letter-spacing: 0.08em; padding: 3.5px 9px; border-radius: 5px; margin-bottom: 3px; max-width: calc(100% - 110px);
}
.theme-corporate .corp-trend-arrow { color: #22c55e; font-weight: 900; }
.theme-corporate .corp-center-motif { display: flex; align-items: center; justify-content: center; margin: 6px auto; }
.theme-corporate .corp-growth-badge { background: rgba(34, 197, 94, 0.18); border: 1.5px solid #22c55e; color: #4ade80; font-size: 10px; font-weight: 800; padding: 3px 10px; border-radius: 4px; }
.theme-corporate .corp-year { font-family: 'Space Grotesk', sans-serif; color: #fff; }
.theme-corporate .reels-year-hero { font-family: 'Space Grotesk', sans-serif; color: #7dd3fc; text-shadow: 0 0 24px rgba(56, 189, 248, 0.6); }
.theme-corporate .corp-title { font-weight: 700; color: #f8fafc; }
.theme-corporate .reels-desc-card { border-color: rgba(56, 189, 248, 0.35); background: rgba(15, 23, 42, 0.9); }
.theme-corporate .reels-photo-box { border: 2px solid #38bdf8; }

/* 6. LITERATURE & PHILOSOPHY (Novels, Authors, Classics) */
.theme-literature {
  background: radial-gradient(circle at 50% 20%, #1e1614 0%, #0c0908 75%);
  font-family: 'Spectral', serif;
}
.theme-literature .lit-flourish-watermark {
  position: absolute; right: 10px; top: 12%; font-family: 'Playfair Display', serif;
  font-size: 120px; color: rgba(217, 119, 6, 0.05); pointer-events: none; font-style: italic;
}
.theme-literature .lit-chapter-pill {
  display: inline-flex; align-items: center; gap: 5px; background: rgba(217, 119, 6, 0.16);
  border: 1.5px solid rgba(217, 119, 6, 0.45); color: #fbbf24; font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; padding: 3.5px 9px; border-radius: 5px; margin-bottom: 3px; max-width: calc(100% - 110px);
}
.theme-literature .lit-year { font-family: 'Playfair Display', serif; color: #fef3c7; }
.theme-literature .reels-year-hero { font-family: 'Playfair Display', serif; color: #fde68a; text-shadow: 0 0 24px rgba(217, 119, 6, 0.6); }
.theme-literature .lit-manuscript-line { width: 42px; height: 2px; background: #d97706; margin: 4px 0 6px; }
.theme-literature .lit-center-motif { display: flex; align-items: center; justify-content: center; margin: 6px auto; font-size: 32px; }
.theme-literature .lit-title { font-family: 'Spectral', serif; color: #fff; }
.theme-literature .reels-desc-card { border-color: rgba(217, 119, 6, 0.35); background: rgba(26, 18, 16, 0.92); font-family: 'Spectral', serif; }
.theme-literature .reels-photo-box { border: 2px solid #d97706; }

/* 7. SCIENCE & SPACE (Astronomy, Physics, Biology, Discoveries) */
.theme-science {
  background: radial-gradient(circle at 50% 20%, #081a2e 0%, #020617 80%);
  font-family: 'Space Grotesk', sans-serif;
}
.theme-science .sci-orbit-watermark {
  position: absolute; right: -6px; top: 12%; font-family: 'Space Grotesk', monospace;
  font-size: 95px; font-weight: 800; color: rgba(6, 182, 212, 0.05); pointer-events: none;
}
.theme-science .sci-telemetry-pill {
  display: inline-flex; align-items: center; gap: 5px; background: rgba(6, 182, 212, 0.16);
  border: 1.5px solid rgba(6, 182, 212, 0.45); color: #22d3ee; font-size: 9.5px; font-weight: 800;
  letter-spacing: 0.1em; padding: 3.5px 9px; border-radius: 5px; margin-bottom: 3px; max-width: calc(100% - 110px);
}
.theme-science .sci-pulse-radar { width: 6px; height: 6px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 7px #22d3ee; animation: pulseRadar 1.5s infinite; }
@keyframes pulseRadar { 0% { transform: scale(0.8); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.theme-science .sci-center-motif { display: flex; align-items: center; justify-content: center; margin: 6px auto; }
.theme-science .sci-hud-atom {
  width: 76px; height: 76px; position: relative; margin: 4px auto; display: flex; align-items: center; justify-content: center;
}
.theme-science .sci-atom-ring { position: absolute; border: 1.5px solid rgba(34, 211, 238, 0.5); border-radius: 50%; }
.theme-science .ring-1 { width: 72px; height: 30px; transform: rotate(30deg); animation: spinRing 8s linear infinite; }
.theme-science .ring-2 { width: 72px; height: 30px; transform: rotate(-30deg); animation: spinRing 8s linear infinite reverse; }
.theme-science .sci-atom-nucleus { width: 10px; height: 10px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 14px #22d3ee; }
@keyframes spinRing { 100% { transform: rotate(390deg); } }
.theme-science .sci-year { font-family: 'Space Grotesk', sans-serif; color: #fff; text-shadow: 0 0 16px rgba(6, 182, 212, 0.5); }
.theme-science .reels-year-hero { font-family: 'Space Grotesk', sans-serif; color: #67e8f9; text-shadow: 0 0 26px rgba(6, 182, 212, 0.8), 0 0 45px rgba(34, 211, 238, 0.4); }
.theme-science .sci-title { color: #e0f2fe; }
.theme-science .reels-desc-card { border-color: rgba(6, 182, 212, 0.35); background: rgba(8, 20, 36, 0.9); }
.theme-science .reels-photo-box { border: 2px solid #22d3ee; box-shadow: 0 0 18px rgba(34, 211, 238, 0.4); }

/* 8. GEOPOLITICS & WARS (WWII, Treaties, Conflicts, Diplomacy) */
.theme-geopolitics {
  background: linear-gradient(180deg, #151a24 0%, #0a0d13 100%);
  font-family: 'Space Grotesk', sans-serif;
}
.theme-geopolitics .geo-radar-watermark {
  position: absolute; right: -6px; top: 12%; font-family: 'Anton', sans-serif;
  font-size: 95px; color: rgba(239, 68, 68, 0.05); pointer-events: none; letter-spacing: 0.05em;
}
.theme-geopolitics .geo-dossier-pill {
  display: inline-flex; align-items: center; gap: 5px; background: rgba(239, 68, 68, 0.16);
  border: 1.5px solid rgba(239, 68, 68, 0.45); color: #f87171; font-size: 9.5px; font-weight: 800;
  letter-spacing: 0.1em; padding: 3.5px 9px; border-radius: 5px; margin-bottom: 3px; max-width: calc(100% - 110px);
}
.theme-geopolitics .geo-crosshair { color: #ef4444; font-weight: 900; }
.theme-geopolitics .geo-center-motif { display: flex; align-items: center; justify-content: center; margin: 6px auto; font-size: 32px; }
.theme-geopolitics .geo-year { font-family: 'Anton', sans-serif; color: #fff; text-shadow: 0 0 18px rgba(239, 68, 68, 0.5); }
.theme-geopolitics .reels-year-hero { font-family: 'Anton', sans-serif; color: #fca5a5; text-shadow: 0 0 28px rgba(239, 68, 68, 0.8); }
.theme-geopolitics .geo-tactical-divider { width: 48px; height: 2.5px; background: #ef4444; margin: 4px 0 6px; }
.theme-geopolitics .geo-title { color: #fff; }
.theme-geopolitics .reels-desc-card { border-color: rgba(239, 68, 68, 0.35); background: rgba(18, 22, 30, 0.92); }
.theme-geopolitics .reels-photo-box { border: 2px solid #ef4444; }

/* 9. ART & ARCHITECTURE (Movements, Design, Masters) */
.theme-art {
  background: radial-gradient(circle at 50% 20%, #1c1a17 0%, #0c0b0a 80%);
  font-family: 'Playfair Display', serif;
}
.theme-art .art-ratio-watermark {
  position: absolute; right: 10px; top: 12%; font-family: 'Space Grotesk', sans-serif;
  font-size: 100px; color: rgba(245, 158, 11, 0.05); pointer-events: none;
}
.theme-art .art-gallery-pill {
  display: inline-flex; align-items: center; gap: 5px; background: rgba(245, 158, 11, 0.14);
  border: 1.5px solid rgba(245, 158, 11, 0.45); color: #f59e0b; font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.1em; padding: 3.5px 9px; border-radius: 5px; margin-bottom: 3px; max-width: calc(100% - 110px);
}
.theme-art .art-center-motif { display: flex; align-items: center; justify-content: center; margin: 6px auto; }
.theme-art .art-easel-motif {
  width: 64px; height: 50px; margin: 4px auto; border: 2px solid rgba(245, 158, 11, 0.45);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}
.theme-art .art-frame-wire { width: 44px; height: 32px; border: 1.5px dashed rgba(255, 255, 255, 0.3); }
.theme-art .art-year { font-family: 'Playfair Display', serif; color: #fff; font-style: italic; }
.theme-art .reels-year-hero { font-family: 'Playfair Display', serif; color: #fde047; font-style: italic; text-shadow: 0 0 24px rgba(245, 158, 11, 0.6); }
.theme-art .art-title { font-family: 'Playfair Display', serif; color: #fff; }
.theme-art .reels-desc-card { border-color: rgba(245, 158, 11, 0.35); background: rgba(22, 20, 18, 0.92); font-family: 'Spectral', serif; }
.theme-art .reels-photo-box { border: 2px solid #f59e0b; }

/* 10. CULTURE & HERITAGE (World Traditions, Folklore, Anthropology) */
.theme-culture {
  background: radial-gradient(circle at 50% 20%, #1a1322 0%, #0a0710 80%);
  font-family: 'Cinzel', serif;
}
.theme-culture .cul-mandala-watermark {
  position: absolute; right: -6px; top: 12%; font-family: 'Cinzel', serif;
  font-size: 90px; color: rgba(168, 85, 247, 0.05); pointer-events: none;
}
.theme-culture .cul-heritage-pill {
  display: inline-flex; align-items: center; gap: 5px; background: rgba(168, 85, 247, 0.16);
  border: 1.5px solid rgba(168, 85, 247, 0.45); color: #c084fc; font-size: 9.5px; font-weight: 800;
  letter-spacing: 0.1em; padding: 3.5px 9px; border-radius: 5px; margin-bottom: 3px; max-width: calc(100% - 110px);
}
.theme-culture .cul-center-motif { display: flex; align-items: center; justify-content: center; margin: 6px auto; font-size: 32px; }
.theme-culture .cul-year { font-family: 'Cinzel', serif; color: #f3e8ff; }
.theme-culture .reels-year-hero { font-family: 'Cinzel', serif; color: #e9d5ff; text-shadow: 0 0 24px rgba(168, 85, 247, 0.7); }
.theme-culture .cul-accent-rule { width: 42px; height: 2.5px; background: #a855f7; margin: 4px 0 6px; }
.theme-culture .cul-title { font-family: 'Cinzel', serif; color: #fff; }
.theme-culture .reels-desc-card { border-color: rgba(168, 85, 247, 0.35); background: rgba(20, 14, 28, 0.92); }
.theme-culture .reels-photo-box { border: 2px solid #a855f7; }

/* ── Bottom Info Dock in Modal ───────────────────────────────────────────── */
.reels-modal-bottom-dock {
  width: 100%;
  max-width: 1280px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: #94a3b8;
}
.reels-bottom-hint kbd {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
}

/* ═════════════════════════════════════════════════════════════════════════════
   MOBILE FULL-SCREEN REELS VIEWPORT (Edge-to-Edge Native Experience)
   ═════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px), (pointer: coarse) and (max-height: 950px) and (orientation: portrait) {
  #timelense-reels-player {
    padding: 0 !important;
    background: #000 !important;
    backdrop-filter: none !important;
    position: fixed;
    inset: 0;
    overflow: hidden;
  }

  /* Reposition topbar to the bottom as a thumb-friendly mobile control dock */
  .reels-modal-topbar {
    position: absolute;
    bottom: 0;
    top: auto;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(0deg, rgba(0,0,0,0.96) 0%, rgba(0,0,0,0.85) 75%, transparent 100%);
    border-bottom: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 14px calc(env(safe-area-inset-bottom, 16px) + 8px);
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  }

  /* When playing on mobile: remove the playthrough menu once playthrough starts */
  #timelense-reels-player.is-playing .reels-modal-topbar {
    transform: translateY(125%);
    opacity: 0;
    pointer-events: none;
  }

  /* When paused on mobile: reveal the menu dock smoothly */
  #timelense-reels-player.is-paused .reels-modal-topbar {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Hide desktop brand title on mobile */
  .reels-topbar-brand {
    display: none !important;
  }

  /* Full-width swipeable theme chips at bottom */
  .reels-theme-chips {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 4px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
  }
  .reels-theme-chip {
    font-size: 11px;
    padding: 4px 10px;
    flex-shrink: 0;
  }

  /* Center playback controls in the bottom dock */
  .reels-topbar-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  /* Hide redundant desktop countdown dots in bottom dock (in-reel dots active) */
  .reels-countdown-dots {
    display: none !important;
  }

  /* Floating Close Button in Top-Right */
  .reels-topbar-actions {
    position: absolute;
    top: calc(env(safe-area-inset-top, 10px) + 16px);
    right: 14px;
    z-index: 1100;
  }
  .reels-btn-close {
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    backdrop-filter: blur(10px);
  }

  /* Stage & Bezel: 100vw x 100vh full-bleed (interactive playback only) */
  #timelense-reels-player:not(.is-recording) .reels-phone-stage {
    width: 100vw !important;
    height: 100vh !important;
    max-height: none !important;
    margin: 0 !important;
    aspect-ratio: auto !important;
  }
  #timelense-reels-player:not(.is-recording) .reels-device-bezel {
    width: 100vw !important;
    height: 100vh !important;
    max-height: none !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    aspect-ratio: auto !important;
  }
  #timelense-reels-player.is-recording:not(.format-16-9) .reels-device-bezel {
    width: min(100vw, calc(100vh * 9 / 16)) !important;
    height: min(100vh, calc(100vw * 16 / 9)) !important;
    max-width: calc(100vh * 9 / 16) !important;
    aspect-ratio: 9 / 16 !important;
    margin: auto !important;
  }
  .reels-phone-island {
    display: none !important;
  }
  .reels-modal-bottom-dock {
    display: none !important;
  }

  /* In-reel elements adjusted for mobile notch & safe areas */
  .reels-story-bars {
    top: calc(env(safe-area-inset-top, 10px) + 6px);
    left: 14px;
    right: 14px;
    width: auto;
  }
  .reels-brand-tag {
    top: calc(env(safe-area-inset-top, 10px) + 20px);
    right: 80px; /* Room for floating close button */
  }
  .reels-top-row {
    top: calc(env(safe-area-inset-top, 10px) + 20px);
    left: clamp(18px, 5cqw, 24px);
    max-width: calc(100% - 190px);
  }
  .reels-inreel-countdown {
    top: calc(env(safe-area-inset-top, 10px) + 23px);
  }

  /* Canvas padding ensures clearance from top header & enforces the safe zones */
  .reels-content-canvas {
    padding-top: calc(env(safe-area-inset-top, 10px) + 55px) !important;
    padding-left: clamp(18px, 5cqw, 24px) !important;
    padding-right: clamp(28px, 12cqw, 54px) !important;
    padding-bottom: max(calc(env(safe-area-inset-bottom, 16px) + 24px), 18vh, 18cqh) !important;
  }

  .reels-cover-canvas {
    padding-top: calc(env(safe-area-inset-top, 10px) + 55px) !important;
    padding-left: clamp(18px, 5cqw, 24px) !important;
    padding-right: clamp(28px, 12cqw, 54px) !important;
    padding-bottom: max(calc(env(safe-area-inset-bottom, 16px) + 24px), 19vh, 19cqh) !important;
  }

  .reels-outro-canvas {
    padding-top: calc(env(safe-area-inset-top, 10px) + 55px) !important;
    padding-left: clamp(20px, 5cqw, 32px) !important;
    padding-right: clamp(20px, 5cqw, 32px) !important;
    padding-bottom: max(calc(env(safe-area-inset-bottom, 16px) + 24px), 18vh, 18cqh) !important;
  }

  /* Responsive bounds on card height so description fills viewport comfortably */
  .reels-desc-card {
    min-height: min(140px, 16cqh) !important;
    max-height: min(350px, 40cqh, 40vh) !important;
  }
  .reels-content-canvas:not(.reels-has-photo) .reels-desc-card {
    min-height: min(160px, 20cqh) !important;
    max-height: min(440px, 48cqh, 48vh) !important;
  }
  .reels-desc-card.is-short-reel {
    max-height: none !important;
    overflow: hidden !important;
  }
  .reels-photo-box {
    max-height: min(220px, 26cqh, 26vh) !important;
    aspect-ratio: 16 / 10 !important;
    min-height: 140px !important;
  }
}

/* ═════════════════════════════════════════════════════════════════════════════
   OUTRO SCREEN: Call to action directing viewers to Full Timeline @ timeline.sg
   ═════════════════════════════════════════════════════════════════════════════ */
.reels-outro-canvas {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  padding-top: clamp(20px, 4cqh, 40px) !important;
  padding-left: clamp(20px, 5cqw, 36px) !important;
  padding-right: clamp(20px, 5cqw, 36px) !important;
  padding-bottom: clamp(24px, 5cqh, 48px) !important;
  background: radial-gradient(circle at 50% 36%, rgba(22, 33, 62, 0.98) 0%, #0a0f1d 65%, #050811 100%) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: geometricPrecision !important;
}

#rp-inner-markup.layout-outro,
#rp-inner-markup:has(.reels-outro-container) {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
}

.reels-outro-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: clamp(340px, 86cqw, 460px);
  margin: auto auto !important;
  animation: outroFadeIn 0.35s ease-out;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: geometricPrecision !important;
  transform: translateZ(0);
  backface-visibility: hidden;
}

@keyframes outroFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.reels-outro-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 229, 255, 0.12);
  border: 1.5px solid #00e5ff;
  color: #00e5ff;
  font-family: 'Outfit', 'Space Grotesk', -apple-system, sans-serif !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.reels-outro-badge .outro-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 8px #00e5ff;
}

.reels-outro-emblem {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(0);
}

.outro-emblem-glow {
  position: absolute;
  inset: -14px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.45) 0%, rgba(59, 130, 246, 0.25) 50%, transparent 75%);
  border-radius: 50%;
  animation: pulseGlow 2.5s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 1; }
}

.outro-emblem-inner {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 2px solid rgba(0, 229, 255, 0.75);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.outro-emblem-icon {
  font-size: 40px;
  line-height: 1;
}

.reels-outro-title {
  font-family: 'Outfit', 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: clamp(26px, 3.8vh, 34px);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.18;
  margin: 0 0 14px;
  letter-spacing: -0.025em;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.85);
  max-width: 95%;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.reels-outro-stats {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
  max-width: 95%;
}

.reels-outro-stats .stats-pill {
  font-family: 'Outfit', 'Space Grotesk', -apple-system, sans-serif !important;
  font-size: 13.5px;
  font-weight: 700;
  color: #f1f5f9;
  background: rgba(15, 23, 42, 0.82);
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transform: translateZ(0);
  backface-visibility: hidden;
  text-rendering: geometricPrecision;
}

.reels-outro-cta-box {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(24, 32, 47, 0.98));
  border: 2px solid #00e5ff;
  border-radius: 20px;
  padding: 18px 20px;
  box-sizing: border-box;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.85), 0 0 28px rgba(0, 229, 255, 0.28);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.reels-outro-cta-box:hover,
.reels-outro-cta-box:active {
  transform: translateY(-2px) scale(1.01);
  border-color: #38bdf8;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 32px rgba(0, 229, 255, 0.45);
}

.outro-cta-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Outfit', 'Space Grotesk', -apple-system, sans-serif !important;
  font-size: 12px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  transform: translateZ(0);
}

.outro-cta-url {
  font-family: 'Space Grotesk', 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: clamp(16px, 2.4vh, 20px);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  word-break: break-all;
  line-height: 1.35;
  padding: 2px 4px;
  text-decoration: none;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3px;
  margin-bottom: 4px;
  transform: translateZ(0);
  backface-visibility: hidden;
  text-rendering: geometricPrecision;
}

.outro-cta-url .url-protocol {
  color: #94a3b8;
  font-weight: 600;
}

.outro-cta-url .url-domain {
  color: #ffffff;
  font-weight: 800;
}

.outro-cta-url .url-slug {
  color: #00e5ff;
  font-weight: 900;
}

.outro-cta-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 20px;
  background: #00e5ff;
  color: #080c14;
  font-family: 'Outfit', 'Space Grotesk', -apple-system, sans-serif !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 229, 255, 0.4);
  transition: background 0.2s ease, transform 0.2s ease;
  transform: translateZ(0);
}

.reels-outro-cta-box:hover .outro-cta-btn-pill {
  background: #38bdf8;
  transform: scale(1.04);
}

.reels-outro-footer {
  font-family: 'Inter', -apple-system, sans-serif !important;
  font-size: 13.5px;
  color: #cbd5e1;
  font-weight: 500;
  line-height: 1.4;
  max-width: 90%;
  transform: translateZ(0);
  text-rendering: geometricPrecision;
}

.reels-outro-footer strong {
  color: #00e5ff;
  font-weight: 700;
}

/* ── RECORDING MODE OVERRIDES FOR OUTRO SCREEN ───────────────────────────── */
#timelense-reels-player.is-recording .reels-outro-canvas {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  padding: clamp(20px, 4cqh, 40px) clamp(16px, 4cqw, 32px) clamp(60px, 10cqh, 100px) !important;
}

#timelense-reels-player.is-recording #rp-inner-markup.layout-outro,
#timelense-reels-player.is-recording #rp-inner-markup:has(.reels-outro-container) {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
}

#timelense-reels-player.is-recording .reels-outro-container {
  max-width: 900px !important;
  width: 100% !important;
  margin: auto auto !important;
  align-items: center !important;
  justify-content: center !important;
}

#timelense-reels-player.is-recording .reels-outro-badge {
  font-size: clamp(11px, 2.4cqw, 15px) !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  padding: clamp(5px, 0.9cqh, 8px) clamp(14px, 3cqw, 20px) !important;
  margin-bottom: clamp(12px, 2.2cqh, 22px) !important;
  border-width: 2px !important;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.35) !important;
}

#timelense-reels-player.is-recording .reels-outro-badge .outro-dot {
  width: 7px !important;
  height: 7px !important;
}

#timelense-reels-player.is-recording .reels-outro-emblem {
  width: clamp(70px, 13cqw, 110px) !important;
  height: clamp(70px, 13cqw, 110px) !important;
  margin: 0 auto clamp(10px, 1.8cqh, 20px) !important;
}

#timelense-reels-player.is-recording .outro-emblem-glow {
  inset: -16px !important;
}

#timelense-reels-player.is-recording .outro-emblem-inner {
  width: clamp(60px, 11cqw, 95px) !important;
  height: clamp(60px, 11cqw, 95px) !important;
  border: 2.5px solid rgba(0, 229, 255, 0.85) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85), 0 0 24px rgba(0, 229, 255, 0.35) !important;
}

#timelense-reels-player.is-recording .outro-emblem-icon {
  font-size: clamp(30px, 6cqw, 48px) !important;
}

#timelense-reels-player.is-recording .reels-outro-title {
  font-family: 'Outfit', 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: clamp(26px, 6cqw, 40px) !important;
  line-height: 1.14 !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  text-wrap: balance !important;
  margin: 0 0 clamp(8px, 1.5cqh, 16px) !important;
  max-width: 90% !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9) !important;
}

#timelense-reels-player.is-recording .reels-outro-stats {
  gap: clamp(6px, 1.2cqw, 12px) !important;
  margin-bottom: clamp(10px, 2cqh, 20px) !important;
  max-width: 90% !important;
}

#timelense-reels-player.is-recording .reels-outro-stats .stats-pill {
  font-size: clamp(11px, 2.4cqw, 15px) !important;
  font-weight: 700 !important;
  padding: clamp(5px, 0.8cqh, 8px) clamp(12px, 2.5cqw, 18px) !important;
  border-radius: 999px !important;
  border-width: 1.5px !important;
  background: rgba(15, 23, 42, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  backdrop-filter: none !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5) !important;
}

#timelense-reels-player.is-recording .reels-outro-cta-box {
  max-width: 90% !important;
  width: 100% !important;
  padding: clamp(14px, 2.4cqh, 22px) clamp(14px, 3cqw, 24px) !important;
  border-radius: clamp(14px, 2.8cqw, 22px) !important;
  border-width: 2.5px !important;
  margin-bottom: clamp(10px, 1.8cqh, 16px) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 229, 255, 0.32) !important;
}

#timelense-reels-player.is-recording .outro-cta-label {
  font-size: clamp(10px, 2.2cqw, 13px) !important;
  letter-spacing: 0.12em !important;
  margin-bottom: clamp(4px, 0.8cqh, 8px) !important;
}

#timelense-reels-player.is-recording .outro-cta-url {
  font-size: clamp(13px, 3cqw, 19px) !important;
  line-height: 1.25 !important;
  gap: 4px !important;
  margin-bottom: clamp(6px, 1.2cqh, 10px) !important;
  white-space: nowrap !important;
}

#timelense-reels-player.is-recording .outro-cta-btn-pill {
  font-size: clamp(12px, 2.5cqw, 16px) !important;
  font-weight: 800 !important;
  padding: clamp(6px, 1cqh, 10px) clamp(16px, 3.5cqw, 24px) !important;
  margin-top: clamp(6px, 1cqh, 10px) !important;
  border-radius: 999px !important;
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.45) !important;
}

#timelense-reels-player.is-recording .reels-outro-footer {
  font-size: clamp(10px, 2cqw, 13px) !important;
  line-height: 1.4 !important;
  max-width: 90% !important;
  color: #cbd5e1 !important;
}

/* ═════════════════════════════════════════════════════════════════════════════
   COVER / TITLE SCREEN: Beautiful social reel opening card for thumbnails & intro
   ═════════════════════════════════════════════════════════════════════════════ */
.reels-cover-canvas {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding-top: 16px !important;
  padding-left: clamp(18px, 5cqw, 24px) !important;
  padding-right: clamp(28px, 12cqw, 54px) !important;
  padding-bottom: max(110px, 15cqh, 15vh) !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
  overflow: hidden !important;
  z-index: 2 !important;
}

.reels-cover-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  animation: coverFadeIn 0.35s ease-out;
  padding: 8px 4px 0;
}

@keyframes coverFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.reels-cover-top-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f1f5f9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  border-radius: 999px;
  text-transform: uppercase;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.reels-cover-top-tag .cover-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 10px #00e5ff;
  flex-shrink: 0;
}

.cover-num-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #00e5ff;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 900;
}

.reels-cover-center-zone {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: clamp(340px, 88cqw, 540px);
  padding: 24px 20px 22px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.reels-cover-center-zone.has-media-card {
  background: linear-gradient(180deg, rgba(8, 12, 22, 0.72) 0%, rgba(5, 8, 16, 0.90) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 229, 255, 0.16);
}

.reels-cover-emblem {
  position: relative;
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.cover-emblem-glow {
  position: absolute;
  inset: -14px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.45) 0%, rgba(59, 130, 246, 0.2) 50%, transparent 75%);
  border-radius: 50%;
  animation: pulseGlow 2.5s ease-in-out infinite alternate;
}

.cover-emblem-inner {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 2px solid rgba(0, 229, 255, 0.6);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-emblem-icon {
  font-size: 36px;
}

.reels-cover-kicker {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #38bdf8;
  text-transform: uppercase;
  margin-bottom: 12px;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.reels-cover-title {
  font-family: 'Outfit', 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(32px, 7.5cqw, 48px);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 18px 0;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.95), 0 2px 8px rgba(0, 0, 0, 0.9);
  max-width: 100%;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  white-space: normal;
  hyphens: none !important;
  text-wrap: balance;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  transform: translateZ(0);
}

.is-short-title .reels-cover-title {
  font-size: clamp(36px, 8.5cqw, 52px);
}

.is-medium-title .reels-cover-title,
.is-long-word-title .reels-cover-title {
  font-size: clamp(28px, 6.8cqw, 42px);
  line-height: 1.12;
}

.is-long-title .reels-cover-title {
  font-size: clamp(24px, 5.4cqw, 34px);
  line-height: 1.18;
}

.reels-cover-brand-badge {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: #38bdf8;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 6px 16px;
  border-radius: 999px;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 10px rgba(56, 189, 248, 0.2);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.reels-cover-brand-badge .brand-sparkle {
  color: #38bdf8;
  font-size: 11px;
}

.reels-cover-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 4px;
  margin-bottom: 4px;
}

.cover-stat-pill {
  font-family: 'Space Grotesk', 'Outfit', 'Inter', -apple-system, sans-serif !important;
  font-size: clamp(12px, 2.6cqw, 14px);
  font-weight: 700;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  transform: translateZ(0);
}

.reels-cover-footer-prompt {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.06em;
  padding-bottom: 8px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.cover-swipe-arrow {
  color: #38bdf8;
  font-size: 12px;
}

/* Theme accents for cover */
.theme-editorial .reels-cover-top-tag .cover-dot { background: #d4af37; box-shadow: 0 0 8px #d4af37; }
.theme-editorial .reels-cover-kicker { color: #d4af37; }
.theme-editorial .reels-cover-title { font-family: 'Playfair Display', Georgia, serif; }

.theme-comic .reels-cover-top-tag .cover-dot { background: #ef4444; box-shadow: 0 0 8px #ef4444; }
.theme-comic .reels-cover-kicker { color: #facc15; }
.theme-comic .reels-cover-title { font-family: 'Bangers', cursive, sans-serif; letter-spacing: 0.04em; color: #facc15; text-shadow: 2px 2px 0 #000, 4px 4px 0 #ef4444; }

.theme-guitar .reels-cover-top-tag .cover-dot { background: #00e5ff; box-shadow: 0 0 8px #00e5ff; }
.theme-guitar .reels-cover-kicker { color: #00e5ff; }
.theme-guitar .reels-cover-title { font-family: 'Outfit', 'Space Grotesk', -apple-system, sans-serif; letter-spacing: 0.01em; text-transform: uppercase; }

.theme-pop .reels-cover-top-tag .cover-dot { background: #f43f5e; box-shadow: 0 0 8px #f43f5e; }
.theme-pop .reels-cover-kicker { color: #f43f5e; }

.theme-literature .reels-cover-top-tag .cover-dot { background: #e2b170; box-shadow: 0 0 8px #e2b170; }
.theme-literature .reels-cover-kicker { color: #e2b170; }
.theme-literature .reels-cover-title { font-family: 'Merriweather', Georgia, serif; }

.theme-science .reels-cover-top-tag .cover-dot { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.theme-science .reels-cover-kicker { color: #22c55e; }

.theme-corporate .reels-cover-top-tag .cover-dot { background: #3b82f6; box-shadow: 0 0 8px #3b82f6; }
.theme-corporate .reels-cover-kicker { color: #3b82f6; }

.theme-geopolitics .reels-cover-top-tag .cover-dot { background: #06b6d4; box-shadow: 0 0 8px #06b6d4; }
.theme-geopolitics .reels-cover-kicker { color: #06b6d4; }

.theme-art .reels-cover-top-tag .cover-dot { background: #ec4899; box-shadow: 0 0 8px #ec4899; }
.theme-art .reels-cover-kicker { color: #ec4899; }

.theme-culture .reels-cover-top-tag .cover-dot { background: #f97316; box-shadow: 0 0 8px #f97316; }
.theme-culture .reels-cover-kicker { color: #f97316; }

/* ═════════════════════════════════════════════════════════════════════════════
   WIDESCREEN STORY (16:9 CINEMA · DEEP READING)
   Constrains presentation to 16:9 Cinema format, side-by-side balanced 2-column
   layout, generous height/width for reading with minimized scroll speed.
   ═════════════════════════════════════════════════════════════════════════════ */

#timelense-reels-player.format-16-9 .reels-phone-island {
  display: none !important;
}

#timelense-reels-player.format-16-9 .reels-device-bezel {
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  width: min(calc((100vh - 84px) * 16 / 9), calc(100vw - 48px), 1320px) !important;
  max-height: calc(100vh - 84px) !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 0 2.5px rgba(255, 255, 255, 0.12) !important;
}

#timelense-reels-player.format-16-9.is-recording .reels-device-bezel {
  width: min(100vw, calc(100vh * 16 / 9)) !important;
  height: min(100vh, calc(100vw * 9 / 16)) !important;
  max-height: 100vh !important;
  aspect-ratio: 16 / 9 !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  margin: auto !important;
}

/* 16:9 Safe Container 2-Column Balanced Layout (Desktop & Recording) */
#timelense-reels-player.format-16-9 .reels-safe-container.format-16-9-safe,
#timelense-reels-player.format-16-9.is-recording .reels-safe-container.format-16-9-safe,
#timelense-reels-player.format-16-9.is-recording .reels-safe-container {
  flex-direction: row !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  gap: clamp(20px, 3.2cqw, 44px) !important;
  max-width: 96% !important;
  width: 100% !important;
  height: 100% !important;
  padding: clamp(24px, 4cqh, 40px) clamp(20px, 2.8cqw, 42px) clamp(18px, 3cqh, 30px) !important;
  text-align: left !important;
  margin: 0 auto !important;
}

/* Left Column: Visual hero + Year & Category */
#timelense-reels-player.format-16-9 .reels-16-9-left,
#timelense-reels-player.format-16-9.is-recording .reels-16-9-left {
  flex: 0 0 42% !important;
  max-width: 44% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: center !important;
  height: 100% !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
}

#timelense-reels-player.format-16-9 .reels-16-9-visual-frame,
#timelense-reels-player.format-16-9.is-recording .reels-16-9-visual-frame {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

#timelense-reels-player.format-16-9 .reels-photo-box,
#timelense-reels-player.format-16-9.is-recording .reels-photo-box,
#timelense-reels-player.format-16-9 .layout-widescreen-cinema .reels-photo-box,
#timelense-reels-player.format-16-9.is-recording .layout-widescreen-cinema .reels-photo-box {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 220px !important;
  max-height: none !important;
  border-radius: 16px !important;
  background-size: cover !important;
  background-position: center !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
  display: block !important;
  animation: none !important;
}

#timelense-reels-player.format-16-9 .reels-16-9-motif-box,
#timelense-reels-player.format-16-9.is-recording .reels-16-9-motif-box {
  width: 100% !important;
  height: 100% !important;
  min-height: 220px !important;
  max-height: 420px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.5) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 16px !important;
  padding: 20px !important;
  box-sizing: border-box !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
}

#timelense-reels-player.format-16-9 .reels-16-9-motif-box .reels-theme-motif,
#timelense-reels-player.format-16-9.is-recording .reels-16-9-motif-box .reels-theme-motif {
  transform: scale(1.3) !important;
  transform-origin: center center !important;
  margin: 0 !important;
}

#timelense-reels-player.format-16-9 .reels-16-9-left-meta,
#timelense-reels-player.format-16-9.is-recording .reels-16-9-left-meta {
  flex: 0 0 auto !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 6px !important;
  margin-top: 12px !important;
}

#timelense-reels-player.format-16-9 .reels-16-9-left-meta .reels-pill-row,
#timelense-reels-player.format-16-9.is-recording .reels-16-9-left-meta .reels-pill-row {
  margin: 0 !important;
  display: flex !important;
  justify-content: center !important;
}

#timelense-reels-player.format-16-9 .reels-16-9-left-meta .reels-year,
#timelense-reels-player.format-16-9 .reels-16-9-left-meta .reels-year-hero,
#timelense-reels-player.format-16-9.is-recording .reels-16-9-left-meta .reels-year,
#timelense-reels-player.format-16-9.is-recording .reels-16-9-left-meta .reels-year-hero {
  font-size: clamp(34px, 4.8cqw, 60px) !important;
  font-weight: 900 !important;
  line-height: 1.0 !important;
  letter-spacing: -0.02em !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8) !important;
}

/* Right Column: Title + Narrative Card + Watermark */
#timelense-reels-player.format-16-9 .reels-16-9-right,
#timelense-reels-player.format-16-9.is-recording .reels-16-9-right {
  flex: 1 1 56% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: stretch !important;
  height: 100% !important;
  min-height: 0 !important;
  text-align: left !important;
  box-sizing: border-box !important;
}

#timelense-reels-player.format-16-9 .reels-16-9-header-block,
#timelense-reels-player.format-16-9.is-recording .reels-16-9-header-block {
  flex: 0 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 6px !important;
  margin-bottom: 10px !important;
  width: 100% !important;
}

#timelense-reels-player.format-16-9 .reels-16-9-header-block .reels-title,
#timelense-reels-player.format-16-9.is-recording .reels-16-9-header-block .reels-title,
#timelense-reels-player.format-16-9.is-recording .reels-16-9-header-block .guitar-title,
#timelense-reels-player.format-16-9.is-recording .reels-16-9-header-block .ed-title,
#timelense-reels-player.format-16-9.is-recording .reels-16-9-header-block .comic-title,
#timelense-reels-player.format-16-9.is-recording .reels-16-9-header-block .pop-title,
#timelense-reels-player.format-16-9.is-recording .reels-16-9-header-block .corp-title,
#timelense-reels-player.format-16-9.is-recording .reels-16-9-header-block .lit-title,
#timelense-reels-player.format-16-9.is-recording .reels-16-9-header-block .sci-title,
#timelense-reels-player.format-16-9.is-recording .reels-16-9-header-block .geo-title,
#timelense-reels-player.format-16-9.is-recording .reels-16-9-header-block .art-title,
#timelense-reels-player.format-16-9.is-recording .reels-16-9-header-block .cul-title {
  font-size: clamp(22px, 2.8cqw, 34px) !important;
  font-weight: 800 !important;
  line-height: 1.22 !important;
  letter-spacing: -0.01em !important;
  text-align: left !important;
  margin: 0 !important;
  max-width: 100% !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8) !important;
}

#timelense-reels-player.format-16-9 .reels-desc-card,
#timelense-reels-player.format-16-9.is-recording .reels-desc-card {
  flex: 1 1 auto !important;
  max-height: clamp(280px, 52cqh, 460px) !important;
  min-height: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  background: rgba(10, 15, 26, 0.78) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 16px !important;
  padding: clamp(16px, 2.2cqh, 24px) clamp(18px, 2.2cqw, 28px) !important;
  overflow-y: auto !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5) !important;
}

#timelense-reels-player.format-16-9 .reels-desc-text,
#timelense-reels-player.format-16-9.is-recording .reels-desc-text,
#timelense-reels-player.format-16-9.is-recording .reels-desc-card p {
  font-size: clamp(15px, 1.7cqw, 18.5px) !important;
  line-height: 1.62 !important;
  font-weight: 450 !important;
  color: #f1f5f9 !important;
  letter-spacing: 0.01em !important;
  text-align: left !important;
}

#timelense-reels-player.format-16-9 .reels-desc-text strong,
#timelense-reels-player.format-16-9 .reels-desc-text b,
#timelense-reels-player.format-16-9.is-recording .reels-desc-text strong,
#timelense-reels-player.format-16-9.is-recording .reels-desc-text b {
  font-weight: 700 !important;
  color: #fff !important;
}

#timelense-reels-player.format-16-9 .reels-16-9-bottom-bar,
#timelense-reels-player.format-16-9.is-recording .reels-16-9-bottom-bar {
  flex: 0 0 auto !important;
  display: flex !important;
  justify-content: flex-end !important;
  margin-top: 10px !important;
}

/* Widescreen cover & outro proportional refinements */
.format-16-9 .reels-cover-center-zone {
  max-width: clamp(520px, 72cqw, 920px) !important;
  padding: 32px 36px 28px !important;
}

.format-16-9 .reels-outro-container {
  max-width: clamp(520px, 70cqw, 860px) !important;
}

.format-16-9 .reels-top-row {
  padding: 16px 28px 6px !important;
}

.format-16-9 .reels-brand-tag {
  top: 18px !important;
  right: 28px !important;
}

