/* ==========================================================================
   Explore Page
   ========================================================================== */

/* Explore Page Styles */
.explore-container {
    padding: 4rem 4% 2rem;
    min-height: 100vh;
}

.explore-header {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
  z-index: 50;
}

.explore-header h2 {
  flex-shrink: 0;
}

.explore-controls {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* no results look on search look */

.no-results {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  padding: 3.5rem 1.5rem;
  margin-top: 1.5rem;
  border-radius: 18px;
  border: 1px solid var(--button);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 14px 30px rgba(0,0,0,0.06);
  overflow: hidden;
  position: relative;
  animation: noResultsIn 420ms ease-out both;
}

.no-results-inner {
  max-width: 520px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.no-results-icon {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.95rem;

  background: rgba(37, 99, 235, 0.09);
  border: 1px solid rgba(37, 99, 235, 0.18);
  box-shadow:
    0 14px 30px rgba(0,0,0,0.08),
    0 0 0 2px rgba(37, 99, 235, 0.06),
    0 0 26px rgba(37, 99, 235, 0.14);
}

.no-results-svg {
  width: 46px;
  height: 46px;
  color: var(--accent);
  filter: drop-shadow(0 10px 18px rgba(37, 99, 235, 0.20));
}

.no-results-icon { width: 96px; height: 96px; margin: 0 auto 12px; }
.no-results-svg  { width: 100%; height: 100%; display: block; }

.no-results h3 {
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
  color: var(--primary);
}

.no-results p {
  margin: 0 auto 1.1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.no-results-query {
  font-weight: 700;
  color: var(--accent);
}

.no-results-actions {
  display: inline-flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.no-results-btn {
  padding: 0.7rem 1.05rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: var(--bg-body);
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.no-results-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}

.no-results-link {
  padding: 0.7rem 1.05rem;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.no-results-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.12);
}

.no-results-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.no-results-watermark {
  position: absolute;
  inset: -40px;
  z-index: 1;
  opacity: 0.12;
  filter: blur(0px);
  background:
    radial-gradient(circle at 30% 20%, rgba(59,130,246,0.22), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(16,185,129,0.18), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(239,68,68,0.12), transparent 50%);
  transform: rotate(-8deg);
}

.no-results.has-logo .no-results-watermark {
  background: var(--no-results-logo) center/260px no-repeat;
  opacity: 0.08;
}

/* Animation */
@keyframes noResultsIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Search Bar in Navbar and Explore Page */

.nav-search-slot,
.page-search-slot{
  display:flex;
  align-items:center;
}

/* on explore page slot, use your existing size */
.page-search-slot .nav-search{
  width: 280px; /* match your explore search width */
}

/* Search for Game Page - hide panel, only show input */

.nav-search[data-variant="page"] .nav-search-panel{
  display: none !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

/* ---------- Custom Dropdown ---------- */

.custom-dropdown {
  position: relative;
}

.dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1.4rem;
  min-width: 170px;
  background: #162544;
  border: 1px solid rgba(148,163,184,0.24);
  border-radius: 14px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(2,6,23,0.32);
  transition: all 0.25s ease;
}

.dropdown-btn:hover {
  transform: translateY(-1px);
}

.dropdown-btn .chevron {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 2;
  transition: transform 0.25s ease;
}

.custom-dropdown.open .chevron {
  transform: rotate(180deg);
}

/* Menu */
.custom-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  width: 100%;
  background: #13203a;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.24);
  box-shadow: 0 24px 44px rgba(2,6,23,0.46);
  list-style: none;
  padding: 0.4rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  z-index: 100;
}

.custom-dropdown.open .custom-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.custom-dropdown-menu li {
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: #e7efff;
  transition: background 0.2s ease, color 0.2s ease;
}

.custom-dropdown-menu li:hover {
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent);
}

.custom-dropdown-menu li.active {
  background: rgba(59, 130, 246, 0.18);
  color: var(--accent);
  font-weight: 600;
}

/* Main option spanning all columns */
.custom-dropdown-menu .dropdown-main{
  column-span: all;
  -webkit-column-span: all;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 0.70rem 0.85rem;
  margin: 0.15rem 0.15rem 0.65rem;
  border-radius: 12px;

  background: #1a2a49;
  border: 1px solid rgba(148,163,184,0.24);
  box-shadow:
    0 10px 24px rgba(2,6,23,0.35),
    inset 0 -1px 0 rgba(148, 163, 184, 0.18);

transform: none !important;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
  transform-origin: center;
}

.custom-dropdown-menu .dropdown-main:hover{
  transform: scale(1.015) !important;  
  border-color: rgba(37, 99, 235, 0.20);
  box-shadow:
    0 14px 34px rgba(0,0,0,0.10),
    0 0 0 2px rgba(37, 99, 235, 0.08),
    inset 0 -1px 0 rgba(15, 23, 42, 0.08);
}

.custom-dropdown-menu .dropdown-main .main-title{
  font-weight: 800;
  color: #eef4ff;
}

.custom-dropdown-menu .dropdown-main::after{
  content: "";
  display: block;
  height: 1px;
  background: rgba(148,163,184,0.26);
  border-radius: 999px;
  opacity: 0.9;
}

/* Left group */
.custom-dropdown-menu .dropdown-main .main-left{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

/* 2 Rows Dropdown for genre */
#genreDropdown .custom-dropdown-menu{
  width: max-content;
  min-width: 360px;       
  max-width: 520px;
  column-count: 2;
  column-gap: 12px;
  padding: 0.6rem;
  left: 50%;
  right: auto;
  transform: translate(-50%, -10px);
}

#genreDropdown.custom-dropdown.open .custom-dropdown-menu{
  transform: translate(-50%, 0);
}

