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

:root {
  --dark-bg: #0a0a0a;
  --card-bg: #1a1a1a;
  --text-primary: #f0f0f0;
  --text-secondary: #b0b0b0;
  --accent-red: #ff3a3a;
  --accent-green: #d4ff59;
  --section-spacing: 3rem;
}

body {
  background-color: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  width: auto;
  height: auto;
  display: block;
}

.container {
  width: 95%;
  max-width: 1400px;
  margin: 0 auto;
}

section {
  margin-bottom: var(--section-spacing);
}

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

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-green));
}
/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: var(--accent-green);
}

.breadcrumb span {
  margin: 0 0.5rem;
  color: var(--text-secondary);
}

/* Genre Grid */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.genre-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

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

.genre-header {
  padding: 1.5rem;
  position: relative;
  min-height: 120px;
  display: flex;
  align-items: center;
}

.genre-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  z-index: 2;
  position: relative;
}

.genre-count {
  background-color: var(--accent-green);
  color: #000;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  z-index: 2;
  position: relative;
}

.genre-icon {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  opacity: 0.7;
  z-index: 1;
}

.genre-animes {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.anime-list {
  list-style: none;
}

.anime-item {
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.anime-item:last-child {
  border-bottom: none;
}

.anime-title {
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
  padding-right: 1rem;
}

.anime-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--accent-green);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.view-more {
  display: block;
  text-align: center;
  margin-top: 1rem;
  color: var(--accent-green);
  font-size: 0.9rem;
  transition: opacity 0.3s;
}

.view-more:hover {
  opacity: 0.8;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .genre-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .genre-grid {
    grid-template-columns: 1fr;
  }

  .genre-header {
    min-height: 100px;
  }

  .genre-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.3rem;
  }

  .breadcrumb {
    font-size: 0.8rem;
  }

  .genre-title {
    font-size: 1.1rem;
  }
}
