/* ==========================================================================
   SMALL GAMES MASTER DESIGN SYSTEM 3.0 (NEXT-GEN GAMING PORTAL)
   Inspired by Steam Deck UI, Epic Games Store, and Apple Arcade
   ========================================================================== */

:root {
  /* Ultra-Deep Obsidian Canvas */
  --sg-bg: #030508;
  --sg-bg-mesh: 
    radial-gradient(ellipse 90% 60% at 50% -20%, rgba(0, 255, 136, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 20%, rgba(0, 240, 255, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 15% 45%, rgba(167, 139, 250, 0.05) 0%, transparent 60%),
    #030508;

  /* Surfaces & Glassmorphism */
  --sg-surface-subtle: rgba(11, 15, 22, 0.6);
  --sg-surface: rgba(14, 19, 28, 0.82);
  --sg-surface-elevated: rgba(20, 27, 40, 0.9);
  --sg-surface-hover: rgba(28, 38, 56, 0.95);
  --sg-border: rgba(255, 255, 255, 0.09);
  --sg-border-subtle: rgba(255, 255, 255, 0.05);
  --sg-border-glow: rgba(0, 255, 136, 0.55);

  /* High-Impact Neon Accents */
  --sg-neon-green: #00ff88;
  --sg-neon-green-glow: rgba(0, 255, 136, 0.35);
  --sg-neon-cyan: #00f0ff;
  --sg-neon-cyan-glow: rgba(0, 240, 255, 0.35);
  --sg-neon-purple: #c084fc;
  --sg-neon-purple-glow: rgba(192, 132, 252, 0.3);
  --sg-neon-gold: #fbbf24;
  --sg-neon-gold-glow: rgba(251, 191, 36, 0.35);
  --sg-neon-red: #ff4757;

  /* Typography Colors */
  --sg-text-white: #ffffff;
  --sg-text-primary: #f3f5f8;
  --sg-text-secondary: #94a3b8;
  --sg-text-muted: #64748b;

  /* Elevations & Shadows */
  --sg-shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.6);
  --sg-shadow-glow: 0 0 35px rgba(0, 255, 136, 0.22);
  --sg-shadow-glow-cyan: 0 0 35px rgba(0, 240, 255, 0.22);
  --sg-shadow-hero: 0 25px 80px -15px rgba(0, 0, 0, 0.8);

  /* Radii */
  --sg-r-pill: 9999px;
  --sg-r-card: 20px;
  --sg-r-stage: 28px;
  --sg-r-btn: 12px;
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background: var(--sg-bg);
  color: var(--sg-text-primary);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--sg-bg-mesh);
  color: var(--sg-text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

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

/* Container Shell */
.sg-shell {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   1. FLOATING ISLAND DOCK NAVIGATION
   -------------------------------------------------------------------------- */
.sg-dock-wrap {
  position: sticky;
  top: 16px;
  z-index: 1000;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 24px;
}

.sg-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  border-radius: var(--sg-r-pill);
  background: rgba(10, 14, 22, 0.78);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--sg-border);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(255, 255, 255, 0.05);
}

.sg-brand-aura {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 950;
  font-size: 15px;
  letter-spacing: -0.3px;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

.sg-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 136, 0.35);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
  object-fit: cover;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sg-brand-aura:hover .sg-brand-mark {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 0 28px rgba(0, 255, 136, 0.55);
}

.sg-brand-text {
  font-weight: 950;
  background: linear-gradient(135deg, #ffffff 40%, var(--sg-neon-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.sg-nav-pills {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sg-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--sg-r-pill);
  font-size: 11.5px;
  font-weight: 800;
  color: var(--sg-text-secondary);
  transition: all 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
  user-select: none;
}

.sg-nav-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.sg-nav-pill.active {
  color: #030804;
  background: var(--sg-neon-green);
  font-weight: 900;
  box-shadow: 0 0 18px var(--sg-neon-green-glow);
}

.sg-dock-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Quick Search / Command Palette Button */
.sg-cmd-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--sg-r-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--sg-border);
  color: var(--sg-text-secondary);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.sg-cmd-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(0, 255, 136, 0.4);
}

.sg-cmd-kbd {
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 9px;
  font-family: ui-monospace, monospace;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Audio Visualizer Button */
.sg-dock-audio {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--sg-border);
  background: rgba(20, 27, 40, 0.8);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.sg-dock-audio:hover {
  border-color: var(--sg-neon-green);
  box-shadow: 0 0 16px var(--sg-neon-green-glow);
  transform: scale(1.08);
}

.sg-dock-audio.muted {
  opacity: 0.5;
  filter: grayscale(1);
}

/* --------------------------------------------------------------------------
   2. FULL-BLEED CINEMATIC HERO STAGE
   -------------------------------------------------------------------------- */
.sg-cinema-stage {
  position: relative;
  border-radius: var(--sg-r-stage);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--sg-shadow-hero);
  background: #070a0f;
  margin-bottom: 40px;
}

