* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #0b0b0b;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

/* NAV */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 30px;
  background: rgba(0,0,0,0.9);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: #e50914;
  letter-spacing: 1px;
}

.nav input {
  width: 320px;
  max-width: 60vw;
  padding: 10px 14px;
  border-radius: 25px;
  border: none;
  outline: none;
  background: #141414;
  color: white;
  font-size: 14px;
}

/* HERO */
.hero {
  position: relative;
  height: 60vh;
  min-height: 360px;
  max-height: 520px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    #0b0b0b 10%,
    rgba(0,0,0,0.6),
    transparent
  );
}

.hero-overlay {
  position: relative;
  z-index: 2;
  padding: 30px 40px;
  max-width: 700px;
}

.hero h1 {
  font-size: 42px;
  margin: 0 0 10px;
}

.hero p {
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.5;
  max-width: 600px;
}

.hero button {
  margin-top: 15px;
  background: #e50914;
  border: none;
  padding: 10px 18px;
  color: white;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}

/* SECTIONS */
.container {
  padding: 20px 30px 80px;
}

h2 {
  margin: 25px 0 10px;
  font-size: 18px;
}

/* ROWS (Netflix style horizontal scroll) */
.grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}

.grid::-webkit-scrollbar {
  display: none;
}

/* CARD */
.card {
  min-width: 160px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: scale(1.08);
}

.card img {
  width: 160px;
  height: 240px;
  object-fit: cover;
  border-radius: 10px;
}

.title {
  font-size: 12px;
  margin-top: 6px;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* PLAYER */
.player {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.player-box {
  width: 85%;
  max-width: 1000px;
}

.player-box iframe {
  width: 100%;
  height: 60vh;
  border: none;
  border-radius: 10px;
}

.hidden {
  display: none;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 26px;
  cursor: pointer;
  color: white;
}

/* RESPONSIVE */
@media (max-width: 768px) {

  .hero h1 {
    font-size: 28px;
  }

  .hero-overlay {
    padding: 20px;
  }

  .nav input {
    width: 180px;
  }

  .card img {
    width: 130px;
    height: 200px;
  }

  .player-box iframe {
    height: 40vh;
  }
}
