/* Mobile presentation is deliberately class-scoped. theme-boot.js never adds
   mobile-mode to Tesla, and desktop-mode remains the existing web layout. */
.mobile-menu-btn,
.mobile-nav-backdrop,
.mobile-nav-drawer { display:none; }

html.mobile-mode {
  font-size:16px;
  --radius:12px;
  --sidebar:100%;
  --fs-xs:12px;
  --fs-sm:14px;
  --fs-md:16px;
  --fs-lg:18px;
  --fs-xl:24px;
  --btn-h:48px;
  --input-h:48px;
  --icon-size:44px;
  --ch-h:68px;
  --media-h:76px;
}

html.mobile-mode,
html.mobile-mode body { width:100%; min-width:0; min-height:100%; overflow-x:hidden; }
html.mobile-mode body { height:100dvh; font-size:16px; padding-bottom:env(safe-area-inset-bottom); }
html.mobile-mode button,
html.mobile-mode input,
html.mobile-mode select,
html.mobile-mode textarea { font-family:inherit; }
html.mobile-mode input,
html.mobile-mode select,
html.mobile-mode textarea { font-size:16px !important; }

/* Compact two-row app header */
html.mobile-mode .app-header {
  display:grid;
  grid-template-columns:48px minmax(0,1fr) 48px;
  grid-template-rows:54px 48px;
  gap:8px 12px;
  height:calc(128px + env(safe-area-inset-top));
  min-height:calc(128px + env(safe-area-inset-top));
  padding:calc(10px + env(safe-area-inset-top)) 12px 8px;
  overflow:visible !important;
  isolation:isolate;
  box-sizing:border-box;
}
html.mobile-mode .app-header::before { width:260px; height:190px; top:-60px; left:-80px; }
html.mobile-mode .mobile-menu-btn {
  display:inline-flex !important;
  grid-column:1;
  grid-row:1;
  width:48px;
  min-width:48px;
  height:48px;
  padding:0;
  border:1px solid var(--border2);
  border-radius:12px;
  align-items:center;
  justify-content:center;
  background:var(--surface2);
  color:var(--text);
  cursor:pointer;
  visibility:visible !important;
  opacity:1 !important;
  z-index:3;
  -webkit-tap-highlight-color:transparent;
}
html.mobile-mode .mobile-menu-btn .ci-icon { width:26px; height:26px; }
html.mobile-mode .app-header .header-logo {
  grid-column:2;
  grid-row:1;
  justify-self:center;
  align-self:center;
  width:min(48vw,190px);
  height:48px;
  margin:0;
  display:flex !important;
  align-items:center;
  justify-content:center;
  overflow:visible;
}
html.mobile-mode .app-header .header-logo img { display:block; width:100%; height:auto; max-width:100%; max-height:42px; object-fit:contain; }
html.mobile-mode .app-header .header-logo > span:last-child { right:-14px !important; bottom:2px !important; font-size:11px !important; }
html.mobile-mode .tab-nav,
html.mobile-mode .now-playing-badge,
html.mobile-mode #settings-header-btn,
html.mobile-mode #register-header-btn,
html.mobile-mode #premium-header-btn { display:none !important; }
html.mobile-mode .app-header .header-actions { grid-column:3; grid-row:1; margin:0; gap:0; justify-self:end; }
html.mobile-mode .header-language-btn { width:48px; height:48px; border-radius:12px; }
html.mobile-mode .header-language-flag { width:28px; height:21px; }
html.mobile-mode .header-language-menu {
  position:fixed;
  top:calc(62px + env(safe-area-inset-top));
  right:12px;
  width:min(300px,calc(100vw - 24px));
  max-height:calc(100dvh - 80px - env(safe-area-inset-top));
}
html.mobile-mode .header-language-menu-scroll { max-height:calc(100dvh - 104px - env(safe-area-inset-top)); }
html.mobile-mode .header-language-option { min-height:48px; padding:0 12px; font-size:15px; }
html.mobile-mode .header-language-option-flag { width:28px; height:21px; }
html.mobile-mode .hdr-search-bar {
  grid-column:1 / -1;
  grid-row:2;
  width:100%;
  min-width:0;
  margin:0;
}
html.mobile-mode .hdr-search-bar input { height:48px; border-radius:12px; padding:0 44px 0 44px; font-size:16px; }
html.mobile-mode .hdr-search-icon { left:14px; }
html.mobile-mode .hdr-search-icon .ci-icon { width:20px; height:20px; }
html.mobile-mode .hdr-search-clear { width:40px; height:40px; right:4px; }

