/* ── Responsive ── */

/* ── Ultra-wide / 4K (1600px+) ── */
@media(min-width:1600px){
  .hero h1{font-size:4.5rem}
  .features-grid{grid-template-columns:repeat(4,1fr);gap:2.5rem}
  .premium-card{padding:4.5rem 4rem}
  .screenshot-card{flex:0 0 280px}
  .container{max-width:1400px}
}

/* ── Large tablets / small laptops (1024px) ── */
@media(max-width:1024px){
  .features-grid{grid-template-columns:repeat(2,1fr)}
  .hero-inner{gap:3rem}
  .premium-card{padding:3rem 2.5rem}
}

/* ── Tablets (768px) ── */
@media(max-width:768px){
  .hero-inner{grid-template-columns:1fr;text-align:center}
  .hero-desc{margin-left:auto;margin-right:auto;max-width:90%;font-size:1rem;line-height:1.6}
  .hero-actions{justify-content:center;gap:1rem;margin-bottom:1.5rem}
  .hero-actions .btn-primary,.hero-actions .btn-outline{max-width:280px;width:100%;padding:.85rem 1.5rem;font-size:1rem}
  .hero-stats{display:flex;flex-wrap:wrap;justify-content:center;gap:2rem;margin-top:2rem}
  .hero-stats .stat{flex:0 1 auto;min-width:80px;text-align:center;margin-bottom:.5rem}
  .hero-stats strong{font-size:1.3rem;font-weight:700;color:var(--text)}
  .hero-stats span{font-size:.75rem;color:var(--text-secondary);font-weight:500}
  .hero-phone{margin-top:1.5rem;order:-1;display:flex;justify-content:center}
  .phone-mockup{width:min(240px,80vw);max-width:240px;transform:none;margin:0 auto}
  .phone-mockup:hover{transform:translateY(-3px)}
  .phone-screen{height:auto;aspect-ratio:9/19.5;min-height:180px;width:100%;position:relative}
  .phone-app-logo{font-size:.6rem;padding:0 .75rem;margin-bottom:.2rem}
  .phone-hero-full::before{display:none}
  .phone-hero-content{padding:.5rem .75rem 0}
  .phone-hero-full::after{display:none}
  .phone-featured-badge{font-size:.35rem;padding:.1rem .4rem;margin-bottom:.3rem}
  .phone-hero-movie-title{font-size:.8rem;margin-bottom:.15rem;line-height:1.2;text-align:center}
  .phone-hero-desc{font-size:.32rem;line-height:1.3;-webkit-line-clamp:none;overflow:visible;height:auto;margin-bottom:.25rem;text-align:center;padding:.1rem .5rem;background:rgba(0,0,0,.3);border-radius:4px}
  .phone-hero-meta{display:flex;justify-content:center;gap:.4rem;font-size:.35rem;margin-bottom:.4rem}
  .phone-rating{color:var(--purple-light);font-weight:600}
  .phone-hero-btns{display:flex;justify-content:center;gap:.4rem;margin-bottom:.5rem}
  .phone-play-btn,.phone-mylist-btn{font-size:.4rem;padding:.3rem .8rem;border-radius:6px}
  .phone-dots{display:flex;justify-content:center;gap:3px;padding-bottom:.5rem}
  .phone-dots span{width:4px;height:4px;border-radius:50%;background:rgba(255,255,255,.3)}
  .phone-dots span.active{background:var(--purple)}
  .phone-cw-row{display:flex;gap:.5rem;margin-bottom:.5rem}
  .phone-cw-card{flex:1;border-radius:8px;padding:.5rem;display:flex;align-items:flex-end;justify-content:space-between;min-height:55px;position:relative;overflow:hidden}
  .phone-cw-card::before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 30%,rgba(0,0,0,.7) 100%)}
  .phone-cw-info{position:relative;z-index:1}
  .phone-cw-name{font-size:.45rem;font-weight:700;color:#fff;line-height:1.3}
  .phone-cw-sub{font-size:.4rem;color:rgba(255,255,255,.6);margin-top:2px}
  .phone-cw-play{width:26px;height:26px;border-radius:50%;background:rgba(255,255,255,.9);display:flex;align-items:center;justify-content:center;font-size:.5rem;color:var(--bg);position:relative;z-index:1;flex-shrink:0}
  .phone-nav-bar{display:none}
  .nav-inner{display:flex !important;align-items:center !important;justify-content:space-between !important;width:100%;height:auto}
  .logo{margin:0;display:flex;align-items:center;line-height:1}
  .sub-nav{top:0;height:32px;z-index:102}
  .sub-nav-inner{gap:1.5rem;padding:0 1rem;justify-content:flex-start}
  .sub-nav-inner a{font-size:0.65rem}
  .nav{top:32px;padding:0.75rem 0}
  .nav.scrolled{top:0}
  .nav-links{display:none}
  .features-grid{grid-template-columns:1fr;gap:1.25rem;margin:0 1rem}
  .feature-card{padding:1.5rem}
  .feature-card h3{font-size:1.1rem;margin-bottom:.5rem;text-align:center}
  .feature-card p{font-size:.9rem;line-height:1.5;text-align:center}
  .feature-icon{width:36px;height:36px;margin:0 auto .75rem}
  .feature-icon svg{width:20px;height:20px}
  .screenshots{padding:3rem 0;background:var(--surface)}
  .screenshots-scroll{flex-direction:column;align-items:center;gap:1.5rem;height:auto;overflow-x:hidden;scroll-snap-type:none;padding:0}
  .screenshot-card{flex:0 0 auto;width:160px;height:auto;margin:0;scroll-snap-align:center}
  .screenshot-card img{height:240px;width:100%;object-fit:cover;object-position:top}
  .screenshot-card p{font-size:.85rem;margin-top:.75rem}
  .phone-frame-landscape{display:none}
  .phone-frame{border-radius:22px;padding:4px;height:280px;min-height:auto;margin:0 auto}
  .phone-frame img{height:100%;object-fit:cover;border-radius:16px}
  .immersive{padding:3rem 0;background:var(--bg);position:relative}
  .immersive-wrapper{position:relative;margin:0 -1rem}
  .immersive-glow{display:none}
  .immersive h2{font-size:1.6rem;margin-bottom:.5rem}
  .immersive p{font-size:.95rem}
  .download{padding:3rem 0;position:relative}
  .download h2{font-size:1.8rem;margin-bottom:.75rem}
  .download p{font-size:1rem;margin-bottom:1.5rem}
  .download-actions{position:relative;margin-bottom:1.5rem}
  .download-actions .btn-primary,.download-actions .btn-outline{width:100%;max-width:280px;margin:0 auto;display:block}
  .download-meta{display:flex;align-items:center;justify-content:center;gap:1rem;font-size:.85rem;color:var(--text-muted);position:relative;flex-wrap:wrap}
  .dot{width:4px;height:4px;border-radius:50%;background:var(--text-muted);display:inline-block}
  .footer{padding:2.5rem 0 2rem}
  .footer-inner{text-align:center;padding:0 1rem}
  .footer-logo{font-size:1.2rem;font-weight:800;letter-spacing:2px;display:inline-block;margin-bottom:.5rem}
  .footer-tagline{color:var(--text-secondary);font-size:.85rem;margin-bottom:1.5rem}
  .footer-links{display:flex;justify-content:center;gap:2rem;margin-bottom:1.5rem}
  .footer-links a{font-size:.85rem;color:var(--text-secondary);transition:color .2s}
  .footer-links a:hover{color:var(--purple-light)}
  .footer-copy{color:var(--text-muted);font-size:.75rem;line-height:1.8}
  .footer-copy a{color:var(--purple-light)}
  .dmca-banner-home{padding:2rem 1.5rem}
  .dmca-banner-home h2{font-size:1.8rem;margin-bottom:.75rem}
  .dmca-banner-home p{font-size:1.05rem;line-height:1.8;margin-bottom:.75rem}
  .dmca-banner-home .dmca-email{padding:1rem 2rem;font-size:1.1rem}
  .dmca-banner-home .btn-outline{padding:.75rem 2rem;font-size:1.05rem;margin-top:1rem}
  .download-modal-content{padding:2rem 1.5rem;margin:0 1rem}
  .download-modal-features li{font-size:.8rem}
}

