:root{color-scheme:light;--bg: #eef3f0;--surface: #ffffff;--surface-soft: #f4f7f5;--ink: #14211f;--muted: #64726f;--line: #d8e0dd;--teal: #0b7d73;--teal-dark: #045c55;--coral: #d05b45;--gold: #c39134;--green-soft: #dff0ea;--error-soft: #ffe5df;--shadow: 0 18px 45px rgba(26, 43, 39, .13);--radius: 8px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;font-size:16px;line-height:1.5;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}html,body,#app{min-height:100%}body{margin:0;background:linear-gradient(180deg,#102d2914,#102d2900 340px),linear-gradient(135deg,rgba(11,125,115,.11),rgba(208,91,69,.05) 52%,transparent),var(--bg)}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.42}a{color:inherit}.app-shell{width:min(1580px,calc(100% - 28px));min-height:100vh;margin:0 auto;display:flex;flex-direction:column;gap:14px;padding:14px 0 18px}.topbar,.site-footer{display:flex;align-items:center;justify-content:space-between;gap:14px}.brand{display:inline-flex;align-items:center;min-width:0;gap:10px;color:inherit;text-decoration:none}.brand-mark{width:42px;height:42px;display:grid;place-items:center;flex:0 0 auto;border-radius:var(--radius);color:#fff;background:linear-gradient(135deg,var(--teal),#38a07e);box-shadow:0 10px 28px #0b7d7338}.brand strong{display:block;font-size:18px;line-height:1.15}.brand small{display:block;color:var(--muted);font-size:12px}.top-actions,.player-actions,.channel-card-actions,.dialog-links{display:flex;align-items:center;gap:8px}.icon-button,.command-button,.favorite-chip{min-height:38px;border:1px solid var(--line);border-radius:var(--radius);background:#ffffffe6;color:var(--ink);transition:border-color .16s ease,background .16s ease,color .16s ease,transform .16s ease}.icon-button{width:38px;height:38px;display:inline-grid;place-items:center;text-decoration:none}.icon-button.accent{border-color:#d05b4557;color:var(--coral);background:#fff7f4}.icon-button:hover,.command-button:hover,.favorite-chip:hover{border-color:#0b7d7373;transform:translateY(-1px)}.icon-button:focus-visible,.command-button:focus-visible,.favorite-chip:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid rgba(11,125,115,.22);outline-offset:2px}.command-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 14px;font-weight:800}.command-button.primary{color:#fff;border-color:var(--teal);background:var(--teal)}.command-button.feedback-button{color:var(--muted);border-color:#d8e0ddf2;background:#ffffffb8}.command-button.compact{min-height:34px;padding:0 10px;font-size:13px}.favorite-toggle.active,.favorite-chip.active{color:#7a4e00;border-color:#c3913480;background:#fff4d7}.workspace{flex:1;display:grid;grid-template-columns:minmax(0,1fr) 390px;grid-template-areas:"watch playlists" "browse playlists" "favorites playlists" "channels playlists";gap:14px;align-items:start}.watch-panel,.playlist-panel,.browse-panel,.shelf-section,.channel-section{min-width:0;border:1px solid rgba(216,224,221,.9);border-radius:var(--radius);background:#ffffffeb;box-shadow:var(--shadow)}.watch-panel{grid-area:watch;overflow:hidden}.player-frame{position:relative;aspect-ratio:16 / 9;background:radial-gradient(circle at 22% 20%,rgba(11,125,115,.22),transparent 30%),linear-gradient(140deg,#0e1715,#26342f 58%,#171311)}.player-frame video,.empty-player{width:100%;height:100%}.player-frame video{display:block;background:#0d1412}.empty-player{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;gap:10px;color:#ffffffc7;text-align:center;background:linear-gradient(180deg,#0d141242,#0d14128f)}.empty-player svg{width:58px;height:58px;opacity:.72}.empty-player[hidden]{display:none}.playback-prompt{width:min(360px,calc(100% - 34px));display:flex;flex-direction:column;align-items:center;gap:9px;padding:22px 18px;border:1px solid rgba(255,255,255,.2);border-radius:var(--radius);background:#07100e75;box-shadow:0 22px 60px #0000003d;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.playback-prompt>svg{width:44px;height:44px}.playback-prompt strong{font-size:20px;line-height:1.2}.playback-prompt span{color:#ffffffb8;font-size:13px}.player-start-button{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:8px;max-width:100%;margin-top:2px;padding:0 16px;border:1px solid rgba(255,255,255,.18);border-radius:var(--radius);color:#fff;background:var(--teal);font-weight:900}.player-start-button svg{width:18px;height:18px}.player-meta{display:flex;justify-content:space-between;gap:18px;padding:16px}.now-playing{min-width:0;display:grid;grid-template-columns:72px minmax(0,1fr);gap:14px;align-items:center}.player-logo{width:72px;height:72px}.player-logo-inner,.channel-logo,.shelf-logo,.playlist-logo{position:relative;display:grid;place-items:center;overflow:hidden;border:1px solid rgba(216,224,221,.85);border-radius:var(--radius);background:linear-gradient(180deg,#fff,#eef5f2);color:var(--teal-dark);font-weight:900}.player-logo-inner{width:72px;height:72px}.channel-logo{width:56px;height:56px;flex:0 0 auto}.playlist-logo{width:44px;height:44px;flex:0 0 auto}.shelf-logo{width:76px;height:76px}.player-logo-inner img,.channel-logo img,.shelf-logo img,.playlist-logo img{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:contain;padding:7px;background:#fff}.logo-fallback{z-index:0}.player-meta h1{margin:2px 0 5px;overflow-wrap:anywhere;font-size:clamp(26px,4vw,48px);line-height:1.03;letter-spacing:0}.player-status{margin:0;color:var(--muted)}.player-status[data-tone=warn]{color:#986512}.player-status[data-tone=error]{color:#a53d2e}.source-switcher{margin-top:10px}.source-switcher:empty{display:none}.source-switcher-label{margin-bottom:6px;color:var(--muted);font-size:12px;font-weight:900}.source-switcher-buttons{display:flex;flex-wrap:wrap;gap:7px}.source-switcher-buttons button{min-height:34px;display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:0 10px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--muted);font-size:12px;font-weight:900}.source-switcher-buttons button.active{color:#fff;border-color:var(--teal);background:var(--teal)}.source-switcher-buttons em{max-width:88px;overflow:hidden;color:inherit;font-style:normal;text-overflow:ellipsis;white-space:nowrap;opacity:.78}.player-actions{flex:0 0 auto;align-self:end;flex-wrap:wrap;justify-content:flex-end}.playlist-panel{grid-area:playlists;position:sticky;top:14px;max-height:calc(100vh - 28px);overflow:auto;display:flex;flex-direction:column;gap:12px;padding:14px}.playlist-panel-head,.playlist-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.playlist-panel-head h2,.playlist-title h3{margin:1px 0 0;letter-spacing:0}.playlist-panel-head h2{font-size:22px;line-height:1.12}.playlist-panel-head>svg{color:var(--gold)}.playlist-stack{display:grid;gap:14px}.playlist-block{display:grid;gap:8px;padding-top:12px;border-top:1px solid rgba(216,224,221,.78)}.playlist-title h3{font-size:15px;line-height:1.2}.playlist-title p{margin:2px 0 0;color:var(--muted);font-size:12px}.playlist-title>span{min-width:28px;min-height:26px;display:inline-grid;place-items:center;padding:0 8px;border-radius:999px;color:var(--teal-dark);background:var(--green-soft);font-size:12px;font-weight:900}.playlist-rows{display:grid;gap:7px}.playlist-row{width:100%;min-width:0;min-height:60px;display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:9px;align-items:center;padding:7px;border:1px solid rgba(216,224,221,.72);border-radius:var(--radius);background:#fff;color:inherit;text-align:left;transition:border-color .16s ease,background .16s ease,transform .16s ease}.playlist-row:hover,.playlist-row.active{border-color:#0b7d7373;background:#f6fffb;transform:translateY(-1px)}.playlist-copy{min-width:0;display:grid;gap:2px}.playlist-copy strong,.playlist-copy span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.playlist-copy strong{font-size:14px}.playlist-copy span{color:var(--muted);font-size:12px}.playlist-quality{min-height:26px;display:inline-grid;place-items:center;padding:0 8px;border-radius:999px;color:var(--teal-dark);background:var(--green-soft);font-size:12px;font-weight:900}.browse-panel{grid-area:browse;display:grid;gap:12px;padding:14px}.search-box{min-height:44px;display:flex;align-items:center;gap:9px;padding:0 12px;border:1px solid var(--line);border-radius:var(--radius);background:#fff}.search-box svg{flex:0 0 auto;color:var(--muted)}.search-box input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--ink)}.browse-chips{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;padding-bottom:2px;scrollbar-width:thin}.browse-chips button{min-height:36px;display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;padding:0 11px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--muted);font-size:13px;font-weight:900}.browse-chips button.active{color:#fff;border-color:var(--teal);background:var(--teal)}.browse-chips strong{font-size:12px}.filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.guide-panel{display:grid;gap:10px}.guide-heading{min-height:34px;display:flex;align-items:center;gap:8px;color:var(--teal-dark);font-size:13px;font-weight:900}.guide-heading svg{width:16px;height:16px}.guide-accordion{display:grid;gap:9px}.guide-group{overflow:hidden;border:1px solid rgba(216,224,221,.92);border-radius:var(--radius);background:#ffffffc7}.guide-group summary{min-height:40px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 12px;color:var(--muted);font-size:12px;font-weight:900;list-style:none;cursor:pointer}.guide-group summary::-webkit-details-marker{display:none}.guide-group summary:after{content:"+";color:var(--teal-dark);font-size:16px}.guide-group[open] summary:after{content:"-"}.guide-list{display:grid;gap:6px;padding:0 8px 8px}.guide-button{width:100%;min-height:58px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:9px 10px;border:1px solid transparent;border-radius:var(--radius);background:transparent;color:inherit;text-align:left}.guide-button:hover{border-color:#0b7d733d;background:#f7fbf9}.guide-button.active{border-color:#0b7d7373;background:var(--green-soft)}.guide-copy{min-width:0;display:grid;gap:2px}.guide-copy strong,.guide-copy span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.guide-copy strong{font-size:14px}.guide-copy span{color:var(--muted);font-size:12px}.guide-count{min-width:40px;min-height:28px;display:inline-grid;place-items:center;padding:0 8px;border-radius:999px;color:var(--teal-dark);background:#edf6f2;font-size:12px;font-weight:900}.guide-button.active .guide-count{color:#fff;background:var(--teal)}.quick-filters{display:flex;flex-wrap:wrap;gap:7px}.quick-filters button{max-width:100%;min-height:32px;padding:0 10px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--muted);font-size:13px;font-weight:800}.quick-filters button.active{color:#fff;border-color:var(--teal);background:var(--teal)}.select-field{display:grid;gap:6px}.select-field span,.eyebrow{color:var(--muted);font-size:12px;font-weight:900;letter-spacing:0}.select-field select{width:100%;min-width:0;min-height:40px;padding:0 36px 0 10px;border:1px solid var(--line);border-radius:var(--radius);background:#fff;color:var(--ink)}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.stat-card{min-height:70px;padding:11px;border:1px solid rgba(216,224,221,.85);border-radius:var(--radius);background:linear-gradient(180deg,#fff,var(--surface-soft))}.stat-card strong,.stat-card span{display:block}.stat-card strong{font-size:22px;line-height:1.1}.stat-card span{margin-top:4px;color:var(--muted);font-size:12px}.shelf-section,.channel-section{padding:14px}.featured-section{grid-area:featured}.favorites-section{grid-area:favorites}.channel-section{grid-area:channels}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.section-head h2{margin:1px 0 0;font-size:22px;line-height:1.15;letter-spacing:0}.section-head>svg{color:var(--gold)}.channel-shelf{width:100%;min-width:0;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(190px,230px);gap:10px;overflow-x:auto;overscroll-behavior-x:contain;padding-bottom:3px;scrollbar-width:thin}.shelf-card{position:relative;min-width:0;min-height:164px;border:1px solid rgba(216,224,221,.88);border-radius:var(--radius);background:linear-gradient(180deg,#fffffff5,#f7faf8f5),var(--surface);transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.shelf-card:hover,.shelf-card.active{border-color:#0b7d737a;box-shadow:0 12px 30px #1a2b271f}.shelf-card.active{background:linear-gradient(180deg,#f4fffb,#fff)}.shelf-main{width:100%;height:100%;min-height:164px;display:grid;grid-template-rows:76px minmax(0,1fr) auto;gap:10px;justify-items:start;padding:12px;border:0;background:transparent;color:inherit;text-align:left}.shelf-copy{min-width:0;display:grid;gap:2px}.shelf-copy strong,.shelf-copy span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shelf-copy strong{max-width:160px;font-size:16px}.shelf-copy span{color:var(--muted);font-size:12px}.shelf-badge,.source-badge{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-flex;align-items:center;min-height:28px;padding:0 9px;border-radius:999px;color:var(--teal-dark);background:var(--green-soft);font-size:12px;font-weight:900}.shelf-badge.reported,.source-badge.reported{color:#80601b;background:#fff3d1}.favorite-chip{position:absolute;top:10px;right:10px;width:34px;height:34px;display:inline-grid;place-items:center;padding:0}.empty-shelf{min-height:110px;min-width:min(100%,360px);display:grid;place-items:center;gap:8px;padding:18px;border:1px dashed var(--line);border-radius:var(--radius);color:var(--muted);text-align:center;background:#ffffffa3}.channel-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:10px}.channel-card{min-width:0;min-height:108px;display:grid;gap:10px;padding:10px;border:1px solid rgba(216,224,221,.88);border-radius:var(--radius);background:#fff;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.channel-card:hover,.channel-card.active{border-color:#0b7d7373;box-shadow:0 12px 30px #1a2b271a}.channel-card.active{background:linear-gradient(180deg,#f7fffc,#fff)}.channel-main{min-width:0;width:100%;display:grid;grid-template-columns:56px minmax(0,1fr);gap:10px;align-items:center;padding:0;border:0;background:transparent;color:inherit;text-align:left}.channel-copy{min-width:0;display:grid;gap:3px}.channel-copy strong,.channel-copy span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.channel-copy strong{font-size:16px}.channel-copy span{color:var(--muted);font-size:12px}.channel-card-actions{justify-content:space-between}.status-panel{margin-bottom:12px}.loading-card,.empty-card{min-height:130px;display:grid;place-items:center;gap:10px;padding:18px;border:1px dashed var(--line);border-radius:var(--radius);background:#ffffff9e;color:var(--muted);text-align:center}.loading-card svg{animation:spin 1s linear infinite}.error-card{color:#8f3528;background:var(--error-soft)}.load-more-wrap{display:flex;justify-content:center;margin-top:14px}.load-more-wrap [hidden]{display:none}.site-footer{flex-wrap:wrap;padding:2px 0;color:var(--muted);font-size:13px}.site-footer a,.dialog-links a{color:var(--teal-dark);font-weight:800;text-decoration:none}.support-dialog{width:min(620px,calc(100vw - 28px));padding:0;border:1px solid var(--line);border-radius:var(--radius);background:#fff;color:var(--ink);box-shadow:var(--shadow)}.support-dialog::backdrop{background:#0d17157a}.close-dialog{position:absolute;top:10px;right:10px}.dialog-grid{display:grid;grid-template-columns:220px minmax(0,1fr);gap:20px;align-items:center;padding:28px}.dialog-grid img{width:100%;max-height:260px;object-fit:contain;border:1px solid var(--line);border-radius:var(--radius);background:#fff}.dialog-grid h2{margin:4px 0 8px;font-size:26px}.dialog-grid p{margin:0 0 14px;color:var(--muted)}.dialog-links{flex-wrap:wrap}.dialog-links a{min-height:34px;display:inline-flex;align-items:center;padding:0 10px;border:1px solid var(--line);border-radius:var(--radius)}svg{width:18px;height:18px;stroke-width:2.1}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:1040px){.workspace{grid-template-columns:1fr;grid-template-areas:"watch" "playlists" "browse" "favorites" "channels"}.playlist-panel{position:static;max-height:none;overflow:visible}.playlist-stack{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:680px){.app-shell{width:min(calc(100% - 20px),1580px);padding-top:10px}.topbar{align-items:flex-start}.brand small{display:none}.top-actions{gap:6px}.icon-button{width:36px;height:36px;min-height:36px}.player-meta,.section-head{flex-direction:column;align-items:stretch}.now-playing{grid-template-columns:56px minmax(0,1fr)}.player-logo,.player-logo-inner{width:56px;height:56px}.player-actions{justify-content:flex-start}.playlist-stack,.filter-grid{grid-template-columns:1fr}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.command-button{min-height:40px}.channel-shelf{grid-auto-columns:minmax(166px,190px)}.shelf-main{min-height:152px}.shelf-logo{width:64px;height:64px}.channel-list{grid-template-columns:1fr}.dialog-grid{grid-template-columns:1fr;padding:24px 18px 18px}.dialog-grid img{max-width:260px;justify-self:center}}