/* Accessible off-canvas navigation */
html.mobile-mode .mobile-nav-backdrop {
  display:block;
  position:fixed;
  inset:0;
  z-index:1700;
  background:rgba(0,0,0,.64);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .2s ease,visibility .2s ease;
}
html.mobile-mode .mobile-nav-drawer {
  display:flex;
  position:fixed;
  inset:0 auto 0 0;
  z-index:1701;
  width:min(86vw,340px);
  padding:calc(14px + env(safe-area-inset-top)) 14px calc(14px + env(safe-area-inset-bottom));
  flex-direction:column;
  background:rgba(10,10,10,.99);
  border-right:1px solid var(--border2);
  box-shadow:24px 0 64px rgba(0,0,0,.5);
  transform:translateX(-105%);
  visibility:hidden;
  transition:transform .24s cubic-bezier(.2,.8,.2,1),visibility .24s ease;
  outline:none;
}
html.mobile-mode.light-mode .mobile-nav-drawer { background:rgba(255,255,255,.99); }
html.mobile-mode.mobile-nav-open .mobile-nav-backdrop { opacity:1; visibility:visible; pointer-events:auto; }
html.mobile-mode.mobile-nav-open .mobile-nav-drawer { transform:translateX(0); visibility:visible; }
html.mobile-mode .mobile-nav-head { min-height:56px; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:0 2px 12px; border-bottom:1px solid var(--border); }
html.mobile-mode .mobile-nav-head img { height:38px; width:auto; max-width:190px; }
html.mobile-mode .mobile-nav-close { width:48px; height:48px; flex:0 0 48px; display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--border2); border-radius:12px; background:var(--surface2); color:var(--text); }
html.mobile-mode .mobile-nav-close .ci-icon { width:20px; height:20px; }
html.mobile-mode .mobile-nav-links { flex:1; min-height:0; overflow-y:auto; padding:12px 0; display:flex; flex-direction:column; gap:4px; }
html.mobile-mode .mobile-nav-link {
  width:100%;
  min-height:52px;
  padding:0 15px;
  display:flex;
  align-items:center;
  gap:14px;
  border:0;
  border-radius:12px;
  background:transparent;
  color:var(--text2);
  font-size:16px;
  font-weight:700;
  text-align:left;
  cursor:pointer;
}
html.mobile-mode .mobile-nav-link .ci-icon { width:22px; height:22px; color:var(--text3); }
html.mobile-mode .mobile-nav-link.active { background:var(--accent-bg); color:var(--text); box-shadow:inset 3px 0 0 var(--accent); }
html.mobile-mode .mobile-nav-link.active .ci-icon { color:var(--accent); }
html.mobile-mode .mobile-nav-footer { padding-top:12px; border-top:1px solid var(--border); }
html.mobile-mode .mobile-nav-premium { width:100%; min-height:50px; padding:0 16px; display:flex; align-items:center; justify-content:center; gap:10px; border:2px solid var(--btn-red-border); border-radius:12px; background:var(--btn-dark-red); color:#fff; font-size:16px; font-weight:800; }
html.mobile-mode .mobile-nav-premium[hidden] { display:none; }
html.mobile-mode .mobile-nav-premium .ci-icon { width:20px; height:20px; }
html.mobile-mode .mobile-menu-btn:focus-visible,
html.mobile-mode .mobile-nav-drawer button:focus-visible { outline:3px solid var(--accent); outline-offset:2px; }

/* Landing / sign-in */
html.mobile-mode #login-screen { min-height:0; }
html.mobile-mode #login-screen .landing-main-content { transform:none; }
html.mobile-mode .landing-hero { padding:92px 18px 36px; min-height:auto; }
html.mobile-mode .landing-top-actions { top:14px; right:14px; left:14px; max-width:none; justify-content:flex-end; gap:8px; }
html.mobile-mode .landing-language-btn { min-width:0; height:48px; padding:0 38px 0 12px; gap:9px; border-radius:12px; font-size:14px; }
html.mobile-mode .landing-language-wrap::after { right:13px; width:8px; height:8px; }
html.mobile-mode .landing-language-flag,
html.mobile-mode .landing-language-option-flag { width:27px; height:20px; }
html.mobile-mode .landing-language-menu { position:fixed; top:68px; left:12px; right:12px; max-height:calc(100dvh - 80px); }
html.mobile-mode .landing-language-option { min-height:48px; padding:0 12px; font-size:15px; }
html.mobile-mode .landing-login-btn { height:48px; padding:0 16px; border-radius:12px; font-size:15px; }
html.mobile-mode .landing-hero img { height:62px; max-width:75vw; margin-bottom:24px; }
html.mobile-mode .landing-tagline { font-size:clamp(34px,10vw,46px); letter-spacing:-1px; margin-bottom:16px; }
html.mobile-mode .landing-subtitle { max-width:600px; font-size:17px; line-height:1.55; }
html.mobile-mode .landing-cta { padding:32px 16px 38px; gap:12px; flex-direction:column; align-items:stretch; }
html.mobile-mode .landing-cta > * { width:100%; max-width:420px; min-height:50px; margin-inline:auto; font-size:16px; }
html.mobile-mode .landing-how,
html.mobile-mode .landing-product,
html.mobile-mode .landing-pricing { padding:30px 18px 40px; }
html.mobile-mode .landing-section-title { font-size:29px; margin-bottom:12px; }
html.mobile-mode .landing-section-sub { font-size:16px; margin-bottom:26px; }
html.mobile-mode .landing-product-copy { font-size:16px; line-height:1.7; }
html.mobile-mode .landing-pricing-grid { grid-template-columns:1fr; gap:14px; margin-top:20px; }
html.mobile-mode .landing-price-card { padding:22px 20px; border-radius:16px; }
html.mobile-mode .landing-price-card h3 { font-size:22px; }
html.mobile-mode .landing-price-card .price-line { font-size:29px; }
html.mobile-mode .landing-price-card .price-sub,
html.mobile-mode .landing-price-card li { font-size:15px; }
html.mobile-mode .landing-legal-note,
html.mobile-mode .landing-business-footer { padding-inline:18px; font-size:13px; }
html.mobile-mode .landing-footer { padding:34px 18px 24px; font-size:14px; }
html.mobile-mode .landing-footer-links { gap:12px 20px; margin-top:14px; padding:0 18px 28px; }
html.mobile-mode .landing-footer-links a { font-size:13px; }
html.mobile-mode .landing-divider-line { width:88%; margin:36px auto; }

html.mobile-mode #login-card .login-dropdown-inner { padding:72px 16px 28px; }
html.mobile-mode .login-dropdown-close { width:48px; height:48px; top:12px; right:12px; border-radius:12px; }
html.mobile-mode .login-drop-logo-img { height:48px; }
html.mobile-mode #login-card .login-form-sub { font-size:25px; line-height:1.25; }
html.mobile-mode #login-card .field label { font-size:14px; }
html.mobile-mode #login-card .field input,
html.mobile-mode #login-card .login-drop-submit { height:50px; font-size:16px; }
/* Phone users type directly into the mobile forms and pay in the embedded
   wallet sheet. QR/phone-handoff controls remain available to desktop/Tesla. */
html.mobile-mode #login-card .login-qr-slot,
html.mobile-mode .phone-paste-tip,
html.mobile-mode .phone-paste-btn,
html.mobile-mode .playlist-phone-btn,
html.mobile-mode #qr-paste-modal,
html.mobile-mode #scp-phone-handoff,
html.mobile-mode #pu-wallet-qr-step,
html.mobile-mode .pu-wallet-qr-shell { display:none !important; }
html.mobile-mode #login-card .login-layout { grid-template-columns:1fr !important; }
html.mobile-mode #login-card .login-form-panel { padding-right:0 !important; }

/* Main content flows vertically on phones */
html.mobile-mode #app { min-width:0; }
html.mobile-mode .app-body { display:flex; flex-direction:column; overflow-x:hidden; overflow-y:auto; min-height:0; --sidebar-row-height:52px; }
html.mobile-mode #sidebar-drag-handle { display:none !important; }
html.mobile-mode .sidebar,
html.mobile-mode .streams-sidebar {
  width:100% !important;
  min-width:0;
  height:auto;
  max-height:none;
  flex:0 0 auto;
  overflow:visible;
  border-right:0;
  border-bottom:1px solid var(--border);
}
html.mobile-mode .sidebar { padding:10px 10px 12px; }
html.mobile-mode .playlist-switch-wrap { padding:8px 4px 0; }
html.mobile-mode .playlist-switch-wrap label,
html.mobile-mode .sidebar-section-title,
html.mobile-mode .media-source-switch-label { font-size:12px; }
html.mobile-mode .touch-select-trigger { height:48px; padding-left:14px; font-size:15px; }
html.mobile-mode .touch-select-trigger .ts-inline-chevron,
html.mobile-mode .touch-select-trigger .ts-inline-add { width:48px; height:48px; }
html.mobile-mode .sidebar-section { flex:none; }
html.mobile-mode .category-list,
html.mobile-mode .media-category-list { max-height:42dvh; overflow-y:auto; }
html.mobile-mode .category-item,
html.mobile-mode #media-category-list .category-item { height:auto; min-height:52px; max-height:none; padding:9px 12px 9px 17px; font-size:16px; margin-bottom:2px; }
html.mobile-mode #media-category-list .library-tab-icon { width:22px; height:22px; }
html.mobile-mode .sidebar-section-icon-btn,
html.mobile-mode .sidebar-section-edit { width:48px; height:48px; border-radius:12px; }
html.mobile-mode .sidebar-section-icon-btn .ci-icon,
html.mobile-mode .sidebar-section-edit .ci-icon { width:22px; height:22px; }
html.mobile-mode .channel-list { max-height:46dvh; overflow-y:auto; }
html.mobile-mode .channel-item { height:68px; padding:8px 10px; align-items:center; }
html.mobile-mode .channel-logo { width:44px; height:44px; }
html.mobile-mode .channel-name { font-size:15px; }
html.mobile-mode .channel-epg { font-size:12px; }

html.mobile-mode .player-area { width:100%; min-width:0; min-height:68dvh; flex:0 0 auto; padding:8px; overflow:hidden; }
html.mobile-mode.mobile-app-landing-visible #live-sidebar { display:none !important; }
html.mobile-mode.mobile-app-landing-visible .player-area { min-height:calc(100dvh - 112px - env(safe-area-inset-top)); }
html.mobile-mode .video-wrap { flex:none; width:100%; min-height:0; aspect-ratio:16/9; max-height:76dvh; }
html.mobile-mode #app-landing-panel { overflow-y:auto; -webkit-overflow-scrolling:touch; border-radius:0; }
html.mobile-mode #app-landing-panel .landing-hero { min-height:100%; padding:70px 16px 24px; overflow-y:visible; }
html.mobile-mode #app-landing-panel .app-hero-main { flex:0 0 auto; min-height:auto; }
html.mobile-mode #app-landing-panel .landing-hero img { height:62px; margin-bottom:24px; }
html.mobile-mode #app-landing-panel .landing-tagline { font-size:clamp(33px,10vw,44px); margin-bottom:14px; }
html.mobile-mode #app-landing-panel .landing-subtitle { margin-top:6px; font-size:16px; line-height:1.55; }
html.mobile-mode #app-landing-panel .landing-cta { padding:24px 0 0; gap:12px; }
html.mobile-mode #app-landing-panel .landing-cta .add-playlist-btn,
html.mobile-mode #app-landing-panel .landing-cta .landing-learn-more-btn { width:100%; height:50px; padding:0 18px; font-size:16px; }
html.mobile-mode #app-landing-panel .app-landing-top-actions { top:12px; right:12px; gap:8px; max-width:calc(100% - 24px); }
html.mobile-mode #app-landing-panel .app-landing-signin-top { height:46px; padding:0 15px; font-size:15px; }
html.mobile-mode #app-landing-panel .landing-light-mode-pill { height:36px; padding:0 10px 0 12px; font-size:12px; gap:5px; }
html.mobile-mode #app-landing-panel .landing-light-mode-pill .ci-icon { width:12px; height:12px; }
html.mobile-mode #app-landing-panel .landing-footer { margin-top:28px; padding-top:24px; font-size:13px; }
html.mobile-mode #app-landing-panel .landing-footer-links { margin-top:22px; padding:0 4px 20px; }
html.mobile-mode #app-landing-panel .landing-footer-links a { font-size:12px; }

/* Mobile is temporarily a conversion-only surface. Keep the marketing page,
   account creation/verification and Stripe checkout available, while all app
   browsing/navigation remains unchanged on desktop and Tesla. */
html.mobile-mode .app-header,
html.mobile-mode .mobile-menu-btn,
html.mobile-mode .mobile-nav-backdrop,
html.mobile-mode .mobile-nav-drawer,
html.mobile-mode #app-landing-signin-cta,
html.mobile-mode .landing-login-btn,
html.mobile-mode #settings-signin-btn,
html.mobile-mode #live-sidebar,
html.mobile-mode #streams-sidebar { display:none !important; }
html.mobile-mode .app-body {
  height:100dvh;
  min-height:100dvh;
  overflow:hidden;
}
html.mobile-mode .player-area,
html.mobile-mode.mobile-app-landing-visible .player-area {
  width:100%;
  height:100dvh;
  min-height:100dvh;
  flex:1 1 100%;
  padding:0;
}
html.mobile-mode .player-area > :not(#app-landing-panel):not(#premium-upsell-panel):not(#stripe-checkout-panel) { display:none !important; }
html.mobile-mode #app-landing-panel { inset:0; min-height:100dvh; }
html.mobile-mode #app-landing-panel .landing-hero { padding-top:54px; }
html.mobile-mode #app-landing-panel.user-logged-in .landing-cta #app-add-playlist-btn { display:inline-flex; }
html.mobile-mode #app-add-playlist-btn[hidden] { display:none !important; }
html.mobile-mode #stripe-checkout-panel,
html.mobile-mode #premium-upsell-panel { inset:0; min-height:100dvh; }

/* Live TV player and guide */
html.mobile-mode #mute-btn,
html.mobile-mode #live-restart-btn,
html.mobile-mode #live-cc-fs-btn,
html.mobile-mode #prev-btn,
html.mobile-mode #stop-btn,
html.mobile-mode #next-btn { width:52px !important; height:52px !important; border-radius:10px !important; bottom:10px !important; }
html.mobile-mode #mute-btn,
html.mobile-mode #live-restart-btn { left:10px !important; }
html.mobile-mode #live-cc-fs-btn { left:70px !important; }
html.mobile-mode #prev-btn { left:calc(50% - 62px) !important; }
html.mobile-mode #next-btn { left:calc(50% + 62px) !important; }
html.mobile-mode #sp-title,
html.mobile-mode #sp-controls-title { top:18px; left:16px; max-width:calc(100vw - 88px); font-size:25px; }
html.mobile-mode #sp-loading-desc,
html.mobile-mode #sp-controls-desc { left:16px; top:60px; max-width:calc(100vw - 32px); font-size:15px; -webkit-line-clamp:4; }
html.mobile-mode #sp-controls-meta { top:18px; left:16px; max-width:calc(100vw - 88px); }
html.mobile-mode .sp-close-btn { width:50px; height:50px; border-radius:12px; }
html.mobile-mode #sp-close-btn { top:12px !important; right:12px !important; }
html.mobile-mode .sp-footer { padding:10px 14px calc(10px + env(safe-area-inset-bottom)); }
html.mobile-mode .sp-ctrl-row { gap:10px; margin:8px 0; overflow-x:auto; }
html.mobile-mode .sp-time { min-width:52px; font-size:13px; }
html.mobile-mode .sp-scrubber-row { gap:8px; }
html.mobile-mode .sp-scrubber-wrap { height:52px; }
html.mobile-mode .sp-scrubber-thumb { width:28px; height:28px; }
html.mobile-mode .audio-pill { height:44px; padding:0 14px; font-size:14px; }
html.mobile-mode #sp-spinner-label { font-size:22px !important; }
html.mobile-mode #sp-progress-wrap { width:72vw !important; max-width:72vw !important; }
html.mobile-mode #sp-loading-logo { height:56px !important; bottom:18px !important; }

html.mobile-mode .epg-panel { min-height:68dvh; }
html.mobile-mode .epg-time-header { font-size:13px; }
html.mobile-mode .epg-row-ch { min-width:128px; width:128px; }
html.mobile-mode .epg-row-ch-name,
html.mobile-mode .epg-prog-title { font-size:13px; }
/* Live miniplayer: compact programme details first, then a true full-width
   16:9 video. The description remains scrollable for longer translations. */
html.mobile-mode .epg-pip,
html.mobile-mode .epg-pip-placeholder {
  --mobile-pip-meta-height:150px;
  width:100%;
  max-width:none;
  height:calc(var(--mobile-pip-meta-height) + 56.25vw);
  min-height:0;
  max-height:none;
}
html.mobile-mode .epg-pip-layout {
  width:100%;
  height:auto;
  min-height:0;
  max-height:none;
  flex-direction:column;
}
html.mobile-mode .epg-pip-meta {
  order:1;
  width:100%;
  height:var(--mobile-pip-meta-height);
  min-height:var(--mobile-pip-meta-height);
  flex:0 0 var(--mobile-pip-meta-height);
  gap:6px;
  padding:12px 14px;
  background:linear-gradient(180deg,rgba(24,24,28,.98),rgba(8,8,10,.98));
  border-bottom:1px solid rgba(255,255,255,.1);
}
html.mobile-mode .epg-pip-kicker { gap:8px; min-height:28px; }
html.mobile-mode .epg-pip-channel-logo { width:30px; height:30px; border-radius:7px; font-size:14px; }
html.mobile-mode .epg-pip-channel { font-size:12px; line-height:1.25; letter-spacing:.8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
html.mobile-mode .epg-pip-fav { width:42px; height:42px; border-radius:10px; }
html.mobile-mode .epg-pip-fav .ci-icon { width:21px; height:21px; }
html.mobile-mode .epg-pip-desc-wrap { min-height:0; padding-right:10px; }
html.mobile-mode .epg-pip-prog-scroll { gap:4px; padding-right:6px; }
html.mobile-mode .epg-pip-title { font-size:20px; line-height:1.18; }
html.mobile-mode .epg-pip-time { font-size:13px; }
html.mobile-mode .epg-pip-desc { font-size:13px; line-height:1.4; }
html.mobile-mode .epg-pip-expand-text { min-height:44px; height:44px; margin-top:2px; padding:0 16px; gap:8px; font-size:14px; }
html.mobile-mode .epg-pip-expand-text .ci-icon { width:22px; height:22px; }
html.mobile-mode .epg-pip-video-slot,
html.mobile-mode .epg-pip-ph-slot {
  order:2;
  width:100%;
  height:auto;
  min-height:0;
  flex:0 0 auto;
  aspect-ratio:16/9;
  align-self:stretch;
  padding:0;
  font-size:14px;
}
html.mobile-mode .epg-pip-video-slot::after { top:0; right:0; bottom:0; left:0; width:auto; height:1px; }
html.mobile-mode .epg-pip-play,
html.mobile-mode .epg-pip-loading { left:50%; top:calc(var(--mobile-pip-meta-height) + 28.125vw); }
html.mobile-mode .epg-pip-play { width:64px; height:64px; }
html.mobile-mode .epg-pip-play .ci-icon { width:34px; height:34px; }
html.mobile-mode .epg-pip-loading { width:100%; }
html.mobile-mode .epg-pip-loading-status { font-size:16px; }
html.mobile-mode .epg-pip-mute,
html.mobile-mode .epg-pip-stop,
html.mobile-mode .epg-pip-expand,
html.mobile-mode .epg-pip-close { width:48px; height:48px; border-radius:12px; }
html.mobile-mode .epg-pip-mute .ci-icon,
html.mobile-mode .epg-pip-stop .ci-icon,
html.mobile-mode .epg-pip-expand .ci-icon,
html.mobile-mode .epg-pip-close .ci-icon { width:23px; height:23px; }
html.mobile-mode .epg-pip-controls { bottom:10px; gap:10px; }
html.mobile-mode #epg-pip.tab-floating {
  left:0 !important;
  right:0 !important;
  top:auto !important;
  bottom:env(safe-area-inset-bottom) !important;
  width:100%;
  height:56.25vw;
  min-height:0;
  max-height:none;
  border-width:3px 0 0;
  border-radius:0;
  touch-action:pan-y;
}
html.mobile-mode #epg-pip.tab-floating .epg-pip-layout { height:100%; }
html.mobile-mode #epg-pip.tab-floating .epg-pip-video-slot { height:100%; aspect-ratio:auto; }
html.mobile-mode #epg-pip.tab-floating .epg-pip-play,
html.mobile-mode #epg-pip.tab-floating .epg-pip-loading { left:50%; top:50%; }

/* Movies, TV and library */
html.mobile-mode .streams-sidebar { padding:8px 0 10px; }
html.mobile-mode .streams-search-wrap { padding:8px 10px 0; }
html.mobile-mode .streams-search-wrap input { height:48px; font-size:16px; }
html.mobile-mode .media-source-switch { padding:10px 10px 0; }
html.mobile-mode .media-source-switch-row { overflow-x:auto; gap:8px; }
html.mobile-mode .media-source-switch-btn { min-width:max-content; height:44px; padding:0 14px; font-size:13px; }
html.mobile-mode .media-category-section { flex:none; padding:0 10px; }
html.mobile-mode .media-category-list { max-height:38dvh; }
html.mobile-mode .streams-panel { width:100%; min-width:0; min-height:68dvh; flex:0 0 auto; overflow:hidden; }
html.mobile-mode .movie-library-header { padding:16px 14px 14px; align-items:flex-start; gap:12px; }
html.mobile-mode .movie-library-header-actions { width:100%; justify-content:flex-start; }
html.mobile-mode .movie-library-title { font-size:27px; line-height:1.15; }
html.mobile-mode .movie-library-sub { font-size:14px; line-height:1.45; margin-top:6px; }
html.mobile-mode .library-header-toolbar,
html.mobile-mode .media-sort { width:100%; justify-content:flex-start; }
html.mobile-mode .media-sort-label { width:100%; font-size:12px; }
html.mobile-mode .media-sort-btn { height:44px; padding:0 16px; font-size:14px; }
html.mobile-mode .movie-library-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 12px; padding:16px 12px 24px; }
html.mobile-mode .movie-card-body { padding-top:7px; }
html.mobile-mode .movie-card-title { font-size:14px; }
html.mobile-mode .movie-card-meta { font-size:12px; }
html.mobile-mode .continue-watching-section,
html.mobile-mode .recently-played-section { padding:16px 12px 0; }
html.mobile-mode .continue-watching-title,
html.mobile-mode .rp-group-title { font-size:13px; }
html.mobile-mode .continue-watching-row,
html.mobile-mode .rp-row { gap:12px; }
html.mobile-mode .continue-watching-row .movie-card,
html.mobile-mode .rp-row .movie-card { flex:0 0 44vw; width:44vw; }
html.mobile-mode .library-section-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 12px; }
html.mobile-mode .library-section-grid.single-row { grid-auto-columns:minmax(42vw,46vw); }
html.mobile-mode .actor-detail-topbar { padding:12px; }
html.mobile-mode .actor-detail-header { padding:16px 12px; gap:16px; flex-direction:column; }
html.mobile-mode .actor-detail-photo { width:min(48vw,180px); align-self:center; }
html.mobile-mode .actor-detail-title { font-size:28px; }
html.mobile-mode .actor-detail-overview { font-size:15px; }
html.mobile-mode .actor-detail-grid-wrap { padding:0 0 20px; }

