/* Reset and basic styling */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #fff;
  color: #222;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  background: #111;
  color: #fff;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 58px;
  width: auto;
  max-width: 180px;
}

.nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav ul li {
  margin-left: 24px;
}

.nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.3s;
}

.nav ul li a:hover {
  background: #fbaa4f;
  color: #111;
}

/* Hamburger (mobile only) */
.hamburger {
  display: none;
  font-size: 24px;
  background: none;
  color: #fff;
  border: none;
  cursor: pointer;
  margin-left: 10px;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .nav ul {
    display: none;
    flex-direction: column;
    background: #111;
    position: absolute;
    top: 58px;
    right: 0;
    left: 0;
    padding: 16px 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 20;
  }

  .nav.show ul {
    display: flex;
  }

  .nav ul li {
    margin: 10px 0;
  }

  .nav ul li a {
    font-size: 1.1rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
  }

  .nav ul li a:hover {
    background: #222;
    color: #fbaa4f;
  }

  .hamburger {
    display: block;
    position: absolute;
    right: 20px;
    top: 22px;
  }

  .site-header .container {
    flex-wrap: wrap;
  }
}

/* Footer */
.site-footer {
  background: #222;
  color: #ccc;
  padding: 20px 0;
  text-align: center;
  margin-top: 40px;
}

.site-footer a {
  color: #fbaa4f;
  text-decoration: none;
  margin: 0 8px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links li {
  margin: 5px 10px;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.movie-card {
  background: #f5f5f5;
  border-radius: 8px;
  text-align: center;
  padding: 12px;
  transition: 0.3s;
}

.movie-card:hover {
  background: #eee;
}

.movie-card img.poster-img {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.movie-card:hover img.poster-img {
  transform: scale(1.03);
}

.movie-card p {
  margin-top: 8px;
  font-weight: bold;
  font-size: 1rem;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/*-- Pagination --*/
.pagination {
  margin: 20px 0;
  text-align: center;
}

.pagination a {
  display: inline-block;
  margin: 0 6px;
  padding: 6px 12px;
  border: 1px solid #ccc;
  text-decoration: none;
  color: #222;
}

.pagination a.active {
  background: #fbaa4f;
  color: #fff;
  border-color: #fbaa4f;
}

/*-- Single movie --*/
.movie-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.movie-detail .poster img {
  max-width: 240px;
  border-radius: 10px;
}

.movie-detail .info {
  flex: 1;
}

.movie-content {
  margin-top: 30px;
  line-height: 1.6;
}

/*-- Search form --*/
.search-form {
  margin: 20px 0;
  display: flex;
  max-width: 500px;
  gap: 10px;
}

.search-form input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.search-form button {
  padding: 10px 20px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/*-- Genre Page --*/
.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.genre-card {
  background: #f3f3f3;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  text-transform: capitalize;
  text-decoration: none;
  color: #333;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.2s ease-in-out;
}

.genre-card:hover {
  background-color: #ffd7a3;
  transform: translateY(-3px);
}

/*-- Responsive Video --*/
.responsive-video {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  margin: 20px 0;
}

.responsive-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