.sg-cinema-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65) saturate(1.2);
  transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sg-cinema-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(90deg, rgba(3, 5, 8, 0.95) 0%, rgba(3, 5, 8, 0.7) 45%, rgba(3, 5, 8, 0.3) 100%),
    linear-gradient(0deg, rgba(3, 5, 8, 0.98) 0%, transparent 40%);
  pointer-events: none;
}

.sg-cinema-content {
  position: relative;
  z-index: 2;
  padding: 56px 48px 36px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sg-cinema-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sg-cinema-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--sg-r-pill);
  background: rgba(0, 255, 136, 0.14);
  border: 1px solid rgba(0, 255, 136, 0.4);
  color: var(--sg-neon-green);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.2);
}

.sg-cinema-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sg-neon-green);
  box-shadow: 0 0 10px var(--sg-neon-green);
  animation: sg-pulse-glow 2s infinite ease-in-out;
}

@keyframes sg-pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

.sg-cinema-info {
  max-width: 620px;
  margin-top: 18px;
}

.sg-cinema-title {
  font-size: clamp(48px, 6.5vw, 76px);
  font-weight: 950;
  line-height: 0.94;
  letter-spacing: -3.5px;
  margin: 0 0 16px;
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
}

.sg-cinema-desc {
  font-size: 15.5px;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0 0 26px;
}

.sg-cinema-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.sg-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--sg-text-secondary);
  font-size: 11px;
  font-weight: 700;
}

.sg-meta-chip b {
  color: #fff;
}

/* Giant Pulsing Quick Play Launch Button */
.sg-btn-launcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 32px;
  border-radius: 16px;
  background: linear-gradient(135deg, #00ff88 0%, #00f0ff 100%);
  color: #030804;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.4px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 0 32px rgba(0, 255, 136, 0.5), 0 10px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  user-select: none;
}

.sg-btn-launcher:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 45px rgba(0, 255, 136, 0.8), 0 14px 30px rgba(0, 0, 0, 0.5);
  filter: brightness(1.08);
}

.sg-btn-launcher:active {
  transform: translateY(1px) scale(0.99);
}

/* Hero Carousel Mini-Tile Switcher (Bottom of Cinema Stage) */
.sg-switcher-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  scrollbar-width: none;
}
.sg-switcher-rail::-webkit-scrollbar { display: none; }

.sg-switcher-card {
  flex: 0 0 190px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.sg-switcher-card:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(0, 255, 136, 0.4);
  transform: translateY(-2px);
}

.sg-switcher-card.active {
  background: rgba(0, 255, 136, 0.12);
  border-color: var(--sg-neon-green);
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.25);
}

.sg-switcher-card img {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  object-fit: cover;
}

.sg-switcher-card strong {
  display: block;
  font-size: 12px;
  font-weight: 850;
  color: #fff;
}

.sg-switcher-card span {
  display: block;
  font-size: 9.5px;
  color: var(--sg-text-muted);
}

/* --------------------------------------------------------------------------
   3. COMMUNITY PULSE TICKER
   -------------------------------------------------------------------------- */
.sg-pulse-ticker {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border-radius: var(--sg-r-pill);
  background: var(--sg-surface-subtle);
  border: 1px solid var(--sg-border-subtle);
  margin-bottom: 36px;
  overflow: hidden;
}

.sg-ticker-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: var(--sg-neon-cyan);
  text-transform: uppercase;
  flex-shrink: 0;
}

.sg-ticker-track {
  display: flex;
  gap: 28px;
  font-size: 11.5px;
  color: var(--sg-text-secondary);
  white-space: nowrap;
}

.sg-ticker-track b {
  color: #fff;
}

/* --------------------------------------------------------------------------
   4. CINEMATIC POSTER GAME TILES (UNOBSTRUCTED ARTWORK ARCHITECTURE)
   -------------------------------------------------------------------------- */
.sg-filter-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.sg-filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sg-filter-pill {
  padding: 8px 16px;
  border-radius: var(--sg-r-pill);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--sg-border);
  color: var(--sg-text-secondary);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.16s ease;
  user-select: none;
}

