/* FilmyBazaar — dedicated mobile launch splash (≤768px, .fb-splash-mobile) */
#loadingScreen.fb-splash-mobile {
  z-index: 2147483640 !important;
  background: #050505 !important;
  overflow: hidden;
}

#loadingScreen.fb-splash-mobile .fb-splash-bg,
#loadingScreen.fb-splash-mobile .fb-splash-vignette,
#loadingScreen.fb-splash-mobile .fb-splash-scanlines,
#loadingScreen.fb-splash-mobile .fb-splash-film,
#loadingScreen.fb-splash-mobile .fb-splash-content,
#loadingScreen.fb-splash-mobile .fb-splash-particles,
#loadingScreen.fb-splash-mobile .fb-splash-skip {
  display: none !important;
}

#loadingScreen.fb-splash-mobile.fb-splash-exit,
#loadingScreen.fb-splash-mobile.hide {
  opacity: 0 !important;
  transform: scale(1.04) !important;
  filter: blur(8px) brightness(1.1) !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: -1 !important;
  transition:
    opacity 0.55s cubic-bezier(0.65, 0, 0.35, 1),
    transform 0.6s cubic-bezier(0.65, 0, 0.35, 1),
    filter 0.5s ease !important;
}

.fb-msplash-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(229, 9, 20, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 90% 60% at 80% 100%, rgba(120, 40, 200, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #0a0a0a 0%, #050505 45%, #000 100%);
}

.fb-msplash-noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.fb-msplash-sparks {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.fb-msplash-spark {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 80, 80, 0.55);
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.5);
  animation: fbMsplashSpark 4s ease-in-out infinite;
}

@keyframes fbMsplashSpark {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.2;
  }
  50% {
    transform: translateY(-18px) scale(1.2);
    opacity: 0.85;
  }
}

.fb-msplash-posters {
  position: absolute;
  left: 50%;
  top: 38%;
  width: min(320px, 88vw);
  height: 140px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.fb-msplash-poster {
  position: absolute;
  width: 72px;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  background: linear-gradient(145deg, #2a2a2a, #111);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.fb-msplash-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.75) 100%);
}

.fb-msplash-poster--1 {
  left: 0;
  bottom: 0;
  transform: rotate(-12deg);
  animation: fbMsplashPoster1 3.2s ease-in-out infinite alternate;
  background: linear-gradient(160deg, #3d1515, #1a0a0a);
}

.fb-msplash-poster--2 {
  left: 50%;
  top: 0;
  transform: translateX(-50%) scale(1.08);
  z-index: 2;
  animation: fbMsplashPoster2 2.8s ease-in-out infinite alternate;
  background: linear-gradient(160deg, #1a1a2e, #0d0d14);
  box-shadow: 0 24px 50px rgba(229, 9, 20, 0.25);
}

.fb-msplash-poster--3 {
  right: 0;
  bottom: 4px;
  transform: rotate(10deg);
  animation: fbMsplashPoster3 3.4s ease-in-out infinite alternate;
  background: linear-gradient(160deg, #152a1a, #0a140d);
}

@keyframes fbMsplashPoster1 {
  from {
    transform: rotate(-14deg) translateY(4px);
  }
  to {
    transform: rotate(-8deg) translateY(-6px);
  }
}

@keyframes fbMsplashPoster2 {
  from {
    transform: translateX(-50%) scale(1.05) translateY(6px);
  }
  to {
    transform: translateX(-50%) scale(1.1) translateY(-8px);
  }
}

@keyframes fbMsplashPoster3 {
  from {
    transform: rotate(12deg) translateY(2px);
  }
  to {
    transform: rotate(6deg) translateY(-8px);
  }
}

.fb-msplash-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: calc(42vh + env(safe-area-inset-top, 0px)) 24px 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.fb-msplash-logo {
  position: relative;
  width: 88px;
  height: 88px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fb-msplash-mark {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  background: linear-gradient(145deg, #e50914 0%, #ff4d4d 50%, #b20710 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 16px 48px rgba(229, 9, 20, 0.45),
    0 0 80px rgba(229, 9, 20, 0.2);
  animation: fbMsplashMarkPulse 2s ease-in-out infinite;
}

@keyframes fbMsplashMarkPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.12),
      0 16px 48px rgba(229, 9, 20, 0.4),
      0 0 60px rgba(229, 9, 20, 0.15);
  }
  50% {
    transform: scale(1.04);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.18),
      0 20px 56px rgba(229, 9, 20, 0.55),
      0 0 90px rgba(229, 9, 20, 0.35);
  }
}

.fb-msplash-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: rgba(229, 9, 20, 0.7);
  border-right-color: rgba(255, 255, 255, 0.08);
  animation: fbMsplashRing 1.2s linear infinite;
}

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

.fb-msplash-title {
  margin: 0 0 8px;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 9vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
  animation: fbMsplashFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.fb-msplash-title span {
  color: #fff;
}

.fb-msplash-title strong {
  color: #e50914;
  font-weight: 800;
}

.fb-made-by--splash {
  justify-content: center;
  width: 100%;
  margin: -2px 0 10px;
  animation: fbMsplashFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

.fb-made-by--splash .fb-made-by-kicker {
  font-size: 0.56rem;
  color: rgba(255, 255, 255, 0.5);
}

.fb-made-by--splash .fb-made-by-name {
  font-size: 0.82rem;
  background: linear-gradient(105deg, #ffe8b8 0%, #ff9a6b 40%, #ff3d3d 70%, #e50914 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 12px rgba(229, 9, 20, 0.35));
}

.fb-msplash-tag {
  margin: 0 0 28px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  animation: fbMsplashFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.fb-msplash-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  animation: fbMsplashFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

.fb-msplash-chips span {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.fb-msplash-bar {
  width: min(240px, 72vw);
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 12px;
  animation: fbMsplashFadeUp 0.6s ease 0.35s both;
}

.fb-msplash-progress {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: linear-gradient(90deg, #b20710, #e50914, #ff6b6b);
  box-shadow: 0 0 16px rgba(229, 9, 20, 0.65);
  transition: width 0.08s linear;
  position: relative;
}

.fb-msplash-progress::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 100%
  );
  animation: fbMsplashShimmer 1.2s ease-in-out infinite;
}

@keyframes fbMsplashShimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(200%);
  }
}

.fb-msplash-status {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
  min-height: 1.2em;
  animation: fbMsplashFadeUp 0.6s ease 0.4s both;
}

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

.fb-msplash-skip {
  position: absolute;
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  padding: 10px 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  touch-action: manipulation;
}

.fb-msplash-skip:active {
  background: rgba(229, 9, 20, 0.25);
  border-color: rgba(229, 9, 20, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .fb-msplash-poster,
  .fb-msplash-mark,
  .fb-msplash-spark,
  .fb-msplash-ring,
  .fb-msplash-progress::after {
    animation: none !important;
  }

  #loadingScreen.fb-splash-mobile.fb-splash-exit {
    filter: none !important;
    transform: none !important;
  }
}
