/* ═══════════════════════════════════════════════
   Netflix Clone — style.css
   ═══════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --red:      #e50914;
  --red-d:    #c0040c;
  --bg:       #141414;
  --surface:  #1a1a1a;
  --border:   #2f2f2f;
  --text:     #fff;
  --muted:    #8c8c8c;
  --t: .2s ease;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* ── NAVBAR ──────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  padding: .75rem 4%;
  background: linear-gradient(to bottom, rgba(0,0,0,.9) 0%, transparent 100%);
  transition: background var(--t);
}
#navbar.solid { background: #000 !important; }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { height: 32px; display: block; }
.nav-right { display: flex; align-items: center; gap: .75rem; }

.lang-select {
  background: transparent; border: 1px solid rgba(255,255,255,.5);
  color: #fff; padding: .35rem .65rem .35rem .85rem;
  border-radius: 3px; font-size: .82rem; cursor: pointer;
  appearance: none; -webkit-appearance: none;
}
.lang-select option { background: #141414; }

.btn-outline-sm {
  font-size: .78rem; color: #ccc; text-decoration: none;
  border: 1px solid rgba(255,255,255,.3); border-radius: 4px;
  padding: .32rem .75rem; transition: var(--t);
}
.btn-outline-sm:hover { border-color: #fff; color: #fff; }

.btn-red-sm {
  background: var(--red); color: #fff; border: none; border-radius: 4px;
  padding: .38rem .9rem; font-size: .88rem; font-weight: 600; cursor: pointer;
  transition: background var(--t);
}
.btn-red-sm:hover { background: var(--red-d); }

/* ── HERO ────────────────────────────────────────── */
.hero-section {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.45); }
.hero-gradient-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 50%, rgba(20,20,20,1) 100%);
}
.hero-content {
  position: relative; z-index: 2; padding: 0 1.5rem;
  max-width: 700px; display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.hero-content h1 {
  font-size: clamp(1.8rem, 5vw, 3.2rem); font-weight: 900;
  line-height: 1.15; letter-spacing: -.02em;
}
.hero-sub   { font-size: clamp(1rem, 2.5vw, 1.35rem); font-weight: 500; }
.hero-cta-text { font-size: .95rem; color: #ddd; }

.hero-email-row { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; width: 100%; max-width: 580px; }
.email-input-wrap {
  flex: 1; min-width: 220px; position: relative;
  display: flex; align-items: center;
  background: rgba(22,22,22,.85); border: 1px solid rgba(255,255,255,.35);
  border-radius: 4px; overflow: hidden;
}
.email-icon { color: #aaa; padding: 0 .85rem; font-size: .9rem; flex-shrink: 0; }
.email-input-wrap input {
  flex: 1; border: none; background: transparent; color: #fff;
  font-family: inherit; font-size: .95rem;
  padding: .9rem .9rem .9rem 0; outline: none;
}
.email-input-wrap input::placeholder { color: #888; }

.btn-red-lg {
  background: var(--red); color: #fff; border: none; border-radius: 4px;
  padding: .85rem 1.8rem; font-size: 1rem; font-weight: 700;
  cursor: pointer; display: inline-flex; align-items: center; gap: .5rem;
  white-space: nowrap; transition: background var(--t), transform .12s;
}
.btn-red-lg:hover { background: var(--red-d); transform: scale(1.02); }

.hero-note { font-size: .78rem; color: #bbb; min-height: 1.2em; }

/* ── SEPARATOR ───────────────────────────────────── */
.sep { height: 8px; background: #2b2b2b; }

/* ── CONTENT ROWS ────────────────────────────────── */
.content-rows-section { background: var(--bg); padding: 2.5rem 4% 1rem; }

.row-block { margin-bottom: 2.5rem; }
.row-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: .85rem;
}
.row-title {
  font-size: 1.15rem; font-weight: 700; display: flex; align-items: center; gap: .5rem;
}
.trending-rank {
  background: var(--red); color: #fff; font-size: .75rem; font-weight: 900;
  padding: .1rem .45rem; border-radius: 2px; letter-spacing: .04em;
}
.row-see-all {
  font-size: .78rem; font-weight: 600; color: #e5b109;
  text-decoration: none; display: flex; align-items: center; gap: .3rem;
  transition: gap var(--t);
}
.row-see-all:hover { gap: .5rem; }

.row-track-wrap { position: relative; }
.row-track {
  display: flex; gap: .5rem; overflow-x: auto; scroll-behavior: smooth;
  padding-bottom: .5rem; scrollbar-width: none;
}
.row-track::-webkit-scrollbar { display: none; }

.row-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.7); border: 1px solid rgba(255,255,255,.15);
  color: #fff; border-radius: 4px; width: 36px; height: 64px;
  cursor: pointer; font-size: .9rem; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--t), background var(--t);
}
.row-track-wrap:hover .row-arrow { opacity: 1; }
.row-arrow:hover { background: rgba(0,0,0,.9); }
.row-prev { left: -18px; }
.row-next { right: -18px; }

/* ── MOVIE CARD ──────────────────────────────────── */
.movie-card {
  flex: 0 0 clamp(130px, 15vw, 200px);
  border-radius: 4px; overflow: hidden; cursor: pointer;
  position: relative; transition: transform .25s, z-index 0s .25s;
}
.movie-card:hover { transform: scale(1.08); z-index: 5; transition: transform .25s, z-index 0s; }
.movie-card:hover .card-hover { opacity: 1; }

.card-img-wrap { aspect-ratio: 2/3; overflow: hidden; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

.card-hover {
  position: absolute; inset: 0; opacity: 0; transition: opacity .2s;
  background: linear-gradient(to top, rgba(0,0,0,.95) 0%, rgba(0,0,0,.3) 60%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: .6rem;
}
.card-hover-title { font-size: .78rem; font-weight: 700; margin-bottom: .35rem; }
.card-hover-btns  { display: flex; gap: .3rem; }
.chb {
  width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.7);
  background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: .72rem;
  display: flex; align-items: center; justify-content: center; transition: background var(--t);
}
.chb:hover { background: rgba(255,255,255,.2); }
.chb.play  { background: #fff; color: #000; border-color: #fff; font-size: .8rem; }
.chb.play:hover { background: #ccc; }

.card-num {
  position: absolute; bottom: .4rem; right: .5rem;
  font-family: 'Impact', sans-serif; font-size: 3.2rem; font-weight: 900;
  color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.55);
  line-height: 1; pointer-events: none;
}

/* ── FEATURE SECTIONS ────────────────────────────── */
.feature-sec { background: var(--bg); padding: 4rem 4%; overflow: hidden; }
.feature-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 3rem; flex-wrap: wrap;
}
.feature-reverse .feature-inner { flex-direction: row-reverse; }
.feature-text { flex: 1; min-width: 260px; }
.feature-text h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem;
}
.feature-text p { font-size: 1.1rem; color: #ccc; line-height: 1.6; }

.feature-media { flex: 1; min-width: 260px; display: flex; justify-content: center; }

/* TV animation */
.tv-wrap { position: relative; width: min(500px, 100%); }
.tv-wrap > img { width: 100%; position: relative; z-index: 2; }
.tv-wrap > video {
  position: absolute; z-index: 1;
  top: 14%; left: 14%; width: 73%; border-radius: 3px;
}

/* Device pile */
.devices-wrap { position: relative; width: min(500px, 100%); }
.devices-wrap > img  { width: 100%; position: relative; z-index: 2; }
.devices-wrap > video { position: absolute; z-index: 1; top: 25%; left: 18%; width: 63%; }

.feature-img-plain { width: min(420px, 100%); border-radius: 6px; }

/* Download badge */
.download-badge {
  display: flex; align-items: center; gap: .75rem;
  background: var(--bg); border: 2px solid #444; border-radius: 12px;
  padding: .7rem 1rem; margin-top: 1.5rem; width: fit-content;
  animation: float 3s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
.badge-box-img { width: 40px; height: 56px; object-fit: cover; border-radius: 4px; }
.badge-text { flex: 1; }
.badge-text span:first-child { display: block; font-size: .88rem; font-weight: 700; }
.badge-sub { font-size: .75rem; color: #0071eb; }
.badge-anim {
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid #0071eb;
  display: flex; align-items: center; justify-content: center;
  color: #0071eb; animation: pulse 1s ease infinite;
}
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.12)} }

/* ── PRICING ─────────────────────────────────────── */
.pricing-sec { background: #000; padding: 4rem 4%; }
.pricing-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.sec-title { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; margin-bottom: .5rem; }
.sec-sub   { font-size: 1rem; color: var(--muted); margin-bottom: 2.5rem; }

.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem; margin-bottom: 1.5rem; text-align: left;
}
.plan-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; position: relative;
  transition: transform var(--t), box-shadow var(--t);
}
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.5); }
.featured-plan { border-color: var(--red); }
.featured-badge {
  position: absolute; top: 0; right: 0;
  background: var(--red); color: #fff; font-size: .65rem; font-weight: 700;
  padding: .25rem .7rem; border-radius: 0 8px 0 8px;
}
.plan-top { padding: 1.4rem 1.2rem; }
.plan-name  { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; margin-bottom: .35rem; }
.plan-price { font-size: 2rem; font-weight: 900; }
.plan-price span { font-size: .9rem; font-weight: 400; opacity: .8; }
.plan-features { list-style: none; padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: .6rem; }
.plan-features li { display: flex; align-items: center; gap: .55rem; font-size: .84rem; }
.plan-features li i { font-size: .7rem; flex-shrink: 0; }
.plan-features .fa-check { color: #2ecc71; }
.plan-features .fa-times { color: #555; }
.plan-features .fa-minus { color: #f39c12; }
.plan-features .no  { color: var(--muted); }
.plan-features .partial { color: #f39c12; }
.plan-btn {
  display: block; width: calc(100% - 2.4rem); margin: 0 1.2rem 1.2rem;
  background: var(--red); color: #fff; border: none; border-radius: 4px;
  padding: .65rem; font-family: inherit; font-size: .88rem; font-weight: 700;
  cursor: pointer; transition: background var(--t);
}
.plan-btn:hover { background: var(--red-d); }
.plan-btn-featured { background: var(--red); }

.pricing-note { font-size: .78rem; color: var(--muted); line-height: 1.6; max-width: 680px; margin: 0 auto; }

/* ── FAQ ─────────────────────────────────────────── */
.faq-sec { background: #000; padding: 4rem 4%; }
.faq-inner { max-width: 780px; margin: 0 auto; }
.faq-inner h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 800;
  text-align: center; margin-bottom: 1.5rem;
}
.faq-list { display: flex; flex-direction: column; gap: .5rem; }
.faq-item { overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: #2d2d2d;
  border: none; color: #fff; font-family: inherit;
  font-size: 1rem; font-weight: 400; padding: 1.1rem 1.4rem;
  cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  transition: background var(--t); gap: 1rem;
}
.faq-q:hover { background: #414141; }
.faq-icon { font-size: .85rem; flex-shrink: 0; transition: transform .3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-ans {
  background: #2d2d2d; border-top: 1px solid #444;
  color: #ddd; font-size: .95rem; line-height: 1.7;
  max-height: 0; overflow: hidden;
  padding: 0 1.4rem;
  transition: max-height .4s ease, padding .25s;
}
.faq-item.open .faq-ans { max-height: 300px; padding: 1.1rem 1.4rem; }

.faq-email-cta {
  margin-top: 2.5rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: .85rem;
}
.faq-email-cta p { font-size: .95rem; color: #ddd; }

/* ── FOOTER ──────────────────────────────────────── */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 2.5rem 4%; }
.footer-inner { max-width: 1000px; margin: 0 auto; }
.footer-phone { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: .5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .5rem 1rem; margin-bottom: 1.5rem; }
.footer-col { display: flex; flex-direction: column; gap: .5rem; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: .82rem; transition: color var(--t); }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; }
.lang-select-footer { border-color: #555; font-size: .82rem; padding: .3rem .6rem; }
.footer-copy { font-size: .78rem; color: var(--muted); }

/* ── MODAL ───────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.75); display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  animation: fadeIn .2s ease;
}
.modal-overlay.hidden { display: none; }
@keyframes fadeIn { from { opacity:0 } to { opacity:1 } }

.modal-card {
  background: #181818; border-radius: 8px;
  width: min(800px, 95vw); max-height: 92vh; overflow-y: auto;
  position: relative; animation: slideUp .3s ease;
}
@keyframes slideUp { from { transform:translateY(40px); opacity:0 } to { transform:none; opacity:1 } }
.modal-close {
  position: absolute; top: .7rem; right: .7rem; z-index: 10;
  background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.2);
  color: #fff; border-radius: 50%; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: .85rem; transition: background var(--t);
}
.modal-close:hover { background: rgba(255,255,255,.2); }

.modal-hero { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.modal-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, #181818 0%, transparent 50%);
}
.modal-hero-info {
  position: absolute; bottom: 1.5rem; left: 1.5rem; z-index: 2;
}
.modal-hero-info h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: .75rem; }
.modal-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.modal-play-btn {
  background: #fff; color: #000; border: none; border-radius: 4px;
  padding: .5rem 1.2rem; font-family: inherit; font-size: .88rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; gap: .4rem;
  transition: background var(--t);
}
.modal-play-btn:hover { background: #ddd; }
.modal-add-btn, .modal-like-btn {
  background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.5);
  color: #fff; border-radius: 50%; width: 38px; height: 38px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: .85rem; transition: background var(--t);
}
.modal-add-btn { border-radius: 4px; width: auto; padding: 0 1rem; font-size: .82rem; gap: .35rem; }
.modal-add-btn:hover, .modal-like-btn:hover { background: rgba(255,255,255,.25); }

.modal-body { padding: 1.2rem 1.5rem 1.5rem; }
.modal-meta-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .85rem; }
.modal-match   { color: #46d369; font-weight: 700; font-size: .88rem; }
.modal-year    { font-size: .85rem; color: #ddd; }
.modal-rating-badge {
  background: transparent; border: 1px solid #666; color: #ddd;
  font-size: .72rem; padding: .1rem .4rem; border-radius: 2px;
}
.modal-seasons { font-size: .85rem; color: #ddd; }
.modal-desc    { font-size: .9rem; color: #ddd; line-height: 1.6; margin-bottom: .85rem; }
.modal-genres  { font-size: .82rem; color: var(--muted); }
.modal-genres strong { color: #ddd; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
  .feature-inner { flex-direction: column !important; }
  .feature-text h2 { font-size: 1.5rem; }
  .feature-text p  { font-size: .95rem; }
  .pricing-grid    { grid-template-columns: repeat(2, 1fr); }
  .row-arrow       { display: none; }
}
@media (max-width: 480px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 1.6rem; }
  .modal-hero-info h2 { font-size: 1.1rem; }
}