/* ── Mobile (480px) ── */
@media(max-width:480px){
  .hero h1{font-size:1.8rem;line-height:1.2}
  .hero h1 br{display:none}
  .hero-desc{font-size:.9rem;margin-bottom:1.5rem;max-width:95%;padding:0 .5rem}
  .hero-actions{gap:.75rem}
  .hero-actions .btn-primary,.hero-actions .btn-outline{padding:.75rem 1.25rem;font-size:.9rem;border-radius:8px}
  .hero-stats{gap:1.5rem;margin-top:1.5rem}
  .hero-stats strong{font-size:1.2rem}
  .hero-stats span{font-size:.7rem}
  .nav-links a{font-size:.95rem;padding:.7rem 0}
  .nav-links .btn-nav-download{max-width:140px;padding:.65rem 1rem;font-size:.9rem}
  .phone-mockup{width:160px;height:auto}
  .phone-frame{height:200px}
  .phone-frame img{height:100%;object-fit:cover}
  .screenshots{padding:2.5rem 0}
  .screenshot-card{width:140px;height:auto}
  .screenshot-card img{height:210px}
  .screenshot-card p{font-size:.7rem;margin-top:.5rem}
  .premium-card{padding:1.5rem 1rem}
  .premium h2{font-size:1.5rem;margin-bottom:.75rem}
  .premium-desc{font-size:1rem;margin-bottom:1.5rem}
  .premium-features{transform:scale(0.9);transform-origin:center;margin-left:-1rem;margin-bottom:1.5rem}
  .premium-features li{font-size:.85rem;margin-bottom:.85rem}
  .premium-note{font-size:.75rem;padding-top:1.5rem;margin-top:1.5rem}
  .dmca-banner-home{padding:1.25rem .75rem}
  .dmca-banner-home h2{font-size:1.2rem;margin-bottom:.4rem}
  .dmca-banner-home p{font-size:.85rem;line-height:1.5;margin-bottom:.4rem}
  .dmca-banner-home .btn-outline{padding:.5rem 1.25rem;font-size:.9rem;width:85%;max-width:180px}
  .footer{padding:2rem 0 1.5rem}
  .footer-copy p{font-size:.7rem}
  .download-modal-content{padding:1.5rem 1rem}
  .download-modal-icon{width:56px;height:56px}
  .download-modal-icon svg{width:28px;height:28px}
  .download-modal-content h3{font-size:1.2rem}
  .download-modal-content>p{font-size:.85rem}
  .download-modal-features{gap:.35rem;margin-bottom:1rem}
  .download-modal-features li{font-size:.78rem}
  .download-modal-terms{font-size:.65rem}
}