#genreDropdown .custom-dropdown-menu li{
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  width: 100%;
  display: block;
}

/* Dropdown for Platform */

#platformDropdown .custom-dropdown-menu{
  width: max-content;
  min-width: 660px;      /* enough for 3 rows */
  max-width: 860px;      
  column-count: 3;
  column-gap: 14px;
  padding: 0.7rem;
  left: 50%;
  right: auto;
  transform: translate(-50%, -10px);
}
#platformDropdown.custom-dropdown.open > .custom-dropdown-menu{
  transform: translate(-50%, 0);
}

#platformDropdown.custom-dropdown.open .custom-dropdown-menu{
  transform: translate(-50%, 0);
}

#platformDropdown .custom-dropdown-menu li{
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  width: 100%;
  display: block;
}

#platformDropdown .custom-dropdown-menu{
  perspective: 900px; /* für tilt */
}

#platformDropdown .custom-dropdown-menu li.platform-option{
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 0.65rem 0.9rem;
  border-radius: 10px;

  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
  transform-origin: left center;
}

#platformDropdown .platform-option-icon{
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  object-fit: contain;
  transition: transform 160ms ease, filter 160ms ease;
}

/* Hover */
#platformDropdown .custom-dropdown-menu li.platform-option:hover{
  transform: translateX(6px) rotateY(-10deg);
  background: rgba(255,255,255,0.75);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.06),
    0 16px 30px rgba(0,0,0,0.10);
}

/* Icon “tilt” + extra glow */
#platformDropdown .custom-dropdown-menu li.platform-option:hover .platform-option-icon{
  transform: translateX(2px) rotate(-6deg) scale(1.06);
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.18));
}

/* Brand colors (CSS variables) */
#platformDropdown .opt-sony      { --brand: rgba(90,140,255,0.85);  --brandSoft: rgba(90,140,255,0.18); }
#platformDropdown .opt-microsoft { --brand: rgba(0,255,140,0.80);   --brandSoft: rgba(0,255,140,0.16); }
#platformDropdown .opt-nintendo  { --brand: rgba(255,60,60,0.85);   --brandSoft: rgba(255,60,60,0.16); }
#platformDropdown .opt-sega      { --brand: rgba(0,190,255,0.85);   --brandSoft: rgba(0,190,255,0.16); }
#platformDropdown .opt-pc        { --brand: rgba(200,200,220,0.85); --brandSoft: rgba(200,200,220,0.16); }
#platformDropdown .opt-mobile    { --brand: rgba(0,225,190,0.85);   --brandSoft: rgba(0,225,190,0.16); }
#platformDropdown .opt-vr        { --brand: rgba(168,85,247,0.85);  --brandSoft: rgba(168,85,247,0.16); }
#platformDropdown .opt-other     { --brand: rgba(148,163,184,0.85); --brandSoft: rgba(148,163,184,0.16); }

