body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
}

main {
  flex: 1;
  padding: 120px 20px 40px;

  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* HERO */
.search-hero {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
}

.search-hero h2 {
  font-size: 28px;
  color: rgb(119, 29, 29);
}

.search-hero p {
  line-height: 1.5;
}

.back-link {
  width: fit-content;
  text-decoration: none;

  color: rgb(119, 29, 29);
  border: 2px solid rgb(119, 29, 29);
  padding: 10px 14px;
  border-radius: 10px;

  font-weight: bold;
  transition: 0.2s ease;
}

.back-link:hover {
  background: rgb(119, 29, 29);
  color: white;
}

/* Results wrapper*/
.search-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Grid: Flex based */
.results-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

/* CARD (compact like products page) */
.game-card {
  display: flex;
  flex-direction: column;
  gap: 10px;

  width: 100%;
  max-width: 300px;

  padding: 12px;
  border-radius: 12px;

  border: 1px solid rgba(119, 29, 29, 0.18);
  background: rgba(97, 228, 176, 0.05);

  text-decoration: none;
  color: inherit;

  transition: transform 0.2s ease;
}

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

/* Image */
.game-image img {
  width: 100%;
  height: 140px;
  object-fit: cover;

  border-radius: 10px;
  display: block;
}

/* Details */
.game-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.game-details h3 {
  font-size: 16px;
  color: rgb(119, 29, 29);
}

.game-details p {
  font-size: 12px;
  line-height: 1.3;
}

.meta {
  display: flex;
  flex-direction: column;
  gap: 5px;

  font-weight: bold;
  font-size: 12px;
}

/* Button */
.view-btn {
  width: fit-content;
  text-decoration: none;

  padding: 8px 10px;
  border-radius: 8px;

  border: 2px solid rgb(119, 29, 29);
  color: rgb(119, 29, 29);

  font-size: 12px;
  font-weight: bold;

  transition: 0.2s ease;
}

.view-btn:hover {
  background: rgb(119, 29, 29);
  color: white;
}

/* Empty */
.empty-state {
  display: flex;
  flex-direction: column;
  gap: 12px;

  padding: 20px;
  border-radius: 12px;

  border: 1px solid rgba(119, 29, 29, 0.18);
  background: rgba(97, 228, 176, 0.05);
}

/* Tablet*/
@media (min-width: 768px) {
  main {
    padding: 120px 40px 40px;
  }

  .results-grid {
    justify-content: flex-start;
  }

  .game-card {
    max-width: 200px;
  }

  .meta {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Desktop*/
@media (min-width: 961px) {
  main {
    padding: 120px 80px 40px;
  }

  .search-hero h2 {
    font-size: 36px;
  }

  .game-card {
    max-width: 180px;
  }
}