html.mobile-mode .detail-topbar { padding:10px 12px; }
html.mobile-mode .detail-topbar .streams-detail-back { height:48px; border-radius:12px; }
html.mobile-mode .detail-back-inner { gap:7px; padding:0 14px; }
html.mobile-mode .detail-back-inner .back-chevron .ci-icon { width:22px; height:22px; }
html.mobile-mode #streams-detail-back-text { font-size:15px; }
html.mobile-mode .streams-detail-scroll > .detail-header,
html.mobile-mode .streams-detail-scroll > .season-ep-row,
html.mobile-mode .streams-detail-scroll > .ep-stream-body { padding-left:12px; padding-right:12px; }
html.mobile-mode .detail-header { padding-top:16px; padding-bottom:20px; }
html.mobile-mode .detail-header-inner { flex-direction:column; flex-wrap:nowrap; gap:18px; }
html.mobile-mode .detail-poster-col { width:100%; }
html.mobile-mode .detail-poster,
html.mobile-mode .detail-poster-ph { width:min(55vw,210px); height:auto; aspect-ratio:2/3; border-radius:14px; }
html.mobile-mode .detail-info { width:100%; max-width:none; flex:none; padding:0; }
html.mobile-mode .detail-kicker { font-size:13px !important; margin-bottom:10px; }
html.mobile-mode .detail-title-row { align-items:flex-start; gap:10px; margin-bottom:14px; }
html.mobile-mode .detail-title { flex:1; font-size:29px !important; line-height:1.1; }
html.mobile-mode .detail-fav-btn,
html.mobile-mode .detail-progress-clear-btn.detail-watched-tick { width:46px !important; height:46px !important; border-radius:10px !important; margin:0; }
html.mobile-mode .detail-fav-btn .ci-icon,
html.mobile-mode .detail-progress-clear-btn.detail-watched-tick .ci-icon { width:21px !important; height:21px !important; }
html.mobile-mode .detail-genres { gap:8px; margin-bottom:14px; }
html.mobile-mode .detail-genre-pill,
html.mobile-mode .detail-genres .genre-pill,
html.mobile-mode .detail-genres span { font-size:13px; padding:8px 11px; }
html.mobile-mode .detail-meta { gap:8px 12px; margin-bottom:14px; font-size:14px !important; }
html.mobile-mode .detail-cast { font-size:15px; margin-bottom:16px; }
html.mobile-mode .detail-overview { font-size:15px !important; line-height:1.65 !important; }
html.mobile-mode .streams-detail.detail-hero-active .detail-overview { padding:16px; border-radius:12px; }
html.mobile-mode .detail-progress-wrap { flex-direction:column; align-items:stretch; gap:12px; }
html.mobile-mode .detail-progress-bar { flex:none; width:100%; max-width:none; }
html.mobile-mode .detail-progress-side { justify-content:space-between; gap:12px; }
html.mobile-mode .detail-progress-text { min-width:0; font-size:14px !important; text-align:left; justify-content:flex-start; }
html.mobile-mode .detail-action-btn { min-height:48px !important; height:auto !important; padding:9px 15px !important; font-size:14px !important; gap:8px !important; }
html.mobile-mode .detail-action-btn .ci-icon { width:20px; height:20px; }
html.mobile-mode .detail-play-row { min-height:0; max-height:none; padding:12px; gap:10px; }
html.mobile-mode #detail-play-area { width:100%; gap:10px; }
html.mobile-mode #detail-play-area > div { width:100%; gap:10px !important; }
html.mobile-mode #detail-play-area .vod-play-btn,
html.mobile-mode .detail-play-row .detail-action-btn,
html.mobile-mode #detail-play-row #detail-trailer-btn { width:100% !important; min-width:0; min-height:50px; height:50px !important; border-radius:10px !important; padding:0 16px !important; font-size:15px !important; }
html.mobile-mode .detail-play-row .detail-action-btn .ci-icon,
html.mobile-mode #detail-play-area .vod-play-btn .ci-icon { width:22px !important; height:22px !important; }
html.mobile-mode .season-ep-row { padding-top:14px; padding-bottom:14px; }
html.mobile-mode .season-ep-row label { font-size:15px; }
html.mobile-mode .season-ep-row .touch-select-shell,
html.mobile-mode .season-ep-row .touch-select-trigger { width:100%; min-width:0; max-width:none; }
html.mobile-mode .ep-list { padding:12px 0; gap:10px; }
html.mobile-mode .ep-item { display:grid; grid-template-columns:92px minmax(0,1fr); gap:12px; padding:12px; }
html.mobile-mode .ep-thumb { width:92px; min-height:72px; grid-column:1; grid-row:1; }
html.mobile-mode .ep-copy { grid-column:2; grid-row:1; }
html.mobile-mode .ep-num { font-size:13px; margin-bottom:4px; }
html.mobile-mode .ep-name { font-size:16px; }
html.mobile-mode .ep-desc { font-size:13px; margin-top:5px; }
html.mobile-mode .ep-play-btn,
html.mobile-mode .ep-play-icon-btn { grid-column:1 / -1; width:100%; height:48px; min-height:48px; font-size:15px; }
html.mobile-mode .ep-play-icon-btn .ci-icon { width:22px; height:22px; }
html.mobile-mode .stream-list { padding:8px 0; }
html.mobile-mode .stream-item { gap:10px; padding:12px; flex-wrap:wrap; }
html.mobile-mode .stream-play-btn { width:100%; height:48px; }

