/*
Theme Name: START ON TV IPTV
Theme URI: https://startontv.sbs/
Description: START ON TV IPTV theme with integrated functional admin panel.
Version: 3.0.0
Author: START ON TV
*/
*{box-sizing:border-box}body{margin:0;background:#050d18;color:#eef4ff;font-family:Inter,Arial,sans-serif}a{color:inherit;text-decoration:none}.hidden{display:none!important}.topbar{height:72px;display:flex;align-items:center;padding:0 4%;gap:30px;background:#071321;border-bottom:1px solid #142337;position:sticky;top:0;z-index:5}.brand{font-size:20px;font-weight:800;white-space:nowrap}.brand-mark{display:inline-grid;place-items:center;background:#f33b45;border-radius:8px;width:28px;height:28px;margin-right:8px;font-size:13px}.accent{color:#ff414b}.topbar nav{display:flex;gap:20px;font-size:14px;flex:1}.topbar nav a{color:#b7c3d4}.topbar nav a:hover{color:#fff}.top-actions{display:flex;gap:8px}.top-actions button,.primary,.ghost,.plans button{border:0;border-radius:7px;padding:10px 14px;background:#15253a;color:#fff;cursor:pointer}.primary{background:#ff3e48;font-weight:700}.ghost{border:1px solid #29405a}.hero{min-height:430px;display:flex;align-items:center;padding:50px 6%;background:linear-gradient(90deg,#071321 10%,rgba(7,19,33,.85) 43%,rgba(7,19,33,.15)),radial-gradient(circle at 78% 40%,#2b5074,#10243b 35%,#071321 70%)}.hero-copy{max-width:570px}.pill{font-size:11px;background:#ff3e48;padding:7px 10px;border-radius:20px;font-weight:800}.hero h1{font-size:48px;line-height:1.08;margin:18px 0 12px}.hero p{color:#aebdce;line-height:1.6}.large{padding:13px 24px;margin-top:12px}.section{padding:28px 5%}.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.section h2{font-size:21px}.section-head a{font-size:13px;color:#ff5a62}.channel-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}.channel{background:#0d1c2e;border:1px solid #1a2c42;border-radius:9px;padding:14px;min-height:112px;display:flex;flex-direction:column;justify-content:space-between;cursor:pointer}.channel:hover{border-color:#ff414b;transform:translateY(-2px)}.logo{height:48px;border-radius:7px;background:linear-gradient(135deg,#243c59,#0b1624);display:grid;place-items:center;font-size:18px;font-weight:800}.channel small{color:#8ea0b5}.live{font-size:10px;color:#fff;background:#f13b45;padding:4px 7px;border-radius:5px;align-self:flex-start}.category-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:12px}.category{background:#0d1c2e;border:1px solid #192d43;border-radius:9px;padding:20px 8px;text-align:center;color:#8ed1ff;font-size:23px;cursor:pointer}.category b{display:block;color:#dfe8f3;font-size:12px;margin-top:9px}.guide{border:1px solid #172b41;border-radius:10px;overflow:hidden}.guide-row{padding:16px 18px;display:grid;grid-template-columns:1fr 2fr auto;gap:20px;background:#0b1929;border-bottom:1px solid #172b41}.guide-row span{color:#94a6ba}.guide-row b{font-size:10px;color:#ff5960}.toolbar{display:flex;gap:10px;margin-bottom:18px}.toolbar input,.toolbar select,input,textarea,select{padding:12px;background:#071321;border:1px solid #263a50;color:#fff;border-radius:6px}textarea{min-height:120px;resize:vertical}.toolbar input{flex:1}.settings-card,.empty-card{background:#0b1929;border:1px solid #182d43;border-radius:10px;padding:24px;max-width:700px}.settings-card label{display:flex;justify-content:space-between;padding:15px 0;border-bottom:1px solid #182d43}.form{display:grid;gap:12px;max-width:650px}.success{color:#57d99a}.overlay{position:fixed;inset:0;background:rgba(0,0,0,.78);z-index:20;display:grid;place-items:center;padding:20px}.player-box{width:min(1000px,96vw);position:relative}.dialog,.search-box{width:min(560px,95vw);background:#0b1929;border:1px solid #29405a;border-radius:12px;padding:25px;position:relative}.search-box input{width:100%}.search-result{padding:12px;border-bottom:1px solid #1b3045;cursor:pointer}.close{position:absolute;right:12px;top:8px;background:none;border:0;color:#fff;font-size:28px;cursor:pointer}.video-placeholder{aspect-ratio:16/9;background:#02060b;border:1px solid #263a52;display:grid;place-items:center;text-align:center;padding:20px}.video-placeholder span{font-size:54px;color:#ff414b}.video-placeholder p{margin:0}.plans{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.plans button:hover{background:#ff3e48}footer{padding:25px 5%;border-top:1px solid #142337;display:flex;justify-content:space-between;color:#8497ab}footer div{display:flex;gap:18px}.admin-body{display:flex}.sidebar{width:240px;min-height:100vh;background:#071321;border-right:1px solid #17283d;padding:25px 14px}.sidebar .brand{margin:0 10px 30px}.sidebar a{display:block;padding:13px 14px;margin:4px 0;border-radius:7px;color:#9bacbf}.sidebar a.active,.sidebar a:hover{background:#ff3e48;color:#fff}.admin-main{flex:1;padding:28px 4%}.admin-head{display:flex;justify-content:space-between}.admin-head span{color:#9aabc0}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:25px 0}.stats>div,.panel{background:#0b1929;border:1px solid #182d43;border-radius:10px;padding:20px}.stats small{display:block;color:#8da0b5}.stats strong{display:block;font-size:25px;margin-top:8px}.admin-columns{display:grid;grid-template-columns:1.2fr 1fr;gap:18px}.panel h2{margin-top:0;font-size:18px}.admin-item{padding:13px;border-bottom:1px solid #172b41;display:flex;justify-content:space-between}.admin-item button{background:#172b41;color:#fff;border:0;border-radius:5px;padding:5px 8px}@media(max-width:900px){.topbar nav{display:none}.hero h1{font-size:35px}.channel-grid{grid-template-columns:repeat(3,1fr)}.category-grid{grid-template-columns:repeat(4,1fr)}.stats{grid-template-columns:repeat(2,1fr)}.admin-columns{grid-template-columns:1fr}}@media(max-width:600px){.topbar{padding:0 16px}.hero{min-height:390px;padding:35px 22px}.section{padding:22px 16px}.channel-grid{grid-template-columns:repeat(2,1fr)}.category-grid{grid-template-columns:repeat(4,1fr)}.category{padding:12px 4px}.guide-row{grid-template-columns:1fr;gap:6px}.sidebar{display:none}.admin-main{padding:20px 16px}.stats{grid-template-columns:1fr 1fr}.stats strong{font-size:19px}footer{display:block}footer div{margin-top:12px;flex-wrap:wrap}.top-actions button:not(.primary){display:none}}
.wp-admin .notice, .wp-admin .update-nag{display:block}
/* Inline Live TV player: player + channel list on the same screen */
.live-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(300px,1fr);gap:18px;align-items:start}.inline-player{background:#0b1929;border:1px solid #1a2c42;border-radius:10px;overflow:hidden;position:sticky;top:90px}.inline-player-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;background:#0d1c2e;border-bottom:1px solid #1a2c42}.inline-player-head div{display:flex;gap:7px}.inline-video{aspect-ratio:16/9;position:relative;padding:0!important}.inline-video video{width:100%;height:100%;object-fit:contain;background:#000;display:none}.inline-player:not(.player-empty) .inline-video video{display:block}.inline-player.player-empty .inline-video{display:grid}.inline-player.player-empty #inlinePlayerFallback{display:grid}.inline-player:not(.player-empty) #inlinePlayerFallback{display:none}.inline-player #inlinePlayerFallback{position:absolute;inset:0;place-items:center;text-align:center;align-content:center;background:#02060b}.inline-player #inlinePlayerFallback span{font-size:45px;color:#ff414b}.live-channel-panel{background:#081625;border:1px solid #1a2c42;border-radius:10px;padding:14px;max-height:650px;overflow:auto}.live-channel-panel h3{margin:0 0 12px}.live-channel-panel .channel-grid{grid-template-columns:repeat(2,1fr);gap:9px}.live-channel-panel .channel{min-height:105px;padding:10px}.live-channel-panel .channel.selected{border-color:#ff414b;box-shadow:0 0 0 1px #ff414b inset}.live-channel-panel .logo{height:42px}.live-channel-panel .channel strong{font-size:13px}.live-channel-panel .channel small{font-size:10px}.live-channel-panel .fav{padding:5px 8px}@media(max-width:1000px){.live-layout{grid-template-columns:1fr}.inline-player{position:relative;top:auto}.live-channel-panel{max-height:none}.live-channel-panel .channel-grid{grid-template-columns:repeat(4,1fr)}}@media(max-width:600px){.live-channel-panel .channel-grid{grid-template-columns:repeat(2,1fr)}.inline-player-head{align-items:flex-start;flex-direction:column}}

/* Compact Live TV side channel list */
.live-channel-panel{max-height:650px;overflow-y:auto;overflow-x:hidden}
.live-channel-panel .channel-grid{display:grid;grid-template-columns:1fr!important;gap:8px!important}
.live-channel-panel .channel{min-height:76px!important;height:76px;padding:8px 10px!important;display:grid!important;grid-template-columns:58px minmax(0,1fr) auto;grid-template-rows:1fr auto;column-gap:9px;align-items:center;position:relative}
.live-channel-panel .channel .logo{grid-column:1;grid-row:1 / span 2;width:58px;height:56px!important;min-width:58px;border-radius:6px;overflow:hidden;background:#091522}
.live-channel-panel .channel .logo img{display:block;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important}
.live-channel-panel .channel strong{grid-column:2;grid-row:1;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px!important;line-height:1.2}
.live-channel-panel .channel small{grid-column:2;grid-row:2;font-size:10px!important;color:#a9c2d9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.live-channel-panel .channel .live{grid-column:3;grid-row:1;align-self:start;font-size:8px;padding:3px 5px}
.live-channel-panel .channel .fav{grid-column:3;grid-row:2;padding:2px 7px!important;font-size:12px;min-width:28px}
.live-channel-panel .channel::before{content:'CH ' attr(data-no);position:absolute;left:6px;top:6px;z-index:2;background:#ff3e48;color:#fff;border-radius:3px;padding:2px 4px;font-size:8px;font-weight:700;line-height:1}
.live-channel-panel .channel.selected{border-color:#ff414b!important;box-shadow:0 0 0 1px #ff414b inset}
@media(max-width:1000px){.live-channel-panel .channel-grid{grid-template-columns:repeat(2,1fr)!important}.live-channel-panel .channel{height:82px!important}}
@media(max-width:600px){.live-channel-panel .channel-grid{grid-template-columns:1fr!important}.live-channel-panel .channel{height:76px!important}}
