/* Reset / basics */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root{
  --bg:#141414; --muted:#bdbdbd; --accent:#e50914; --card:#2f3140;
  --glass: rgba(255,255,255,0.04);
}

/* Utility */
.visually-hidden {
  position:absolute!important;
  height:1px;width:1px;
  overflow:hidden;clip:rect(1px,1px,1px,1px);
  white-space:nowrap;border:0;padding:0;margin:-1px;
}


@keyframes glowPulse {
  0%   { box-shadow: 0 6px 18px rgba(229,9,20,0.06); }
  50%  { box-shadow: 0 14px 36px rgba(229,9,20,0.22); }
  100% { box-shadow: 0 6px 18px rgba(229,9,20,0.06); }
}

/* Body */
body{
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg, #0f0f0f 0%, #141414 60%);
  color:#fff;
  min-height:100vh;
  line-height:1.4;
  -webkit-font-smoothing:antialiased;
  scroll-behavior: smooth;
}

/* Light mode styles */
body.light-mode {
  background: linear-gradient(180deg, #f5f5f5 0%, #ffffff 60%);
  color: #000;
}



/* === TOGGLE BUTTON === */
.theme-toggle {
  width: 60px;
  height: 30px;
  border-radius: 30px;
  background: linear-gradient(45deg, #ff0000, #111);
  display: flex;
  align-items: center;
  padding: 4px;
  cursor: pointer;
  transition: background 0.4s ease;
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 2000;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
}
.toggle-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.4s ease, background 0.4s ease;
}
body.light-mode .theme-toggle {
  background: linear-gradient(45deg, #fff, #ddd);
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
body.light-mode .toggle-circle {
  transform: translateX(30px);
  background: #000;
}



/* Header */
.site-header{
  position:fixed; top:0; left:0; right:0;
 background-image:url(images.jpg);
  background-size:cover; background-position:center;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  z-index:1000;
}
@supports ((-webkit-backdrop-filter: blur(6px)) or (backdrop-filter: blur(6px))) {
  .site-header {
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
}
.header-inner{
  max-width:1200px; margin:0 auto; padding:12px 20px;
  display:flex; align-items:center; justify-content:space-between;
}
/* Logo */
.logo {
 
  border-radius: 8px;
  padding: 4px 12px;
  display: inline-block;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.logo img {
  height: 36px;
  display: block;
}
.primary-nav ul{ list-style:none; display:flex; gap:22px; }
.primary-nav a{
  text-decoration:none; color:#fff; font-weight:600; opacity:0.95;
  transition: color .18s, transform .18s;
  font-size: 20px
}
.primary-nav a:hover{ color:var(--accent); transform:translateY(-2px); }
.profile-icon{
  font-size: 20px;
}
.header-right button{
  gap:20px;
}
/* Banner */
.banner{
  margin-top:72px; /* header height */
  height:72vh; min-height:420px;
  display:flex; align-items:center; justify-content:center;
  /* background-image: url('https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/f562aaf4-5dbb-4603-a32b-6ef6c2230136/dh0w8qv-9d8ee6b2-b41a-4681-ab9b-8a227560dc75.jpg'); */
 background-image:url(netflix-library-photo-scaled-1.jpg);
  background-size:cover; background-position:center;
  position:relative; padding:40px 20px;
  overflow:hidden;
}
.banner::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.85));
  z-index:1;
}
@supports ((-webkit-backdrop-filter: blur(6px)) or (backdrop-filter: blur(6px))) {
  .site-header {
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
}
.banner-inner{ position:relative; z-index:2; text-align:center; max-width:900px; padding:30px; }
.banner h1{ font-size:clamp(1.6rem, 4vw, 3rem); margin-bottom:12px; font-weight:800; letter-spacing: -0.5px; color:white}
.banner .sub{ color:var(--muted); margin-bottom:18px; font-size:1rem; }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px; border:0; cursor:pointer; border-radius:8px; padding:10px 16px;
  font-weight:700;
}
.btn.primary{ background:var(--accent); color:#fff; }
.btn.primary.small{ padding:8px 12px; font-size:.95rem; border-radius:6px; }
.btn.outline{ background:transparent; color:#fff; border:1px solid rgba(255,255,255,0.06); }

/* Email CTA */
.email-cta{ display:flex; gap:10px; justify-content:center; align-items:center; margin:12px 0 18px; flex-wrap:wrap; }
.email-cta input{
  min-width:240px; width:360px; max-width:75vw; padding:14px 16px; border-radius:8px; border:1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03); color:#fff; font-weight:600;
}
.email-cta input:focus{ outline:2px solid rgba(229,9,20,0.18); }

/* Content area */
.content{ max-width:1200px; margin:40px auto; padding:0 20px; }
.content-top{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; flex-wrap:wrap; }
.content-top h2{ font-size:1.6rem; }
.controls{ display:flex; gap:12px; align-items:center; }
.dropdown select{ padding:10px 12px; border-radius:8px; background:var(--glass); color:#fff; border:1px solid rgba(255,255,255,0.06); }

/* Movie carousel */
.movie-container{ display:flex; align-items:center; gap:12px; position:relative; }
.movies{ display:flex; gap:14px; overflow:auto; padding:12px; scroll-behavior:smooth; }
.movies:focus{ outline:2px solid rgba(255,255,255,0.06); }
.movie{ min-width:220px; max-width:260px; flex:0 0 220px; border-radius:12px; overflow:hidden; transform:translateY(10px); opacity:0; transition:all .35s ease; }
.movie img{ width:100%; height:320px; object-fit:cover; display:block; border-radius:10px; transition:transform .35s, box-shadow .35s; }
.movie img:hover{ transform:scale(1.06); box-shadow: 0 12px 30px rgba(0,0,0,0.6); }

/* Debug / fallback: ensure movie cards and images are visible if JS didn't set them */
.movie{
  opacity:1 !important;
  transform:none !important;
}
.movie img{
  display:block;
  width:100%;
  height:320px; /* keep same intended height */
  object-fit:cover;
}

/* Scroll buttons */
.scroll-btn{
  background:var(--accent); border:0; color:#fff; padding:10px 12px; border-radius:8px; cursor:pointer; font-size:1.05rem;
  box-shadow: 0 6px 18px rgba(233,9,20,0.12);
}
.scroll-btn:hover{ transform:scale(1.03); }

/* Cards */
.reasons{ max-width:1200px; margin:48px auto; padding:0 20px; }
.section-title{ font-size:1.4rem; margin-bottom:18px; }
.cards{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.card{ background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); padding:20px; border-radius:14px; box-shadow: 0 6px 18px rgba(0,0,0,0.45); min-height:160px; display:flex; flex-direction:column; gap:8px; }
.card-icon{ font-size:28px; color:var(--accent); }

 /* Subtle glow for cards, icons, section titles and FAQ */
.cards .card{
  transition: transform .18s ease, box-shadow .28s ease, border-color .18s ease;
  will-change: transform, box-shadow;
}
.cards .card:hover,
.cards .card.glow{
  transform: translateY(-8px);
  box-shadow:
    0 28px 64px rgba(229,9,20,0.10),
    0 6px 22px rgba(0,0,0,0.6),
    inset 0 0 36px rgba(229,9,20,0.02);
  border: 1px solid rgba(229,9,20,0.06);
  animation: glowPulse 2.6s ease-in-out infinite;
}

/* card icon pop + glow */
.card-icon{
  transition: transform .18s, filter .18s, text-shadow .18s;
  display:inline-block;
}
.card:hover .card-icon,
.card.glow .card-icon{
  transform: translateY(-4px) scale(1.03);
  filter: drop-shadow(0 12px 28px rgba(229,9,20,0.20));
  text-shadow: 0 6px 18px rgba(229,9,20,0.10);
}

/* Section headings get a faint rim glow to lift them from the background */
.section-title,
.footer-top p, /* keep footer subtle too */
.banner .sub{
  text-shadow: 0 6px 18px rgba(229,9,20,0.03);
}

/* ---------- Footer / forms / small layout fixes (restores proper spacing & visuals) ---------- */
.footer-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:28px 20px;
  flex-wrap:wrap;
}
.footer-top p{
  margin:0;
  color:#fff;
  font-weight:600;
  line-height:1.3;
  max-width:900px;
}

/* footer inline email form */
.email-form,
.footer-top .email-form{
  display:flex;
  gap:10px;
  align-items:center;
  margin:0;
  flex: 0 1 420px;
  width:100%;
  box-sizing:border-box;
}
.email-form input,
.footer-top .email-form input {
  flex:1;
  min-width:160px;
  max-width:420px;
  width:100%;
  padding:10px 12px;
  border-radius:6px;
  background:var(--glass);
  color:#fff;
  border:1px solid rgba(255,255,255,0.06);
}
.email-form input::placeholder,
.footer-top .email-form input::placeholder{
  color:rgba(255,255,255,0.55);
}
.email-form .btn,
.footer-top .email-form .btn{
  margin:0;
}

/* footer links row */
.footer-links{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  padding:12px 20px;
  margin-top:8px;
}
.footer-links a{
  color:rgba(255,255,255,0.85);
  text-decoration:none;
  font-size:0.95rem;
  padding:6px 0;
  border-bottom:2px solid transparent;
}
.footer-links a:hover{
  color:var(--accent);
  border-bottom-color: rgba(229,9,20,0.10);
}

/* footer bottom */
.footer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:18px 20px;
  border-top:1px solid rgba(255,255,255,0.02);
  flex-wrap:wrap;
}
.footer-bottom small{ margin-left:auto; }

/* Prevent horizontal overflow / large bottom scrollbar */
html, body { overflow-x: hidden; }

/* ---------- Layout fixes: FAQ, footer, footer-form and responsive tweaks ---------- */

/* Ensure FAQ section uses full content width and FAQ items fill their container */
.faq-section {
  width: 100%;
  box-sizing: border-box;
  display: flex;              /* center content */
  flex-direction: column;
  align-items: center;        /* center children horizontally */
  padding: 20px 0;            /* give some vertical breathing room */
}
.faq-section h2 {
  margin-bottom: 12px;
  width:100%;
  max-width:900px;
  text-align: left;           /* change to center if you want the heading centered: text-align:center; */
  padding: 0 10px;
}

/* center the faq list and cap its width */
.faq-list {
  max-width: 900px;
  width: 100%;
  margin: 12px auto 36px;     /* auto horizontal margins = centered */
  padding: 0 10px;
  box-sizing: border-box;
}

/* keep each item full-width inside the centered list */
.faq-item { width: 100%; margin-bottom: 12px; }

/* ensure faq-question doesn't exceed the container and respects padding */
.faq-question {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
}

/* Footer: keep CTA and form aligned, stack on small screens */
.footer-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:28px 20px;
  flex-wrap:wrap;
}
.footer-top p{ flex:1 1 480px; margin:0; }

/* Footer inline email form should be flexible and not overflow */
.email-form,
.footer-top .email-form{
  display:flex;
  gap:10px;
  align-items:center;
  margin:0;
  flex: 0 1 420px;
  width:100%;
  box-sizing:border-box;
}
.email-form input,
.footer-top .email-form input {
  flex:1;
  min-width:160px;
  max-width:420px;
  width:100%;
  padding:10px 12px;
  border-radius:6px;
  background:var(--glass);
  color:#fff;
  border:1px solid rgba(255,255,255,0.06);
}

/* Footer links row: remove browser defaults / blue links */
.footer-links{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  padding:12px 20px;
  margin-top:8px;
}
.footer-links a{
  color:rgba(255,255,255,0.85);
  text-decoration:none;
  font-size:0.95rem;
  padding:6px 0;
  border-bottom:2px solid transparent;
}
.footer-links a:hover{
  color:var(--accent);
  border-bottom-color: rgba(229,9,20,0.10);
}

/* Footer bottom layout */
.footer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:18px 20px;
  border-top:1px solid rgba(255,255,255,0.02);
  flex-wrap:wrap;
}
.footer-bottom small{ margin-left:auto; }