/* Settings becomes a header, swipeable tabs, then a readable content view */
html.mobile-mode .settings-overlay { top:0; z-index:1600; padding-top:env(safe-area-inset-top); }
html.mobile-mode .settings-shell { flex-direction:column; }
html.mobile-mode .settings-nav-col { width:100%; height:auto; flex:0 0 auto; overflow:visible; border:0; border-bottom:1px solid var(--border); }
html.mobile-mode .settings-nav-header { height:58px; padding:5px 12px; gap:8px; }
html.mobile-mode .settings-nav-header .hdr-icon-btn { width:48px; height:48px; margin-left:0 !important; padding:0; }
html.mobile-mode .settings-nav-header .hdr-icon-btn .ci-icon { width:24px; height:24px; }
html.mobile-mode .settings-nav-title { gap:8px; font-size:21px; }
html.mobile-mode .settings-nav-title .ci-icon { width:22px; height:22px; }
html.mobile-mode .settings-nav-list { flex:none; flex-direction:row; overflow-x:auto; gap:6px; padding:6px 10px 10px; scrollbar-width:none; }
html.mobile-mode .settings-nav-list::-webkit-scrollbar { display:none; }
html.mobile-mode .settings-tab-btn { width:auto; min-width:max-content; min-height:44px; padding:0 15px; border:1px solid var(--border2); border-radius:999px; font-size:14px; border-left:1px solid var(--border2); }
html.mobile-mode .settings-tab-btn.active { border-color:var(--accent); box-shadow:inset 0 0 0 1px var(--accent); }
html.mobile-mode .settings-nav-premium { display:none; }
html.mobile-mode .settings-content-col { flex:1; min-height:0; }
html.mobile-mode .settings-content-topbar { display:none; }
html.mobile-mode .settings-panel { padding:20px 16px calc(24px + env(safe-area-inset-bottom)); }
html.mobile-mode .settings-playlists-scroll { padding:20px 16px; }
html.mobile-mode .settings-save-row { padding:10px 12px calc(10px + env(safe-area-inset-bottom)); gap:10px; }
html.mobile-mode .settings-save-btn,
html.mobile-mode .settings-cancel-btn { flex:1; min-width:0; height:50px; padding:0 18px; border-radius:14px; font-size:16px; }
html.mobile-mode .settings-panel .playlist-section-title,
html.mobile-mode .settings-panel .settings-toggle-label,
html.mobile-mode .settings-panel span[id*="label"] { font-size:17px !important; line-height:1.4; }
html.mobile-mode .settings-panel input:not([type="checkbox"]),
html.mobile-mode .settings-panel select { height:50px !important; font-size:16px !important; }
html.mobile-mode .settings-panel p { font-size:14px !important; }
html.mobile-mode .settings-panel .phone-paste-tip { min-height:0; padding:15px !important; font-size:14px !important; }
html.mobile-mode .settings-panel .phone-paste-tip svg { width:22px !important; height:22px !important; }
html.mobile-mode #settings-panel-playlists .phone-paste-wrap input,
html.mobile-mode #settings-panel-media .phone-paste-wrap input,
html.mobile-mode #settings-panel-playlists .phone-paste-btn,
html.mobile-mode #settings-panel-media .phone-paste-btn { height:48px !important; }
html.mobile-mode #settings-panel-playlists .phone-paste-btn,
html.mobile-mode #settings-panel-media .phone-paste-btn { width:48px; }
html.mobile-mode .settings-general-row { padding-bottom:18px; margin-bottom:18px; }
html.mobile-mode .settings-toggle-row { padding:18px 0; gap:14px; align-items:flex-start; }
html.mobile-mode .settings-inline-toggle-row { justify-content:space-between; gap:14px; }
html.mobile-mode .settings-panel .ios-toggle-track { width:52px; height:32px; }
html.mobile-mode .settings-panel .ios-toggle-thumb { width:28px; height:28px; }
html.mobile-mode .settings-panel .ios-toggle input:checked + .ios-toggle-track .ios-toggle-thumb,
html.mobile-mode .settings-panel .ios-toggle.is-checked .ios-toggle-thumb { transform:translateX(20px); }
html.mobile-mode .settings-stepper-btn { width:48px; height:48px; font-size:26px; }
html.mobile-mode .settings-stepper-val { min-width:76px; height:48px; font-size:14px; }
html.mobile-mode #settings-clock-btn-24,
html.mobile-mode #settings-clock-btn-12 { flex:1; min-width:130px !important; height:48px !important; padding:0 12px !important; font-size:14px !important; }
html.mobile-mode .settings-account-summary { align-items:flex-start; gap:12px; flex-wrap:wrap; }
html.mobile-mode .settings-account-avatar { width:52px; height:52px; font-size:22px; }
html.mobile-mode .settings-account-email { font-size:16px; white-space:normal; overflow-wrap:anywhere; }
html.mobile-mode .settings-account-tier { font-size:14px; }
html.mobile-mode .settings-trial-pill-row { padding-left:0; margin-top:10px; }
html.mobile-mode .settings-account-premium-btn,
html.mobile-mode .settings-account-action-btn { width:100%; min-width:0; height:48px; padding:0 16px; font-size:15px; }
html.mobile-mode .settings-account-guest-inner { padding:34px 0 48px; }
html.mobile-mode #settings-panel-account p.settings-account-guest-copy { max-width:420px; font-size:17px !important; line-height:1.4 !important; }
html.mobile-mode .settings-account-auth-actions { gap:10px; }
html.mobile-mode .settings-account-auth-btn { width:100%; min-width:0; height:50px; padding:0 18px; font-size:16px; }
html.mobile-mode #settings-panel-help.active { align-items:flex-start; }
html.mobile-mode .settings-help-card { padding:30px 18px; border-radius:16px; }
html.mobile-mode .settings-help-card h2 { font-size:27px; }
html.mobile-mode .settings-help-email { font-size:17px; }

