* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --primary: #6a0dad;
  --secondary: #8a2be2;
  --accent: #9370db;
  --dark: #1a1a2e;
  --light: #f4f4ff;
  --gray: #888;
  --success: #5cb85c;
}

body {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: var(--light);
  min-height: 100vh;
  padding-bottom: 40px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background: rgba(26, 26, 46, 0.8);
  backdrop-filter: blur(10px);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo i {
  color: var(--accent);
  font-size: 28px;
}

.logo h1 {
  font-size: 24px;
  background: linear-gradient(45deg, #9370db, #6a0dad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

nav a {
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  font-size: 16px;
}

nav a:hover {
  color: var(--accent);
}

.search-container {
  margin: 40px 0;
  text-align: center;
}

.search-box {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 16px 60px 16px 20px;
  border: none;
  border-radius: 50px;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 25px rgba(106, 13, 173, 0.3);
}

.search-btn {
  position: absolute;
  right: 5px;
  top: 5px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  border: none;
  border-radius: 50px;
  width: 50px;
  height: 50px;
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(106, 13, 173, 0.5);
}
.suggestions {
  position: absolute;
  background: #1e1e2f;
  width: 100%;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  margin-top: 5px;
  z-index: 99;
  display: none;
  overflow: hidden;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  cursor: pointer;
  transition: background 0.2s;
}

.suggestion-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.suggestion-item img {
  width: 40px;
  height: 55px;
  border-radius: 4px;
  object-fit: cover;
}

.suggestion-title {
  color: #f4f4ff;
  font-size: 14px;
}

.filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--light);
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  border-color: transparent;
}

.section-title {
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title h2 {
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.view-all {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.view-all:hover {
  color: var(--light);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.card-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card-content {
  padding: 15px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-info {
  display: flex;
  justify-content: space-between;
  color: var(--gray);
  font-size: 14px;
}

.rating {
  color: gold;
}

.favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.favorite-btn:hover {
  background: rgba(106, 13, 173, 0.7);
}

.favorite-btn.favorited {
  color: gold;
}

.search-results {
  min-height: 10px;
}

.loader {
  display: inline-block;
  width: 80px;
  height: 80px;
  margin: 20px auto;
  display: none;
}
.loader:after {
  content: " ";
  display: block;
  width: 64px;
  height: 64px;
  margin: 8px;
  border-radius: 50%;
  border: 6px solid var(--accent);
  border-color: var(--accent) transparent var(--accent) transparent;
  animation: loader 1.2s linear infinite;
}
@keyframes loader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

footer {
  text-align: center;
  margin-top: 60px;
  padding: 20px;
  color: var(--gray);
  font-size: 14px;
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 15px;
  }

  nav ul {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .content-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }

  .card-img {
    height: 200px;
  }
}

