:root{--bg:#f7f8fc;--card:#fff;--text:#111827;--muted:#6b7280;--line:#e5e7eb;--brand:#2563eb;--brand2:#7c3aed;--gold:#f59e0b}
*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text)}a{text-decoration:none;color:var(--brand)}img{max-width:100%;display:block}button,input,select,textarea{font:inherit}button{cursor:pointer}.desktop-shell{display:flex;min-height:100vh}.sidebar{width:260px;background:#fff;border-right:1px solid var(--line);padding:18px;position:sticky;top:0;height:100vh;transition:.25s;overflow:auto}.side-head{display:flex;gap:12px;align-items:center;margin-bottom:20px}.site-logo,.header-logo{width:42px;height:42px;border-radius:12px}.site-title{font-weight:800}.small{font-size:12px}.side-nav{display:grid;gap:8px}.side-nav a{padding:12px 14px;border-radius:14px;color:#374151}.side-nav a:hover,.admin-sidebar a.active{background:#eef2ff;color:#111827}.main-wrap{flex:1;max-width:1200px;margin:0 auto;padding-bottom:90px}.topbar{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.92);backdrop-filter:blur(12px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:12px 16px}.left-group{display:flex;align-items:center;gap:10px}.hamburger{display:none;border:none;background:#eef2ff;border-radius:12px;padding:10px}.profile-btn{width:42px;height:42px;border-radius:999px;overflow:hidden;background:linear-gradient(135deg,var(--brand),var(--brand2));display:grid;place-items:center;color:#fff;font-weight:800}.profile-btn img,.avatar-xl img{width:100%;height:100%;object-fit:cover}.page{padding:16px}.player-card,.card{background:var(--card);border:1px solid var(--line);border-radius:22px;padding:16px;box-shadow:0 10px 30px rgba(17,24,39,.04)}.player-frame{aspect-ratio:16/9;background:#000;border-radius:18px;overflow:hidden}.player-meta,.section-head,.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-head h1,.section-head h2,.section-head h3,h1,h2,h3{margin:0}.muted{color:var(--muted)}.h-scroll{display:flex;gap:10px;overflow:auto;padding:4px 0 8px}.chip{padding:10px 14px;border-radius:999px;background:#fff;border:1px solid var(--line);white-space:nowrap;color:#111827}.category-block{margin-top:16px}.channel-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.channel-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:10px;text-align:center}.paid-ring{border:1px solid #f8d88b;box-shadow:0 0 0 2px rgba(245,158,11,.15) inset}.logo-wrap{position:relative;width:64px;height:64px;border-radius:999px;overflow:hidden;border:1px solid var(--line);margin:0 auto;background:#f8fafc}.logo-wrap img{width:100%;height:100%;object-fit:cover}.crown{position:absolute;right:-2px;top:-3px}.title{font-size:12px;line-height:1.35;margin-top:8px;min-height:32px}.pill{padding:7px 12px;border-radius:999px;font-size:12px;font-weight:700}.pill.free{background:#ecfeff;color:#155e75}.pill.premium{background:#fffbeb;color:#92400e}.flash{margin:16px;padding:12px 14px;border-radius:16px}.flash.success{background:#ecfdf5;border:1px solid #a7f3d0}.flash.error{background:#fef2f2;border:1px solid #fecaca}.bottom-nav{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr);padding:8px 8px calc(env(safe-area-inset-bottom) + 8px);z-index:30}.bottom-nav a{display:grid;place-items:center;gap:4px;color:#374151;padding:8px 0;border-radius:14px}.bottom-nav small{font-size:11px}.auth-page{display:grid;place-items:center;min-height:calc(100vh - 180px)}.auth-card{width:min(100%,420px)}.form-stack,.form-grid{display:grid;gap:12px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid .full{grid-column:1/-1}.form-stack input,.form-stack select,.form-stack textarea,.form-grid input,.form-grid select,.form-grid textarea{width:100%;padding:12px 14px;border-radius:14px;border:1px solid var(--line);background:#fff}.btn{display:inline-flex;align-items:center;justify-content:center;padding:11px 16px;border-radius:14px;border:1px solid var(--line);background:#fff;color:#111827}.btn.primary{background:linear-gradient(135deg,var(--brand),var(--brand2));border:none;color:#fff}.btn.whatsapp{background:#25d366;color:#fff;border:none;margin-top:10px}.two-col,.admin-grid,.plan-grid,.stats-grid{display:grid;gap:16px}.two-col,.admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.plan-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.profile-top{display:flex;gap:16px;align-items:center}.avatar-xl{width:88px;height:88px;border-radius:999px;overflow:hidden;background:linear-gradient(135deg,var(--brand),var(--brand2));display:grid;place-items:center;color:#fff;font-size:32px;font-weight:800}.coupon-box{display:flex;gap:10px;align-items:center;justify-content:space-between;background:#f8fafc;border:1px dashed #cbd5e1;padding:12px 14px;border-radius:14px}.search-bar{display:flex;gap:10px}.search-bar input{flex:1}.mt-12{margin-top:12px}.modal{position:fixed;inset:0;background:rgba(17,24,39,.45);display:none;align-items:center;justify-content:center;padding:16px;z-index:50}.modal.open{display:flex}.modal-card{background:#fff;padding:24px;border-radius:24px;max-width:360px;width:100%;border:1px solid var(--line)}
.admin-body{background:#f3f6fb}.admin-layout{display:flex;min-height:100vh}.admin-sidebar{width:260px;padding:18px;background:#111827;color:#fff}.admin-sidebar h2{margin-top:0}.admin-sidebar a{display:block;color:#d1d5db;padding:11px 12px;border-radius:12px;margin-bottom:6px}.admin-main{flex:1;padding:18px}.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.stat-card{background:#fff;border:1px solid var(--line);padding:18px;border-radius:20px}.stat-card span,.stat-card small{display:block;color:var(--muted)}.stat-card strong{display:block;font-size:28px;margin-top:8px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{padding:12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.inline-form{display:flex;gap:8px;align-items:center}.inline-form select{padding:8px;border-radius:10px;border:1px solid var(--line)}
@media (max-width: 1024px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 768px){.sidebar{position:fixed;left:-270px;z-index:40}.sidebar.open{left:0}.hamburger{display:inline-block}.channel-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.desktop-shell{display:block}.main-wrap{padding-bottom:92px}.two-col,.admin-grid,.form-grid,.plan-grid{grid-template-columns:1fr}.admin-layout{display:block}.admin-sidebar{width:auto;position:sticky;top:0;z-index:20}.bottom-nav{display:grid}}
@media (min-width: 769px){.bottom-nav{display:none}.sidebar:hover{width:280px}}

.no-sidebar-shell{display:block}
.full-width{max-width:1200px;margin:0 auto;padding-bottom:90px}
.header-nav{display:flex;gap:10px;align-items:center}
.header-nav a{padding:10px 14px;border-radius:12px;color:#374151}
.header-nav a:hover{background:#eef2ff;color:#111827}
@media (max-width: 768px){.header-nav{display:none}}
@media (min-width: 769px){.sidebar,.hamburger{display:none !important}.main-wrap{padding-bottom:24px}.topbar{gap:16px}.header-nav{margin-left:auto;margin-right:8px}}

.icon{display:inline-flex;width:18px;height:18px;vertical-align:middle;color:#4f46e5;flex:none}.icon svg{width:100%;height:100%}.profile-fallback{color:#fff;width:20px;height:20px}.pill-icon{width:14px;height:14px;color:currentColor}.header-nav a,.bottom-nav a,.admin-sidebar a{display:inline-flex;align-items:center;gap:8px}.bottom-nav a{flex-direction:column}.admin-sidebar a{display:flex}.topbar{padding:10px 16px}.player-card{padding:12px;border-radius:18px;box-shadow:0 6px 18px rgba(17,24,39,.04)}.player-frame{border-radius:14px}.player-meta{margin-top:10px}.player-meta h1{font-size:14px;font-weight:700}.player-meta .muted{font-size:12px}.pill{padding:6px 10px}.channel-card{border-radius:18px}.crown{position:absolute;right:-3px;top:-3px;width:20px;height:20px;display:grid;place-items:center;color:#d97706;background:#fff7ed;border:1px solid #fed7aa;border-radius:999px}.bottom-nav .icon{width:20px;height:20px}.header-nav .icon{width:17px;height:17px}.admin-sidebar .icon{color:#a5b4fc}.admin-sidebar a.active .icon,.admin-sidebar a:hover .icon{color:#fff}.admin-sidebar a span{display:inline-block}.profile-btn .icon{width:18px;height:18px}.profile-btn span{display:grid;place-items:center}
@media (max-width: 1024px){.header-nav{display:none}.main-wrap{padding-bottom:92px}}
@media (min-width: 1025px){.bottom-nav{display:none}.main-wrap{padding-bottom:24px}}

.level-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;font-size:12px;font-weight:700}.level-badge.free-only{background:#ecfeff;color:#155e75}.level-badge.premium-only{background:#fffaf0;color:#b7791f;border:1px solid #f6d18a}.drop-upload{border:1px dashed #cbd5e1;border-radius:16px;padding:16px;background:#fafafa;min-height:120px;display:flex;flex-direction:column;justify-content:center;gap:8px}.drop-upload input{margin-top:8px}.search-suggestions{display:grid;gap:12px}.search-item{display:grid;grid-template-columns:64px 1fr;align-items:center;gap:12px;padding:12px;background:#fff;border:1px solid var(--line);border-radius:18px;text-align:left}.search-item strong{display:block}.search-item small{display:block;color:var(--muted);margin-top:4px}.modern-plans .modern-card{position:relative;overflow:hidden;border:1px solid #e7d7ff;background:linear-gradient(180deg,#ffffff,#faf7ff)}.modern-plans .modern-card::before{content:"";position:absolute;inset:0 auto auto 0;width:100%;height:4px;background:linear-gradient(90deg,var(--brand),var(--brand2))}.plan-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.price{font-size:30px;font-weight:800;color:#111827}.plan-duration{display:inline-flex;padding:6px 10px;border-radius:999px;background:#eef2ff;color:#4338ca;font-size:12px;margin-top:6px}.channel-form input,.channel-form select,.channel-form textarea{padding:10px 12px}.channel-form .btn{padding:10px 14px}.coupon-split{display:grid;gap:16px}.admin-mobile-top{display:none}.admin-menu-btn{display:none;align-items:center;gap:8px;border:1px solid var(--line);background:#fff;padding:10px 14px;border-radius:14px}.admin-menu-btn .icon{color:#4f46e5}@media (max-width:768px){.admin-mobile-top{display:flex;position:sticky;top:0;z-index:35;padding:12px;background:#f3f6fb;border-bottom:1px solid var(--line)}.admin-menu-btn{display:inline-flex}.admin-layout{display:block}.admin-sidebar{position:fixed;left:-280px;top:0;bottom:0;width:260px;z-index:40;overflow:auto;transition:.25s}.admin-sidebar.open{left:0}.admin-main{padding:16px}.coupon-split{grid-template-columns:1fr}.search-item{grid-template-columns:56px 1fr}}@media (min-width:769px){.admin-sidebar{position:sticky;left:0}}


.player-shell{margin-bottom:10px}
.player-shell .player-frame{width:100%}
.full-bleed-player{border-radius:24px;background:#000;overflow:hidden;position:relative}
.player-card{background:transparent;border:none;box-shadow:none;padding:0}
.player-meta{display:none !important}
.icon-only-grid{grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:16px}
.channel-card.icon-only{background:transparent;border:none;padding:0;box-shadow:none}
.channel-card.icon-only .title{display:none}
.channel-card.icon-only .logo-wrap{width:68px;height:68px;border:none;background:transparent;overflow:visible}
.channel-card.icon-only.paid-ring .logo-wrap{border:2px solid var(--gold);box-shadow:0 0 0 5px rgba(245,158,11,.14)}
.channel-card.icon-only .logo-wrap img{border-radius:999px;object-fit:cover;background:#fff}
.channel-card.icon-only .crown{top:-8px;right:-2px;width:22px;height:22px;background:linear-gradient(180deg,#fff7cc,#f7b731);border:1px solid #e0a21d;color:#9a6700;box-shadow:0 8px 18px rgba(245,158,11,.28)}
.player-overlay{position:absolute;left:18px;bottom:18px;max-width:72%;padding:8px 12px;border-radius:999px;background:rgba(15,23,42,.55);backdrop-filter:blur(8px);color:#fff;font-weight:700;font-size:14px;letter-spacing:.01em;opacity:0;transform:translateY(10px);transition:opacity .35s ease,transform .35s ease;pointer-events:none;z-index:6}
.player-overlay.show{opacity:1;transform:translateY(0)}
.search-page{padding-top:24px}
.search-modern-wrap{max-width:720px;margin:0 auto 12px;padding:26px;border-radius:28px;background:linear-gradient(180deg,#ffffff,#f8fbff);border:1px solid rgba(255,255,255,.7);box-shadow:0 24px 50px rgba(37,99,235,.08)}
.search-modern-head{text-align:center;margin-bottom:18px}
.search-kicker{display:inline-flex;padding:6px 12px;border-radius:999px;background:#eef2ff;color:#4338ca;font-size:12px;font-weight:700;margin-bottom:10px}
.search-modern-head h1{font-size:28px;margin-bottom:8px}
.search-modern-bar{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:22px;background:rgba(255,255,255,.88);border:1px solid #e5edff;box-shadow:0 10px 24px rgba(15,23,42,.05)}
.search-modern-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:999px;background:#eff6ff;color:#2563eb;flex:none}
.search-modern-icon .icon{width:18px;height:18px;color:currentColor}
.search-modern-bar input{width:100%;border:none;outline:none;background:transparent;font-size:16px;color:#111827}
.search-modern-results{max-width:720px;margin-left:auto;margin-right:auto}
.search-empty-state{padding:18px 20px;border-radius:20px;background:rgba(255,255,255,.8);border:1px dashed #dbe5f5;text-align:center}
.search-item{grid-template-columns:56px 1fr;gap:14px;padding:14px 16px;border-radius:22px;background:rgba(255,255,255,.92);border:1px solid #edf2fb;box-shadow:0 10px 30px rgba(15,23,42,.04)}
.search-item .logo-wrap{width:56px;height:56px;margin:0;border:none;background:transparent;overflow:visible}
.search-item .logo-wrap img{border-radius:999px;background:#fff}
.search-item.paid-ring .logo-wrap{border:2px solid var(--gold);box-shadow:0 0 0 4px rgba(245,158,11,.12)}
.bottom-nav{left:12px;right:12px;bottom:12px;background:rgba(255,255,255,.52);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.7);border-radius:24px;box-shadow:none}
.bottom-nav a{border-radius:18px}
@media (max-width:768px){
  .full-bleed-player{border-radius:20px}
  .player-overlay{left:12px;right:12px;bottom:12px;max-width:none;font-size:13px}
  .icon-only-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
  .channel-card.icon-only .logo-wrap{width:62px;height:62px}
  .search-modern-wrap{padding:22px 18px;border-radius:24px}
  .search-modern-head h1{font-size:24px}
  .search-modern-bar{padding:12px 14px;border-radius:20px}
}
@media (min-width:769px){
  .bottom-nav{display:none}
}


.h-scroll{padding:10px 10px 14px;border-radius:22px;background:linear-gradient(135deg,rgba(37,99,235,.08),rgba(124,58,237,.08),rgba(245,158,11,.12));border:1px solid transparent;background-clip:padding-box;position:relative}
.h-scroll::before{content:"";position:absolute;inset:0;border-radius:22px;padding:1px;background:linear-gradient(90deg,#60a5fa,#a78bfa,#f59e0b,#34d399);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none}
.h-scroll .chip{background:rgba(255,255,255,.92);border:1px solid rgba(255,255,255,.75);box-shadow:0 10px 24px rgba(15,23,42,.05)}
.h-scroll::-webkit-scrollbar{height:8px}
.h-scroll::-webkit-scrollbar-track{background:rgba(255,255,255,.55);border-radius:999px}
.h-scroll::-webkit-scrollbar-thumb{background:linear-gradient(90deg,#60a5fa,#8b5cf6,#f59e0b);border-radius:999px}
.h-scroll{scrollbar-width:thin;scrollbar-color:#8b5cf6 rgba(255,255,255,.55)}

/* 2026-03 sheet + category refresh */
.h-scroll-shell{position:relative;margin-top:8px;border-radius:24px;padding:1px;background:linear-gradient(90deg,#60a5fa,#8b5cf6,#f59e0b,#34d399);box-shadow:0 12px 34px rgba(37,99,235,.10)}
.h-scroll-shell .h-scroll{margin:0;padding:12px;border-radius:23px;background:linear-gradient(135deg,rgba(255,255,255,.95),rgba(248,250,255,.96));border:none}
.h-scroll-shell::after{content:"";position:absolute;inset:8px auto 8px 8px;width:56px;border-radius:18px;background:linear-gradient(90deg,rgba(247,248,252,.95),rgba(247,248,252,0));pointer-events:none;opacity:.9}
.h-scroll-shell::before{content:"";position:absolute;inset:8px 8px 8px auto;width:56px;border-radius:18px;background:linear-gradient(270deg,rgba(247,248,252,.95),rgba(247,248,252,0));pointer-events:none;opacity:.9;z-index:2}
.h-scroll{scroll-behavior:smooth}
.h-scroll .chip{position:relative;padding:10px 16px;border-radius:999px;background:#fff;border:1px solid rgba(148,163,184,.18);box-shadow:0 8px 22px rgba(15,23,42,.05)}
.h-scroll .chip:nth-child(4n+1){background:linear-gradient(180deg,#ffffff,#eff6ff)}
.h-scroll .chip:nth-child(4n+2){background:linear-gradient(180deg,#ffffff,#f5f3ff)}
.h-scroll .chip:nth-child(4n+3){background:linear-gradient(180deg,#ffffff,#fff7ed)}
.h-scroll .chip:nth-child(4n+4){background:linear-gradient(180deg,#ffffff,#ecfeff)}
.h-scroll::-webkit-scrollbar{height:7px}
.h-scroll::-webkit-scrollbar-thumb{background:linear-gradient(90deg,#60a5fa,#8b5cf6,#f59e0b,#34d399);border-radius:999px}

.search-only-wrap{max-width:720px;padding:0;border:none;background:transparent;box-shadow:none}
.search-only-wrap .search-modern-bar{box-shadow:0 16px 40px rgba(15,23,42,.08);border:1px solid #e7ecff;background:rgba(255,255,255,.94)}

.channel-card.is-active .logo-wrap,.search-item.is-active .logo-wrap{transform:scale(1.06);transition:.2s ease}
.channel-card.is-active .logo-wrap img,.search-item.is-active .logo-wrap img{box-shadow:0 0 0 4px rgba(96,165,250,.20),0 14px 26px rgba(15,23,42,.14)}

.sheet-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.24);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);opacity:0;pointer-events:none;transition:opacity .26s ease;z-index:55}
.sheet-backdrop.open{opacity:1;pointer-events:auto}
.body-lock,body.sheet-open{overflow:hidden}
.bottom-sheet{position:fixed;left:0;right:0;bottom:0;height:min(78vh,680px);background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(247,249,255,.98));border-radius:28px 28px 0 0;box-shadow:0 -24px 60px rgba(15,23,42,.18);transform:translateY(105%);transition:transform .3s ease;z-index:60;display:flex;flex-direction:column}
.bottom-sheet.open{transform:translateY(0)}
.sheet-handle{width:54px;height:6px;border-radius:999px;background:#dbe4f2;margin:10px auto 8px;flex:none}
.sheet-head{display:flex;align-items:center;justify-content:space-between;padding:0 18px 12px;border-bottom:1px solid rgba(226,232,240,.8);flex:none}.sheet-head.compact h3{margin:0;font-size:16px}.sheet-close{width:36px;height:36px;border:none;border-radius:999px;background:#eff6ff;color:#2563eb;font-size:22px;line-height:1}
.sheet-body{padding:14px 16px 20px;overflow:auto}
.sheet-search-bar{margin-bottom:14px}
.sheet-channel-groups{display:grid;gap:18px}
.sheet-category-block{display:grid;gap:10px}.sheet-category-title{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#64748b;padding:0 4px}.sheet-icon-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
@media (min-width:769px){.sheet-backdrop,.bottom-sheet{display:none !important}}
@media (max-width:768px){
  .bottom-sheet{height:62vh}
  .sheet-body{padding-bottom:28px}
  .h-scroll-shell{border-radius:22px}
  .h-scroll-shell .h-scroll{padding:10px}
}

/* 2026-03 final autoplay + sheet + category polish */
.player-frame{position:relative}
.player-loader{position:absolute;inset:0;display:grid;place-items:center;gap:8px;grid-auto-flow:column;background:radial-gradient(circle at center,rgba(2,6,23,.12),rgba(2,6,23,.38));opacity:0;pointer-events:none;transition:opacity .2s ease;z-index:5}
.player-loader.show{opacity:1}
.player-loader span{width:4px;height:26px;border-radius:999px;background:linear-gradient(180deg,#fff,#93c5fd,#fff);animation:playerPulse 1s ease-in-out infinite}
.player-loader span:nth-child(2){animation-delay:.12s}
.player-loader span:nth-child(3){animation-delay:.24s}
.player-loader span:nth-child(4){animation-delay:.36s}
@keyframes playerPulse{0%,100%{transform:scaleY(.5);opacity:.45}50%{transform:scaleY(1.1);opacity:1}}

.video-js .vjs-big-play-button{width:72px !important;height:72px !important;line-height:72px !important;border-radius:999px !important;border:1px solid rgba(255,255,255,.6) !important;background:rgba(255,255,255,.14) !important;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);inset:50% auto auto 50% !important;transform:translate(-50%,-50%);box-shadow:0 14px 34px rgba(15,23,42,.34)}
.video-js .vjs-big-play-button .vjs-icon-placeholder:before{font-size:34px !important;text-shadow:none}
.video-js:hover .vjs-big-play-button,.video-js .vjs-big-play-button:focus{background:rgba(255,255,255,.2) !important}
.video-js .vjs-control-bar{background:linear-gradient(180deg,rgba(15,23,42,0),rgba(15,23,42,.72))}

.h-scroll-shell{position:relative;margin-top:10px;border-radius:26px;padding:0;background:transparent;box-shadow:none}
.h-scroll-shell .h-scroll{display:flex;gap:12px;overflow:auto;padding:10px 0 12px;margin:0;border:none;border-radius:0;background:transparent;scroll-behavior:smooth}
.h-scroll-shell .h-scroll::before{display:none !important}
.h-scroll-shell .chip{position:relative;flex:none;padding:10px 16px 10px 36px;border:none;border-radius:999px;color:#0f172a;box-shadow:0 10px 24px rgba(15,23,42,.06);background:rgba(255,255,255,.96)}
.h-scroll-shell .chip::before{content:"";position:absolute;left:14px;top:50%;width:10px;height:10px;border-radius:999px;transform:translateY(-50%);background:linear-gradient(135deg,#60a5fa,#8b5cf6)}
.h-scroll-shell .chip:nth-child(4n+2)::before{background:linear-gradient(135deg,#8b5cf6,#ec4899)}
.h-scroll-shell .chip:nth-child(4n+3)::before{background:linear-gradient(135deg,#f59e0b,#ef4444)}
.h-scroll-shell .chip:nth-child(4n+4)::before{background:linear-gradient(135deg,#10b981,#06b6d4)}
.h-scroll-shell .chip:nth-child(4n+1){background:linear-gradient(180deg,#ffffff,#eff6ff)}
.h-scroll-shell .chip:nth-child(4n+2){background:linear-gradient(180deg,#ffffff,#f5f3ff)}
.h-scroll-shell .chip:nth-child(4n+3){background:linear-gradient(180deg,#ffffff,#fff7ed)}
.h-scroll-shell .chip:nth-child(4n+4){background:linear-gradient(180deg,#ffffff,#ecfeff)}
.h-scroll-shell::after,.h-scroll-shell::before{content:"";position:absolute;top:0;bottom:12px;width:38px;pointer-events:none;z-index:2;border-radius:18px}
.h-scroll-shell::after{left:0;background:linear-gradient(90deg,rgba(247,248,252,.96),rgba(247,248,252,0))}
.h-scroll-shell::before{right:0;background:linear-gradient(270deg,rgba(247,248,252,.96),rgba(247,248,252,0))}
.h-scroll-shell .h-scroll::-webkit-scrollbar{height:6px}
.h-scroll-shell .h-scroll::-webkit-scrollbar-track{background:transparent}
.h-scroll-shell .h-scroll::-webkit-scrollbar-thumb{background:linear-gradient(90deg,#d4a017,#f59e0b,#fbbf24,#fcd34d);border-radius:999px}
.h-scroll-shell .h-scroll{scrollbar-width:thin;scrollbar-color:#f59e0b transparent}

.search-sheet-full{height:100dvh !important;border-radius:0 !important}
.search-sheet-full .sheet-handle{margin-top:calc(env(safe-area-inset-top) + 8px)}
.search-sheet-full .sheet-body{padding-top:10px}
.sheet-head-plain{justify-content:flex-end;border-bottom:none;padding:0 14px 6px}
.sheet-head-plain h3{display:none}

@media (max-width:768px){
  .search-sheet-full{height:100dvh !important}
  .bottom-sheet:not(.search-sheet-full){height:62vh}
  .h-scroll-shell{border-radius:22px}
  .h-scroll-shell .h-scroll{padding:12px 12px 10px;border-radius:21px}
}


/* 2026-03-19 final autoplay and desktop search overrides */
.player-loader{display:none !important}
.video-js .vjs-big-play-button{top:50% !important;left:50% !important;right:auto !important;bottom:auto !important;margin:0 !important;transform:translate(-50%,-50%) !important;display:grid !important;place-items:center}
.video-js.vjs-playing .vjs-big-play-button,.video-js .vjs-big-play-button:before{pointer-events:auto}
.h-scroll-shell,.h-scroll-shell .h-scroll,.h-scroll-shell .chip,.h-scroll-shell .chip::before{border:none !important;outline:none !important}
.h-scroll-shell .chip{box-shadow:0 10px 24px rgba(15,23,42,.06) !important}
.desktop-search-panel{position:sticky;top:64px;z-index:19;max-height:0;overflow:hidden;transition:max-height .32s ease,opacity .24s ease,transform .24s ease;opacity:0;transform:translateY(-10px)}
.desktop-search-panel.open{max-height:420px;opacity:1;transform:translateY(0)}
.desktop-search-panel-inner{margin:0 16px 10px;padding:14px 16px 16px;border-radius:24px;background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(247,249,255,.98));border:1px solid rgba(226,232,240,.9);box-shadow:0 18px 40px rgba(15,23,42,.08)}
.desktop-search-panel .search-modern-results{max-height:260px;overflow:auto}
@media (max-width:768px){.desktop-search-panel{display:none !important}}
@media (min-width:769px){#search-sheet.search-sheet-full{display:none !important}}

.video-js.vjs-has-started .vjs-big-play-button,.video-js.vjs-playing .vjs-big-play-button{display:none !important;opacity:0 !important;visibility:hidden !important}

.logo-text-fallback{width:100%;height:100%;display:grid;place-items:center;font-weight:800;font-size:clamp(18px,2vw,26px);color:#0f172a;background:linear-gradient(180deg,#ffffff,#eef4ff);border-radius:50%}
.logo-wrap img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.chip-button{cursor:pointer;font:inherit}
.admin-search-bar{display:flex;gap:10px;align-items:center;margin:0 0 14px}.admin-search-bar input{flex:1;min-width:0;padding:12px 14px;border-radius:14px;border:1px solid #dbe4f2;background:#fff}
.status-pill{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:700;text-transform:capitalize}
.status-pill.paid,.status-pill.active{background:#dcfce7;color:#166534}.status-pill.cancelled,.status-pill.canceled,.status-pill.failed,.status-pill.expired{background:#fee2e2;color:#b91c1c}.status-pill.pending{background:#fef3c7;color:#92400e}
.streams-group{margin-top:18px}.streams-group table input,.streams-group table select{width:100%}
.full-span{grid-column:1 / -1}.admin-form-actions{padding-top:12px;display:flex;justify-content:flex-end}
.channel-form-desktop-fix{align-self:start}@media (min-width: 992px){.channel-form-desktop-fix{max-height:calc(100vh - 180px);overflow:auto}}

/* 2026-04 TV responsive redesign */
.watch-page{display:grid;gap:18px}.tv-player-shell{margin-bottom:0}.tv-player-frame{min-height:320px}
.tv-player-actions{position:absolute;top:20px;right:20px;display:none;gap:12px;z-index:7}
.tv-action-btn{border:none;border-radius:999px;padding:12px 18px;background:rgba(15,23,42,.55);color:#fff;font-weight:700;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:0 12px 28px rgba(15,23,42,.24)}
.tv-action-btn.compact{width:50px;height:50px;padding:0;display:grid;place-items:center}
.tv-player-info{display:none;position:absolute;left:24px;right:24px;bottom:24px;z-index:7;align-items:end;justify-content:space-between;gap:18px;pointer-events:none}
.tv-kicker{display:inline-flex;padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.14);color:#fff;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;margin-bottom:10px}
.tv-player-info h1{font-size:clamp(28px,2.6vw,42px);line-height:1.05;color:#fff;text-shadow:0 10px 26px rgba(0,0,0,.42)}
.tv-player-info p{margin:8px 0 0;color:rgba(255,255,255,.78);font-size:15px}.tv-player-hints{display:grid;gap:10px;justify-items:end;color:#fff;font-size:13px;font-weight:600;text-align:right}
.tv-channel-drawer{position:absolute;left:0;right:0;bottom:0;height:50%;padding:20px 24px 24px;background:linear-gradient(180deg,rgba(2,6,23,.08),rgba(2,6,23,.9) 18%,rgba(2,6,23,.97));transform:translateY(104%);transition:transform .28s ease;z-index:8;display:flex;flex-direction:column}
.tv-channel-drawer.open{transform:translateY(0)}
.tv-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:16px;color:#fff;padding-bottom:14px}.tv-drawer-head h2{font-size:26px;color:#fff}
.tv-drawer-body{overflow:auto;padding-right:8px}.tv-channel-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.tv-channel-item{display:grid;grid-template-columns:78px 1fr;align-items:center;gap:14px;padding:14px 16px;border-radius:24px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.08);color:#fff;text-align:left;box-shadow:0 12px 34px rgba(0,0,0,.18)}
.tv-channel-thumb{display:grid;place-items:center}.tv-channel-thumb .logo-wrap{width:78px;height:78px;margin:0;border-color:rgba(255,255,255,.14);background:rgba(255,255,255,.08)}
.tv-channel-copy strong{display:block;font-size:18px;line-height:1.2}.tv-channel-copy small{display:block;margin-top:6px;color:rgba(255,255,255,.7);font-size:13px}
.tv-channel-item.is-active{background:linear-gradient(135deg,rgba(37,99,235,.34),rgba(124,58,237,.32));border-color:rgba(191,219,254,.48)}
.tv-recommend-grid .channel-card{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
[data-tv-focusable]:focus-visible,.tv-recommend-grid .channel-card:focus-visible,.header-nav a:focus-visible,.profile-btn:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(255,255,255,.24),0 0 0 7px rgba(96,165,250,.6);transform:translateY(-2px)}
.tv-channel-item:focus-visible{outline:none;border-color:#bfdbfe;background:linear-gradient(135deg,rgba(37,99,235,.45),rgba(124,58,237,.42))}
.tv-rail-block{margin-top:4px}

@media (min-width:1025px){
  :root{--bg:#eef3fb;--card:#fdfefe}
  body[data-page="watch"],body[data-page="home"],body[data-page="channels"]{background:radial-gradient(circle at top,#f7f9ff 0,#eef3fb 42%,#e7edf8 100%)}
  .main-wrap.full-width{max-width:min(100vw,1720px);padding:0 28px 34px}
  .topbar{margin:18px 0 14px;border:1px solid rgba(255,255,255,.75);border-radius:26px;padding:16px 20px;background:rgba(255,255,255,.72);box-shadow:0 18px 40px rgba(15,23,42,.08)}
  .left-group strong{font-size:18px}.header-logo,.profile-btn{width:52px;height:52px}.header-nav{gap:14px}.header-nav a{padding:14px 18px;border-radius:18px;font-weight:700}
  .page{padding:0 0 18px}.home-page{display:grid;gap:18px}.player-shell{margin-bottom:0}.full-bleed-player{border-radius:34px;box-shadow:0 28px 60px rgba(15,23,42,.18)}
  .player-overlay{left:24px;bottom:24px;font-size:16px;padding:10px 16px}
  .h-scroll-shell{margin-top:0}.h-scroll-shell .h-scroll{gap:14px;padding:4px 0 14px}.h-scroll-shell .chip{padding:14px 20px 14px 42px;font-weight:700}
  .section-head{padding:0 2px 4px}.section-head h2{font-size:24px}
  .icon-only-grid,.channel-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:18px}.channel-card{padding:16px 10px 14px;border-radius:26px;background:linear-gradient(180deg,#fff,#f7faff);box-shadow:0 14px 30px rgba(15,23,42,.06)}
  .logo-wrap{width:94px;height:94px}.title{font-size:14px;min-height:40px}.profile-btn .icon{width:22px;height:22px}
  body[data-page="watch"] .tv-player-actions,body[data-page="watch"] .tv-player-info{display:flex}
  body[data-page="watch"] .tv-player-frame{border-radius:36px;min-height:min(74vh,920px)}
  body[data-page="watch"] .video-js{height:100% !important}
  body[data-page="watch"] .tv-recommend-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:16px}
  body[data-page="watch"] .tv-recommend-grid .channel-card .logo-wrap{width:78px;height:78px}
  body[data-page="watch"] .tv-recommend-grid .channel-card{padding:12px 8px;border-radius:22px}
  body[data-page="watch"] .desktop-search-panel{top:112px}
}

@media (min-width:1366px){
  .icon-only-grid,.channel-grid{grid-template-columns:repeat(7,minmax(0,1fr))}
  body[data-page="watch"] .tv-channel-list{grid-template-columns:repeat(4,minmax(0,1fr))}
}

@media (max-width:1024px){
  .tv-player-actions,.tv-player-info,.tv-channel-drawer{display:none !important}
}


/* 2026-04 home remote + inline fullscreen player */
.enhanced-home-page{display:grid;gap:18px}
.home-inline-player-shell{position:relative;display:none}
.home-inline-player-shell.is-active{display:block}
.home-player-frame{position:relative;min-height:220px;background:#000}
.home-player-close{position:absolute;top:18px;left:18px;z-index:12;width:52px;height:52px;border:none;border-radius:999px;background:rgba(15,23,42,.72);color:#fff;font-size:24px;display:grid;place-items:center;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.home-player-center-toggle{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:11;width:90px;height:90px;border:none;border-radius:999px;background:rgba(15,23,42,.46);color:#fff;font-size:34px;display:grid;place-items:center;opacity:0;pointer-events:none;transition:opacity .2s ease,transform .2s ease}
.home-player-center-toggle.show{opacity:1;pointer-events:auto;transform:translate(-50%,-50%) scale(1)}
.home-player-chrome{position:absolute;left:0;right:0;top:0;z-index:10;padding:18px 20px 0;opacity:0;pointer-events:none;transition:opacity .2s ease}
.home-player-chrome.show{opacity:1;pointer-events:auto}
.home-player-topline{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.home-player-inline-actions{display:flex;gap:12px}
.home-player-frame .video-js .vjs-control-bar,.home-player-frame .video-js .vjs-control,.home-player-frame .video-js .vjs-control-text,.home-player-frame .video-js .vjs-time-control,.home-player-frame .video-js .vjs-progress-control,.home-player-frame .video-js .vjs-volume-panel,.home-player-frame .video-js .vjs-picture-in-picture-control,.home-player-frame .video-js .vjs-remaining-time,.home-player-frame .video-js .vjs-fullscreen-control{display:none !important}
.home-player-frame .video-js .vjs-big-play-button{display:none !important}
.home-tv-channel-drawer{height:50%;z-index:13}
.home-category-chip.is-active{box-shadow:0 0 0 2px rgba(96,165,250,.25),0 12px 30px rgba(37,99,235,.12) !important;background:linear-gradient(135deg,#eff6ff,#ede9fe) !important}
.home-category-block.category-muted{opacity:.4;transition:opacity .2s ease}
.home-channel-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.home-channel-card{display:grid;grid-template-columns:74px 1fr;align-items:center;gap:12px;padding:14px 16px;border-radius:24px;text-align:left;box-shadow:0 12px 30px rgba(15,23,42,.06);background:linear-gradient(180deg,#fff,#f8fbff)}
.home-channel-card-media{display:grid;place-items:center}.home-channel-card .logo-wrap{width:74px;height:74px;margin:0}
.home-channel-card-copy{display:block;min-width:0}.home-channel-card-copy strong{display:block;font-size:16px;line-height:1.2;color:#0f172a}.home-channel-card-copy small{display:block;margin-top:6px;color:#64748b;font-size:12px}
.home-channel-card.is-active{border-color:#93c5fd;box-shadow:0 0 0 3px rgba(147,197,253,.22),0 20px 40px rgba(37,99,235,.14)}
.home-player-open .topbar,.home-player-open .h-scroll-shell,.home-player-open .home-category-block,.home-player-open .bottom-nav{visibility:hidden}
.home-player-open .home-inline-player-shell{visibility:visible}
@media (max-width:768px){
  .home-channel-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-channel-card{grid-template-columns:1fr;justify-items:center;text-align:center;padding:14px 10px}
  .home-channel-card .logo-wrap{width:60px;height:60px}
  .home-player-close{width:44px;height:44px;top:12px;left:12px}
  .home-player-center-toggle{width:74px;height:74px}
  .home-player-chrome{padding:12px 12px 0}
  .home-player-topline{align-items:flex-start}
  .home-player-topline h1{font-size:20px}
  .home-player-inline-actions .tv-action-btn{padding:10px 14px}
  .home-tv-channel-list{grid-template-columns:1fr !important}
  .home-tv-channel-item{grid-template-columns:64px 1fr;padding:12px 14px}
  .home-tv-channel-item .logo-wrap{width:64px;height:64px}
}
@media (min-width:769px){
  .home-channel-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (min-width:1025px){
  .home-channel-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .home-player-frame{min-height:min(78vh,940px);border-radius:36px}
  .home-player-close{top:24px;left:24px}
  .home-player-center-toggle{width:110px;height:110px}
  .home-player-chrome{padding:24px 28px 0}
  .home-tv-channel-list{grid-template-columns:repeat(4,minmax(0,1fr))}
  .home-channel-card{grid-template-columns:86px 1fr;padding:16px 18px}
  .home-channel-card .logo-wrap{width:86px;height:86px}
  .home-channel-card-copy strong{font-size:18px}
}


/* 2026-04 IPTV launcher polish */
.iptv-launcher-strip{display:grid;gap:14px}
.iptv-launcher-hero{display:grid;grid-template-columns:1.5fr minmax(220px,320px);gap:16px;align-items:stretch;padding:18px 20px;border-radius:28px;border:1px solid rgba(148,163,184,.18);background:linear-gradient(135deg,#0f172a,#1e293b 50%,#312e81);box-shadow:0 20px 40px rgba(15,23,42,.14);color:#fff}
.launcher-kicker{background:rgba(255,255,255,.18)}
.iptv-launcher-hero h2{font-size:clamp(24px,4vw,34px);color:#fff;margin:0 0 10px}
.iptv-launcher-hero p{margin:0;color:rgba(255,255,255,.74);max-width:62ch}
.launcher-last-watch{border:none;border-radius:24px;padding:18px;background:rgba(255,255,255,.1);color:#fff;text-align:left;display:grid;align-content:center;gap:6px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
.launcher-last-watch-label{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.64)}
.launcher-last-watch strong{font-size:22px;line-height:1.15}
.launcher-last-watch small{color:rgba(255,255,255,.72)}
.last-watched-block[hidden]{display:none !important}
.home-category-block,.iptv-launcher-hero,.home-category-chip,.home-channel-card,.tv-channel-item,.launcher-last-watch,.home-player-close,.tv-action-btn{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease,opacity .18s ease}
.home-channel-card:hover,.tv-channel-item:hover,.launcher-last-watch:hover{transform:translateY(-2px)}
.home-channel-card:focus-visible,.launcher-last-watch:focus-visible,.home-category-chip:focus-visible,.home-player-close:focus-visible,.tv-action-btn:focus-visible{outline:none;transform:translateY(-3px) scale(1.02);box-shadow:0 0 0 3px rgba(255,255,255,.24),0 0 0 7px rgba(96,165,250,.48),0 18px 34px rgba(15,23,42,.16)}
@media (max-width:1024px){
  body[data-page="home"] .tv-channel-drawer{display:flex !important}
  .home-tv-channel-drawer{height:56%;padding:14px 12px 14px;border-radius:22px 22px 0 0;background:linear-gradient(180deg,rgba(2,6,23,.16),rgba(2,6,23,.92) 18%,rgba(2,6,23,.985));backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
  .home-tv-channel-list{grid-template-columns:1fr !important;gap:10px}
  .tv-drawer-head{padding-bottom:10px}
  .tv-drawer-head h2{font-size:20px}
  .tv-action-btn.compact{width:42px;height:42px}
}
@media (max-width:768px){
  .iptv-launcher-hero{grid-template-columns:1fr;gap:12px;padding:16px}
  .launcher-last-watch{padding:14px 16px}
  .launcher-last-watch strong{font-size:18px}
  .home-channel-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .home-channel-card{padding:10px 8px;border-radius:18px;gap:8px;min-width:0}
  .home-channel-card .logo-wrap{width:min(100%,60px);height:60px}
  .home-channel-card-copy strong{font-size:13px;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .home-channel-card-copy small{font-size:11px;margin-top:4px}
  .home-player-frame{min-height:200px}
  .home-player-topline{gap:8px}
  .home-player-topline h1{font-size:18px}
  .home-player-inline-actions{gap:8px}
  .home-player-inline-actions .tv-action-btn{padding:8px 12px;font-size:13px}
}
@media (min-width:769px) and (max-width:1220px){
  .home-channel-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (min-width:1221px){
  .home-channel-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* 2026-04 premium launcher polish */
.launcher-layout{display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr);gap:16px;align-items:start}
.launcher-sidebar{position:sticky;top:84px;padding:18px;border-radius:28px;background:linear-gradient(180deg,#0f172a,#111827);color:#fff;display:grid;gap:16px;border:none;box-shadow:0 20px 40px rgba(15,23,42,.18)}
.launcher-sidebar-head h2{margin:6px 0 8px;color:#fff}.launcher-sidebar-head p{margin:0;color:rgba(255,255,255,.72);font-size:14px;line-height:1.5}
.launcher-menu{display:grid;gap:10px}.launcher-menu-item{border:none;border-radius:20px;padding:14px 16px;background:rgba(255,255,255,.08);color:#fff;display:grid;grid-template-columns:28px 1fr;align-items:center;gap:12px;text-align:left;box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
.launcher-menu-item span{display:grid;place-items:center;width:28px;height:28px;border-radius:999px;background:rgba(255,255,255,.12);font-weight:700}.launcher-menu-item small{display:block;color:rgba(255,255,255,.64)}
.launcher-menu-item strong{display:block;color:#fff}.launcher-menu-item.is-active,.launcher-menu-item:hover{background:rgba(96,165,250,.22);transform:translateY(-2px)}
.launcher-mini-status{border-radius:22px;padding:16px;background:rgba(255,255,255,.08);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);display:grid;gap:6px}.launcher-status-label{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.6)}
.launcher-mini-status strong{font-size:20px}.launcher-mini-status small{color:rgba(255,255,255,.72)}
.launcher-main{display:grid;gap:14px;min-width:0}
.launcher-hero-meta{display:grid;gap:12px}.launcher-info-tile{border-radius:24px;padding:18px;background:rgba(255,255,255,.1);box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);display:grid;gap:6px}.launcher-info-tile span{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.6)}.launcher-info-tile strong{font-size:22px}.launcher-info-tile small{color:rgba(255,255,255,.72)}
.hero-last-watch{min-height:128px}
#launcher-sections{display:grid;gap:14px}
.home-category-block{scroll-margin-top:92px}
.home-category-block.category-muted{opacity:.44;transform:scale(.992)}
.home-channel-grid{align-items:stretch}
.home-channel-card{min-height:112px;position:relative;overflow:hidden}
.home-channel-card::after{content:'';position:absolute;inset:auto 0 0 0;height:4px;background:linear-gradient(90deg,#60a5fa,#a78bfa);transform:scaleX(0);transform-origin:left;transition:transform .18s ease}
.home-channel-card.is-active::after,.home-channel-card:focus-visible::after{transform:scaleX(1)}
.home-channel-card.is-active{background:linear-gradient(180deg,#eef6ff,#f8fbff)}
.tv-channel-item.is-active{background:rgba(96,165,250,.18);box-shadow:inset 0 0 0 1px rgba(96,165,250,.35)}
.home-category-chip.is-active{background:#dbeafe;border-color:#93c5fd;color:#0f172a;box-shadow:0 10px 20px rgba(37,99,235,.12)}
body[data-page="home"] .main-wrap{max-width:1440px}
@media (min-width:1025px){
  .iptv-launcher-hero{grid-template-columns:1.2fr minmax(260px,360px)}
  .home-channel-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .home-channel-card:focus-visible,.launcher-menu-item:focus-visible,.hero-last-watch:focus-visible{outline:none;transform:translateY(-4px) scale(1.03);box-shadow:0 0 0 3px rgba(255,255,255,.18),0 0 0 7px rgba(96,165,250,.44),0 24px 40px rgba(15,23,42,.18)}
}
@media (max-width:1024px){
  .launcher-layout{grid-template-columns:1fr}
  .launcher-sidebar{position:relative;top:auto;padding:16px;grid-template-columns:1fr;gap:12px}
  .launcher-menu{grid-template-columns:repeat(4,minmax(0,1fr))}
  .launcher-menu-item{grid-template-columns:1fr;justify-items:center;text-align:center;padding:12px;gap:8px}
  .launcher-menu-item div{display:grid;gap:2px}
}
@media (max-width:768px){
  .launcher-sidebar{display:none}
  .launcher-layout{display:block}
  .iptv-launcher-hero{grid-template-columns:1fr}
  .launcher-hero-meta{grid-template-columns:1fr}
}

/* 2026-04 single-page IPTV home shell */
body[data-page="home"] .desktop-search-panel{display:none !important}
body[data-page="home"] .main-wrap.full-width{max-width:none;padding:18px 20px 90px}
.section-head-with-action{display:flex;align-items:center;justify-content:space-between;gap:12px}
.home-shell-layout{display:grid;grid-template-columns:minmax(240px,280px) minmax(0,1fr);gap:18px;align-items:start}
.home-shell-sidebar{position:sticky;top:18px;border-radius:28px;padding:18px;background:linear-gradient(180deg,#ffffff,#f8fafc);border:1px solid rgba(148,163,184,.2);box-shadow:0 18px 40px rgba(15,23,42,.08);display:grid;gap:14px}
.home-shell-brand{display:grid;grid-template-columns:48px 1fr;gap:12px;align-items:center}.home-shell-brand strong{display:block;font-size:18px;color:#0f172a}.home-shell-brand small{display:block;color:#64748b}.home-shell-logo{width:48px;height:48px;border-radius:16px;object-fit:cover;background:#eff6ff;padding:6px}
.home-shell-search{display:grid;grid-template-columns:18px 1fr;gap:10px;align-items:center;padding:12px 14px;border-radius:18px;border:1px solid rgba(148,163,184,.22);background:#fff}.home-shell-search input{border:none;outline:none;background:transparent;font-size:15px;min-width:0}.home-shell-search-icon{color:#64748b;display:grid;place-items:center}
.home-shell-search-results{max-height:220px;overflow:auto;border-radius:20px;border:1px solid rgba(148,163,184,.18);background:#fff;padding:6px}
.home-shell-nav{display:grid;gap:10px}.home-shell-nav-item{border:none;border-radius:18px;padding:14px 16px;background:#fff;color:#0f172a;display:grid;grid-template-columns:28px 1fr;align-items:center;gap:12px;text-align:left;box-shadow:inset 0 0 0 1px rgba(148,163,184,.18);transition:transform .18s ease,box-shadow .18s ease,background .18s ease}.home-shell-nav-item span{display:grid;place-items:center;width:28px;height:28px;border-radius:999px;background:#eef2ff;color:#334155}.home-shell-nav-item strong{font-size:15px}.home-shell-nav-item.is-active,.home-shell-nav-item:hover,.home-shell-nav-item:focus-visible{background:#eff6ff;box-shadow:0 0 0 2px rgba(96,165,250,.2),0 12px 24px rgba(15,23,42,.08);outline:none;transform:translateY(-2px)}
.home-shell-content{display:grid;gap:16px;min-width:0}.home-shell-pane{display:none;gap:16px}.home-shell-pane.is-active{display:grid}.home-inline-plan-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.home-account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.home-account-card{border-radius:24px}.home-account-guest{padding:24px}
#home-all-channels .home-channel-card[data-hidden="1"],#channels-pane-grid .home-channel-card[data-hidden="1"]{display:none !important}
body[data-page="home"] .home-channel-grid{display:grid;gap:14px}
body[data-page="home"] .home-flat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
body[data-page="home"] .home-history-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
body[data-page="home"] .home-channel-card{min-height:120px}
@media (min-width:769px){
  body[data-page="home"] .topbar{display:none !important}
  body[data-page="home"] .bottom-nav{display:none !important}
}
@media (max-width:1024px){
  .home-shell-layout{grid-template-columns:1fr}
  .home-shell-sidebar{position:relative;top:auto}
}
@media (max-width:768px){
  body[data-page="home"] .main-wrap.full-width{padding:12px 12px 88px}
  .home-shell-sidebar{display:none}
  .home-shell-layout{display:block}
  .home-shell-content{display:grid;gap:12px}
  .home-shell-pane{display:grid !important}
  .home-shell-pane:not([data-shell-pane="home"]){display:none !important}
  body[data-page="home"] .home-flat-grid,
  body[data-page="home"] .home-history-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
  body[data-page="home"] .home-channel-card{aspect-ratio:1/1;min-height:auto;padding:8px 6px;border-radius:18px;display:grid;grid-template-columns:1fr;grid-template-rows:auto 1fr;justify-items:center;align-content:start;gap:6px;text-align:center}
  body[data-page="home"] .home-channel-card .logo-wrap{width:44px;height:44px}
  body[data-page="home"] .home-channel-card-media{align-self:center}
  body[data-page="home"] .home-channel-card-copy{display:grid;gap:3px;align-content:start;width:100%}
  body[data-page="home"] .home-channel-card-copy strong{font-size:11px;line-height:1.15;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  body[data-page="home"] .home-channel-card-copy small{font-size:10px;line-height:1.1;margin-top:0;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
  .section-head-with-action .btn{padding:8px 12px;font-size:12px}
}

/* 2026-04 final home shell overrides */
body[data-page="home"]{background:#eef2f7;}
body[data-page="home"] .desktop-shell, body[data-page="home"] .main-wrap{max-width:none;padding:0;}
body[data-page="home"] .flash{margin:16px 20px 0;}
.minimalist-home-shell{padding:0 0 92px;}
.minimalist-shell-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:18px;padding:18px;align-items:start;}
.minimalist-sidebar{position:sticky;top:16px;background:rgba(255,255,255,.82);backdrop-filter:blur(18px);border:1px solid rgba(148,163,184,.25);border-radius:24px;padding:18px;box-shadow:0 18px 48px rgba(15,23,42,.08);}
.minimalist-brand{display:flex;align-items:center;gap:12px;padding:6px 4px 16px;}
.minimalist-search{margin:8px 0 14px;}
.minimalist-nav{display:grid;gap:10px;}
.minimalist-nav .home-shell-nav-item{justify-content:flex-start;min-height:56px;border-radius:18px;border:1px solid rgba(148,163,184,.18);background:#fff;}
.minimalist-nav .home-shell-nav-item.is-active{background:#111827;color:#fff;border-color:#111827;box-shadow:0 12px 24px rgba(15,23,42,.18);}
.minimalist-content{display:block;min-width:0;}
.minimalist-content .home-shell-pane{display:none;}
.minimalist-content .home-shell-pane.is-active{display:block;}
.only-channels-block,.minimal-pane-card{background:rgba(255,255,255,.76);border:1px solid rgba(148,163,184,.18);border-radius:28px;padding:18px;box-shadow:0 18px 40px rgba(15,23,42,.06);}
.channels-inline-categories{display:flex;gap:10px;overflow:auto;padding-bottom:12px;margin-bottom:14px;scrollbar-width:none;}
.channels-inline-categories::-webkit-scrollbar{display:none;}
.home-category-chip{white-space:nowrap;border-radius:999px;}
.home-channel-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;}
.home-channel-card{display:flex;align-items:center;gap:14px;border-radius:24px;padding:14px 16px;min-height:118px;background:#f8fafc;border:1px solid rgba(148,163,184,.24);box-shadow:0 8px 24px rgba(15,23,42,.06);text-align:left;}
.home-channel-card:hover,.home-channel-card:focus,.home-channel-card.is-active,.tv-channel-item:focus,.tv-channel-item.is-active{transform:translateY(-1px) scale(1.01);border-color:#60a5fa;box-shadow:0 0 0 3px rgba(96,165,250,.18),0 16px 28px rgba(59,130,246,.14);outline:none;}
.home-channel-card-media,.tv-channel-thumb{width:72px;height:72px;border-radius:999px;background:#fff;border:1px solid rgba(148,163,184,.24);display:flex;align-items:center;justify-content:center;overflow:hidden;flex:0 0 72px;}
.home-channel-card-media img,.tv-channel-thumb img{width:100%;height:100%;object-fit:cover;}
.home-channel-card-copy{min-width:0;display:grid;gap:6px;}
.home-channel-card-copy strong,.tv-channel-copy strong{font-size:1.18rem;line-height:1.15;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.home-channel-card-copy small,.tv-channel-copy small{font-size:.92rem;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.home-shell-search-results{margin-top:8px;max-height:260px;overflow:auto;}
.home-mobile-bottom-nav{display:none;position:fixed;left:10px;right:10px;bottom:10px;z-index:75;background:rgba(255,255,255,.92);backdrop-filter:blur(18px);border:1px solid rgba(148,163,184,.18);border-radius:22px;padding:8px;grid-template-columns:repeat(5,1fr);gap:6px;box-shadow:0 18px 40px rgba(15,23,42,.12);}
.home-mobile-nav-item{min-height:58px;border-radius:16px;border:0;background:transparent;display:grid;place-items:center;gap:4px;color:#334155;padding:6px;}
.home-mobile-nav-item.is-active{background:#111827;color:#fff;}
.account-pane-list{display:grid;gap:12px;}
.account-pane-link{display:grid;gap:4px;padding:16px 18px;background:#fff;border:1px solid rgba(148,163,184,.18);border-radius:20px;color:inherit;text-decoration:none;}
body[data-page="home"] .topbar,body[data-page="home"] .bottom-nav,body[data-page="home"] #desktop-search-panel,body[data-page="home"] #search-sheet,body[data-page="home"] #channels-sheet,body[data-page="home"] #sheet-backdrop{display:none !important;}
.home-tv-channel-drawer .tv-channel-list{display:grid;grid-template-columns:1fr;gap:10px;}
.home-tv-channel-drawer .tv-channel-item{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:22px;background:rgba(255,255,255,.9);border:1px solid rgba(148,163,184,.22);text-align:left;}
.home-tv-channel-drawer.open{transform:translateY(0);opacity:1;pointer-events:auto;}
@media (max-width: 1024px){
  .minimalist-shell-layout{grid-template-columns:1fr;padding:14px;}
  .minimalist-sidebar{display:none;}
  .home-mobile-bottom-nav{display:grid;}
  .minimalist-home-shell{padding-bottom:96px;}
}
@media (max-width: 768px){
  .only-channels-block,.minimal-pane-card{padding:12px;border-radius:20px;}
  .home-channel-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .home-channel-card{flex-direction:column;align-items:flex-start;justify-content:flex-start;min-height:auto;padding:12px;border-radius:20px;gap:10px;}
  .home-channel-card-media{width:56px;height:56px;flex-basis:56px;}
  .home-channel-card-copy{width:100%;gap:3px;}
  .home-channel-card-copy strong{font-size:1rem;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
  .home-channel-card-copy small{font-size:.78rem;}
  .home-player-frame{border-radius:0;}
  .home-tv-channel-drawer{height:52vh;border-radius:24px 24px 0 0;}
}

/* 2026-04 netflix dark shell refresh */
:root{--bg:#0b0b0f;--card:#13161d;--text:#f5f7fb;--muted:#98a2b3;--line:#242936;--brand:#ffffff;--brand2:#7c3aed}
html,body{background:#0b0b0f;color:#f5f7fb}
body{background:radial-gradient(circle at top,#191b23 0,#0b0b0f 40%,#07080c 100%)}
.topbar,.header-nav,.home-page .section-head,.desktop-search-panel{color:#f5f7fb}
.card,.player-card,.channel-card,.search-item,.modal-card,.search-modern-wrap,.search-empty-state,.form-stack input,.form-grid input,.form-grid select,.form-grid textarea,.btn,.coupon-box{background:#13161d;border-color:#242936;color:#f5f7fb;box-shadow:none}
.muted,.search-item small,.home-channel-card-copy small{color:#98a2b3}
.no-sidebar-shell,.full-width{max-width:none}
.home-shell-wrapper .main-wrap{padding-bottom:0}
.netflix-home-shell{padding:0 0 96px}
.netflix-shell-layout{display:grid;grid-template-columns:88px minmax(0,1fr);gap:0;min-height:100vh}
.netflix-sidebar{position:sticky;top:0;height:100vh;padding:20px 14px;border-right:1px solid rgba(255,255,255,.06);background:linear-gradient(180deg,#0f1117,#090a0e);display:flex;flex-direction:column;justify-content:space-between;align-items:center}
.netflix-sidebar-top{display:grid;gap:18px;justify-items:center}
.netflix-logo-badge{width:52px;height:52px;border-radius:18px;display:grid;place-items:center;background:#151922;border:1px solid rgba(255,255,255,.08);box-shadow:0 10px 30px rgba(0,0,0,.28)}
.netflix-logo-badge img{width:34px;height:34px;object-fit:contain;border-radius:10px}
.netflix-icon-nav{display:grid;gap:12px;justify-items:center}
.home-shell-nav-item.icon-only,.netflix-logout-btn{width:54px;height:54px;border:none;border-radius:18px;background:transparent;color:#b6bed1;display:grid;place-items:center;padding:0}
.home-shell-nav-item.icon-only .icon,.netflix-logout-btn .icon,.home-mobile-nav-item .icon{width:22px;height:22px;color:currentColor}
.home-shell-nav-item.icon-only:hover,.home-shell-nav-item.icon-only:focus-visible,.home-shell-nav-item.icon-only.is-active,.netflix-logout-btn:hover,.netflix-logout-btn:focus-visible{background:#171b24;color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08),0 12px 24px rgba(0,0,0,.28)}
.netflix-sidebar-bottom{padding-bottom:8px}
.netflix-content{padding:22px 24px 24px;min-width:0}
.netflix-pane-block{margin-top:0;background:transparent}
.home-shell-pane{display:none}
.home-shell-pane.is-active{display:block}
.channels-inline-categories{display:flex;gap:12px;overflow:auto;padding:4px 0 16px}
.channels-inline-categories .chip{background:#151922;border-color:#242936;color:#eef2f7;padding:12px 18px}
.channels-inline-categories .chip.is-active{background:#202533;border-color:#5b86ff;color:#fff;box-shadow:0 0 0 1px rgba(91,134,255,.35),0 12px 30px rgba(46,96,255,.18)}
.netflix-channel-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:14px}
.netflix-channel-card,.home-channel-card{display:grid;grid-template-columns:72px 1fr;align-items:center;gap:14px;padding:16px 18px;text-align:left;min-height:110px;background:linear-gradient(180deg,#151922,#11141b);border:1px solid #252a36;border-radius:24px;box-shadow:none}
.netflix-channel-card:hover,.netflix-channel-card:focus-visible,.netflix-channel-card.is-active,.tv-channel-item:hover,.tv-channel-item:focus-visible,.tv-channel-item.is-active{transform:translateY(-1px);border-color:#6b93ff;box-shadow:0 0 0 1px rgba(107,147,255,.35),0 18px 38px rgba(0,0,0,.34)}
.home-channel-card-media,.tv-channel-thumb{display:grid;place-items:center;width:72px;height:72px}
.home-channel-card .logo-wrap,.tv-channel-item .logo-wrap{width:72px;height:72px;margin:0;background:#0e1015;border-color:#2f3442}
.home-channel-card-copy{display:flex;flex-direction:column;gap:6px;min-width:0}
.home-channel-card-copy strong{font-size:1.08rem;line-height:1.22;color:#f7f8fb;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-channel-card-copy small{font-size:.88rem;line-height:1.2}
.home-inline-player-shell{margin-bottom:0}
.home-player-frame{border-radius:0;min-height:100vh}
#home-player-shell:not(.is-active){display:none}
.home-player-open .netflix-shell-layout,.home-player-open .netflix-mobile-nav{display:none}
.player-overlay{background:rgba(2,6,23,.6)}
.home-tv-channel-drawer{height:48vh;background:linear-gradient(180deg,rgba(5,7,11,.08),rgba(6,8,13,.94) 18%,rgba(6,8,13,.98))}
.home-tv-channel-drawer .tv-channel-list{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.home-tv-channel-drawer .tv-channel-item{display:grid;grid-template-columns:64px 1fr;gap:12px;align-items:center;padding:12px 14px;border-radius:22px;background:#12161d;border:1px solid #272c39;color:#f5f7fb;text-align:left}
.tv-channel-copy strong,.tv-channel-copy small{display:block}
.tv-channel-copy strong{font-size:15px;color:#fff}.tv-channel-copy small{font-size:12px;color:#98a2b3}
.search-pane-card,.netflix-subscription-pane,.netflix-account-pane{background:linear-gradient(180deg,#11141b,#0d1016);border:1px solid #202532;border-radius:28px;padding:22px}
.netflix-search-box{display:flex;align-items:center;gap:12px;padding:16px 18px;border-radius:22px;background:#151922;border:1px solid #252a36;margin:14px 0 16px}
.netflix-search-box input{width:100%;background:transparent;border:none;outline:none;color:#f5f7fb;font-size:16px}
.netflix-search-box-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:999px;background:#1e2430;color:#fff}
.netflix-search-box-icon .icon{color:currentColor}
.home-shell-search-results .search-item{background:#13161d;border-color:#252a36}
.netflix-plan-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}
.netflix-plan-card{background:radial-gradient(circle at top left,rgba(121,68,255,.18),transparent 40%),linear-gradient(180deg,#17131f,#12151d);border:1px solid rgba(255,255,255,.08);border-radius:26px;padding:20px;display:grid;gap:14px}
.netflix-plan-badge{display:inline-flex;justify-self:start;padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.08);color:#fff;font-size:12px;font-weight:700}
.netflix-plan-card .price{color:#fff;font-size:2rem}.netflix-plan-meta{color:#c9d0df;font-size:13px}
.netflix-account-hero{display:flex;align-items:center;gap:16px;padding:18px;border-radius:24px;background:#151922;border:1px solid #252a36;margin:12px 0 18px}
.netflix-account-avatar{width:72px;height:72px;border-radius:999px;display:grid;place-items:center;background:linear-gradient(135deg,#7c3aed,#2563eb);font-size:28px;font-weight:800;color:#fff;overflow:hidden}
.netflix-account-avatar img{width:100%;height:100%;object-fit:cover}
.netflix-account-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.netflix-account-card{display:grid;gap:6px;padding:18px;border-radius:22px;background:#151922;border:1px solid #252a36;color:#f5f7fb}
.netflix-account-card:hover,.netflix-account-card:focus-visible{border-color:#5b86ff;box-shadow:0 0 0 1px rgba(91,134,255,.3)}
.netflix-mobile-nav{position:fixed;left:10px;right:10px;bottom:10px;display:none;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:10px;border-radius:24px;background:rgba(16,18,24,.96);border:1px solid rgba(255,255,255,.08);backdrop-filter:blur(14px);z-index:70}
.home-mobile-nav-item{background:transparent;border:none;color:#a9b1c5;display:grid;justify-items:center;gap:5px;padding:10px 0;border-radius:18px}
.home-mobile-nav-item.is-active{background:#171b24;color:#fff}
.home-mobile-nav-item small{font-size:11px;color:inherit}
.home-mobile-nav-item span{display:grid;place-items:center}
.home-mobile-nav-item span:not(.icon){font-size:18px;line-height:1}
.home-page .topbar,.home-page .header-nav,.home-page .left-group{display:none!important}
.home-player-open .page.home-page{padding:0}

@media (max-width: 768px){
  .netflix-home-shell{padding:0 0 92px}
  .netflix-shell-layout{grid-template-columns:1fr}
  .netflix-sidebar{display:none}
  .netflix-content{padding:12px}
  .netflix-mobile-nav{display:grid}
  .channels-inline-categories{gap:10px;padding-bottom:12px}
  .channels-inline-categories .chip{padding:10px 15px;font-size:14px}
  .netflix-channel-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .netflix-channel-card,.home-channel-card{grid-template-columns:56px 1fr;gap:10px;min-height:92px;padding:12px;border-radius:20px;align-items:center}
  .home-channel-card-media,.tv-channel-thumb{width:56px;height:56px}
  .home-channel-card .logo-wrap,.tv-channel-item .logo-wrap{width:56px;height:56px}
  .home-channel-card-copy strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .home-channel-card-copy small{font-size:12px}
  .search-pane-card,.netflix-subscription-pane,.netflix-account-pane{padding:16px;border-radius:22px}
  .home-tv-channel-drawer{height:56vh;border-radius:24px 24px 0 0}
  .home-tv-channel-drawer .tv-channel-list{grid-template-columns:1fr;gap:10px}
  .home-tv-channel-drawer .tv-channel-item{grid-template-columns:56px 1fr;padding:11px 12px}
}

@media (min-width: 769px){
  .home-mobile-bottom-nav{display:none!important}
}

/* 2026-04 light shell refresh */
:root{--bg:#f5f7fb;--text:#0f172a;--muted:#64748b;--card:#ffffff;--line:#e6ebf2;--brand:#ef4444;--brand2:#f97316;--gold:#f59e0b}
body{background:var(--bg);color:var(--text)}
.main-wrap.full-width{max-width:none;padding-bottom:88px}
body[data-page="home"] .page{padding:0}
.topbar,.desktop-search-panel,.home-page .topbar,.home-page .header-nav,.home-page .left-group{display:none !important}
.minimal-bottom-nav{background:#fff;border-top:1px solid var(--line);border-radius:0;left:0;right:0;bottom:0;box-shadow:none;padding:8px 10px calc(env(safe-area-inset-bottom) + 8px)}
.minimal-bottom-nav a{color:#64748b;background:transparent}.minimal-bottom-nav a .icon{color:currentColor}
.home-shell-layout.light-shell-layout{display:grid;grid-template-columns:88px 1fr;min-height:100vh}
.light-sidebar{position:sticky;top:0;height:100vh;border-right:1px solid var(--line);background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:18px 0;border-radius:0;box-shadow:none}
.sidebar-brand,.sidebar-logout-link{display:grid;place-items:center;width:100%;color:#94a3b8}.sidebar-brand .icon,.sidebar-logout-link .icon{color:currentColor}
.sidebar-brand{padding-top:4px}.sidebar-brand img{width:34px;height:34px;object-fit:contain}
.sidebar-center-nav{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;flex:1;width:100%}
.home-shell-nav-item.icon-only,.sidebar-logout-link,.home-mobile-nav-item{width:100%;max-width:88px;height:48px;border:none;border-radius:0;background:transparent;display:grid;place-items:center;color:#64748b;box-shadow:none}
.home-shell-nav-item.icon-only .icon,.sidebar-logout-link .icon,.home-mobile-nav-item .icon{width:22px;height:22px;color:currentColor}
.home-shell-nav-item.icon-only.is-active,.home-mobile-nav-item.is-active{color:#ef4444;background:transparent;box-shadow:none}
.home-shell-nav-item.icon-only:hover,.sidebar-logout-link:hover,.home-mobile-nav-item:hover{background:transparent;box-shadow:none;color:#ef4444}
.light-content-area{padding:22px 22px 28px}
.home-shell-pane{display:none}.home-shell-pane.is-active{display:block}
.light-channel-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.light-channel-card{display:grid;grid-template-columns:64px 1fr;align-items:center;gap:14px;padding:16px 18px;border-radius:22px;border:1px solid var(--line);background:#fff;text-align:left;min-height:112px;box-shadow:none}
.light-channel-card .home-channel-card-media{display:grid;place-items:center}.light-channel-card .logo-wrap{width:64px;height:64px;margin:0;background:#fff;border:1px solid #dfe5ee}
.light-channel-card .home-channel-card-copy{display:grid;gap:4px;min-width:0}.light-channel-card .home-channel-card-copy strong{font-size:1.1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.light-channel-card .home-channel-card-copy small{font-size:.92rem;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.light-channel-card.is-active,.light-channel-card:focus-visible,.tv-channel-item:focus-visible,.tv-channel-item.is-active{border-color:#93c5fd;box-shadow:0 0 0 2px rgba(59,130,246,.12)}
.flat-category-row{display:flex;gap:10px;overflow:auto;padding-bottom:14px;margin-bottom:8px}.flat-category-row .chip{background:#fff}
.minimal-search-pane{max-width:760px}.minimal-search-input-wrap{display:flex;align-items:center;gap:12px;padding:0 0 12px;border-bottom:1px solid var(--line)}
.minimal-search-icon{display:grid;place-items:center;color:#94a3b8}.minimal-search-icon .icon{color:currentColor}
.minimal-search-input-wrap input{width:100%;border:none;outline:none;background:transparent;font-size:18px;color:#0f172a}
.minimal-search-results{margin-top:10px;display:grid;gap:0}.minimal-search-results .search-item{padding:14px 0;border:none;border-bottom:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none}
.minimal-search-results .search-item:last-child{border-bottom:none}
.subscription-status-card{display:grid;gap:4px;padding:18px 20px;border-radius:18px;background:#fff;border:1px solid var(--line);margin-bottom:18px}.subscription-status-card.free strong{color:#dc2626}
.light-plan-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}.light-plan-card{border:1px solid var(--line);border-radius:22px;padding:20px;background:#fff;box-shadow:none}
.light-plan-card .price{font-size:2rem;font-weight:800}
.light-account-hero{display:flex;align-items:center;gap:16px;padding:18px 20px;border-radius:20px;border:1px solid var(--line);background:#fff;margin-bottom:18px}.light-account-hero.large{padding:22px}
.light-account-avatar{width:70px;height:70px;border-radius:999px;background:#eff6ff;display:grid;place-items:center;font-weight:800;color:#1d4ed8;overflow:hidden}.light-account-avatar.large{width:88px;height:88px;font-size:2rem}.light-account-avatar img{width:100%;height:100%;object-fit:cover}
.light-account-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.light-account-grid.two-up{grid-template-columns:repeat(2,minmax(0,1fr))}
.light-account-card{display:grid;gap:8px;padding:18px;border-radius:20px;background:#fff;border:1px solid var(--line);color:#0f172a}.light-account-card.static{align-content:start}
.search-page.minimal-standalone-search{max-width:760px;margin:24px auto;padding:24px}
.home-mobile-bottom-nav.light-mobile-nav{display:none}
.tv-channel-item{display:grid;grid-template-columns:62px 1fr;gap:12px;align-items:center;padding:12px 14px;border-radius:18px;background:#fff;border:1px solid var(--line);color:#0f172a;text-align:left}.tv-channel-item .logo-wrap{width:58px;height:58px;margin:0;background:#fff;border:1px solid var(--line)}
.tv-channel-copy small{color:#64748b}
#tv-channel-drawer{background:linear-gradient(180deg,rgba(245,247,251,.98),rgba(255,255,255,.98));border-top:1px solid var(--line)}
#tv-channel-drawer .tv-drawer-head{border-bottom:1px solid var(--line)}
@media (min-width: 900px){.light-channel-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width: 1200px){.light-channel-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 768px){
  .home-shell-layout.light-shell-layout{grid-template-columns:1fr}
  .light-sidebar{display:none}
  .light-content-area{padding:10px 10px 84px}
  .home-mobile-bottom-nav.light-mobile-nav{position:fixed;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(5,1fr);background:#fff;border-top:1px solid var(--line);padding:8px 4px calc(env(safe-area-inset-bottom) + 8px);z-index:70}
  .home-mobile-nav-item{gap:4px;height:auto;padding:6px 0;color:#64748b}.home-mobile-nav-item small{font-size:11px}
  .light-channel-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .light-channel-card{grid-template-columns:48px 1fr;gap:10px;padding:12px 10px;min-height:86px;border-radius:18px}
  .light-channel-card .logo-wrap{width:46px;height:46px}
  .light-channel-card .home-channel-card-copy strong{font-size:14px}.light-channel-card .home-channel-card-copy small{font-size:12px}
  .light-account-grid.two-up{grid-template-columns:1fr}
  .tv-channel-item{grid-template-columns:54px 1fr;padding:10px 12px}.tv-channel-item .logo-wrap{width:50px;height:50px}
}


/* 2026-04 apple light public shell */
:root{--apple-bg:#f5f5f7;--apple-card:rgba(255,255,255,.78);--apple-line:rgba(15,23,42,.08);--apple-text:#0b0b0c;--apple-sub:#6e6e73;--apple-red:#ff3b30;}
body{background:var(--apple-bg)!important;color:var(--apple-text)!important;}
.desktop-shell,.home-shell-layout,.light-shell-layout,.no-sidebar-shell{display:contents!important;}
.public-shell{display:grid;grid-template-columns:80px 1fr;min-height:100vh;}
.public-sidebar{position:sticky;top:0;height:100vh;background:#000;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:14px 0;border-right:none;z-index:40}
.public-sidebar-icon,.public-sidebar-brand,.public-sidebar-logout,.public-nav-link{width:100%;display:grid;place-items:center;color:#fff;text-decoration:none;padding:14px 0;background:transparent;box-shadow:none;border:none}
.public-sidebar-icon{padding-top:8px;padding-bottom:8px}.public-sidebar-icon img{width:20px;height:20px;object-fit:contain;filter:brightness(0) invert(1);opacity:.95}.public-sidebar-brand img{width:34px;height:34px;object-fit:contain;filter:brightness(0) invert(1)}
.public-sidebar-nav{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:18px;flex:1;width:100%}
.public-nav-link .icon,.public-sidebar-logout .icon,.public-mobile-link .icon{width:22px;height:22px;color:#fff}
.public-nav-link.is-active .icon,.public-mobile-link.is-active .icon{color:var(--apple-red)}
.public-main{padding:10px 18px 24px;min-width:0}
.page{padding:0!important}.compact-top{padding-top:2px!important;margin-top:0!important}
.home-page{padding-top:0!important}
.apple-channel-section{padding-top:6px}
.apple-channel-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.apple-channel-card,.light-channel-card{display:grid!important;grid-template-columns:70px 1fr!important;align-items:center!important;gap:14px!important;min-height:112px!important;padding:14px 16px!important;border-radius:24px!important;background:var(--apple-card)!important;border:1px solid var(--apple-line)!important;backdrop-filter:blur(16px);box-shadow:0 10px 32px rgba(15,23,42,.05)!important;text-align:left!important}
.apple-channel-card .home-channel-card-media,.apple-channel-card .tv-channel-thumb{display:grid;place-items:center}
.apple-channel-card .logo-wrap,.tv-channel-item .logo-wrap{width:58px;height:58px;margin:0;background:#fff;border:1px solid rgba(15,23,42,.08)}
.home-channel-card-copy,.tv-channel-copy{display:grid;gap:3px;min-width:0}
.home-channel-card-copy strong,.tv-channel-copy strong,.apple-plan-card h3,.light-account-card strong,.subscription-status-card strong,.light-account-hero h1{color:#000!important}
.home-channel-card-copy small,.tv-channel-copy small,.muted,.plan-duration,.subscription-status-card small,.light-account-card small,.light-account-hero p{color:#8e8e93!important}
.apple-category-row{display:flex;gap:10px;overflow:auto;padding:6px 0 16px}
.apple-category-row .chip{background:rgba(255,255,255,.76);border:1px solid var(--apple-line);color:#000}.apple-category-row .chip.is-active{color:#fff;background:#000;border-color:#000}
.public-mobile-nav{display:none}
.search-page.apple-search-page,.minimal-standalone-search{max-width:760px;margin:0 auto;padding-top:6px!important}
.standalone-search-input,.minimal-search-input-wrap{border-bottom:1px solid rgba(0,0,0,.12)!important;padding:8px 0 12px!important}
.minimal-search-input-wrap input{font-size:20px;color:#000!important}
.minimal-search-results .search-item{background:transparent!important;border:none!important;border-bottom:1px solid rgba(0,0,0,.08)!important;padding:14px 0!important;border-radius:0!important;box-shadow:none!important}
#tv-channel-drawer{background:transparent!important;border-top:none!important;box-shadow:none!important}
#tv-channel-drawer::before{display:none!important}
#tv-channel-drawer .tv-drawer-head{background:transparent!important;border-bottom:none!important}
#tv-channel-drawer .tv-drawer-body{background:transparent!important}
#tv-channel-drawer .tv-channel-item{background:#fff!important;border:1px solid rgba(15,23,42,.08)!important;border-radius:20px!important;box-shadow:0 12px 30px rgba(15,23,42,.08)!important}
#tv-channel-drawer .tv-channel-copy strong{color:#000!important}#tv-channel-drawer .tv-channel-copy small{color:#8e8e93!important}
#history-all-grid .channel-card{display:grid!important;grid-template-columns:70px 1fr!important;align-items:center!important;text-align:left!important}
.apple-status-card,.apple-plan-card,.apple-account-hero,.light-account-card{background:var(--apple-card)!important;border:1px solid var(--apple-line)!important;box-shadow:0 10px 32px rgba(15,23,42,.05)!important;backdrop-filter:blur(18px)}
.apple-plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.apple-plan-card{padding:22px;border-radius:26px}.apple-plan-card .price{font-size:2rem;font-weight:800;color:#000}.apple-primary-btn{background:#000!important;color:#fff!important;border:none!important}.apple-primary-btn:hover{opacity:.92}
.public-nav-link:hover .icon,.public-sidebar-logout:hover .icon,.public-mobile-link:hover .icon{color:var(--apple-red)}
body[data-page="login"] .auth-page,body[data-page="register"] .auth-page{min-height:calc(100vh - 48px)}
.auth-card,.card,.player-card,.modal-card{background:var(--apple-card);border:1px solid var(--apple-line);box-shadow:0 10px 32px rgba(15,23,42,.05)}
@media (max-width:768px){
  .public-shell{grid-template-columns:1fr}
  .public-sidebar{display:none}
  .public-main{padding:6px 10px 82px}
  .public-mobile-nav{position:fixed;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(5,1fr);background:#000;padding:8px 4px calc(env(safe-area-inset-bottom) + 8px);z-index:70}
  .public-mobile-link{display:grid;place-items:center;gap:4px;color:#fff;text-decoration:none;padding:6px 0}.public-mobile-link small{font-size:11px;color:#fff}.public-mobile-link.is-active small{color:var(--apple-red)}
  .apple-channel-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .apple-channel-card,.light-channel-card{grid-template-columns:56px 1fr!important;min-height:94px!important;padding:12px 10px!important;gap:10px!important;border-radius:18px!important}
  .apple-channel-card .logo-wrap,.tv-channel-item .logo-wrap{width:48px;height:48px}
  .home-channel-card-copy strong{font-size:15px!important;line-height:1.2}.home-channel-card-copy small{font-size:12px!important}
}


/* 2026-04 final apple light public polish */
:root{
  --apple-bg:#f5f5f7;
  --apple-surface:rgba(255,255,255,.82);
  --apple-line:rgba(17,17,17,.08);
  --apple-text:#111111;
  --apple-sub:#8e8e93;
  --apple-red:#ff3b30;
}
html,body{background:var(--apple-bg)!important;color:var(--apple-text)!important}
body{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.public-shell{display:grid;grid-template-columns:84px minmax(0,1fr);min-height:100vh;background:var(--apple-bg)}
.public-sidebar{position:sticky;top:0;left:0;height:100vh;width:84px;background:#000!important;padding:14px 0 12px!important;border-radius:0!important;box-shadow:none!important;justify-content:space-between;z-index:60}
.public-sidebar-icon,.public-sidebar-brand,.public-sidebar-logout,.public-nav-link{width:100%;padding:14px 0!important;border:none!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
.public-sidebar-icon{padding-top:8px;padding-bottom:8px}.public-sidebar-icon img{width:20px;height:20px;object-fit:contain;filter:brightness(0) invert(1);opacity:.95}.public-sidebar-brand img{width:34px;height:34px;object-fit:contain;filter:brightness(0) invert(1)}
.public-sidebar-nav{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;flex:1;width:100%}
.public-nav-link .icon,.public-sidebar-logout .icon,.public-mobile-link .icon{width:22px;height:22px;color:#fff!important}
.public-nav-link.is-active .icon,.public-mobile-link.is-active .icon,.public-sidebar-logout.is-active .icon{color:var(--apple-red)!important}
.public-nav-link:hover .icon,.public-sidebar-logout:hover .icon,.public-mobile-link:hover .icon{color:var(--apple-red)!important}
.public-main{padding:10px 18px 28px!important;min-width:0}
.page{padding:0!important}
.home-page{gap:10px!important}
.apple-channel-grid,.channel-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px}
.home-channel-card,.search-item,.apple-plan-card,.light-account-card,.subscription-status-card,.auth-card{background:rgba(255,255,255,.82)!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border:1px solid var(--apple-line)!important;box-shadow:0 10px 30px rgba(0,0,0,.06)!important}
.home-channel-card{display:grid!important;grid-template-columns:72px minmax(0,1fr)!important;align-items:center!important;gap:14px!important;padding:14px 16px!important;min-height:116px!important;border-radius:24px!important;text-align:left!important;aspect-ratio:auto!important;overflow:hidden}
.home-channel-card-media,.tv-channel-thumb{width:72px!important;height:72px!important;display:grid!important;place-items:center!important;flex:0 0 72px}
.home-channel-card .logo-wrap,.tv-channel-item .logo-wrap{width:72px!important;height:72px!important;margin:0!important;background:#fff!important;border:1px solid rgba(17,17,17,.08)!important;box-shadow:none!important}
.logo-wrap img,.home-channel-card-media img,.tv-channel-thumb img{width:100%;height:100%;object-fit:cover}
.home-channel-card-copy,.tv-channel-copy{display:grid!important;gap:4px!important;min-width:0!important}
.home-channel-card-copy strong,.tv-channel-copy strong,.apple-plan-card h3,.price,.subscription-status-card strong,.light-account-card strong,.light-account-hero h1,.auth-card h1{color:var(--apple-text)!important}
.home-channel-card-copy small,.tv-channel-copy small,.muted,.plan-duration,.subscription-status-card small,.light-account-card small,.light-account-hero p,.auth-card p{color:var(--apple-sub)!important}
.player-overlay{background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;padding:0!important;left:20px!important;bottom:18px!important;text-shadow:0 2px 18px rgba(0,0,0,.55)}
#tv-channel-drawer,.home-tv-channel-drawer{background:transparent!important;border-top:none!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
#tv-channel-drawer .tv-drawer-head{background:transparent!important;border:none!important}
#tv-channel-drawer .tv-drawer-body{background:transparent!important}
#tv-channel-drawer .tv-channel-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}
#tv-channel-drawer .tv-channel-item{display:grid;grid-template-columns:64px minmax(0,1fr);align-items:center;gap:12px;padding:12px 14px;background:rgba(255,255,255,.92)!important;border:1px solid rgba(17,17,17,.08)!important;border-radius:22px!important;box-shadow:0 10px 30px rgba(0,0,0,.08)!important;color:var(--apple-text)!important;text-align:left!important}
.search-page{max-width:820px!important;padding-top:6px!important}
.standalone-search-input,.minimal-search-input-wrap{padding:8px 0 10px!important;border-bottom:1px solid rgba(17,17,17,.12)!important}
.minimal-search-icon{color:#8e8e93!important}
.minimal-search-input-wrap input{font-size:22px!important;color:var(--apple-text)!important}
.minimal-search-results{margin-top:8px!important}
.minimal-search-results .search-item{padding:12px 0!important;border:none!important;border-bottom:1px solid rgba(17,17,17,.08)!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
.minimal-search-results .search-item:last-child{border-bottom:none!important}
.minimal-search-results .logo-wrap{width:54px!important;height:54px!important;background:#fff!important;border:1px solid rgba(17,17,17,.08)!important}
.flat-category-row{display:flex;gap:10px;overflow:auto;padding:4px 0 14px}
.chip{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border-radius:999px;text-decoration:none;background:rgba(255,255,255,.85);border:1px solid rgba(17,17,17,.08);color:#111;white-space:nowrap}
.chip.is-active{color:var(--apple-red);border-color:rgba(255,59,48,.28);background:#fff}
.subscription-status-card,.apple-plan-card,.light-account-card,.auth-card,.light-account-hero{border-radius:28px!important}
.apple-plan-grid,.light-account-grid{gap:16px!important}
.apple-plan-card{padding:22px!important}
.apple-plan-card .price{font-size:32px!important;font-weight:800!important}
.apple-status-card{padding:20px 22px!important;margin-bottom:16px!important}
.apple-primary-btn,.btn.primary{background:#111!important;color:#fff!important;border:none!important;box-shadow:none!important}
.btn{border-radius:999px!important}
.auth-page{min-height:calc(100vh - 36px);display:grid;place-items:center;padding:12px 0!important}
.auth-card{width:min(460px,100%);padding:26px!important}
.auth-card input{background:rgba(255,255,255,.9)!important;border:1px solid rgba(17,17,17,.08)!important;color:#111!important}
.light-account-hero{background:rgba(255,255,255,.82)!important;border:1px solid rgba(17,17,17,.08)!important;box-shadow:0 10px 30px rgba(0,0,0,.06)!important;padding:22px!important;margin-bottom:16px!important}
.light-account-avatar.large{background:#111!important;color:#fff!important}
.flash{background:#fff!important;color:#111!important;border:1px solid rgba(17,17,17,.08)!important}
@media (max-width: 768px){
  .public-shell{display:block!important}
  .public-sidebar{display:none!important}
  .public-main{padding:6px 12px calc(74px + env(safe-area-inset-bottom))!important}
  .public-mobile-nav{position:fixed;left:0;right:0;bottom:0;display:grid!important;grid-template-columns:repeat(5,1fr);align-items:center;background:#000!important;padding:8px 4px calc(env(safe-area-inset-bottom) + 8px)!important;z-index:80}
  .public-mobile-link{display:grid;place-items:center;gap:4px;color:#fff!important;text-decoration:none;padding:6px 0;background:transparent!important;border:none!important;box-shadow:none!important}
  .public-mobile-link small{font-size:11px;color:inherit!important}
  .public-mobile-link.is-active,.public-mobile-link.is-active small{color:var(--apple-red)!important}
  .apple-channel-grid,.channel-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  .home-channel-card,.search-item{grid-template-columns:56px minmax(0,1fr)!important;gap:10px!important;min-height:100px!important;padding:12px!important;border-radius:22px!important;align-items:center!important;text-align:left!important;aspect-ratio:auto!important}
  .home-channel-card-media,.tv-channel-thumb{width:56px!important;height:56px!important;flex-basis:56px!important}
  .home-channel-card .logo-wrap,.tv-channel-item .logo-wrap,.minimal-search-results .logo-wrap{width:56px!important;height:56px!important}
  .home-channel-card-copy strong,.tv-channel-copy strong{font-size:14px!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .home-channel-card-copy small,.tv-channel-copy small{font-size:12px!important;line-height:1.15!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  #tv-channel-drawer .tv-channel-list{grid-template-columns:1fr!important;gap:10px!important}
  #tv-channel-drawer .tv-channel-item{grid-template-columns:56px minmax(0,1fr)!important;padding:11px 12px!important}
}


/* 2026-04 mobile player + admin light theme + red focus */
:root{--danger-red:#dc2626;}

/* mobile nav: hide Home only on mobile */
@media (max-width:768px){
  .public-mobile-nav{grid-template-columns:repeat(5,minmax(0,1fr));}
}

/* search input focus border */
.standalone-search-input,.minimal-search-input-wrap{transition:border-color .18s ease, box-shadow .18s ease;}
.standalone-search-input:focus-within,.minimal-search-input-wrap:focus-within{
  border-bottom:1px solid var(--danger-red)!important;
  box-shadow:inset 0 -1px 0 var(--danger-red);
}

/* desktop keyboard/remote selected styles */
.home-channel-card:hover,.home-channel-card:focus,.home-channel-card.is-active,
.tv-channel-item:hover,.tv-channel-item:focus,.tv-channel-item.is-active,
.search-item:hover,.search-item:focus,.search-item.is-active,
.channel-card:hover,.channel-card:focus,.channel-card.is-active{
  border-color:var(--danger-red)!important;
  box-shadow:0 0 0 1px rgba(220,38,38,.18),0 12px 24px rgba(220,38,38,.10)!important;
  outline:none;
}
[data-tv-focusable]:focus-visible,.tv-recommend-grid .channel-card:focus-visible,.header-nav a:focus-visible,.profile-btn:focus-visible,
.home-channel-card:focus-visible,.launcher-last-watch:focus-visible,.home-category-chip:focus-visible,.home-player-close:focus-visible,.tv-action-btn:focus-visible,
.public-nav-link:focus-visible,.public-mobile-link:focus-visible{
  outline:none;
  box-shadow:0 0 0 2px rgba(220,38,38,.20),0 0 0 4px rgba(220,38,38,.12)!important;
}
.tv-channel-item:focus-visible,.tv-channel-item.is-active{border-color:var(--danger-red)!important;background:rgba(220,38,38,.08)!important;}

/* desktop close button hide/show behavior */
@media (min-width:769px){
  .home-player-close{opacity:1;transition:opacity .22s ease, transform .22s ease;}
  .home-player-frame.is-ui-hidden .home-player-close{opacity:0;pointer-events:none;}
}

/* watch page + mobile player friendliness */
.tv-watch-page .tv-mobile-all-channels{display:none;}
.tv-watch-page .tv-mobile-section-head{display:none;}
@media (max-width:768px){
  body[data-page="watch"] .page{padding:12px 12px 94px;}
  body[data-page="watch"] .tv-player-shell{margin-bottom:12px;}
  body[data-page="watch"] .tv-player-frame,
  body[data-page="watch"] .full-bleed-player{border-radius:18px;min-height:auto;aspect-ratio:16/9;overflow:hidden;}
  body[data-page="watch"] .video-js{width:100% !important;height:100% !important;}
  body[data-page="watch"] .tv-player-info,
  body[data-page="watch"] .tv-player-actions,
  body[data-page="watch"] .tv-channel-drawer{display:none !important;}
  body[data-page="watch"] .tv-mobile-all-channels{display:block;margin-top:14px;}
  body[data-page="watch"] .tv-mobile-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px;}
  body[data-page="watch"] .tv-mobile-section-head h2{font-size:18px;margin:0;}
  body[data-page="watch"] .tv-mobile-section-head span{font-size:12px;color:#64748b;}
  body[data-page="watch"] .tv-mobile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
  body[data-page="watch"] .tv-mobile-grid .channel-card{padding:10px 8px;border-radius:18px;min-height:108px;display:grid;gap:8px;align-content:start;}
  body[data-page="watch"] .tv-mobile-grid .logo-wrap{width:48px;height:48px;}
  body[data-page="watch"] .tv-mobile-grid .title{font-size:11px;line-height:1.2;min-height:auto;margin-top:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
  body[data-page="watch"] .tv-rail-block{display:none;}
}

/* home page mobile behavior */
@media (max-width:768px){
  body[data-page="home"] .home-inline-player-shell{display:block;}
  body[data-page="home"] #home-player-shell:not(.is-active){display:block;}
  body[data-page="home"] .home-player-frame{min-height:210px;height:auto;border-radius:18px;overflow:hidden;background:#000;}
  body[data-page="home"] .home-player-frame .video-js{width:100% !important;height:100% !important;}
  body[data-page="home"] .home-player-close{display:none !important;}
  body[data-page="home"] .home-player-chrome{display:none !important;}
  body[data-page="home"] .tv-channel-drawer{display:none !important;}
  body[data-page="home"] .home-player-open .topbar,
  body[data-page="home"] .home-player-open .h-scroll-shell,
  body[data-page="home"] .home-player-open .home-category-block,
  body[data-page="home"] .home-player-open .bottom-nav{visibility:visible;}
}

/* public mobile nav polish */
.public-mobile-link.is-active{color:var(--danger-red)!important;}

/* admin panel light theme */
.admin-body{background:#f4f7fb !important;color:#0f172a;}
.admin-mobile-top{background:#ffffff !important;border-bottom:1px solid #e5e7eb !important;}
.admin-menu-btn{background:#ffffff !important;border:1px solid #e5e7eb !important;color:#111827 !important;}
.admin-menu-btn .icon{color:#dc2626 !important;}
.admin-sidebar{background:#ffffff !important;color:#0f172a !important;border-right:1px solid #e5e7eb;box-shadow:0 12px 30px rgba(15,23,42,.06);}
.admin-sidebar h2{color:#111827 !important;}
.admin-sidebar a{color:#475569 !important;background:transparent !important;border:1px solid transparent;}
.admin-sidebar a:hover,.admin-sidebar a.active{background:#fff1f2 !important;color:#b91c1c !important;border-color:#fecdd3 !important;}
.admin-sidebar .icon{color:#b91c1c !important;}
.admin-main{background:transparent;color:#0f172a;}
.admin-main .section-head h1,.admin-main h1,.admin-main h2,.admin-main h3{color:#111827 !important;}
.admin-main .muted,.admin-main small,.admin-main label,.admin-main p{color:#64748b !important;}
.admin-main .card,.admin-main .player-card,.admin-main .modal-card,.admin-main .coupon-box,.admin-main .stat-card,
.admin-body .card,.admin-body .player-card,.admin-body .modal-card,.admin-body .coupon-box,.admin-body .stat-card{background:#ffffff !important;border:1px solid #e5e7eb !important;color:#0f172a !important;box-shadow:0 10px 24px rgba(15,23,42,.05) !important;}
.admin-body .form-stack input,.admin-body .form-stack select,.admin-body .form-stack textarea,
.admin-body .form-grid input,.admin-body .form-grid select,.admin-body .form-grid textarea,
.admin-body .inline-form select{
  background:#ffffff !important;color:#111827 !important;border:1px solid #d1d5db !important;
}
.admin-body .form-stack input::placeholder,.admin-body .form-grid input::placeholder,.admin-body textarea::placeholder{color:#94a3b8 !important;}
.admin-body .form-stack input:focus,.admin-body .form-stack select:focus,.admin-body .form-stack textarea:focus,
.admin-body .form-grid input:focus,.admin-body .form-grid select:focus,.admin-body .form-grid textarea:focus,
.admin-body .inline-form select:focus{outline:none; border-color:#fca5a5 !important; box-shadow:0 0 0 2px rgba(248,113,113,.15) !important;}
.admin-body .btn{background:#ffffff !important;color:#111827 !important;border:1px solid #d1d5db !important;}
.admin-body .btn.primary{background:#dc2626 !important;color:#ffffff !important;border-color:#dc2626 !important;}
.admin-body table th{color:#334155;background:#f8fafc;}
.admin-body table td{color:#111827;background:#ffffff;}


/* 2026-04 final desktop overlay + mobile nav polish */
#tv-channel-drawer .tv-channel-item,
#player-drawer-list .tv-channel-item,
.tv-mobile-grid .channel-card,
.tv-recommend-grid .channel-card,
.tv-channel-item,
.channel-card{
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
@media (min-width: 769px){
  #tv-channel-drawer .tv-channel-item:hover,
  #tv-channel-drawer .tv-channel-item:focus-visible,
  #player-drawer-list .tv-channel-item:hover,
  #player-drawer-list .tv-channel-item:focus-visible,
  .tv-recommend-grid .channel-card:hover,
  .tv-recommend-grid .channel-card:focus-visible,
  .tv-channel-item.tv-hover,
  .channel-card.tv-hover{
    border-color:rgba(255,59,48,.68)!important;
    box-shadow:0 0 0 1px rgba(255,59,48,.18),0 12px 30px rgba(0,0,0,.10)!important;
    transform:translateY(-1px);
  }
  #tv-channel-drawer .tv-channel-item.is-active,
  #player-drawer-list .tv-channel-item.is-active,
  .tv-recommend-grid .channel-card.is-active,
  .tv-channel-item.is-active,
  .channel-card.is-active{
    border-color:#ff3b30!important;
    box-shadow:0 0 0 1px rgba(255,59,48,.24),0 12px 30px rgba(0,0,0,.10)!important;
  }
}
body[data-page="watch"] .tv-mobile-grid .channel-card,
body[data-page="watch"] .tv-recommend-grid .channel-card,
body[data-page="watch"] .tv-mobile-all-channels .channel-card{
  background:#fff!important;
  border:1px solid rgba(17,17,17,.08)!important;
  box-shadow:0 12px 30px rgba(0,0,0,.08)!important;
}
body[data-page="watch"] .tv-mobile-grid .channel-card .title,
body[data-page="watch"] .tv-mobile-grid .channel-card strong,
body[data-page="watch"] .tv-recommend-grid .channel-card strong{
  color:#111!important;
}
body[data-page="watch"] .tv-mobile-grid .channel-card small,
body[data-page="watch"] .tv-recommend-grid .channel-card small{
  color:#8e8e93!important;
}


/* 2026-04 v3 mobile home and customer settings fixes */
@media (max-width:768px){
  .public-mobile-nav{grid-template-columns:repeat(5,1fr)!important;}
  body[data-page="home"] .public-mobile-nav{display:grid!important;}
  body[data-page="home"] .home-inline-player-shell{position:sticky;top:0;z-index:55;background:#fff;padding-bottom:10px;margin-bottom:8px;}
  body[data-page="home"] .home-player-frame{min-height:auto!important;height:auto!important;aspect-ratio:16/9;position:relative;border-radius:0 0 18px 18px;overflow:hidden;}
  body[data-page="home"] .home-player-frame .video-js{width:100%!important;height:100%!important;}
  body[data-page="home"] .home-player-frame .video-js .vjs-control-bar,
  body[data-page="home"] .home-player-frame .video-js .vjs-control,
  body[data-page="home"] .home-player-frame .video-js .vjs-time-control,
  body[data-page="home"] .home-player-frame .video-js .vjs-progress-control,
  body[data-page="home"] .home-player-frame .video-js .vjs-volume-panel,
  body[data-page="home"] .home-player-frame .video-js .vjs-fullscreen-control{display:flex!important;}
  body[data-page="home"] .home-player-frame .video-js .vjs-control-text{display:block!important;}
  body[data-page="home"] .home-player-close{display:none!important;}
  body[data-page="home"] .home-player-chrome{display:block!important;position:absolute!important;left:0;right:0;top:0;opacity:1!important;pointer-events:auto!important;padding:12px 12px 0;}
  body[data-page="home"] .home-player-topline{align-items:center;gap:10px;}
  body[data-page="home"] .home-player-topline h1{font-size:16px;line-height:1.2;}
  body[data-page="home"] .home-player-topline p{font-size:12px;margin-top:2px;color:rgba(255,255,255,.82);}
  body[data-page="home"] .home-player-inline-actions{gap:8px;}
  body[data-page="home"] .home-player-inline-actions .tv-action-btn{min-width:40px;height:40px;padding:0 12px;border-radius:999px;}
  body[data-page="home"] .tv-channel-drawer{display:none!important;}
  body[data-page="home"] .home-mobile-content-stack{display:grid;gap:12px;padding-top:6px;}
  body[data-page="home"] .home-mobile-category-scroll{display:flex!important;gap:8px;overflow:auto;padding:0 2px 2px;}
  body[data-page="home"] .home-mobile-category-scroll .home-category-chip{flex:0 0 auto;background:#fff;border:1px solid rgba(15,23,42,.08);box-shadow:0 8px 20px rgba(15,23,42,.05);color:#111827;}
  body[data-page="home"] .home-mobile-category-scroll .home-category-chip.is-active{border-color:#ff3b30;background:#fff5f5;color:#b91c1c;box-shadow:0 0 0 1px rgba(255,59,48,.12),0 10px 24px rgba(15,23,42,.06)!important;}
  body[data-page="home"] .home-mobile-all-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 2px;}
  body[data-page="home"] .home-mobile-all-head h2{margin:0;font-size:18px;color:#111827;}
  body[data-page="home"] .home-mobile-all-head span{font-size:12px;color:#64748b;}
}

body[data-page="settings"]{background:#f6f8fb!important;color:#0f172a!important;}
body[data-page="settings"] .card{background:#fff!important;border:1px solid #e5e7eb!important;box-shadow:0 12px 30px rgba(15,23,42,.06)!important;}
body[data-page="settings"] .section-head h1,
body[data-page="settings"] label{color:#111827!important;}
body[data-page="settings"] .muted{color:#64748b!important;}
body[data-page="settings"] .form-grid input,
body[data-page="settings"] .form-grid select,
body[data-page="settings"] .form-grid textarea{background:#fff!important;color:#111827!important;border:1px solid #d1d5db!important;box-shadow:none!important;}
body[data-page="settings"] .form-grid input:focus,
body[data-page="settings"] .form-grid select:focus,
body[data-page="settings"] .form-grid textarea:focus{outline:none;border-color:#fca5a5!important;box-shadow:0 0 0 2px rgba(248,113,113,.14)!important;}
body[data-page="settings"] .btn{background:#fff!important;color:#111827!important;border:1px solid #d1d5db!important;}
body[data-page="settings"] .btn.primary{background:#dc2626!important;color:#fff!important;border-color:#dc2626!important;}


/* 2026-04 v4 mobile home minimal controls + nav + profile light */
@media (max-width:768px){
  .public-mobile-nav{grid-template-columns:repeat(5,1fr)!important;}
  body[data-page="home"] .public-mobile-nav{display:grid!important;}
  body[data-page="home"] .home-inline-player-shell{position:sticky;top:0;z-index:55;background:#fff;padding-bottom:0;margin-bottom:10px;}
  body[data-page="home"] .home-player-frame{min-height:auto!important;height:auto!important;aspect-ratio:16/9;position:relative;border-radius:0 0 18px 18px;overflow:hidden;}
  body[data-page="home"] .home-player-frame .video-js{width:100%!important;height:100%!important;}
  body[data-page="home"] .home-player-frame .video-js .vjs-control-bar{display:flex!important;align-items:center!important;justify-content:space-between!important;padding:0 6px;background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.62))!important;}
  body[data-page="home"] .home-player-frame .video-js .vjs-control{display:none!important;}
  body[data-page="home"] .home-player-frame .video-js .vjs-play-control,
  body[data-page="home"] .home-player-frame .video-js .vjs-volume-panel,
  body[data-page="home"] .home-player-frame .video-js .vjs-fullscreen-control{display:flex!important;}
  body[data-page="home"] .home-player-frame .video-js .vjs-volume-panel{min-width:auto!important;}
  body[data-page="home"] .home-player-frame .video-js .vjs-time-control,
  body[data-page="home"] .home-player-frame .video-js .vjs-progress-control,
  body[data-page="home"] .home-player-frame .video-js .vjs-picture-in-picture-control,
  body[data-page="home"] .home-player-frame .video-js .vjs-remaining-time,
  body[data-page="home"] .home-player-frame .video-js .vjs-live-control{display:none!important;}
  body[data-page="home"] .home-player-close,
  body[data-page="home"] .home-player-center-toggle,
  body[data-page="home"] .home-player-chrome,
  body[data-page="home"] .tv-channel-drawer,
  body[data-page="home"] #channel-drawer-toggle{display:none!important;}
  body[data-page="home"] .home-mobile-category-scroll{display:none!important;}
  body[data-page="home"] .home-mobile-content-stack{display:grid;gap:12px;padding-top:2px;}
  body[data-page="home"] .home-mobile-all-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 2px;}
  body[data-page="home"] .home-mobile-all-head h2{margin:0;font-size:18px;color:#111827;}
  body[data-page="home"] .home-mobile-all-head span{font-size:12px;color:#64748b;}
}

body[data-page="profile"],body[data-page="settings"]{background:#f6f8fb!important;color:#0f172a!important;}
body[data-page="profile"] .card,body[data-page="settings"] .card{background:#fff!important;border:1px solid #e5e7eb!important;box-shadow:0 12px 30px rgba(15,23,42,.06)!important;}
body[data-page="profile"] h1,body[data-page="profile"] h2,body[data-page="profile"] h3,body[data-page="profile"] label,
body[data-page="settings"] .section-head h1,body[data-page="settings"] label{color:#111827!important;}
body[data-page="profile"] .muted,body[data-page="settings"] .muted{color:#64748b!important;}
body[data-page="profile"] .coupon-box{background:#fff!important;border:1px dashed #cbd5e1!important;color:#111827!important;}
body[data-page="profile"] .btn,body[data-page="settings"] .btn{background:#fff!important;color:#111827!important;border:1px solid #d1d5db!important;}
body[data-page="profile"] .btn.primary,body[data-page="settings"] .btn.primary{background:#dc2626!important;color:#fff!important;border-color:#dc2626!important;}
body[data-page="profile"] input,body[data-page="profile"] select,body[data-page="profile"] textarea,
body[data-page="settings"] .form-grid input,body[data-page="settings"] .form-grid select,body[data-page="settings"] .form-grid textarea{background:#fff!important;color:#111827!important;border:1px solid #d1d5db!important;box-shadow:none!important;}
body[data-page="profile"] input:focus,body[data-page="profile"] select:focus,body[data-page="profile"] textarea:focus,
body[data-page="settings"] .form-grid input:focus,body[data-page="settings"] .form-grid select:focus,body[data-page="settings"] .form-grid textarea:focus{outline:none;border-color:#fca5a5!important;box-shadow:0 0 0 2px rgba(248,113,113,.14)!important;}


/* 2026-04 v5 mobile home controls + desktop sidebar logo polish */
.public-sidebar-logo{padding-top:12px!important;padding-bottom:16px!important;}
.public-sidebar-logo img{width:40px!important;height:40px!important;object-fit:contain!important;filter:none!important;background:#fff!important;border-radius:14px!important;padding:6px!important;box-shadow:0 8px 22px rgba(0,0,0,.22)!important;}
.public-sidebar-brand{display:none!important;}

@media (min-width:769px){
  #tv-channel-drawer .tv-channel-item.is-active,
  #player-drawer-list .tv-channel-item.is-active{
    border:2px solid #ff3b30!important;
    box-shadow:0 0 0 2px rgba(255,59,48,.22),0 12px 30px rgba(0,0,0,.12)!important;
  }
}

@media (max-width:768px){
  body[data-page="home"] .home-inline-player-shell{border-radius:0 0 24px 24px!important;overflow:visible!important;}
  body[data-page="home"] .home-player-frame{border-radius:24px!important;overflow:hidden!important;box-shadow:0 14px 34px rgba(15,23,42,.14)!important;}
  body[data-page="home"] .home-player-frame .video-js{border-radius:24px!important;overflow:hidden!important;}
  body[data-page="home"] .home-player-frame .video-js .vjs-control-bar{padding:0 8px!important;gap:4px!important;}
  body[data-page="home"] .home-player-frame .video-js .vjs-play-control,
  body[data-page="home"] .home-player-frame .video-js .vjs-fullscreen-control,
  body[data-page="home"] .home-player-frame .video-js .vjs-volume-panel,
  body[data-page="home"] .home-player-frame .video-js .vjs-mute-control{display:flex!important;align-items:center!important;justify-content:center!important;}
  body[data-page="home"] .home-player-frame .video-js .vjs-volume-panel{width:auto!important;min-width:auto!important;flex:0 0 auto!important;}
  body[data-page="home"] .home-player-frame .video-js .vjs-volume-control,
  body[data-page="home"] .home-player-frame .video-js .vjs-volume-bar,
  body[data-page="home"] .home-player-frame .video-js .vjs-volume-level,
  body[data-page="home"] .home-player-frame .video-js .vjs-slider-horizontal{display:none!important;width:0!important;min-width:0!important;opacity:0!important;pointer-events:none!important;}
  body[data-page="home"] .home-player-frame .video-js .vjs-mute-control{width:42px!important;}
}