/* Prevent horizontal overflow / large bottom scrollbar */
html, body { overflow-x: hidden; }

/* Responsive tweaks for narrower screens */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .faq-list { padding: 0 10px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap:12px; }
  .footer-top p { flex: none; width:100%; }
  .footer-top .email-form { flex: none; width:100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom small { margin-left: 0; margin-top: 8px; }
}

.faq-question,
button.faq-question,
a.faq-question {
  /* remove browser default button/anchor styles */
  font-size:20px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(238, 107, 107, 0.726);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.02);
  border-radius: 10px;
  padding: 14px 18px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: background .12s ease, transform .12s ease, box-shadow .18s ease, border-color .12s ease;
  text-decoration: none; /* for anchors */
}
body.light-mode .faq-question,
body.light-mode button.faq-question,
body.light-mode a.faq-question
body.light-mode .faq-answer{

  background: #f9acac; /* light solid background */
  color: #111;         /* black text */
  border: 1px solid #ddd;
}

  background: #f0f0f0; /* light solid background */
  color: #111;         /* black text */
  border: 1px solid #ddd;
}

/* Ensure inner text/icons don't bring their own background */
.faq-question * { background: transparent; }

/* hover/focus/active affordance */
.faq-question:hover,
.faq-question:focus,
.faq-question.glow {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(229,9,20,0.06);
  border-color: rgba(229,9,20,0.05);
  background: rgba(243, 7, 7, 0.696);
  outline: none;
}

