:root{color-scheme:dark;--bg:#071118;--nav:#26313c;--panel:#323d48;--panel2:#1d2832;--dark:#071016;--line:#43515e;--text:#f7fbff;--muted:#b2bfca;--cyan:#1fd4dc;--green:#22c55e;--gold:#facc15;--red:#ef4444;--shadow:0 22px 70px #0009}*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;min-height:100vh;color:var(--text);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;background:radial-gradient(900px 520px at 92% -12%,#7337a055,transparent 60%),linear-gradient(180deg,#0b1921,#061016 58%,#071118);overflow-x:hidden}button,input,select{font:inherit}button{border:0;border-radius:12px;padding:11px 14px;background:#eaf6ff;color:#08131b;font-weight:900;cursor:pointer;transition:.15s transform,.15s background,.15s border,.15s opacity}button:hover{transform:translateY(-1px)}button:active{transform:translateY(0) scale(.99)}input,select{width:100%;border:1px solid var(--line);background:#111a22;color:var(--text);border-radius:12px;padding:12px 13px;outline:none}input:focus,select:focus{border-color:var(--cyan);box-shadow:0 0 0 3px #1fd4dc30}.wrap{max-width:none;margin:0;padding:0}.appShell{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:100vh}.side{position:sticky;top:0;height:100vh;padding:18px 14px;border-right:1px solid #26333d;background:linear-gradient(180deg,#0b171f,#071016);display:flex;flex-direction:column;gap:14px;z-index:5}.brand{display:flex;gap:12px;align-items:center}.brandMark{width:45px;height:45px;border-radius:14px;background:linear-gradient(135deg,#1fd4dc,#4169e1);display:grid;place-items:center;box-shadow:0 12px 40px #1fd4dc44}.brand h1{margin:0;font-size:22px;letter-spacing:-.05em}.brand p{margin:2px 0 0;color:var(--muted);font-weight:800;font-size:12px}.statusCard{display:flex;gap:10px;align-items:center;padding:12px;border:1px solid #30404d;border-radius:16px;background:#111d26}.statusCard i{width:10px;height:10px;border-radius:99px;background:var(--red);box-shadow:0 0 20px var(--red);flex:0 0 auto}.statusCard.ok i{background:var(--green);box-shadow:0 0 20px var(--green)}.statusCard b{font-size:13px}.statusCard p{margin:3px 0 0;color:var(--muted);font-size:11px;line-height:1.35;word-break:break-word}.sideNav{display:grid;gap:8px}.sideNav button,.guideTabs button{display:flex;justify-content:space-between;align-items:center;gap:8px;background:transparent;color:#e8f0f7;border:1px solid transparent;text-align:left}.sideNav button{padding:11px 12px}.sideNav button.active,.sideNav button:hover,.guideTabs button.active,.guideTabs button:hover{background:#26313c;border-color:#3a4a58}.sideNav b,.guideTabs b{color:var(--cyan)}.sideHelp{margin-top:auto;border:1px solid #30404d;background:#101a22;border-radius:16px;padding:12px}.sideHelp b{font-size:13px}.sideHelp p{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.35}.logout{background:transparent;color:var(--muted);border:1px solid #30404d}.main{min-width:0;padding:16px}.tvApp{max-width:1480px;margin:0 auto}.sportsTabs{position:sticky;top:0;z-index:4;display:flex;align-items:center;gap:10px;margin-bottom:12px;padding:10px;border:1px solid #3c4955;border-radius:18px;background:#2f3944e8;backdrop-filter:blur(18px);box-shadow:0 18px 45px #0006}.quickCats{display:flex;gap:8px;overflow:auto;scrollbar-width:none;flex:1}.quickCats button{white-space:nowrap;background:transparent;color:#f2f7fb;border:1px solid transparent;padding:11px 14px;border-radius:13px;font-size:14px}.quickCats button:before{content:"▦";color:var(--cyan);margin-right:8px}.quickCats button.active,.quickCats button:hover{background:#17242d;border-color:#425462}.refreshBtn{background:#17242d;color:#f2f7fb;border:1px solid #425462}.controls.compactControls{display:grid;grid-template-columns:310px minmax(220px,1fr);gap:10px;align-items:end;margin-bottom:12px;padding:0;background:transparent;border:0;box-shadow:none}.controls label,.settingsCard label{display:block;color:#93a5b3;font-size:11px;font-weight:950;letter-spacing:.12em;text-transform:uppercase;margin:0 0 6px}.playLayout{display:grid;grid-template-columns:360px minmax(0,980px);gap:14px;align-items:start;justify-content:start}.lineupPanel{height:calc(100vh - 148px);min-height:560px;overflow:hidden;border:1px solid #3c4955;border-radius:18px;background:#303b46;box-shadow:var(--shadow);display:flex;flex-direction:column}.lineupHead{padding:13px;border-bottom:1px solid #43515e;background:#26313c}.lineupHead h2{font-size:19px;margin:0;letter-spacing:-.04em}.lineupHead p{margin:4px 0 10px;color:var(--muted);font-size:12px}.guideTabs{display:flex;gap:7px;flex-wrap:wrap}.guideTabs button{padding:8px 10px;border-radius:12px;background:#1b2730;border-color:#3a4a58;color:#e8f0f7;font-size:12px}.channelGrid{display:block;overflow:auto;padding:8px;scrollbar-color:#5d6e7a transparent}.channel{position:relative;display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center;min-height:58px;padding:9px 8px;border-bottom:1px solid #26333d;background:transparent;cursor:pointer;transition:.15s background,.15s border,.15s transform}.channel:hover{background:#26313c}.channel.playing{background:#18272f;border:1px solid var(--cyan);border-radius:12px;margin:3px 0;box-shadow:0 0 0 2px #1fd4dc22}.channelLogo{width:38px;height:38px;border-radius:10px;background:#101820;display:grid;place-items:center;overflow:hidden;border:1px solid #43515e}.channelLogo img{width:100%;height:100%;object-fit:contain;padding:4px}.logoFallback{width:100%;height:100%;display:grid;place-items:center;background:linear-gradient(135deg,#243241,#101820);font-weight:950;color:#e8f0f7}.channelInfo{min-width:0}.channel h3{margin:0;font-size:14px;line-height:1.18;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.channel p{margin:4px 0 0;color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.watchBtn{background:transparent;color:var(--cyan);padding:6px 5px;font-size:12px}.star{position:absolute;right:6px;top:2px;width:25px;height:25px;border-radius:99px;padding:0;background:transparent;color:var(--gold);font-size:15px}.stagePanel{min-width:0;max-width:980px;width:100%}.playerCard,.epgPanel,.settingsCard{border:1px solid #3c4955;background:#303b46;border-radius:18px;box-shadow:var(--shadow)}.playerCard{overflow:hidden}.videoHeader{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;background:#303b46;border-bottom:1px solid #43515e}.channelBadge{display:flex;gap:10px;align-items:center;min-width:0}.channelBadge>.channelLogo,.channelBadge>img,.channelBadge>.logoFallback{width:42px;height:42px;border-radius:10px;flex:0 0 auto}.videoHeader h2{font-size:18px;margin:0;letter-spacing:-.035em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.videoHeader p{margin:3px 0 0;color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.favBig{width:40px;height:40px;border-radius:12px;padding:0;background:#17242d;color:var(--gold);border:1px solid #425462;font-size:22px;flex:0 0 auto}.screenWrap{position:relative;background:#020609}video{width:100%;aspect-ratio:16/9;max-height:66vh;display:block;background:#000;object-fit:contain}video.fill{object-fit:cover}.hoverControls{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:14px;opacity:0;pointer-events:none;transition:.18s opacity;background:linear-gradient(transparent,#0002)}.screenWrap:hover .hoverControls,.screenWrap:focus-within .hoverControls{opacity:1;pointer-events:auto}.hoverControls button{min-width:116px;height:76px;border-radius:14px;background:#1d2730cc;color:#fff;border:1px solid #ffffff22;backdrop-filter:blur(12px);font-size:28px;display:grid;place-items:center;box-shadow:0 16px 40px #0008}.hoverControls span{display:block;font-size:13px}.playerMeta{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:9px 12px;color:#c3cdd7;font-size:12px;font-weight:850;background:#26313c}.pillBtn{background:#17242d;color:#e8f0f7;border:1px solid #425462;border-radius:999px;padding:7px 10px;font-size:12px}.epgPanel{margin-top:14px;padding:14px;min-height:150px}.epgTitle span{display:block;color:var(--cyan);font-size:11px;font-weight:950;letter-spacing:.14em;text-transform:uppercase}.epgTitle b{font-size:15px}.epgEmpty{text-align:center;color:var(--muted);padding:28px 14px}.epgEmpty b{display:block;color:var(--text);font-size:18px}.epgEmpty p{margin:8px 0 0}.epgItem{display:grid;grid-template-columns:96px 1fr;gap:12px;border-top:1px solid #43515e;padding:12px 0}.epgItem.now{background:#14343a;margin:0 -7px;padding-left:7px;padding-right:7px;border:1px solid var(--cyan);border-radius:12px}.epgTime{color:#d5dee6;font-weight:900;font-size:12px}.epgItem b{font-size:14px}.epgItem p{margin:4px 0 0;color:var(--muted);font-size:12px;line-height:1.35}.empty{text-align:center;border:1px dashed #5a6874;border-radius:16px;padding:34px 14px;color:var(--muted);background:#26313c}.empty b{display:block;color:var(--text);font-size:18px}.settingsMain{display:flex;justify-content:center}.settingsCard{width:min(620px,100%);padding:24px;margin-top:18px}.settingsCard h1{font-size:34px;margin:0 0 8px}.settingsCard p{color:var(--muted)}.settingsCard label{margin-top:14px}.settingsCard button{width:100%;margin-top:12px}.muted{color:var(--muted)}.small{font-size:12px}.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:#eef6ff;color:#020617;border-radius:999px;padding:13px 18px;font-weight:950;box-shadow:0 18px 70px #0009;z-index:50}@media(max-width:1100px){.appShell{grid-template-columns:1fr}.side{position:relative;height:auto;border-right:0;border-bottom:1px solid #26333d;display:grid;grid-template-columns:auto 1fr;align-items:center}.statusCard,.sideHelp,.logout{display:none}.sideNav{grid-template-columns:repeat(4,1fr)}.playLayout{grid-template-columns:330px minmax(0,900px)}.lineupPanel{height:calc(100vh - 190px)}}@media(max-width:820px){body{background:#071118}.main{padding:8px}.side{padding:10px;display:flex}.brandMark{width:38px;height:38px}.brand h1{font-size:19px}.brand p{display:none}.sideNav{display:none}.sportsTabs{top:0;margin:0 -2px 8px;border-radius:14px;padding:7px}.quickCats button{padding:10px 11px;font-size:13px}.refreshBtn{display:none}.controls.compactControls{grid-template-columns:1fr;margin-bottom:8px}.controls.compactControls>div:first-child{display:none}.playLayout{display:flex;flex-direction:column}.stagePanel{order:1}.lineupPanel{order:2;width:100%;height:auto;min-height:0;max-height:none;border-radius:16px}.lineupHead{position:sticky;top:58px;z-index:2}.channelGrid{max-height:none;overflow:visible}.playerCard{border-radius:16px}.videoHeader{padding:8px}.videoHeader h2{font-size:15px}.videoHeader p{font-size:11px}.channelBadge>.logoFallback,.channelBadge>.channelLogo{width:34px;height:34px}.favBig{width:34px;height:34px}video{max-height:42vh}.hoverControls{opacity:1;align-items:flex-end;padding-bottom:28px;background:linear-gradient(transparent 35%,#0007)}.hoverControls button{min-width:86px;height:58px;font-size:22px}.hoverControls span{font-size:11px}.playerMeta{font-size:11px;align-items:flex-start;flex-direction:column}.epgPanel{margin-top:8px;border-radius:16px;padding:10px}.epgItem{grid-template-columns:1fr}.channel{grid-template-columns:42px minmax(0,1fr) 62px;min-height:62px}.watchBtn{font-size:11px}.star{right:2px;top:1px}.toast{width:calc(100% - 28px);text-align:center}}@media(max-width:460px){.quickCats button:before{display:none}.hoverControls{gap:8px}.hoverControls button{min-width:76px}.controls.compactControls input{padding:11px}.lineupHead h2{font-size:17px}.guideTabs button{padding:7px 8px}.channel h3{font-size:13px}}

/* iptv23: no left rail, compact account menu, better logos/tabs */
.appShell.noSide{display:block;min-height:100vh}.appShell.noSide .main{padding:12px 14px 28px}.appShell.noSide .tvApp{max-width:1560px}.topBrand{display:flex;align-items:center;gap:10px;flex:0 0 auto;padding:2px 8px 2px 2px}.topBrand .brandMark{width:38px;height:38px;border-radius:11px}.topBrand b{display:block;font-size:15px;letter-spacing:-.03em}.topBrand small{display:block;color:var(--muted);font-size:11px;font-weight:800;margin-top:1px}.userMenu{position:relative;flex:0 0 auto}.userMenu summary{list-style:none;display:flex;align-items:center;gap:8px;cursor:pointer;background:#17242d;border:1px solid #425462;border-radius:13px;color:#f2f7fb;padding:10px 12px;font-weight:900}.userMenu summary::-webkit-details-marker{display:none}.userDot{width:9px;height:9px;border-radius:50%;background:var(--green);box-shadow:0 0 18px var(--green)}.userDrop{position:absolute;right:0;top:calc(100% + 8px);z-index:20;min-width:220px;background:#111a22;border:1px solid #425462;border-radius:16px;padding:10px;box-shadow:0 20px 60px #000b}.userDrop p{margin:2px 4px 10px;color:var(--muted);font-size:12px;line-height:1.35}.userDrop button{width:100%;margin-top:7px;background:#26313c;color:#fff;border:1px solid #425462}.sportsTabs{gap:8px}.quickCats button{display:flex;align-items:center;gap:8px;min-height:40px;max-width:220px;overflow:hidden;text-overflow:ellipsis}.quickCats button:before{content:"";width:8px;height:8px;border-radius:2px;background:var(--cyan);margin-right:0;flex:0 0 auto}.playLayout{grid-template-columns:320px minmax(0,1040px);justify-content:center}.stagePanel{max-width:1040px}.lineupPanel{height:calc(100vh - 132px);min-height:560px}.channel{grid-template-columns:46px minmax(0,1fr) 64px}.channelLogo{width:42px;height:42px;border-radius:11px}.channelLogo img{width:100%;height:100%;object-fit:contain;padding:5px;display:block}.channelBadge>.channelLogo,.channelBadge>.logoFallback{width:44px;height:44px}.channelBadge img{width:100%;height:100%;object-fit:contain}.videoHeader{min-height:62px}.settingsMain{min-height:100vh}.backBtn{width:auto!important;margin:0 0 14px!important}.logoFallback{font-size:12px;letter-spacing:-.02em}@media(max-width:1100px){.topBrand small{display:none}.playLayout{grid-template-columns:310px minmax(0,1fr)}.lineupPanel{height:calc(100vh - 176px)}}@media(max-width:820px){.appShell.noSide .main{padding:8px}.topBrand{padding-right:2px}.topBrand b{font-size:14px}.topBrand .brandMark{width:34px;height:34px}.sportsTabs{align-items:center;position:sticky;top:0}.quickCats{order:3;flex-basis:100%;width:100%}.userMenu summary b{display:none}.userMenu summary{padding:9px 10px}.refreshBtn{display:block;padding:9px 10px}.playLayout{display:flex}.lineupPanel{height:auto}.channelLogo{width:40px;height:40px}.channel{grid-template-columns:44px minmax(0,1fr) 58px}.hoverControls button{min-width:78px}}@media(max-width:520px){.topBrand div:last-child{display:none}.sportsTabs{flex-wrap:wrap}.refreshBtn{margin-left:auto}.userDrop{right:-4px}.quickCats button{font-size:12px;padding:9px 10px}.videoHeader h2{max-width:240px}.playerMeta>div{display:flex;gap:6px;flex-wrap:wrap}.pillBtn{font-size:11px;padding:7px 9px}}
/* iptv24: keep current-channel logos tiny; never let provider logos dominate header */
.nowLogo{width:34px;height:34px;border-radius:9px;background:#101820;border:1px solid #43515e;display:grid;place-items:center;overflow:hidden;flex:0 0 34px}.nowLogo img{width:100%!important;height:100%!important;object-fit:contain!important;padding:4px!important;display:block}.nowLogo .logoFallback{font-size:11px}.channelBadge>.channelLogo,.channelBadge>img,.channelBadge>.logoFallback{width:34px!important;height:34px!important;max-width:34px!important;max-height:34px!important}.videoHeader{min-height:52px}.videoHeader h2{font-size:16px}.screenWrap:empty{background:#020609}.screenWrap video{display:block}
@media(max-width:520px){.nowLogo{width:28px;height:28px;flex-basis:28px}.videoHeader h2{font-size:14px}.videoHeader p{font-size:10px}}
/* iptv26: mobile cleanup */
@media(max-width:820px){
  .appShell.noSide .main{padding:6px 7px 18px}.sportsTabs{display:grid;grid-template-columns:auto 1fr auto;gap:8px;padding:8px;border-radius:13px;margin-bottom:8px}.topBrand{grid-column:1;padding:0}.topBrand .brandMark{width:36px;height:36px}.topBrand div:last-child{display:none}.refreshBtn{grid-column:2;justify-self:end;display:block;padding:9px 13px;border-radius:12px}.userMenu{grid-column:3}.userMenu summary{height:38px;padding:8px 10px}.quickCats{grid-column:1/-1;order:unset;width:100%;display:flex;gap:7px;overflow-x:auto;padding:2px 1px 0}.quickCats button{flex:0 0 auto;max-width:none;min-width:auto;padding:8px 11px;font-size:12px;border-radius:10px;background:#17242d;border:1px solid #425462}.quickCats button:before{width:6px;height:6px}.quickCats button.active{background:#eaf6ff;color:#08131b}.controls.compactControls{margin-bottom:8px}.controls.compactControls input{height:44px;border-radius:13px;font-size:14px}.playerCard,.epgPanel,.lineupPanel{border-radius:14px}.videoHeader{min-height:46px;padding:7px 9px}.nowLogo{width:28px;height:28px;flex-basis:28px}.videoHeader h2{font-size:14px;max-width:260px}.videoHeader p{font-size:10px}.favBig{width:32px;height:32px;border-radius:10px;font-size:18px}.hoverControls{display:none!important}.playerMeta{padding:8px 10px;gap:8px}.playerMeta>div{display:flex;gap:6px;flex-wrap:wrap}.pillBtn{font-size:11px;padding:7px 9px}.epgPanel{padding:10px;min-height:auto}.epgEmpty{padding:20px 10px}.epgEmpty b{font-size:16px}.epgEmpty p{font-size:13px}.lineupHead{top:0;padding:10px}.lineupHead h2{font-size:16px}.guideTabs button{font-size:11px;padding:7px 8px}.channel{min-height:58px;grid-template-columns:40px minmax(0,1fr) 56px;padding:8px 6px}.channelLogo{width:36px;height:36px}.watchBtn{font-size:10px}.star{font-size:14px}.channel h3{font-size:13px}.channel p{font-size:10px}
}
@media(max-width:420px){.videoHeader h2{max-width:220px}.quickCats button{font-size:11px;padding:8px 10px}.sportsTabs{gap:6px}.refreshBtn{padding:9px 11px}}
/* iptv27: soccer schedule mode */
.soccerBoard{display:grid;grid-template-columns:78px minmax(0,1fr);gap:8px;height:100%}.leagueRail{display:flex;flex-direction:column;gap:8px;align-items:center;padding:6px;border-right:1px solid #43515e;overflow:auto}.leagueRail button{width:58px;min-height:58px;border-radius:14px;background:#202b35;color:#eaf6ff;border:1px solid #40505d;padding:5px;display:grid;place-items:center}.leagueRail button.active{border-color:var(--cyan);box-shadow:0 0 0 2px #1fd4dc30;background:#122d35}.leagueRail span{font-size:14px;font-weight:950;color:var(--cyan)}.leagueRail small{font-size:9px;color:#c7d2dc;max-width:48px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.matchList{display:grid;gap:9px;padding:7px;overflow:auto}.matchCard{border:1px solid #43515e;background:#2b3641;border-radius:15px;padding:11px;cursor:pointer;transition:.15s border,.15s background,.15s transform}.matchCard:hover{background:#34414e}.matchCard.playing{border-color:var(--cyan);box-shadow:0 0 0 2px #1fd4dc2f}.matchTop{display:flex;justify-content:space-between;align-items:center;gap:8px}.matchTop b{font-size:16px}.matchTop span{color:var(--cyan);font-size:12px;font-weight:950}.leagueName{color:#d1927c;font-size:12px;font-weight:800;margin:4px 0 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.teams{display:grid;gap:8px}.teams div{display:flex;align-items:center;gap:9px}.teamMark{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#15212a;border:1px solid #536574;color:#fff;font-size:10px;font-weight:950;flex:0 0 26px}.teams strong{font-size:15px;line-height:1.2}.matchActions{display:flex;gap:7px;margin-top:11px}.matchActions button{padding:7px 10px;border-radius:10px;background:#17242d;color:#fff;border:1px solid #425462;font-size:12px}.matchActions button:first-child{color:var(--cyan)}@media(max-width:820px){.soccerBoard{grid-template-columns:58px minmax(0,1fr)}.leagueRail{padding:4px;gap:6px}.leagueRail button{width:46px;min-height:48px;border-radius:11px}.leagueRail span{font-size:11px}.leagueRail small{display:none}.matchList{gap:7px;padding:6px}.matchCard{padding:10px}.matchTop b{font-size:14px}.teams strong{font-size:14px}.teamMark{width:23px;height:23px;flex-basis:23px;font-size:9px}}
/* iptv28: fix soccer mode being cut off/cramped */
.soccerBoard{display:flex!important;flex-direction:column!important;gap:10px;height:auto!important}.leagueRail{display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;padding:8px!important;border-right:0!important;border-bottom:1px solid #43515e!important;overflow-x:auto!important;overflow-y:hidden!important}.leagueRail button{width:auto!important;min-width:64px!important;min-height:44px!important;grid-auto-flow:column!important;gap:6px!important;padding:7px 10px!important}.leagueRail span{font-size:13px!important}.leagueRail small{display:block!important;max-width:86px!important;font-size:10px!important}.matchList{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))!important;gap:10px!important;padding:10px!important;overflow:visible!important}.matchCard{min-height:150px!important;padding:13px!important}.matchTop b{font-size:17px!important}.teams strong{font-size:15px!important}.lineupPanel:has(.soccerBoard){height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}.lineupPanel:has(.soccerBoard) .channelGrid{overflow:visible!important}.playLayout:has(.soccerBoard){grid-template-columns:minmax(360px,440px) minmax(0,1000px)!important;align-items:start!important}.stagePanel{align-self:start}@media(min-width:821px){.lineupPanel:has(.soccerBoard){max-height:calc(100vh - 132px)!important;overflow:auto!important}.matchList{grid-template-columns:1fr!important}.matchCard{min-height:auto!important}.playLayout:has(.soccerBoard){grid-template-columns:minmax(390px,460px) minmax(0,980px)!important}}@media(max-width:820px){.soccerBoard{gap:6px}.leagueRail{padding:6px!important}.leagueRail button{min-width:52px!important;min-height:40px!important;padding:6px 8px!important}.leagueRail small{display:none!important}.matchList{grid-template-columns:1fr!important;padding:7px!important}.matchCard{min-height:auto!important;padding:10px!important}.playLayout:has(.soccerBoard){display:flex!important}}
/* iptv30: league logos + schedule auto-refresh polish */
.leagueLogoImg{width:28px;height:28px;object-fit:contain;display:block;filter:drop-shadow(0 2px 5px #0008)}.leagueRail button{justify-content:center}.leagueRail button span{display:grid;place-items:center;width:28px;height:28px}.leagueRail button.active .leagueLogoImg{filter:drop-shadow(0 0 8px #1fd4dc)}@media(max-width:820px){.leagueLogoImg{width:24px;height:24px}.leagueRail button span{width:24px;height:24px}}
/* iptv31: soccer bug sweep */
.leagueRail button:first-child{min-width:58px!important}.leagueRail button:first-child span{width:auto!important;font-size:12px!important}.matchTop span{white-space:nowrap}.matchTop span:has(+ *){display:inline-flex}.matchCard .matchTop span{color:#32e6ef!important}.lineupHead h2{text-transform:none}.videoHeader h2{max-width:min(70vw,820px)}
/* iptv32: league chips are logo-only */
.leagueRail button small{display:none!important}.leagueRail button{min-width:50px!important;width:50px!important;padding:7px!important}.leagueRail button:first-child{width:54px!important;min-width:54px!important}.leagueRail button span,.leagueLogoImg{margin:auto}.leagueLogoImg{width:30px!important;height:30px!important}@media(max-width:820px){.leagueRail button{width:44px!important;min-width:44px!important}.leagueRail button:first-child{width:48px!important;min-width:48px!important}.leagueLogoImg{width:24px!important;height:24px!important}}
/* iptv33: real team crests + smaller match cards */
.teamMark.hasLogo{background:#0b1218!important;border-color:#516371!important;padding:2px}.teamMark img{width:100%;height:100%;object-fit:contain;display:block}.matchCard{padding:10px!important;min-height:122px!important}.matchTop b{font-size:15px!important}.leagueName{font-size:11px!important;margin:3px 0 8px!important}.teams{gap:6px!important}.teams strong{font-size:14px!important}.teamMark{width:24px!important;height:24px!important;flex-basis:24px!important;font-size:9px!important}.matchActions{margin-top:9px!important}.matchActions button{padding:6px 9px!important;font-size:11px!important}.matchList{gap:8px!important}@media(max-width:820px){.matchCard{padding:9px!important}.matchTop b{font-size:14px!important}.teams strong{font-size:13px!important}.teamMark{width:22px!important;height:22px!important;flex-basis:22px!important}}
/* iptv35: event grouping + compact channel rows */
.streamOptions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:10px}.streamOptions>b{font-size:11px;color:#aebbc7;margin-right:2px}.streamOptions button{padding:6px 8px!important;border-radius:9px!important;font-size:11px!important;background:#17242d!important;color:#eaf6ff!important;border:1px solid #425462!important}.streamOptions button.active{border-color:var(--cyan)!important;color:var(--cyan)!important}.streamOptions .starMini{color:var(--gold)!important}.streamOptions span{font-size:11px;color:#aebbc7}.matchCard{cursor:default!important}.matchActions{display:none!important}.channel{min-height:52px!important;padding:7px 6px!important}.channelLogo{width:34px!important;height:34px!important;border-radius:9px!important}.channelInfo h3{font-size:13px!important}.channelInfo p{font-size:10px!important}.watchBtn{font-size:11px!important;padding:5px 4px!important}.star{top:0!important;right:2px!important;font-size:13px!important}.lineupHead p{font-size:11px!important}@media(max-width:820px){.streamOptions{gap:5px}.streamOptions button{padding:6px 7px!important}.channel{grid-template-columns:38px minmax(0,1fr) 54px!important}.channelLogo{width:34px!important;height:34px!important}.matchCard{min-height:auto!important}}
/* iptv36: no guide panel on mobile */
@media(max-width:820px){.epgPanel{display:none!important}.stagePanel{margin-bottom:8px}.playerCard{margin-bottom:0}}
/* iptv37: easier channel switching */
.remoteBar{display:flex;gap:8px;margin:8px 0 0}.remoteBar button{flex:1;background:#17242d;color:#eaf6ff;border:1px solid #425462;border-radius:12px;padding:10px 12px}.remoteBar button:last-child{color:var(--cyan)}.chanBtn{color:var(--cyan)!important;border-color:#315d67!important}.playerMeta>div{display:flex;gap:6px;flex-wrap:wrap}@media(max-width:820px){.remoteBar{position:sticky;bottom:8px;z-index:10;background:#071118cc;backdrop-filter:blur(14px);padding:7px;border:1px solid #26333d;border-radius:14px;box-shadow:0 12px 40px #0009}.remoteBar button{font-size:13px;padding:11px 9px}.chanBtn{display:none!important}.playerMeta{padding-bottom:7px}.stagePanel{position:relative}}
/* iptv39: simplify ugly mobile top bar */
@media(max-width:820px){
  .sportsTabs{display:flex!important;align-items:center!important;gap:6px!important;padding:6px!important;margin:0 0 6px!important;border-radius:12px!important;background:#101a22e8!important;border-color:#26333d!important;box-shadow:none!important;overflow:hidden!important}
  .topBrand{display:none!important}
  .refreshBtn{display:none!important}
  .userMenu{order:2;flex:0 0 auto!important;margin-left:2px!important}
  .userMenu summary{width:36px!important;height:36px!important;padding:0!important;justify-content:center!important;border-radius:10px!important;background:#17242d!important}
  .userMenu summary b,.userMenu summary span:last-child{display:none!important}
  .userDot{width:8px!important;height:8px!important}
  .quickCats{order:1!important;flex:1 1 auto!important;display:flex!important;gap:6px!important;overflow-x:auto!important;padding:0!important;width:auto!important;min-width:0!important;scrollbar-width:none!important}
  .quickCats::-webkit-scrollbar{display:none!important}
  .quickCats button{flex:0 0 auto!important;min-height:36px!important;padding:8px 12px!important;font-size:12px!important;border-radius:10px!important;background:#111d26!important;border:1px solid #2f4050!important;max-width:none!important}
  .quickCats button:before{display:none!important}
  .quickCats button.active{background:#eaf6ff!important;color:#08131b!important;border-color:#eaf6ff!important}
  .controls.compactControls{margin-top:2px!important;margin-bottom:8px!important}
  .controls label{font-size:10px!important;letter-spacing:.18em!important;margin-left:2px!important}
  .controls.compactControls input{height:40px!important;border-radius:12px!important;background:#081119!important}
  .userDrop{right:0!important;top:42px!important}
}
/* iptv40: stream health + backup auto-switch */
.health{font-style:normal;font-size:9px;margin-left:5px;padding:2px 4px;border-radius:999px;vertical-align:middle}.health.good{background:#0d3;color:#041}.health.bad{background:#622;color:#ffd1d1}.health.warn{background:#4b3b12;color:#ffd36a}.streamOptions button .health{display:inline-block;margin-left:4px}.streamOptions button.active .health{background:#0b3540;color:#9ff}.channelInfo p .health{position:relative;top:-1px}
/* iptv41: manual backup stream button */
.remoteBar button:nth-child(2){background:linear-gradient(135deg,#173041,#1f4a5f)!important;border-color:#3f7082!important;color:#dffaff!important;font-weight:800}.pillBtn[onclick="tryBackup()"]{color:#dffaff!important;border-color:#3f7082!important;background:#173041!important}@media(max-width:820px){.remoteBar{grid-template-columns:1fr 1.15fr 1fr}.remoteBar button:nth-child(2){font-size:12px!important}}
/* iptv43: tap whole match/channel card to autoplay default stream */
.matchCard{cursor:pointer!important}.matchCard:active{transform:scale(.992)}.matchCard.playing{box-shadow:0 0 0 1px var(--cyan),0 0 26px #00e5ff33!important}
/* iptv44: smoother live-edge resume when provider rolls streams */
/* iptv45: stable FFmpeg restream mode */
.health.stable{background:#173041;color:#bdf5ff;border:1px solid #3f7082}.pillBtn[onclick="toggleStable()"]{border-color:#3f7082!important;color:#bdf5ff!important}
/* iptv47: embedded Jellyfin media */
.mediaTopBtn,.mediaRefresh{background:#17242d;color:#eaf6ff;border:1px solid #425462;border-radius:12px;padding:10px 13px;font-weight:900}.mediaTopBtn.active{background:#eaf6ff!important;color:#08131b!important}.mediaHero{padding:18px;border:1px solid #26333d;border-radius:18px;background:linear-gradient(135deg,#121d26,#0b1118);margin:10px 0 14px}.mediaHero h2{margin:0 0 4px;font-size:24px}.mediaHero p{margin:0;color:#9fb0bd}.mediaGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:12px}.mediaCard{background:#101a22;border:1px solid #26333d;border-radius:15px;overflow:hidden;cursor:pointer}.mediaPoster{aspect-ratio:2/3;background:#071118;display:grid;place-items:center;color:#9fb0bd;font-weight:900}.mediaPoster img{width:100%;height:100%;object-fit:cover}.mediaInfo{padding:9px}.mediaInfo b{display:block;font-size:13px;line-height:1.2}.mediaInfo p{margin:4px 0 8px;color:#9fb0bd;font-size:11px}.mediaInfo button{width:100%;padding:8px;border-radius:10px;background:#eaf6ff;color:#08131b;font-size:12px}@media(max-width:820px){.mediaTopBtn{flex:0 0 auto!important;min-height:36px!important;padding:8px 12px!important;font-size:12px!important}.mediaGrid{grid-template-columns:repeat(3,1fr);gap:8px}.mediaInfo{padding:7px}.mediaInfo b{font-size:11px}.mediaInfo p{font-size:10px}.mediaInfo button{padding:7px;font-size:11px}.mediaHero{display:none}}
/* iptv48: embedded Jellyfin iframe viewer */
.mediaModal{position:fixed;inset:0;z-index:80;background:#02070c;display:flex;flex-direction:column}.mediaModalBar{height:48px;display:flex;align-items:center;gap:8px;padding:8px;background:#0b141c;border-bottom:1px solid #26333d}.mediaModalBar b{margin-right:auto}.mediaModalBar button{padding:8px 11px;border-radius:10px;background:#17242d;color:#eaf6ff;border:1px solid #425462}.mediaModal iframe{flex:1;width:100%;border:0;background:#000}
/* iptv49: native Jellyfin playback */
.mediaModal.nativeMedia video{flex:1;width:100%;height:calc(100vh - 48px);background:#000;object-fit:contain}.mediaCard button{background:#bdf5ff!important;color:#061016!important}
/* iptv50: Jellyfin direct static native playback */
/* iptv53: native Jellyfin series/episode picker */
.seriesModal{background:#061016}.seriesBody{overflow:auto;padding:12px;flex:1}.seasonBlock h3{margin:10px 2px;color:#eaf6ff}.episodeList{display:grid;gap:8px}.episodeCard{display:grid;grid-template-columns:120px minmax(0,1fr) 64px;gap:10px;align-items:center;background:#101a22;border:1px solid #26333d;border-radius:13px;padding:8px;cursor:pointer}.epThumb{aspect-ratio:16/9;background:#071118;border-radius:10px;overflow:hidden;display:grid;place-items:center;color:#9fb0bd;font-size:12px}.epThumb img{width:100%;height:100%;object-fit:cover}.episodeCard b{font-size:14px}.episodeCard p{font-size:12px;line-height:1.25;color:#9fb0bd;margin:4px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.episodeCard button{padding:9px;border-radius:10px;background:#bdf5ff;color:#061016}@media(max-width:820px){.seriesBody{padding:8px}.episodeCard{grid-template-columns:92px minmax(0,1fr) 48px;gap:7px;padding:7px}.episodeCard b{font-size:12px}.episodeCard p{font-size:10px;-webkit-line-clamp:2}.episodeCard button{font-size:11px;padding:8px 5px}.seasonBlock h3{font-size:15px}}
/* iptv53: Jellyfin AAC HLS playback for browser audio */
