body {
  background-color: #0d0d0d;
  color: white;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

header {
  background-color: #1a1a1a;
  padding: 15px;
  text-align: center;
}

main {
  padding: 20px;
}

.tieu-de {
  margin-bottom: 15px;
  color: #ff4d4d;
}

.khu-phim {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  justify-content: center;
}

.phim {
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  color: white;
  font-size: 14px;
  width: 220px;
  transition: 0.3s;
}

.phim img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.noi-dung-phim {
  padding: 10px;
}

.ten-phim {
  font-size: 15px;
  font-weight: bold;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mo-ta {
  font-size: 13px;
  color: #ccc;
  margin: 5px 0;
  height: 35px;
  overflow: hidden;
}

.thong-tin {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #999;
}

.phim:hover {
  transform: scale(1.05);
}


.phim img {
  width: 100%;
  border-radius: 5 px;
}

footer {
  padding: 30px;
  margin-top: 30px;
  color: gray;
  font-size: 14px;
}

.dau-trang {
  background-color: #0d0d0d;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  border-bottom: 1px solid #222;
}

.trai a {
  color: white;
  margin-right: 20px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
}

.trai a:hover {
  color: #f5c518;
}

.giua {
  display: flex;
  align-items: center;
  gap: 10px;
}

.o-tim {
  padding: 6px 10px;
  border-radius: 5px;
  border: 1px solid #555;
  background-color: black;
  color: white;
  width: 220px;
}

.nut-tim {
  background-color: #222;
  color: #aaa;
  border: 1px solid #555;
  border-radius: 5px;
  padding: 6px 12px;
  cursor: pointer;
}

.nut-tim:hover {
  background-color: #333;
  color: white;
}

.phai {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  background-color: #ffb400;
  color: black;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 6px;
}

.icon {
  color: #ffb400;
  font-size: 18px;
}

.logo-text {
  text-align: center;
  font-size: 32px;
  color: gray;
  margin-top: 15px;
  margin-bottom: 10px;
  font-family: 'Segoe UI', Arial, sans-serif;
  letter-spacing: 1px;
}

.slide {
  width: 50%;
  height: 250px;
  margin: 20px auto;
  overflow: hidden;
  border-radius: 10px;
  position: relative;
}

.list {
  display: flex;
  width: 400%;
  animation: chay 16s infinite;
}

.list img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

@keyframes chay {

  0%,
  20% {
    margin-left: 0;
  }

  25%,
  45% {
    margin-left: -100%;
  }

  50%,
  70% {
    margin-left: -200%;
  }

  75%,
  95% {
    margin-left: -300%;
  }

  100% {
    margin-left: 0;
  }
}

.button {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.button label {
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  opacity: 0.7;
}

.lien-he {
  background-color: #111;
  color: #ccc;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  line-height: 1.6;
  border-top: 1px solid #333;
}

.lien-he a {
  color: #ffb400;
  text-decoration: none;
}

.lien-he a:hover {
  text-decoration: underline;
}