/* visible keyboard focus */
.faq-question:focus-visible {
  outline: 3px solid rgba(229,9,20,0.14);
  outline-offset: 2px;
}

/* FAQ answer visibility */
.faq-answer { margin-top:8px; padding:0 6px 10px 6px; color:var(--muted); line-height:1.45; font-weight:400;font-size:18px; }
.faq-answer[hidden] { display:none; }


body.light-mode .faq-answer {
  color: #333; /* dark text for light background */
}

 /* Center FAQ and footer content */
.faq-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 12px;
  box-sizing: border-box;
}
.faq-section h2 {
  text-align: center;
  width: 100%;
  max-width: 900px;
  padding: 0 10px;
}
.faq-list {
  max-width: 900px;
  width: 100%;
  margin: 12px auto 36px;
  padding: 0 10px;
  box-sizing: border-box;
}
.faq-item {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 12px;
}
.faq-question {
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Center footer content and inline form */
.footer-top {
  justify-content: center;
  text-align: center;
}
.footer-top p {
  margin: 0 auto;
  text-align: center;
  flex: none;
}
.footer-top .email-form {
  justify-content: center;
  width: 100%;
  max-width: 520px;
  margin: 8px auto 0;
}

/* Center footer links/bottom */
.footer-links {
  justify-content: center;
  padding: 12px 0 20px;
}
.footer-links a { display: inline-block; }

.footer-bottom {
  justify-content: center;
  text-align: center;
  padding: 18px 20px;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .faq-list { padding: 0 16px; }
  .footer-top { flex-direction: column; align-items: center; gap: 12px; }
  .footer-bottom { flex-direction: column; align-items: center; }
}

/* Additional glow effects (added) */
.logo img{
  transition: filter .22s ease, transform .18s ease;
}
.logo img.glow,
.logo img:hover{
  transform: translateY(-2px);
  filter: drop-shadow(0 14px 36px rgba(229,9,20,0.45));
}

/* Stronger headline rim glow */
.banner h1{
  /* text-shadow:
    0 6px 30px rgba(229,9,20,0.08),
    0 2px 8px rgba(0,0,0,0.6);*/

} 

/* CTA button pulse */
.btn.primary{
  position:relative;
  transition: transform .18s, box-shadow .22s;
  box-shadow: 0 8px 28px rgba(233,9,20,0.12);
}
.btn.primary:hover,
.btn.primary.glow{
  transform: translateY(-3px);
  animation: glowPulse 2.2s ease-in-out infinite;
  box-shadow: 0 22px 48px rgba(233,9,20,0.28), 0 0 30px rgba(233,9,20,0.08);
}

/* Movie poster glow on hover */
.movie img{
  transition: transform .35s, box-shadow .35s, filter .35s;
}
.movie img:hover,
.movie.glow img{
  transform: scale(1.06);
  box-shadow: 0 30px 60px rgba(229,9,20,0.10), 0 8px 28px rgba(0,0,0,0.6);
  filter: drop-shadow(0 16px 36px rgba(229,9,20,0.18));
}

/* Scroll button glow */
.scroll-btn,
#scrollTopBtn{
  transition: box-shadow .18s, transform .12s;
}
.scroll-btn:hover,
#scrollTopBtn:hover,
.scroll-btn.glow,
#scrollTopBtn.glow{
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(229,9,20,0.12), 0 6px 18px rgba(0,0,0,0.6);
}

