html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

main {
  display: flex;
  flex-direction: column;
  height: calc(100% - 80px);
  padding: 0 1rem 1rem 1rem;
}

#cy {
  flex: 1;
  width: 100%;
}

ul {
  list-style: none;
  padding: 0;
}

li {
  margin: 0.5rem 0;
}

a {
  text-decoration: none;
  color: #007bff;
}

a:hover {
  text-decoration: underline;
}

.legend {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background-color: #444;
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.legend-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.legend-color {
  width: 16px;
  height: 16px;
  display: inline-block;
  border-radius: 4px;
}

.legend-item.friend .legend-color {
  background-color: #8fbc8f;
}
.legend-item.romance .legend-color {
  background-color: #f08080;
}
.legend-item.child .legend-color {
  background-color: #ffa500;
}
.legend-item.sibling .legend-color {
  background-color: #9370db;
}
.legend-item.colleague .legend-color {
  background-color: #4682b4;
}

@media (max-width: 768px) {
  .legend-item {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }

  .legend-color {
    width: 14px;
    height: 14px;
  }
}

.navbar {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem 2rem;
  background-color: #2a2a2a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  font-family: "Inter", sans-serif;
}

.nav-brand {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #ffffffaa;
  font-weight: 500;
  transition:
    color 0.2s,
    transform 0.2s;
}

.nav-links a:hover {
  color: #00bfff;
  transform: translateY(-2px);
}

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

  .nav-brand {
    font-size: 1.3rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.9rem;
  }
}

.hero {
  background-color: #2a2a2a;
  color: #ffffff;
  text-align: center;
  padding: 0.5rem 0.5rem;
  font-family: "Inter", sans-serif;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: #ffffff;
}

.hero p {
  font-size: 1.25rem;
  color: #cccccc;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hero {
    padding: 3rem 1.5rem;
  }

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

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

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

h1,
h2,
h3 {
  margin: 0;
}

.site-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
}

.header-content h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.header-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  background: #fff;
  color: #764ba2;
  font-weight: bold;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin: 3rem 0 2rem 0;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #764ba2;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}
.poster-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  padding: 0 2rem;
  margin-bottom: 2rem;
}

.poster-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.poster-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.poster-img-wrapper {
  overflow: hidden;
  aspect-ratio: 2 / 3;
}

.poster-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.poster-card:hover img {
  transform: scale(1.05);
}

.poster-card h3 {
  text-align: center;
  padding: 0.8rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.view-all {
  text-align: center;
  margin-bottom: 4rem;
}

.view-all a {
  font-weight: bold;
  color: #764ba2;
  transition: color 0.2s;
}

.view-all a:hover {
  color: #667eea;
}

/* INFO BOXES */
.info-section {
  padding: 4rem 2rem;
  background: #fff;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}

.info-box {
  background: #f5f5fb;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

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

.info-box h3 {
  color: #764ba2;
  margin-bottom: 1rem;
}

.info-box p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .header-content h1 {
    font-size: 2.2rem;
  }
  .poster-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
