/* ==========================================================================
   PlayZora Originals — Premium Cinema Dark Theme
   Design System: Deep Charcoal (#090a0f), PlayZora Red (#e50914), Neon Green Accent
   ========================================================================== */

:root {
  --bg-main: #090a0f;
  --bg-surface: #11131a;
  --bg-card: #151821;
  --bg-glass: rgba(17, 19, 26, 0.85);
  
  --red-primary: #e50914;
  --red-hover: #ff1e2b;
  --red-gradient: linear-gradient(135deg, #ff1744 0%, #b8001f 100%);
  --red-glow: rgba(229, 9, 20, 0.4);

  --green-match: #22c55e;
  --gold-accent: #f59e0b;
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(229, 9, 20, 0.6);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 9999px;

  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-brand: 'Orbitron', 'Plus Jakarta Sans', sans-serif;
}

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

html {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  background-color: var(--bg-main);
  overflow-x: hidden;
  padding-bottom: 40px;
}

/* ==========================================================================
   Top Navigation Bar (Studio Cinema Style)
   ========================================================================== */
.studio-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(9, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.nav-main-bar {
  max-width: 1320px;
  margin: 0 auto;
  height: 58px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-emblem {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 30, 66, 0.35);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(229, 9, 20, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.brand-logo:hover .logo-emblem {
  transform: scale(1.08);
  border-color: var(--red-primary);
  box-shadow: 0 0 22px rgba(255, 30, 66, 0.7);
}

.emblem-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-main);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  color: #ffffff;
  line-height: 1.1;
}

.red-glow-text {
  color: #ff1e42;
  text-shadow: 0 0 12px rgba(255, 30, 66, 0.5);
}

.brand-sub {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.gold-crown {
  color: #fbbf24;
  font-size: 0.65rem;
}

/* Community Live Online Gamers Badge */
.live-gamers-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.28);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  color: #86efac;
  letter-spacing: 0.5px;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.12);
  user-select: none;
}
.pulse-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulseLive 1.8s infinite ease-in-out;
}
@keyframes pulseLive {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 8px #22c55e; }
  50% { transform: scale(1.4); opacity: 0.6; box-shadow: 0 0 16px #4ade80; }
}
.online-txt {
  color: #94a3b8;
  font-size: 0.65rem;
  font-weight: 700;
}
@media (max-width: 900px) {
  .live-gamers-pill { display: none; }
}

/* Desktop Search Bar (Hidden on Mobile) */
.desktop-search-wrap {
  position: relative;
  display: none;
  align-items: center;
  width: 280px;
}

@media (min-width: 820px) {
  .desktop-search-wrap {
    display: flex;
  }
}

.desktop-search-wrap .search-ico {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
  pointer-events: none;
}

.desktop-search-wrap input {
  width: 100%;
  height: 38px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  padding: 0 32px 0 36px;
  font-family: inherit;
  font-size: 0.85rem;
  color: #fff;
  outline: none;
  transition: all 0.2s ease;
}

.desktop-search-wrap input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--red-primary);
  box-shadow: 0 0 14px rgba(229, 9, 20, 0.3);
}

.clear-search-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: none;
  line-height: 1;
}

.clear-search-btn:hover {
  color: #fff;
}

/* Permanent Install App Button (Next to Search Bar - Matching Dark Theme) */
.nav-install-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(255, 42, 75, 0.15) 0%, rgba(20, 10, 18, 0.9) 100%);
  border: 1px solid rgba(255, 42, 75, 0.5);
  color: #ffffff;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 16px rgba(229, 9, 20, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.25s ease;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
}

.nav-install-pill-btn:hover {
  background: linear-gradient(135deg, rgba(255, 42, 75, 0.35) 0%, rgba(35, 12, 22, 0.95) 100%);
  border-color: #ff2a4b;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 0 22px rgba(255, 42, 75, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #fff;
}

.nav-install-pill-btn i {
  color: #ff3b5c;
  font-size: 0.88rem;
  animation: bounceInstall 2s infinite ease-in-out;
}

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

@media (max-width: 820px) {
  .nav-install-pill-btn {
    padding: 7px 12px;
    font-size: 0.72rem;
    gap: 6px;
  }
}

@media (max-width: 580px) {
  .nav-install-pill-btn {
    padding: 6px 11px;
    font-size: 0.7rem;
    gap: 5px;
  }
  .nav-install-pill-btn .install-text {
    display: inline-block;
  }
}