/* small persistent neon outline helper */
.glow-outline{
  box-shadow: 0 0 28px rgba(229,9,20,0.10), inset 0 0 12px rgba(229,9,20,0.03);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .btn.primary,
  .btn.primary.glow,
  .movie img,
  .movie.glow img,
  .logo img,
  .scroll-btn,
  #scrollTopBtn {
    animation:none !important;
    transition:none !important;
  }
}

/* Red "click light" ripple effect (global) */
.click-overlay{
  position:fixed;
  left:0;
  top:0;
  right:0;
  bottom:0;
  pointer-events:none;
  z-index:9999;
  overflow:visible;
}

.click-overlay .ripple{
  position:absolute;
  width:18px;
  height:18px;
  border-radius:50%;
  background: radial-gradient(circle, rgba(229,9,20,0.95) 0%, rgba(229,9,20,0.45) 35%, rgba(229,9,20,0.12) 65%, transparent 100%);
  transform: translate(-50%, -50%) scale(0.18);
  opacity:1;
  will-change: transform, opacity;
  animation: clickLight .6s cubic-bezier(.2,.7,.2,1) forwards;
  mix-blend-mode: screen;
  pointer-events:none;
}

@keyframes clickLight{
  to {
    transform: translate(-50%, -50%) scale(7.5);
    opacity:0;
  }
}

