/* NadirFilm v3.0.28 — telephone UX only. Nothing in this sheet affects >=768px.
   Desktop/tablet styles, curation skins, post player and account plugin remain untouched. */
.nf-app-dock,.nf-app-footer{display:none}
@media (max-width:767px){
  :root{--nf-app-dock-h:69px}
  body{padding-bottom:calc(var(--nf-app-dock-h) + env(safe-area-inset-bottom,0px))}
  /* Slim sticky header. Don't change any desktop/header branding or navigation routes. */
  .nf2-header-main>.nf-mobile-account-trigger{display:none!important}
  .nf2-header-main>.nf2-logo{margin-right:auto;max-width:min(190px,48vw)}
  .nf2-header-main>.nf2-menu-toggle,.nf2-header-main>.nf-mobile-search-trigger{flex-shrink:0}
  .nf2-header{box-shadow:0 5px 22px rgba(4,5,15,.15)}
  .nf2-header .nf2-header-main{min-height:58px}
  /* Safe-area-aware bottom dock. Links are real URLs; keyboard use works without JS. */
  .nf-app-dock{
    position:fixed;z-index:80;left:0;right:0;bottom:0;
    display:grid;grid-template-columns:repeat(5,minmax(0,1fr));
    gap:2px;min-height:var(--nf-app-dock-h);padding:7px max(9px,env(safe-area-inset-left,0px)) calc(6px + env(safe-area-inset-bottom,0px)) max(9px,env(safe-area-inset-right,0px));
    border-top:1px solid rgba(179,160,235,.3);
    background:rgba(13,17,29,.97);backdrop-filter:blur(19px);-webkit-backdrop-filter:blur(19px);
    box-shadow:0 -13px 45px rgba(0,0,0,.43);
    transition:transform .16s ease,opacity .16s ease;
  }
  .nf-app-dock-link{
    -webkit-tap-highlight-color:transparent;
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
    min-width:0;min-height:52px;padding:5px 1px;
    border:1px solid transparent;border-radius:12px;
    background:transparent;color:#abb1c4;
    font:650 10px/1.12 var(--nf-display,Arial,sans-serif);
    text-decoration:none;cursor:pointer;white-space:nowrap;
  }
  .nf-app-dock-link svg{display:block;width:22px;height:22px;flex:0 0 22px}
  .nf-app-dock-link span{max-width:100%;overflow:hidden;text-overflow:ellipsis}
  .nf-app-dock-link:is(.is-active,[aria-current="page"]){color:#e9ddff;background:rgba(179,160,235,.13);border-color:rgba(179,160,235,.18)}
  .nf-app-dock-link:is(.is-active,[aria-current="page"]) svg{color:#c7f53e}
  .nf-app-dock-link:focus-visible{outline:2px solid #c7f53e;outline-offset:-2px}
  .nf-app-dock.is-keyboard-open,.nf-app-dock.is-fullscreen{opacity:0;pointer-events:none;transform:translateY(110%)}
  body:has(:fullscreen) .nf-app-dock{display:none}
  /* Mobile home: keep the cinematic hero, make repeat film cards short and scannable. */
  .nf-home-v300 .nf-home-latest .nf2-film-grid{gap:10px}
  .nf-home-v300 .nf-home-latest .nf2-card--refined .nf2-card-info{padding:10px 10px 11px;gap:5px}
  .nf-home-v300 .nf-home-latest .nf2-card--refined .nf2-card-summary,
  .nf-home-v300 .nf-home-latest .nf2-card--refined .nf2-card-original{display:none!important}
  .nf-home-v300 .nf-home-latest .nf2-card--refined .nf2-card-head{min-height:0!important;gap:0}
  .nf-home-v300 .nf-home-latest .nf2-card--refined .nf2-card-title{min-height:0!important;font-size:13px;line-height:1.23;letter-spacing:-.035em;margin:0}
  .nf-home-v300 .nf-home-latest .nf2-card--refined .nf2-card-facts{min-width:0;margin:0;color:#b2b9c8;font-size:10px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .nf-home-v300 .nf-home-latest .nf2-card--refined .nf2-card-ratings{margin:0!important;gap:4px;min-height:20px;flex-wrap:wrap}
  .nf-home-v300 .nf-home-latest .nf2-card--refined .nf2-rating-chip{padding:3px 6px;font-size:10px}
  .nf-home-v300 .nf-home-latest .nf2-card--refined .nf2-watch-link{align-self:flex-start;min-height:28px!important;padding:5px 9px!important;margin-top:3px!important;font-size:10px!important;line-height:1.1}
  .nf-home-v300 .nf-home-latest .nf2-poster{border-radius:10px 10px 0 0}
  /* Popular: intentional side-scroll, unlike the latest-film grid. */
  .nf-home-v300 .nf-home-popular .nf2-film-grid--compact{
    display:grid!important;grid-auto-flow:column;grid-auto-columns:clamp(146px,43vw,196px);
    grid-template-columns:none!important;gap:11px!important;
    overflow-x:auto;overscroll-behavior-x:contain;
    padding:2px 16px 16px 0;margin-top:16px;
    scroll-snap-type:x mandatory;scroll-padding-inline:4px;
    -webkit-overflow-scrolling:touch;
  }
  .nf-home-v300 .nf-home-popular .nf2-film-grid--compact>*{scroll-snap-align:start;min-width:0}
  .nf-home-v300 .nf-home-popular .nf2-film-grid--compact::-webkit-scrollbar{height:4px}
  .nf-home-v300 .nf-home-popular .nf2-film-grid--compact::-webkit-scrollbar-thumb{border-radius:4px;background:rgba(179,160,235,.45)}
  .nf-home-v300 .nf-home-popular .nf2-film-grid--compact::-webkit-scrollbar-track{background:rgba(255,255,255,.05)}
  .nf-home-v300 .nf-home-popular .nf2-section-head{gap:9px}
  .nf-home-v300 .nf-home-popular .nf2-section-head h2{font-size:clamp(26px,7vw,34px)}
  /* Four paths: two compact, art-directed cards per row, with real link targets preserved. */
  .nf-home-v300 .nf-home-atlas-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  .nf-home-v300 .nf-home-atlas-card{min-width:0!important;min-height:171px!important;padding:13px 12px!important;overflow:hidden;border-radius:12px}
  .nf-home-v300 .nf-home-atlas-card-head h3{font-size:clamp(16px,4.5vw,21px)!important;line-height:1.04;overflow-wrap:break-word;letter-spacing:-.055em}
  .nf-home-v300 .nf-home-atlas-card-head>span{font-size:9px;letter-spacing:.1em}
  .nf-home-v300 .nf-home-atlas-card-head>p{display:none!important}
  .nf-home-v300 .nf-home-atlas-links{margin-top:10px;padding-top:0;gap:4px!important;align-content:start}
  .nf-home-v300 .nf-home-atlas-card .nf-home-atlas-links a{max-width:100%;padding:5px 6px!important;font-size:9px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .nf-home-v300 .nf-home-atlas-card .nf-home-atlas-links a:nth-child(n+3){display:none!important}
  .nf-home-v300 .nf-home-atlas-all{margin-top:auto!important;padding-top:9px;font-size:10px!important}
  .nf-home-v300 .nf-home-atlas-card .nf-home-atlas-toggle{display:none!important}
  .nf-home-v300 .nf-home-atlas-art{opacity:.7}
  .nf-home-v300 .nf-home-atlas-heading{margin-bottom:12px}
  .nf-home-v300 .nf-home-atlas-heading h2{font-size:clamp(26px,7vw,34px)}
  .nf-home-v300 .nf-home-atlas-heading p{font-size:12px;line-height:1.4}
  /* Phone-only footer: never hide legal info without making it discoverable. */
  .nf2-footer--renewed{display:none!important}
  .nf-app-footer{
    display:grid;gap:12px;margin-top:42px;
    padding:23px max(20px,calc((100vw - 620px)/2)) 22px;
    border-top:1px solid rgba(179,160,235,.19);
    background:linear-gradient(145deg,#111523,#0a0d14);color:#b2b7c6;
  }
  .nf-app-footer>p{display:grid;gap:2px;margin:0}
  .nf-app-footer>p strong{font-size:18px;letter-spacing:-.04em;color:#f1eefb}
  .nf-app-footer>p span{font-size:12px}
  .nf-app-footer-links{display:flex;gap:8px 16px;flex-wrap:wrap}
  .nf-app-footer-links a{min-height:30px;display:inline-flex;align-items:center;color:#d5c7ed;font-size:12px}
  .nf-app-footer-details{font-size:11px;line-height:1.55}
  .nf-app-footer-details summary{display:inline-flex;align-items:center;gap:6px;min-height:32px;color:#abb2c3;cursor:pointer}
  .nf-app-footer-details summary:focus-visible{outline:2px solid #c7f53e;outline-offset:2px}
  .nf-app-footer-details p{margin:3px 0 0;font-size:11px;color:#8995a8}
  .nf-app-footer>small{color:#8792a6;font-size:11px}
  /* Film pages remain fully functional; dock never covers the last action. */
  .nf2-main,.nf-cur-page,.nf-cur-secki{min-width:0}
  #nf2-filmler,#nf2-kesfet{scroll-margin-top:84px}
}
@media(max-width:359px){
  .nf-app-dock-link{font-size:9px}
  .nf-app-dock-link svg{width:21px;height:21px}
  .nf-home-v300 .nf-home-atlas-card{padding:12px 10px!important}
  .nf-home-v300 .nf-home-atlas-card-head h3{font-size:16px!important}
}
@media(max-width:767px) and (prefers-reduced-motion:reduce){
  .nf-app-dock{transition:none}
  .nf-home-v300 .nf-home-popular .nf2-film-grid--compact{scroll-behavior:auto}
}
