* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  text-decoration: none;
  color: inherit;
}

body {
  background-color: #141414;
  color: white;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  gap: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.link {
  display: flex;
  gap: 15px;
}
.link a {
  padding: 10px 5px;
  border-bottom: 1px dotted rgb(199, 34, 34);
  font-weight: 700;
  transition: 0.3s;
  border-radius: 10px 10px 0 0;
}
.link a:hover {
  background: #160d0d;
  color: #fd0000;
  border-bottom: 1px dotted rgb(243, 237, 237);
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #e50914;
  text-decoration: none;
}

.search-box {
  display: flex;
  align-items: center;
  background: #222;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 5px 10px;
}

.search-box input {
  background: transparent;
  border: none;
  color: white;
  padding: 5px;
  outline: none;
  width: 250px;
}

.search-box button {
  background: #e50914;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.poster-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80vh;
  background:
    linear-gradient(to bottom, rgba(20, 20, 20, 0.3), #141414),
    url("https://images.unsplash.com/photo-1536440136628-849c177e76a1?q=80&w=1925&auto=format&fit=crop")
      no-repeat center center/cover;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: 0 5%;
}

.poster-content {
  max-width: 600px;
  margin-top: 50px;
}

.poster-content h1 {
  font-size: 48px;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.poster-content p {
  font-size: 16px;
  margin-bottom: 25px;
  color: #cbcbcb;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.top-movies-btn {
  background: #e50914;
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
  display: inline-block;
}

.top-movies-btn:hover {
  background: #b81d24;
  transform: scale(1.05);
}

.main-content {
  position: relative;
  z-index: 2;
  margin-top: 75vh;
  background-color: #141414;
  padding: 40px 5%;
  box-shadow: 0px -20px 20px rgba(20, 20, 20, 0.9);
}

.section-title {
  font-size: 28px;
  margin-bottom: 20px;
  border-left: 4px solid #e50914;
  padding-left: 10px;
}

.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 25px;
}

.movie-card {
  background: #1f1f1f;
  border-radius: 8px;
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  cursor: pointer;
}

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

.movie-thumb {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.movie-info {
  padding: 15px;
}

.movie-info p {
  font-size: 11px;
}

.movie-info h3 {
  font-size: 16px;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-info span {
  color: #ffb400;
  font-size: 14px;
}


.not{
  /* position: absolute; */
  width: 100vh;
  z-index: 1000;
  background: #ffff;
  border-radius: 20px;
  padding: 2rem;
  color: #e50914;
}