/* Smaller, subtler ripple for small screens */
@media (max-width:480px){
  .click-overlay .ripple{ width:14px; height:14px; animation-duration:.55s; }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce){
  .click-overlay .ripple{ display:none; animation:none !important; }
}

/* */
/* Movie Modal */
.movie-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  animation: fadeIn 0.3s;
  overflow-y: auto;
  padding: 40px 20px;
}

.movie-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn { 
  from { opacity: 0; } 
  to { opacity: 1; } 
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Modal content wrapper */
.modal-content {
  background: #181818;
  border-radius: 8px;
  max-width: 850px;
  width: 100%;
  position: relative;
  color: #fff;
  animation: slideUp 0.4s ease-out;
  box-shadow: 0 3px 10px rgba(0,0,0,0.5);
  overflow: hidden;
}

/* Close button */
.close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #181818;
  border: none;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.close-modal:hover {
  background: #282828;
}

/* Modal body */
.modal-body {
  display: flex;
  flex-direction: column;
}

/* Hero section with poster */
.modal-hero {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
}

.modal-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Gradient overlay bottom */
.modal-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, #181818 0%, rgba(24,24,24,0.8) 20%, transparent 100%);
  pointer-events: none;
}

/* Content over the hero image */
.modal-hero-content {
  position: absolute;
  bottom: 60px;
  left: 48px;
  right: 48px;
  z-index: 2;
}

.modal-title {
  font-size: 46px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.45);
}

/* Action buttons */
.modal-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.modal-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.modal-btn.play {
  background: #fff;
  color: #000;
  padding: 10px 32px;
}

.modal-btn.play:hover {
  background: rgba(255,255,255,0.75);
}

.modal-btn.icon-only {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  background: rgba(42,42,42,0.6);
  border: 2px solid rgba(255,255,255,0.5);
  justify-content: center;
  color: #fff;
}

.modal-btn.icon-only:hover {
  border-color: #fff;
  background: rgba(42,42,42,0.8);
}

/* Info section */
.modal-info-section {
  padding: 32px 48px 48px;
}

.modal-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 50px;
}

/* Left column */
.modal-main-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  flex-wrap: wrap;
}

.match-score {
  color: #46d369;
  font-weight: 700;
  font-size: 16px;
}

.modal-year {
  color: #bcbcbc;
}

.modal-duration {
  color: #bcbcbc;
}

.quality-badge {
  border: 1px solid rgba(255,255,255,0.4);
  padding: 0px 6px;
  font-size: 11px;
  font-weight: 600;
  color: #bcbcbc;
  line-height: 1.8;
}

.modal-description {
  font-size: 16px;
  line-height: 1.4;
  color: #fff;
}

/* Right column - Cast & details */
.modal-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: #fff;
}

.detail-row {
  display: flex;
  gap: 8px;
}

.detail-label {
  color: #777;
  min-width: 48px;
}

.detail-value {
  color: #fff;
}

.detail-value a {
  color: #fff;
  text-decoration: none;
}

.detail-value a:hover {
  text-decoration: underline;
}

/* Genre tags */
.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.genre-tag {
  font-size: 12px;
  color: #fff;
}

.genre-tag:not(:last-child)::after {
  content: '•';
  margin-left: 6px;
  color: #646464;
}

@media (max-width: 900px) {
  .modal-content {
    max-width: 95%;
  }

  .modal-hero {
    height: 350px;
  }

  .modal-title {
    font-size: 32px;
  }

  .modal-hero-content {
    left: 24px;
    right: 24px;
    bottom: 40px;
  }

  .modal-info-section {
    padding: 24px;
  }

  .modal-info-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .modal-hero {
    height: 280px;
  }

  .modal-title {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .modal-hero-content {
    bottom: 24px;
  }

  .modal-btn {
    font-size: 14px;
    padding: 8px 20px;
  }

  .modal-btn.play {
    padding: 8px 24px;
  }
}

.theme-switch-wrapper {
  display: inline-block;
  vertical-align: middle;
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 26px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #c13109; /* Blue when active */
}

input:checked + .slider:before {
  transform: translateX(24px);
}

/* Optional: dark/light body colors */
body {
  background-color: #111;
  color: #fff;
  transition: all 0.3s ease;
}

body.light-mode {
  background-color: #fff;
  color: #111;
}


/* 🔹 Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #e50914;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 15px;
  font-size: 22px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* ignore clicks when hidden */
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto; /* allow clicks */
  transform: translateY(0);
}