/* Brand glow on hover */
#platformDropdown .custom-dropdown-menu li.platform-option:hover{
  box-shadow:
    0 0 0 1px var(--brandSoft),
    0 0 0 2px rgba(255,255,255,0.40),
    0 0 18px var(--brandSoft),
    0 18px 34px rgba(0,0,0,0.10);
}

#platformDropdown .custom-dropdown-menu li.platform-option:hover .platform-option-icon{
  filter:
    drop-shadow(0 10px 20px rgba(0,0,0,0.20))
    drop-shadow(0 0 16px var(--brandSoft));
}

/* Prevent tilt on All Platforms row (it is also .platform-option) */
#platformDropdown .custom-dropdown-menu li.platform-option.dropdown-main:hover{
  transform: scale(1.015) !important;
}

#platformDropdown .custom-dropdown-menu li.platform-option:hover{
  transform: translateX(6px) rotateY(-10deg);
}


@media (max-width: 980px){
  #platformDropdown .custom-dropdown-menu{
    column-count: 2;
    min-width: 520px;
    max-width: 90vw;
  }
}

@media (max-width: 640px){
  #platformDropdown .custom-dropdown-menu{
    column-count: 1;
    min-width: 240px;
    max-width: 90vw;
  }
}

.explore-controls .dropdown-btn span{
  display: inline-block;
  max-width: 130px;          
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 640px){
  #platformDropdown .custom-dropdown-menu{
    column-count: 1;
    min-width: 240px;
    max-width: 90vw;
  }
}

.search-filter-bar {
    display: flex;
    gap: 1rem;
}

.search-input {
    height: 46px;
    padding: 0 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(148,163,184,0.24);
    background: rgba(16, 25, 45, 0.92);
    color: var(--text-main);
    font-size: 0.9rem;
    width: 280px;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.32);
    transition: all 0.25s ease;
}

.search-input::placeholder{
  color: var(--text-muted);
}

/* Force dark page-search component styling */
.page-search-slot .nav-search-input{
  border: 1px solid rgba(148,163,184,0.24);
  background: #162544;
  box-shadow: 0 10px 24px rgba(2,6,23,0.36);
  backdrop-filter: none;
}

.page-search-slot .nav-search-input svg{
  color: #9bb0d3;
}

.page-search-slot .nav-search-input input{
  color: #e7efff;
}

.page-search-slot .nav-search-input input::placeholder{
  color: #8ea1bf;
}

.search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.game-grid {
  --card-min: 220px;
  --card-max: 260px;             
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--card-min), var(--card-max)));
  gap: 2.5rem;
  width: 100%;
  margin-top: 2rem;
  justify-content: center;        
  align-items: start;     
}        

.game-card {
    background: var(--bg-body);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid var(--button);
    display: flex;
    flex-direction: column;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease; 
}

.game-card:hover {
    transform: translateY(-10px);
}

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

.game-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent);
    color: var(--bg-body);
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.8rem;
}

/* Toggle look */
.view-toggle{
  display:flex;
  gap:8px;
  padding:6px;
  border:1px solid var(--button);
  background:var(--bg-body);
  border-radius:14px;
  box-shadow:0 6px 18px rgba(0,0,0,0.05);
}

