
html,body{margin:0;background:#08090c;color:#f5f5f5;font-family:Tahoma,Arial,sans-serif;font-size:18px;min-height:100%}
*{box-sizing:border-box}
button,input,select{font:inherit}
button,input,select{outline:none}
body{overflow-x:hidden}
#app{min-height:100vh}
.topbar{min-height:78px;padding:12px 3.5%;display:flex;align-items:center;position:relative;z-index:10;background:#10131a;border-bottom:1px solid #252b36;gap:10px}
.brand{font-size:27px;font-weight:bold;color:#fff;white-space:nowrap}
.brand b{color:#e50914}
.nav{display:flex;align-items:center;margin-right:34px;gap:8px}
.navBtn,.modeBtn{border:0;background:transparent;color:#a9abb3;padding:10px 13px;border-radius:7px;cursor:pointer}
.navBtn.on{color:#fff;font-weight:bold;background:#322029;box-shadow:inset 0 -2px #e50914}
.navBtn:hover,.modeBtn:hover{color:#fff;background:#252b35}
.navBtn:focus,.modeBtn:focus,.search:focus,.card:focus,.heroBtn:focus,.source:focus,.refreshBtn:focus,.closePlayer:focus{box-shadow:0 0 0 3px #fff}
.topRight{margin-right:auto;display:flex;align-items:center;gap:10px}
.status{font-size:13px;color:#8d9099;white-space:nowrap}
.source{background:#15171d;color:#eee;border:1px solid #2a2d36;border-radius:7px;padding:8px 10px}
.search{width:270px;background:#111319;color:#fff;border:1px solid #2b2f38;border-radius:7px;padding:10px 13px}
.search::placeholder{color:#777b85}

.hero{height:330px;margin:20px 3.5% 30px;position:relative;overflow:hidden;border-radius:15px;background:#11141b;border:1px solid #303643}
.heroBg{position:absolute;inset:0;background:linear-gradient(90deg,#0d0f14 0%,#121723 42%,#202a3d 100%)}
.heroBg.t1{background:linear-gradient(90deg,#0c0d11,#22131d,#421824)}
.heroBg.t2{background:linear-gradient(90deg,#0c0d11,#101b2b,#163c58)}
.heroBg.t3{background:linear-gradient(90deg,#0c0d11,#14231e,#1d4a3d)}
.heroBg.t4{background:linear-gradient(90deg,#0c0d11,#211b10,#514017)}
.heroBg.t5{background:linear-gradient(90deg,#0c0d11,#21152b,#4c2468)}
.heroShade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,9,12,.98) 0%,rgba(8,9,12,.72) 44%,rgba(8,9,12,.10) 100%)}
.heroContent{position:absolute;right:5%;top:50%;transform:translateY(-50%);width:48%;z-index:2}
.heroLogo{width:120px;height:84px;object-fit:contain;display:none;margin-bottom:12px;background:#fff;border-radius:10px;padding:6px}
.heroKicker{color:#e50914;font-size:14px;font-weight:bold;margin-bottom:8px}
.heroTitle{font-size:42px;line-height:1.2;font-weight:bold;margin:0 0 10px}
.heroMeta{color:#b7bac2;font-size:15px;margin-bottom:16px}
.heroText{color:#c8cad0;font-size:16px;line-height:1.8;max-width:640px}
.heroActions{margin-top:22px;display:flex;gap:10px}
.heroBtn{border:0;border-radius:7px;padding:12px 22px;cursor:pointer;font-weight:bold}
.heroBtn.play{background:#fff;color:#111}
.heroBtn.secondary{background:#292c33;color:#fff}
.heroLive{position:absolute;left:26px;bottom:24px;color:#fff;font-size:13px;background:#e50914;padding:7px 10px;border-radius:5px}

.playerWrap{display:none;width:68%;max-width:1040px;min-width:680px;margin:0 auto 28px;background:#000;border-radius:13px;overflow:hidden;border:1px solid #24262d}
.playerWrap.on{display:block}
video{display:block;width:100%;height:auto;aspect-ratio:16/9;background:#000}
.playerBar{background:#12141a;padding:10px 14px;color:#aeb2bb;font-size:13px;display:flex;align-items:center}
.playerBar span:last-child{margin-right:auto}
.closePlayer{background:#242730;color:#fff;border:0;border-radius:6px;padding:7px 11px;cursor:pointer}
.streamState{margin-right:12px;color:#8fd8b0;font-size:12px}
.streamState.warn{color:#f0c46b}
.streamState.bad{color:#ff8b8b}

.content{padding:0 0 48px}
.row{margin-bottom:30px}
.row.recentRow .rowTitle{color:#fff}
.row.recentRow .rowTitle:before{content:"◷";color:#e50914;margin-left:9px;font-size:26px}
.rowTitle{font-size:21px;font-weight:bold;margin:0 3.5% 10px;display:flex;align-items:center}
.rowTitle small{font-size:12px;color:#777d88;margin-right:10px;font-weight:normal}
.rail{display:flex;gap:10px;overflow-x:auto;overflow-y:hidden;padding:3px 3.5% 12px;direction:rtl;scroll-behavior:smooth;scrollbar-color:#555b68 #15171d;scrollbar-width:thin;cursor:grab}
.rail:active{cursor:grabbing}
.rail::-webkit-scrollbar{height:8px}
.rail::-webkit-scrollbar-track{background:#15171d;border-radius:8px}
.rail::-webkit-scrollbar-thumb{background:#555b68;border-radius:8px}
.card{width:224px;height:126px;flex:0 0 224px;border:1px solid #333947;border-radius:10px;position:relative;overflow:hidden;color:#fff;text-align:right;cursor:pointer;padding:0;background:#171a21;transition:transform .15s ease,border-color .15s ease}
.card:hover,.card:focus{border-color:#e9656c}
.cardLogo{position:absolute;left:12px;right:12px;top:10px;height:68px;width:calc(100% - 24px);object-fit:contain;object-position:center;z-index:1}
.cardLogoShade{position:absolute;inset:0;background:linear-gradient(0deg,rgba(4,5,7,.92) 0%,rgba(4,5,7,.30) 50%,rgba(4,5,7,.05) 100%);z-index:2}
.cardInner{position:absolute;inset:0;padding:14px;display:flex;flex-direction:column;justify-content:flex-end;z-index:3}
.card.t1{background:linear-gradient(135deg,#301019,#8a2036)}
.card.t2{background:linear-gradient(135deg,#0d2437,#17638e)}
.card.t3{background:linear-gradient(135deg,#11291f,#247555)}
.card.t4{background:linear-gradient(135deg,#30250c,#936f12)}
.card.t5{background:linear-gradient(135deg,#27122f,#75418f)}
.card.t0{background:linear-gradient(135deg,#171a21,#303744)}
.cardName{font-size:17px;font-weight:bold;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cardMeta{font-size:11px;color:#c0c3ca;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card:focus,.card:hover{transform:scale(1.05);z-index:3}
.card:focus .cardInner,.card:hover .cardInner{background:linear-gradient(0deg,rgba(4,5,7,.96),rgba(4,5,7,.02) 80%)}
.empty{margin:30px 3.5%;padding:38px;background:#12141a;border-radius:10px;color:#9296a0;text-align:center}
.footer{margin:18px 3.5% 30px;padding:20px 24px;background:#151a23;border:1px solid #303744;border-radius:12px;color:#aeb5c0;font-size:14px;display:flex;gap:18px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.refreshPanel{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.refreshBtn{background:#e50914;color:#fff;border:0;border-radius:9px;padding:12px 18px;font-weight:bold;cursor:pointer}
.refreshBtn:hover{background:#ff2630}
.refreshBtn:disabled{opacity:.55;cursor:wait}
.refreshNote{font-size:13px;color:#aeb5c0}
.badge{position:absolute;left:9px;top:9px;background:rgba(0,0,0,.55);padding:4px 7px;border-radius:4px;font-size:10px}

@media(max-width:1100px){
  .search{width:200px}
  .hero{height:330px}
  .heroTitle{font-size:38px}
  .card{width:200px;flex-basis:200px;height:112px}
}
@media(max-width:760px){
  .playerWrap{width:94%;min-width:0}
  .topbar{height:auto;padding-top:12px;padding-bottom:12px;flex-wrap:wrap}
  .nav{order:3;width:100%;margin:8px 0 0}
  .topRight{margin-right:auto}
  .status{display:none}
  .hero{height:350px}
  .heroContent{width:82%}
  .heroTitle{font-size:34px}
  .heroText{font-size:14px}
}

/* IPTV 1 · 2026 refresh */
:root{color-scheme:dark}body{background:#0b1018;color:#eef4fa;font-size:20px}button,input,select{min-height:48px}button{touch-action:manipulation}.topbar{padding:20px 4%;flex-wrap:wrap;background:#101823;border-bottom:1px solid #283546;gap:18px}.brand{font-size:28px}.brand b{color:#48d6bd}.brand small{display:block;color:#869bad;font-size:12px;font-weight:normal;margin-top:7px}.nav{order:3;width:100%;margin:0;gap:10px;overflow-x:auto;padding:5px 3px}.navBtn{white-space:nowrap;border:1px solid #2b3a49;background:#172330;padding:12px 22px;color:#b4c3cf;border-radius:30px}.navBtn.on{background:#4ad9be;color:#08241f;box-shadow:none;border-color:#4ad9be}.search{width:310px;background:#0b111a;border:1px solid #3b4b5b;padding:14px 18px;border-radius:12px}.source{border-radius:12px;max-width:270px}.status{color:#90b4a9}.hero{height:240px;margin:24px 4% 30px;border:1px solid #2c454b;border-radius:22px;background:#142829}.heroBg,.heroBg.t1,.heroBg.t2,.heroBg.t3,.heroBg.t4,.heroBg.t5{background:radial-gradient(ellipse at 5% 10%,#265b56,transparent 65%),linear-gradient(110deg,#18393b,#102027)}.heroShade{background:linear-gradient(270deg,#101e28 12%,transparent 100%)}.heroContent{width:88%;right:4%;padding-left:180px}.heroLogo{position:absolute;left:0;top:10px;width:140px;height:130px;background:#eff5f1;padding:14px;border-radius:20px}.heroTitle{font-size:34px}.heroText{font-size:14px;line-height:1.7;color:#9eb4be}.heroMeta{margin-bottom:8px}.heroKicker{color:#4ad9be}.heroActions{margin-top:15px}.heroBtn{border-radius:10px;padding:12px 20px;font-size:17px}.heroBtn.play{background:#4ad9be;color:#0a2520}.heroBtn.secondary{background:#263b46;border:1px solid #3c5663}.heroLive{left:26px;top:20px;bottom:auto;background:#2a524c;color:#aef3dc;letter-spacing:2px}.browseTitle{margin:0 4% 20px;display:flex;align-items:end;justify-content:space-between}.eyebrow{font-size:12px;letter-spacing:1px;color:#6f8d9c}.browseTitle h2{font-size:28px;margin:7px 0}.browseTitle>span{font-size:14px;color:#9aafbe}.row{margin-bottom:32px}.rowTitle{margin:0 4% 12px;font-size:20px;gap:8px}.rowTitle small{color:#7f99ac}.rowActions{display:flex;gap:8px;margin-right:auto}.railNav{border:1px solid #35495a;background:#1a2b39;color:#d5e5ed;min-width:48px;border-radius:50%;cursor:pointer;font-size:25px}.rail{padding:8px 4% 18px;gap:16px;scroll-snap-type:x proximity;scrollbar-color:#395565 #111e29}.card,.card.t0,.card.t1,.card.t2,.card.t3,.card.t4,.card.t5{width:228px;flex-basis:228px;height:172px;background:#152331;border:1px solid #304455;border-radius:16px;scroll-snap-align:start;transition:transform .16s,border-color .16s}.cardLogo{height:70px;top:20px;padding:4px;filter:drop-shadow(0 2px 4px #0005)}.cardLogoShade{background:linear-gradient(0deg,#12202f 0%,transparent 68%)}.cardInner{padding:16px}.cardName{font-size:18px}.cardMeta{font-size:12px;color:#91a9bb}.badge{top:8px;left:9px;background:#253e4b;font-size:10px;color:#b4d5d5}.card:focus,.card:hover{transform:translateY(-4px);border-color:#4ad9be}.card:focus,.navBtn:focus,.heroBtn:focus,.railNav:focus,.closePlayer:focus,.search:focus,.source:focus,.refreshBtn:focus{outline:3px solid #9cf5de;outline-offset:3px;box-shadow:none}.card:focus .cardInner,.card:hover .cardInner{background:none}.row.recentRow .rowTitle:before{color:#4ad9be}.playerWrap{width:92%;max-width:1400px;min-width:0;border-color:#395a68;box-shadow:0 16px 70px #0005}.playerBar{gap:12px;flex-wrap:wrap;padding:16px;font-size:15px}.playerBar .closePlayer{font-size:14px;padding:10px 15px}.footer{margin:10px 4% 35px;border-radius:20px;background:#111e2a;border-color:#2a4050;padding:28px}.footer strong{color:#e3edf4}.footer p{font-size:12px}.refreshBtn{background:#4ad9be;color:#08251e}.refreshBtn:hover{background:#82edcd}.refreshNote{max-width:420px;line-height:1.8}.empty{padding:28px;line-height:1.8;background:#152331;color:#9db2c1}
@media(min-width:1600px){body{font-size:23px}.card,.card.t0,.card.t1,.card.t2,.card.t3,.card.t4,.card.t5{width:270px;flex-basis:270px;height:196px}.cardName{font-size:21px}.hero{height:280px}.heroTitle{font-size:42px}}
@media(max-width:850px){.topRight{flex-wrap:wrap;width:100%;margin:0}.search{flex:1;width:100%;min-width:180px}.source{max-width:100%;font-size:14px}.hero{height:280px}.heroContent{width:92%;padding-left:0}.heroLogo{display:none!important}.heroTitle{font-size:28px}.heroText{max-width:100%}.heroActions{flex-wrap:wrap}.heroBtn{font-size:14px;padding:10px 12px}.card,.card.t0,.card.t1,.card.t2,.card.t3,.card.t4,.card.t5{width:182px;flex-basis:182px;height:158px}.heroLive{display:none}.playerWrap{width:94%}.status{display:block}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

