/**
 * FilmyBazaar — standalone Get App page (matches main site cinematic theme)
 */
:root {
  --fb-apk-red: #e50914;
  --fb-apk-gold: #ffc107;
  --fb-apk-teal: #00cec9;
  --fb-apk-bg: #0a0a0a;
}

html {
  scroll-behavior: smooth;
}

body.fb-apk-page {
  margin: 0;
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(229, 9, 20, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(0, 206, 201, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 30% at 10% 60%, rgba(255, 193, 7, 0.06), transparent 45%),
    var(--fb-apk-bg);
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.fb-apk-page-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem max(1.25rem, env(safe-area-inset-right)) 0.85rem max(1.25rem, env(safe-area-inset-left));
  background: rgba(8, 8, 12, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.fb-apk-page-header .fb-brand-logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.fb-apk-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.fb-apk-home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.fb-apk-home-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.fb-apk-header-dl {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe066, #ffc107 48%, #ffb300);
  color: #1a1400;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
  border: 1px solid rgba(255, 215, 0, 0.55);
  box-shadow: 0 4px 16px rgba(255, 193, 7, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fb-apk-header-dl:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(255, 193, 7, 0.45);
}

/* ── Main layout ── */
.fb-apk-page-main {
  padding: 2.5rem max(1.25rem, env(safe-area-inset-right)) 4rem max(1.25rem, env(safe-area-inset-left));
}

.fb-apk-strip {
  max-width: 920px;
  margin: 0 auto 2rem;
  padding: 0.75rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 193, 7, 0.35);
  background: linear-gradient(90deg, rgba(255, 193, 7, 0.12), rgba(229, 9, 20, 0.08));
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffeaa7;
}

.fb-apk-strip i {
  color: var(--fb-apk-gold);
  margin-right: 0.35rem;
}

.fb-aw {
  max-width: 920px;
  margin: 0 auto;
}

.fb-ah {
  text-align: center;
  padding-bottom: 2.5rem;
}

.fb-ah-ico {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ff3d3d, #ff8e8e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: #fff;
  margin: 0 auto 1.2rem;
  box-shadow: 0 16px 48px rgba(229, 9, 20, 0.35), 0 0 0 9px rgba(255, 61, 61, 0.07);
}

.fb-ah h1 {
  font-size: clamp(1.75rem, 5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.4rem;
  background: linear-gradient(135deg, #fff, #ff9e9e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fb-ah p {
  color: #bdc3c7;
  font-size: 0.98rem;
  margin-bottom: 1rem;
}

.fb-ah-ver {
  display: inline-block;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  padding: 0.22rem 0.9rem;
  font-size: 0.76rem;
  color: #7f8c8d;
  margin-bottom: 1.8rem;
}

.fb-ah-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.fb-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #00b894, #00cec9);
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 26px;
  font-size: 0.98rem;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(0, 184, 148, 0.36);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

.fb-dl-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 184, 148, 0.5);
}

.fb-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 0.85rem 1.6rem;
  border-radius: 26px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
}

.fb-back-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.fb-counter-row {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 61, 61, 0.08), rgba(255, 142, 142, 0.04));
  border: 1px solid rgba(255, 61, 61, 0.15);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 0;
}

.fb-counter-box {
  text-align: center;
  padding: 0.5rem 2rem;
  flex: 1;
  min-width: 120px;
}

.fb-counter-num {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #ff9e9e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 0.3rem;
  font-family: 'Poppins', sans-serif;
}

.fb-counter-label {
  font-size: 0.72rem;
  color: #7f8c8d;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fb-counter-label i {
  color: #ff3d3d;
}

.fb-counter-divider {
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.08);
}

.fb-feats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 2rem 0;
}

.fb-fc {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 13px;
  padding: 1.1rem;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.fb-fc:hover {
  border-color: rgba(255, 61, 61, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.fb-fi {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}

.fb-fi.r {
  background: linear-gradient(135deg, #ff3d3d, #ff8e8e);
  box-shadow: 0 3px 9px rgba(255, 61, 61, 0.28);
}

.fb-fi.g {
  background: linear-gradient(135deg, #00b894, #00cec9);
  box-shadow: 0 3px 9px rgba(0, 184, 148, 0.28);
}

.fb-fi.b {
  background: linear-gradient(135deg, #0066ff, #00ccff);
  box-shadow: 0 3px 9px rgba(0, 102, 255, 0.28);
}

.fb-fi.o {
  background: linear-gradient(135deg, #ffa502, #ff7675);
  box-shadow: 0 3px 9px rgba(255, 165, 2, 0.28);
}

.fb-fi.p {
  background: linear-gradient(135deg, #a29bfe, #6c5ce7);
  box-shadow: 0 3px 9px rgba(108, 92, 231, 0.28);
}

.fb-fi.k {
  background: linear-gradient(135deg, #fd79a8, #e84393);
  box-shadow: 0 3px 9px rgba(232, 67, 147, 0.28);
}

.fb-ft h3,
.fb-ft h4 {
  font-size: 0.89rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.fb-ft p {
  font-size: 0.76rem;
  color: #bdc3c7;
  line-height: 1.52;
}

.fb-specs {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 1.4rem;
  margin-bottom: 2rem;
}

.fb-specs h2 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 7px;
}

.fb-specs h2 i {
  color: #ff3d3d;
}

.fb-sr {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
}

.fb-sr:last-child {
  border-bottom: none;
}

.fb-sr span:first-child {
  color: #7f8c8d;
}

.fb-sr span:last-child {
  color: #fff;
  font-weight: 600;
}

.fb-cta {
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(0, 184, 148, 0.09), transparent 70%);
  border-radius: 18px;
  padding: 2.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.fb-cta h2 {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.fb-cta p {
  color: #bdc3c7;
  margin-bottom: 1.4rem;
  font-size: 0.88rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.fb-badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.1rem;
}

.fb-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 0.28rem 0.8rem;
  font-size: 0.73rem;
  color: #bdc3c7;
}

.fb-badge i {
  color: #ff3d3d;
}

/* ── Footer ── */
.fb-apk-page-footer {
  max-width: 920px;
  margin: 0 auto;
  padding: 2rem max(1.25rem, env(safe-area-inset-right)) 3rem max(1.25rem, env(safe-area-inset-left));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.fb-apk-page-footer p {
  color: #7f8c8d;
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
}

.fb-apk-page-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}

.fb-apk-page-footer a {
  color: #bdc3c7;
  text-decoration: none;
  font-size: 0.85rem;
}

.fb-apk-page-footer a:hover {
  color: #ff6b6b;
}

@media (max-width: 768px) {
  .fb-apk-home-link span {
    display: none;
  }

  .fb-feats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .fb-counter-row {
    gap: 1rem;
  }

  .fb-counter-divider {
    display: none;
  }

  .fb-counter-box {
    min-width: 80px;
    padding: 0.5rem 1rem;
  }

  .fb-counter-num {
    font-size: 1.5rem;
  }

  .fb-apk-header-dl span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fb-dl-btn,
  .fb-apk-header-dl,
  .fb-back-btn {
    transition: none;
  }
}