/* Premium, payment and search pages */
html.mobile-mode #premium-upsell-panel,
html.mobile-mode #stripe-checkout-panel { border-radius:0; }
html.mobile-mode .pu-scroll-body { overflow-y:auto; -webkit-overflow-scrolling:touch; }
html.mobile-mode .pu-hero { padding:62px 16px 28px; }
html.mobile-mode .pu-hero img { height:48px; margin-bottom:22px; }
html.mobile-mode .pu-dismiss { top:10px; right:10px; height:44px; padding:0 14px; font-size:14px; }
html.mobile-mode .pu-headline { font-size:34px; letter-spacing:-.8px; }
html.mobile-mode .pu-trigger-msg { font-size:15px; line-height:1.5; }
html.mobile-mode #premium-upsell-panel .pu-back-btn { top:10px; left:10px; height:48px; border-radius:12px; }
html.mobile-mode #premium-upsell-panel .pu-back-btn .detail-back-inner { padding:0 14px; gap:8px; }
html.mobile-mode #premium-upsell-panel .pu-back-btn .back-chevron,
html.mobile-mode #premium-upsell-panel .pu-back-btn .back-chevron .ci-icon { width:22px; height:22px; }
html.mobile-mode #pu-back-btn-text { font-size:15px; }
html.mobile-mode .pu-signin-btn { top:10px; right:10px; height:48px; padding:0 16px; font-size:15px; border-radius:12px; }
html.mobile-mode .pu-inner { padding:16px 12px 30px; }
html.mobile-mode .pu-benefit-card { padding:20px 16px; border-radius:16px; }
html.mobile-mode .pu-premium-header { flex-direction:column; gap:10px; }
html.mobile-mode .pu-benefit-title { font-size:22px; margin-bottom:14px; }
html.mobile-mode .pu-price-display { text-align:left; }
html.mobile-mode .pu-price-display .pu-price-annual { font-size:28px; }
html.mobile-mode .pu-price-display .pu-price-monthly { font-size:17px; }
html.mobile-mode .pu-billing-toggle { width:100%; align-self:center; margin-left:auto; margin-right:auto; }
html.mobile-mode .pu-billing-btn { flex:1; height:44px; padding:0 10px; font-size:13px; }
html.mobile-mode .pu-benefit-list.pu-benefit-list-grid { grid-template-columns:1fr; gap:11px; }
html.mobile-mode .pu-benefit-list li,
html.mobile-mode .pu-benefit-list li::before { font-size:15px; }
html.mobile-mode .pu-card-cta-wrap,
html.mobile-mode #premium-upsell-panel.trial-expired-mode .pu-card-cta-wrap { padding-top:28px; flex-direction:column; flex-wrap:wrap; gap:10px; }
html.mobile-mode .pu-card-cta { width:100%; min-height:50px; height:auto; padding:10px 16px; font-size:16px; }
html.mobile-mode .pu-payment-step { min-height:0; padding:70px 14px 24px; border-radius:16px; }
html.mobile-mode .pu-payment-step h2 { font-size:27px; }
html.mobile-mode .pu-payment-step > p { font-size:15px; margin-bottom:20px; }
html.mobile-mode .pu-method-grid { grid-template-columns:1fr; gap:10px; }
html.mobile-mode .pu-method-card { min-height:84px; padding:14px; gap:12px; }
html.mobile-mode .pu-method-icons,
html.mobile-mode .pu-card-mark { width:52px; height:44px; }
html.mobile-mode .pu-method-copy strong { font-size:16px; }
html.mobile-mode .pu-method-copy small { font-size:13px; }
html.mobile-mode .scp-embed-header { padding:12px; }
html.mobile-mode .scp-embed-header h1 { font-size:21px; }
html.mobile-mode .scp-skip { min-height:44px; padding:7px 13px; font-size:14px; }
html.mobile-mode .scp-embed-body { padding:14px 12px 28px; }
html.mobile-mode #global-search-page { top:calc(128px + env(safe-area-inset-top)); }
html.mobile-mode .gsearch-head { padding:10px 12px; gap:10px; }
html.mobile-mode .gsearch-head .streams-detail-back { height:48px; border-radius:12px; }
html.mobile-mode .gsearch-head-label { font-size:14px; line-height:1.35; }
html.mobile-mode .gsearch-body { padding:18px 12px 28px; gap:26px; }
html.mobile-mode .gsearch-section-title { font-size:16px; margin-bottom:12px; }
html.mobile-mode .gsearch-channels-grid { grid-auto-columns:82%; grid-template-rows:auto; gap:10px; }
html.mobile-mode .gsearch-channel-item { min-height:82px; padding:13px; gap:12px; border-radius:12px; }
html.mobile-mode .gsearch-channel-logo { width:46px; height:46px; }
html.mobile-mode .gsearch-channel-name { font-size:16px; }
html.mobile-mode .gsearch-media-row .gsearch-media-card,
html.mobile-mode .gsearch-media-card-skeleton { flex-basis:42vw; width:42vw; }
html.mobile-mode .gsearch-media-title { font-size:14px; }

