/* Mobile channel browser, shared by the PWA and Android WebView. */
.tv-mobile-tabs,.tv-mobile-search,.tv-mobile-channel-arrow,.tv-mobile-favorite{display:none}
.wt-live-guide .wt-mobile-tabs{display:none}
@media(max-width:900px){
 .wt-live-guide body:has(.mobile-live-guide){padding:0;overflow:hidden;background:var(--bg)}
 .mobile-live-guide{height:calc(100dvh - 65px - env(safe-area-inset-bottom,0px));padding:env(safe-area-inset-top,0px) 0 0;background:var(--bg);overflow:hidden;font-size:16px}
 .mobile-live-guide .tv-live-top{height:64px;min-height:64px;padding:8px 12px;border:0;gap:12px;flex-wrap:nowrap;background:var(--bg)}
 .mobile-live-guide .tv-live-top>a{flex:0 0 62px}
 .mobile-live-guide .tv-live-top>a img{width:62px;height:auto;max-height:44px}
 .mobile-live-guide .tv-live-top nav,.mobile-live-guide .tv-search-trigger,.mobile-live-guide .tv-live-top time{display:none}
 .mobile-live-guide .tv-mobile-search{display:flex;align-items:center;gap:8px;flex:1;min-width:0;height:44px;padding:0 12px;border-radius:8px;background:var(--panel2);color:var(--muted)}
 .tv-mobile-search input{width:100%;min-width:0;padding:0;border:0;outline:none;background:none;color:var(--text);font-size:16px}
 .mobile-live-guide .tv-guide-columns{display:grid;grid-template-columns:minmax(0,32%) minmax(0,1fr);grid-template-rows:auto 52px minmax(0,1fr);flex:1;gap:0;padding:0;min-height:0;overflow:hidden}
 .mobile-live-guide .tv-detail-column{display:contents}
 .mobile-live-guide .tv-channel-stage{position:relative;grid-column:1/-1;grid-row:1;order:0;border:0;border-radius:0;overflow:hidden}
 .mobile-live-guide .tv-stage-video{aspect-ratio:16/9;max-height:36dvh;width:100%}
 .mobile-live-guide .tv-stage-placeholder{gap:6px;padding:10px}
 .mobile-live-guide .tv-stage-placeholder .channel-logo{width:42px;height:42px;min-width:42px;min-height:42px}
 .mobile-live-guide .tv-stage-placeholder p{font-size:12px}
 .mobile-live-guide .tv-stage-placeholder .btn{padding:6px 12px;min-height:34px;font-size:12px}
 .mobile-live-guide .tv-mobile-tabs{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:1fr 1fr;align-items:center;border-bottom:1px solid var(--line);background:var(--panel);padding:9px 0}
 .tv-mobile-tabs button{height:34px;border:0;border-radius:0;background:none;color:var(--muted);font:inherit;font-size:17px}
 .tv-mobile-tabs button+button{border-left:1px solid #ffffff30}
 .tv-mobile-tabs button[aria-pressed=true]{color:var(--red2)}
 .mobile-live-guide .tv-categories{grid-column:1;grid-row:3;order:0;display:block;width:100%;height:100%;border:0;border-right:1px solid var(--line);border-radius:0;padding:0;overflow-x:hidden;overflow-y:auto;background:var(--bg)}
 .mobile-live-guide .tv-categories button{display:flex;width:100%;min-height:58px;border:0;border-left:4px solid transparent;border-radius:0;margin:0;padding:12px 9px;color:var(--muted);font-size:14px;white-space:nowrap;overflow:hidden;gap:0}
 .mobile-live-guide .tv-categories button>span{overflow:hidden;text-overflow:ellipsis;min-width:0}
 .mobile-live-guide .tv-categories button small,.mobile-live-guide .tv-categories button>.icon{display:none}
 .mobile-live-guide .tv-categories button[aria-pressed=true]{background:var(--panel2);border-left-color:var(--red);color:var(--text)}
 .mobile-live-guide .tv-channel-list{grid-column:2;grid-row:3;order:0;min-height:0;max-height:none;height:100%;border:0;border-radius:0;background:var(--panel2)}
 .mobile-live-guide .tv-list-heading{display:none}
 .mobile-live-guide .tv-channel-options{flex:1;padding:0;overflow-x:hidden;overflow-y:auto}
 .mobile-live-guide .tv-channel-option{min-height:60px;width:100%;padding:8px 9px;gap:8px;margin:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;font-size:14px}
 .mobile-live-guide .tv-channel-option>.channel-logo{order:-1;min-width:34px;min-height:34px;width:34px;height:34px;border-radius:4px;background:transparent}
 .mobile-live-guide .tv-channel-number{font-size:11px;min-width:22px;color:var(--text)}
 .mobile-live-guide .tv-channel-option strong{font-size:14px;font-weight:500;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
 .mobile-live-guide .tv-channel-option small:not(.tv-channel-number){margin-top:4px;font-size:11px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:var(--muted)}
 .mobile-live-guide .tv-channel-option[aria-pressed=true],.mobile-live-guide .tv-channel-option.is-playing{background:linear-gradient(90deg,#2582ef99,#2582ef15)}
 .mobile-live-guide .tv-channel-option .tv-mobile-channel-arrow{display:block;flex:0 0 14px;width:14px;height:18px;color:var(--muted)}
 .mobile-live-guide .tv-channel-option>.live-dot{display:none}
 .mobile-live-guide .tv-list-more{border:0;border-radius:0;min-height:48px;font-size:13px}
 .mobile-live-guide .tv-programme-panel{display:none}
 .mobile-live-guide .tv-channel-stage:not(.is-expanded) .tv-transport{position:absolute;inset:auto 0 0;padding:8px;background:linear-gradient(transparent,#060b0edb);pointer-events:none}
 .mobile-live-guide .tv-channel-stage:not(.is-expanded) .tv-playing-title,.mobile-live-guide .tv-channel-stage:not(.is-expanded) .tv-on-air,.mobile-live-guide .tv-channel-stage:not(.is-expanded) .tv-secondary-controls{display:none}
 .mobile-live-guide .tv-channel-stage:not(.is-expanded) .tv-transport-buttons{justify-content:flex-end;pointer-events:auto}
 .mobile-live-guide .tv-channel-stage:not(.is-expanded) .tv-transport-buttons button{min-height:34px;padding:5px 8px;background:#060b0e99;font-size:11px}
 .mobile-live-guide .tv-channel-stage:not(.is-expanded) .tv-transport-buttons button:first-child,.mobile-live-guide .tv-channel-stage:not(.is-expanded) .tv-transport-buttons button:nth-child(3){display:none}
 .mobile-live-guide .tv-mobile-favorite{position:absolute;display:grid;place-items:center;top:10px;right:10px;width:34px;height:34px;border:1px solid #ffffff30;border-radius:50%;background:#060b0e99;color:#fff}
 .mobile-live-guide .tv-mobile-favorite.saved{color:var(--red2)}
 .mobile-live-guide .tv-mobile-favorite.saved .icon{fill:currentColor}
 .mobile-live-guide .tv-channel-stage.is-expanded .tv-mobile-favorite{display:none}
 .wt-live-guide:has(.mobile-live-guide) .wt-mobile-bottom{position:fixed;inset:auto 0 0;z-index:40;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));height:calc(65px + env(safe-area-inset-bottom,0px));background:var(--panel2);border-top:1px solid var(--line);padding:7px 4px calc(7px + env(safe-area-inset-bottom,0px))}
 .wt-live-guide:has(.mobile-live-guide) .wt-mobile-bottom a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:50px;color:var(--muted);font-size:11px}
 .wt-live-guide:has(.mobile-live-guide) .wt-mobile-bottom .icon{width:24px;height:24px}
 .wt-live-guide:has(.mobile-live-guide) .wt-mobile-bottom a.active{color:var(--red2)}
 .wt-mobile-live-full .wt-mobile-bottom{display:none!important}
}
@media(max-width:380px){.mobile-live-guide .tv-channel-number{display:none}.mobile-live-guide .tv-categories button{font-size:13px}.mobile-live-guide .tv-channel-option{gap:6px;padding-inline:7px}}
@media(max-height:500px) and (max-width:900px){.mobile-live-guide .tv-live-top{height:52px;min-height:52px;padding-block:4px}.mobile-live-guide .tv-stage-video{max-height:30dvh}.mobile-live-guide .tv-guide-columns{grid-template-rows:auto 44px minmax(0,1fr)}.mobile-live-guide .tv-mobile-tabs{padding:5px 0}.mobile-live-guide .tv-categories button{min-height:48px}}
