body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: url('galaxy-bg.webp') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  min-height: 100vh;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px 0 16px;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.title {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 0 12px #a0a0ff, 0 0 24px #6e4cff;
}
.title span {
  color: #c7a6ff;
}
.feedback {
  font-size: 1rem;
  color: #b2eaff;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.search-filters {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.search-bar {
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.5);
  border-radius: 24px;
  padding: 8px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  outline: none;
  padding: 8px;
}
.search-bar svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}
.filters {
  display: flex;
  gap: 12px;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: none;
  background: #222;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.filter-btn.active {
  background: #fff;
  color: #111;
  font-weight: bold;
}
.filter-btn:nth-child(2) { background: #b2eaff; color: #222; }
.filter-btn:nth-child(3) { background: #f3c6ff; color: #222; }
.filter-btn.active:nth-child(2), .filter-btn.active:nth-child(3) { color: #111; }
.gif-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gif-card {
  position: relative;
  background: rgba(0,0,0,0.5);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  transition: transform 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gif-img-wrapper {
  position: relative;
  width: 391px;
  height: 220px;
  display: block;
}
.gif-img {
  width: 391px;
  height: 220px;
  max-width: 100%;
  object-fit: cover;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  display: block;
  margin: 0 auto;
}
.gif-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: opacity 0.2s;
  z-index: 2;
  pointer-events: none;
}
.gif-img-wrapper:hover .gif-overlay {
  opacity: 1;
  pointer-events: auto;
}
.overlay-btn {
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  border-radius: 20px;
  padding: 8px 18px;
  margin: 2px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}
.overlay-btn:hover {
  background: #fff;
  color: #222;
}
.share-icons {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.share-icons svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  cursor: pointer;
  transition: fill 0.2s;
}
.share-icons svg:hover {
  fill: #b2eaff;
}
.gif-caption {
  position: absolute;
  bottom: 38px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 2px 8px #000, 0 0 8px #fff;
  padding: 0 8px;
  letter-spacing: 0.5px;
  line-height: 1.3;
}
.gif-likes {
  position: relative;
  margin: 12px 0 8px 0;
  width: 100%;
  text-align: center;
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0.9;
  z-index: 3;
  pointer-events: auto;
}
@media (max-width: 1200px) {
  .gif-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gif-img {
    width: 100%;
    height: auto;
    aspect-ratio: 391/220;
  }
}
@media (max-width: 700px) {
  .gif-grid {
    grid-template-columns: 1fr;
  }
  .gif-img {
    width: 100%;
    height: auto;
    aspect-ratio: 391/220;
  }
  .container {
    padding: 12px 2vw 0 2vw;
  }
  .title {
    font-size: 1.5rem;
  }
}
@media (max-width: 480px) {
  .gif-grid {
    grid-template-columns: 1fr;
  }
  .search-filters {
    gap: 8px;
  }
} 