/* Dialogs and utility surfaces */
html.mobile-mode .touch-select-overlay { padding:10px; align-items:flex-end; }
html.mobile-mode .touch-select-sheet,
html.mobile-mode .touch-select-overlay.playlist-select .touch-select-sheet,
html.mobile-mode .touch-select-overlay.settings-select .touch-select-sheet { width:100%; height:auto; max-height:88dvh; border-radius:10px !important; }
html.mobile-mode .touch-select-sheet-head,
html.mobile-mode .touch-select-overlay.settings-select .touch-select-sheet-head { padding:14px; }
html.mobile-mode .touch-select-sheet-title,
html.mobile-mode .touch-select-overlay.settings-select .touch-select-sheet-title,
html.mobile-mode .touch-select-overlay.playlist-select .touch-select-sheet-title { font-size:20px; }
html.mobile-mode .touch-select-sheet-close,
html.mobile-mode .touch-select-overlay.settings-select .touch-select-sheet-close,
html.mobile-mode .touch-select-overlay.playlist-select .touch-select-sheet-close { width:48px; height:48px; border-radius:12px; }
html.mobile-mode .touch-select-option,
html.mobile-mode .touch-select-overlay.settings-select .touch-select-option,
html.mobile-mode .touch-select-overlay.playlist-select .touch-select-option { min-height:52px; height:auto; padding:12px 14px; font-size:15px; }
html.mobile-mode .touch-select-sheet-actions { padding:12px; }
html.mobile-mode .touch-select-cancel-btn,
html.mobile-mode .touch-select-save-btn,
html.mobile-mode .touch-select-overlay.playlist-select .touch-select-add-playlist { min-width:0; flex:1; height:48px; padding:0 14px; font-size:15px; }
html.mobile-mode .stream-url-overlay,
html.mobile-mode .playlist-overlay { padding:10px; align-items:flex-start; }
html.mobile-mode .stream-url-shell,
html.mobile-mode .help-modal-shell,
html.mobile-mode .qr-modal-shell,
html.mobile-mode .playlist-modal-shell { width:100%; max-width:100%; max-height:calc(100dvh - 20px); padding:22px 16px; overflow-y:auto; }
html.mobile-mode .playlist-modal-top { gap:12px; }
html.mobile-mode .playlist-modal-copy h2 { font-size:24px; }
html.mobile-mode .playlist-form-grid { grid-template-columns:1fr; gap:12px; }
html.mobile-mode .playlist-form-grid .full { grid-column:auto; }
html.mobile-mode .qr-modal-title { font-size:26px; }
html.mobile-mode .qr-modal-copy { font-size:15px; }
html.mobile-mode .qr-modal-canvas-wrap { max-width:76vw; padding:12px; }
html.mobile-mode .qr-modal-canvas-wrap canvas,
html.mobile-mode .qr-modal-canvas-wrap img { max-width:100%; height:auto !important; }
html.mobile-mode #change-email-modal,
html.mobile-mode #change-password-modal,
html.mobile-mode #cc-name-modal,
html.mobile-mode #cc-add-modal { padding:10px; overflow-y:auto; align-items:flex-start !important; }
html.mobile-mode #change-email-modal > div,
html.mobile-mode #change-password-modal > div,
html.mobile-mode #cc-name-modal > div,
html.mobile-mode #cc-add-modal > div { width:100% !important; max-width:100% !important; padding:22px 16px !important; margin:auto; }
html.mobile-mode #cookie-consent-banner { padding:12px; padding-bottom:calc(12px + env(safe-area-inset-bottom)); flex-direction:column; align-items:stretch; }
html.mobile-mode #cookie-consent-banner .cookie-consent-text { font-size:13px; }
html.mobile-mode #cookie-consent-banner .cookie-consent-ok { width:100%; height:46px; font-size:15px; }
html.mobile-mode .toast { left:12px; right:12px; bottom:calc(12px + env(safe-area-inset-bottom)); max-width:none; padding:14px 16px; border-radius:12px; font-size:15px; text-align:center; }
html.mobile-mode #tab-pip { width:100%; height:auto; max-height:none; flex-direction:column; }
html.mobile-mode #tab-pip-video-slot { order:2; width:100%; height:auto; aspect-ratio:16/9; }
html.mobile-mode #tab-pip-meta { order:1; width:100%; height:auto; min-height:94px; flex:none; padding:12px 14px; gap:5px; }
html.mobile-mode #tab-pip-ch { font-size:13px; }
html.mobile-mode #tab-pip-title { font-size:20px; }
html.mobile-mode #tab-pip-live-btn { width:100%; height:44px; margin-top:8px; justify-content:center; }
html.mobile-mode #sp-pip {
  left:0;
  right:0;
  bottom:env(safe-area-inset-bottom);
  width:100%;
  max-width:none;
  height:auto;
  aspect-ratio:16/9;
  border-width:3px 0 0;
  border-radius:0;
}
html.mobile-mode #sp-pip::before { width:112px; top:8px; }
html.mobile-mode .sp-pip-btn { width:48px; height:48px; border-radius:12px; }
html.mobile-mode .sp-pip-btn .ci-icon { width:23px; height:23px; }
html.mobile-mode .sp-pip-controls { left:10px; bottom:10px; gap:8px; }
html.mobile-mode #sp-pip-close { top:10px; right:10px; }
html.mobile-mode .compat-page-inner { padding:24px 14px 36px; }
html.mobile-mode .compat-title { font-size:32px; }
html.mobile-mode .compat-copy { font-size:15px; }
html.mobile-mode .compat-grid { grid-template-columns:1fr; }

