/* DaviFlix 0.9.0 — camada dedicada a iPhone / Web App.
   Gated by touch/mobile media queries so desktop, Android TV and PS3 remain unchanged. */

:root{
  --ios-nav-height:72px;
  --ios-safe-bottom:env(safe-area-inset-bottom,0px);
  --ios-safe-top:env(safe-area-inset-top,0px);
  --ios-glass:rgba(7,9,14,.78);
}

/* DaviFlix 0.9.0 — experiência realmente dedicada ao Safari do iPhone. */
@supports (-webkit-touch-callout:none){
@media(max-width:820px) and (pointer:coarse){
  :root{--ios-nav-height:68px;--ios-content-gutter:16px;--ios-card-radius:14px}
  html{min-height:100%;background:#050609;scrollbar-width:none}
  html::-webkit-scrollbar{display:none}
  body.ios-mobile{
    width:100%;
    min-height:var(--ios-visual-height,100dvh);
    padding:0 0 calc(var(--ios-nav-height) + var(--ios-safe-bottom) + 14px)!important;
    overflow-x:hidden;
    background:#050609!important;
  }
  body.ios-mobile.ios-player-page{padding-bottom:var(--ios-safe-bottom)!important}
  body.ios-safari{min-height:100svh}
  body.ios-mobile .page{width:100%!important;max-width:none!important;margin:0!important;padding:0 var(--ios-content-gutter) 34px!important;overflow:visible}
  body.ios-mobile .alert{position:relative;z-index:40;margin:10px 0 14px;border-radius:14px;font-size:12px}

  body.ios-mobile .topbar{
    min-height:calc(58px + var(--ios-safe-top));
    height:auto;
    padding:calc(9px + var(--ios-safe-top)) var(--ios-content-gutter) 9px!important;
    position:sticky;
    top:0;
    z-index:80;
    display:flex;
    flex-wrap:nowrap;
    align-items:center!important;
    border:0;
    background:rgba(5,6,9,.84)!important;
    box-shadow:0 1px rgba(255,255,255,.035);
    backdrop-filter:blur(28px) saturate(1.25)!important;
    -webkit-backdrop-filter:blur(28px) saturate(1.25)!important;
  }
  body.ios-mobile .brand{display:flex!important;min-width:0;height:38px}
  body.ios-mobile .brand-logo{width:128px!important;max-width:48vw!important;height:34px!important}
  body.ios-mobile .topbar .main-nav{width:auto!important;max-width:none!important;margin:0 0 0 auto!important;display:flex!important;justify-content:flex-end!important;gap:7px!important;padding:0!important;overflow:visible!important}
  body.ios-mobile .profile-mini-avatar{width:36px;height:36px;border-radius:50%;font-size:13px;box-shadow:0 0 0 2px #050609,0 0 0 3px rgba(255,255,255,.13)}

  /* Home: pôster principal confortável e prateleiras que cabem no polegar. */
  body.ios-home-page .streaming-hero{
    min-height:min(72svh,650px)!important;
    margin:-58px calc(var(--ios-content-gutter) * -1) 6px!important;
    isolation:isolate;
  }
  body.ios-home-page .streaming-hero-backdrop{background-position:center 20%!important;filter:saturate(1.08) contrast(1.03)!important}
  body.ios-home-page .streaming-hero-content{padding:clamp(320px,54svh,450px) 18px 28px!important}
  body.ios-home-page .streaming-hero h1{font-size:clamp(36px,10.4vw,50px)!important;max-width:92%;text-wrap:balance}
  body.ios-home-page .featured-overview{-webkit-line-clamp:2!important;color:#c6ccd6!important}
  body.ios-home-page .hero-actions{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)!important}
  body.ios-home-page .hero-actions .button{min-height:46px!important;border-radius:12px!important}

  body.ios-mobile .home-row{margin-top:26px!important}
  body.ios-mobile .section-heading{margin-bottom:4px!important;padding:0!important}
  body.ios-mobile .section-heading h2{font-size:21px!important;letter-spacing:-.04em}
  body.ios-mobile .horizontal-row{margin:0 calc(var(--ios-content-gutter) * -1)!important;padding:9px var(--ios-content-gutter) 20px!important;gap:11px!important;scroll-padding-inline:var(--ios-content-gutter);scroll-snap-type:x mandatory!important}
  body.ios-mobile .poster-row>.media-card{flex:0 0 min(37vw,154px)!important;min-width:128px!important;max-width:154px!important}
  body.ios-mobile .poster-wrap{border-radius:12px!important;background:#11141c!important}
  body.ios-mobile .media-info{padding:8px 2px 0!important}
  body.ios-mobile .media-info h2{font-size:13px!important}
  body.ios-mobile .continue-grid.horizontal-row>.continue-card{flex:0 0 min(86vw,380px)!important;grid-template-columns:126px minmax(0,1fr)!important;padding:9px!important;border-radius:15px!important}
  body.ios-mobile .continue-art{height:76px!important}

  /* Catálogos: duas colunas legíveis em vez de três miniaturas apertadas. */
  body.ios-mobile .hero.compact{padding:18px 0 10px!important;gap:13px!important}
  body.ios-mobile .hero.compact h1{font-size:34px!important}
  body.ios-mobile .filters{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important}
  body.ios-mobile .filters input{font-size:16px;min-height:44px;border-radius:12px}
  body.ios-mobile .filters select,body.ios-mobile .filters .button{min-height:44px;border-radius:12px}
  body.ios-mobile .media-grid:not(.horizontal-row){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px 11px!important}
  body.ios-mobile .media-grid:not(.horizontal-row) .media-info h2{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.2}
  body.ios-mobile .pagination{gap:8px}.pagination .button{min-height:42px}.pagination-summary{font-size:11px}

  /* Página de série desenhada como uma tela nativa de streaming. */
  body.ios-series-detail-page .series-hero{
    min-height:min(66svh,590px)!important;
    margin:-58px calc(var(--ios-content-gutter) * -1) 20px!important;
    padding:clamp(300px,47svh,420px) 18px 28px!important;
    display:flex!important;
    align-items:flex-end!important;
    overflow:hidden;
    isolation:isolate;
  }
  body.ios-series-detail-page .series-backdrop{
    inset:0!important;
    z-index:0!important;
    opacity:1!important;
    background-image:linear-gradient(0deg,#050609 2%,rgba(5,6,9,.94) 22%,rgba(5,6,9,.46) 58%,rgba(5,6,9,.12)),var(--series-backdrop)!important;
    background-position:center 20%!important;
    filter:saturate(1.06)!important;
  }
  body.ios-series-detail-page .series-poster{display:none!important}
  body.ios-series-detail-page .series-copy{position:relative;z-index:1;width:100%;max-width:none}
  body.ios-series-detail-page .series-copy h1{font-size:clamp(35px,10vw,48px)!important;margin:6px 0 10px!important;line-height:.98!important}
  body.ios-series-detail-page .series-copy>p:not(.meta){font-size:13px!important;line-height:1.48!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  body.ios-series-detail-page .series-copy .meta{font-size:11px!important}
  body.ios-series-detail-page .series-primary-actions{display:grid!important;grid-template-columns:1fr auto;gap:9px!important;margin-top:18px!important}
  body.ios-series-detail-page .series-primary-actions>.button,body.ios-series-detail-page .series-primary-actions form .button{min-height:46px;width:100%;font-size:12px}
  body.ios-series-detail-page .series-watch-summary{grid-column:1/-1}
  body.ios-series-detail-page .season-browser{margin:18px 0 21px!important}
  body.ios-series-detail-page .season-heading{margin-bottom:8px!important}
  body.ios-series-detail-page .season-cards{display:flex!important;grid-template-columns:none!important;gap:8px!important;margin:0 calc(var(--ios-content-gutter) * -1);padding:5px var(--ios-content-gutter) 12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
  body.ios-series-detail-page .season-cards::-webkit-scrollbar{display:none}
  body.ios-series-detail-page .season-card{flex:0 0 auto;min-width:118px;padding:12px 14px!important;border-radius:14px!important;scroll-snap-align:start;transform:none!important}
  body.ios-series-detail-page .season-card strong{font-size:25px!important}
  body.ios-series-detail-page .season-episodes-heading{margin:21px 0 13px!important}.season-episodes-heading h2{font-size:25px!important}
  body.ios-series-detail-page .improved-episode-list{gap:14px!important}
  body.ios-series-detail-page .episode-card{display:block!important;padding:9px!important;border-radius:17px!important;background:#0d1119!important;transform:none!important}
  body.ios-series-detail-page .episode-art{border-radius:12px!important}
  body.ios-series-detail-page .episode-copy{padding:13px 5px 6px!important}
  body.ios-series-detail-page .episode-copy>p{font-size:12px!important;line-height:1.48!important;margin:9px 0 13px!important;-webkit-line-clamp:2!important}
  body.ios-series-detail-page .episode-title-line h2{font-size:17px!important}
  body.ios-series-detail-page .episode-actions .button{min-height:40px;flex:1}
  body.ios-series-detail-page .episode-auto-next-editor{margin-top:13px;padding-top:12px}
  body.ios-series-detail-page .episode-auto-next-editor summary{min-height:38px;font-size:11px}
  body.ios-series-detail-page .episode-auto-next-form{grid-template-columns:1fr 1fr!important;gap:9px!important;padding:12px!important}
  body.ios-series-detail-page .auto-next-form-copy,body.ios-series-detail-page .auto-next-save{grid-column:1/-1!important}
  body.ios-series-detail-page .auto-next-time-field input{min-height:46px!important;font-size:16px}
  body.ios-series-detail-page .season-auto-next-status{margin:0 0 16px;border-radius:15px}

  /* Player em retrato: vídeo de ponta a ponta, ajustes logo abaixo e conteúdo legível. */
  body.ios-player-page .topbar{display:none!important}
  body.ios-player-page .page{padding:0!important}
  body.ios-player-page .daviflix-player-v2{width:100%;min-height:var(--ios-visual-height,100dvh);padding:0!important;background:#030406}
  body.ios-player-page .player-ambient-backdrop,body.ios-player-page .player-ambient-glow{display:none!important}
  body.ios-player-page .player-page-header{
    position:absolute!important;
    z-index:45!important;
    top:calc(8px + var(--ios-safe-top))!important;
    left:12px!important;
    right:12px!important;
    width:auto!important;
    margin:0!important;
    display:grid!important;
    pointer-events:none;
  }
  body.ios-player-page .player-page-header>*{pointer-events:auto}
  body.ios-player-page .player-back-button{background:rgba(0,0,0,.52)!important;border-color:rgba(255,255,255,.15)!important;backdrop-filter:blur(14px)}
  body.ios-player-page .player-now-playing{display:none!important}
  body.ios-player-page .player-episode-pill{grid-column:3;background:rgba(0,0,0,.52)!important;color:#fff!important;border-color:rgba(255,255,255,.15)!important}
  body.ios-player-page .player-stage{width:100%}
  body.ios-player-page .cinema-shell{
    width:100vw!important;
    height:min(56.25vw,48svh)!important;
    min-height:220px!important;
    margin:0!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
  body.ios-player-page .cinema-shell .plyr__controls{padding:34px 8px calc(8px + env(safe-area-inset-bottom,0px))!important}
  body.ios-player-page .cinema-shell .plyr__control{min-width:42px;min-height:42px}
  body.ios-player-page .cinema-shell .plyr__control[data-plyr="rewind"],body.ios-player-page .cinema-shell .plyr__control[data-plyr="fast-forward"],body.ios-player-page .cinema-shell .plyr__volume,body.ios-player-page .cinema-shell .plyr__time--duration{display:none!important}
  body.ios-player-page .player-command-deck{width:100%!important;margin:0!important;border:0!important;border-bottom:1px solid rgba(255,255,255,.07)!important;border-radius:0!important;background:#090c12!important;box-shadow:none!important;padding:11px 12px!important}
  body.ios-player-page .player-setting-cluster{width:100%;display:grid;grid-template-columns:1fr 1.2fr;gap:8px}
  body.ios-player-page .player-select-pill,body.ios-player-page .autoplay-switch{min-height:46px!important;border-radius:13px!important}
  body.ios-player-page .player-quick-actions{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px}
  body.ios-player-page .player-command-button{min-height:42px;justify-content:center;border-radius:12px}
  body.ios-player-page .watch-content-panel{width:100%!important;margin:0!important;padding:22px 16px calc(32px + var(--ios-safe-bottom))!important;background:#050609!important}
  body.ios-player-page .watch-details h1{font-size:28px!important}
  body.ios-player-page .watch-series-name{font-size:15px!important}
  body.ios-player-page .watch-overview{font-size:13px!important;line-height:1.55!important}
  body.ios-player-page .watch-actions{display:grid!important;grid-template-columns:1fr;gap:9px!important}.watch-actions .button{width:100%;min-height:44px}
  body.ios-player-page .next-panel{padding:14px!important;align-content:end!important}
  body.ios-player-page .next-episode-preview{border-radius:22px!important;max-height:88svh;overflow:auto}
  body.ios-player-page .next-preview-art{aspect-ratio:16/8.5}

  /* Navegação inferior com ícones vetoriais e alvo de toque de 44 px. */
  body.ios-mobile .iphone-bottom-nav{
    height:calc(var(--ios-nav-height) + var(--ios-safe-bottom));
    padding:6px 4px calc(6px + var(--ios-safe-bottom));
    background:rgba(7,8,12,.92)!important;
    border-top:1px solid rgba(255,255,255,.075)!important;
    box-shadow:0 -16px 40px rgba(0,0,0,.24);
    backdrop-filter:blur(28px) saturate(1.3)!important;
    -webkit-backdrop-filter:blur(28px) saturate(1.3)!important;
  }
  body.ios-mobile .iphone-bottom-nav a{height:56px;min-height:44px;gap:3px;border-radius:12px;font-size:9px;color:#747d8d;transition:color .16s,background .16s}
  body.ios-mobile .iphone-bottom-nav a:active{background:rgba(255,255,255,.055)}
  body.ios-mobile .iphone-bottom-nav a.active{color:#fff}
  body.ios-mobile .ios-nav-icon{width:23px;height:23px;display:grid!important;place-items:center!important;filter:none!important;opacity:1!important}
  body.ios-mobile .ios-nav-icon svg{width:22px;height:22px;overflow:visible;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  body.ios-mobile .iphone-bottom-nav a.active .ios-nav-icon{color:#a78bfa;transform:translateY(-1px)}
  body.ios-mobile .iphone-toast{bottom:calc(var(--ios-nav-height) + var(--ios-safe-bottom) + 12px)}
  body.ios-player-page .iphone-bottom-nav{display:none!important}

  input,select,textarea{font-size:16px}
  a,button,summary,label{-webkit-tap-highlight-color:transparent}
}

@media(max-width:820px) and (pointer:coarse) and (orientation:landscape){
  body.ios-player-page .daviflix-player-v2,body.ios-player-page .player-stage{height:100dvh!important;min-height:100dvh!important;background:#000}
  body.ios-player-page .cinema-shell{height:100dvh!important;min-height:100dvh!important;aspect-ratio:auto!important;padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
  body.ios-player-page .player-command-deck,body.ios-player-page .watch-content-panel,body.ios-player-page .player-hints{display:none!important}
  body.ios-player-page .player-page-header{left:calc(10px + env(safe-area-inset-left))!important;right:calc(10px + env(safe-area-inset-right))!important}
}
}

.iphone-network-banner,.iphone-toast{display:none}

@supports (-webkit-touch-callout: none){
@media (max-width: 760px) and (pointer: coarse){
  html{background:#05070b;overscroll-behavior-y:none}
  body.daviflix-shell{
    background:#05070b;
    -webkit-font-smoothing:antialiased;
    -webkit-tap-highlight-color:transparent;
    overscroll-behavior-y:none;
  }
  body.ios-webapp{padding-top:0!important;padding-bottom:calc(var(--ios-nav-height) + var(--ios-safe-bottom))!important}
  body.ios-player-page{padding-bottom:var(--ios-safe-bottom)!important}

  .page{width:100%;padding:0 14px 34px;margin:0;overflow:hidden}
  .footer{display:none}

  /* Top bar becomes a compact app header. */
  .topbar{
    min-height:calc(56px + var(--ios-safe-top));
    padding:calc(8px + var(--ios-safe-top)) 14px 8px!important;
    align-items:center!important;
    border-bottom:0;
    background:linear-gradient(180deg,rgba(5,7,11,.98),rgba(5,7,11,.82),transparent);
    backdrop-filter:blur(22px) saturate(1.2);
    -webkit-backdrop-filter:blur(22px) saturate(1.2);
    position:sticky;
    top:0;
  }
  .brand{min-width:auto;height:38px}
  .brand-logo{width:122px!important;max-width:42vw!important;height:34px!important}
  .topbar .main-nav{max-width:none!important;overflow:visible!important;padding:0!important;margin-left:auto;gap:8px!important}
  .topbar .main-nav>a:not(.profile-nav-link),
  .topbar .main-nav>form,
  .topbar .main-nav>.subscription-days,
  .topbar .main-nav>.install-app-button{display:none!important}
  .profile-nav-link{padding:0!important;display:flex!important}
  .profile-mini-avatar{width:34px;height:34px;border-radius:50%;box-shadow:0 0 0 2px rgba(255,255,255,.08)}
  .profile-nav-link>span:last-child{display:none!important}

  /* Home hero: full-bleed mobile streaming presentation. */
  .streaming-hero{
    min-height:min(70dvh,620px)!important;
    margin:-58px -14px 10px!important;
    border-radius:0!important;
    align-items:flex-end;
  }
  .streaming-hero-backdrop{
    background-image:linear-gradient(0deg,#05070b 2%,rgba(5,7,11,.92) 17%,rgba(5,7,11,.46) 52%,rgba(5,7,11,.10) 74%),var(--featured-image)!important;
    background-position:center 22%!important;
    filter:saturate(1.04) contrast(1.02)!important;
  }
  .streaming-hero-content{
    width:100%!important;
    padding:clamp(285px,52dvh,430px) 18px 26px!important;
    text-align:left;
  }
  .streaming-hero h1{font-size:clamp(34px,10vw,48px)!important;line-height:.97;margin:8px 0 10px!important}
  .featured-overview{font-size:14px!important;line-height:1.45!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:8px 0 16px}
  .featured-meta{font-size:12px;margin:0 0 6px}
  .streaming-hero .eyebrow{font-size:9px}
  .hero-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:10px!important}
  .hero-actions .button{width:100%;min-height:44px;border-radius:10px!important;padding:10px 8px!important;font-size:13px}

  /* Netflix-like horizontal shelves without copying branded artwork/UI assets. */
  .home-row{margin-top:22px!important}
  .section-heading{padding:0 2px 3px;align-items:end}
  .section-heading h2{font-size:20px!important;letter-spacing:-.035em;margin:4px 0 0}
  .section-heading .eyebrow{display:none}
  .view-all{font-size:11px;padding-bottom:2px}
  .horizontal-row{
    margin:0 -14px;
    padding:7px 14px 18px!important;
    gap:10px!important;
    scroll-snap-type:x mandatory!important;
    scrollbar-width:none!important;
    -webkit-overflow-scrolling:touch;
  }
  .horizontal-row::-webkit-scrollbar{display:none}
  .poster-row>.media-card{flex:0 0 31vw!important;min-width:112px;max-width:148px;scroll-snap-align:start}
  .poster-wrap{border-radius:9px!important;border:0!important;box-shadow:none!important;transform:none!important}
  .poster-wrap:active{transform:scale(.97)!important;opacity:.88}
  .play-badge{display:none!important}
  .media-info{padding:7px 1px 0!important}
  .media-info h2{font-size:12px!important;margin-bottom:3px!important}
  .media-info p{font-size:10px!important}
  .card-actions{margin-top:5px!important}
  .watchlist-icon-button{width:30px!important;height:30px!important;font-size:17px!important}

  .continue-grid.horizontal-row>.continue-card{flex:0 0 78vw!important;max-width:360px;scroll-snap-align:start}
  .continue-card{border-radius:13px!important;overflow:hidden}
  .continue-art{border-radius:12px!important}
  .continue-card strong{font-size:12px}.continue-card p{font-size:10px}

  /* Catalog pages become compact 3-column poster grids. */
  .hero.compact{display:grid!important;gap:14px;margin:0;padding:18px 0 14px!important}
  .hero.compact h1{font-size:34px!important;margin:3px 0 4px}
  .hero.compact p{font-size:13px!important}
  .filters{width:100%;display:grid!important;grid-template-columns:1fr auto;gap:8px!important}
  .filters input{min-width:0!important;min-height:42px}
  .filters select{min-width:0!important}
  .filters .button{min-height:42px}
  .media-grid:not(.horizontal-row){grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px 9px!important}
  .channel-grid{grid-template-columns:1fr!important;gap:9px!important}
  .channel-card{border-radius:13px!important}

  /* Profiles and login: one-handed, safe-area friendly. */
  .login-cinematic{min-height:calc(100dvh - var(--ios-safe-top));margin:0 -14px!important;padding:20px 18px calc(30px + var(--ios-safe-bottom))!important;display:flex!important;align-items:center}
  .modern-login-card{width:100%;padding:28px 20px!important;border-radius:22px!important;background:rgba(12,16,25,.96)!important}
  .modern-login-card h2{font-size:28px!important}
  .login-card input,.modern-login-card input{min-height:48px;font-size:16px}
  .login-card .button,.modern-login-card .button{min-height:48px}
  .profiles-page{padding:26px 6px 40px!important;min-height:calc(100dvh - 70px)!important}
  .profiles-heading>img{width:144px!important;margin-bottom:14px!important}
  .profiles-heading h1{font-size:34px!important}
  .profile-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px!important;margin-top:28px!important}
  .profile-card{width:auto!important}
  .profile-avatar{width:min(35vw,132px)!important;height:min(35vw,132px)!important;border-radius:18px!important;font-size:46px!important}
  .profile-select-button strong{font-size:15px!important}

  /* Player: edge-to-edge and independent from app navigation. */
  .ios-player-page .topbar{display:none!important}
  .ios-player-page .page{padding:0!important;overflow:visible}
  .ios-player-page .watch-layout{min-height:100dvh;background:#000}
  .ios-player-page .watch-topline{position:absolute;z-index:30;top:calc(8px + var(--ios-safe-top));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));pointer-events:none}
  .ios-player-page .watch-topline>*{pointer-events:auto}
  .ios-player-page .watch-back-link{background:rgba(0,0,0,.46);backdrop-filter:blur(12px);padding:8px 11px;border-radius:999px;font-size:12px}
  .ios-player-page .cinema-shell,.ios-player-page .video-shell{
    width:100vw!important;max-width:none!important;height:min(56.25vw,58dvh)!important;min-height:220px;aspect-ratio:16/9!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#000;
  }
  .ios-player-page .watch-info-grid,.ios-player-page .watch-details{padding:18px 16px calc(30px + var(--ios-safe-bottom))!important;margin:0!important;background:#05070b;max-width:none!important}
  .ios-player-page .watch-details h1{font-size:27px!important;margin:4px 0 8px!important}
  .ios-player-page .watch-overview{font-size:13px!important;line-height:1.5!important}
  .ios-player-page .plyr__control{min-width:42px;min-height:42px}
  .ios-player-page .plyr__progress input[type=range]{height:28px}
  .ios-player-page .playback-overlay{padding:20px!important}
  .ios-player-page .playback-overlay strong{font-size:17px!important;text-align:center}
  .ios-player-page .playback-overlay span{font-size:12px!important;text-align:center}

  /* Native bottom navigation built by iphone.js. */
  .iphone-bottom-nav{
    position:fixed;z-index:90;left:0;right:0;bottom:0;
    height:calc(var(--ios-nav-height) + var(--ios-safe-bottom));
    padding:7px 6px calc(7px + var(--ios-safe-bottom));
    display:grid;grid-template-columns:repeat(5,1fr);align-items:start;
    background:linear-gradient(180deg,rgba(8,10,15,.72),rgba(5,7,11,.98) 24%);
    border-top:1px solid rgba(255,255,255,.08);
    backdrop-filter:blur(24px) saturate(1.3);
    -webkit-backdrop-filter:blur(24px) saturate(1.3);
  }
  .iphone-bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#838b98;font-size:9px;font-weight:650;min-width:0;height:56px;touch-action:manipulation}
  .iphone-bottom-nav a.active{color:#fff}
  .iphone-bottom-nav .ios-nav-icon{font-size:19px;line-height:22px;font-style:normal;filter:grayscale(1);opacity:.82}
  .iphone-bottom-nav a.active .ios-nav-icon{filter:none;opacity:1;transform:translateY(-1px)}
  .ios-player-page .iphone-bottom-nav{display:none!important}

  .iphone-network-banner{
    position:fixed;z-index:120;left:12px;right:12px;top:calc(10px + var(--ios-safe-top));
    min-height:42px;padding:9px 13px;border-radius:13px;background:rgba(45,28,14,.96);border:1px solid rgba(255,186,91,.35);box-shadow:0 12px 38px #0009;
    display:flex;align-items:center;gap:9px;font-size:12px;color:#ffe1b5;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)
  }
  .iphone-network-banner.hidden{display:none}
  .iphone-network-dot{width:8px;height:8px;border-radius:50%;background:#ffb45b;box-shadow:0 0 0 5px rgba(255,180,91,.12);flex:0 0 auto}
  .iphone-toast{position:fixed;z-index:121;left:50%;bottom:calc(var(--ios-nav-height) + var(--ios-safe-bottom) + 14px);transform:translateX(-50%);max-width:88vw;padding:10px 14px;border-radius:999px;background:rgba(20,24,32,.94);border:1px solid rgba(255,255,255,.1);box-shadow:0 12px 38px #0009;color:#fff;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;backdrop-filter:blur(18px)}
  .iphone-toast.hidden{display:none}
  .ios-player-page .iphone-toast{bottom:calc(16px + var(--ios-safe-bottom))}

  .install-modal{align-items:end!important;padding:0!important}
  .install-modal-card{width:100%!important;border-radius:24px 24px 0 0!important;padding:26px 20px calc(24px + var(--ios-safe-bottom))!important;border-left:0!important;border-right:0!important;border-bottom:0!important}
  .install-modal-icon{width:58px!important;height:58px!important}
  .install-modal-card h2{font-size:26px!important}

  /* Avoid iOS text-callout/drag artifacts on tappable cover art. */
  .poster-wrap,.continue-art,.channel-logo,.profile-select-button,.iphone-bottom-nav a{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
}

@media (max-width:760px) and (pointer:coarse) and (orientation:landscape){
  .ios-player-page .cinema-shell,.ios-player-page .video-shell{height:100dvh!important;min-height:100dvh!important}
  .ios-player-page .watch-info-grid,.ios-player-page .watch-details{display:none!important}
  .ios-player-page{background:#000!important}
}
}
