:root {
  --bg-main: #0f0f0f;
  --bg-secondary: #1a1a1a;
  --accent: #ff3c3c;
  --accent-dark: #b91c1c;
  --text-light: #e0e0e0;
  --text-muted: #9ca3af;
  --glass-blur: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.08);
}
/* ========= GLOBAL ========= */
body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(to bottom right, #0f0f0f, #1a1a1a);
  color: #e0e0e0;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.container {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
}

/* ========= PREMIUM HEADER ========= */
.header {
  background: rgba(0, 0, 0, 0.9);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.left {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.menu-button {
  font-size: 1.6rem;
  background: none;
  border: none;
  color: #ffffffcc;
  cursor: pointer;
  transition: color 0.3s ease;
}

.menu-button:hover {
  color: #fff;
}

.title {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  letter-spacing: 0.03em;
}

.movie-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  flex: 1 1 auto;
  min-width: 0;
}

.search-container {
  position: relative;
  flex: 0 0 220px;
  margin-left: 2;
  margin-right: 6rem;
  min-width: 0;
}

.search-input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-input::placeholder {
  color: #aaa;
  opacity: 0.85;
}

.search-input:focus {
  border-color: #555;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  pointer-events: none;
  color: #ccc;
  font-size: 1rem;
}

/* ========= MAIN ========= */
.main {
  flex-grow: 1;
  padding: 1.5rem;
}

/* ========= FEATURED SECTION ========= */
.featured {
  background-image: url("https://res.cloudinary.com/dptj37ebu/image/upload/f_auto,q_auto/v1752299606/100003464_1_jbm9s0.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 1rem;
  position: relative;
  min-height: 520px;
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, black, transparent 40%);
  z-index: 0;
}

.featured-content {
  position: relative;
  z-index: 1;
  padding: 17rem 1rem 2rem 2rem;
  display: flex;
  align-items: flex-end;
  height: 100%;
}

.featured-text {
  max-width: 500px;
  text-align: left;
}

.featured-text h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  margin-bottom: 0.5rem;
}

.featured-text h2 span {
  color: #9ca3af;
}

.meta {
  color: #d1d5db;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.description {
  color: #9ca3af;
  margin-bottom: 1rem;
}

.watch-button {
  background: linear-gradient(to right, #dc2626, #7f1d1d);
  color: white;
  font-weight: bold;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2);
}

.watch-button:hover {
  background: linear-gradient(to right, #b91c1c, #450a0a);
}

/* ========= MOVIES SECTION ========= */
:root {
  --card-width: 160px;
  --card-height: 160px;
}

.movie-section {
  margin-bottom: 3rem;
}

.movie-section h3 {
  font-size: 2rem;
  font-weight: bold;
  color: white;
  margin-bottom: 1rem;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--card-width), 1fr));
  gap: 1.2rem;
  justify-content: center;
}

.movie-card {
  background-color: #1f2937;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  width: 100%;
  max-width: var(--card-width);
  padding-bottom: 0.3rem;
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.08);
}

.movie-card img {
  width: 100%;
  height: var(--card-height);
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #333;
}

.movie-info {
  padding: 0.25rem;
  text-align: center;
}

.movie-info h4 {
  color: white;
  font-weight: 600;
  font-size: 1rem;
  margin: 0.2rem 0;
}

.movie-info p {
  color: #9ca3af;
  font-size: 0.85rem;
  margin: 0;
}

/* ========= FOOTER ========= */
.stream-footer {
  background-color: #0f0f0f;
  padding: 2rem 1rem 1rem;
  color: #777;
  font-size: 0.9rem;
  border-top: 1px solid #222;
  margin-top: 4rem;
}

.stream-footer-container {
  max-width: 1200px;
  margin: auto;
  text-align: center;
  padding: 0 1rem;
}

.stream-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.stream-links a {
  color: #999;
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
}

.stream-links a:hover {
  color: #fff;
}

.stream-social {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.stream-social a svg {
  width: 22px;
  height: 22px;
  fill: #777;
  transition: fill 0.3s;
}

.stream-social a:hover svg {
  fill: #fff;
}

.stream-copy {
  font-size: 0.8rem;
  color: #666;
}

/* ========= SCROLLBAR ========= */
::-webkit-scrollbar {
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #2d2d2d;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 0.8rem;
  }

  .left {
    justify-content: space-between;
    width: 100%;
  }

  .title {
    font-size: 1.3rem;
  }

  .movie-icon {
    width: 22px;
    height: 22px;
  }

  .right {
    width: 100%;
    justify-content: center;
  }

  .search-container {
    flex: 0 0 auto;
    max-width: 180px;
    margin: 0;
  }

  .search-input {
    font-size: 0.85rem;
    padding: 0.45rem 0.6rem 0.45rem 1.8rem;
  }

  .search-icon {
    left: 10px;
  }

  .featured-content {
    padding: 12rem 1rem 1.5rem;
  }

  .featured-text h2 {
    font-size: 2rem;
  }

  .watch-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
  }

  .movie-info h4 {
    font-size: 0.95rem;
  }

  .movie-info p {
    font-size: 0.75rem;
  }

  .stream-links {
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.95rem;
  }

  .stream-copy {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .featured-text h2 {
    font-size: 1.6rem;
  }

  .meta {
    font-size: 1rem;
  }

  .description {
    font-size: 0.9rem;
  }

  .watch-button {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  .movie-info h4 {
    font-size: 0.85rem;
  }

  .movie-info p {
    font-size: 0.7rem;
  }

  .stream-links a {
    font-size: 0.9rem;
  }

  .stream-social a svg {
    width: 20px;
    height: 20px;
  }

  .search-container {
    max-width: 160px;
  }

  .search-input {
    font-size: 0.75rem;
    padding: 0.4rem 0.5rem 0.4rem 1.6rem;
  }

  .search-icon {
    left: 8px;
  }

  .main {
    padding: 1rem 0.5rem;
  }

  .container {
    padding: 0 0.5rem;
  }
}
/* Fullscreen Movie Overlay */
.movie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.movie-player-container {
  max-width: 960px;
  width: 100%;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.movie-player-container video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #000;
}

.close-player {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  font-size: 20px;
  padding: 6px 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 2;
}

.close-player:hover {
  background: rgba(255, 255, 255, 0.25);
}
@media (max-width: 768px) {
  .movie-grid.mobile-limit {
    display: grid;
    grid-template-columns: repeat(2, 2fr);
    gap: 1rem;
  }

  .movie-grid.mobile-limit .movie-card:nth-child(n+5) {
    display: none !important;
  }
}
@media (max-width: 480px) {
  .featured-text {
    padding: 0 1rem;
  }

  .movie-player-container {
    padding: 0.5rem;
  }
}


