:root{color-scheme:light;--bg:#f4f6f3;--surface:#fff;--text:#1d3027;--muted:#617168;--line:#dce4de;--green:#246348;--green-hover:#1d523b;--soft:#eaf1eb;--error:#923d25;--error-bg:#fff2eb;--radius:12px;font:15px/1.5 'Segoe UI',system-ui,-apple-system,sans-serif;color:var(--text);background:var(--bg)}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{touch-action:manipulation}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}button{transition:background .18s,border-color .18s,color .18s}a{color:var(--green);text-underline-offset:3px}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}button:focus-visible,a:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid #45996f;outline-offset:4px}input:focus,select:focus,textarea:focus{outline:2px solid var(--green);outline-offset:2px}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1{font-weight:550;font-size:36px;letter-spacing:-1.1px;line-height:1.2}h2{font-weight:550}h3{font-size:16px;font-weight:600}button{border:0}input,textarea,select{border:1px solid #cdd8d0;border-radius:8px;background:#fafcf9;padding:11px 12px;width:100%}input,select{min-height:44px}textarea{display:block;resize:vertical;min-height:150px;line-height:1.75;font-size:13px}textarea::placeholder,input::placeholder{color:#748177;opacity:1}label{display:block;font-weight:550;margin-bottom:8px}hr{border:0;border-top:1px solid var(--line)}
.skip-link{position:fixed;top:-100px;left:12px;padding:12px 20px;background:white;z-index:100}.skip-link:focus{top:12px}.topbar{height:91px;padding:0 40px;display:flex;align-items:center;gap:26px;border-bottom:1px solid var(--line);background:var(--surface)}.brand{display:flex;align-items:center;gap:11px;font-size:28px;font-weight:650;letter-spacing:-1px;text-decoration:none;color:var(--text)}.brand-mark{width:39px;height:39px;border-radius:11px;display:grid;place-items:center;background:var(--green);color:white}.brand-mark svg{width:29px;height:29px;stroke-width:1.8}.brand-dot{margin-left:-11px;color:var(--green)}.tagline{font-size:13px;color:var(--muted);border-left:1px solid var(--line);padding-left:25px}.top-actions{display:flex;align-items:center;gap:20px;margin-left:auto}.local-badge{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.local-badge>span{width:6px;height:6px;border-radius:50%;background:#508665}.icon-button{display:grid;place-items:center;min-height:44px;min-width:44px;background:transparent;border:1px solid transparent;border-radius:9px;font-size:20px;font-weight:400}.icon-button:hover{background:var(--soft)}#help-open{font-size:15px;border-color:var(--line);border-radius:50%;min-width:32px;min-height:32px}.app-layout{display:grid;grid-template-columns:340px minmax(0,1fr);max-width:1800px;margin:0 auto;min-height:calc(100vh - 91px)}.sidebar{background:var(--surface);border-right:1px solid var(--line);padding:26px 25px 24px;display:flex;flex-direction:column;min-width:0}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px;min-height:32px}.section-heading h2,.eyebrow{font-size:10px;letter-spacing:1.65px;font-weight:650;color:var(--muted)}.section-heading .icon-button{margin:-7px -9px -7px 0}.tiny-label{font-size:11px;color:var(--muted);white-space:nowrap}.themes{display:flex;flex-wrap:wrap;gap:7px}.theme-button{padding:10px 13px;background:#fff;border:1px solid var(--line);border-radius:8px;display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:44px;text-align:left;font-size:13px;max-width:100%;overflow-wrap:anywhere}.theme-button[aria-pressed=true]{color:var(--green);border-color:#bed2c3;background:var(--soft)}.theme-button:hover{border-color:#8bb49b}.theme-button .theme-dot{width:5px;height:5px;border-radius:50%;background:currentColor;flex-shrink:0}.import-section{margin-top:30px;padding-top:23px;border-top:1px solid var(--line)}.input-title{font-size:16px;letter-spacing:-.3px;margin:13px 0 6px}.hint{font-size:12px;color:var(--muted);line-height:1.65}.small-label{font-size:11px;color:var(--muted);font-weight:400;margin:13px 0 5px}#account-help{margin-bottom:14px}#platform{font-size:12px;background:white}.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:10px 16px;border-radius:8px;background:white;border:1px solid #cdd8d0;font-size:13px;font-weight:550;text-decoration:none}.button:hover{background:var(--soft);border-color:#adc4b4}.button.primary{color:white;background:var(--green);border-color:var(--green)}.button.primary:hover{background:var(--green-hover)}.full{width:100%}#preview-button{margin-top:14px}.import-footnote{font-size:11px;color:var(--muted);margin-top:14px;line-height:1.75}.accounts-section{margin-top:26px;padding-top:20px;border-top:1px solid var(--line)}.accounts{padding:0;margin:0;list-style:none}.account{display:flex;gap:10px;align-items:center;margin-bottom:13px}.account-icon{flex:0 0 31px;height:31px;display:grid;place-items:center;border-radius:9px;background:var(--soft);color:var(--green);font-size:10px;font-weight:600}.account-info{min-width:0;flex:1}.account-name{display:block;font-weight:550;font-size:12px;overflow-wrap:anywhere;text-decoration:none}.account-platform{font-size:10px;color:var(--muted)}.account .icon-button{min-width:34px;font-size:18px;color:var(--muted)}.text-button{padding:9px 5px;min-height:44px;display:inline-flex;gap:8px;align-items:center;justify-content:center;font-size:12px;font-weight:500;color:var(--green);background:transparent;text-decoration:none;border-radius:7px}.text-button:hover{background:var(--soft)}#links-open{justify-content:flex-start;margin-top:6px}.sidebar-footer{margin-top:auto;padding-top:28px;display:flex;gap:13px;align-items:flex-start;color:var(--muted);font-size:11px;line-height:1.7}.sidebar-footer>span{font-size:23px;color:#659177;margin-top:-3px}.main{padding:38px 45px 0;min-width:0;display:flex;flex-direction:column;outline:none}.feed-header{display:flex;justify-content:space-between;align-items:center;gap:18px}.feed-header .eyebrow{margin-bottom:10px}.feed-description{font-size:13px;color:var(--muted);margin-top:10px}.feed-header-actions{display:flex;align-items:center;gap:8px}.feed-header-actions .button svg{width:16px;height:16px}.feed-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:25px 0 20px;margin-bottom:3px}.filters{display:flex;gap:4px;padding:4px;background:#e8ede7;border-radius:9px}.filters button{font-size:12px;border-radius:6px;background:transparent;min-height:36px;padding:7px 12px;color:var(--muted);white-space:nowrap}.filters button[aria-pressed=true]{background:white;color:var(--text);box-shadow:0 1px 3px #1d30270d}.filters button span{font-size:10px;padding:1px 5px;border-radius:4px;margin-left:5px;color:var(--green);background:var(--soft)}.sort-label{font-size:11px;color:var(--muted);white-space:nowrap}.refresh-status{font-size:12px;color:var(--muted);min-height:20px;margin:10px 0}.source-details{border:1px solid var(--line);background:#fff;border-radius:9px;font-size:12px;margin-bottom:18px}.source-details summary{cursor:pointer;padding:11px 14px;color:var(--muted);min-height:44px}.source-results{padding:0 14px}.source-result{border-top:1px solid var(--line);padding:12px 14px}.source-result strong{font-size:12px}.source-result p{font-size:12px;color:var(--muted);margin-top:5px}.source-result .status-badge{display:inline-block;margin-left:8px;font-size:10px;border-radius:4px;padding:2px 5px;background:var(--soft);color:var(--green)}.source-result .status-badge.limited,.source-result .status-badge.error{color:var(--error);background:var(--error-bg)}.empty-state{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;flex:1;padding:32px 15px 65px;min-height:520px}.empty-symbol{position:relative;width:125px;height:114px;margin-bottom:25px;color:#7f9e89}.empty-symbol svg{width:110px;height:110px;stroke-width:1.1}.empty-symbol svg rect{fill:#f4f6f3}.empty-symbol svg rect:nth-child(2){fill:#e7eee7;stroke:#a3bda9}.empty-symbol svg path{fill:#fff;stroke:#91b09b}.empty-line{position:absolute;width:15px;height:1px;background:#a3bda9;transform:rotate(-35deg);top:28px;right:1px}.empty-line.two{width:8px;top:43px;right:-4px;transform:rotate(-10deg)}.empty-state>.eyebrow{font-size:9px;letter-spacing:1.5px}.empty-state h2{font-size:31px;line-height:1.3;letter-spacing:-.8px;margin-top:13px}.empty-state>p:not(.eyebrow){font-size:13px;color:var(--muted);line-height:1.8;margin-top:16px}.empty-state>.button{margin-top:23px;min-width:205px}.platform-list{display:flex;gap:18px;align-items:center;margin-top:36px;font-size:11px;font-weight:550;color:var(--muted)}.platform-list span+span:before{content:'·';margin-right:18px;color:#9eafa2}.empty-state>p.empty-note{font-size:10px;line-height:1.7;margin-top:12px;max-width:420px}.main-footer{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;border-top:1px solid var(--line);margin-top:auto;min-height:68px;font-size:10px;color:var(--muted)}.main-footer .text-button{font-size:10px}.video-section{padding:10px 0 30px;width:min(100%,850px);margin:auto;flex:1}.video-topline{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted);max-width:730px;margin:0 auto 16px}.platform-tag{font-size:10px;background:var(--soft);color:var(--green);padding:4px 9px;border-radius:5px;font-weight:600}.theater{position:relative;display:flex;align-items:center;justify-content:center;gap:18px;padding:0 30px 0 5px;min-height:370px}.player-frame{position:relative;display:flex;align-items:center;justify-content:center;background:#15211c;border-radius:14px;overflow:hidden;width:min(100%,340px);height:min(62vh,605px);min-height:380px;border:1px solid #d0dbd2;box-shadow:0 9px 25px #18322509}.player-frame.horizontal{width:100%;max-width:730px;height:auto;aspect-ratio:16/9;min-height:230px}.player-frame.instagram{width:min(100%,375px);height:620px;max-height:72vh;min-height:430px;background:white}.player-frame iframe{border:0;display:block;width:100%;height:100%;background:#15211c}.player-frame.horizontal iframe{position:absolute;inset:0}.player-frame .player-loading{padding:25px;color:white;text-align:center;font-size:13px}.video-nav{display:flex;align-items:center;flex-direction:column;gap:13px;flex:0 0 63px}.nav-button{display:flex;align-items:center;justify-content:center;flex-direction:column;background:white;border:1px solid var(--line);border-radius:10px;padding:9px 5px;min-width:63px;min-height:67px;font-size:9px;gap:5px}.nav-button:hover{background:var(--soft)}.nav-button>span:first-child{font-size:22px;line-height:1.2}.nav-rule{width:1px;height:20px;background:var(--line)}.video-information{max-width:730px;margin:22px auto 0}.video-byline{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;font-size:12px;color:var(--muted);margin-bottom:7px}.video-byline span:first-child{color:var(--green);font-weight:550}.video-information h2{font-size:21px;line-height:1.4;letter-spacing:-.4px;overflow-wrap:anywhere}.video-information>.hint{margin-top:7px}.video-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px}.video-actions .button.is-seen{background:var(--soft);color:var(--green);border-color:#b4cdbd}.view-hint{font-size:10px;color:var(--muted);margin-top:13px}.view-hint+.view-hint{margin-top:5px}.notice{padding:12px 14px;background:var(--soft);border-radius:8px;font-size:12px}.notice.error{color:var(--error);background:var(--error-bg)}.storage-warning{border-radius:0}.import-preview{margin-top:13px;border:1px solid var(--line);border-radius:8px;background:var(--bg);padding:12px;font-size:12px}.import-preview ul{list-style:none;padding:0;margin:10px 0;max-height:250px;overflow:auto}.import-preview li{padding:7px 0;border-top:1px solid var(--line);overflow-wrap:anywhere;font-size:11px}.import-preview li small{display:block;color:var(--muted);font-size:10px}.import-preview .notice{margin:8px 0;padding:9px;font-size:11px}.import-preview .button{margin-top:8px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:16px;padding:14px 18px;background:var(--text);color:white;border-radius:10px;max-width:min(650px,calc(100% - 32px));width:max-content;box-shadow:0 7px 30px #12241c20;font-size:13px;z-index:30}.toast button{background:transparent;color:#c3efd2;min-height:40px;min-width:30px;font-size:13px}.toast #toast-close{color:white;font-size:22px}dialog{color:var(--text);border:1px solid var(--line);border-radius:17px;padding:28px;width:560px;max-width:calc(100% - 28px);max-height:calc(100dvh - 40px);box-shadow:0 24px 100px #18322530}dialog::backdrop{background:#10281dcc;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.dialog-heading h2{font-size:25px;letter-spacing:-.6px}.dialog-heading .icon-button{margin:-10px -10px 0 0}.help-content p{font-size:13px;line-height:1.8;color:var(--muted);margin:10px 0 18px}.help-content h3{margin-top:23px}.help-content strong{color:var(--text)}.theme-editor-row{padding-top:18px;margin-top:16px;border-top:1px solid var(--line)}.theme-editor-row label{font-size:12px}.inline-form{display:flex;align-items:center;gap:8px}.inline-form input{min-width:0;flex:1}.theme-editor-actions{display:flex;justify-content:flex-end;gap:10px}.danger-button{color:var(--error)}.new-theme-form{margin:24px 0}.new-theme-form>label{font-size:13px}#links-form{margin-top:20px}#links-form>label{font-size:13px}#links-form>.hint{margin:12px 0}#links-feedback{font-size:12px;margin:12px 0;max-height:180px;overflow:auto}#links-feedback p{padding:7px 0;overflow-wrap:anywhere}.mobile-only{display:none}
@media(min-width:1500px){.main{padding:48px 70px 0}.sidebar{padding-left:30px;padding-right:30px}.app-layout{grid-template-columns:365px minmax(0,1fr)}}
@media(max-width:1100px){.app-layout{grid-template-columns:310px minmax(0,1fr)}.sidebar{padding-left:21px;padding-right:21px}.main{padding:30px 28px 0}.topbar{padding:0 28px}.sort-label{display:none}.theater{padding:0;gap:12px}.video-nav{flex-basis:56px}.nav-button{min-width:56px}.feed-header{align-items:flex-start}h1{font-size:32px}}
@media(max-width:760px){.topbar{height:76px;padding:0 19px;gap:12px}.brand{font-size:25px}.brand-mark{width:33px;height:33px;border-radius:9px}.tagline{display:none}.local-badge{font-size:10px}.top-actions{gap:12px}.app-layout{display:flex;flex-direction:column;min-height:calc(100dvh - 76px)}.sidebar{display:none;order:0;border-right:0;border-bottom:1px solid var(--line);padding:23px 22px}.sidebar.mobile-open{display:flex}.sidebar-footer{display:none}.themes{gap:8px}.theme-button{font-size:14px}.import-section{margin-top:20px}.import-section textarea{min-height:150px}.main{padding:25px 20px 0;order:1;min-height:calc(100dvh - 76px)}.feed-header{gap:12px;flex-wrap:wrap}.feed-header-actions{margin-left:auto}.feed-header-actions .button{padding:9px 10px;font-size:11px}.mobile-only{display:inline-flex}h1{font-size:31px}.feed-description{font-size:12px}.feed-header .eyebrow{font-size:9px}.feed-toolbar{padding:21px 0 15px}.filters button{padding:8px 11px;min-height:40px}.empty-state{min-height:460px;padding:27px 0 44px}.empty-state h2{font-size:28px}.empty-state>p:not(.eyebrow){font-size:12px}.empty-state>p.empty-note{font-size:10px}.empty-symbol{margin-bottom:15px}.main-footer{padding:12px 0;gap:0;align-items:flex-start;flex-direction:column}.main-footer .text-button{padding:6px 0;min-height:33px}.video-topline{margin-top:1px}.theater{flex-direction:column;gap:13px}.player-frame{height:57vh;min-height:380px;width:min(100%,340px)}.player-frame.horizontal{min-height:200px;width:100%}.player-frame.instagram{height:600px;max-height:70vh}.video-nav{flex-direction:row;flex-basis:auto;width:100%;justify-content:space-between;gap:8px}.nav-rule{height:1px;width:auto;flex:1;margin:0 10px}.nav-button{flex-direction:row;gap:10px;min-height:44px;font-size:11px;padding:8px 12px}.nav-button>span:first-child{font-size:20px}.video-information{margin-top:17px}.video-information h2{font-size:19px}.video-actions{flex-wrap:wrap;gap:5px}.view-hint{font-size:11px}.source-details summary{font-size:11px}dialog{padding:22px}.dialog-heading h2{font-size:22px}input,textarea,select,#platform{font-size:16px}.button{min-height:44px}.small-label{font-size:12px}.theme-editor-actions .text-button{font-size:12px}.toast{bottom:16px;font-size:12px;gap:9px;padding:10px 14px}.toast>span{max-width:240px}}
@media(max-width:380px){.main{padding-left:15px;padding-right:15px}.feed-header-actions{margin-left:0}.local-badge{display:none}.empty-state h2{font-size:26px}.topbar{padding:0 17px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.wheel-hint{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:74px;min-height:145px;font-size:10px;color:var(--muted);border:1px dashed #c3d2c7;border-radius:12px;background:#eaf1eb66}.mouse-icon{display:block;width:18px;height:27px;border:1.5px solid #83a18d;border-radius:9px;position:relative}.mouse-icon:before{content:'';display:block;position:absolute;width:2px;height:6px;background:#83a18d;left:6.5px;top:5px;border-radius:2px}.full-caption{margin-top:8px;color:var(--muted);font-size:12px}.full-caption summary{cursor:pointer;min-height:40px;display:flex;align-items:center;color:var(--green)}.full-caption p{white-space:pre-line;line-height:1.7}.video-nav{flex-basis:74px}.nav-button{min-width:74px}.video-information #full-caption[hidden]{display:none!important}
@media(max-width:760px){.wheel-hint{display:none}.video-nav{flex-basis:auto}.nav-button{min-width:110px}#help-open{min-width:44px;min-height:44px}.account .icon-button{min-width:44px}.full-caption summary{min-height:44px}}
.player-frame video{display:block;width:100%;height:100%;object-fit:contain;background:#15211c}.player-frame.native.horizontal video{position:absolute;inset:0}
.filters button{color:#526258}

/* The image alone receives clicks and wheel navigation. */
.player-shell{width:min(100%,340px);min-width:0;flex:0 1 auto;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#15211c;box-shadow:0 9px 25px #18322509}
.player-shell.horizontal{width:min(100%,730px)}
.player-shell .player-frame{width:100%;max-width:none;border:0;border-radius:0;box-shadow:none;height:clamp(308px,calc(100dvh - 482px),588px);min-height:0}
.player-shell.horizontal .player-frame{height:auto;min-height:0;max-height:clamp(248px,calc(100dvh - 482px),588px);aspect-ratio:16/9}
.player-host{position:absolute;inset:0;min-width:0;min-height:0;overflow:hidden}
.player-host>iframe,.player-host>video,.player-host>div{position:absolute;inset:0;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;border:0;object-fit:contain}
.play-surface{position:absolute;inset:0;display:block;width:100%;height:100%;padding:0;border:0;border-radius:0;background:transparent;z-index:2;cursor:pointer}
.play-surface:focus-visible{outline:3px solid #a4e2bd;outline-offset:-4px}
.wheel-hint{text-align:center;padding:10px;font-size:9px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.player-shell:fullscreen{width:100vw!important;height:100dvh;max-width:none;border:0;border-radius:0;display:flex;flex-direction:column;background:#101713}
.player-shell:fullscreen .player-frame{flex:1;min-height:0;aspect-ratio:auto;height:auto;max-height:none;width:100%}
.player-shell:fullscreen .player-host>video{object-fit:contain}
@media(max-width:760px){.player-shell{width:min(100%,350px)}.player-shell .player-frame{height:clamp(328px,calc(54dvh + 48px),598px);min-height:0}.player-shell.horizontal .player-frame{height:auto;min-height:0}.player-shell:fullscreen .player-frame{height:auto;min-height:0}}

/* Once metadata is available, the frame itself follows the native media ratio. */
.player-shell{--native-height:min(clamp(308px,calc(100dvh - 482px),588px),calc(100dvh - 40px))}
.player-shell.has-native-ratio{width:min(100%,730px,calc(var(--native-height) * var(--native-ratio)))}
.player-shell.has-native-ratio .player-frame{height:auto;min-height:0;max-height:none;aspect-ratio:var(--native-ratio)}
@media(max-width:760px){.player-shell{--native-height:min(clamp(328px,calc(54dvh + 48px),598px),calc(100dvh - 40px))}}

.sidebar-resizer{display:none}
/* Desktop stays still: accounts and long video information scroll independently. */
@media(min-width:1001px){
  html,body{height:100dvh;overflow:hidden}
  body{display:flex;flex-direction:column}
  .topbar{height:56px;flex:0 0 56px;padding:0 24px;gap:20px}
  .brand{font-size:24px;gap:9px}
  .brand-mark{width:31px;height:31px;border-radius:9px}
  .brand-mark svg{width:25px;height:25px}
  .tagline{font-size:11px;padding-left:20px}
  .top-actions{gap:15px}
  .storage-warning{flex-shrink:0;max-height:20dvh;overflow:auto;overscroll-behavior:contain}
  .app-layout{position:relative;width:100%;max-width:none;min-height:0;flex:1;grid-template-columns:var(--sidebar-width,260px) minmax(0,1fr);overflow:hidden}
  .sidebar-resizer{display:block;position:absolute;top:0;bottom:0;left:var(--sidebar-width,260px);width:10px;transform:translateX(-50%);z-index:15;cursor:col-resize;touch-action:none;outline:none}
  .sidebar-resizer:after{content:'';position:absolute;top:0;bottom:0;left:4px;width:2px;background:transparent;transition:background .15s}
  .sidebar-resizer:hover:after,.sidebar-resizer:focus-visible:after,.sidebar-resizing .sidebar-resizer:after{background:#45996f}
  .sidebar-resizer:focus-visible{background:#45996f1a;box-shadow:inset 0 0 0 1px #45996f}
  .app-layout.sidebar-resizing,.app-layout.sidebar-resizing *{cursor:col-resize!important;user-select:none!important}
  .sidebar{height:100%;min-height:0;padding:18px 16px;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable}
  .sidebar>*{flex-shrink:0}
  .sidebar .section-heading{gap:6px}
  .sidebar .section-heading h2{font-size:9px;letter-spacing:1.2px}
  .sidebar .tiny-label{font-size:10px}
  .sidebar .input-title{font-size:14px}
  .sidebar .theme-button{font-size:12px;padding:8px 10px}
  .sidebar .import-section{margin-top:22px;padding-top:18px}
  .sidebar .accounts-section{margin-top:20px;padding-top:17px}
  .sidebar .import-section textarea{min-height:135px}
  .main{height:100%;min-height:0;padding:12px 22px;overflow:hidden}
  .feed-header{flex:0 0 auto;min-height:44px;align-items:center;gap:12px}
  .feed-header .eyebrow,.feed-header .feed-description{display:none}
  .feed-header h1{font-size:28px;letter-spacing:-.7px}
  .feed-header-actions .button{font-size:12px;padding:8px 13px}
  .feed-toolbar{flex:0 0 auto;padding:0;margin:0;border:0;min-height:44px;gap:12px}
  .filters{padding:3px}
  .filters button{min-height:34px;padding:5px 10px}
  .sort-label{font-size:10px}
  .feed-status{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;min-width:0;min-height:32px;flex:0 0 auto;margin:4px 0 8px}
  .refresh-status{min-height:0;max-height:30px;margin:0;font-size:10px;line-height:1.4;overflow:auto;overscroll-behavior:contain}
  .refresh-status:empty{display:none}
  .feed-status:has(.refresh-status:empty){grid-template-columns:minmax(0,1fr)}
  .source-details{position:relative;justify-self:end;max-width:420px;min-width:0;margin:0;border:0;background:transparent;font-size:11px}
  .source-details summary{min-height:32px;padding:7px 9px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:10px;background:#eaf1eb;border-radius:7px}
  .source-details[open] #source-results{position:absolute;top:calc(100% + 5px);right:0;width:min(560px,calc(100vw - 310px));max-height:min(380px,50dvh);overflow:auto;overscroll-behavior:contain;background:white;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 32px #19372924;z-index:12}
  .empty-state{min-height:0;padding:20px;overflow:auto;overscroll-behavior:contain}
  .video-section{display:grid;grid-template-columns:minmax(0,1fr) clamp(210px,23%,280px);grid-template-rows:minmax(0,1fr);gap:22px;align-items:stretch;width:100%;min-height:0;flex:1 1 0;margin:0;padding:0;overflow:hidden}
  .theater{container-type:size;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);justify-content:stretch;align-content:stretch;place-items:center;width:100%;height:100%;min-width:0;min-height:0;padding:0;gap:0;overflow:hidden;overscroll-behavior:contain}
  .player-shell{--native-height:min(75dvh,100cqh);width:min(100%,calc(var(--native-height) * 9 / 16));max-height:100%;flex:none}
  .player-shell.horizontal{width:min(100%,calc(var(--native-height) * 16 / 9))}
  .player-shell .player-frame{width:100%;height:auto;min-height:0;max-height:none;aspect-ratio:9/16}
  .player-shell.horizontal .player-frame{height:auto;min-height:0;max-height:none;aspect-ratio:16/9}
  .player-shell.has-native-ratio{width:min(100%,calc(var(--native-height) * var(--native-ratio)))}
  .player-shell.has-native-ratio .player-frame{height:auto;min-height:0;max-height:none;aspect-ratio:var(--native-ratio)}
  .video-information{min-width:0;min-height:0;max-width:none;max-height:100%;margin:0;padding:0 6px 18px 20px;border-left:1px solid var(--line);overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable}
  .video-information:focus-visible{outline-offset:-3px}
  .video-topline{width:100%;max-width:none;margin:0 0 12px;gap:8px}
  .video-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:6px;margin:0 0 18px;flex:none}
  .video-nav>.nav-button:first-child{grid-column:1;grid-row:1}
  .video-nav>.nav-button:last-child{grid-column:2;grid-row:1}
  .nav-button{min-width:0;min-height:44px;padding:7px 4px;flex-direction:row;gap:6px;font-size:10px}
  .nav-button>span:first-child{font-size:18px}
  .wheel-hint{grid-column:1/-1;grid-row:2;min-height:22px;width:auto;padding:2px 0;flex-direction:row;border:0;background:transparent;font-size:10px}
  .wheel-hint .mouse-icon{display:none}
  .video-byline{align-items:flex-start;flex-direction:column;gap:3px;margin-bottom:12px;font-size:12px}
  .video-information h2{font-size:20px;line-height:1.4}
  .video-information .notice{margin-top:12px}
  .video-actions{align-items:stretch;flex-direction:column;gap:5px;margin-top:16px}
  .video-actions>.text-button{justify-content:flex-start}
  .view-hint{font-size:11px;line-height:1.6}
  .main-footer{flex:0 0 auto;min-height:28px;margin-top:7px;gap:8px;font-size:9px;border:0}
  .main-footer .text-button{min-height:28px;padding:3px 0;font-size:10px}
  .player-shell:fullscreen{--native-height:100dvh;max-height:none}
  .player-shell:fullscreen .player-frame{height:100%;aspect-ratio:auto;flex:1}
}
@media(min-width:1001px) and (max-width:1200px){
  .main{padding-left:16px;padding-right:16px}
  .video-section{grid-template-columns:minmax(0,1fr) 210px;gap:16px}
  .video-information{padding-left:14px}
  .source-details{max-width:300px}
  .video-information h2{font-size:18px}
}
@media(max-width:1000px){
  .feed-status{min-width:0}
  .video-information .video-topline{margin-bottom:12px}
  .video-information .video-nav{flex-direction:row;justify-content:space-between;width:100%;margin-bottom:18px}
  .video-information .wheel-hint{display:none}
}

/* Library actions and sound settings belong to the information panel. */
.feed-toolbar{flex-wrap:wrap}
.filters{min-width:0;max-width:100%;flex-wrap:wrap}
.video-actions #favorite-toggle[aria-pressed=true]{background:var(--soft);color:var(--green);border-color:#b4cdbd}
.sound-controls{margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
.sound-controls>.button{width:100%;font-size:12px}
.volume-row{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;margin-top:5px}
.volume-row label{margin:0;font-size:12px;font-weight:500}
.volume-row input{width:100%;min-width:0;height:44px;min-height:44px;padding:0;border:0;background:transparent;accent-color:var(--green);cursor:pointer}
.volume-row input:disabled{cursor:not-allowed;opacity:.5}
.sound-controls>.hint{margin-top:2px;font-size:11px}
.source-actions{margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}
.source-remove{width:100%;justify-content:flex-start;text-align:left;color:var(--error);white-space:normal}
.source-actions>.hint{font-size:11px}
.source-actions>.hint:empty{display:none}

.android-download{flex:0 0 auto;padding:7px 14px;text-align:center;background:#19372e;color:#fff;font:500 13px/1.5 sans-serif}.android-download a{color:inherit;text-decoration:underline;text-underline-offset:3px}
