/* HarryFlix v2 — responsive layer: 320px phones → 4K TVs. Loaded last. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{overflow-x:hidden}
img{max-width:100%}
.v2-search-clear[hidden]{display:none!important}
/* grid/flex children must be allowed to shrink (prevents horizontal scroll) */
.v2-watch>*,.ac-grid>*,.v2-title-in>*,.sp>*,.pf-row>*,.pf-fields{min-width:0}
.ac-card{overflow:hidden}
.ac-table{display:block;overflow-x:auto;white-space:nowrap}
.ac-line{flex-wrap:wrap;row-gap:6px}
.ac-line b{min-width:0;overflow-wrap:anywhere}
.v2-meta{row-gap:6px}

/* ---------- big screens & TVs ---------- */
@media(min-width:1600px){
  html{font-size:17px}
  .pc{width:clamp(170px,10.4vw,230px)}
  .t10{width:clamp(128px,7.8vw,166px);height:clamp(140px,8.6vw,182px)}
  .t10 .pc{width:clamp(88px,5.3vw,114px)}
  .t10 b{font-size:clamp(96px,5.9vw,128px)}
  .cw,.ne{width:clamp(320px,17vw,400px)}
  .uv{width:clamp(250px,14vw,320px)}
  .gt{width:290px;height:170px}
  .v2-hero-copy{width:min(760px,42vw)}
  .v2-thumb{width:150px}
  .grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}
  .qv{width:380px}
}
@media(min-width:2200px){
  html{font-size:20px}
  :root{--top:84px}
  .v2-top{height:84px}
  .pc{width:clamp(220px,9.6vw,300px)}
  .cw,.ne{width:440px}
  .uv{width:340px}
  .gt{width:340px;height:200px}
  .grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
  .v2-thumb{width:190px}
  .qv{width:440px}
  .v2-prof-menu{width:320px}
  .pf-av.sm{width:42px;height:42px}
  svg{width:24px;height:24px}
}

/* ---------- tablets ---------- */
@media(max-width:1024px){
  .v2-watch{grid-template-columns:1fr}
  .side{display:grid;grid-template-columns:1fr 1fr;gap:14px}
  .side .panel:last-child{grid-column:1/-1}
}
@media(max-width:760px){.side{grid-template-columns:1fr}}