.view-btn{
  width:42px;
  height:38px;
  border-radius:12px;
  border:1px solid transparent;
  background:transparent;
  cursor:pointer;
  font-weight:800;
  color:var(--text-main);
  transition:transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.view-btn:hover{ transform: translateY(-1px); background: rgba(59,130,246,.08); }
.view-btn.active{
  background: rgba(59,130,246,.12);
  border-color: rgba(59,130,246,.22);
  box-shadow: 0 10px 20px rgba(59,130,246,.10);
}

/* Default: grid */
.game-grid[data-view="grid"]{
  --card-min: 220px;
  --card-max: 260px;
}

/* Compact grid */
.game-grid[data-view="compact"]{
  --card-min: 140px;
  --card-max: 180px;
  gap: 1.6rem;
}

.game-grid[data-view="compact"] .game-info h4{ font-size: 1rem; }
.game-grid[data-view="compact"] .btn-add{ padding: 0.55rem; }

/* Table/List view */
.game-sub { margin: 0; color: var(--text-muted); font-size: 0.85rem; }

.game-actions{
  padding: 0 1.2rem 1.2rem;
}

.game-meta{
  display: none; /* default: hidden in grid */
  margin-top: 0.65rem;
  gap: 12px;
}

.game-meta .meta-item{
  display:flex;
  align-items:center;
  gap: 8px;
  color:var(--text-main);
  font-size: 0.85rem;
  white-space: nowrap;
}

.game-meta .meta-label{
  font-weight: 700;
  color:var(--text-muted);
}

.game-meta .meta-icon{
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: 0 0 16px;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.18));
}


/* === TABLE VIEW (real columns) === */
.game-grid[data-view="table"]{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.game-grid[data-view="table"] .game-card{
  display: grid;
  grid-template-columns: 84px 1.4fr 1.1fr auto;
  align-items: center;
  padding: 10px 12px;
  height: auto;
}

.game-grid[data-view="table"] .game-cover{
  width: 84px;
  height: 84px;
  border-radius: 14px;
  overflow: hidden;
}

.game-grid[data-view="table"] .game-cover-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Badge in table: smaller, optional */
.game-grid[data-view="table"] .platform-badge{
  top: 8px;
  left: 8px;
  width: 34px;
  height: 34px;
  padding: 6px;
  border-radius: 12px;
}

/* Show meta in table */
.game-grid[data-view="table"] .game-meta{
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Make info padding compact in table */
.game-grid[data-view="table"] .game-info{
  padding: 0 14px;
}

/* Actions column */
.game-grid[data-view="table"] .game-actions{
  padding: 0;
  display: flex;
  justify-content: flex-end;
}

.game-grid[data-view="table"] .btn-add{
  width: auto;
  margin: 0;
  padding: 0.65rem 1rem;
  border-radius: 12px;
}

.game-grid[data-view="table"] .platform-badge{ display:none; }

/* Badge */
.platform-badge {
  position: absolute;
  top: 14px;
  left: 14px;

  width: 52px;      
  height: 52px;     
  padding: 9px;    

  border-radius: 16px;

  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);

  border: 1px solid rgba(255,255,255,0.35);

  display: flex;
  align-items: center;
  justify-content: center;

  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.platform-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.35));
  transform: scale(1);
  transform-origin: center;
}

/* Brand specific */
.platform-microsoft img {
  transform: scale(1.35);
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.55)) contrast(1.25) saturate(1.15);
}
.platform-sony img { transform: scale(1.10); }
.platform-ps1 img { transform: scale(1.5); }
.platform-ps2 img { transform: scale(1.5); }
.platform-ps4 img{
  filter:
    drop-shadow(0 8px 16px rgba(0,0,0,0.55))
    brightness(1.35)
    contrast(1.1)
    saturate(1.15);
}
.platform-nintendo img  { transform: scale(1.00); } 
.platform-nes img {
  transform: scale(1.45); 
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.45)) contrast(1.15);
}
.platform-snes img {
  transform: scale(1.28); 
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.45)) contrast(1.15);
}  
.platform-pc img { transform: scale(1.08); }

.platform-sega img {
  transform: scale(1.12);
  filter: drop-shadow(0 7px 16px rgba(0,0,0,0.50)) contrast(1.18) saturate(1.25);
}
.platform-mastersystem img {
    transform: scale(1.45);
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.45)) contrast(1.15);
}

.platform-mobile img{
  transform: scale(1.12);
  filter: drop-shadow(0 7px 16px rgba(0,0,0,0.50)) contrast(1.15) saturate(1.20);
}

.platform-badge::before {
  content: "";
  position: absolute;
  inset: -10px;            
  border-radius: 22px;
  z-index: -1;
  opacity: 0.85;
  filter: blur(14px);
}

/* Company glow */

