/* Gaming-Themed Navigation Styles */
.gaming-navbar {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1400px;
  z-index: 1050;
  background: rgba(10, 10, 10, 0.4);
  border: 2px solid #ff4444;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(255, 68, 68, 0.15), 
              0 8px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0 1.5rem;
  transition: all 0.3s ease;
}

.gaming-navbar:hover {
  background: rgba(10, 10, 10, 0.6);
  border-color: rgba(255, 68, 68, 0.5);
  box-shadow: 0 6px 25px rgba(255, 68, 68, 0.2),
              0 10px 50px rgba(0, 0, 0, 0.4);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.5rem;
  gap: 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 10px #00ff88);
}

.nav-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #00ff88;
  text-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
  letter-spacing: 1px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-btn, .menu-btn {
  background: linear-gradient(135deg, #00ff88, #00cc6a);
  border: none;
  border-radius: 6px;
  padding: 0.5rem;
  color: #000;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 1px 4px rgba(255, 68, 68, 0.2);
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover, .menu-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
}

.hamburger {
  font-size: 1.2rem;
  color: #000;
  transition: all 0.3s ease;
  display: block;
}

.menu-btn.active .hamburger {
  transform: rotate(90deg);
  color: #00ff88;
}

/* Gaming Side Panel */
.gaming-side-panel {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 360px;
  height: calc(100vh - 2rem);
  background: rgba(10, 10, 10, 0.75);
  border: 2px solid #ff4444;
  border-radius: 20px;
  box-shadow: -5px 0 30px rgba(255, 68, 68, 0.15),
              0 0 50px rgba(0, 0, 0, 0.5);
  z-index: 1060;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow-y: auto;
  overflow-x: hidden;
  will-change: transform;
  /* Hide scrollbar */
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
  transform: translateX(calc(100% + 1rem));
}

.gaming-side-panel::-webkit-scrollbar {
  display: none;  /* Chrome, Safari and Opera */
}

.gaming-side-panel.open {
  transform: translateX(0);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 68, 68, 0.25);
  background: rgba(0, 0, 0, 0.6);
  border-radius: 20px 20px 0 0;
  position: sticky;
  top: 0;
  z-index: 20;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #000;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  background: #00ff88;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
  animation: pillGlow 2s ease-in-out infinite alternate;
  z-index: 10;
  white-space: nowrap;
  max-width: 90%;
}

.panel-logo {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: contain;
}

.panel-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #00ff88;
  font-family: 'Courier New', monospace;
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 68, 68, 0.3);
}

.panel-time i {
  font-size: 0.8rem;
  opacity: 0.8;
}

@keyframes pillGlow {
  0% {
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
  }
  100% {
    box-shadow: 0 4px 16px rgba(255, 68, 68, 0.5);
  }
}


.panel-close {
  background: none;
  border: none;
  color: #00ff88;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-close:hover {
  background: rgba(255, 68, 68, 0.1);
  transform: rotate(90deg);
}

.panel-content {
  padding: 1rem;
  padding-top: 2rem;
}

.user-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  border-radius: 8px;
  border: 1px solid #333;
  margin-bottom: 1.5rem;
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #00ff88, #00cc6a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 1.2rem;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-fallback {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  color: #000;
}

.avatar-initial {
  font-size: 1.2rem;
  font-weight: bold;
  color: #000;
  text-transform: uppercase;
}

.user-info {
  min-width: 0;
}

.user-name {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  color: #fff;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-status {
  color: #888;
  font-size: 0.75rem;
}

.nav-section {
  margin-bottom: 1.5rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #00ff88;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.platform-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.platform-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  border: 1px solid #333;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
}

/* Platform card pseudo effects removed */

.platform-card:hover {
  transform: translateX(3px);
  border-color: rgba(255, 68, 68, 0.4);
  box-shadow: 0 2px 8px rgba(255, 68, 68, 0.1);
}

.platform-card.active {
  background: #1a1a1a;
  color: #fff;
  border: 1px solid rgba(255, 68, 68, 0.5);
  position: relative;
}

.platform-card.active .platform-name,
.platform-card.active .platform-count {
  color: #fff;
}

.platform-card.active::after {
  content: "You're here";
  position: absolute;
  top: -10px;
  right: 6px;
  background: #00ff88;
  color: #000;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.platform-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #333, #555);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #00ff88;
  flex-shrink: 0;
}

