/* ===================================================================
   DOWNLOADHOT51 PRO - DESIGN SYSTEM (APKPure Clean Light Theme)
   Clean White & Emerald Accent - High Performance & WCAG AAA Contrast
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Kantumruy+Pro:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Core Backgrounds */
  --bg-main: #f6f8fa;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-card-solid: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.96);
  --bg-subtle: #f1f5f9;
  
  /* Borders */
  --border-glass: #e2e8f0;
  --border-subtle: #edf2f7;
  --border-active: #10b981;
  --border-glass-glow: rgba(16, 185, 129, 0.25);
  
  /* Primary Green (APKPure / Android Signature) */
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #ecfdf5;
  --primary-border: #a7f3d0;
  --primary-glow: rgba(16, 185, 129, 0.25);
  
  /* Accents */
  --accent-cyan: #0284c7;
  --accent-gold: #d97706;
  --accent-gold-glow: rgba(217, 119, 6, 0.2);
  --accent-purple: #7c3aed;
  --accent-rose: #e11d48;
  
  /* Typography & High Contrast Text */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --text-light: #94a3b8;
  
  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 2px 6px -1px rgba(0, 0, 0, 0.05), 0 1px 3px -1px rgba(0, 0, 0, 0.03);
  --shadow-card-hover: 0 12px 24px -6px rgba(0, 0, 0, 0.08), 0 4px 10px -2px rgba(16, 185, 129, 0.12);
  --shadow-modal: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
  
  --font-sans: 'Plus Jakarta Sans', 'Kantumruy Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg-main);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

/* ===================================================================
   HEADER & NAVBAR (APKPure Style Pure White)
   =================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  transition: transform 0.2s ease;
}
.brand-logo:hover {
  transform: scale(1.02);
}
.logo-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  overflow: hidden;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-main {
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--text-main);
  letter-spacing: -0.5px;
}
.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--primary-dark);
  text-transform: uppercase;
}

/* Search Bar */
.search-wrapper {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.search-input-box {
  display: flex;
  align-items: center;
  width: 100%;
  height: 42px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-glass);
  border-radius: 99px;
  padding: 0 16px;
  transition: all 0.2s ease;
}
.search-input-box:focus-within {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.search-icon {
  width: 18px;
  height: 18px;
  color: var(--text-subtle);
  margin-right: 10px;
  flex-shrink: 0;
}
.search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 500;
}
.search-input::placeholder {
  color: var(--text-light);
}
.search-kbd {
  font-size: 0.65rem;
  background: #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Instant Search Results Dropdown */
.search-results-dropdown {
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  max-height: 400px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}
.search-results-dropdown.active {
  display: block;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.2s ease;
}
.search-result-item:hover {
  background: var(--primary-light);
}
.search-result-poster {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-glass);
}
.search-result-info {
  flex: 1;
  min-width: 0;
}
.search-result-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Lang Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-glass);
  border-radius: 99px;
  padding: 3px;
}
.lang-btn {
  padding: 5px 11px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 99px;
  color: var(--text-muted);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.lang-btn:hover {
  color: var(--text-main);
}
.lang-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: all 0.2s ease;
  position: relative;
  font-size: 0.95rem;
}
.icon-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--primary-glow);
}
.btn-badge-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--accent-gold);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

/* ===================================================================
   CATEGORY BAR (APKPure Clean Tabs)
   =================================================================== */
.category-section {
  padding: 10px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-glass);
}
.category-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
}
.category-list::-webkit-scrollbar {
  display: none;
}
.cat-pill {
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border-glass);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.cat-pill:hover {
  color: var(--text-main);
  background: #e2e8f0;
  transform: translateY(-1px);
}
.cat-pill.active {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* ===================================================================
   HERO SPOTLIGHT SECTION (Clean Light Card)
   =================================================================== */
.hero-spotlight {
  padding: 24px 0 16px;
  position: relative;
}

/* Hero Carousel & Slideshow Container */
.hero-carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--primary-border);
  box-shadow: 0 12px 35px -10px rgba(16, 185, 129, 0.15), 0 4px 14px rgba(0, 0, 0, 0.03);
  background: #ffffff;
  user-select: none;
}

.hero-carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
  will-change: transform;
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
}

.hero-slide .hero-card {
  border: none;
  box-shadow: none;
  border-radius: 0;
}

