/* ============================================================
   style.css — Reel Vault look (dark cinematic theme).
   ============================================================ */

:root {
  --bg: #0b0e14;
  --bg-2: #10141d;
  --card: #141a24;
  --border: #242e3d;
  --accent: #e50914;
  --accent-hover: #ff1f2b;
  --text: #e8ecf1;
  --muted: #8a94a6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ---------- Header ---------- */
header {
  padding: 18px 24px;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  font-family: "Bebas Neue", sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
  text-decoration: none;
  color: var(--text);
}
.brand span { color: var(--accent); }

#search {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 8px;
  width: 260px;
  max-width: 100%;
  font-size: 15px;
  font-family: inherit;
}
#search:focus { outline: 2px solid var(--accent); border-color: transparent; }

.tagline { color: var(--muted); margin-top: 6px; font-size: 13px; }

/* ---------- Layout ---------- */
main { padding: 24px; max-width: 1280px; margin: 0 auto; }

/* ---------- Hero banner ---------- */
.hero {
  position: relative;
  height: 360px;
  border-radius: 14px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  margin-bottom: 28px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,14,20,0.96) 0%, rgba(11,14,20,0.5) 55%, rgba(11,14,20,0.15) 100%);
}
.hero-content {
  position: relative;
  padding: 28px;
  max-width: 640px;
}
.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.hero-content h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 56px;
  line-height: 0.95;
  letter-spacing: 1px;
  margin: 0 0 8px;
}
.hero-meta { color: var(--accent); font-weight: 600; margin: 0 0 12px; font-size: 15px; }
.hero-desc { color: var(--muted); line-height: 1.55; margin: 0 0 18px; font-size: 15px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); }

/* ---------- Browse head + chips ---------- */
.browse-head { margin-bottom: 18px; }

.section-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 30px;
  letter-spacing: 1px;
  margin: 0 0 14px;
}

.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--accent); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Movie grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(0,0,0,0.5);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #1a2230;
}
.poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.card:hover .poster { transform: scale(1.06); }

.play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.play-badge span {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(229,9,20,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  padding-left: 4px;
}
.card:hover .play-badge { opacity: 1; }

.card .info { padding: 12px; }
.card .info h3 { margin: 0 0 4px; font-size: 15px; font-weight: 700; line-height: 1.25; }
.card .info .sub { color: var(--muted); font-size: 13px; }

/* ---------- Watch page ---------- */
#watch { max-width: 900px; }

.player-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}
.player-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

#movie-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 38px;
  letter-spacing: 1px;
  margin: 20px 0 8px;
}
.meta { color: var(--accent); font-weight: 600; margin: 0 0 12px; }
.desc { color: var(--muted); line-height: 1.6; max-width: 720px; }

.back-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.back-link:hover { color: var(--accent); }

.empty { color: var(--muted); }

/* ---------- Footer ---------- */
footer {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
}
footer a { color: var(--accent); }

/* ---------- Header nav ---------- */
.header-right { display: flex; align-items: center; gap: 16px; }
.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.nav-link:hover { color: var(--accent); }
.nav-link.active { color: var(--accent); }

/* ---------- "Why it's in the vault" block ---------- */
.why {
  margin-top: 24px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
}
.why-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 24px;
  letter-spacing: 1px;
  margin: 0 0 8px;
}
.why-text { color: var(--text); line-height: 1.6; margin: 0; }

/* ---------- About page ---------- */
.about { max-width: 760px; }
.about-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 46px;
  letter-spacing: 1px;
  margin: 0 0 22px;
}
.mission {
  font-size: 20px;
  line-height: 1.5;
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  margin-bottom: 28px;
}
.mission p { margin: 0; }
.mission strong { color: var(--accent); }
.mission .mission-sub {
  color: var(--muted);
  font-size: 16px;
  margin-top: 10px;
  line-height: 1.6;
}
.about-section { margin-bottom: 26px; }
.about-section h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 26px;
  letter-spacing: 1px;
  margin: 0 0 8px;
}
.about-section p { color: var(--muted); line-height: 1.7; margin: 0; }
.about-section a { color: var(--accent); }
