* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #0f172a;
    color: #ffffff;
}

/* Header */
header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 20px;
    background: #020617;
}

header h1 {
    color: #38bdf8;
}

/* Desktop Nav */
.desktop-nav {
    display: flex;
    gap: 10px;
}

.nav-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background: #1e293b;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.nav-btn:hover,
.nav-btn.active {
    background: #38bdf8;
    color: #000;
}

/* Search */
header input {
    padding: 10px;
    width: 220px;
    border-radius: 5px;
    border: none;
    outline: none;
}

/* Hamburger */
.hamburger {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #020617;
    border-radius: 10px;
}

.mobile-menu .nav-btn {
    width: 100%;
    text-align: left;
    padding: 12px;
}

/* Movies Grid */


/* Responsive */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .hamburger {
        display: block;
    }

    header input {
        width: 100%;
    }

    .mobile-menu.show {
        display: flex;
    }
}

@media (max-width: 480px) {
    header h1 {
        width: 100%;
        text-align: center;
    }

    .movie img {
        height: 260px;
    }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: #000;
  color: #fff;
}

/* Center narrow column like the screenshot */
.page {
  display: flex;
  justify-content: center;
  padding: 30px 0;
}

/* Vertical narrow grid */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(3, 170px);
  gap: 18px;
}

/* Movie card */


.movie-card {
  display: block;           /* REQUIRED for <a> */
  text-decoration: none;    /* remove underline */
  color: inherit;           /* keep text white */
  background-color: #111;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;

}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.8);
}

.movie-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.movie-info {
  padding: 8px;
  font-size: 12px;
  line-height: 1.4;
}

.movie-title {
  font-weight: bold;
  margin-bottom: 4px;
}

.movie-meta {
  color: #bbb;
  font-size: 11px;
}

/* Responsive */
@media (max-width: 600px) {
  .movie-grid {
    grid-template-columns: repeat(2, 160px);
  }
}
