body[data-theme="iptv"]{--bg:#142f43;--panel:#17384e;--text:#f2f7fb;--muted:#91a9ba;--line:rgba(151,197,225,.13);--accent:#24c9e8;--glass1:#17384e;--glass2:#132f42;--glass-border:rgba(151,197,225,.12);--panel-shadow:none;--select-bg:#214a64;background:#10283a;color:var(--text)}
body[data-theme="iptv"] .noise{opacity:.02}
body[data-theme="iptv"] .topbar{background:#1c2142;border-color:rgba(255,255,255,.05);box-shadow:none}
body[data-theme="iptv"] .login-card{background:#17384e;border-color:rgba(255,255,255,.1);border-radius:8px;box-shadow:0 24px 70px rgba(2,12,24,.28)}
body[data-theme="iptv"] .primary-btn{background:#27c6e5;color:#082536}
body[data-theme="iptv"] .portal-card{min-height:175px;border-radius:5px;background:linear-gradient(135deg,#214b64,#17384e);box-shadow:none}
body[data-theme="iptv"] .portal-card:hover{background:#285974;transform:translateY(-2px)}
body[data-theme="iptv"] .portal-icon{border-radius:4px;background:#2b5a74;color:#fff}

@media(min-width:901px){
 body[data-theme="iptv"]:has(.dashboard:not(.hidden)) .topbar{position:fixed;z-index:30;left:0;top:25px;bottom:25px;width:142px;height:auto;padding:18px 10px;display:flex;flex-direction:column;align-items:stretch;background:#204967;border:0;border-radius:0}
 body[data-theme="iptv"]:has(.dashboard:not(.hidden)) .brand{flex-direction:column;justify-content:center;text-align:center;gap:7px;margin-bottom:18px}
 body[data-theme="iptv"]:has(.dashboard:not(.hidden)) .brand-logo{width:62px;height:62px;border-radius:50%}
 body[data-theme="iptv"]:has(.dashboard:not(.hidden)) .brand-copy small{display:none}
 body[data-theme="iptv"]:has(.dashboard:not(.hidden)) .account-chip{position:fixed;z-index:32;left:10px;top:150px;width:122px;display:block;padding:9px 8px;border-radius:7px;background:#193c54;border-color:rgba(255,255,255,.11);text-align:center}
 body[data-theme="iptv"]:has(.dashboard:not(.hidden)) .account-details{width:100%;min-width:0;align-items:stretch}
 body[data-theme="iptv"]:has(.dashboard:not(.hidden)) .account-details>#accountName{font-size:10px;direction:ltr;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body[data-theme="iptv"]:has(.dashboard:not(.hidden)) .account-details>#expiryText{font-size:7px;margin-top:2px;white-space:normal;line-height:1.5}
 body[data-theme="iptv"]:has(.dashboard:not(.hidden)) .connection-stats{gap:3px;margin-top:6px;padding-top:6px}
 body[data-theme="iptv"]:has(.dashboard:not(.hidden)) .connection-stats span{padding:3px;gap:2px;flex-direction:column}
 body[data-theme="iptv"]:has(.dashboard:not(.hidden)) .connection-stats i{font-size:5.5px}
 body[data-theme="iptv"]:has(.dashboard:not(.hidden)) .top-actions{margin-top:auto;display:flex;flex-direction:column;gap:8px;width:100%}
 body[data-theme="iptv"]:has(.dashboard:not(.hidden)) .theme-select,
 body[data-theme="iptv"]:has(.dashboard:not(.hidden)) .language-select,
 body[data-theme="iptv"]:has(.dashboard:not(.hidden)) .logout-btn{width:100%;max-width:none;height:39px;border-radius:4px;font-size:9px}
 body[data-theme="iptv"]:has(.dashboard:not(.hidden)) main,
 body[data-theme="iptv"]:has(.dashboard:not(.hidden)) footer{margin-left:142px}
 body[data-theme="iptv"] .dashboard{padding:24px 18px 45px;max-width:none}
 body[data-theme="iptv"] .welcome-row{padding:0 8px 12px}
 body[data-theme="iptv"] .welcome-row h2{font-size:25px}
 body[data-theme="iptv"] .portal-grid{gap:3px;margin-top:16px}
 body[data-theme="iptv"] .browser-head{grid-template-columns:auto 1fr 270px;margin-bottom:8px;background:#17384e;padding:8px 10px}
 body[data-theme="iptv"] .browser-head h3{font-size:18px}
 body[data-theme="iptv"] .glass-columns{direction:ltr;display:grid;grid-template-columns:190px minmax(280px,.85fr) minmax(390px,1.35fr);gap:2px;height:calc(100vh - 150px);min-height:570px}
 body[data-theme="iptv"] .glass-panel{direction:rtl;border-radius:0!important;border:0;border-left:1px solid rgba(162,203,227,.11);background:#17384e!important;box-shadow:none!important}
 body[data-theme="iptv"] .category-panel{grid-column:1}
 body[data-theme="iptv"] .items-panel{grid-column:2}
 body[data-theme="iptv"] .watch-panel{grid-column:3}
 body[data-theme="iptv"] .panel-title{height:56px;padding:10px 14px;background:#142f43;border-color:rgba(255,255,255,.06)}
 body[data-theme="iptv"] .panel-title>span{border-radius:3px;color:#62d7ec;border-color:#32809a}
 body[data-theme="iptv"] .vertical-list{padding:5px 7px}
 body[data-theme="iptv"] .category-row,body[data-theme="iptv"] .content-row{min-height:42px;margin:0;border:0;border-radius:3px;background:transparent}
 body[data-theme="iptv"] .category-row:hover,body[data-theme="iptv"] .content-row:hover,body[data-theme="iptv"] .category-row.active,body[data-theme="iptv"] .content-row.playing{background:#2a536c;color:#65d8ee}
 body[data-theme="iptv"] .content-row{min-height:50px;border-bottom:1px solid rgba(255,255,255,.035)}
 body[data-theme="iptv"] .thumb{width:34px;height:34px;border-radius:50%}
 body[data-theme="iptv"] .inline-player{margin:8px 10px 0;width:calc(100% - 20px);border-radius:4px;aspect-ratio:16/7;background:#071925}
 body[data-theme="iptv"] .now-playing{padding:10px 14px;background:repeating-linear-gradient(90deg,transparent 0,transparent 24.8%,rgba(132,183,212,.11) 25%,transparent 25.2%),#142f43}
 body[data-theme="iptv"] .track-controls label,body[data-theme="iptv"] .auto-next,body[data-theme="iptv"] #fullscreenBtn{border-radius:3px;background:#1d4157}
}

/* Black & gold identity for the default IPTV theme */
body[data-theme="iptv"]{--bg:#070604;--panel:#15120c;--text:#fffaf0;--muted:#b4aa92;--line:rgba(216,178,70,.18);--accent:#d8b246;--gold:#d8b246;--glass1:rgba(25,21,13,.96);--glass2:rgba(8,7,4,.96);--glass-border:rgba(216,178,70,.22);--select-bg:#17130b;background:radial-gradient(circle at 78% 8%,rgba(216,178,70,.07),transparent 30%),radial-gradient(circle at 12% 78%,rgba(154,111,24,.06),transparent 28%),#070604}
body[data-theme="iptv"] .topbar{background:#0b0906;border-color:rgba(216,178,70,.16)}
body[data-theme="iptv"] .login-card{background:linear-gradient(145deg,#1b160d,#0b0905);border-color:rgba(216,178,70,.24)}
body[data-theme="iptv"] .primary-btn{background:linear-gradient(135deg,#f0d477,#bd8e24);color:#171005}
body[data-theme="iptv"] .portal-card{background:linear-gradient(135deg,#211a0e,#0e0c08);border-color:rgba(216,178,70,.2)}
body[data-theme="iptv"] .portal-card:hover{background:linear-gradient(135deg,#302512,#151009);border-color:#d8b246}
body[data-theme="iptv"] .portal-card:before{background:#d8b246}
body[data-theme="iptv"] .portal-icon{background:#201a0f;border-color:rgba(216,178,70,.3);color:#e1ba4e}
body[data-theme="iptv"] .recent-card{background:#12100b;border-color:rgba(216,178,70,.16)}
body[data-theme="iptv"] .recent-card:hover{border-color:#d8b246;background:#1b160d}
body[data-theme="iptv"] .recent-poster i,body[data-theme="iptv"] .recent-head small,body[data-theme="iptv"] .portal-card small,body[data-theme="iptv"] .eyebrow{color:#d8b246}
body[data-theme="iptv"] .browser-head,body[data-theme="iptv"] .panel-title{background:#100d08}
body[data-theme="iptv"] .glass-panel{background:linear-gradient(180deg,#17130c,#0d0b07)!important;border-color:rgba(216,178,70,.16)}
body[data-theme="iptv"] .category-row:hover,body[data-theme="iptv"] .content-row:hover,body[data-theme="iptv"] .category-row.active,body[data-theme="iptv"] .content-row.playing{background:rgba(216,178,70,.13);color:#e6c15c}
body[data-theme="iptv"] .panel-title>span{color:#e1ba4e;border-color:rgba(216,178,70,.4)}
body[data-theme="iptv"] .inline-player{background:#020201;border:1px solid rgba(216,178,70,.12)}
body[data-theme="iptv"] .now-playing{background:repeating-linear-gradient(90deg,transparent 0,transparent 24.8%,rgba(216,178,70,.08) 25%,transparent 25.2%),#0f0d08}
body[data-theme="iptv"] .track-controls label,body[data-theme="iptv"] .auto-next,body[data-theme="iptv"] #fullscreenBtn{background:#19150d;border-color:rgba(216,178,70,.2)}
body[data-theme="iptv"]:has(.dashboard:not(.hidden)) .topbar{background:linear-gradient(180deg,#151109,#080704)}
body[data-theme="iptv"]:has(.dashboard:not(.hidden)) .account-chip{background:linear-gradient(145deg,#211a0e,#100d08);border-color:rgba(216,178,70,.3)}
body[data-theme="iptv"]:has(.dashboard:not(.hidden)) .connection-stats span{background:rgba(216,178,70,.08);border:1px solid rgba(216,178,70,.1)}
body[data-theme="iptv"] .theme-select,body[data-theme="iptv"] .language-select,body[data-theme="iptv"] .logout-btn{background:#151109;color:#e2bd55;border-color:rgba(216,178,70,.24)}

@media(max-width:900px){body[data-theme="iptv"] .glass-panel{border-radius:5px!important}body[data-theme="iptv"] .portal-card{min-height:145px}body[data-theme="iptv"] .topbar{background:#1c2142}}

@media(min-width:901px){
 body[data-theme="iptv"]:has(.dashboard:not(.hidden)) .topbar{width:190px;padding-inline:12px}
 body[data-theme="iptv"]:has(.dashboard:not(.hidden)) main,body[data-theme="iptv"]:has(.dashboard:not(.hidden)) footer{margin-left:190px}
 body[data-theme="iptv"]:has(.dashboard:not(.hidden)) .account-chip{left:10px;top:158px;width:170px;padding:13px 10px;border-radius:10px}
 body[data-theme="iptv"]:has(.dashboard:not(.hidden)) .account-details>#accountName{font-size:13px}
 body[data-theme="iptv"]:has(.dashboard:not(.hidden)) .account-details>#expiryText{font-size:9px;line-height:1.7;color:#b8d2df}
 body[data-theme="iptv"]:has(.dashboard:not(.hidden)) .connection-stats{gap:6px;margin-top:9px;padding-top:9px}
 body[data-theme="iptv"]:has(.dashboard:not(.hidden)) .connection-stats span{padding:6px 5px;gap:4px;background:rgba(255,255,255,.065)}
 body[data-theme="iptv"]:has(.dashboard:not(.hidden)) .connection-stats i{font-size:8px;color:#b6cfdd}
 body[data-theme="iptv"]:has(.dashboard:not(.hidden)) .connection-stats strong{font-size:12px}
}