/* Secondary app pages that otherwise retain the Tesla-sized controls. */
html.mobile-mode #categories-expanded-panel.open.cat-expanded-mounted { inset:0; }
html.mobile-mode .categories-expanded-topbar { padding:10px 12px; gap:10px; }
html.mobile-mode #categories-expanded-back { height:48px; border-radius:12px; }
html.mobile-mode #categories-expanded-back .detail-back-inner { padding:0 14px; }
html.mobile-mode #categories-expanded-back .back-chevron { width:22px; height:22px; }
html.mobile-mode #categories-expanded-back-text { font-size:15px; }
html.mobile-mode .categories-expanded-header { display:flex; flex-direction:column; align-items:stretch; gap:10px; }
html.mobile-mode .categories-expanded-title { font-size:27px; line-height:1.15; }
html.mobile-mode .categories-expanded-controls { width:100%; gap:8px; overflow-x:auto; }
html.mobile-mode .cat-expanded-action-btn { flex:0 0 auto; min-height:46px; height:46px; padding:0 14px; border-radius:12px; font-size:14px; }
html.mobile-mode .cat-expanded-action-btn .ci-icon { width:19px; height:19px; }
html.mobile-mode .categories-expanded-body { padding:2px 10px 18px; }
html.mobile-mode .m3u-picker-grid.categories-expanded-grid .m3u-picker-list { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
html.mobile-mode .m3u-picker-grid.categories-expanded-grid .m3u-picker-item { min-height:72px; padding:11px 12px; border-radius:12px; }
html.mobile-mode .m3u-picker-grid.categories-expanded-grid .m3u-picker-name { font-size:15px; }

html.mobile-mode .cc-list-header { padding:14px 12px; }
html.mobile-mode .cc-grid { grid-template-columns:1fr; padding:12px; gap:10px; }
html.mobile-mode .cc-card { padding:16px; border-radius:14px; }
html.mobile-mode .cc-card-play { min-height:44px; }
html.mobile-mode .cc-detail-topbar { padding:10px 12px; flex-wrap:wrap; gap:8px; }
html.mobile-mode .cc-detail-name { width:calc(100% - 120px); min-width:0; }
html.mobile-mode .cc-detail-action-btn { flex:1 1 auto; min-height:44px; justify-content:center; }
html.mobile-mode .cc-shows-strip { padding:10px 12px; }
html.mobile-mode .cc-schedule-item { padding:12px; gap:9px; flex-wrap:wrap; }
html.mobile-mode .cc-schedule-item.now { padding-left:9px; }
html.mobile-mode .cc-schedule-thumb,
html.mobile-mode .cc-schedule-thumb-ph { width:64px; height:38px; }
html.mobile-mode .cc-schedule-play-btn { width:100%; min-height:44px; justify-content:center; }

html.mobile-mode #playlist-editor-overlay { padding:8px; align-items:flex-start; }
html.mobile-mode #playlist-editor-overlay .stream-url-shell { width:100%; max-width:none; min-height:calc(100dvh - 16px); max-height:calc(100dvh - 16px); aspect-ratio:auto; padding:82px 16px 22px; border-radius:16px !important; }
html.mobile-mode .playlist-editor-banner { min-height:84px; margin-bottom:14px; padding-right:64px; }
html.mobile-mode .playlist-editor-logo-bloom { width:min(220px,56%); height:84px; }
html.mobile-mode .playlist-editor-logo-bloom img { height:42px; }
html.mobile-mode .playlist-editor-logo-tm { font-size:12px; right:-14px; }
html.mobile-mode .playlist-editor-close { top:14px; right:14px; width:48px; height:48px; }
html.mobile-mode .playlist-editor-head h2 { font-size:27px; }
html.mobile-mode .playlist-phone-btn { height:50px; margin-bottom:20px; font-size:16px; }
html.mobile-mode #playlist-editor-overlay .playlist-form-grid { grid-template-columns:1fr; gap:13px; }
html.mobile-mode #playlist-editor-overlay .playlist-form-grid .full,
html.mobile-mode #playlist-editor-overlay #playlist-user-field,
html.mobile-mode #playlist-editor-overlay #playlist-pass-field,
html.mobile-mode #playlist-editor-overlay #playlist-url-field { grid-column:1; }
html.mobile-mode #playlist-editor-overlay label { font-size:14px !important; }
html.mobile-mode #playlist-editor-overlay input,
html.mobile-mode #playlist-editor-overlay .phone-paste-btn { height:50px !important; }
html.mobile-mode #playlist-editor-overlay .phone-paste-btn { width:50px; }
html.mobile-mode .playlist-editor-actions { margin-top:22px; }
html.mobile-mode .playlist-editor-save,
html.mobile-mode .playlist-editor-cancel { width:100%; height:50px; font-size:16px; }
html.mobile-mode .playlist-loading-shell { width:100%; max-width:none; padding:30px 18px; }
html.mobile-mode .playlist-item { align-items:flex-start; flex-wrap:wrap; padding:14px; }
html.mobile-mode .playlist-item-main { flex-basis:calc(100% - 10px); }
html.mobile-mode .playlist-item-actions { width:100%; flex-wrap:wrap; }
html.mobile-mode .playlist-item-actions .playlist-mini-btn { flex:1; min-width:90px; min-height:44px; }

html.mobile-mode .onboarding-shell { width:100%; max-height:calc(100dvh - 20px); }
html.mobile-mode .onboarding-title { font-size:25px; }
html.mobile-mode .onboarding-panel { padding:15px; border-radius:14px; }
html.mobile-mode .onboarding-panel h3 { font-size:21px; }
html.mobile-mode .onboarding-panel p { font-size:15px; }
html.mobile-mode .onboarding-actions,
html.mobile-mode .onboarding-main-actions { width:100%; }
html.mobile-mode .onboarding-actions button,
html.mobile-mode .onboarding-main-actions button { flex:1; min-height:46px; }

html.mobile-mode #trial-expired-panel { padding:16px; }
html.mobile-mode #trial-expired-panel .tx-card { max-width:420px; padding:28px 18px; border-radius:16px; }
html.mobile-mode #trial-expired-panel .tx-icon { width:50px; height:50px; }
html.mobile-mode #trial-expired-panel h1 { font-size:26px; }
html.mobile-mode #trial-expired-panel p { font-size:15px; }
html.mobile-mode #trial-expired-panel .tx-cta { height:52px; font-size:16px; }
html.mobile-mode #trial-expired-panel .tx-sub { gap:8px 16px; flex-wrap:wrap; }
html.mobile-mode #trial-expired-panel .tx-sub button { min-height:44px; padding:8px; }

@media (max-width:370px) {
  html.mobile-mode .app-header { grid-template-columns:46px minmax(0,1fr) 46px; gap:6px 8px; padding-inline:8px; }
  html.mobile-mode .app-header .header-logo { width:min(47vw,174px); }
  html.mobile-mode .app-header .header-logo img { max-height:38px; }
  html.mobile-mode .landing-tagline,
  html.mobile-mode #app-landing-panel .landing-tagline { font-size:31px; }
  html.mobile-mode .movie-library-grid,
  html.mobile-mode .library-section-grid { gap:16px 9px; padding-inline:9px; }
  html.mobile-mode .detail-title { font-size:26px !important; }
  html.mobile-mode #settings-panel-account p.settings-account-guest-copy { font-size:17px !important; }
}

@media (prefers-reduced-motion:reduce) {
  html.mobile-mode .mobile-nav-drawer,
  html.mobile-mode .mobile-nav-backdrop { transition:none; }
}
