/* ThunderFlix — per-device finish (html.tf-firetv / html.tf-android / html.tf-windows, set by tf-platform.js).
   Loaded last: these rules adjust the shared design to each device, they do not redesign it. */

/* every device: the card emblem shown while (or if) the artwork does not load — a background, not an <img> */
.nfCard .posterFallback{background:url(/brand/thunderflix-emblem-256.webp?v=20261017-netflix-nav-13) center/30% auto no-repeat}

/* ============================== Fire TV (remote, 10-foot, weak processor) ============================== */
/* one GPU layer for the focused card and the row being moved, not one per card (~480 before) */
html.tf-firetv .card.nfCard .nfArt{will-change:auto!important;transition:transform .14s ease-out!important}
html.tf-firetv .row:not(.grid){will-change:auto!important}
html.tf-firetv .row:not(.grid):focus-within{will-change:transform!important}
/* one clear focus: a bright ring and a small lift, no large blurred glow repainted on every move */
html.tf-firetv .card.nfCard:focus .nfArt{will-change:transform!important;transform:scale(1.08)!important;
  outline:3px solid #e4fdff!important;outline-offset:3px;box-shadow:0 0 0 6px rgba(121,246,255,.28),0 10px 20px rgba(0,0,0,.6)!important;animation:none!important}
/* 10-foot sizes: legible from the sofa (viewport 960x540) */
html.tf-firetv .shelfHead h2{font-size:max(15px,3vh)!important}
html.tf-firetv .nfBoxText{font-size:max(11px,2.2vh)!important}
html.tf-firetv .playerTimelineWrap .playerTimeCur,html.tf-firetv .playerTimelineWrap #playerTime{font-size:15px!important}
/* safe area: nothing important closer than ~5 % to the screen edges (TVs cut the border) */
html.tf-firetv #playerDialog .playerControls{padding-left:max(48px,5vw)!important;padding-right:max(48px,5vw)!important;padding-bottom:max(27px,5vh)!important}
html.tf-firetv #playerDialog .playerTop{padding-left:max(48px,5vw)!important;padding-right:max(48px,5vw)!important}
/* the TV has no use for a full-screen button (it is always full screen) */
html.tf-firetv #fullscreenBtn{display:none!important}

/* ============================== Android (finger, small screen, mobile data) ============================== */
html.tf-android *{-webkit-tap-highlight-color:transparent}
/* rings only for a keyboard, never left behind by a tap */
html.tf-android button:focus:not(:focus-visible),html.tf-android [tabindex]:focus:not(:focus-visible){outline:none!important}
/* the same smoothness rules as the TV: no blur repainted while scrolling, no endless animations */
html.tf-android #topbar.solid{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:rgba(7,10,11,.95)!important}
html.tf-android #tfSugBtn,html.tf-android #tfSugBtn *{animation:none!important}
html.tf-android .shelf,html.tf-android .nfDynShelf{content-visibility:auto;contain-intrinsic-size:auto 240px}
/* rows: free momentum scrolling with the finger (no abrupt snap) */
html.tf-android .row:not(.grid){scroll-snap-type:x proximity!important}
/* "Explorar tudo" visible without a mouse */
html.tf-android .shelfHead .textBtn{opacity:1!important;transform:none!important}
/* finger-sized targets (48 dp) */
html.tf-android .nfCircle{min-width:44px!important;min-height:44px!important}
html.tf-android .nfDtClose{width:44px!important;height:44px!important}
html.tf-android #playerDialog .playerIconBtn{width:52px!important;min-width:52px!important;height:52px!important}
html.tf-android #playerDialog .playerIconBtn svg{width:26px;height:26px}
html.tf-android #playerDialog .playerTimeline{height:40px!important}
html.tf-android #playerDialog .playerTimeline::-webkit-slider-runnable-track{height:6px}
html.tf-android #playerDialog .playerTimeline::-webkit-slider-thumb{width:22px;height:22px;margin-top:-8px}
/* the app turns the phone to landscape and full screen by itself: no full-screen button needed */
html.tf-android.tf-native-player-mode #fullscreenBtn{display:none!important}
/* title page on a phone: picture on top, title and buttons below it (nothing drawn over the picture) */
@media (max-width:760px){
  html.tf-android .nfDtHeroCopy{position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;padding:.9em 1.1em 0}
  html.tf-android .nfDtLogo{max-height:4.2em!important;max-width:70%!important}
  html.tf-android .nfDtBtns{flex-wrap:wrap;row-gap:.6em}
  html.tf-android .nfDtBtns .nfBtnPlay{flex:1 1 100%;justify-content:center;min-height:48px}
}
/* landscape phone: the billboard never taller than the screen */
@media (pointer:coarse) and (max-height:500px){
  html.tf-android .hero{height:100vh!important}
}

/* ============================== Windows (mouse and keyboard, large screen) ============================== */
/* Netflix web: nothing jumps while the mouse crosses a row; the preview window is the enlargement */
@media (hover:hover) and (pointer:fine){
  html.tf-windows .nfCard:hover .nfArt{transform:none!important}
}
html.tf-windows.nf-input-mouse .nfCard .nfArt::before{display:none!important}
/* the first row is visible under the billboard on a 16:9 window */
html.tf-windows .hero{height:max(520px,min(56.25vw,calc(100vh - 170px)))!important}
/* times readable on large screens */
html.tf-windows .playerTimelineWrap .playerTimeCur,html.tf-windows .playerTimelineWrap #playerTime{font-size:clamp(13px,.95vw,19px)!important}

/* ---------- Android: picture-in-picture window (Home during a film) — only the picture and subtitles ---------- */
html.tf-pip .playerShell > *:not(video):not(.tfSubs){display:none!important}
html.tf-pip .playerShell{cursor:none}
html.tf-pip .tfSubs{left:3%!important;right:3%!important;bottom:4%!important;font-size:max(11px,4.4vw)!important;line-height:1.2!important}
html.tf-pip .tfSubs span{font-size:inherit!important}