/* ---------- phones ---------- */
@media(max-width:640px){
  :root{--pad:16px;--top:58px}
  .v2-top{height:58px;gap:10px;padding:0 var(--pad)}
  .v2-top .v2-brand{font-size:1.12rem;gap:7px}
  .v2-top .v2-brand img{width:28px;height:28px}.v2-top .hf-word{font-size:.95rem;letter-spacing:.04em}
  .v2-right{gap:4px}
  .v2-browse-btn{font-size:.82rem}
  /* search covers the header when open, like streaming apps */
  .v2-search.open{position:absolute;left:10px;right:10px;top:10px;z-index:3;height:38px}
  .v2-search.open input{width:100%;flex:1}
  .v2-prof-btn .caret{display:none}
  .v2-prof-menu,.v2-bell-menu{position:fixed;top:62px;left:10px;right:10px;width:auto}
  .v2-browse-menu{position:fixed;top:62px;left:10px;right:10px;width:auto;transform:none}
  .v2-browse-menu::before{display:none}

  .v2-hero{height:auto;min-height:0;aspect-ratio:auto;padding-top:calc(var(--top) + 46vh)}
  .v2-hero::after{background:linear-gradient(0deg,var(--bg) 4%,#07070ae6 32%,#07070a33 62%,transparent),linear-gradient(180deg,#07070acc,transparent 18%)}
  .v2-hero-copy{position:relative;left:auto;bottom:auto;width:auto;padding:0 var(--pad) 8px}
  .v2-hero h1{font-size:clamp(1.9rem,9vw,2.6rem);margin:10px 0 8px}
  .v2-incl{font-size:.7rem;margin-bottom:8px}
  .v2-meta{font-size:.76rem}
  .v2-meta .pill{font-size:.64rem;padding:2px 7px}
  .v2-hero p[data-ov]{font-size:.86rem;margin:10px 0 16px;-webkit-line-clamp:2}
  .v2-actions{gap:8px}
  .btn{height:46px;padding:0 18px;font-size:.9rem;border-radius:12px}
  .v2-hero .v2-actions .btn:not(.btn-icon){flex:1}
  .v2-hero .btn-icon{width:46px}
  .v2-dots{position:relative;left:auto;bottom:auto;justify-content:center;padding:14px 0 6px}
  .v2-hero-mute{bottom:auto;top:calc(var(--top) + 12px)}
  .v2-sections{margin-top:6px}

  .v2-sec{margin-bottom:18px}
  .v2-sec-head h2{font-size:1.08rem}
  .v2-rail-row{gap:10px;padding:10px var(--pad) 18px}
  .pc{width:31vw;max-width:150px}
  .pc-art{border-radius:10px}
  .pc-title{font-size:.78rem;margin-top:8px}
  .pc-sub{font-size:.68rem}
  .pc-rate{font-size:.64rem;left:6px;bottom:6px}
  .pc-ep{display:none}
  .t10{width:26vw;max-width:118px;height:auto;aspect-ratio:1/1.08}
  .t10 .pc{width:18vw;max-width:82px}
  .t10 b{font-size:17vw;bottom:-1.6vw}
  .cw,.ne{width:78vw;max-width:320px}
  .uv{width:44vw;max-width:220px;border-radius:12px}
  .uv strong{font-size:1rem}
  .uv small{font-size:.58rem;letter-spacing:.1em}
  .gt{width:66vw;max-width:260px;height:128px}
  .wc{width:84vw}
  .sp{margin:0 var(--pad) 22px}
  .sp-main{min-height:300px;border-radius:18px}
  .sp-list{border-radius:18px}

  .v2-page{padding:calc(var(--top) + 18px) var(--pad) 30px}
  .v2-page-head h1{font-size:1.7rem}
  .grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 10px}
  .grid .pc{width:auto;max-width:none}

  .v2-title-in{display:flex;flex-direction:column;align-items:flex-start;gap:14px;padding:calc(var(--top) + 18px) var(--pad) 10px}
  .v2-title-poster{width:118px;border-radius:12px}
  .v2-title h1{font-size:clamp(1.7rem,8vw,2.3rem)}
  .v2-title .ov{font-size:.88rem;margin:12px 0 16px}
  .v2-title .v2-actions .btn:first-child{flex:1 1 100%}
  .tabs{gap:18px;overflow-x:auto;scrollbar-width:none}
  .tabs button{white-space:nowrap;font-size:.88rem}
  .eps{grid-template-columns:1fr}
  .facts{grid-template-columns:1fr 1fr}

  .v2-watch{padding:calc(var(--top) + 8px) 0 30px;gap:12px}
  .v2-watch>div:first-child{padding:0}
  .pl{border-radius:0;border-left:0;border-right:0}
  .pl-top{padding:10px}
  .pl-top .btn-icon{width:34px!important;height:34px!important}
  .pl-preview{font-size:.62rem;padding:4px 8px}
  .pl-mid button{width:62px;height:62px}
  .pl-bot{padding:24px 12px 10px}
  .pl-ctrl{gap:12px;font-size:.72rem}
  .pl-ctrl>svg:nth-of-type(4),.pl-ctrl>svg:nth-of-type(5){display:none}
  .v2-watch .v2-block{padding:14px var(--pad) 0!important}
  .side{padding:0 var(--pad)}
  .opts{grid-template-columns:1fr 1fr}

  .ac{padding:calc(var(--top) + 18px) var(--pad) 30px}
  .ac-card{padding:18px 16px;border-radius:16px}
  .ac-line span{min-width:0;flex-basis:100%}
  .ac-screens b{font-size:1.4rem}

  .qv{display:none}
  .v2-foot{grid-template-columns:1fr 1fr;padding:30px var(--pad) 70px;gap:20px}
  .v2-ribbon{font-size:.62rem;left:10px;right:10px;transform:none;bottom:10px;text-align:center}
}
@media(max-width:380px){
  .v2-browse-btn{font-size:0;gap:0}
  .v2-browse-btn svg{width:22px;height:22px}
  .v2-browse-btn::before{content:"Menu";font-size:.8rem;margin-right:2px}
  .v2-top .v2-brand span{font-size:1rem}
  .pc{width:36vw}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .facts,.opts{grid-template-columns:1fr}
  .v2-foot{grid-template-columns:1fr}
  .pf-grid{gap:18px 16px}
  .pf-av.xl,.pf-edit-ov{width:96px;height:96px}
  .pf-kid-tag{top:72px}
}

/* ---------- phones in landscape / short screens ---------- */
@media(max-height:520px) and (orientation:landscape){
  :root{--top:54px}
  .v2-top{height:54px}
  .v2-hero{height:100vh;min-height:320px;padding-top:0}
  .v2-hero-copy{position:absolute;left:var(--pad);bottom:24px;width:min(520px,60vw);padding:0}
  .v2-hero h1{font-size:clamp(1.6rem,4.6vw,2.4rem);margin:6px 0}
  .v2-hero-tag,.v2-hero p[data-ov],.v2-incl{display:none}
  .v2-thumbs,.v2-dots{display:none}
  .v2-sections{margin-top:10px}
  .pf-layer{justify-content:flex-start;padding-top:70px}
  .pf-grid{margin:18px 0 22px}
  .pf-av.xl,.pf-edit-ov{width:88px;height:88px}
  .v2-ribbon{display:none}
}

/* ---------- touch devices: no hover-only affordances ---------- */
@media(hover:none){
  .pc:hover .pc-art{transform:none;box-shadow:none}
  .wc-play{opacity:1;transform:none}
  .v2-hero-nav{display:none}
}
/* panels must not grow with their scrollable chip rows */
.side>*,.panel,.seasons{min-width:0}
.side{grid-template-columns:minmax(0,1fr)}
@media(max-width:1024px) and (min-width:761px){.side{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
.v2-block{min-width:0}
/* portrait phones: vertical poster art in the billboard */
@media(max-width:640px) and (orientation:portrait){
  .v2-hero-bg img,.v2-hero-bg img.poster{object-position:center 18%;filter:none}
  .v2-hero{padding-top:calc(var(--top) + 58vh)}
}
@media(max-width:480px){
  .pl-top strong{font-size:.86rem}
  .pl-top small{font-size:.7rem}
  .pl-preview{position:absolute;left:12px;bottom:66px;margin:0}
}
/* native search clear button duplicates ours */
.v2-search input::-webkit-search-cancel-button,.v2-search input::-webkit-search-decoration{-webkit-appearance:none;appearance:none;display:none}
@media(max-width:640px){.v2-search.open{background:#0d0d11;border-color:#ffffff40;box-shadow:0 10px 30px #000c}}

/* ---------- compact hero (smaller banner, every screen) ---------- */
.v2-hero{height:min(68vh,640px);min-height:420px}
.v2-hero-copy{bottom:clamp(56px,9vh,100px);width:min(500px,86vw)}
.v2-hero-tag{font-size:.64rem;letter-spacing:.12em}
.v2-hero-tag i{width:16px}
.v2-hero h1{margin:8px 0 8px;font-size:clamp(1.7rem,3.4vw,2.9rem);line-height:1.02;letter-spacing:-.04em}
.v2-hero .v2-incl{margin:0 0 8px;font-size:.68rem}
.v2-hero .v2-incl svg{width:13px;height:13px}
.v2-hero .v2-meta{font-size:.76rem;gap:6px}
.v2-hero .v2-meta .pill{font-size:.64rem;padding:2px 7px}
.v2-hero p{margin:10px 0 16px;font-size:.88rem;line-height:1.5;-webkit-line-clamp:2}
.v2-hero .v2-actions{gap:8px}
.v2-hero .btn{height:42px;padding:0 18px;font-size:.86rem;border-radius:12px}
.v2-hero .btn svg{width:17px;height:17px}
.v2-hero .btn-icon{width:42px;padding:0}
.v2-hero-mute{width:36px;height:36px}
.v2-hero-nav{width:44px;height:44px;margin-top:-22px}
@media(min-width:1600px){
  .v2-hero{height:min(70vh,780px)}
  .v2-hero-copy{width:min(600px,34vw)}
  .v2-hero h1{font-size:clamp(2.6rem,2.8vw,3.6rem)}
  .v2-hero p{font-size:.96rem}
  .v2-hero .btn{height:48px;font-size:.95rem}
}
@media(max-width:1024px) and (min-width:641px){
  .v2-hero{height:min(60vh,560px);min-height:380px}
  .v2-hero-copy{width:min(460px,70vw)}
}
@media(max-width:640px){
  .v2-hero{padding-top:calc(var(--top) + 30vh)}
  .v2-hero h1{font-size:clamp(1.4rem,6.6vw,1.9rem);margin:6px 0}
  .v2-hero p[data-ov]{font-size:.8rem;margin:8px 0 12px}
  .v2-hero .v2-meta{font-size:.7rem}
  .v2-hero .btn{height:40px;font-size:.82rem;padding:0 14px}
  .v2-hero .btn-icon{width:40px}
}
@media(max-width:640px) and (orientation:portrait){
  .v2-hero{padding-top:calc(var(--top) + 36vh)}
}
@media(max-height:520px) and (orientation:landscape){
  .v2-hero{height:86vh;min-height:280px;padding-top:0}
  .v2-hero h1{font-size:clamp(1.3rem,3.6vw,1.9rem)}
}
/* hero: copy sits above the slide dots; buttons never wrap */
.v2-hero-copy{bottom:clamp(76px,12vh,124px)}
.v2-dots{bottom:clamp(40px,6vh,64px)}
.v2-hero .btn{white-space:nowrap}
@media(max-width:640px){
  .v2-hero-copy{bottom:auto}
  .v2-hero .v2-actions{flex-wrap:nowrap}
  .v2-hero .v2-actions .btn:not(.btn-icon){flex:1 1 0;min-width:0;padding:0 10px}
}
/* the rows below overlap the hero by 70px: keep dots/copy/thumbs above that */
.v2-hero-copy{bottom:116px}
.v2-dots{bottom:88px}
.v2-thumbs{bottom:116px}
@media(min-width:1600px){.v2-hero-copy,.v2-thumbs{bottom:130px}.v2-dots{bottom:96px}}
@media(max-width:640px){.v2-hero-copy{bottom:auto}.v2-dots{bottom:auto}}
@media(max-height:520px) and (orientation:landscape){.v2-hero-copy{bottom:84px}}
@media(max-width:640px){.v2-sections{margin-top:-16px}.v2-hero{padding-top:calc(var(--top) + 32vh)}}
@media(max-width:640px){.v2-sections{margin-top:4px}.v2-dots{padding:12px 0 2px}}

/* ---------- readability: larger small text, better contrast ---------- */
:root{--muted:#b3b3bf}
body{text-rendering:optimizeLegibility}
.pc-title{font-size:.92rem;font-weight:650;margin-top:10px}
.pc-sub{font-size:.8rem;margin-top:3px}
.v2-sec-head h2{font-size:clamp(1.15rem,1.6vw,1.45rem)}
.v2-sec-head small{font-size:.74rem}
.v2-sec-head .more{font-size:.86rem}
.ne-info small,.sp-item small{font-size:.8rem}
.ep small{font-size:.8rem}
.v2-cast small{font-size:.74rem}
.facts small,.opt small,.af span{font-size:.72rem}
.uv small,.wc-copy small{font-size:.74rem}
.qv-genres span{font-size:.76rem}
.v2-tabbar a{font-size:.7rem}
.v2-menu .profs span{font-size:.74rem}
.pc-new,.pc-ep,.ne-new,.pc-18,.qv-kind{font-size:.64rem}
.v2-page-head p,.empty{font-size:.95rem}
.v2-foot{font-size:.9rem}
.v2-hero p{color:#d6d6de}
@media(max-width:640px){
  .pc-title,.grid .pc-title{font-size:.82rem}
  .pc-sub{font-size:.74rem}
  .v2-sec-head h2{font-size:1.12rem}
}

/* ---------- help center ---------- */
.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:8px}
.help-card{padding:26px;border-radius:20px;background:linear-gradient(180deg,var(--card2),var(--card));border:1px solid var(--line2)}
.help-card h2{margin:14px 0 6px;font-size:1.2rem}
.help-card>p{margin:0 0 18px;color:var(--muted);line-height:1.55}
.help-ico{display:grid;place-items:center;width:46px;height:46px;border-radius:13px;background:#d9a94e1a;color:var(--gold)}
.help-ico svg{width:22px;height:22px}
.help-form{display:flex;gap:10px;flex-wrap:wrap}
.help-form .pf-input{flex:1 1 220px;min-width:0;height:50px;padding:0 14px;border-radius:12px;border:1px solid var(--line2);background:#0b0b0f;color:#fff;font:inherit}
.help-form .pf-input:focus{outline:none;border-color:var(--gold)}
.help-msg{margin:12px 0 0;font-size:.9rem;color:var(--muted);min-height:1.2em}
.help-msg.ok{color:#7fe0a3}.help-msg.err{color:#ff8a8a}
.soc-list{display:grid;gap:10px}
.soc{display:flex;align-items:center;gap:14px;padding:12px 14px;border-radius:14px;background:#ffffff08;border:1px solid var(--line2);transition:background .2s,border-color .2s,transform .2s}
.soc:hover{background:#ffffff12;transform:translateY(-2px)}
.soc-telegram:hover{border-color:#29a9eb88}.soc-instagram:hover{border-color:#d6249f88}
.soc .brand{width:40px;height:40px;flex:none}
.soc span{display:flex;flex-direction:column;line-height:1.25}
.soc small{color:var(--muted);font-size:.84rem}
.soc .go{margin-left:auto;width:18px;height:18px;color:var(--muted)}
.help-faq{margin-top:34px;max-width:860px}
.help-faq h2{font-size:1.3rem;margin:0 0 10px}
.help-faq details{border-bottom:1px solid var(--line2)}
.help-faq summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;gap:16px;padding:18px 2px;font-weight:700}
.help-faq summary::-webkit-details-marker{display:none}
.help-faq summary::after{content:"+";color:var(--gold);font-size:1.4rem;font-weight:400;line-height:1;transition:transform .2s}
.help-faq details[open] summary::after{transform:rotate(45deg)}
.help-faq details p{margin:0 0 18px;color:var(--muted);line-height:1.6}
.foot-soc{display:flex;gap:10px;margin-top:8px}
.foot-soc a{display:block;width:30px;height:30px;transition:transform .2s}
.foot-soc a:hover{transform:translateY(-2px)}
.foot-soc svg{width:30px;height:30px}
@media(max-width:760px){.help-grid{grid-template-columns:1fr}}
.soc .brand,.foot-soc svg{stroke:none}

/* ---------- mobile hero: height follows its content so the actions are never clipped ---------- */
@media(max-width:640px){
  .v2-hero{height:auto;min-height:0;padding-top:calc(var(--top) + 28vh);padding-top:calc(var(--top) + 28svh);padding-bottom:10px}
  .v2-hero p[data-ov]{margin-bottom:16px}
  .v2-hero .v2-actions{position:relative;z-index:3}
  .v2-sections{margin-top:6px}
}
