@media (max-width:760px) {
  :root { --gutter:clamp(14px,4vw,24px); }
  #home .hero {min-height:0;display:grid;align-content:end;background:#000}
  #home .hero-still {inset:0 0 auto;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:center 25%;mask-image:linear-gradient(#000 58%,transparent)}
  #home .hero::before {background:none}
  #home .herocopy {max-width:100%;padding:clamp(160px,54vw,355px) var(--gutter) 26px}
  #home #featured {width:auto;text-align:left;font-size:clamp(30px,8vw,48px);line-height:1.04;text-wrap:balance}
  #home #featured span {display:inline}
  #home .featured-meta {margin:12px 0 16px;font-size:15px;line-height:1.5}
  #home .primary {min-height:46px}
  .home-shelf h2 a {min-height:44px;display:inline-flex;align-items:center}
  .home-shelf .shelf-row {grid-auto-columns:clamp(125px,39vw,195px);gap:10px;overscroll-behavior-x:contain}
  .home-shelf .shelf-note {margin:0 0 12px}
  #browse {padding:20px var(--gutter) 32px}
  #browse h1,#cabTitle {overflow-wrap:anywhere;line-height:1.12}
  #catalogFilters {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  #catalogFilters select,#browseAll,#loadMore {min-width:0;min-height:44px}
  #browseAll {grid-column:1/-1;text-align:center}
  #searchPageField input,.email-input input,#cabNick {font-size:16px}
  #browse .name,#cabGrid .name,.shelf-row .name {overflow-wrap:anywhere}
  #cabinet .cab-main,#cabinet .cab-side {min-width:0}
  #cabinet .cab-links {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  #cabinet .cab-links>* {display:flex;align-items:center;min-height:44px;margin:0;font-size:14px}
  #cabFilters {flex-wrap:wrap}
  #cabTabs {max-width:100%;overflow:auto}
  #cabTabs button,#cabSort {min-height:44px;white-space:nowrap}
  #account {max-height:90dvh;overflow:auto}
  #account .auth-inner {padding-inline:16px}
  .genre-name {hyphens:auto;overflow-wrap:anywhere}
  #siteBar .more-menu {overscroll-behavior:contain}
  #siteBar .more-menu a,.footer-columns section>a {min-height:44px;display:flex;align-items:center}
  #cabTabs button {flex:none}
  .site-footer {padding-bottom:max(22px,env(safe-area-inset-bottom))}
  body.cinema .hero {min-height:0;padding:clamp(120px,38vw,230px) var(--gutter) 20px}
  body.cinema .hero h1 {font-size:clamp(32px,8vw,50px);line-height:1.04}
  body.cinema .actions {flex-wrap:wrap}
  body.cinema .content {padding:8px var(--gutter) 32px}
  body.cinema .episodes {max-width:100%;scroll-snap-type:x proximity;overscroll-behavior-x:contain}
  body.cinema .ep {flex:0 0 auto;min-height:44px;scroll-snap-align:start}
  body.cinema .episodes select {min-height:44px;font-size:16px}
  body.cinema .screen {aspect-ratio:16/9}
  body.cinema .caption {max-width:calc(100% - 24px);left:12px;bottom:8px;font-size:13px;line-height:1.2}
}
@media (orientation:landscape) and (pointer:coarse) and (max-height:520px) {
  #home .hero,body.cinema .hero {min-height:0}
  #home .herocopy,body.cinema .hero {padding-block:24px}
  #home #featured,body.cinema .hero h1 {font-size:clamp(28px,4vw,40px)}
  #home .featured-meta {margin-block:8px 12px}
  body.cinema .screen {width:min(100%,calc((100dvh - var(--bar-height,62px) - 12px)*16/9));margin-inline:auto;aspect-ratio:16/9}
}