.sg-filter-pill:hover, .sg-filter-pill.active {
  background: var(--sg-neon-green);
  border-color: var(--sg-neon-green);
  color: #030804;
  font-weight: 900;
  box-shadow: 0 0 16px var(--sg-neon-green-glow);
}

.sg-poster-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.sg-poster-card {
  position: relative;
  border-radius: var(--sg-r-card);
  overflow: hidden;
  background: var(--sg-surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--sg-border);
  box-shadow: var(--sg-shadow-card);
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.28s ease,
              border-color 0.28s ease;
  display: flex;
  flex-direction: column;
}

.sg-poster-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--sg-neon-green);
  box-shadow: var(--sg-shadow-glow), 0 20px 48px -10px rgba(0, 0, 0, 0.8);
  z-index: 10;
}

/* Cover Art Container - 100% unobstructed */
.sg-poster-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #080c14;
}

.sg-poster-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sg-poster-card:hover .sg-poster-cover img {
  transform: scale(1.06);
}

.sg-poster-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sg-neon-green);
  color: #030804;
  display: grid;
  place-items: center;
  font-size: 16px;
  box-shadow: 0 0 25px var(--sg-neon-green);
  opacity: 0;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 4;
}

.sg-poster-card:hover .sg-poster-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Structured Card Body Below Cover */
.sg-poster-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  background: rgba(14, 19, 28, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sg-poster-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sg-poster-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--sg-r-pill);
  background: rgba(0, 255, 136, 0.12);
  border: 1px solid rgba(0, 255, 136, 0.35);
  color: var(--sg-neon-green);
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.sg-poster-genre {
  font-size: 9.5px;
  color: var(--sg-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sg-poster-title {
  font-size: 16.5px;
  font-weight: 950;
  letter-spacing: -0.4px;
  color: #fff;
  margin: 2px 0 0;
}

.sg-poster-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.sg-poster-tag {
  font-size: 8.5px;
  font-weight: 800;
  color: var(--sg-text-secondary);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 5px;
}
/* --------------------------------------------------------------------------
   5. ESPORTS ARENA: TOURNAMENT & PODIUM SPLIT
   -------------------------------------------------------------------------- */
.sg-arena-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 56px;
}

.sg-arena-card {
  padding: 28px;
  border-radius: var(--sg-r-card);
  background: var(--sg-surface);
  backdrop-filter: blur(18px);
  border: 1px solid var(--sg-border);
  box-shadow: var(--sg-shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sg-arena-daily {
  border-color: rgba(0, 255, 136, 0.3);
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.06) 0%, rgba(14, 19, 28, 0.95) 100%);
}

.sg-arena-weekly {
  border-color: rgba(251, 191, 36, 0.3);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.06) 0%, rgba(14, 19, 28, 0.95) 100%);
}

.sg-arena-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.sg-arena-head h3 {
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -0.6px;
  margin: 6px 0 0;
  color: #fff;
}

.sg-arena-kicker {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sg-clock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--sg-r-pill);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--sg-border);
  color: #fff;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 800;
}

.sg-podium-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.sg-podium-slot {
  padding: 14px 10px;
  border-radius: 14px;
  background: rgba(10, 14, 22, 0.7);
  border: 1px solid var(--sg-border-subtle);
  text-align: center;
}

.sg-podium-rank {
  font-size: 18px;
  margin-bottom: 4px;
}

.sg-podium-name {
  font-size: 11px;
  font-weight: 850;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sg-podium-pts {
  font-size: 9.5px;
  color: var(--sg-neon-gold);
  font-weight: 900;
}

/* --------------------------------------------------------------------------
   6. COMMAND PALETTE MODAL (⌘K)
   -------------------------------------------------------------------------- */
.sg-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(3, 5, 8, 0.85);
  backdrop-filter: blur(20px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.sg-modal-backdrop.hidden {
  display: none;
}

.sg-cmd-modal {
  width: min(580px, 100%);
  background: rgba(14, 19, 28, 0.96);
  border: 1px solid var(--sg-border);
  border-radius: 22px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 255, 136, 0.15);
  overflow: hidden;
}

.sg-cmd-input-wrap {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--sg-border);
  gap: 12px;
}

.sg-cmd-input-wrap input {
  width: 100%;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  outline: none;
}

.sg-cmd-list {
  max-height: 340px;
  overflow-y: auto;
  padding: 10px;
}

.sg-cmd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.sg-cmd-item:hover, .sg-cmd-item.selected {
  background: rgba(0, 255, 136, 0.12);
}

.sg-cmd-item img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
}

.sg-cmd-item strong {
  display: block;
  font-size: 13px;
  color: #fff;
}

.sg-cmd-item span {
  display: block;
  font-size: 9.5px;
  color: var(--sg-text-muted);
}