/* Slide Specific Custom Gradient Themes */
.hero-card-hot51 {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.hero-card-whatsapp {
  background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 60%, #e6fffa 100%);
}

.hero-card-freefire {
  background: linear-gradient(135deg, #ffffff 0%, #fff7ed 60%, #ffedd5 100%);
}

.hero-card-domino {
  background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 60%, #ede9fe 100%);
}

.hero-card-bgmi {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 60%, #e0f2fe 100%);
}

/* Carousel Prev/Next Navigation Chevrons */
.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-glass);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: var(--text-main);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  opacity: 0;
  pointer-events: none;
}

.hero-carousel-container:hover .hero-nav-btn {
  opacity: 1;
  pointer-events: auto;
}

.hero-nav-prev {
  left: 16px;
}

.hero-nav-next {
  right: 16px;
}

.hero-nav-btn:hover {
  background: #ffffff;
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
}

.hero-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

/* Indicator Dots */
.hero-carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 99px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #cbd5e1;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-dot:hover {
  background: #94a3b8;
}

.hero-dot.active {
  width: 26px;
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.hero-card {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.15), 0 4px 12px rgba(0, 0, 0, 0.03);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  padding: 36px 40px;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 99px;
  width: fit-content;
  margin-bottom: 16px;
  letter-spacing: 0.4px;
}
.hero-title {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 12px;
  color: var(--text-main);
}
.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
}

/* Feature Badges list in hero */
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.hero-feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border-glass);
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* CTA Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  transition: all 0.25s ease;
  position: relative;
  border: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}
.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
}
.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: #94a3b8;
  transform: translateY(-2px);
}

/* Hero Visual / Poster */
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-poster-card {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 4px 15px rgba(16, 185, 129, 0.18);
  border: 2px solid var(--primary-border);
  transition: all 0.35s ease;
  background: #ffffff;
  display: block;
}
.hero-poster-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 25px rgba(16, 185, 129, 0.25);
  border-color: var(--primary);
}
.hero-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===================================================================
   APPS GRID SECTION
   =================================================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 32px 0 20px;
}
.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
}
.section-count-badge {
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 99px;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}

/* APKPure Style Clean White App Card */
.app-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.app-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-card-hover);
}

.app-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-subtle);
  margin-bottom: 12px;
  border: 1px solid var(--border-glass);
}
.app-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.app-card:hover .app-poster {
  transform: scale(1.05);
}

/* Badges on Poster */
.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
}
.card-badge.badge-hot {
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}
.card-badge.badge-vip {
  background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.35);
}

.card-save-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}
.card-save-btn:hover, .card-save-btn.active {
  color: #f59e0b;
  transform: scale(1.15);
  background: #ffffff;
}

.app-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.app-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.45rem;
}
.app-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 6px;
}
.app-meta-left {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
}
.app-meta-dot {
  color: var(--text-subtle);
  font-size: 0.75rem;
}
.app-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #d97706;
  font-weight: 700;
}
.app-size {
  color: var(--text-subtle);
  font-weight: 600;
}

/* Subtle APKPure Style Download Icon Button */
.card-dl-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}
.app-card:hover .card-dl-btn {
  background: var(--primary-light);
  border-color: var(--primary-border);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}
