:root{--bg:#07070a;--bg-2:#0d0d12;--panel:#141419;--panel-2:#1a1a21;--line:#292931;--text:#f7f7f8;--muted:#aaaab5;--red:#e50914;--red-2:#ff3340;--green:#45d483;--radius:18px;--shadow:0 28px 80px rgba(0,0,0,.45)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,Arial,sans-serif;line-height:1.5;overflow-x:hidden}body::selection{background:var(--red);color:#fff}a{color:inherit;text-decoration:none}img{display:block;max-width:100%}button,input,textarea,select{font:inherit}button{color:inherit}.container,.content-shell{width:min(1440px,calc(100% - 72px));margin-inline:auto}.content-shell{padding:0 0 86px}main{min-height:70vh}.brand{font-size:25px;font-weight:900;letter-spacing:-1.8px;color:var(--red);white-space:nowrap}.brand--footer{font-size:22px}.site-header{position:fixed;inset:0 0 auto;z-index:100;height:78px;padding:0 max(32px,calc((100vw - 1440px)/2));display:flex;align-items:center;gap:48px;transition:.3s;background:linear-gradient(to bottom,rgba(5,5,7,.85),transparent)}.site-header.is-scrolled{height:68px;background:rgba(7,7,10,.9);backdrop-filter:blur(18px);border-bottom:1px solid rgba(255,255,255,.07)}.main-nav{display:flex;gap:25px;align-items:center}.main-nav a{color:#d0d0d6;font-size:14px;font-weight:600;transition:.2s}.main-nav a:hover{color:#fff}.header-actions{margin-left:auto;display:flex;align-items:center;gap:15px}.icon-button,.mobile-toggle{border:0;background:transparent;font-size:27px;cursor:pointer;padding:6px}.mobile-toggle{display:none;font-size:22px}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid transparent;border-radius:10px;padding:13px 20px;font-size:14px;font-weight:800;cursor:pointer;transition:.22s;white-space:nowrap}.button:hover{transform:translateY(-2px)}.button--small{padding:10px 17px}.button--red{background:var(--red);box-shadow:0 10px 30px rgba(229,9,20,.24)}.button--red:hover{background:var(--red-2)}.button--white{background:#fff;color:#0a0a0c}.button--glass{background:rgba(25,25,31,.6);border-color:rgba(255,255,255,.2);backdrop-filter:blur(12px)}.button--glass:hover{background:rgba(48,48,57,.85)}.button--wide{width:100%}.profile-menu{position:relative}.profile-trigger{display:flex;align-items:center;gap:9px;border:0;background:none;cursor:pointer}.avatar{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:linear-gradient(135deg,var(--red),#78105d);font-weight:900}.profile-name{font-size:13px;font-weight:700}.chevron{color:var(--muted)}.profile-dropdown{position:absolute;right:0;top:48px;width:205px;padding:9px;background:rgba(19,19,24,.98);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);opacity:0;visibility:hidden;transform:translateY(-8px);transition:.2s}.profile-menu.is-open .profile-dropdown{opacity:1;visibility:visible;transform:none}.profile-dropdown a{display:block;padding:11px 12px;border-radius:9px;font-size:13px;color:#d7d7de}.profile-dropdown a:hover{background:#24242c;color:#fff}.search-overlay{position:fixed;inset:0;z-index:200;background:rgba(5,5,8,.96);backdrop-filter:blur(20px);display:grid;place-items:center;opacity:0;visibility:hidden;transition:.25s}.search-overlay.is-open{opacity:1;visibility:visible}.search-overlay form{width:min(820px,calc(100% - 40px));display:grid;grid-template-columns:auto 1fr auto;align-items:center;border-bottom:2px solid #555;padding:15px 0;gap:18px}.search-overlay form span{font-size:32px}.search-overlay input{background:none;border:0;color:#fff;font-size:clamp(24px,4vw,48px);outline:none;min-width:0}.search-overlay button{background:var(--red);border:0;border-radius:9px;padding:12px 20px;font-weight:800}.search-close{position:absolute;right:35px;top:25px;border:0;background:none;font-size:44px;cursor:pointer}.toast-stack,.admin-flashes{position:fixed;z-index:250;right:24px;top:90px;display:grid;gap:10px}.toast{min-width:280px;padding:14px 17px;border-radius:12px;background:#24242b;border:1px solid #34343e;box-shadow:var(--shadow);font-size:14px}.toast--success{border-color:#287a4b;background:#163b28}.toast--error{border-color:#8d2831;background:#45171c}.hero{position:relative;height:min(87vh,840px);min-height:650px;background:#08080a}.hero-slide{position:absolute;inset:0;background-image:var(--hero);background-size:cover;background-position:center;opacity:0;visibility:hidden;transform:scale(1.03);transition:opacity .8s,transform 1.6s}.hero-slide.is-active{opacity:1;visibility:visible;transform:scale(1)}.hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,5,7,.94) 0%,rgba(5,5,7,.76) 36%,rgba(5,5,7,.12) 70%),linear-gradient(0deg,var(--bg) 0,transparent 24%,rgba(0,0,0,.1) 100%)}.hero-content{position:relative;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding-top:50px}.eyebrow{display:block;font-size:11px;font-weight:900;letter-spacing:3.4px;color:#fff;margin-bottom:13px}.eyebrow--red{color:var(--red-2)}.hero h1,.detail-copy h1{font-size:clamp(54px,7.2vw,112px);line-height:.9;letter-spacing:-6px;max-width:850px;margin:0 0 24px;text-wrap:balance}.hero-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:#e2e2e6;font-size:13px}.hero-meta strong{color:#54df91}.hero-meta span{border-left:1px solid #777;padding-left:10px}.hero p{max-width:610px;color:#d1d1d7;font-size:17px;line-height:1.75;margin:21px 0 29px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.hero-actions{display:flex;gap:12px;flex-wrap:wrap}.hero-dots{position:absolute;z-index:5;right:max(36px,calc((100vw - 1440px)/2));bottom:90px;display:flex;gap:7px}.hero-dots button{width:25px;height:3px;padding:0;border:0;background:#ffffff50;cursor:pointer;transition:.2s}.hero-dots button.is-active{width:48px;background:#fff}.home-content{margin-top:-42px;position:relative;z-index:10}.genre-pills{display:flex;gap:9px;overflow:auto;padding:8px 0 32px;scrollbar-width:none}.genre-pills a{padding:10px 16px;border-radius:999px;background:rgba(23,23,29,.9);border:1px solid var(--line);font-size:12px;font-weight:700;white-space:nowrap}.genre-pills a:hover,.genre-pills a.is-active{background:#fff;color:#09090c}.catalog-section{margin:0 0 55px}.section-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:20px;gap:20px}.section-heading h2{font-size:27px;letter-spacing:-1px;margin:0}.section-heading .eyebrow{margin-bottom:7px}.section-heading>a{color:var(--muted);font-size:13px;font-weight:700}.section-heading>a:hover{color:#fff}.movie-row{display:grid;grid-auto-flow:column;grid-auto-columns:clamp(170px,16.4vw,235px);gap:15px;overflow-x:auto;overflow-y:hidden;padding:3px 3px 18px;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#3c3c45 transparent}.movie-card{min-width:0;scroll-snap-align:start}.movie-card__image{position:relative;display:block;aspect-ratio:2/3;border-radius:14px;overflow:hidden;background:#17171d;border:1px solid rgba(255,255,255,.08);box-shadow:0 15px 35px rgba(0,0,0,.2)}.movie-card__image::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.6),transparent 45%);opacity:.2;transition:.3s}.movie-card__image img{width:100%;height:100%;object-fit:cover;transition:transform .45s,filter .45s}.movie-card:hover img{transform:scale(1.055);filter:brightness(.7)}.movie-card__play{position:absolute;z-index:2;left:50%;top:50%;transform:translate(-50%,-40%) scale(.75);width:48px;height:48px;border-radius:50%;background:#fff;color:#08080b;display:grid;place-items:center;padding-left:3px;opacity:0;transition:.25s;box-shadow:0 10px 30px #0008}.movie-card:hover .movie-card__play{opacity:1;transform:translate(-50%,-50%) scale(1)}.movie-card__rating{position:absolute;z-index:2;right:9px;top:9px;border:1px solid #ffffff44;background:#08080ba8;backdrop-filter:blur(8px);padding:4px 7px;border-radius:6px;font-size:10px;font-weight:800}.movie-card__progress{position:absolute;z-index:3;left:9px;right:9px;bottom:8px;height:3px;background:#ffffff42;border-radius:5px;overflow:hidden}.movie-card__progress i{display:block;height:100%;background:var(--red)}.movie-card__body{padding:11px 3px 0}.movie-card__body h3{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 0 5px}.movie-card__body p{font-size:11px;color:#8e8e9a;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.movie-card__body p span{margin:0 4px}.promo-banner{min-height:260px;border-radius:25px;padding:46px;display:flex;align-items:center;justify-content:space-between;gap:40px;background:radial-gradient(circle at 80% 30%,#ff334055,transparent 24%),linear-gradient(120deg,#4d0910,#12080c 55%,#0b0b0f);border:1px solid #61131b;overflow:hidden;position:relative}.promo-banner::after{content:"S";position:absolute;right:8%;top:50%;transform:translateY(-50%);font-size:280px;font-weight:900;color:#ffffff08}.promo-banner h2{font-size:clamp(28px,4vw,50px);letter-spacing:-2px;line-height:1.05;max-width:800px;margin:0 0 13px}.promo-banner p{color:#c7c7cf;margin:0}.site-footer{border-top:1px solid #222229;padding:55px max(36px,calc((100vw - 1440px)/2));display:grid;grid-template-columns:1fr auto;gap:30px;color:#93939e;background:#09090c}.site-footer p{font-size:13px}.footer-links{display:flex;gap:23px;font-size:13px}.copyright{grid-column:1/-1;border-top:1px solid #1e1e24;padding-top:24px}.browse-hero{padding:170px 0 60px;background:radial-gradient(circle at 80% 20%,#e5091428,transparent 30%),linear-gradient(#111116,#08080b)}.browse-hero h1{font-size:clamp(42px,6vw,76px);letter-spacing:-4px;margin:0 0 32px}.browse-search{display:grid;grid-template-columns:auto 1fr 170px 170px auto;align-items:center;gap:10px;background:#141419;border:1px solid #2b2b33;border-radius:16px;padding:8px 9px 8px 17px}.browse-search input,.browse-search select{width:100%;background:#0d0d11;border:1px solid #27272e;border-radius:10px;color:#fff;padding:12px;outline:none}.browse-search>span{font-size:25px}.browse-content{padding-top:40px}.results-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.results-heading h2{margin:0}.results-heading div{display:flex;background:#131318;border:1px solid #282830;border-radius:10px;padding:4px}.results-heading a{padding:8px 13px;font-size:12px;border-radius:7px}.results-heading a.is-active{background:#fff;color:#09090b}.movie-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:28px 15px}.empty-state,.inline-empty{border:1px dashed #34343e;border-radius:18px;padding:45px;text-align:center;color:var(--muted)}.empty-state strong{font-size:28px;color:#fff}.empty-page{padding:220px 30px;text-align:center}.detail-hero{min-height:780px;padding:170px 0 90px;position:relative;background-image:var(--hero);background-size:cover;background-position:center}.detail-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,5,8,.95) 0,rgba(5,5,8,.78) 45%,rgba(5,5,8,.22) 75%),linear-gradient(0deg,var(--bg),transparent 35%)}.detail-content{position:relative;display:flex;align-items:center;justify-content:space-between;gap:70px}.detail-copy{max-width:780px}.detail-copy h1{font-size:clamp(58px,7vw,105px)}.detail-copy>p{font-size:17px;color:#d0d0d8;line-height:1.75;max-width:700px}.detail-genres{display:flex;gap:8px;flex-wrap:wrap;margin:25px 0}.detail-genres a{border:1px solid #ffffff28;border-radius:999px;padding:7px 11px;font-size:11px;background:#0c0c10aa}.detail-poster{width:min(330px,26vw);aspect-ratio:2/3;object-fit:cover;border-radius:20px;box-shadow:0 40px 90px #000b;border:1px solid #ffffff20}.watchlist-button.is-added{border-color:#49d182;background:#143322}.episode-section{padding-top:25px}.episode-list{display:grid;gap:10px}.episode-list>a{display:grid;grid-template-columns:65px 1fr auto;gap:18px;align-items:center;padding:18px 20px;border:1px solid #282830;background:#111116;border-radius:14px;transition:.2s}.episode-list>a:hover{background:#18181f;border-color:#43434d;transform:translateX(4px)}.episode-no{font-size:27px;font-weight:900;color:#555561}.episode-list h3{margin:0 0 5px;font-size:16px}.episode-list p{margin:0;color:#94949f;font-size:12px}.episode-list>a>span:last-child{color:#b9b9c3;font-size:12px}.watch-page .site-header,.watch-page .site-footer{display:none}.watch-shell{height:100vh;background:#000;display:grid;grid-template-rows:74px 1fr}.watch-topbar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 26px;background:#0b0b0e;border-bottom:1px solid #24242b}.watch-topbar>a{font-size:13px;color:#c1c1ca}.watch-topbar>div{text-align:center;display:grid}.watch-topbar>div strong{font-size:14px}.watch-topbar>div span{font-size:11px;color:#93939d}.watch-topbar button{justify-self:end;background:none;border:1px solid #33333d;border-radius:8px;padding:7px 10px;cursor:pointer}.player-wrap{display:grid;place-items:center;min-height:0}.player-wrap video{width:100%;height:100%;object-fit:contain;background:#000}.no-video{text-align:center;max-width:600px;padding:30px}.no-video>span{display:grid;place-items:center;width:90px;height:90px;margin:0 auto 25px;border-radius:50%;background:#1e1e25;font-size:35px}.no-video h2{font-size:32px;margin:0 0 12px}.no-video p{color:#9d9da7;line-height:1.7}.dashboard-hero{padding:165px 0 85px;background:radial-gradient(circle at 85% 25%,#e5091430,transparent 25%),linear-gradient(130deg,#111117,#08080b)}.dashboard-hero h1{font-size:clamp(42px,6vw,75px);letter-spacing:-4px;margin:0 0 12px}.dashboard-hero p{color:#b5b5bf}.dashboard-stats{display:flex;gap:12px;margin-top:35px}.dashboard-stats>div{min-width:145px;background:#15151b;border:1px solid #2a2a33;border-radius:14px;padding:15px}.dashboard-stats strong,.dashboard-stats span{display:block}.dashboard-stats strong{font-size:21px}.dashboard-stats span{font-size:10px;color:#8f8f9b;text-transform:uppercase;letter-spacing:1px}.dashboard-content{padding-top:50px}.settings-shell{padding:150px 0 90px}.settings-heading{margin-bottom:35px}.settings-heading h1{font-size:55px;letter-spacing:-3px;margin:0 0 8px}.settings-heading p{color:var(--muted)}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings-card{background:#121217;border:1px solid #292931;border-radius:20px;padding:27px}.settings-card h2{margin-top:0}.stack-form{display:grid;gap:16px}.stack-form label{display:grid;gap:7px;font-size:12px;color:#c0c0c9;font-weight:700}.stack-form input,.stack-form textarea,.stack-form select{width:100%;background:#0b0b0f;border:1px solid #303039;border-radius:10px;padding:13px;color:#fff;outline:none}.stack-form input:focus{border-color:var(--red)}.account-note{margin-top:28px;border-top:1px solid #292931;padding-top:20px;display:grid;grid-template-columns:1fr auto;gap:11px;font-size:12px}.account-note span{color:#aaaab3}.form-alert{background:#45171c;border:1px solid #842832;border-radius:11px;padding:12px 14px;margin:10px 0;font-size:13px}.auth-page .site-footer{display:none}.auth-shell{min-height:100vh;display:grid;place-items:center;padding:130px 20px 60px;position:relative;overflow:hidden}.auth-backdrop{position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,5,8,.9),rgba(5,5,8,.75)),url('../img/backdrop-neon.svg') center/cover}.auth-backdrop--alt{background:linear-gradient(90deg,rgba(5,5,8,.9),rgba(5,5,8,.75)),url('../img/backdrop-midnight.svg') center/cover}.auth-card{position:relative;width:min(465px,100%);background:rgba(14,14,18,.88);border:1px solid #ffffff17;border-radius:23px;padding:36px;box-shadow:0 40px 100px #000a;backdrop-filter:blur(20px)}.auth-card h1{font-size:38px;letter-spacing:-2px;margin:0 0 7px}.auth-card>p{color:#a7a7b1;font-size:13px;margin:0 0 25px}.auth-foot{text-align:center;margin-top:22px;color:#a1a1ab;font-size:13px}.auth-foot a{color:#fff;font-weight:800}
@media(max-width:1150px){.main-nav{gap:16px}.movie-grid{grid-template-columns:repeat(5,1fr)}.hero h1,.detail-copy h1{letter-spacing:-4px}.detail-poster{width:280px}.browse-search{grid-template-columns:auto 1fr 145px 145px auto}}
@media(max-width:900px){.container,.content-shell{width:min(100% - 38px,1440px)}.site-header{padding:0 19px}.main-nav{position:absolute;left:18px;right:18px;top:70px;display:none;flex-direction:column;align-items:stretch;background:#15151a;border:1px solid #303038;border-radius:15px;padding:10px}.main-nav.is-open{display:flex}.main-nav a{padding:10px}.mobile-toggle{display:block}.profile-name,.chevron{display:none}.hero{min-height:650px}.hero-content{padding-top:80px}.movie-grid{grid-template-columns:repeat(4,1fr)}.browse-search{grid-template-columns:auto 1fr auto}.browse-search select{grid-row:2}.browse-search select:nth-of-type(1){grid-column:1/3}.browse-search select:nth-of-type(2){grid-column:3}.detail-content{align-items:end}.detail-poster{width:210px}.settings-grid{grid-template-columns:1fr}.promo-banner{padding:34px}.footer-links{flex-wrap:wrap}}
@media(max-width:650px){.container,.content-shell{width:calc(100% - 28px)}.site-header{height:66px}.brand{font-size:20px}.header-actions{gap:8px}.icon-button{font-size:22px}.hero{height:760px}.hero-slide{background-position:63% center}.hero-shade{background:linear-gradient(0deg,var(--bg) 2%,rgba(5,5,8,.9) 35%,rgba(5,5,8,.25) 80%)}.hero-content{justify-content:end;padding-bottom:105px}.hero h1,.detail-copy h1{font-size:50px;letter-spacing:-3px}.hero p{font-size:14px}.hero-dots{left:14px;right:auto;bottom:60px}.home-content{margin-top:-20px}.movie-row{grid-auto-columns:155px}.movie-grid{grid-template-columns:repeat(2,1fr);gap:22px 11px}.promo-banner{display:block}.promo-banner .button{margin-top:24px}.section-heading h2{font-size:22px}.browse-hero{padding:125px 0 42px}.browse-hero h1{font-size:42px;letter-spacing:-2.5px}.browse-search{display:grid;grid-template-columns:1fr}.browse-search>span{display:none}.browse-search input,.browse-search select,.browse-search button{grid-column:auto!important;grid-row:auto!important}.results-heading{align-items:flex-end}.detail-hero{padding:125px 0 60px;min-height:760px;background-position:65% center}.detail-overlay{background:linear-gradient(0deg,var(--bg) 5%,rgba(5,5,8,.92) 48%,rgba(5,5,8,.18) 100%)}.detail-content{align-items:end;min-height:590px}.detail-poster{display:none}.detail-copy>p{font-size:14px}.episode-list>a{grid-template-columns:45px 1fr}.episode-list>a>span:last-child{display:none}.watch-topbar{grid-template-columns:auto 1fr auto;gap:10px;padding:0 12px}.watch-topbar>a{font-size:0}.watch-topbar>a::after{content:'←';font-size:21px}.dashboard-hero{padding:125px 0 60px}.dashboard-hero h1{font-size:43px;letter-spacing:-2.5px}.dashboard-stats{overflow-x:auto}.dashboard-stats>div{min-width:130px}.settings-shell{padding:120px 0 60px}.settings-heading h1{font-size:42px}.auth-card{padding:25px}.site-footer{grid-template-columns:1fr;padding:40px 22px}.copyright{grid-column:auto}.profile-menu .avatar{width:31px;height:31px}.search-toggle{display:none}}

/* =========================================================
   StreamFlix interaction and premium player enhancements
   ========================================================= */
[hidden]{display:none!important}
body.modal-open{overflow:hidden}

/* Hero drag, arrows and pause-friendly interaction */
.hero{touch-action:pan-y;user-select:none;cursor:grab;overflow:hidden}
.hero:active,.hero.is-dragging{cursor:grabbing}
.hero.is-dragging .hero-slide.is-active{transform:translate3d(var(--hero-drag,0),0,0) scale(1.015);transition:none;opacity:calc(1 - min(.36, abs(var(--hero-drag,0px))/1200))}
.hero-arrow{position:absolute;z-index:8;top:50%;width:50px;height:76px;margin-top:-38px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(6,6,9,.32);color:#fff;display:grid;place-items:center;font-size:44px;line-height:1;cursor:pointer;opacity:0;transform:translateX(0);transition:opacity .25s,background .25s,transform .25s;backdrop-filter:blur(12px)}
.hero:hover .hero-arrow,.hero:focus-within .hero-arrow{opacity:1}
.hero-arrow:hover{background:rgba(229,9,20,.78);border-color:rgba(255,255,255,.25)}
.hero-arrow--left{left:22px;transform:translateX(-8px)}
.hero-arrow--right{right:22px;transform:translateX(8px)}
.hero:hover .hero-arrow--left,.hero:focus-within .hero-arrow--left,.hero:hover .hero-arrow--right,.hero:focus-within .hero-arrow--right{transform:translateX(0)}
.trailer-button{appearance:none}

/* Click-and-drag / touch rails */
.rail-shell{position:relative}
.movie-row{cursor:grab;touch-action:pan-y;overscroll-behavior-inline:contain;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;user-select:none}
.movie-row.is-dragging{cursor:grabbing;scroll-snap-type:none;scroll-behavior:auto}
.movie-row.is-dragging a{pointer-events:none}
.rail-arrow{position:absolute;z-index:7;top:calc(50% - 30px);width:48px;height:82px;border:1px solid rgba(255,255,255,.13);background:rgba(8,8,12,.72);color:#fff;font-size:40px;line-height:1;border-radius:13px;display:grid;place-items:center;cursor:pointer;opacity:0;transition:opacity .2s,background .2s,transform .2s;backdrop-filter:blur(12px);box-shadow:0 15px 35px rgba(0,0,0,.35)}
.rail-shell:hover .rail-arrow,.rail-shell:focus-within .rail-arrow{opacity:1}
.rail-arrow:hover{background:rgba(229,9,20,.9)}
.rail-arrow--left{left:-18px;transform:translateX(-5px)}
.rail-arrow--right{right:-18px;transform:translateX(5px)}
.rail-shell:hover .rail-arrow{transform:translateX(0)}

/* Trailer modal */
.trailer-modal{position:fixed;inset:0;z-index:500;display:grid;place-items:center;padding:28px;opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s}
.trailer-modal.is-open{opacity:1;visibility:visible}
.trailer-modal__backdrop{position:absolute;inset:0;border:0;background:rgba(0,0,0,.84);backdrop-filter:blur(16px);cursor:default}
.trailer-modal__dialog{position:relative;width:min(1120px,96vw);background:#09090d;border:1px solid rgba(255,255,255,.15);border-radius:22px;overflow:hidden;box-shadow:0 45px 140px rgba(0,0,0,.75);transform:translateY(18px) scale(.985);transition:transform .28s}
.trailer-modal.is-open .trailer-modal__dialog{transform:none}
.trailer-modal__dialog>header{height:76px;padding:0 22px 0 26px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:linear-gradient(90deg,#16161d,#0d0d12);border-bottom:1px solid rgba(255,255,255,.09)}
.trailer-modal__dialog>header span{display:block;color:#f33b46;font-size:9px;font-weight:900;letter-spacing:2.7px;margin-bottom:2px}
.trailer-modal__dialog>header h2{margin:0;font-size:20px;letter-spacing:-.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.trailer-modal__dialog>header button{width:42px;height:42px;border-radius:50%;border:1px solid rgba(255,255,255,.15);background:#202028;color:#fff;font-size:28px;line-height:1;cursor:pointer;transition:.2s}
.trailer-modal__dialog>header button:hover{background:var(--red);transform:rotate(90deg)}
.trailer-modal__stage{position:relative;aspect-ratio:16/9;background:#000;display:grid;place-items:center}
.trailer-modal__stage video,.trailer-modal__stage iframe{width:100%;height:100%;border:0;background:#000;object-fit:contain}
.trailer-modal__error{display:grid;gap:8px;text-align:center;color:#aaa;padding:30px}
.trailer-modal__error strong{font-size:24px;color:#fff}

/* Full viewport watch page */
html:has(body.watch-page){overflow:hidden;background:#000}
body.watch-page{width:100%;height:100dvh;overflow:hidden;background:#000;overscroll-behavior:none}
.watch-page main{height:100dvh;min-height:0;overflow:hidden}
.watch-page .site-header,.watch-page .site-footer,.watch-page .search-overlay{display:none!important}
.watch-shell{position:fixed;inset:0;width:100%;height:100dvh;background:#000;display:block;overflow:hidden}

/* Premium Netflix-inspired custom player */
.sf-player{position:relative;width:100%;height:100%;overflow:hidden;background:#000;isolation:isolate;touch-action:manipulation;cursor:none}
.sf-player.is-controls-visible,.sf-player.is-paused{cursor:default}
.sf-player video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000;z-index:0}
.sf-player__gradient{position:absolute;z-index:1;left:0;right:0;pointer-events:none;opacity:0;transition:opacity .28s}
.sf-player.is-controls-visible .sf-player__gradient,.sf-player.is-paused .sf-player__gradient{opacity:1}
.sf-player__gradient--top{top:0;height:190px;background:linear-gradient(180deg,rgba(0,0,0,.88),rgba(0,0,0,.42) 48%,transparent)}
.sf-player__gradient--bottom{bottom:0;height:260px;background:linear-gradient(0deg,rgba(0,0,0,.95),rgba(0,0,0,.52) 52%,transparent)}

.sf-player__topbar{position:absolute;z-index:4;top:0;left:0;right:0;min-height:92px;padding:18px clamp(18px,3vw,48px);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px;opacity:0;transform:translateY(-14px);pointer-events:none;transition:opacity .25s,transform .25s}
.sf-player.is-controls-visible .sf-player__topbar,.sf-player.is-paused .sf-player__topbar{opacity:1;transform:none;pointer-events:auto}
.watch-topbar__spacer{display:block;width:1px;height:1px}
.watch-back{display:inline-flex;align-items:center;gap:6px;height:38px;padding:4px 10px 4px 4px;border-radius:999px;border:1px solid rgba(255,255,255,.14);background:rgba(12,12,17,.66);color:#f5f5f7;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:0 8px 22px rgba(0,0,0,.26),inset 0 1px 0 rgba(255,255,255,.04);font-size:11px;font-weight:800;letter-spacing:-.16px;transition:background .22s,border-color .22s,transform .22s,box-shadow .22s,color .22s,opacity .2s}
.watch-back--floating{position:absolute;z-index:8;top:18px;left:clamp(16px,2.5vw,42px);opacity:1;visibility:visible;pointer-events:auto}
.watch-back__icon{width:28px;height:28px;flex:0 0 28px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.075);box-shadow:inset 0 0 0 1px rgba(255,255,255,.05);transition:background .22s,transform .22s,box-shadow .22s}
.watch-back svg{width:16px;height:16px;fill:currentColor}
.watch-back:hover{background:rgba(31,8,12,.94);border-color:rgba(255,35,48,.88);color:#fff;transform:translateX(-2px);box-shadow:0 0 0 1px rgba(229,9,20,.18),0 0 12px rgba(229,9,20,.50),0 0 26px rgba(229,9,20,.24),0 12px 28px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.08)}
.watch-back:hover .watch-back__icon{background:rgba(229,9,20,.28);transform:translateX(-1px);box-shadow:inset 0 0 0 1px rgba(255,76,88,.28),0 0 11px rgba(229,9,20,.42)}
.watch-back:active{transform:translateX(-1px) scale(.98)}
.sf-player.is-fullscreen .watch-back--floating,.sf-player:fullscreen .watch-back--floating,.sf-player:-webkit-full-screen .watch-back--floating{display:none!important}
.watch-title{text-align:center;display:grid;justify-items:center;max-width:min(52vw,700px)}
.watch-title__kicker{font-size:9px;color:#ff3440;font-weight:900;letter-spacing:2.5px;margin-bottom:2px}
.watch-title strong{display:block;max-width:100%;font-size:clamp(16px,2vw,24px);line-height:1.15;letter-spacing:-.7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.watch-title small{color:#bbbcc4;font-size:11px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.watch-brand{justify-self:end;color:var(--red);font-size:15px;font-weight:950;letter-spacing:-1px}

.sf-player__center-play{position:absolute;z-index:4;left:50%;top:50%;width:86px;height:86px;margin:-43px 0 0 -43px;border:1px solid rgba(255,255,255,.25);border-radius:50%;background:rgba(8,8,12,.62);display:grid;place-items:center;cursor:pointer;backdrop-filter:blur(14px);box-shadow:0 22px 70px rgba(0,0,0,.55);opacity:0;transform:scale(.82);pointer-events:none;transition:opacity .22s,transform .22s,background .22s}
.sf-player.is-paused .sf-player__center-play{opacity:1;transform:scale(1);pointer-events:auto}
.sf-player__center-play:hover{background:var(--red);transform:scale(1.08)!important}
.sf-player__center-play svg{width:40px;height:40px;fill:#fff}

.sf-player__loader{position:absolute;z-index:5;left:50%;top:50%;width:58px;height:58px;margin:-29px 0 0 -29px;border-radius:50%;display:grid;place-items:center;opacity:0;visibility:hidden;transition:.2s;pointer-events:none}
.sf-player__loader.is-visible{opacity:1;visibility:visible}
.sf-player__loader i{width:46px;height:46px;border-radius:50%;border:4px solid rgba(255,255,255,.22);border-top-color:var(--red);animation:sf-spin .8s linear infinite}
@keyframes sf-spin{to{transform:rotate(360deg)}}

.sf-player__controls{position:absolute;z-index:5;left:0;right:0;bottom:0;padding:0 clamp(18px,3vw,48px) clamp(17px,2.8vh,34px);opacity:0;transform:translateY(20px);pointer-events:none;transition:opacity .24s,transform .24s}
.sf-player.is-controls-visible .sf-player__controls,.sf-player.is-paused .sf-player__controls{opacity:1;transform:none;pointer-events:auto}
.sf-player__timeline{position:relative;height:24px;display:flex;align-items:center;cursor:pointer}
.sf-player__timeline::before,.sf-player__buffer,.sf-player__played{content:"";position:absolute;left:0;top:10px;height:4px;border-radius:99px;pointer-events:none}
.sf-player__timeline::before{right:0;background:rgba(255,255,255,.3)}
.sf-player__buffer{width:0;background:rgba(255,255,255,.5)}
.sf-player__played{width:0;background:var(--red);box-shadow:0 0 16px rgba(229,9,20,.45)}
.sf-player__timeline input{position:absolute;inset:0;width:100%;height:24px;margin:0;opacity:0;cursor:pointer}
.sf-player__timeline:hover::before,.sf-player__timeline:hover .sf-player__buffer,.sf-player__timeline:hover .sf-player__played{height:6px;top:9px}
.sf-player__timeline:hover .sf-player__played::after{content:"";position:absolute;right:-7px;top:-4px;width:14px;height:14px;border-radius:50%;background:var(--red);box-shadow:0 0 0 4px rgba(229,9,20,.25)}
.sf-player__seek-time{position:absolute;bottom:25px;transform:translateX(-50%);padding:5px 8px;border-radius:6px;background:#fff;color:#08080b;font-size:10px;font-weight:900;opacity:0;pointer-events:none}
.sf-player__seek-time.is-visible{opacity:1}
.sf-player__control-row{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:3px}
.sf-player__control-group{display:flex;align-items:center;gap:7px;min-width:0}
.sf-player__control-group--right{margin-left:auto}
.sf-control{width:46px;height:46px;padding:10px;border:0;border-radius:50%;background:transparent;color:#fff;display:grid;place-items:center;cursor:pointer;transition:background .18s,transform .18s}
.sf-control:hover{background:rgba(255,255,255,.14);transform:scale(1.07)}
.sf-control svg{width:25px;height:25px;fill:currentColor}
.sf-control--text{width:auto;min-width:46px;border-radius:12px;font-size:12px;font-weight:900;padding-inline:12px}
.sf-volume{display:flex;align-items:center}
.sf-volume>input{width:0;opacity:0;accent-color:#fff;transition:width .22s,opacity .22s;margin:0}
.sf-volume:hover>input,.sf-volume:focus-within>input{width:82px;opacity:1;margin-right:8px}
.sf-player__time{display:flex;align-items:center;gap:7px;color:#d9d9df;font-size:12px;white-space:nowrap;margin-left:5px}
.sf-player__time b{color:#fff}
.sf-player__time i{font-style:normal;color:#777}
.sf-speed{position:relative}
.sf-speed__menu{position:absolute;right:0;bottom:55px;width:116px;padding:7px;background:rgba(18,18,23,.95);border:1px solid rgba(255,255,255,.14);border-radius:12px;box-shadow:0 20px 60px rgba(0,0,0,.55);backdrop-filter:blur(16px);opacity:0;visibility:hidden;transform:translateY(8px);transition:.2s}
.sf-speed__menu.is-open{opacity:1;visibility:visible;transform:none}
.sf-speed__menu button{display:block;width:100%;border:0;background:none;color:#c8c8d0;text-align:left;padding:8px 10px;border-radius:7px;font-size:12px;cursor:pointer}
.sf-speed__menu button:hover,.sf-speed__menu button.is-active{background:#fff;color:#08080b;font-weight:900}
.sf-player:fullscreen,.sf-player:-webkit-full-screen{width:100vw;height:100vh;background:#000}

.no-video--fullscreen{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;background:radial-gradient(circle at 50% 35%,#291018,#050507 45%);max-width:none}
.no-video__actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:20px}

@media(max-width:900px){
  .hero-arrow{display:none}
  .rail-arrow{display:none}
  .trailer-modal{padding:14px}
  .trailer-modal__dialog{width:100%;border-radius:16px}
  .sf-player__topbar{grid-template-columns:auto 1fr auto;min-height:74px;padding:12px 16px;gap:10px}
  .watch-back{height:36px;padding:4px 9px 4px 4px;gap:5px;font-size:10.5px}
  .watch-back__icon{width:27px;height:27px;flex-basis:27px}
  .watch-back--floating{top:13px;left:13px}
  .watch-title{max-width:62vw}
  .watch-brand{font-size:12px}
  .sf-player__controls{padding:0 14px max(12px,env(safe-area-inset-bottom))}
  .sf-control{width:42px;height:42px;padding:9px}
  .sf-volume>input{display:none}
}

@media(max-width:650px){
  .hero{cursor:default}
  .movie-row{cursor:default}
  .trailer-modal{padding:0}
  .trailer-modal__dialog{width:100%;border-radius:0}
  .trailer-modal__dialog>header{height:66px;padding:0 14px 0 17px}
  .trailer-modal__dialog>header h2{font-size:16px;max-width:72vw}
  .trailer-modal__stage{aspect-ratio:16/9}
  .watch-title__kicker,.watch-brand{display:none}
  .watch-title{justify-items:start;text-align:left;max-width:calc(100vw - 88px)}
  .watch-title strong{font-size:15px}
  .watch-title small{font-size:10px}
  .sf-player__topbar{grid-template-columns:auto 1fr}
  .sf-player__center-play{width:66px;height:66px;margin:-33px 0 0 -33px}
  .sf-player__center-play svg{width:31px;height:31px}
  .sf-player__control-row{gap:4px}
  .sf-player__control-group{gap:1px}
  .sf-player__control-group [data-player-action="rewind"],
  .sf-player__control-group [data-player-action="forward"],
  .sf-player__time i,
  .sf-player__time span,
  .sf-speed{display:none}
  .sf-player__time{font-size:11px;margin-left:0}
  .sf-control{width:39px;height:39px;padding:8px}
  .sf-control svg{width:23px;height:23px}
}

@media(max-height:520px) and (orientation:landscape){
  .sf-player__topbar{min-height:58px;padding:7px max(14px,env(safe-area-inset-left))}
  .watch-back{width:34px;height:34px;padding:3px;justify-content:center}
  .watch-back__icon{width:27px;height:27px;flex-basis:27px}
  .watch-back__label{display:none}
  .watch-back--floating{top:10px;left:10px}
  .watch-title__kicker{display:none}
  .watch-title strong{font-size:14px}
  .watch-title small{font-size:9px}
  .sf-player__controls{padding:0 max(14px,env(safe-area-inset-right)) max(7px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left))}
  .sf-player__timeline{height:18px}
  .sf-player__timeline::before,.sf-player__buffer,.sf-player__played{top:8px}
  .sf-player__timeline:hover::before,.sf-player__timeline:hover .sf-player__buffer,.sf-player__timeline:hover .sf-player__played{top:6px}
  .sf-control{width:38px;height:38px;padding:8px}
  .sf-player__center-play{width:58px;height:58px;margin:-29px 0 0 -29px}
  .sf-player__gradient--top{height:100px}
  .sf-player__gradient--bottom{height:145px}
}

/* =========================================================
   StreamFlix V3 cache-safe interaction fixes
   ========================================================= */
.hero.is-dragging .hero-slide.is-active{
  transform:translate3d(var(--hero-drag,0),0,0) scale(1.012);
  opacity:.94;
}
.hero,.movie-row,.movie-row a,.movie-row img{
  -webkit-user-drag:none;
}
.movie-row{
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.movie-row::-webkit-scrollbar{display:none;width:0;height:0}

.rail-shell{position:relative;isolation:isolate}
.rail-arrow{
  position:absolute;
  z-index:20;
  top:50%;
  width:48px;
  height:96px;
  margin-top:-58px;
  padding:0;
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px;
  background:linear-gradient(135deg,rgba(20,20,27,.94),rgba(7,7,10,.82));
  color:#fff;
  display:grid;
  place-items:center;
  box-shadow:0 18px 50px rgba(0,0,0,.52);
  backdrop-filter:blur(15px);
  -webkit-backdrop-filter:blur(15px);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  cursor:pointer;
  transform:scale(.92);
  transition:opacity .18s,visibility .18s,transform .18s,background .18s;
}
.rail-arrow svg{width:28px;height:28px;fill:currentColor;pointer-events:none}
.rail-arrow--left{left:-20px}
.rail-arrow--right{right:-20px}
.rail-shell.can-scroll-left:hover .rail-arrow--left,
.rail-shell.can-scroll-left:focus-within .rail-arrow--left,
.rail-shell.can-scroll-right:hover .rail-arrow--right,
.rail-shell.can-scroll-right:focus-within .rail-arrow--right{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:scale(1);
}
.rail-arrow:hover{background:linear-gradient(135deg,#ff2634,#b40610)}
.rail-arrow:disabled{opacity:0!important;visibility:hidden!important;pointer-events:none!important}

.trailer-modal{pointer-events:none}
.trailer-modal.is-open{pointer-events:auto}
.trailer-modal__backdrop{width:100%;height:100%;padding:0}
.trailer-modal__stage video{outline:0}

html,body.watch-page{height:100%;min-height:100%;}
body.watch-page{position:fixed;inset:0;width:100%;}
.watch-page main{position:fixed;inset:0;width:100%;height:100%;}
.watch-shell{position:absolute;inset:0;width:100%;height:100%;min-height:0;}
.sf-player{position:absolute;inset:0;width:100%;height:100%;}
.sf-player video{display:block;max-width:none;}
.sf-player button,.sf-player input{-webkit-tap-highlight-color:transparent}
.sf-control:focus-visible,.watch-back:focus-visible,.sf-player__center-play:focus-visible{
  outline:2px solid #fff;
  outline-offset:3px;
}

@media (hover:none){
  .rail-arrow{display:none!important}
  .movie-row{cursor:default}
}

/* =========================================================
   StreamFlix V4 — subtle navigation + custom trailer player
   ========================================================= */
.hero-arrow{
  width:38px;
  height:62px;
  margin-top:-31px;
  border-color:rgba(255,255,255,.075);
  border-radius:11px;
  background:rgba(7,7,11,.2);
  font-size:34px;
  box-shadow:none;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.hero:hover .hero-arrow,.hero:focus-within .hero-arrow{opacity:.38}
.hero-arrow:hover{
  opacity:.9!important;
  background:rgba(11,11,16,.72);
  border-color:rgba(255,255,255,.2);
}
.hero-arrow--left{left:14px}
.hero-arrow--right{right:14px}

.rail-arrow{
  width:34px;
  height:70px;
  margin-top:-44px;
  border-color:rgba(255,255,255,.08);
  border-radius:10px;
  background:rgba(8,8,12,.32);
  box-shadow:0 10px 28px rgba(0,0,0,.22);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.rail-arrow svg{width:20px;height:20px}
.rail-arrow--left{left:-7px}
.rail-arrow--right{right:-7px}
.rail-shell.can-scroll-left:hover .rail-arrow--left,
.rail-shell.can-scroll-left:focus-within .rail-arrow--left,
.rail-shell.can-scroll-right:hover .rail-arrow--right,
.rail-shell.can-scroll-right:focus-within .rail-arrow--right{opacity:.36;transform:scale(.94)}
.rail-arrow:hover{
  opacity:.88!important;
  transform:scale(1)!important;
  background:rgba(18,18,24,.88);
  border-color:rgba(255,255,255,.2);
}

.trailer-modal__dialog>header .trailer-modal__close{
  position:relative;
  flex:0 0 auto;
  width:42px;
  height:42px;
  padding:0;
  display:grid;
  place-items:center;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(31,31,39,.86);
  overflow:hidden;
  font-size:0;
  line-height:0;
  transition:background .22s,border-color .22s,transform .28s cubic-bezier(.2,.8,.2,1);
}
.trailer-modal__close i{
  position:absolute;
  left:50%;
  top:50%;
  width:18px;
  height:2px;
  margin:-1px 0 0 -9px;
  border-radius:999px;
  background:#fff;
  pointer-events:none;
  transition:width .2s,transform .28s cubic-bezier(.2,.8,.2,1);
}
.trailer-modal__close i:first-child{transform:rotate(45deg)}
.trailer-modal__close i:last-child{transform:rotate(-45deg)}
.trailer-modal__dialog>header .trailer-modal__close:hover{
  background:var(--red);
  border-color:rgba(255,255,255,.3);
  transform:rotate(90deg) scale(1.05);
}
.trailer-modal__dialog>header .trailer-modal__close:hover i{width:20px;margin-left:-10px}
.trailer-modal__dialog>header .trailer-modal__close:focus-visible{outline:2px solid #fff;outline-offset:3px}

.trailer-player[hidden]{display:none!important}
.trailer-player{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:hidden;
  isolation:isolate;
  background:#000;
  cursor:none;
  touch-action:manipulation;
}
.trailer-player.is-controls-visible,.trailer-player.is-paused{cursor:default}
.trailer-player video{
  position:absolute;
  inset:0;
  z-index:0;
  display:block;
  width:100%;
  height:100%;
  max-width:none;
  object-fit:contain;
  background:#000;
}
.trailer-player__gradient{
  position:absolute;
  z-index:1;
  left:0;
  right:0;
  opacity:0;
  pointer-events:none;
  transition:opacity .24s;
}
.trailer-player.is-controls-visible .trailer-player__gradient,.trailer-player.is-paused .trailer-player__gradient{opacity:1}
.trailer-player__gradient--top{top:0;height:110px;background:linear-gradient(180deg,rgba(0,0,0,.62),transparent)}
.trailer-player__gradient--bottom{bottom:0;height:190px;background:linear-gradient(0deg,rgba(0,0,0,.9),rgba(0,0,0,.34) 58%,transparent)}
.trailer-player__center-play{
  position:absolute;
  z-index:4;
  left:50%;
  top:50%;
  width:72px;
  height:72px;
  margin:-36px 0 0 -36px;
  padding:0;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.24);
  border-radius:50%;
  background:rgba(8,8,12,.6);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  box-shadow:0 18px 55px rgba(0,0,0,.5);
  opacity:0;
  transform:scale(.84);
  pointer-events:none;
  cursor:pointer;
  transition:opacity .2s,transform .2s,background .2s;
}
.trailer-player.is-paused .trailer-player__center-play{opacity:1;transform:scale(1);pointer-events:auto}
.trailer-player__center-play:hover{background:var(--red);transform:scale(1.07)!important}
.trailer-player__center-play svg{width:34px;height:34px;fill:#fff}
.trailer-player__loader{
  position:absolute;
  z-index:6;
  left:50%;
  top:50%;
  width:52px;
  height:52px;
  margin:-26px 0 0 -26px;
  display:grid;
  place-items:center;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:.18s;
}
.trailer-player__loader.is-visible{opacity:1;visibility:visible}
.trailer-player__loader i{width:42px;height:42px;border:4px solid rgba(255,255,255,.22);border-top-color:var(--red);border-radius:50%;animation:sf-spin .8s linear infinite}
.trailer-player__controls{
  position:absolute;
  z-index:5;
  left:0;
  right:0;
  bottom:0;
  padding:0 22px 18px;
  opacity:0;
  transform:translateY(16px);
  pointer-events:none;
  transition:opacity .22s,transform .22s;
}
.trailer-player.is-controls-visible .trailer-player__controls,.trailer-player.is-paused .trailer-player__controls{opacity:1;transform:none;pointer-events:auto}
.trailer-player__timeline{position:relative;height:23px;display:flex;align-items:center;cursor:pointer}
.trailer-player__timeline::before,.trailer-player__buffer,.trailer-player__played{
  content:"";
  position:absolute;
  left:0;
  top:10px;
  height:4px;
  border-radius:999px;
  pointer-events:none;
}
.trailer-player__timeline::before{right:0;background:rgba(255,255,255,.28)}
.trailer-player__buffer{width:0;background:rgba(255,255,255,.46)}
.trailer-player__played{width:0;background:var(--red);box-shadow:0 0 14px rgba(229,9,20,.46)}
.trailer-player__timeline input{position:absolute;inset:0;width:100%;height:23px;margin:0;opacity:0;cursor:pointer}
.trailer-player__timeline:hover::before,.trailer-player__timeline:hover .trailer-player__buffer,.trailer-player__timeline:hover .trailer-player__played{top:9px;height:6px}
.trailer-player__timeline:hover .trailer-player__played::after{content:"";position:absolute;right:-6px;top:-3px;width:12px;height:12px;border-radius:50%;background:var(--red);box-shadow:0 0 0 4px rgba(229,9,20,.2)}
.trailer-player__control-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:2px}
.trailer-player__control-group{display:flex;align-items:center;gap:5px;min-width:0}
.trailer-control{
  width:42px;
  height:42px;
  padding:9px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:50%;
  background:transparent;
  color:#fff;
  cursor:pointer;
  transition:background .18s,transform .18s;
}
.trailer-control:hover{background:rgba(255,255,255,.13);transform:scale(1.06)}
.trailer-control:focus-visible,.trailer-player__center-play:focus-visible{outline:2px solid #fff;outline-offset:3px}
.trailer-control svg{width:24px;height:24px;fill:currentColor}
.trailer-player__time{display:flex;align-items:center;gap:6px;margin-left:4px;color:#d7d7dd;font-size:12px;white-space:nowrap}
.trailer-player__time b{color:#fff}.trailer-player__time i{font-style:normal;color:#74747e}
.trailer-player__volume{display:flex;align-items:center}
.trailer-player__volume input{width:0;margin:0;opacity:0;accent-color:#fff;transition:width .2s,opacity .2s,margin .2s}
.trailer-player__volume:hover input,.trailer-player__volume:focus-within input{width:74px;margin-right:7px;opacity:1}
.trailer-player:fullscreen,.trailer-player:-webkit-full-screen{width:100vw;height:100vh;background:#000}

@media(max-width:900px){
  .trailer-player__controls{padding:0 14px max(12px,env(safe-area-inset-bottom))}
  .trailer-control{width:40px;height:40px;padding:8px}
  .trailer-player__volume input{display:none}
}
@media(max-width:650px){
  .trailer-modal__dialog>header .trailer-modal__close{width:38px;height:38px}
  .trailer-player__center-play{width:62px;height:62px;margin:-31px 0 0 -31px}
  .trailer-player__center-play svg{width:29px;height:29px}
  .trailer-player__time{font-size:11px}
  .trailer-control{width:38px;height:38px;padding:8px}
}
@media(max-height:520px) and (orientation:landscape){
  .trailer-player__controls{padding:0 max(14px,env(safe-area-inset-right)) max(7px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left))}
  .trailer-player__gradient--bottom{height:135px}
  .trailer-player__center-play{width:56px;height:56px;margin:-28px 0 0 -28px}
}


/* V5 — details page back control */
.detail-back{
  position:absolute;
  z-index:6;
  top:96px;
  left:max(36px,calc((100vw - 1440px)/2));
  height:46px;
  padding:0 16px 0 10px;
  display:inline-flex;
  align-items:center;
  gap:9px;
  border:1px solid rgba(255,255,255,.15);
  border-radius:999px;
  background:rgba(9,9,13,.46);
  color:rgba(255,255,255,.88);
  box-shadow:0 12px 36px rgba(0,0,0,.2);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  font-size:12px;
  font-weight:800;
  letter-spacing:.15px;
  transition:background .22s,border-color .22s,color .22s,transform .22s,box-shadow .22s;
}
.detail-back__icon{
  width:28px;
  height:28px;
  flex:0 0 28px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:rgba(255,255,255,.1);
  transition:background .22s,transform .22s;
}
.detail-back__icon svg{width:17px;height:17px;fill:currentColor;display:block}
.detail-back:hover{
  background:rgba(255,255,255,.94);
  border-color:#fff;
  color:#09090c;
  transform:translateX(-3px);
  box-shadow:0 18px 42px rgba(0,0,0,.32);
}
.detail-back:hover .detail-back__icon{background:rgba(9,9,12,.1);transform:translateX(-2px)}
.detail-back:focus-visible{outline:3px solid rgba(229,9,20,.65);outline-offset:3px}
@media(max-width:900px){
  .detail-back{left:19px;top:84px}
}
@media(max-width:650px){
  .detail-back{top:78px;left:14px;width:42px;height:42px;padding:0;justify-content:center;background:rgba(9,9,13,.56)}
  .detail-back__icon{width:30px;height:30px;flex-basis:30px}
  .detail-back__text{display:none}
}

/* V6 — modal-based title details */
.info-modal{position:fixed;inset:0;z-index:470;display:grid;place-items:center;padding:28px;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .24s,visibility .24s}
.info-modal.is-open{opacity:1;visibility:visible;pointer-events:auto}
.info-modal__backdrop{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:rgba(0,0,0,.82);backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px)}
.info-modal__dialog{position:relative;width:min(1160px,96vw);max-height:92vh;overflow:auto;background:#0a0a0e;border:1px solid rgba(255,255,255,.14);border-radius:24px;box-shadow:0 45px 150px rgba(0,0,0,.78);transform:translateY(20px) scale(.985);transition:transform .28s;scrollbar-width:thin;scrollbar-color:#3b3b43 transparent}
.info-modal.is-open .info-modal__dialog{transform:none}
.info-modal__close{position:absolute;z-index:9;top:18px;right:18px;width:44px;height:44px;padding:0;border:1px solid rgba(255,255,255,.17);border-radius:50%;background:rgba(18,18,24,.72);backdrop-filter:blur(12px);cursor:pointer;display:grid;place-items:center;transition:background .2s,transform .25s,border-color .2s}
.info-modal__close i{position:absolute;left:50%;top:50%;width:17px;height:2px;margin:-1px 0 0 -8.5px;border-radius:99px;background:#fff;transform-origin:center}
.info-modal__close i:first-child{transform:rotate(45deg)}
.info-modal__close i:last-child{transform:rotate(-45deg)}
.info-modal__close:hover{background:var(--red);border-color:var(--red);transform:rotate(90deg) scale(1.05)}
.info-modal__close:focus-visible{outline:3px solid rgba(255,255,255,.78);outline-offset:3px}
.info-modal__loading,.info-modal__error{min-height:420px;padding:50px;display:grid;place-items:center;align-content:center;gap:14px;text-align:center;color:#a8a8b2}
.info-modal__loading span{width:46px;height:46px;border:4px solid rgba(255,255,255,.18);border-top-color:var(--red);border-radius:50%;animation:sf-spin .8s linear infinite}
.info-modal__error strong{font-size:24px;color:#fff}
.info-modal__hero{position:relative;min-height:620px;padding:110px 54px 54px;display:flex;align-items:flex-end;background-size:cover;background-position:center;isolation:isolate}
.info-modal__hero::before{content:"";position:absolute;inset:0;z-index:-2;background:inherit;background-size:cover;background-position:center}
.info-modal__shade{position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(6,6,9,.97) 0%,rgba(6,6,9,.78) 43%,rgba(6,6,9,.18) 73%),linear-gradient(0deg,#0a0a0e 0%,rgba(10,10,14,.24) 38%,rgba(0,0,0,.18) 100%)}
.info-modal__copy{width:min(690px,66%);position:relative;z-index:2}
.info-modal__copy h2{margin:0 0 18px;font-size:clamp(42px,6vw,84px);line-height:.94;letter-spacing:-4px;text-wrap:balance}
.info-modal__copy>p{max-width:650px;margin:20px 0 20px;color:#d6d6dc;font-size:15px;line-height:1.75;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.info-modal__meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:#dedee4;font-size:12px}
.info-modal__meta strong{color:#54df91}
.info-modal__meta span{border-left:1px solid rgba(255,255,255,.38);padding-left:10px}
.info-modal__genres{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 25px}
.info-modal__genres a{padding:7px 12px;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:rgba(17,17,23,.48);font-size:11px;font-weight:750;transition:.2s}
.info-modal__genres a:hover{background:#fff;color:#09090c}
.info-modal__actions{display:flex;gap:11px;flex-wrap:wrap}
.info-modal__poster{position:absolute;z-index:2;right:54px;bottom:45px;width:min(250px,23vw);aspect-ratio:2/3;object-fit:cover;border-radius:18px;border:1px solid rgba(255,255,255,.2);box-shadow:0 30px 80px rgba(0,0,0,.58)}
.info-modal__episodes{padding:10px 54px 48px;background:#0a0a0e}
.info-modal__section-heading{margin-bottom:18px}
.info-modal__section-heading>span{display:block;color:var(--red-2);font-size:9px;font-weight:900;letter-spacing:2.8px;margin-bottom:5px}
.info-modal__section-heading h3{margin:0;font-size:26px;letter-spacing:-1px}
.info-modal__episode-list{display:grid;gap:8px}
.info-modal__episode{display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:16px;padding:14px 16px;border:1px solid rgba(255,255,255,.08);border-radius:13px;background:#121218;transition:background .2s,border-color .2s,transform .2s}
.info-modal__episode:hover{background:#1b1b22;border-color:rgba(255,255,255,.18);transform:translateX(3px)}
.info-modal__episode-number{font-size:20px;font-weight:900;color:#686872}
.info-modal__episode h4{margin:0 0 3px;font-size:14px}
.info-modal__episode p{margin:0;color:#8e8e98;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:650px}
.info-modal__episode-duration{color:#c8c8cf;font-size:11px;font-weight:700;white-space:nowrap}
.movie-card__image[data-movie-info],.movie-card__body [data-movie-info]{cursor:pointer}

/* Keep the watch-page center control mathematically and visually centered */
.sf-player__center-play{left:50%!important;top:50%!important;margin:0!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;transform:translate(-50%,-50%) scale(.82)!important}
.sf-player.is-paused .sf-player__center-play{transform:translate(-50%,-50%) scale(1)!important}
.sf-player__center-play:hover{transform:translate(-50%,-50%) scale(1.08)!important}
.sf-player__center-play>span{position:absolute;inset:0;display:grid;place-items:center;line-height:0}
.sf-player__center-play>span[hidden]{display:none!important}
.sf-player__center-play [data-icon-play] svg{transform:translateX(2px)}

@media(max-width:900px){
  .info-modal{padding:16px}
  .info-modal__hero{min-height:560px;padding:100px 32px 40px}
  .info-modal__copy{width:72%}
  .info-modal__poster{right:30px;bottom:38px;width:210px}
  .info-modal__episodes{padding:8px 32px 38px}
}
@media(max-width:700px){
  .info-modal{padding:0;align-items:end}
  .info-modal__dialog{width:100%;max-height:94dvh;border-radius:22px 22px 0 0}
  .info-modal__close{top:13px;right:13px;width:40px;height:40px}
  .info-modal__hero{min-height:610px;padding:240px 20px 28px;background-position:center top}
  .info-modal__shade{background:linear-gradient(0deg,#0a0a0e 4%,rgba(10,10,14,.88) 42%,rgba(5,5,8,.12) 82%),linear-gradient(90deg,rgba(0,0,0,.22),transparent)}
  .info-modal__copy{width:100%}
  .info-modal__copy h2{font-size:42px;letter-spacing:-2.4px}
  .info-modal__copy>p{font-size:13px;line-height:1.65;-webkit-line-clamp:3}
  .info-modal__poster{display:none}
  .info-modal__actions .button{padding:11px 14px;font-size:12px}
  .info-modal__episodes{padding:5px 20px 28px}
  .info-modal__episode{grid-template-columns:36px 1fr;padding:12px}
  .info-modal__episode-duration{display:none}
  .info-modal__episode p{max-width:72vw}
}
@media(max-width:420px){
  .info-modal__hero{min-height:575px;padding-top:215px}
  .info-modal__copy h2{font-size:36px}
  .info-modal__meta{gap:7px}
  .info-modal__meta span{padding-left:7px}
}

/* V11 — refined cinematic hover for the watch-page Back to Home control */
.watch-back{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  border-color:rgba(255,255,255,.15);
  background:linear-gradient(180deg,rgba(24,24,30,.76),rgba(10,10,14,.72));
  box-shadow:
    0 8px 20px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.055);
  transition:
    transform .22s cubic-bezier(.2,.8,.2,1),
    border-color .22s ease,
    background .22s ease,
    box-shadow .22s ease,
    color .22s ease;
}
.watch-back::before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  background:
    radial-gradient(circle at 18% 50%,rgba(229,9,20,.18),transparent 42%),
    linear-gradient(110deg,transparent 20%,rgba(255,255,255,.075) 48%,transparent 72%);
  opacity:0;
  transform:translateX(-18%);
  transition:opacity .24s ease,transform .38s cubic-bezier(.2,.8,.2,1);
}
.watch-back::after{
  content:"";
  position:absolute;
  z-index:2;
  left:18px;
  right:18px;
  bottom:0;
  height:1px;
  border-radius:999px;
  background:linear-gradient(90deg,transparent,rgba(229,9,20,.9),transparent);
  opacity:0;
  transform:scaleX(.25);
  transition:opacity .22s ease,transform .3s cubic-bezier(.2,.8,.2,1);
  pointer-events:none;
}
.watch-back__icon{
  position:relative;
  z-index:1;
  background:linear-gradient(180deg,rgba(255,255,255,.11),rgba(255,255,255,.055));
  border:1px solid rgba(255,255,255,.07);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
  transition:
    transform .25s cubic-bezier(.2,.8,.2,1),
    background .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}
.watch-back__label{
  position:relative;
  z-index:1;
}
.watch-back:hover{
  color:#fff;
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.34);
  background:linear-gradient(180deg,rgba(31,31,39,.9),rgba(14,14,19,.86));
  box-shadow:
    0 13px 30px rgba(0,0,0,.42),
    0 0 0 1px rgba(229,9,20,.07),
    0 0 20px rgba(229,9,20,.12),
    inset 0 1px 0 rgba(255,255,255,.1);
}
.watch-back:hover::before{
  opacity:1;
  transform:translateX(0);
}
.watch-back:hover::after{
  opacity:.9;
  transform:scaleX(1);
}
.watch-back:hover .watch-back__icon{
  transform:translateX(-1px);
  background:linear-gradient(145deg,#e50914,#9d0610);
  border-color:rgba(255,105,113,.5);
  box-shadow:
    0 5px 14px rgba(229,9,20,.24),
    inset 0 1px 0 rgba(255,255,255,.22);
}
.watch-back:active{
  transform:translateY(0) scale(.975);
}
.watch-back:focus-visible{
  outline:2px solid rgba(255,255,255,.82);
  outline-offset:3px;
  box-shadow:0 0 0 5px rgba(229,9,20,.16),0 10px 26px rgba(0,0,0,.4);
}
@media (hover:none){
  .watch-back:hover{
    transform:none;
    border-color:rgba(255,255,255,.15);
    background:linear-gradient(180deg,rgba(24,24,30,.76),rgba(10,10,14,.72));
    box-shadow:0 8px 20px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.055);
  }
  .watch-back:hover::before,.watch-back:hover::after{opacity:0}
  .watch-back:hover .watch-back__icon{
    transform:none;
    background:linear-gradient(180deg,rgba(255,255,255,.11),rgba(255,255,255,.055));
    border-color:rgba(255,255,255,.07);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
  }
  .watch-back:active{
    transform:scale(.96);
    border-color:rgba(229,9,20,.55);
  }
}


/* V12 — explicit Movies/Series home rails and simplified footer */
.site-footer.site-footer--compact{
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:48px;
  padding-top:48px;
  padding-bottom:48px;
}
.site-footer--compact .site-footer__brand{min-width:0}
.site-footer--compact .site-footer__brand p{margin:14px 0 0}
.site-footer--compact .copyright{
  grid-column:auto;
  align-self:center;
  justify-self:end;
  margin:0;
  padding:0;
  border-top:0;
  text-align:right;
  white-space:nowrap;
  color:#9b9ba7;
}
@media(max-width:650px){
  .site-footer.site-footer--compact{
    grid-template-columns:1fr;
    gap:24px;
    padding:38px 22px;
    text-align:center;
  }
  .site-footer--compact .copyright{
    justify-self:center;
    text-align:center;
    white-space:normal;
  }
}

/* V13 — compact footer and refined profile dropdown trigger */
.site-footer.site-footer--compact{
  min-height:0;
  padding-top:28px;
  padding-bottom:28px;
  gap:36px;
}
.site-footer--compact .brand--footer{
  font-size:21px;
  letter-spacing:-1.45px;
}
.site-footer--compact .site-footer__brand p{
  margin:7px 0 0;
  font-size:12px;
  line-height:1.45;
}
.site-footer--compact .copyright{
  font-size:12px;
  line-height:1.4;
}

.profile-trigger{
  min-height:46px;
  padding:5px 6px 5px 5px;
  gap:9px;
  border:1px solid transparent;
  border-radius:15px;
  color:#f1f1f4;
  transition:background .2s ease,border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}
.profile-trigger:hover,
.profile-menu.is-open .profile-trigger{
  background:linear-gradient(180deg,rgba(29,29,36,.82),rgba(13,13,18,.8));
  border-color:rgba(255,255,255,.1);
  box-shadow:0 10px 28px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.055);
}
.profile-trigger:active{transform:scale(.98)}
.profile-trigger:focus-visible{
  outline:2px solid rgba(255,255,255,.82);
  outline-offset:3px;
}
.profile-trigger .avatar{
  width:38px;
  height:38px;
  border-radius:12px;
  box-shadow:0 8px 22px rgba(229,9,20,.18),inset 0 1px 0 rgba(255,255,255,.12);
}
.profile-trigger .profile-name{
  max-width:150px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
  font-weight:750;
  letter-spacing:-.12px;
}
.profile-chevron{
  width:25px;
  height:25px;
  margin-left:1px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:9px;
  display:grid;
  place-items:center;
  color:#aaaab4;
  background:rgba(255,255,255,.035);
  transition:transform .25s cubic-bezier(.2,.8,.2,1),color .2s ease,background .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.profile-chevron svg{
  width:14px;
  height:14px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.profile-trigger:hover .profile-chevron{
  color:#fff;
  background:rgba(255,255,255,.07);
  border-color:rgba(255,255,255,.14);
}
.profile-menu.is-open .profile-chevron{
  color:#fff;
  transform:rotate(180deg);
  background:linear-gradient(145deg,rgba(229,9,20,.95),rgba(138,5,13,.9));
  border-color:rgba(255,91,99,.42);
  box-shadow:0 6px 16px rgba(229,9,20,.2),inset 0 1px 0 rgba(255,255,255,.17);
}
.profile-dropdown{
  top:54px;
  transform:translateY(-7px) scale(.98);
  transform-origin:top right;
}
.profile-menu.is-open .profile-dropdown{transform:translateY(0) scale(1)}

@media(max-width:650px){
  .site-footer.site-footer--compact{
    gap:14px;
    padding:25px 20px;
  }
  .site-footer--compact .site-footer__brand p{margin-top:5px}
}
@media(max-width:560px){
  .profile-trigger{
    min-height:42px;
    padding:4px;
    gap:0;
  }
  .profile-trigger .avatar{width:34px;height:34px;border-radius:10px}
  .profile-trigger .profile-name,.profile-trigger .profile-chevron{display:none}
}

/* =========================================================
   V14 — Compact premium search overlay
   ========================================================= */
.search-overlay {
  padding: 88px 24px 40px;
  background:
    radial-gradient(circle at 50% 42%, rgba(229, 9, 20, .055), transparent 34%),
    rgba(5, 5, 8, .965);
}

.search-overlay form {
  width: min(720px, calc(100% - 32px));
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 10px 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .36);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.search-overlay form:focus-within {
  border-bottom-color: rgba(255, 255, 255, .82);
  box-shadow: 0 12px 28px -24px rgba(229, 9, 20, .8);
}

.search-overlay form > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: rgba(255, 255, 255, .78);
}

.search-overlay input {
  height: 48px;
  padding: 0;
  font-size: clamp(20px, 2.7vw, 34px);
  line-height: 1.15;
}

.search-overlay input::placeholder {
  color: rgba(255, 255, 255, .36);
}

.search-overlay form button {
  min-width: 94px;
  min-height: 43px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: 0 10px 26px rgba(229, 9, 20, .18);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.search-overlay form button:hover {
  background: #f6121d;
  transform: translateY(-1px);
  box-shadow: 0 13px 32px rgba(229, 9, 20, .26);
}

.search-close {
  position: absolute;
  top: 24px;
  right: max(24px, calc((100vw - 1440px) / 2));
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .82);
  background: rgba(22, 22, 28, .78);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .32);
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.search-close svg {
  display: block;
  width: 18px;
  height: 18px;
  pointer-events: none;
  transition: transform .22s ease;
}

.search-close:hover {
  color: #fff;
  background: rgba(229, 9, 20, .16);
  border-color: rgba(229, 9, 20, .46);
  transform: translateY(-1px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .34), 0 0 0 4px rgba(229, 9, 20, .055);
}

.search-close:hover svg {
  transform: rotate(90deg);
}

.search-close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .8);
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .search-overlay {
    padding: 76px 18px 32px;
  }

  .search-overlay form {
    width: min(100%, 560px);
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    padding-bottom: 13px;
  }

  .search-overlay input {
    height: 44px;
    font-size: clamp(19px, 6vw, 27px);
  }

  .search-overlay form button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 42px;
    margin-top: 4px;
  }

  .search-close {
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
  }

  .search-close svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 420px) {
  .search-overlay form {
    width: 100%;
  }

  .search-overlay form > span {
    font-size: 19px;
  }

  .search-overlay input {
    font-size: 20px;
  }
}

/* =========================================================
   V15 — Search close alignment + neutral focus treatment
   ========================================================= */
.search-overlay {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .035), transparent 35%),
    rgba(5, 5, 8, .97);
}

.search-overlay form {
  border-bottom-color: rgba(255, 255, 255, .28);
  box-shadow: none;
}

.search-overlay form:focus-within {
  border-bottom-color: rgba(255, 255, 255, .76);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .08),
    0 14px 28px -28px rgba(185, 200, 255, .55);
}

.search-overlay input::placeholder {
  color: rgba(255, 255, 255, .33);
}

/* Higher specificity prevents the generic search button rule
   from turning this control into a red rectangle. */
.search-overlay .search-close {
  position: absolute;
  top: 24px;
  right: max(24px, calc((100vw - 1440px) / 2));
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  margin: 0;

  display: grid;
  place-items: center;

  color: rgba(255, 255, 255, .82);
  background: rgba(20, 20, 26, .82);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;

  font-size: 0;
  line-height: 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .34);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;

  transition:
    color .2s ease,
    background .2s ease,
    border-color .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

.search-overlay .search-close svg {
  position: static;
  display: block;
  width: 17px;
  height: 17px;
  margin: 0;
  padding: 0;
  transform-origin: 50% 50%;
  pointer-events: none;
  transition: transform .22s ease;
}

.search-overlay .search-close:hover {
  color: #fff;
  background: rgba(31, 31, 39, .96);
  border-color: rgba(255, 255, 255, .28);
  transform: translateY(-1px) scale(1.03);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, .4),
    0 0 0 3px rgba(255, 255, 255, .045);
}

.search-overlay .search-close:hover svg {
  transform: rotate(90deg);
}

.search-overlay .search-close:active {
  transform: scale(.96);
}

.search-overlay .search-close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .78);
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .search-overlay .search-close {
    top: 16px;
    right: 16px;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
  }

  .search-overlay .search-close svg {
    width: 15px;
    height: 15px;
  }
}


/* =========================================================
   V16 — Premium red hover for animated search close button
   ========================================================= */
.search-overlay .search-close {
  overflow: visible;
  background: rgba(20, 20, 26, .84);
  border-color: rgba(255, 255, 255, .14);
}

.search-overlay .search-close::before {
  content: "";
  position: absolute;
  inset: -4px;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  transform: scale(.82);
  background: radial-gradient(
    circle,
    rgba(229, 9, 20, .34) 0%,
    rgba(229, 9, 20, .12) 46%,
    transparent 72%
  );
  filter: blur(3px);
  pointer-events: none;
  transition: opacity .24s ease, transform .28s ease;
}

.search-overlay .search-close:hover {
  color: #fff;
  background: linear-gradient(145deg, #f31320 0%, #c90712 100%);
  border-color: rgba(255, 108, 116, .82);
  transform: translateY(-1px) scale(1.045);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, .42),
    0 0 0 3px rgba(229, 9, 20, .11),
    0 0 24px rgba(229, 9, 20, .34);
}

.search-overlay .search-close:hover::before {
  opacity: 1;
  transform: scale(1.2);
}

.search-overlay .search-close:hover svg {
  transform: rotate(90deg) scale(1.08);
}

.search-overlay .search-close:active {
  transform: translateY(0) scale(.94);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, .36),
    0 0 0 2px rgba(229, 9, 20, .1);
}

.search-overlay .search-close:focus-visible {
  outline: 2px solid rgba(255, 82, 91, .9);
  outline-offset: 4px;
}

@media (hover: none) {
  .search-overlay .search-close:hover {
    background: rgba(20, 20, 26, .84);
    border-color: rgba(255, 255, 255, .14);
    transform: none;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .34);
  }

  .search-overlay .search-close:hover::before {
    opacity: 0;
  }

  .search-overlay .search-close:hover svg {
    transform: none;
  }
}
