/* Native handheld navigation. Television and desktop retain their own layouts. */
.mobile-app{--ios-bar:86px;--mobile-bar:86px}
.mobile-app #player-app:not([hidden]){height:var(--app-viewport-height,100svh);overflow:hidden}
.mobile-app #player-app main{margin-left:0!important;height:calc(100% - var(--mobile-bar));min-height:0;padding:0;display:flex;flex-direction:column}
.mobile-app #player-app .main-content{flex:1;min-height:0;width:100%;max-width:none;overflow:auto;overscroll-behavior:contain;padding:16px 14px}
.mobile-app #player-app .sidebar{position:fixed;inset:auto 0 0;width:100%;height:var(--mobile-bar);padding:8px 12px 12px;background:linear-gradient(0deg,#080f19 70%,#080f1900);border:0;z-index:45;display:block}
.mobile-app #player-app .sidebar>:not(nav){display:none}
.mobile-app #player-app .sidebar nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;max-width:600px;height:64px;margin:0 auto;padding:5px;border:1px solid #6d91b238;border-radius:23px;background:linear-gradient(125deg,#13263a,#0d1a2a);box-shadow:0 8px 24px #0005}
.mobile-app #player-app .sidebar nav>:not([data-mobile-label]){display:none}
.mobile-app #player-app .sidebar .nav-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:52px;padding:5px 3px;border:1px solid transparent;border-radius:18px;color:#a8bdcf;font-size:11px;font-weight:700;line-height:1.1;letter-spacing:.025em;text-transform:uppercase}
.mobile-app #player-app .sidebar .nav-item .nav-icon{width:25px;height:25px;opacity:.9}
.mobile-app #player-app .sidebar .nav-item.selected{color:#d4ff9c;border-color:#b9f86a30;background:linear-gradient(135deg,#b9f86a20,#3f96d415);box-shadow:inset 0 1px 0 #d4ff9c15}
.mobile-app #player-app .sidebar .nav-item.selected::after,.mobile-app .sidebar .live-dot{display:none}
.mobile-app #player-app .topbar{height:58px;min-height:58px;padding:0 14px;gap:10px;background:#0a1421;border-bottom:1px solid #a2c0d218}
.mobile-app .topbar .breadcrumb{min-width:0;flex:1}.mobile-app .breadcrumb>span,.mobile-app #clock,.mobile-app .topbar .quick-settings{display:none}
.mobile-app .topbar-right{display:flex;flex:none;gap:6px}.mobile-app .topbar #profile-name{display:none}
.mobile-app .mobile-top-button,.mobile-app .topbar .profile-button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;min-width:44px;padding:8px;border:1px solid #6d91b226;border-radius:15px;background:#16304a55;color:#c3d4e4}
.mobile-app .mobile-top-button .nav-icon{width:22px;height:22px}.mobile-app .mobile-more-glyph{display:flex;align-items:center;gap:3px}.mobile-app .mobile-more-glyph i{width:4px;height:4px;border-radius:50%;background:currentColor}
.mobile-app .topbar .avatar{width:32px;height:32px;border-radius:11px;font-size:16px}
.mobile-app #player-app .topbar{display:grid;grid-template-columns:44px minmax(0,1fr) 44px 44px;gap:6px}
.mobile-app #player-app .topbar-right{display:contents}.mobile-app #player-app .topbar .breadcrumb{display:none}
.mobile-app #mobile-brand-home{grid-column:1;grid-row:1;display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:4px;border:0;border-radius:12px;background:transparent}
.mobile-app #mobile-brand-home img{display:block;width:36px;height:36px}
.mobile-app #open-more.mobile-space-button{grid-column:2;grid-row:1;justify-self:center;max-width:100%;min-width:0;min-height:44px;padding:8px 12px;border:1px solid #7fa5bd36;border-radius:18px;background:linear-gradient(130deg,#1b394d,#12283b);color:#d1e4ef;font-size:13px;font-weight:650;white-space:nowrap}
.mobile-app #mobile-search-toggle{grid-column:3;grid-row:1}.mobile-app #profile-button{grid-column:4;grid-row:1}
.mobile-app #player-app .toolbar,.mobile-app #refresh-catalog,.mobile-app .page-footer{display:none!important}
.mobile-app #player-app .page-intro{margin-bottom:12px}.mobile-app #player-app .page-intro h1{font-size:28px}
.mobile-app .mobile-search-dialog{width:min(520px,calc(100% - 24px));max-height:calc(var(--app-viewport-height,100svh) - 24px);padding:20px;border:1px solid #7ca2c04d;border-radius:24px;background:#102134;overflow:auto}
.mobile-app .mobile-search-dialog h2{font-size:22px}.mobile-app .mobile-search-dialog .search{display:flex;width:100%;margin:8px 0 16px;min-height:48px}
.mobile-app .mobile-search-dialog input{width:100%;min-width:0;font-size:16px;min-height:48px}
.mobile-app .mobile-search-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:20px}
.mobile-app .mobile-search-options label{min-width:0;font-size:12px}.mobile-app .mobile-search-options select{width:100%;min-width:0;min-height:44px;font-size:14px}
.mobile-app #more-dialog .more-actions{gap:10px}.mobile-app #more-dialog .button{min-height:48px;justify-content:flex-start}
.mobile-app #more-dialog .button .nav-icon{width:22px;height:22px;margin-right:8px}
.mobile-app #more-dialog .button span{white-space:normal}
@media(min-width:801px){.mobile-app #player-app .main-content{padding:22px 28px}.mobile-app #player-app .page-intro h1{font-size:34px}}

.mobile-app #player-app .sidebar .nav-item>span:not([data-icon]){display:block}
.mobile-app .mobile-search-dialog .category-search-label{display:block;margin:0 0 16px;font-size:12px}
.mobile-app .mobile-search-dialog .category-search-label input{display:block;margin-top:6px}

.mobile-app #player-app .sidebar .nav-item{width:100%}
.mobile-app .guide-open{min-height:44px;min-width:44px}

/* The signed-in account opens into an explicit personal profile choice. */
.mobile-app #profiles-dialog.profile-entry[open]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;width:100vw;max-width:none;height:var(--app-viewport-height,100svh);max-height:none;margin:0;padding:max(24px,var(--app-safe-top,0px)) 24px max(24px,var(--app-safe-bottom,0px));border:0;border-radius:0;background:radial-gradient(ellipse at 50% 4%,#24556d45,transparent 58%),#0a1421;overflow:hidden}
.mobile-app .profile-entry .profile-entry-brand{width:156px;height:auto;flex:none;margin:0 0 10px}
.mobile-app .profile-entry .dialog-header{display:block;flex:none;width:100%;margin:0;text-align:center}
.mobile-app .profile-entry .dialog-header .eyebrow{display:none}
.mobile-app .profile-entry h2{font-size:clamp(27px,6vw,36px);line-height:1.15;margin:0}
.mobile-app .profile-entry-hint{flex:none;max-width:320px;margin:0;color:#b9cbd9;text-align:center;font-size:14px;line-height:1.5}
.mobile-app .profile-entry .profile-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px;flex:0 1 auto;width:min(100%,520px);min-height:0;margin:12px 0;padding:6px;overflow:auto;align-content:start;overscroll-behavior:contain}
.mobile-app .profile-entry .profile-list:has(.profile-option:only-child){grid-template-columns:1fr;width:min(220px,100%)}
.mobile-app .profile-entry .profile-option{display:flex;flex-direction:column;align-items:center;gap:6px;padding:0;border:0;background:transparent;min-width:0}
.mobile-app .profile-entry .profile-choice{display:flex;flex-direction:column;justify-content:flex-start;gap:12px;width:100%;min-height:112px;padding:8px;border:1px solid transparent;border-radius:22px;background:transparent;text-align:center;white-space:normal}
.mobile-app .profile-entry .profile-choice .avatar{width:72px;height:72px;border-radius:24px;font-size:30px;box-shadow:inset 0 1px 0 #ffffff32,0 10px 28px #0003}
.mobile-app .profile-entry .profile-choice>span:last-child{display:block;max-width:100%;font-size:16px;line-height:1.35;overflow-wrap:anywhere}
.mobile-app .profile-entry .profile-choice:focus-visible{border-color:#b7f366;background:#b7f30d0a;outline:0}
.mobile-app .profile-entry .profile-choice:active{background:#b7f30d14}
.mobile-app .profile-entry .profile-option small{max-width:100%;margin:0;color:#a9becf;font-size:11px;text-align:center}
.mobile-app .profile-entry .profile-edit,.mobile-app .profile-entry>.text-button{display:none}
.mobile-app .profile-entry .profile-create{flex:none;width:min(100%,360px);margin:0}
.mobile-app .profile-entry #profile-error{flex:none;width:100%;margin:0;text-align:center}
.mobile-app .profile-entry #profile-error:empty{display:none}
.mobile-app .profile-entry .profile-entry-logout{flex:none;min-height:44px;margin:0;color:#b9cbd9;background:transparent}
@media(min-width:700px){.mobile-app .profile-entry .profile-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:699px){.mobile-app .profile-entry .profile-option:last-child:nth-child(odd):not(:only-child){grid-column:1/-1;justify-self:center;width:calc(50% - 8px)}}
@media(orientation:landscape) and (max-height:500px){
 .mobile-app #profiles-dialog.profile-entry[open]{gap:8px;padding:16px 24px}
 .mobile-app .profile-entry .profile-entry-brand,.mobile-app .profile-entry .profile-entry-hint{display:none}
 .mobile-app .profile-entry .profile-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}
 .mobile-app .profile-entry .profile-choice{min-height:88px;gap:6px;padding:4px}
 .mobile-app .profile-entry .profile-choice .avatar{width:52px;height:52px;font-size:24px;border-radius:17px}
 .mobile-app .profile-entry h2{font-size:24px}
}

/* Handheld live catalog: categories and channel rows, with playback on the native surface. */
.mobile-app.live-view #browse-content,.mobile-app.live-view #library{display:flex;flex:1;min-height:0;flex-direction:column}
.mobile-app.live-view #player-app .main-content{display:flex;flex-direction:column;overflow:hidden}
.mobile-app.live-view #player-app .page-intro{min-height:34px;margin-bottom:8px}
.mobile-app.live-view #source-label,.mobile-app.live-view #catalog-saved,.mobile-app.live-view .page-intro .eyebrow{display:none}
.mobile-app.live-view .catalog-workspace{display:flex;flex:1;min-height:0;flex-direction:column;gap:12px}
.mobile-app.live-view .category-browser{position:relative;top:0;flex:none;height:auto;display:block;border-radius:18px;background:#102134;border:1px solid #6d91b238}
.mobile-app.live-view .category-browser h2{display:none}
.mobile-app.live-view .category-browser-body{display:flex;flex:none;flex-direction:row;align-items:stretch;gap:8px;padding:8px}
.mobile-app.live-view #all-categories{flex:0 0 104px;min-height:60px;margin:0;padding:8px;font-size:12px;white-space:normal}
.mobile-app.live-view .category-options{flex:1;min-width:0;height:var(--category-band-height,70px);max-height:none;overflow-y:hidden;padding:0}
.mobile-app.live-view .category-options .category-choice{min-height:60px;height:auto;padding:8px 12px;border-radius:13px}
.mobile-app.live-view .category-choice>span:first-child{font-size:13px;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
.mobile-app.live-view .catalog-results{display:flex;flex:1;flex-direction:column;min-height:0;width:100%;padding:0}
.mobile-app.live-view .live-channel-scroll{display:block;flex:1;height:auto;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;overflow-anchor:none}
.mobile-app.live-view .channel-grid.compact-channels{grid-template-columns:1fr;gap:8px}
.mobile-app.live-view .channel-row{padding:4px;border-radius:16px;background:#102033;border-color:#6d91b226}
.mobile-app.live-view .channel-row-play{min-height:68px;gap:10px;padding:7px}
.mobile-app.live-view .channel-row-art{width:42px;height:36px;border-radius:10px}
.mobile-app.live-view .channel-row-copy strong{font-size:14px;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
.mobile-app.live-view .channel-row-copy small{font-size:11px}
.mobile-app.live-view .channel-row-favorite{min-height:44px;min-width:44px}
.mobile-app .mobile-search-options label:has(select[hidden]){display:none}

.mobile-app.live-view .catalog-workspace{width:100%;min-width:0}
.mobile-app.live-view .category-browser{width:100%;min-width:0;overflow:hidden}

@media(orientation:landscape) and (max-height:500px){
 .mobile-app{--mobile-bar:72px}
 .mobile-app #player-app .sidebar{padding:6px 12px 12px}
 .mobile-app #player-app .sidebar nav{height:52px;padding:3px}
 .mobile-app #player-app .sidebar .nav-item{min-height:44px;gap:2px;font-size:10px;padding:2px}
 .mobile-app #player-app .sidebar .nav-item .nav-icon{width:22px;height:22px}
 .mobile-app #player-app .topbar{height:48px;min-height:48px}
 .mobile-app.live-view #player-app .main-content{padding:8px 12px}
 .mobile-app.live-view .page-intro,.mobile-app.live-view .results-line{display:none}
 .mobile-app.home-view #home-content{display:flex;flex-direction:column}
 .mobile-app.home-view .home-destinations{order:-2;margin:0 0 6px}
 .mobile-app.home-view .home-player-tools{order:-1;margin:0 0 12px}
 .mobile-app.home-view .home-destination{min-height:60px;padding:8px}
 .mobile-app.home-view .home-destination-copy strong{font-size:20px}
 .mobile-app.home-view .home-destination-copy small{display:none}
}

/* Keep the choice flow inside the phone; only its middle content can scroll. */
.mobile-app .welcome-journey{width:100%;max-width:100%;height:var(--app-viewport-height,100svh);max-height:var(--app-viewport-height,100svh);overflow:hidden}
.mobile-app .welcome-journey #welcome-form{height:100%;min-height:0;display:flex;flex-direction:column;padding:16px 20px;gap:12px}
.mobile-app .welcome-journey :is(.journey-header,.journey-progress,.journey-footer){flex:none}
.mobile-app .welcome-journey .journey-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;justify-content:flex-start;padding:8px 2px}
.mobile-app .welcome-journey .journey-footer{padding-top:10px;gap:8px}
.mobile-app .welcome-journey button{min-width:44px;min-height:44px}

@media(max-width:700px){
 .mobile-app .welcome-journey .journey-identity{grid-template-columns:64px minmax(0,1fr);gap:10px 14px;align-items:start}
 .mobile-app .welcome-journey .journey-identity-choices{display:contents}
 .mobile-app .welcome-journey .journey-profile-preview{grid-column:1;grid-row:1;padding:0}
 .mobile-app .welcome-journey .journey-name-label{grid-column:2;grid-row:1}
 .mobile-app .welcome-journey .journey-name-label input{margin-top:6px;min-height:44px}
 .mobile-app .welcome-journey .journey-color-label{grid-column:1/-1;margin:0}
 .mobile-app .welcome-journey .journey-colors{grid-column:1/-1}
 .mobile-app .welcome-journey .journey-avatar-orbit{width:64px;height:64px;margin:0 auto 6px}
 .mobile-app .welcome-journey .journey-avatar-orbit .avatar{width:54px;height:54px}
 .mobile-app .welcome-journey .journey-profile-preview>strong{font-size:16px}
 .mobile-app .welcome-journey .journey-profile-summary,.mobile-app .welcome-journey .journey-profile-eyebrow{display:none}
}
@media(max-width:390px) and (max-height:650px){
 .mobile-app .welcome-journey .journey-intro{margin-bottom:8px}
 .mobile-app .welcome-journey .journey-intro>.eyebrow{margin-bottom:6px}
 .mobile-app .welcome-journey .journey-intro h2{font-size:22px;margin-bottom:8px}
 .mobile-app .welcome-journey .journey-intro>p:last-child{display:none}
}
@media(max-width:390px) and (max-height:580px){
 .mobile-app .welcome-journey #welcome-form{padding-top:12px;padding-bottom:12px;gap:8px}
 .mobile-app .welcome-journey .journey-body{padding-top:4px;padding-bottom:4px}
 .mobile-app .welcome-journey .journey-footer>p{display:none}
 .mobile-app .welcome-journey [data-welcome-pane="2"] .journey-intro h2{font-size:20px}
 .mobile-app .welcome-journey [data-welcome-pane="2"] .journey-intro h2 br{display:none}
 .mobile-app .welcome-journey [data-welcome-pane="2"] .journey-intro h2 em{margin-left:.25em}
}