.card-dl-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Pagination / Load More */
.load-more-wrap {
  display: flex;
  justify-content: center;
  margin: 20px 0 50px;
}
.btn-load-more {
  padding: 12px 32px;
  background: #ffffff;
  border: 1px solid var(--primary-border);
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 99px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.btn-load-more:hover {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
}

/* ===================================================================
/* Hide Homepage-specific browsing elements (Category bar & Mobile Search) on dedicated App Pages */
body.app-page-active .category-section,
body.app-page-active .mobile-search-section {
  display: none !important;
}

.standalone-app-page {
  padding: 24px 0 60px;
  max-width: 920px;
  margin: 0 auto;
}

/* Breadcrumbs */
.app-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding: 10px 16px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.app-breadcrumbs a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}
.app-breadcrumbs a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.app-breadcrumbs .bc-sep {
  color: var(--text-subtle);
  font-size: 0.85rem;
}
.app-breadcrumbs .bc-current {
  color: var(--text-main);
  font-weight: 700;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Standalone Hero Card */
.app-page-hero-card {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.app-page-top {
  display: flex;
  gap: 24px;
  align-items: center;
}
.app-page-poster-wrap {
  width: 124px;
  height: 124px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--primary-border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  background: var(--bg-subtle);
}
.app-page-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.app-page-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.app-page-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 8px;
}
.app-page-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}
.meta-tag.rating {
  color: #d97706;
  background: #fef3c7;
  border-color: #fde68a;
}
.meta-tag.safe {
  color: var(--primary-dark);
  background: var(--primary-light);
  border-color: var(--primary-border);
}
.meta-tag.ver {
  color: #475569;
  background: #f1f5f9;
}
.meta-tag.cat {
  color: #2563eb;
  background: #eff6ff;
  border-color: #bfdbfe;
}
.app-page-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.btn-dl-hero {
  padding: 13px 28px;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-action-sm {
  padding: 12px 20px;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Modal Breadcrumbs for SEO & Navigation */
.modal-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding: 6px 12px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
}
.modal-breadcrumbs a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}
.modal-breadcrumbs a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.modal-breadcrumbs .bc-sep {
  color: var(--text-subtle);
  font-size: 0.8rem;
}
.modal-breadcrumbs .bc-current {
  color: var(--text-main);
  font-weight: 700;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* App Hero in Modal */
.app-detail-top {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}
.modal-poster-wrap {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--primary-border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}
.modal-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-app-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.modal-app-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.25;
}
.modal-app-badge {
  font-size: 0.75rem;
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Specs Grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg-subtle);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px;
  gap: 10px;
  margin-bottom: 24px;
  text-align: center;
}
.spec-item-label {
  font-size: 0.7rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.spec-item-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Download Version Cards */
.download-section-box {
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}
.section-box-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.version-card {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.version-card:last-child {
  margin-bottom: 0;
}
.version-card:hover {
  border-color: var(--primary);
  background: #f0fdf4;
}

.version-info h3,
.version-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}
.version-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-trigger-dl {
  padding: 10px 20px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
  border: none;
}
.btn-trigger-dl:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 16px rgba(16, 185, 129, 0.45);
}

/* 3s Countdown State inside Modal */
.countdown-box {
  display: none;
  text-align: center;
  padding: 24px 16px;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--primary);
  margin-top: 14px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}
.countdown-box.active {
  display: block;
}
.countdown-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1;
  margin-bottom: 8px;
}
.countdown-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* Mod Features List */
.features-box {
  margin-bottom: 24px;
}
.features-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}
.features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.825rem;
  color: var(--text-main);
  background: var(--bg-subtle);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
}
.feature-check {
  color: var(--primary-dark);
  font-weight: 900;
}

.modal-desc-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}
.modal-desc-paragraph {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 12px;
}
.modal-desc-subhead {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 16px;
  margin-bottom: 8px;
}
.modal-desc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.modal-desc-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.825rem;
  color: var(--text-main);
  line-height: 1.5;
}
.modal-desc-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-dark);
  font-weight: 900;
}

/* Modal Related Apps */
.modal-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}
.modal-related-item {
  background: var(--bg-subtle);
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: all 0.2s ease;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.modal-related-item:hover {
  background: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}
.modal-related-poster {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 8px;
  display: block;
}
.modal-related-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  margin: 0;
  line-height: 1.3;
}

/* Installation Guide */
.install-guide {
  background: var(--bg-subtle);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 24px;
}
.install-step {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}
.install-step:last-child {
  margin-bottom: 0;
}
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--primary-border);
}
.step-content h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
}
.step-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ===================================================================
   SEO RICH GUIDE & COMPARISON TABLE (White Card Layout)
   =================================================================== */
.seo-guide-section {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-card);
}
.seo-guide-header {
  margin-bottom: 20px;
}
.seo-badge-tag {
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.seo-guide-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-main);
  margin-top: 6px;
  line-height: 1.3;
}
.seo-guide-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.seo-guide-body p strong {
  color: var(--text-main);
}
.seo-guide-subhead {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 10px;
}
.seo-link {
  color: var(--primary-dark);
  font-weight: 700;
}
.seo-link:hover {
  text-decoration: underline;
}
.seo-feature-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.seo-feature-list li strong {
  color: var(--text-main);
}
.seo-num-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.seo-num-list li strong {
  color: var(--text-main);
}