.platform-card.active .platform-icon {
  background: #00ff88;
  color: #000;
}

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

.platform-name {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  color: #fff;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.platform-count {
  color: #888;
  font-size: 0.7rem;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  color: #ccc;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  position: relative;
  overflow: visible;
}

.nav-link:hover {
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  color: #00ff88;
  transform: translateX(3px);
}

.nav-link.active {
  background: #1a1a1a;
  color: #fff;
  border: 1px solid rgba(255, 68, 68, 0.5);
  position: relative;
}

/* Nav link "You're here" badge removed */

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  color: #ccc;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 0.85rem;
}

.social-link.youtube:hover {
  background: linear-gradient(135deg, #ff0000, #cc0000);
  color: #fff;
}

.social-link.telegram:hover {
  background: linear-gradient(135deg, #0088cc, #006699);
  color: #fff;
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1070;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 0.5rem;
  font-family: 'Comic Sans MS', 'Fredoka', 'Nunito', cursive, sans-serif !important;
}

.search-overlay.open {
  opacity: 1;
  visibility: visible;
}

.search-container {
  background: rgba(10, 10, 10, 0.5);
  padding: 1.5rem;
  border-radius: 8px;
  border: 2px solid rgba(255, 68, 68, 0.4);
  box-shadow: 0 4px 20px rgba(255, 68, 68, 0.2),
              0 8px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  max-width: 1400px;
  width: 95%;
  font-family: 'Comic Sans MS', 'Fredoka', 'Nunito', cursive, sans-serif !important;
  margin-top: 1rem;
}

.search-form {
  margin-bottom: 0.5rem;
}

.search-input-group {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.search-input {
  flex: 1;
  padding: 1rem 1.25rem;
  background: #0a0a0a;
  border: 1px solid rgba(255, 68, 68, 0.3);
  border-radius: 6px;
  color: #fff;
  font-size: 1.1rem;
  min-height: 50px;
  font-family: 'Comic Sans MS', 'Fredoka', 'Nunito', cursive, sans-serif;
}

.search-input:focus {
  outline: none;
  border-color: rgba(255, 68, 68, 0.6);
  box-shadow: 0 0 15px rgba(255, 68, 68, 0.2);
}

.search-submit {
  background: linear-gradient(135deg, #00ff88, #00cc6a);
  border: none;
  border-radius: 6px;
  padding: 1rem 1.5rem;
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 68, 68, 0.3),
              0 0 20px rgba(255, 68, 68, 0.1);
}

.search-close {
  position: absolute;
  top: -1.25rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 68, 68, 0.1);
  border: 2px solid rgba(255, 68, 68, 0.6);
  color: #ff4444;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.search-close:hover {
  color: #fff;
  background: rgba(255, 68, 68, 0.2);
  border-color: #ff4444;
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(255, 68, 68, 0.4);
}

/* Search Results Styling */
.search-results-container {
  margin-top: 1rem;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  padding: 0.5rem;
  border-radius: 6px;
  background: rgba(10, 10, 10, 0.5);
  font-family: 'Comic Sans MS', 'Fredoka', 'Nunito', cursive, sans-serif !important;
}

.search-results-container::-webkit-scrollbar {
  width: 8px;
}

.search-results-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.search-results-container::-webkit-scrollbar-thumb {
  background: #00ff88;
  border-radius: 4px;
}

.search-results-container::-webkit-scrollbar-thumb:hover {
  background: #00cc6a;
}

/* Placeholder State */
.search-placeholder {
  text-align: center;
  padding: 3rem 1.5rem;
  color: #888;
}

.search-placeholder i {
  font-size: 3rem;
  color: #00ff88;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.search-placeholder h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
  font-family: 'Comic Sans MS', 'Fredoka', 'Nunito', cursive, sans-serif !important;
}

.search-placeholder p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  font-family: 'Comic Sans MS', 'Fredoka', 'Nunito', cursive, sans-serif !important;
}

.search-platforms {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  flex-wrap: wrap;
}

.search-platforms span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 68, 68, 0.08);
  border: 1px solid rgba(255, 68, 68, 0.3);
  border-radius: 8px;
  color: #00ff88;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: 'Comic Sans MS', 'Fredoka', 'Nunito', cursive, sans-serif !important;
}

.search-platforms span i {
  font-size: 0.65rem;
}

