
/* Movies Land - Main Styles */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0b0b10;
  --card: #17171f;
  --accent: #ff343f;
  --text: #ffffff;
  --muted: #a6a6b4;
  --border: #292934;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

/* Header */

header {
  background: #15151d;
  padding: 18px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}

.logo {
  direction: ltr;
  font-size: 25px;
  font-weight: bold;
  color: var(--accent);
}

.logo span {
  color: white;
}

nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

nav a {
  color: #ddd;
  font-size: 13px;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--accent);
}

/* Hero */

.hero {
  min-height: 390px;
  padding: 60px 7%;
  display: flex;
  align-items: center;
  background:
    linear-gradient(
      90deg,
      #0b0b10 5%,
      #0b0b10cc 50%,
      #0b0b1055
    ),
    url("https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?auto=format&fit=crop&w=1600&q=85")
    center / cover;
}

.hero-content {
  max-width: 570px;
}

.tag {
  color: var(--accent);
  font-size: 13px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(35px, 7vw, 58px);
  margin-bottom: 18px;
  direction: ltr;
}

.hero p {
  color: #d0d0d8;
  line-height: 2;
  margin-bottom: 25px;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 13px 22px;
  border: none;
  border-radius: 7px;
  background: var(--accent);
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover {
  background: #d91e2b;
  transform: translateY(-2px);
}

/* Search */

.search-box {
  padding: 25px 6%;
  display: flex;
  gap: 10px;
}

.search-box input {
  flex: 1;
  min-width: 0;
  padding: 14px;
  background: #191922;
  border: 1px solid #30303b;
  border-radius: 8px;
  color: white;
  outline: none;
}

.search-box input:focus {
  border-color: var(--accent);
}

/* Movie Section */

.section {
  padding: 15px 6% 45px;
}

.section-title {
  font-size: 22px;
  border-right: 4px solid var(--accent);
  padding-right: 12px;
  margin-bottom: 22px;
}

/* Category Filters */

.filters {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.filter {
  background: #1b1b25;
  border: 1px solid #343440;
  color: #ddd;
  border-radius: 20px;
  padding: 9px 17px;
  cursor: pointer;
  transition: 0.2s;
}

.filter.active,
.filter:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Movie Cards */

.movies {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 11px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.poster {
  height: 245px;
  position: relative;
  overflow: hidden;
  background: #252530;
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.card:hover .poster img {
  transform: scale(1.05);
}

.type {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent);
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 11px;
}

.info {
  padding: 14px;
}

.info h3 {
  font-size: 15px;
  margin-bottom: 10px;
}

.meta {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 14px;
  direction: ltr;
  text-align: right;
}

.info button {
  width: 100%;
}

/* Empty Search */

.empty {
  display: none;
  text-align: center;
  padding: 35px;
  color: #aaa;
}

/* Details Popup */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: #000d;
  z-index: 10;
  padding: 20px;
  align-items: center;
  justify-content: center;
}

.modal-box {
  max-width: 420px;
  width: 100%;
  background: #1a1a24;
  border: 1px solid #383844;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
}

.modal-box h2 {
  margin-bottom: 15px;
}

.modal-box p {
  color: #ccc;
  line-height: 2;
  margin-bottom: 20px;
}

.close {
  background: #333340;
  margin-right: 8px;
}

/* Footer */

footer {
  background: #15151d;
  text-align: center;
  padding: 28px 15px;
  color: #999;
  line-height: 2;
  font-size: 13px;
  border-top: 1px solid var(--border);
}

footer strong {
  color: var(--accent);
}

/* Mobile Responsive */

@media (max-width: 800px) {
  .movies {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .poster {
    height: 210px;
  }

  .hero {
    min-height: 330px;
    padding: 45px 6%;
  }
}

@media (max-width: 380px) {
  .poster {
    height: 165px;
  }

  .info {
    padding: 10px;
  }

  header {
    padding: 15px 4%;
  }

  .logo {
    font-size: 22px;
  }
}