/* ── Small phones (380px) ── */
@media(max-width:380px){
  .hero{min-height:auto;padding:5rem 0 3rem}
  .hero h1{font-size:1.5rem}
  .hero-desc{font-size:.82rem}
  .hero-actions .btn-primary,.hero-actions .btn-outline{padding:.65rem 1rem;font-size:.82rem}
  .hero-stats{gap:1rem}
  .hero-stats strong{font-size:1.1rem}
  .hero-stats span{font-size:.65rem}
  .section-header h2{font-size:1.4rem}
  .section-header p{font-size:.88rem}
  .features{padding:3rem 0}
  .feature-card{padding:1.25rem}
  .feature-card h3{font-size:1rem}
  .feature-card p{font-size:.82rem;line-height:1.4}
  .screenshots{padding:2rem 0}
  .screenshot-card{width:130px}
  .screenshot-card img{height:195px}
  .download{padding:2.5rem 0}
  .download h2{font-size:1.5rem}
  .download p{font-size:.9rem;margin-bottom:1.25rem}
  .download-actions .btn-primary,.download-actions .btn-outline{max-width:240px;padding:.7rem 1.25rem;font-size:.88rem}
  .premium{padding:3rem 0}
  .premium h2{font-size:1.3rem}
  .premium-card{padding:1.25rem .75rem}
  .premium-features li{font-size:.8rem;margin-bottom:.6rem}
  .footer-links{gap:1rem}
  .footer-links a{font-size:.78rem}
  .footer-copy{font-size:.68rem}
  .dmca-banner-home{padding:1rem .5rem}
  .dmca-banner-home h2{font-size:1.1rem}
  .dmca-banner-home p{font-size:.8rem}
  .carousel-slide-title{font-size:1.1rem}
  .carousel-slide-overview{font-size:.75rem;-webkit-line-clamp:2}
  .carousel-tmdb-badge{font-size:.5rem;max-width:160px;padding:.25rem .4rem}
}