/* --------------------------------------------------------------------------
   RESPONSIVE LAYOUT
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .sg-poster-grid { grid-template-columns: repeat(3, 1fr); }
  .sg-cinema-content { padding: 40px 32px 28px; }
  .sg-cinema-title { font-size: 52px; }
}

@media (max-width: 820px) {
  .sg-dock-wrap { width: calc(100% - 24px); }
  .sg-nav-pills { display: none; }
  .sg-arena-section { grid-template-columns: 1fr; }
  .sg-poster-grid { grid-template-columns: repeat(2, 1fr); }
  .sg-cinema-content { padding: 32px 24px 24px; }
  .sg-cinema-title { font-size: 44px; letter-spacing: -2.5px; }
  .sg-btn-launcher { width: 100%; }
}

@media (max-width: 480px) {
  .sg-poster-grid { grid-template-columns: 1fr; }
  .sg-cinema-title { font-size: 38px; }
}

/* Top Announcement Strip */
.sg-top-strip {
  background: linear-gradient(90deg, #00ff88 0%, #00f0ff 100%);
  color: #030804;
  padding: 8px 16px;
  text-align: center;
  user-select: none;
  border-bottom: 1px solid rgba(0, 255, 136, 0.3);
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.2);
}

/* UNIVERSAL GAME OVER & MODAL OVERLAY VIEWPORT FIX
   Guarantees that game over modals, stats grids, score breakdowns,
   share cards, and replay/play-again action buttons are 100% visible
   and smoothly scrollable on all screen heights and devices. */
.overlay {
  position: absolute !important;
  inset: 0 !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 16px 14px 36px !important;
  z-index: 50 !important;
  pointer-events: auto !important;
}

.overlay.hidden,
[hidden].overlay {
  display: none !important;
}

.overlay > .modal,
.overlay > .dialog,
.overlay > .sg-modal {
  margin: auto !important;
  max-height: none !important;
  width: min(540px, 100%) !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}

/* --------------------------------------------------------------------------
   MOBILE RESPONSIVENESS: DOCK FITTING, TOP STRIP & ZERO HORIZONTAL SCROLL
   -------------------------------------------------------------------------- */
html, body {
  max-width: 100% !important;
  overflow-x: hidden !important;
  position: relative;
}

.sg-top-strip-mobile {
  display: none;
}

@media (max-width: 768px) {
  /* Top strip: single ultra-clean line, never wrapped, exactly 24px height */
  .sg-top-strip {
    padding: 3px 8px !important;
    height: 24px !important;
    line-height: 24px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .sg-top-strip > div {
    height: 100% !important;
    font-size: 9.5px !important;
    letter-spacing: 0.4px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    justify-content: center !important;
    display: flex !important;
    align-items: center !important;
  }
  .sg-top-strip-full {
    display: none !important;
  }
  .sg-top-strip-mobile {
    display: inline !important;
  }

  /* Floating dock wrap & container: perfectly centered, zero horizontal overflow */
  .sg-dock-wrap {
    width: calc(100% - 16px) !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    top: 6px !important;
    margin: 6px auto 14px !important;
  }
  .sg-dock {
    padding: 6px 10px !important;
    gap: 6px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Desktop-only controls hidden on mobile to eliminate dock overflow */
  .sg-cmd-btn,
  .sg-dock [data-sg-share-site] {
    display: none !important;
  }

  /* Brand mark & title */
  .sg-brand-aura {
    gap: 6px !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
  }
  .sg-brand-mark {
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
  }
  .sg-brand-text {
    font-size: 13px !important;
    letter-spacing: 0.1px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Right actions */
  .sg-dock-actions {
    gap: 5px !important;
    flex-shrink: 0 !important;
  }
  .sg-dock-audio,
  .sg-dock .sg-notify-bell {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    flex-shrink: 0 !important;
  }
  .sg-dock-audio svg {
    width: 15px !important;
    height: 15px !important;
  }
  .sg-dock #authBtn,
  .sg-dock .sg-signin,
  .sg-dock .sg-btn-ghost {
    padding: 5px 10px !important;
    font-size: 11px !important;
    min-height: 28px !important;
    line-height: 1 !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    letter-spacing: 0 !important;
    flex-shrink: 0 !important;
  }
}

@media (max-width: 360px) {
  .sg-brand-text {
    font-size: 11.5px !important;
  }
  .sg-dock {
    padding: 5px 8px !important;
    gap: 4px !important;
  }
  .sg-dock #authBtn {
    padding: 4px 8px !important;
    font-size: 10px !important;
  }
}