/* Comparison Table */
.table-responsive {
  overflow-x: auto;
  margin: 12px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
  background: #ffffff;
}
.comparison-table th {
  padding: 12px 16px;
  background: #f8fafc;
  color: var(--text-main);
  font-weight: 700;
  border-bottom: 2px solid var(--border-glass);
}
.comparison-table th.col-highlight {
  color: var(--primary-dark);
  font-weight: 800;
}
.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
}
.comparison-table tr:last-child td {
  border-bottom: none;
}
.comparison-table tr:nth-child(even) td {
  background: #fcfdfd;
}
.comparison-table td.feature-cell {
  font-weight: 700;
  color: var(--text-main);
}
.comparison-table td.good-cell {
  color: var(--primary-dark);
  font-weight: 700;
}
.comparison-table td.bad-cell {
  color: #ef4444;
}

/* Installation Guide Section */
.install-guide-section {
  margin-bottom: 40px;
}
.install-guide-heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.install-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.install-card {
  background: #ffffff;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
}
.install-card .step-num {
  margin-bottom: 10px;
}
.install-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}
.install-card p {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===================================================================
   FAQ SECTION (Clean White Accordions)
   =================================================================== */
.faq-section {
  padding: 20px 0 60px;
}
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}
.faq-card {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.faq-question {
  width: 100%;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: left;
}
.faq-arrow {
  color: var(--primary-dark);
  transition: transform 0.25s ease;
}
.faq-card.open .faq-arrow {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  transition: all 0.25s ease;
}
.faq-card.open .faq-answer {
  max-height: 200px;
  padding: 0 20px 16px;
}

/* ===================================================================
   FOOTER (Clean White Footer)
   =================================================================== */
.site-footer {
  margin-top: auto;
  background: #ffffff;
  border-top: 1px solid var(--border-glass);
  padding: 40px 0 90px;
  color: var(--text-subtle);
  font-size: 0.825rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-link {
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.footer-link:hover {
  color: var(--primary-dark);
}

/* ===================================================================
   MOBILE BOTTOM NAVIGATION BAR
   =================================================================== */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #ffffff;
  border-top: 1px solid var(--border-glass);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  display: none;
  align-items: center;
  justify-content: space-around;
  z-index: 900;
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.nav-item.active {
  color: var(--primary-dark);
}
.nav-icon {
  font-size: 1.25rem;
}

/* Mobile Bottom Nav Badge */
.bottom-nav-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  background: var(--accent-gold);
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  line-height: 1;
}

/* Mobile Search Bar Section (Desktop hidden by default) */
.mobile-search-section {
  display: none;
}

/* Toast Feedback */
.toast-msg {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #ffffff;
  border: 1px solid var(--primary);
  padding: 10px 20px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.toast-msg.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   =================================================================== */
@media (max-width: 992px) {
  .hero-card {
    grid-template-columns: 1fr;
    padding: 28px 24px 38px;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .hero-features {
    justify-content: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-visual {
    order: -1;
    margin-bottom: 8px;
  }
  .hero-poster-card {
    width: 170px;
    height: 170px;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .modal-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-nav-btn {
    opacity: 0.85;
    pointer-events: auto;
    width: 38px;
    height: 38px;
  }
  .hero-nav-prev {
    left: 8px;
  }
  .hero-nav-next {
    right: 8px;
  }
}

@media (max-width: 768px) {
  .hero-carousel-container {
    border-radius: var(--radius-lg);
  }
  .hero-card {
    padding: 20px 14px 34px;
  }
  .hero-nav-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.75);
  }
  .hero-nav-btn svg {
    width: 18px;
    height: 18px;
  }
  .hero-nav-prev {
    left: 6px;
  }
  .hero-nav-next {
    right: 6px;
  }
  .hero-carousel-dots {
    bottom: 8px;
    padding: 4px 10px;
    gap: 6px;
  }
  .hero-dot {
    width: 6px;
    height: 6px;
  }
  .hero-dot.active {
    width: 18px;
  }
  .mobile-bottom-nav {
    display: flex;
  }

  /* Refined, Spacious Top Header for Mobile */
  .site-header {
    height: 60px;
  }
  .header-inner {
    height: 60px;
    padding: 0 12px;
    gap: 8px;
  }
  .brand-logo {
    gap: 8px;
  }
  .logo-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  .brand-main {
    font-size: 1.1rem;
    font-weight: 900;
  }
  .brand-badge {
    font-size: 0.62rem;
    letter-spacing: 0.5px;
  }

  /* Hide redundant Bookmark and Channel buttons on mobile header */
  .header-actions {
    gap: 0;
  }
  .header-desktop-only,
  .header-actions .icon-btn {
    display: none !important;
  }

  /* Compact, Elegant Language Switcher on Mobile (No wrapping) */
  .lang-switcher {
    padding: 3px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-glass);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  }
  .lang-btn {
    padding: 5px 9px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    border-radius: 99px;
  }
  .lang-btn.active {
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
  }

  /* Desktop Header Search Hidden on Mobile */
  .search-wrapper {
    display: none;
  }

  /* Mobile Dedicated Clean Search Bar */
  .mobile-search-section {
    display: block;
    background: #ffffff;
    padding: 8px 0 6px;
    border-bottom: 1px solid var(--border-glass);
    position: relative;
    z-index: 20;
  }
  .mobile-search-box {
    display: flex;
    align-items: center;
    width: 100%;
    height: 40px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-glass);
    border-radius: 99px;
    padding: 0 16px;
    transition: all 0.2s ease;
  }
  .mobile-search-box:focus-within {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
  }
  .mobile-dropdown {
    top: 48px;
    left: 16px;
    right: 16px;
  }

  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .app-card {
    padding: 10px;
  }
  .app-title {
    font-size: 0.825rem;
    height: 2.2rem;
  }
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-list {
    grid-template-columns: 1fr;
  }
  .seo-guide-section {
    padding: 20px;
  }
  .modal-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  /* Standalone App Page Mobile Styles */
  .standalone-app-page {
    padding: 14px 0 40px;
  }
  .app-page-hero-card {
    padding: 18px 14px;
    border-radius: var(--radius-md);
  }
  .app-page-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .app-page-poster-wrap {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-sm);
  }
  .app-page-title {
    font-size: 1.25rem;
    line-height: 1.3;
  }
  .app-page-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    margin-top: 6px;
  }
  .app-page-actions .btn-dl-hero {
    grid-column: 1 / -1;
    width: 100%;
    padding: 13px 20px;
    font-size: 0.98rem;
    font-weight: 800;
    justify-content: center;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  }
  .app-page-actions .btn-action-sm {
    width: 100%;
    padding: 11px 12px;
    font-size: 0.825rem;
    font-weight: 700;
    justify-content: center;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  }
  .app-page-actions .btn-action-sm:active {
    background: var(--bg-subtle);
  }
}