/* SONY */
.platform-sony {
  box-shadow:
    0 0 0 2px rgba(90, 140, 255, 0.58),
    0 0 22px rgba(90, 140, 255, 0.55),
    0 0 60px rgba(90, 140, 255, 0.20);
  border-color: rgba(90, 140, 255, 0.58);
}
.platform-sony::before { background: rgba(90, 140, 255, 0.38); }

/* MICROSOFT */
.platform-microsoft {
  box-shadow:
    0 0 0 2px rgba(0, 255, 140, 0.55),
    0 0 22px rgba(0, 255, 140, 0.55),
    0 0 60px rgba(0, 255, 140, 0.20);
  border-color: rgba(0, 255, 140, 0.55);
}
.platform-microsoft::before { background: rgba(0, 255, 140, 0.38); }

/* NINTENDO */
.platform-nintendo {
  box-shadow:
    0 0 0 2px rgba(255, 60, 60, 0.60),
    0 0 22px rgba(255, 60, 60, 0.55),
    0 0 60px rgba(255, 60, 60, 0.22);
  border-color: rgba(255, 60, 60, 0.60);
}
.platform-nintendo::before { background: rgba(255, 60, 60, 0.40); }

/* PC */
.platform-pc {
  box-shadow:
    0 0 0 2px rgba(200, 200, 220, 0.55),
    0 0 22px rgba(200, 200, 220, 0.50),
    0 0 60px rgba(200, 200, 220, 0.18);
  border-color: rgba(200, 200, 220, 0.55);
}
.platform-pc::before { background: rgba(200, 200, 220, 0.32); }

/* SEGA */
.platform-sega{
  box-shadow:
    0 0 0 2px rgba(0, 190, 255, 0.62),   
    0 0 22px rgba(0, 190, 255, 0.52),   
    0 0 60px rgba(0, 190, 255, 0.18);   
  border-color: rgba(0, 190, 255, 0.62);
}
.platform-sega::before{ background: rgba(0, 190, 255, 0.36); }

/* MOBILE */
.platform-mobile{
  box-shadow:
    0 0 0 2px rgba(0, 225, 190, 0.60),
    0 0 22px rgba(0, 225, 190, 0.50),
    0 0 60px rgba(0, 225, 190, 0.18);
  border-color: rgba(0, 225, 190, 0.60);
}
.platform-mobile::before{ background: rgba(0, 225, 190, 0.34); }

/* VR */
.platform-vr{
  box-shadow:
    0 0 0 2px rgba(168, 85, 247, 0.62),
    0 0 22px rgba(168, 85, 247, 0.52),
    0 0 60px rgba(168, 85, 247, 0.18);
  border-color: rgba(168, 85, 247, 0.62);
}
.platform-vr::before{ background: rgba(168, 85, 247, 0.36); }

/* OTHER */
.platform-other{
  box-shadow:
    0 0 0 2px rgba(148, 163, 184, 0.60),
    0 0 22px rgba(148, 163, 184, 0.50),
    0 0 60px rgba(148, 163, 184, 0.18);
  border-color: rgba(148, 163, 184, 0.60);
}
.platform-other::before{ background: rgba(148, 163, 184, 0.34); }

.game-card:hover .platform-badge {
  transform: translateY(-1px) scale(1.03);
}

.game-info{
  padding: 1.2rem 1.2rem 0.8rem; 
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.game-info h4 {
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
    min-height: 2.4em; 
}

.game-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.btn-add {
    width: 100%;
    padding: 0.6rem;
    background: linear-gradient(135deg, rgba(28,42,72,0.96), rgba(20,32,56,0.96));
    border: 1px solid rgba(103,161,255,0.28);
    border-radius: 10px;
    color: #eaf1ff;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 24px rgba(2,6,23,0.35), inset 0 1px 0 rgba(255,255,255,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    margin-top: auto; 
}

.btn-add:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(36,56,95,0.98), rgba(28,44,76,0.98));
    border-color: rgba(103,161,255,0.5);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(2,6,23,0.45), 0 0 0 2px rgba(59,130,246,0.12);
}

