/* SEARCH PAGE CONTAINER */
.search-page {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* TITLE */
.search-page h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2rem;
}

/* SEARCH INPUT */
.search-input {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 30px auto;
  display: block;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

body.dark .search-input {
  background: #222;
  color: #fff;
  border-color: #444;
}

/* RESULTS GRID (MATCHES GALLERY) */
.search-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

/* RESULT ITEM */
.search-result-item {
  text-decoration: none;
  color: inherit;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
}

.search-result-item:hover {
  transform: translateY(-4px);
}

/* COVER IMAGE */
.search-result-image-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.search-result-cover {
  width: auto;
  max-width: 100%;
  height: 260px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fafafa;
}

body.dark .search-result-cover {
  border-color: #444;
  background: #222;
}

/* TITLE */
.search-result-title {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 600;
}

body.dark .search-result-title {
  color: #fff;
}

/* NO RESULTS */
.search-no-results {
  text-align: center;
  margin-top: 40px;
  font-size: 1.2rem;
  opacity: 0.7;
}