/* ── Very small phones (320px) ── */
@media(max-width:320px){
  .container{padding:0 .75rem}
  .hero h1{font-size:1.3rem}
  .hero-desc{font-size:.75rem}
  .hero-actions{flex-direction:column;align-items:center}
  .hero-actions .btn-primary,.hero-actions .btn-outline{max-width:200px;width:100%;padding:.6rem .9rem;font-size:.78rem}
  .hero-stats{flex-direction:column;align-items:center;gap:.75rem}
  .phone-mockup{width:130px}
  .phone-screen{min-height:240px}
  .features{padding:2.5rem 0}
  .feature-card{padding:1rem}
  .feature-icon{width:30px;height:30px}
  .feature-icon svg{width:16px;height:16px}
  .premium-card{padding:1rem .5rem}
  .premium h2{font-size:1.2rem}
  .premium-price .amount{font-size:3rem}
  .download h2{font-size:1.3rem}
  .footer-links{flex-wrap:wrap;gap:.75rem}
}

/* ── Touch-friendly improvements ── */
@media(hover:none) and (pointer:coarse){
  .btn-primary,.btn-outline,.btn-nav-download,.carousel-play-btn,.carousel-mylist-btn{min-height:44px;min-width:44px}
  .nav-links a{min-height:44px;display:flex;align-items:center;justify-content:center}
  .menu-toggle{min-height:44px;min-width:44px}
  .carousel-dot{min-height:12px;min-width:12px}
  .feature-card{cursor:default}
  .feature-card:hover{transform:none;box-shadow:none}
  .phone-play-btn,.phone-mylist-btn{min-height:28px}
}

/* ── Safe area for notched phones ── */
@supports(padding:env(safe-area-inset-top)){
  .nav{padding-top:calc(1rem + env(safe-area-inset-top))}
  .nav.scrolled{padding-top:calc(.75rem + env(safe-area-inset-top))}
  .footer{padding-bottom:calc(2rem + env(safe-area-inset-bottom))}
  .download{padding-bottom:calc(6rem + env(safe-area-inset-bottom))}
  .phone-statusbar{padding-top:calc(.5rem + env(safe-area-inset-top))}
}

/* ── Reduced motion ── */
@media(prefers-reduced-motion:reduce){
  *{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important}
  .hero-text,.hero-phone,.feature-card{animation:none}
  .carousel-slide{transition:none}
  html{scroll-behavior:auto}
}

/* ── Dark mode forced (already dark, but ensure no light flash) ── */
@media(prefers-color-scheme:light){
  body{background:var(--bg);color:var(--text)}
}

/* ── Print ── */
@media print{
  .nav,.menu-toggle,.carousel-arrow,.carousel-dots,.carousel-tmdb-badge,.download-modal,.dmca-section,.footer{display:none !important}
  body{background:#fff;color:#000}
  .hero{min-height:auto;padding:2rem 0}
  .hero h1{color:#000}
  .hero-desc{color:#333}
  .feature-card{border:1px solid #ccc;background:#f9f9f9}
  .feature-card h3{color:#000}
  .feature-card p{color:#333}
}

/* ── Landscape phones ── */
@media(max-height:500px) and (orientation:landscape){
  .hero{min-height:auto;padding:4rem 0 2rem}
  .hero-inner{gap:2rem}
  .hero-phone{display:none}
  .phone-mockup{display:none}
  .featured-carousel{height:70vh;min-height:300px}
}

/* ── High DPI / Retina ── */
@media(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){
  .phone-mockup{box-shadow:0 30px 60px rgba(0,0,0,.5),0 0 60px var(--purple-glow),inset 0 0 0 1px rgba(255,255,255,.05)}
}