.load-more-btn {
  margin: 3rem auto 0;
  display: block;
  padding: 0.8rem 2rem;
  border-radius: 12px;
  border: none;
  background: var(--primary);
  color: var(--bg-body);
  font-weight: 600;
  cursor: pointer;
}

.infinite-loader{
  margin: 1.75rem auto 0;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.8rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--button);
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  color: var(--text-main);
  font-weight: 600;
}

.infinite-loader .spinner{
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(51,65,85,0.25);
  border-top-color: rgba(51,65,85,0.85);
  animation: spin 0.8s linear infinite;
}

@keyframes spin{ to { transform: rotate(360deg); } }

.infinite-sentinel{
  height: 1px;
  width: 100%;
}

.end-of-list{
  margin: 1.25rem auto 0;
  width: fit-content;
  color: var(--text-muted);
  font-weight: 600;
}

#infiniteLoader[hidden] { display: none !important; }
#infiniteSentinel[hidden] { display: none !important; }

/* Styling für die Filter-Auswahlbox */
.filter-select {
    padding: 0.8rem 2.8rem 0.8rem 1.4rem;
    border-radius: 14px;
    border: 1px solid var(--button);
    background-color: var(--bg-body);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    outline: none;
    min-width: 160px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%233b82f6'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.94a.75.75 0 111.08 1.04l-4.24 4.5a.75.75 0 01-1.08 0l-4.24-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

.filter-select:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.filter-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

/* ===== Platform Theme Background ===== */

/* Background SVG positioning */
.theme-bg{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 240ms ease;
}

/* content above bg */
footer{ position: relative; z-index: 1; }

/* show bg when not neutral */
html[data-theme="neutral"] .theme-bg{ opacity: 0; }
html[data-theme]:not([data-theme="neutral"]) .theme-bg{ opacity: 1; }

/* OLD + NEW colors read from CSS vars on the SVG element */
.theme-bg{
  --base-old: 255,255,255;
  --stripe-old: 255,255,255;
  --base-new: 255,255,255;
  --stripe-new: 255,255,255;
}

.theme-bg{ filter: saturate(1.05) brightness(1.18); }

/* Base: einfarbig + subtil */
.theme-bg .bg-old-base { fill: rgb(var(--base-old)); opacity: 0.05; }
.theme-bg .bg-new-base { fill: rgb(var(--base-new)); opacity: 0.05; }

/* Stripes: kommen aus dem Gradient-Fill im SVG, Stärke hier */
.theme-bg .bg-old-stripe,
.theme-bg .bg-new-stripe {
  opacity: 0.18;
  mix-blend-mode: screen;
}

/* Wipe animation */
.theme-bg .wipe-reveal,
.theme-bg .wipe-hide{
  transform-box: fill-box;
  transform-origin: 0% 50%;
  transform: scaleX(0);
}

.theme-bg.is-wiping .wipe-reveal,
.theme-bg.is-wiping .wipe-hide{
  animation: wipeX 650ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes wipeX{
  0%   { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .theme-bg.is-wiping .wipe-reveal,
  .theme-bg.is-wiping .wipe-hide{ animation: none; transform: scaleX(1); }
  .theme-bg feTurbulence animate{ display:none; }
}

/* Theme colors */
html[data-theme="nintendo"]{ --tint: 255, 60, 60; }
html[data-theme="sony"]{     --tint: 90, 140, 255; }
html[data-theme="microsoft"]{--tint: 0, 255, 140; }
html[data-theme="sega"]{     --tint: 0, 190, 255; }
html[data-theme="pc"]{       --tint: 200, 200, 220; }
html[data-theme="mobile"]{   --tint: 0, 225, 190; }
html[data-theme="vr"]{       --tint: 168, 85, 247; }
html[data-theme="other"]{    --tint: 148, 163, 184; }
html[data-theme="neutral"]{  --tint: 255, 255, 255; }
/* boost only for MyGameList default theme */
html[data-theme="mgl"] .theme-bg .bg-old-base,
html[data-theme="mgl"] .theme-bg .bg-new-base{
  opacity: 0.07;
}
html[data-theme="mgl"] .theme-bg .bg-old-stripe,
html[data-theme="mgl"] .theme-bg .bg-new-stripe{
  opacity: 0.24;
}