@media (min-width: 769px) {
  .site-footer {
    padding-bottom: 40px;
  }
}

/* ===================================================================
   MOBILE HEADER SEARCH TRIGGER & LEGAL / REPORT MODALS
   =================================================================== */
.mobile-search-trigger-btn {
  display: none;
  background: var(--bg-subtle);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 6px;
  flex-shrink: 0;
}
.mobile-search-trigger-btn:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--primary-border);
}
@media (max-width: 768px) {
  .mobile-search-trigger-btn {
    display: inline-flex;
  }
}

/* Legal / DMCA / Report Modal */
.legal-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}
.legal-modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-glass);
  animation: scaleUp 0.25s ease-out;
}
.legal-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.legal-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}
.legal-modal-close {
  background: var(--bg-subtle);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.legal-modal-close:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}
.legal-modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.legal-modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: flex-end;
}

/* Report Broken Link Button */
.btn-report-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px dashed var(--border-glass);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-report-link:hover {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

/* Mobile Quick Search Overlay */
.mobile-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}
.mobile-search-overlay-inner {
  background: #ffffff;
  padding: 14px 16px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid var(--border-glass);
}
.mobile-search-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-glass);
  border-radius: 99px;
  padding: 0 14px;
  height: 44px;
}
.mobile-search-cancel-btn {
  background: transparent;
  border: none;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 8px 4px;
}
.mobile-overlay-results {
  position: static;
  margin-top: 12px;
  max-height: 70vh;
  box-shadow: none;
  border: none;
}