/* No Results State */
.search-no-results {
  text-align: center;
  padding: 2rem 1.5rem;
  color: #888;
}

.search-no-results i {
  font-size: 2.5rem;
  color: #ff6b6b;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.search-no-results h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.5rem;
  font-family: 'Comic Sans MS', 'Fredoka', 'Nunito', cursive, sans-serif !important;
}

.search-no-results p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-family: 'Comic Sans MS', 'Fredoka', 'Nunito', cursive, sans-serif !important;
}

.search-tip {
  margin-top: 1rem;
  font-weight: 600;
  color: #00ff88;
  font-family: 'Comic Sans MS', 'Fredoka', 'Nunito', cursive, sans-serif !important;
}

.search-suggestions {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
  text-align: left;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.search-suggestions li {
  padding: 0.3rem 0;
  color: #aaa;
  font-family: 'Comic Sans MS', 'Fredoka', 'Nunito', cursive, sans-serif !important;
}

.search-suggestions li::before {
  content: "• ";
  color: #00ff88;
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Results Header */
.search-results-header {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid rgba(255, 68, 68, 0.25);
  margin-bottom: 1rem;
  font-family: 'Comic Sans MS', 'Fredoka', 'Nunito', cursive, sans-serif !important;
}

.results-count {
  font-size: 1rem;
  font-weight: 600;
  color: #00ff88;
  font-family: 'Comic Sans MS', 'Fredoka', 'Nunito', cursive, sans-serif !important;
}

/* Results Grid */
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  padding: 0.5rem;
}

/* Large Desktop - Show more cards */
@media (min-width: 1200px) {
  .search-results-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.25rem;
  }
}

/* Extra Large Desktop - Maximum cards */
@media (min-width: 1600px) {
  .search-results-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
  }
}

/* Game Card */
.search-game-card {
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(255, 68, 68, 0.2);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  font-family: 'Comic Sans MS', 'Fredoka', 'Nunito', cursive, sans-serif !important;
}

.search-game-card:hover {
  border-color: rgba(255, 68, 68, 0.6);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(255, 68, 68, 0.25);
}

.search-game-image {
  position: relative;
  width: 100%;
  padding-top: 133%; /* 3:4 aspect ratio */
  overflow: hidden;
  background: #0a0a0a;
}

.search-game-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.18s ease-out;
}

.search-game-card:hover .search-game-image img {
  transform: scale(1.05);
}

.search-game-platform {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.85);
  letter-spacing: 0.5px;
  font-family: 'Comic Sans MS', 'Fredoka', 'Nunito', cursive, sans-serif !important;
}

.search-game-platform.pc {
  color: #00ff88;
  border: 1px solid rgba(255, 68, 68, 0.6);
  box-shadow: 0 2px 6px rgba(255, 68, 68, 0.25), 
              inset 0 1px 0 rgba(255, 68, 68, 0.15);
}

.search-game-platform.ps4 {
  color: #00a0ff;
  border: 1px solid rgba(0, 160, 255, 0.6);
  box-shadow: 0 2px 6px rgba(0, 160, 255, 0.25),
              inset 0 1px 0 rgba(0, 160, 255, 0.15);
}

.search-game-platform.ps3 {
  color: #0088ff;
  border: 1px solid rgba(0, 136, 255, 0.6);
  box-shadow: 0 2px 6px rgba(0, 136, 255, 0.25),
              inset 0 1px 0 rgba(0, 136, 255, 0.15);
}

.search-game-platform.ps2 {
  color: #0066ff;
  border: 1px solid rgba(0, 102, 255, 0.6);
  box-shadow: 0 2px 6px rgba(0, 102, 255, 0.25),
              inset 0 1px 0 rgba(0, 102, 255, 0.15);
}

.search-game-platform.xbox-360 {
  color: #10dc10;
  border: 1px solid rgba(16, 220, 16, 0.6);
  box-shadow: 0 2px 6px rgba(16, 220, 16, 0.25),
              inset 0 1px 0 rgba(16, 220, 16, 0.15);
}

.search-game-info {
  padding: 0.75rem;
  flex: 1;
  display: flex;
  font-family: 'Comic Sans MS', 'Fredoka', 'Nunito', cursive, sans-serif !important;
  flex-direction: column;
  gap: 0.3rem;
}

.search-game-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: 'Comic Sans MS', 'Fredoka', 'Nunito', cursive, sans-serif !important;
}

