:root{
  --bg:#f3f6fa;--surface:#ffffff;--surface-2:#f7f9fc;--surface-3:#e9eff6;--text:#10233a;--muted:#62758b;--line:#d9e3ee;
  --brand:#07366f;--brand-2:#1d70b8;--brand-soft:#e8f1fb;--top:72px;--nav:78px;--r:22px;
  --shadow:0 10px 30px rgba(16,35,58,.07);--shadow-2:0 26px 70px rgba(8,25,45,.25);
  --rainbow:linear-gradient(90deg,#ef3f37,#f89b20,#f2d22e,#55aa53,#00a7a5,#247ac4,#6d4ca5);
}
[data-theme="dark"]{--bg:#0b1119;--surface:#121b25;--surface-2:#17222e;--surface-3:#1d2b39;--text:#eef5fc;--muted:#aab9c8;--line:#2b3b4c;--brand:#79b7f0;--brand-2:#58a3e6;--brand-soft:#193650;--shadow:0 12px 30px rgba(0,0,0,.18)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(circle at 70% -10%,color-mix(in srgb,var(--brand-2) 8%,transparent),transparent 26rem),var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;line-height:1.45}button,input,select{font:inherit}button{color:inherit}a{color:inherit;text-decoration:none}img{display:block;max-width:100%}[hidden]{display:none!important}.skip{position:fixed;left:-9999px;top:8px;z-index:100}.skip:focus{left:8px;background:var(--surface);padding:10px;border-radius:10px}.topbar{position:sticky;top:0;z-index:40;height:var(--top);background:color-mix(in srgb,var(--bg) 86%,transparent);backdrop-filter:blur(18px);border-bottom:1px solid var(--line)}.topbar:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--rainbow);opacity:.55}.brand-wrap{height:100%;display:flex;align-items:center;gap:18px;padding:0 18px}.brand{display:flex;align-items:center;gap:11px;min-width:0}.brand img{width:50px;height:50px;object-fit:contain;border-radius:12px}.brand span{display:flex;flex-direction:column;line-height:1.15}.brand strong{font-size:1rem}.brand small{color:var(--muted);margin-top:4px}.top-actions{margin-left:auto;display:flex;gap:8px}.icon-button{width:44px;height:44px;border-radius:14px;border:1px solid var(--line);background:var(--surface);cursor:pointer;font-weight:850;box-shadow:0 3px 10px rgba(16,35,58,.04)}.app-shell{display:grid;grid-template-columns:var(--nav) minmax(0,1fr);min-height:calc(100vh - var(--top))}.side-nav{position:sticky;top:var(--top);align-self:start;height:calc(100vh - var(--top));border-right:1px solid var(--line);background:var(--surface);display:flex;flex-direction:column;align-items:stretch;padding:12px 8px;gap:6px}.nav-item{border:0;background:transparent;border-radius:16px;min-height:64px;padding:9px 6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer;color:var(--muted)}.nav-item span{font-size:1.22rem;font-weight:900}.nav-item em{font-size:.72rem;font-style:normal;font-weight:750}.nav-item.active{background:var(--brand-soft);color:var(--brand)}.main-content{width:min(1500px,100%);margin:0 auto;padding:20px 22px 90px}.screen{display:none}.screen.active{display:block}.card{background:color-mix(in srgb,var(--surface) 96%,transparent);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow)}
.home-hero{padding:clamp(24px,4vw,48px);display:grid;gap:20px;position:relative;overflow:hidden}.home-hero:before{content:"";position:absolute;width:420px;height:420px;border-radius:50%;right:-170px;top:-220px;background:conic-gradient(from 220deg,#e94545,#ff9c26,#f2d23c,#5bb55c,#00a8a8,#287ed1,#7652b3,#e94545);filter:blur(46px);opacity:.09;pointer-events:none}.hero-copy{max-width:920px;position:relative}.eyebrow{margin:0 0 7px;font-size:.74rem;letter-spacing:.09em;font-weight:900;color:var(--brand)}h1,h2,h3,p{margin-top:0}.hero-copy h1,.screen-head h1{font-size:clamp(1.85rem,3vw,3.15rem);line-height:1.04;margin-bottom:12px;letter-spacing:-.03em}.hero-copy p,.screen-head p{color:var(--muted);max-width:78ch;margin-bottom:0}.big-search{display:flex;align-items:center;gap:12px;background:var(--surface-2);border:2px solid transparent;border-radius:19px;padding:8px 8px 8px 16px;min-height:64px;position:relative}.big-search:focus-within{border-color:var(--brand-2);box-shadow:0 0 0 4px color-mix(in srgb,var(--brand-2) 16%,transparent)}.big-search span{font-size:1.3rem;color:var(--muted)}.big-search input{min-width:0;flex:1;border:0;outline:0;background:transparent;color:var(--text);font-size:1.04rem}.big-search button,.primary-button{border:0;background:var(--brand);color:#fff;border-radius:13px;padding:12px 18px;font-weight:850;cursor:pointer}.quick-context{display:flex;gap:9px;flex-wrap:wrap;position:relative}.quick-context button,.secondary-button,.text-button,.source-button,.segmented button,.mobile-filter{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:9px 13px;cursor:pointer}.quick-context button:hover,.secondary-button:hover,.text-button:hover,.source-button:hover,.segmented button:hover{border-color:var(--brand-2);background:var(--brand-soft)}
.home-section{margin-top:25px}.section-heading{display:flex;justify-content:space-between;gap:16px;align-items:end;margin:0 4px 12px}.section-heading h2{margin:0;font-size:1.35rem}.section-heading p:not(.eyebrow){margin:4px 0 0;color:var(--muted)}.text-button{background:transparent;color:var(--brand);font-weight:800}.route-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.route-card{--route:#247ac4;border:1px solid var(--line);background:linear-gradient(155deg,color-mix(in srgb,var(--route) 8%,var(--surface)),var(--surface) 55%);border-radius:20px;padding:18px;text-align:left;cursor:pointer;min-height:146px;display:flex;flex-direction:column;justify-content:space-between;gap:16px;box-shadow:var(--shadow);transition:transform .15s ease,border-color .15s ease}.route-card:nth-child(1){--route:#ef5149}.route-card:nth-child(2){--route:#f39a29}.route-card:nth-child(3){--route:#c7a51b}.route-card:nth-child(4){--route:#51a858}.route-card:nth-child(5){--route:#00a1a2}.route-card:nth-child(6){--route:#247ac4}.route-card:nth-child(7){--route:#4a66c6}.route-card:nth-child(8){--route:#7550a4}.route-card:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--route) 55%,var(--line))}.route-icon{width:43px;height:43px;border-radius:14px;background:color-mix(in srgb,var(--route,#247ac4) 13%,var(--surface));color:var(--route,var(--brand));display:grid;place-items:center;font-weight:950}.route-card strong{font-size:1rem}.route-card span:last-child{color:var(--muted);font-size:.86rem}.horizontal-rail,.video-row{display:flex;gap:12px;overflow:auto;padding:2px 2px 11px;scroll-snap-type:x proximity;scrollbar-width:thin}.creator-chip{min-width:220px;max-width:280px;border:1px solid var(--line);background:var(--surface);border-radius:18px;padding:14px;display:flex;gap:12px;align-items:center;cursor:pointer;scroll-snap-align:start;box-shadow:var(--shadow)}.creator-chip:hover{border-color:var(--brand-2)}.creator-avatar{width:46px;height:46px;border-radius:15px;background:linear-gradient(145deg,var(--brand-soft),color-mix(in srgb,var(--brand-2) 8%,var(--surface)));color:var(--brand);display:grid;place-items:center;font-weight:950;flex:0 0 auto}.creator-chip div{min-width:0}.creator-chip strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.creator-chip small{color:var(--muted)}.video-row .video-card{min-width:270px;max-width:310px;scroll-snap-align:start}.resource-block{margin-top:12px}.resource-block h3{font-size:.9rem;color:var(--muted);margin:0 0 9px 4px}.resource-card{min-width:245px;max-width:315px;border:1px solid var(--line);background:var(--surface);border-radius:18px;padding:14px;display:flex;gap:11px;align-items:center;scroll-snap-align:start;box-shadow:var(--shadow)}.resource-card:hover{border-color:var(--brand-2)}.resource-card .route-icon{flex:0 0 auto}.resource-card div{min-width:0}.resource-card strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.resource-card small{display:block;color:var(--muted);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.screen-head{padding:22px;display:flex;align-items:center;gap:18px;justify-content:space-between;flex-wrap:wrap;margin-bottom:16px}.screen-head>div:first-child{flex:1 1 420px}.screen-head h1{font-size:clamp(1.5rem,2.3vw,2.35rem);margin-bottom:8px}.big-search.compact{flex:1 1 470px;min-height:54px}.source-switch{display:flex;gap:6px;flex-wrap:wrap;width:100%;border-top:1px solid var(--line);padding-top:14px}.source-button.active,.segmented button.active{background:var(--brand);color:#fff;border-color:var(--brand)}.search-layout{display:grid;grid-template-columns:245px minmax(0,1fr);gap:16px}.filters{padding:16px;align-self:start;position:sticky;top:calc(var(--top) + 16px);display:grid;gap:14px}.filter-head{display:flex;justify-content:space-between;align-items:center}.filters label{display:grid;gap:6px;font-size:.8rem;font-weight:850;color:var(--muted)}.filters select{width:100%;border:1px solid var(--line);background:var(--surface-2);color:var(--text);border-radius:12px;padding:11px}.focus-choice{display:grid;gap:6px;font-size:.8rem;font-weight:850;color:var(--muted)}.segmented{display:flex;border:1px solid var(--line);padding:3px;border-radius:13px;background:var(--surface-2)}.segmented button{flex:1;border:0;border-radius:9px;padding:8px;background:transparent}.results-area{padding:16px;min-height:520px}.results-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.results-head p{margin:0;color:var(--muted)}.mobile-filter{display:none}.related-resources{margin-bottom:16px;padding:12px;border:1px solid var(--line);background:var(--surface-2);border-radius:16px}.related-resources h3{font-size:.92rem;margin:0 0 9px}.video-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:14px}.video-card{border:1px solid var(--line);border-radius:18px;background:var(--surface);overflow:hidden;display:flex;flex-direction:column;min-width:0;box-shadow:0 5px 18px rgba(16,35,58,.035);transition:transform .14s ease,border-color .14s ease}.video-card:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--brand-2) 42%,var(--line))}.thumb{position:relative;aspect-ratio:16/9;background:var(--surface-3);overflow:hidden;display:block;cursor:pointer;border:0;padding:0;width:100%}.thumb img{width:100%;height:100%;object-fit:cover}.thumb:after{content:"";position:absolute;inset:auto 0 0;height:34%;background:linear-gradient(transparent,rgba(5,18,31,.22));pointer-events:none}.duration{position:absolute;right:8px;bottom:8px;z-index:2;background:rgba(9,24,40,.88);color:#fff;border-radius:8px;padding:4px 7px;font-size:.75rem;font-weight:850}.source-badge{position:absolute;left:8px;top:8px;z-index:2;background:rgba(255,255,255,.94);color:#17324d;border-radius:999px;padding:5px 8px;font-size:.69rem;font-weight:900}.video-body{padding:12px;display:flex;flex-direction:column;gap:9px;min-height:175px}.creator-button{border:0;background:transparent;color:var(--brand);font-weight:850;padding:0;text-align:left;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.creator-button:hover{text-decoration:underline}.video-title{font-size:.98rem;line-height:1.3;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.video-meta{display:flex;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:.8rem}.tags{display:flex;gap:6px;flex-wrap:wrap}.tag{border:0;background:var(--surface-2);color:color-mix(in srgb,var(--text) 80%,var(--muted));padding:5px 8px;border-radius:999px;font-size:.72rem;cursor:pointer}.video-actions{display:flex;gap:7px;margin-top:auto}.video-actions button,.video-actions a{flex:1;border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:8px 9px;font-size:.8rem;font-weight:780;text-align:center;cursor:pointer}.video-actions .watch{background:var(--brand);border-color:var(--brand);color:#fff}.video-actions .saved{background:var(--brand-soft);color:var(--brand)}.connected-card .video-title{min-height:2.6em}.connected-note{color:var(--muted);font-size:.8rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.pagination{display:flex;justify-content:center;gap:7px;flex-wrap:wrap;padding-top:18px}.page-button{min-width:38px;height:38px;border:1px solid var(--line);background:var(--surface);border-radius:10px;cursor:pointer}.page-button.active{background:var(--brand);color:#fff;border-color:var(--brand)}.focus-results{max-width:850px;margin:0 auto}.focus-card{border:1px solid var(--line);border-radius:22px;overflow:hidden;background:var(--surface);box-shadow:var(--shadow)}.focus-card .thumb{aspect-ratio:16/9}.focus-card .video-body{padding:20px;min-height:0}.focus-card .video-title{font-size:1.3rem;-webkit-line-clamp:3}.focus-card .connected-note{font-size:.92rem;-webkit-line-clamp:4}.focus-nav{display:flex;justify-content:space-between;gap:10px;margin-top:14px;align-items:center}
.creator-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:14px}.creator-card{border:1px solid var(--line);background:var(--surface);border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:13px;box-shadow:var(--shadow);min-height:205px}.creator-card-head{display:flex;align-items:center;gap:12px}.creator-card h3{margin:0;font-size:1rem}.creator-card p{margin:4px 0 0;color:var(--muted);font-size:.84rem}.creator-card .tags{margin-top:auto}.creator-card>button{border:1px solid var(--line);background:var(--brand);color:#fff;border-radius:11px;padding:9px 11px;font-weight:850;cursor:pointer}.mini-search{display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:var(--surface-2);border-radius:14px;padding:10px 13px;min-width:min(380px,100%)}.mini-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:var(--text)}.latest-actions{display:flex;gap:8px}.status-line{min-height:26px;color:var(--muted);padding:4px 6px 12px}.center-action{display:flex;justify-content:center;padding:18px}.empty-card{padding:34px;text-align:center}.empty-card p{color:var(--muted)}
dialog{border:0;padding:0;background:transparent;color:var(--text);max-width:none}dialog::backdrop{background:rgba(4,12,22,.64);backdrop-filter:blur(3px)}.media-dialog,.creator-dialog{width:min(1180px,calc(100vw - 24px));max-height:94vh;overflow:auto;border-radius:24px;background:var(--surface);box-shadow:var(--shadow-2)}.dialog-close{position:sticky;float:right;top:12px;right:12px;z-index:10;width:42px;height:42px;border:1px solid var(--line);border-radius:999px;background:var(--surface);font-size:1.45rem;cursor:pointer;margin:12px}.dialog-content{padding:18px 20px 24px;clear:both}.watch-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.7fr);gap:18px}.player{aspect-ratio:16/9;background:#000;border-radius:18px;overflow:hidden}.player iframe{width:100%;height:100%;border:0}.watch-info{padding-top:15px}.watch-info h2{font-size:1.45rem;line-height:1.2;margin-bottom:8px}.watch-info p{color:var(--muted)}.watch-actions{display:flex;gap:8px;flex-wrap:wrap}.watch-actions button,.watch-actions a{border:1px solid var(--line);background:var(--surface);border-radius:11px;padding:9px 12px;font-weight:850;cursor:pointer}.watch-actions .primary{background:var(--brand);color:#fff;border-color:var(--brand)}.watch-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:18px 0 12px}.watch-tabs button{border:1px solid var(--line);background:var(--surface);padding:8px 11px;border-radius:999px;cursor:pointer}.watch-tabs button.active{background:var(--brand-soft);color:var(--brand);border-color:var(--brand-2)}.related-stack{display:grid;gap:9px}.related-item{display:grid;grid-template-columns:120px 1fr;gap:10px;border:1px solid var(--line);background:var(--surface);padding:8px;border-radius:14px;text-align:left;cursor:pointer}.related-item img{width:120px;height:68px;object-fit:cover;border-radius:9px}.related-item strong{font-size:.86rem;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.related-item small{color:var(--muted)}.creator-profile{padding:18px 20px 24px;clear:both}.profile-top{display:flex;gap:16px;align-items:flex-start;padding-bottom:18px;border-bottom:1px solid var(--line)}.profile-top .creator-avatar{width:66px;height:66px;border-radius:20px}.profile-top h2{margin-bottom:5px}.profile-top p{color:var(--muted)}.profile-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.profile-actions button,.profile-actions a{border:1px solid var(--line);background:var(--surface);border-radius:11px;padding:9px 12px;font-weight:850;cursor:pointer}.profile-actions .primary{background:var(--brand);border-color:var(--brand);color:#fff}.profile-section{margin-top:20px}.profile-section h3{margin-bottom:10px}.profile-row{display:flex;gap:12px;overflow:auto;padding-bottom:8px}.profile-row .video-card{min-width:260px;max-width:290px}.profile-row .resource-card{min-width:250px}.profile-feed-more{display:flex;align-items:center;justify-content:center;min-width:180px;border:1px dashed var(--line);border-radius:18px;padding:18px;background:var(--surface-2)}.profile-feed-more button{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:10px 14px;font-weight:850;cursor:pointer}.live-note{color:var(--muted);font-size:.82rem;margin:8px 0 0}.skeleton{min-width:260px;height:240px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(90deg,var(--surface-2),var(--surface-3),var(--surface-2));background-size:220% 100%;animation:shine 1.4s linear infinite}@keyframes shine{to{background-position:-220% 0}}.access-dialog{width:min(480px,calc(100vw - 24px));border-radius:22px;background:var(--surface)}.access-content{padding:26px;clear:both}.setting{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-top:1px solid var(--line)}.setting input{width:22px;height:22px}.bottom-nav{display:none}.noscript{padding:20px;background:#fff4cc;color:#4c3a00}.large-text{font-size:18px}.reduced-motion *{animation:none!important;transition:none!important;scroll-behavior:auto!important}.low-density .video-grid{grid-template-columns:repeat(auto-fill,minmax(340px,1fr))}.low-density .route-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.low-density .video-body{padding:16px}.low-density .profile-row .video-card,.low-density .video-row .video-card{min-width:340px}.low-density .connected-note,.low-density .video-meta{display:none}
@media(max-width:1100px){.route-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.watch-layout{grid-template-columns:1fr}.search-layout{grid-template-columns:210px minmax(0,1fr)}}
@media(max-width:760px){:root{--top:64px}.topbar{height:var(--top)}.brand-wrap{padding:0 12px}.brand img{width:44px;height:44px}.brand strong{font-size:.92rem}.app-shell{display:block}.side-nav{display:none}.main-content{padding:14px 12px 92px}.bottom-nav{position:fixed;display:grid;grid-template-columns:repeat(5,1fr);left:8px;right:8px;bottom:max(8px,env(safe-area-inset-bottom));z-index:45;background:color-mix(in srgb,var(--surface) 93%,transparent);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow-2);padding:5px;backdrop-filter:blur(18px)}.bottom-nav .nav-item{min-height:54px;border-radius:15px}.home-hero{padding:22px 18px}.route-grid{grid-template-columns:1fr 1fr}.route-card{min-height:132px;padding:15px}.search-layout{display:block}.filters{display:none;position:static;margin-bottom:12px}.filters.open{display:grid}.mobile-filter{display:inline-flex}.results-area{padding:12px}.screen-head{padding:18px}.big-search.compact{flex-basis:100%}.source-switch{overflow:auto;flex-wrap:nowrap}.source-button{white-space:nowrap}.watch-layout{display:block}.related-stack{margin-top:12px}.profile-top{flex-direction:column}.profile-row .video-card{min-width:78vw}.latest-actions{width:100%;flex-wrap:wrap}.latest-actions button{flex:1}.resource-card{min-width:76vw}}
@media(max-width:520px){.video-grid{grid-template-columns:1fr}.creator-grid{grid-template-columns:1fr}.home-hero h1{font-size:1.8rem}.quick-context{display:grid;grid-template-columns:1fr 1fr}.quick-context button{border-radius:12px}.top-actions .icon-button{width:40px;height:40px}.video-row .video-card{min-width:84vw}.creator-chip{min-width:78vw}.route-grid{grid-template-columns:1fr}.route-card{min-height:116px}.related-item{grid-template-columns:95px 1fr}.related-item img{width:95px;height:56px}}
