/* ===========================================================
   CINE POINT — Core Stylesheet
   Replace CSS variables below to re-theme / re-brand the site
=========================================================== */

:root {
  --bg: #0e0e10;
  --bg-alt: #17171a;
  --card-bg: #1c1c20;
  --border: #2a2a2f;
  --text: #eaeaea;
  --text-muted: #9a9aa2;
  --accent: #e50914;
  --accent-glow: rgba(229, 9, 20, 0.35);
  --gold: #d4af37;
  --radius: 10px;
  --max-width: 1200px;
  --font-main: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 14, 16, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.logo span { color: var(--accent); }

.main-nav ul { display: flex; gap: 26px; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.main-nav a:hover, .main-nav a.active { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
}

.platform-strip {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  white-space: nowrap;
}
.platform-strip .container { display: flex; gap: 22px; padding: 10px 20px; }
.platform-strip a {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}
.platform-strip a:hover { color: var(--gold); }

/* ---------- Hero / Search ---------- */
.hero {
  padding: 50px 0 30px;
  text-align: center;
  background: radial-gradient(circle at top, rgba(229,9,20,0.12), transparent 60%);
}
.hero h1 { font-size: 2.1rem; margin-bottom: 10px; }
.hero p { color: var(--text-muted); max-width: 640px; margin: 0 auto 24px; }

.search-box {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
}
.search-box input {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius) 0 0 var(--radius);
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  font-size: 0.95rem;
}
.search-box button {
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  font-weight: 700;
}

/* ---------- Section headings ---------- */
.section { padding: 40px 0; }
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title h2 {
  font-size: 1.4rem;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}
.section-title a { font-size: 0.85rem; color: var(--gold); font-weight: 600; }

/* ---------- Movie grid / cards ---------- */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.movie-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px var(--accent-glow);
  border-color: var(--accent);
}
.movie-card img { aspect-ratio: 2/3; object-fit: cover; width: 100%; }
.movie-card .info { padding: 12px; }
.movie-card .info h3 { font-size: 0.95rem; margin-bottom: 4px; }
.movie-card .info .meta { font-size: 0.78rem; color: var(--text-muted); }
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
  margin-top: 6px;
}

/* ---------- Release table ---------- */
.release-table-wrap { overflow-x: auto; }
table.release-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
}
table.release-table th, table.release-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  white-space: nowrap;
}
table.release-table th {
  background: #222226;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}
table.release-table tr:hover td { background: rgba(229,9,20,0.06); }
table.release-table a { color: var(--text); font-weight: 600; }
table.release-table a:hover { color: var(--accent); }

/* ---------- Movie detail page ---------- */
.movie-banner {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}
.movie-header {
  display: flex;
  gap: 28px;
  margin-top: -90px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}
.movie-header .poster {
  width: 200px;
  border-radius: var(--radius);
  border: 3px solid var(--bg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.movie-header .headline { padding-top: 100px; flex: 1; min-width: 260px; }
.movie-header h1 { font-size: 1.9rem; margin-bottom: 8px; }
.movie-header .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pill {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.details-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
}
.details-table tr { border-bottom: 1px solid var(--border); }
.details-table td { padding: 12px 16px; font-size: 0.9rem; }
.details-table td:first-child { color: var(--text-muted); font-weight: 600; width: 220px; }

.content-block { margin: 30px 0; }
.content-block h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}
.content-block p { color: var(--text); margin-bottom: 12px; }

.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.video-wrap iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 18px;
  color: var(--text-muted);
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 18px 16px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform 0.2s; color: var(--accent); font-size: 1.2rem; }

.share-bar { display: flex; gap: 10px; margin: 20px 0; }
.share-bar a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 0.9rem;
}
.share-bar a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Sidebar ---------- */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 2.4fr 1fr;
  gap: 36px;
  align-items: start;
}
.sidebar-widget {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 20px;
}
.sidebar-widget h3 {
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--gold);
}
.sidebar-list li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a:hover { color: var(--accent); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.82rem; color: var(--text-muted); margin: 18px 0; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 40px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}
.footer-grid h4 { color: var(--gold); font-size: 0.95rem; margin-bottom: 14px; }
.footer-grid li { padding: 5px 0; font-size: 0.85rem; color: var(--text-muted); }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 20px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .layout-with-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 63px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: none;
    flex-direction: column;
    padding: 10px 0;
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { padding: 10px 20px; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }
  .movie-header { margin-top: -50px; }
  .movie-header .poster { width: 130px; }
  .movie-header .headline { padding-top: 60px; }
}

/* ---------- Cast images gallery (movie page) ---------- */
.cast-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 16px;
}
.cast-item {
  flex: 0 1 130px;
  text-align: center;
}
.cast-item img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 8px;
  display: block;
}
.cast-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}
.cast-character {
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---------- News cards (homepage + news listing) ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.news-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px var(--accent-glow);
  border-color: var(--accent);
}
.news-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.news-card .info { padding: 14px; }
.news-card .info h3 { font-size: 1rem; margin-bottom: 6px; }
.news-card .info .date { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; }
.news-card .info p { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Poster lightbox popup ---------- */
.poster-lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.poster-lightbox-overlay.open {
  display: flex;
}
.poster-lightbox-inner {
  position: relative;
  max-width: 500px;
  width: 100%;
  text-align: center;
}
.poster-lightbox-img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card-bg);
}
.poster-lightbox-title {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 14px;
}
.poster-lightbox-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 720px) {
  .poster-lightbox-close { top: -14px; right: 0; }
}
.poster-lightbox-details-btn {
  display: inline-block;
  margin-top: 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.9rem;
}
.poster-lightbox-details-btn:hover {
  opacity: 0.9;
}
.news-secondary-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}