.search-game-genre {
  font-size: 0.75rem;
  color: #888;
  margin: 0;
  font-family: 'Comic Sans MS', 'Fredoka', 'Nunito', cursive, sans-serif !important;
}

.search-game-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: #ffd700;
  margin-top: auto;
  font-family: 'Comic Sans MS', 'Fredoka', 'Nunito', cursive, sans-serif !important;
}

.search-game-rating i {
  font-size: 0.7rem;
}

.panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1055;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  will-change: opacity;
  pointer-events: none;
}

.panel-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Large Desktop */
@media (min-width: 1200px) {
  .gaming-side-panel {
    width: 400px;
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  /* Speed up side panel animation on mobile */
  .gaming-side-panel {
    transition: transform 0.12s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    background: rgba(10, 10, 10, 0.85) !important;
    width: 70%;
    max-width: 340px;
    right: 1rem;
    border-radius: 15px;
    transform: translateX(calc(100% + 1rem));
  }
  
  .gaming-side-panel.open {
    transform: translateX(0);
  }
  
  .panel-header {
    border-radius: 15px 15px 0 0;
  }
  
  .panel-title {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
    gap: 0.4rem;
    bottom: -12px;
    white-space: nowrap;
  }
  
  .panel-logo {
    width: 16px;
    height: 16px;
  }
  
  .panel-time {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
    gap: 0.4rem;
  }
  
  .panel-time i {
    font-size: 0.7rem;
  }
  
  /* Speed up overlay animation */
  .panel-overlay {
    transition: all 0.2s ease !important;
    background: rgba(0, 0, 0, 0.85) !important;
  }
  
  /* Optimize panel close button */
  .panel-close {
    transition: all 0.15s ease !important;
  }
  
  /* Speed up search overlay */
  .search-overlay {
    transition: all 0.2s ease !important;
    background: rgba(0, 0, 0, 0.8) !important;
  }
  
  /* Speed up search container */
  .search-container {
    background: rgba(10, 10, 10, 0.6) !important;
  }
  
  /* Speed up navbar */
  .gaming-navbar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(10, 10, 10, 0.7) !important;
    top: 0.5rem;
    width: 95%;
    padding: 0 1rem;
  }
  
  /* Optimize button animations */
  .search-btn, .menu-btn {
    transition: all 0.15s ease !important;
  }
  
  .nav-container {
    padding: 0.5rem 0.5rem;
    gap: 1rem;
  }

  .nav-title {
    font-size: 1rem;
    letter-spacing: 0.5px;
  }

  .nav-logo {
    width: 24px;
    height: 24px;
  }

  .search-btn, .menu-btn {
    padding: 0.4rem;
    min-width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .hamburger {
    font-size: 1rem;
  }

  .panel-content {
    padding: 0.75rem;
  }

  .user-section {
    padding: 0.75rem;
    margin-bottom: 1rem;
  }

  .user-avatar {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .avatar-image {
    width: 100%;
    height: 100%;
  }

  .avatar-fallback {
    font-size: 1rem;
  }

  .avatar-initial {
    font-size: 1rem;
  }

  .user-name {
    font-size: 0.8rem;
  }

  .user-status {
    font-size: 0.7rem;
  }

  .nav-section {
    margin-bottom: 1rem;
  }

  .section-title {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .platform-card {
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .platform-icon {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }

  .platform-name {
    font-size: 0.8rem;
  }

  .platform-count {
    font-size: 0.65rem;
  }

  .nav-link, .social-link {
    padding: 0.4rem 0.5rem;
    font-size: 0.8rem;
  }

  .search-overlay {
    padding: 0.5rem;
  }

  .search-container {
    padding: 0.75rem;
    padding-right: 2.5rem;
    max-width: 100%;
  }

  .search-input {
    padding: 0.6rem;
    font-size: 0.9rem;
    min-height: 40px;
  }

  .search-submit {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
    min-width: 50px;
  }

  .search-close {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.1rem;
    top: -1.1rem;
  }
  
  /* Mobile Search Results */
  .search-results-container {
    max-height: calc(100vh - 150px);
  }
  
  .search-results-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.75rem;
  }
  
  .search-game-title {
    font-size: 0.8rem;
  }
  
  .search-game-genre {
    font-size: 0.7rem;
  }
  
  .search-placeholder i {
    font-size: 2.5rem;
  }
  
  .search-placeholder h3 {
    font-size: 1.2rem;
  }
  
  .search-placeholder p {
    font-size: 0.9rem;
  }
  
  .search-platforms span {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    gap: 0.2rem;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .gaming-navbar {
    top: 0.75rem;
    width: 95%;
    padding: 0 1rem;
  }
  
  .nav-container {
    padding: 0.55rem 0.4rem;
    gap: 1.25rem;
  }
  
  .gaming-side-panel {
    width: 340px;
    border-radius: 15px;
  }
  
  .panel-header {
    border-radius: 15px 15px 0 0;
  }
  
  .panel-title {
    font-size: 0.8rem;
    padding: 0.45rem 0.85rem;
    gap: 0.45rem;
    bottom: -13px;
  }
  
  .panel-logo {
    width: 18px;
    height: 18px;
  }
  
  .panel-time {
    font-size: 0.8rem;
    padding: 0.38rem 0.7rem;
    gap: 0.45rem;
  }
  
  .panel-time i {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .gaming-navbar {
    top: 0.25rem;
    width: 96%;
    padding: 0 0.75rem;
    border-radius: 40px;
  }
  
  .nav-container {
    padding: 0.4rem 0.25rem;
    gap: 0.75rem;
  }

  .nav-title {
    font-size: 0.9rem;
  }
  
  .gaming-side-panel {
    width: 70%;
    max-width: 300px;
    top: 0.5rem;
    height: calc(100vh - 1rem);
    right: 1rem;
    border-radius: 12px;
    transform: translateX(calc(100% + 1rem));
  }
  
  .gaming-side-panel.open {
    right: 1rem;
    transform: translateX(0);
  }
  
  .panel-header {
    border-radius: 12px 12px 0 0;
  }
  
  .panel-title {
    font-size: 0.7rem;
    padding: 0.35rem 0.6rem;
    gap: 0.3rem;
    bottom: -10px;
  }
  
  .panel-logo {
    width: 14px;
    height: 14px;
  }
  
  .panel-time {
    font-size: 0.7rem;
    padding: 0.3rem 0.55rem;
    gap: 0.35rem;
  }
  
  .panel-time i {
    font-size: 0.65rem;
  }

  .nav-logo {
    width: 20px;
    height: 20px;
  }

  .search-btn, .menu-btn {
    padding: 0.3rem;
    min-width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }

  .hamburger {
    font-size: 0.9rem;
  }

  .panel-header {
    padding: 0.75rem 1rem;
  }

  .panel-title {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    bottom: -12px;
  }

  .panel-logo {
    width: 18px;
    height: 18px;
  }

  .panel-time {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }

  .panel-title {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    bottom: -10px;
  }

  .panel-logo {
    width: 16px;
    height: 16px;
  }

  .panel-time {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }

  .panel-close {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }

  .panel-content {
    padding: 0.5rem;
  }

  .user-section {
    padding: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .user-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .avatar-image {
    width: 100%;
    height: 100%;
  }

  .avatar-fallback {
    font-size: 0.9rem;
  }

  .avatar-initial {
    font-size: 0.9rem;
  }

  .user-name {
    font-size: 0.75rem;
  }

  .user-status {
    font-size: 0.65rem;
  }

  .nav-section {
    margin-bottom: 0.75rem;
  }

  .section-title {
    font-size: 0.7rem;
    margin-bottom: 0.4rem;
  }

  .platform-card {
    padding: 0.4rem;
    gap: 0.4rem;
  }

  .platform-icon {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
  }

  .platform-name {
    font-size: 0.75rem;
  }

  .platform-count {
    font-size: 0.6rem;
  }

  .nav-link, .social-link {
    padding: 0.3rem 0.4rem;
    font-size: 0.75rem;
  }

  .search-overlay {
    padding: 0.25rem;
  }

  .search-container {
    padding: 0.5rem;
    padding-right: 2rem;
    max-width: 100%;
  }

  .search-input {
    padding: 0.5rem;
    font-size: 0.85rem;
    min-height: 36px;
  }

  .search-submit {
    padding: 0.5rem 0.6rem;
    font-size: 0.75rem;
    min-width: 45px;
  }

  .search-close {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
    top: -1rem;
  }

  .platform-card.active::after,
  .nav-link.active::after {
    font-size: 0.5rem;
    padding: 1px 4px;
    top: -8px;
    right: 3px;
    z-index: 5;
  }
}
