* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

:root {
  --primary-color: #ff6200;
  --primary-hover: #ff7a30;
  --secondary-color: #2f82ff;
  --dark-bg: #121212;
  --darker-bg: #0a0a0a;
  --card-bg: #1e1e1e;
  --light-text: #e0e0e0;
  --gray-text: #a0a0a0;
  --tag-bg: rgba(255, 98, 0, 0.15);
  --gradient-bg: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  --hover-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  --transition: all 0.3s ease;
}

body {
  background: var(--dark-bg);
  color: var(--light-text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.search-container {
    position: relative;
    display: flex;
}

.search-input {
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    border-radius: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    width: 200px;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    width: 250px;
    box-shadow: 0 0 10px rgba(255, 98, 0, 0.3);
}

.search-btn {
    background: transparent;
    border: none;
    color: var(--primary-color);
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
    .search-container {
        order: 3;
        width: 100%;
        margin-top: 1rem;
        justify-content: center;
    }

    .search-input {
        width: 48%;
        max-width: 300px;
    }

    .search-input:focus {
        width: 100%;
        max-width: 300px;
    }
}

.primary-btn {
  background: var(--primary-color);
  color: white;
}

.primary-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 98, 0, 0.3);
}

.secondary-btn {
  background: transparent;
  color: var(--light-text);
  border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.menu-icon {
  display: none;
  font-size: 1.5rem;
  color: var(--light-text);
  cursor: pointer;
}

.menu-icon:hover {
  color: var(--primary-color);
}

.hero-section {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url('');
  background-size: cover;
  background-position: center;
  margin-bottom: 3rem;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(18, 18, 18, 1), rgba(18, 18, 18, 0.7));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content h1 span {
  color: var(--primary-color);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: var(--light-text);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  margin-bottom: 4rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.8rem;
  color: white;
  position: relative;
  display: inline-block;
}

.section-title i {
  color: var(--primary-color);
  margin-right: 10px;
}

.view-all {
  color: var(--primary-color);
  font-weight: 500;
}

.view-all:hover {
  text-decoration: underline;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.featured-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.featured-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

.featured-image {
  position: relative;
  height: 200px;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  align-items: flex-end;
}

.quality-badge, .year-badge {
  background: var(--primary-color);
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.featured-info {
  padding: 1.5rem;
}

.featured-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: white;
}

.featured-info p {
  color: var(--gray-text);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.watch-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  color: white;
  border-radius: 5px;
  font-weight: 500;
  transition: var(--transition);
}

.watch-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 98, 0, 0.2);
}

.divider {
  position: relative;
  text-align: center;
  margin: 3rem 0;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.divider-text {
  background: var(--dark-bg);
  padding: 0 1rem;
  position: relative;
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 500;
}

.anime-list {
  max-width: 100%;
}

.anime-list-items {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.anime-item {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--card-shadow);
  height: 100%;
}

.anime-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.anime-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.anime-link img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.anime-item:hover img {
  transform: scale(1.05);
}

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

.anime-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: white;
}

.anime-info p {
  font-size: 0.9rem;
  color: var(--gray-text);
  margin-bottom: 0.8rem;
}

.anime-info i {
  color: var(--primary-color);
  margin-right: 5px;
}

.anime-tags {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: var(--tag-bg);
  color: var(--primary-color);
  border-radius: 50px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.page-link {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--light-text);
  border-radius: 5px;
  transition: var (--transition);
  min-width: 40px;
  text-align: center;
}

.page-link:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.page-link.active {
  background: var(--primary-color);
  font-weight: 500;
}

.next-page {
  padding: 0.5rem 1rem;
}

.newsletter {
  background: var(--gradient-bg);
  border-radius: 12px;
  margin: 3rem 0;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.newsletter-content {
  padding: 3rem 2rem;
  text-align: center;
}

.newsletter h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: white;
}

.newsletter p {
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.newsletter-form input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
}

.footer {
  background: var(--darker-bg);
  padding: 4rem 0 0;
  margin-top: 5rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--primary-color);
}

.footer-section p {
  color: var(--gray-text);
  margin-bottom: 1.5rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  background: black;
  padding: 1.5rem 0;
  margin-top: 4rem;
  text-align: center;
}

.footer-bottom p {
  color: var (--gray-text);
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .featured-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }

  .search-container {
    display: none;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    left: 0;
    background: var(--darker-bg);
    width: 100%;
    padding: 1rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
  }

  .nav-links.show {
    display: flex;
  }

  .menu-icon {
    display: block;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .anime-list-items {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .newsletter-form {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .section-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .anime-list-items {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}