.install-badge-free {
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 5px;
  letter-spacing: 0.4px;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

/* Nav Actions (Icons) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-icon-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.mobile-search-btn {
  display: grid;
}

@media (min-width: 820px) {
  .mobile-search-btn {
    display: none;
  }
}

.badge-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--red-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 0 3px;
  box-shadow: 0 0 8px var(--red-glow);
}

/* Expandable Mobile Search Row */
.expand-search-row {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px 10px;
  display: none;
  animation: slideDown 0.2s ease-out;
}

.expand-search-row.active {
  display: block;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.expand-search-inner {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.expand-search-inner .expand-ico {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.expand-search-inner input {
  width: 100%;
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  padding: 0 74px 0 40px;
  font-family: inherit;
  font-size: 0.9rem;
  color: #fff;
  outline: none;
  transition: all 0.2s ease;
}

.expand-search-inner input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--red-primary);
  box-shadow: 0 0 12px var(--red-glow);
}

.expand-clear-btn {
  position: absolute;
  right: 42px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: none;
  line-height: 1;
}

.expand-close-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #cbd5e1;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}

.expand-close-btn:hover {
  color: #fff;
}

/* Category Pills Bar (Horizontal Scroll Track) */
.category-pills-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(9, 10, 15, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pills-scroll-track {
  max-width: 1320px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.pills-scroll-track::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cat-pill i {
  font-size: 0.78rem;
  opacity: 0.85;
}

.cat-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.cat-pill.active {
  background: var(--red-gradient);
  border-color: var(--red-primary);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 0 14px var(--red-glow);
}

.cat-pill.active i {
  opacity: 1;
}

.cat-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.cat-pill.active {
  background: var(--red-gradient);
  border-color: var(--red-primary);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 14px var(--red-glow);
}

/* ==========================================================================
   Cinematic Hero Banner (True Full-Bleed Netflix / Apple Arcade)
   ========================================================================== */
.hero-cinematic {
  position: relative;
  width: 100%;
  height: 65vh;
  min-height: 480px;
  max-height: 620px;
  background: #090a0f;
  overflow: hidden;
  display: flex;
  align-items: center;
  touch-action: pan-y;
}

.hero-bg-poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  transition: opacity 0.5s ease-in-out, transform 0.8s ease;
  transform: scale(1.0);
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to right, #090a0f 0%, rgba(9, 10, 15, 0.94) 38%, rgba(9, 10, 15, 0.45) 65%, transparent 88%),
    linear-gradient(to top, #090a0f 0%, rgba(9, 10, 15, 0.85) 15%, transparent 50%),
    linear-gradient(to bottom, rgba(9, 10, 15, 0.65) 0%, transparent 22%);
  pointer-events: none;
}

.hero-bottom-content {
  position: relative;
  z-index: 10;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

.hero-text-block {
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-series-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  width: fit-content;
  backdrop-filter: blur(8px);
}

.mini-z {
  background: var(--red-primary);
  color: #fff;
  font-weight: 900;
  font-family: var(--font-brand);
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
}

.hero-title {
  font-family: var(--font-main);
  font-size: clamp(24px, 5.2vw, 44px);
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
  letter-spacing: -0.5px;
}

.hero-tagline {
  font-size: clamp(13px, 2.5vw, 15px);
  color: var(--text-secondary);
  line-height: 1.4;
  max-width: 60ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.hero-badges-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.match-badge {
  color: var(--green-match);
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.exclusive-badge {
  background: rgba(229, 9, 20, 0.2);
  border: 1px solid rgba(229, 9, 20, 0.4);
  color: #ff6b7a;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.quality-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.hero-btn-play {
  background: #ffffff;
  color: #000000;
  border: none;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 11px 26px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.25);
}

.hero-btn-play:hover {
  background: #e6e6e6;
  transform: scale(1.03);
}

.hero-btn-list {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.hero-btn-list:hover {
  background: rgba(255, 255, 255, 0.25);
}

.hero-btn-list.active {
  background: var(--red-gradient);
  border-color: var(--red-primary);
}

/* Hero Carousel Arrow Controls */
.hero-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(10, 11, 16, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
  font-size: 16px;
}
.hero-nav-arrow:hover {
  background: var(--red-primary);
  border-color: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 18px rgba(229, 9, 20, 0.65);
}
.hero-prev { left: 20px; }
.hero-next { right: 20px; }

/* Hero Carousel Pagination Dots */
.hero-carousel-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.strip-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.c-dot {
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
}

.c-dot.active {
  background: var(--red-primary);
  width: 38px;
  box-shadow: 0 0 10px var(--red-glow);
}

/* ==========================================================================
   Main Catalog Experience
   ========================================================================== */
.games-catalog {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Filter Status Bar */
.filter-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 16px;
}

.status-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-primary);
  box-shadow: 0 0 8px var(--red-glow);
}

.btn-reset-filter {
  background: none;
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-family: inherit;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-reset-filter:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Shelves */
.catalog-shelf {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shelf-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.red-bar {
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: var(--red-primary);
  box-shadow: 0 0 10px var(--red-glow);
}

.cyan-bar {
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: linear-gradient(180deg, #00f0ff, #0088ff);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}

.shelf-badge-neon {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.35);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

.recent-progress-pill {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(8, 12, 22, 0.92);
  border: 1px solid #00f0ff;
  color: #00f0ff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
  backdrop-filter: blur(6px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5px;
}
.recent-progress-pill i {
  color: #00f0ff;
  font-size: 0.65rem;
}

.shelf-title {
  font-size: clamp(1.1rem, 2.8vw, 1.4rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
}

/* ==========================================================================
   Trending Carousel Shelf (Horizontal Scroll Track on Mobile)
   ========================================================================== */
.shelf-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.shelf-carousel::-webkit-scrollbar {
  display: none;
}

/* Trending Card (Widescreen 16:9) */
.trending-card {
  flex: 0 0 280px;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

@media (min-width: 768px) {
  .trending-card {
    flex: 0 0 340px;
  }
}

.trending-card:hover {
  transform: translateY(-4px);
  border-color: var(--red-primary);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.8), 0 0 16px var(--red-glow);
}

.trending-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.trending-card:hover .trending-img {
  transform: scale(1.05);
}

.trending-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(9, 10, 15, 0.95) 0%,
    rgba(9, 10, 15, 0.7) 40%,
    transparent 80%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 12px;
}

.top-tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tag-orig {
  background: var(--red-primary);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.card-fav-btn {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.card-fav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.card-fav-btn.active {
  background: var(--red-primary);
  color: #fff;
}

.bottom-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-title-text {
  font-weight: 800;
  font-size: 0.92rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-genre-text {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.mini-play-btn {
  background: #ffffff;
  color: #000;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  transition: transform 0.2s ease;
}

.trending-card:hover .mini-play-btn {
  transform: scale(1.12);
  background: var(--red-primary);
  color: #fff;
}

/* ==========================================================================
   All Games Grid (2-Columns on Mobile, 4-Columns on Desktop)
   ========================================================================== */
.all-games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .all-games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .all-games-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

/* Game Card (Poster Aspect Ratio) */
.game-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--red-primary);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7), 0 0 14px var(--red-glow);
}

.card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #000;
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-card:hover .card-thumb {
  transform: scale(1.06);
}

.card-badge-orig {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--red-primary);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.card-badge-quality {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(9, 10, 16, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #38bdf8;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.4px;
  backdrop-filter: blur(6px);
}

.card-fav-corner {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s;
}

.card-fav-corner.active {
  background: var(--red-primary);
}

.card-details {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-genre-pill {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-game-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-play-action {
  font-size: 0.75rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-play-action i {
  color: var(--red-primary);
  font-size: 0.75rem;
}

.card-tech-tag {
  font-size: 0.65rem;
  color: var(--green-match);
  font-weight: 700;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-subtle);
}

.empty-icon {
  font-size: 2.5rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.empty-state h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.playzora-footer {
  border-top: 1px solid var(--border-subtle);
  background: #06070a;
  padding: 30px 16px 20px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 50ch;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--red-primary);
}

.footer-copy {
  font-size: 0.72rem;
  color: #4b5563;
  margin-top: 8px;
}

/* ==========================================================================
   Cinema Modal Player (Edge-to-Edge Fullscreen on Mobile)
   ========================================================================== */
.theater-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.theater-modal.active {
  display: flex;
}

.theater-dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.theater-window {
  position: relative;
  z-index: 10001;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  background: #000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 900px) {
  .theater-window {
    width: 94vw;
    height: 92vh;
    max-width: 1280px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 30px var(--red-glow);
  }
}

.theater-hud {
  height: 44px;
  background: #0d0f15;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  flex-shrink: 0;
}

.hud-game-info {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.hud-z {
  background: var(--red-primary);
  color: #fff;
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 11px;
  padding: 2px 5px;
  border-radius: 3px;
}

.hud-title {
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-genre {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: none;
}

@media (min-width: 600px) {
  .hud-genre {
    display: inline-block;
  }
}

.hud-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.hud-btn {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}

.hud-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hud-btn.hud-close:hover {
  background: var(--red-primary);
  border-color: var(--red-primary);
}

.theater-screen {
  flex: 1;
  width: 100%;
  height: calc(100% - 44px);
  background: #000;
  position: relative;
  overflow: hidden;
}

.theater-screen iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Toast */
.toast-popup {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e2230;
  border: 1px solid var(--border-card);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.toast-popup.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-popup i {
  color: var(--red-primary);
}

/* ==========================================================================
   Mobile Specific Layout Fixes (Screenshots Solution)
   ========================================================================== */
@media (max-width: 600px) {
  .nav-main-bar {
    height: 52px;
    padding: 0 12px;
    gap: 10px;
  }
  
  .brand-sub {
    display: none;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .logo-emblem {
    width: 30px;
    height: 30px;
  }

  .emblem-svg {
    width: 18px;
    height: 18px;
  }

  .nav-icon-btn {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }

  .pills-scroll-track {
    padding: 6px 12px;
    gap: 6px;
  }

  .cat-pill {
    font-size: 0.76rem;
    padding: 5px 11px;
  }

  .hero-cinematic {
    height: auto;
    min-height: auto;
    display: flex;
    flex-direction: column;
    background: #090a0f;
    padding-bottom: 8px;
  }

  .hero-bg-poster {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    background-size: cover;
    background-position: center center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #090a0f 0%, rgba(9, 10, 15, 0.4) 30%, transparent 60%);
    pointer-events: none;
  }

  .hero-bottom-content {
    position: relative;
    padding: 12px 14px 10px;
    gap: 8px;
    max-width: 100%;
    background: #090a0f;
  }

  .hero-text-block {
    max-width: 100%;
    gap: 6px;
  }

  .hero-title {
    font-size: 1.35rem;
    line-height: 1.15;
    letter-spacing: -0.3px;
  }

  .hero-tagline {
    font-size: 0.8rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-badges-row {
    gap: 6px;
    margin: 2px 0;
  }

  .match-badge {
    font-size: 0.74rem;
  }

  .exclusive-badge, .quality-badge {
    font-size: 0.68rem;
    padding: 2px 6px;
  }

  .hero-nav-arrow {
    display: none;
  }

  .hero-actions-row {
    width: 100%;
    gap: 8px;
    margin-top: 4px;
  }

  .hero-btn-play {
    flex: 1.2;
    justify-content: center;
    padding: 10px 14px;
    font-size: 0.88rem;
    font-weight: 800;
  }

  .hero-btn-list {
    flex: 1;
    justify-content: center;
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  .hero-carousel-strip {
    margin-top: 4px;
    justify-content: space-between;
  }

  .games-catalog {
    padding: 16px 12px 30px;
    gap: 20px;
  }

  .trending-card {
    flex: 0 0 240px;
  }
}

/* SEO Rich Content & FAQ Section */
.seo-rich-section {
  padding: 40px 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(12, 14, 22, 0.95) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.seo-container {
  max-width: 1200px;
  margin: 0 auto;
}
.seo-header {
  text-align: center;
  margin-bottom: 32px;
}
.seo-title {
  font-family: var(--font-brand);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.seo-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.6;
}
.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.seo-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.2s, border-color 0.2s;
}
.seo-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 240, 255, 0.3);
}
.seo-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(229, 9, 20, 0.15);
  border: 1px solid rgba(229, 9, 20, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-primary);
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.seo-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}
.seo-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}
.seo-faq-wrap {
  background: rgba(16, 18, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 28px 24px;
}
.faq-heading {
  font-family: var(--font-brand);
  font-size: 1.3rem;
  font-weight: 800;
  color: #00f0ff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 18px;
}
.faq-question {
  font-weight: 700;
  font-size: 0.96rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
}
.faq-answer {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* SEO Game Directory & Tags Cloud Styling */
.seo-keywords-directory {
  margin-top: 36px;
  background: rgba(14, 16, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.seo-dir-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.seo-dir-title i {
  color: #ff2a4b;
}
.seo-dir-group h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.seo-dir-group h4 i {
  color: #ff3b5c;
  font-size: 0.9rem;
}
.seo-dir-group p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.seo-dir-group a {
  color: #ff3b5c;
  text-decoration: underline;
  font-weight: 600;
}
.seo-tags-cloud {
  margin-top: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.seo-cloud-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  margin-right: 4px;
}
.seo-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.seo-tag:hover {
  background: rgba(255, 42, 75, 0.15);
  border-color: rgba(255, 42, 75, 0.4);
  color: #fff;
}

/* ==========================================================================
   PlayZora Originals Brand Promo Showcase Banner
   ========================================================================== */
.brand-promo-banner-wrap {
  width: 100%;
  margin: 10px 0 16px;
}

.promo-banner-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 6.5;
  min-height: 220px;
  max-height: 320px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 42, 75, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(229, 9, 20, 0.25);
  background: #090a10;
  display: flex;
  align-items: center;
}

.promo-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  filter: brightness(0.85);
  transition: transform 0.6s ease;
}

.promo-banner-card:hover .promo-banner-bg {
  transform: scale(1.02);
}

.promo-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #090a10 0%, rgba(9, 10, 16, 0.92) 45%, rgba(9, 10, 16, 0.4) 75%, transparent 100%);
  display: flex;
  align-items: center;
  padding: 24px 32px;
}

.promo-content {
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 42, 75, 0.18);
  border: 1px solid rgba(255, 42, 75, 0.5);
  color: #ff3b5c;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.promo-heading {
  font-family: var(--font-brand);
  font-size: clamp(1.3rem, 3.2vw, 2.2rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.5px;
  line-height: 1.1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}

.promo-sub {
  font-size: clamp(0.82rem, 1.8vw, 0.92rem);
  color: #cbd5e1;
  line-height: 1.45;
  margin: 0;
}

.promo-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.promo-features span {
  font-size: 0.76rem;
  font-weight: 700;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
}

.promo-features span i {
  color: #ff2a4b;
}

@media (max-width: 768px) {
  .promo-banner-card {
    aspect-ratio: auto;
    min-height: 260px;
  }
  .promo-banner-overlay {
    background: linear-gradient(180deg, rgba(9, 10, 16, 0.3) 0%, rgba(9, 10, 16, 0.95) 60%, #090a10 100%);
    align-items: flex-end;
    padding: 16px 14px;
  }
  .promo-content {
    max-width: 100%;
  }
}

/* ==========================================================================
   PWA Install Bar (Floating Smart App Banner)
   ========================================================================== */
.pwa-install-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 999;
  width: calc(100% - 32px);
  max-width: 520px;
  background: rgba(14, 16, 26, 0.95);
  border: 1px solid rgba(255, 42, 75, 0.4);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75), 0 0 20px rgba(229, 9, 20, 0.3);
  border-radius: 16px;
  padding: 12px 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-install-bar.visible {
  transform: translateX(-50%) translateY(0);
}

.pwa-install-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pwa-app-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.4);
}

.pwa-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pwa-app-info {
  flex: 1;
  min-width: 0;
}

.pwa-app-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.2px;
}

.pwa-app-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.pwa-app-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pwa-btn-install {
  background: var(--red-gradient);
  border: 1px solid var(--red-primary);
  color: #fff;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 0 14px var(--red-glow);
}

.pwa-btn-install:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 42, 75, 0.7);
}

.pwa-btn-dismiss {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s ease;
}

.pwa-btn-dismiss:hover {
  color: #fff;
}

/* ==========================================================================
   Theater HUD Like Button & Controls Drawer
   ========================================================================== */
.hud-like-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  width: auto !important;
  padding: 0 10px !important;
  font-size: 0.76rem !important;
  font-weight: 700;
  color: #94a3b8 !important;
}
.hud-like-btn.liked {
  color: #ff3b5c !important;
  border-color: #ff3b5c !important;
  box-shadow: 0 0 12px rgba(255, 59, 92, 0.4) !important;
}
.hud-like-btn.liked i {
  animation: heartPop 0.35s ease;
}
@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.theater-controls-drawer {
  background: rgba(13, 16, 24, 0.96);
  border-bottom: 1px solid rgba(0, 240, 255, 0.25);
  padding: 8px 16px;
  animation: drawerSlide 0.25s ease;
  backdrop-filter: blur(12px);
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
@keyframes drawerSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.controls-drawer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.controls-drawer-content h4 {
  color: #00f0ff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 0;
  white-space: nowrap;
}
.btn-drawer-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}
.btn-drawer-close:hover {
  color: #fff;
}

/* Desktop Shortcuts Floating Pill */
.desktop-shortcuts-pill {
  position: fixed;
  bottom: 14px;
  right: 18px;
  background: rgba(14, 18, 27, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 0.7rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  z-index: 25;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.desktop-shortcuts-pill i {
  color: var(--red-primary);
}
.desktop-shortcuts-pill b {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 4px;
  border-radius: 3px;
}
@media (max-width: 1024px) {
  .desktop-shortcuts-pill { display: none; }
}

/* Random Game Dice Roll Animation */
.dice-spinning {
  animation: diceRollAnim 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes diceRollAnim {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.35) rotate(360deg); color: #ff3b5c; }
  100% { transform: scale(1) rotate(720deg); }
}

/* ==========================================================================
   PWA Interactive Install Modal
   ========================================================================== */
.pwa-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 10, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.pwa-modal-card {
  background: linear-gradient(180deg, #16192b 0%, #0c0d16 100%);
  border: 1px solid rgba(255, 42, 75, 0.45);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(229, 9, 20, 0.35);
  border-radius: 24px;
  width: 100%;
  max-width: 480px;
  padding: 24px;
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-modal-backdrop.active .pwa-modal-card {
  transform: translateY(0) scale(1);
}

.pwa-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.pwa-modal-close:hover {
  background: rgba(255, 42, 75, 0.6);
  transform: rotate(90deg);
}

.pwa-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.pwa-modal-icon-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.pwa-modal-icon {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.5);
}

.pwa-badge-verified {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #22c55e;
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  border: 2px solid #0c0d16;
}

.pwa-modal-titles h3 {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  margin: 0 0 4px 0;
  letter-spacing: -0.3px;
}

.pwa-modal-titles p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 0 6px 0;
}

.pwa-stars-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pwa-stars-row .stars {
  color: #f59e0b;
  font-size: 0.85rem;
  letter-spacing: 2px;
}

.pwa-rating-count {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
}

.pwa-perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 20px;
}

.pwa-perk-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.pwa-perk-item .perk-ico {
  color: #ff3b5c;
  font-size: 1rem;
}

.pwa-perk-item b {
  font-size: 0.72rem;
  color: #fff;
  line-height: 1.1;
}

.pwa-perk-item small {
  font-size: 0.62rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.pwa-device-tabs {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.pwa-tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: #94a3b8;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 6px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.pwa-tab-btn.active {
  background: linear-gradient(135deg, rgba(255, 42, 75, 0.3) 0%, rgba(229, 9, 20, 0.2) 100%);
  color: #fff;
  border: 1px solid rgba(255, 42, 75, 0.5);
  box-shadow: 0 2px 10px rgba(229, 9, 20, 0.3);
}

.pwa-tab-content {
  display: none;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.pwa-tab-content.active {
  display: flex;
}

.pwa-step-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 14px;
}

.pwa-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ff2a4b;
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(255, 42, 75, 0.5);
}

.pwa-step-text {
  font-size: 0.8rem;
  color: #e2e8f0;
  line-height: 1.35;
}

.pwa-step-text b {
  color: #ffd54f;
}

.pwa-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pwa-btn-direct-install {
  width: 100%;
  background: linear-gradient(135deg, #ff2a4b 0%, #b70914 100%);
  border: 1px solid #ff4d6d;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 14px 20px;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 0 24px rgba(255, 42, 75, 0.5);
  transition: all 0.25s ease;
}

.pwa-btn-direct-install:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(255, 42, 75, 0.8);
}

/* ==========================================================================
   Real-Time Gaming Arena Stats Ticker
   ========================================================================== */
.live-stats-ribbon {
  width: 100%;
  background: linear-gradient(90deg, rgba(20, 10, 25, 0.95) 0%, rgba(10, 12, 22, 0.98) 50%, rgba(20, 10, 25, 0.95) 100%);
  border-top: 1px solid rgba(255, 42, 75, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 0;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 20px rgba(0, 0, 0, 0.5);
}

.stats-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
}

@media (max-width: 768px) {
  .live-stats-ribbon {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .live-stats-ribbon::-webkit-scrollbar {
    display: none;
  }
  .stats-track {
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 0 12px;
    gap: 10px;
  }
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 13px;
  border-radius: 20px;
  font-size: 0.76rem;
  color: #cbd5e1;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.stat-pill:hover {
  background: rgba(255, 42, 75, 0.18);
  border-color: rgba(255, 42, 75, 0.5);
  color: #fff;
  transform: translateY(-1px);
}

.pulse-dot.green {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
  animation: pulseGreen 1.8s infinite ease-in-out;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.theater-screen iframe {
  position: relative;
  z-index: 1;
  background: #000;
}


