@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700;750&display=swap');
:root{font-family:'DM Sans',Arial,sans-serif;color:#20251f;background:#fff;font-synthesis:none;--muted:#6c716b;--border:#e9ebe7;--accent:#d2f561;--ink:#20251f}
*{box-sizing:border-box}body{margin:0}button,input,a{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,a{touch-action:manipulation}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled{cursor:default}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}[hidden]{display:none!important}:focus-visible{outline:3px solid #74931f;outline-offset:5px}::selection{background:var(--accent)}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:fixed;left:16px;top:-70px;background:var(--ink);color:#fff;padding:12px 20px;z-index:10;border-radius:8px}.skip-link:focus{top:12px}.topbar{border-bottom:1px solid var(--border);background:#fff}.header-inner{max-width:1536px;margin:auto;height:96px;padding:0 56px;display:flex;align-items:center;justify-content:space-between;gap:40px}.brand{display:flex;align-items:center;gap:11px;font-size:1.625rem;font-weight:750;letter-spacing:-1.1px;white-space:nowrap}.brand>svg{width:38px;height:38px;color:var(--accent);stroke:none}.brand-dot{color:#80a127}.search{margin:0 0 0 28px;display:flex;align-items:center;gap:12px;width:min(100%,540px);height:46px;background:#f5f6f3;border:1px solid #eef0eb;border-radius:12px;padding:0 14px;color:var(--muted)}.search:focus-within{border-color:#95ae61;box-shadow:0 0 0 3px #d2f56135}.search input{width:100%;min-width:0;border:0;outline:0;background:transparent;font-size:.875rem;color:var(--ink)}.search input::placeholder{color:#787d76}.search kbd{border:1px solid #dfe3d9;border-radius:5px;min-width:23px;text-align:center;padding:1px 4px;font-size:.75rem;background:#fff}.header-explore{display:flex;align-items:center;gap:9px;font-size:.875rem;font-weight:650;white-space:nowrap}.header-explore svg{width:19px;height:19px}.header-explore:hover{color:#607d1d}main{max-width:1536px;padding:44px 56px 52px;margin:0 auto;min-height:calc(100vh - 184px)}main:focus{outline:none}.heading-row{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:28px}.eyebrow{font-size:.75rem;font-weight:650;letter-spacing:1.4px;color:var(--muted);margin:0 0 10px}h1{font-size:2.625rem;line-height:1.16;letter-spacing:-1.7px;margin:0;font-weight:650}.heading-dot{color:#86ab27;margin-left:2px}.video-count{color:var(--muted);font-size:.875rem;margin-bottom:6px}.category-row{display:flex;align-items:center;gap:26px;padding-bottom:27px;margin-bottom:28px;border-bottom:1px solid var(--border)}.category-label{font-size:.875rem;font-weight:550;white-space:nowrap}.categories{display:flex;align-items:center;gap:8px;overflow-x:auto;padding:3px;scrollbar-width:none}.categories::-webkit-scrollbar{display:none}.chip{border:1px solid var(--border);background:#fff;color:#535a50;border-radius:8px;padding:9px 17px;font-size:.875rem;white-space:nowrap;line-height:1.2;transition:background .15s,color .15s,border-color .15s}.chip:hover{background:#f4f6f0;border-color:#d6ddcb}.chip[aria-pressed=true]{background:var(--ink);color:white;border-color:var(--ink)}.video-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px 26px}.video-card{display:block;min-width:0;border-radius:12px}.thumbnail{aspect-ratio:16/9;position:relative;background:#eef1e8;overflow:hidden;border-radius:12px;isolation:isolate}.thumbnail>img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .32s ease}.video-card:hover .thumbnail>img{transform:scale(1.035)}.duration{position:absolute;bottom:10px;right:10px;border-radius:5px;font-size:.75rem;font-weight:600;line-height:1.3;padding:4px 6px;background:#152019d6;color:#fff;font-variant-numeric:tabular-nums;z-index:1}.hover-play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#00000012;opacity:0;transition:opacity .2s}.hover-play>svg{width:52px;height:52px;padding:16px 15px 16px 19px;border-radius:50%;background:#fff;color:var(--ink);fill:currentColor;stroke-width:0}.video-card:hover .hover-play,.video-card:focus-visible .hover-play{opacity:1}.card-info{display:flex;gap:11px;padding:15px 2px 0;align-items:flex-start}.avatar{width:35px;height:35px;flex-shrink:0;border-radius:50%;background:#eef1e8;color:#596644;font-size:.7rem;font-weight:700;display:flex;align-items:center;justify-content:center;border:1px solid #e4e9dc}.card-copy{min-width:0}.card-copy h2{font-size:1.25rem;font-weight:600;line-height:1.35;letter-spacing:-.45px;margin:0 0 6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.card-meta{display:flex;gap:7px;align-items:center;flex-wrap:wrap;font-size:.8125rem;line-height:1.5;color:var(--muted)}.meta-dot{font-size:.65rem;color:#a1a69e}.empty-state{text-align:center;padding:72px 16px}.empty-state>svg{width:44px;height:44px;color:#89917e;margin-bottom:10px}.empty-state h2{font-size:1.5rem;font-weight:600;margin:8px}.empty-state p{color:var(--muted);font-size:1rem;margin:10px 0 22px}.button{border:0;border-radius:8px;background:var(--ink);color:white;font-size:.875rem;padding:12px 20px;font-weight:550}.button:hover{background:#3f4c2d}.footer{border-top:1px solid var(--border);padding:24px 56px;max-width:1424px;margin:0 auto;display:flex;justify-content:space-between;gap:20px;color:#858b80;font-size:.8125rem}.footer-brand{font-weight:650;color:#6c7267}.back-link{display:inline-flex;align-items:center;gap:8px;font-size:.875rem;color:var(--muted);margin:0 0 26px}.back-link:hover{color:var(--ink)}.back-link svg{width:16px;height:16px}.watch-layout{display:grid;grid-template-columns:minmax(0,2.6fr) minmax(260px,1fr);gap:30px}.watch-main{min-width:0}.player-wrap{background:#101510;aspect-ratio:16/9;border-radius:12px;overflow:hidden;display:flex;align-items:center}.player-wrap video{width:100%;height:100%;object-fit:contain;display:block}.watch-heading{margin-top:23px;display:flex;align-items:flex-start;gap:16px;justify-content:space-between}.watch-heading h1{font-size:1.875rem;font-weight:650;line-height:1.3;letter-spacing:-.8px}.watch-category{border-radius:6px;background:#f0f4e8;color:#59693f;font-size:.75rem;padding:7px 10px;white-space:nowrap;margin-top:4px}.watch-creator{display:flex;align-items:center;gap:10px;font-weight:550;font-size:.875rem;margin:20px 0}.watch-description{font-size:1rem;line-height:1.75;color:#65705c;max-width:760px;margin:0 0 16px}.source-line{border-top:1px solid var(--border);margin-top:24px;padding-top:17px;font-size:.8125rem;color:var(--muted)}.source-line a{text-decoration:underline;text-underline-offset:4px}.source-line a:hover{color:#536c1c}.next-panel h2{font-size:1.125rem;font-weight:650;display:flex;align-items:center;justify-content:space-between;margin:0 0 20px}.next-panel h2 span{font-size:.75rem;background:#f0f2eb;min-width:24px;height:24px;border-radius:6px;display:flex;align-items:center;justify-content:center;color:#767f6c}.next-list{display:flex;flex-direction:column;gap:20px}.next-card{display:grid;grid-template-columns:44% minmax(0,1fr);gap:12px;align-items:start}.next-card .thumbnail{border-radius:8px}.next-card .card-info{padding:0;display:block}.next-card .avatar{display:none}.next-card h2{font-size:.9375rem;line-height:1.4;letter-spacing:-.2px;margin:0 0 5px;font-weight:600}.next-card .card-meta{font-size:.75rem;gap:3px}.next-card .card-meta .meta-dot,.next-card .card-meta .category-meta{display:none}.next-card .duration{font-size:.6875rem;right:5px;bottom:5px;padding:2px 4px}.next-card .hover-play>svg{width:34px;height:34px;padding:10px 9px 10px 12px}.playback-error{font-size:.875rem;color:#8e3526;background:#fff1ed;padding:14px;border-radius:8px}.playback-error button{background:none;border:none;text-decoration:underline;color:inherit;padding:0;font-weight:600}
@media(min-width:1600px){.header-inner,main{max-width:1590px}.video-grid{gap:40px 30px}}
@media(max-width:1150px){.header-inner{padding:0 32px;gap:28px}main{padding:36px 32px 44px}.search{margin:0}.video-grid{gap:32px 20px}.category-row{gap:18px}.watch-layout{grid-template-columns:minmax(0,2.25fr) minmax(250px,1fr);gap:24px}.next-card{grid-template-columns:1fr}.next-card .thumbnail{aspect-ratio:16/9}.next-card h2{font-size:1rem}.footer{margin:0 32px;padding:24px 0}}
@media(max-width:850px){.header-inner{height:84px;gap:25px}.header-explore{display:none}.search{max-width:460px}.video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.category-row{display:block}.category-label{display:block;margin-bottom:14px}.watch-layout{grid-template-columns:1fr}.next-panel{border-top:1px solid var(--border);margin-top:8px;padding-top:25px}.next-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:25px}.next-card{display:block}.next-card .card-info{padding-top:12px}.next-card h2{font-size:1.125rem}.next-card .card-meta .category-meta,.next-card .card-meta .meta-dot{display:initial}}
@media(max-width:560px){.header-inner{height:auto;min-height:130px;display:flex;flex-wrap:wrap;gap:17px;padding:20px 20px 18px}.brand{font-size:1.5rem;gap:9px}.brand>svg{width:32px;height:32px}.search{order:2;width:100%;max-width:none;height:43px}.search kbd{display:none}.header-explore{display:flex;margin-left:auto;font-size:.8125rem}.header-explore svg{display:none}.search input{font-size:.875rem}main{padding:30px 20px 35px}.heading-row{margin-bottom:24px}.eyebrow{font-size:.6875rem;letter-spacing:1px;line-height:1.5;margin-bottom:8px}h1{font-size:2.125rem;letter-spacing:-1.2px}.video-count{font-size:.75rem;white-space:nowrap}.category-row{margin-bottom:24px;padding-bottom:22px}.category-label{font-size:.8125rem;margin-bottom:12px}.categories{margin-right:-20px;padding-right:20px}.chip{padding:9px 14px;font-size:.8125rem;min-height:38px}.video-grid{grid-template-columns:1fr;gap:29px}.thumbnail{border-radius:10px}.card-copy h2{font-size:1.1875rem}.card-info{padding-top:13px}.footer{margin:0 20px;font-size:.75rem;padding:22px 0}.watch-heading{display:block}.watch-heading h1{font-size:1.5rem;letter-spacing:-.5px}.watch-category{display:inline-block;margin-top:12px}.watch-description{font-size:.9375rem}.next-list{display:flex;gap:19px}.next-card{display:grid;grid-template-columns:43% minmax(0,1fr);gap:12px}.next-card .card-info{padding:0}.next-card h2{font-size:.9375rem}.next-card .card-meta .category-meta,.next-card .card-meta .meta-dot{display:none}.back-link{margin-bottom:22px}.player-wrap{border-radius:8px}.next-panel{margin-top:0}.watch-creator{margin:17px 0}.empty-state{padding:45px 12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.header-inner{gap:24px}.header-actions,.guest-actions{display:flex;align-items:center;gap:12px}.header-actions{flex-shrink:0}.header-actions .button-secondary{font-weight:550}.text-button{border:0;background:transparent;color:var(--ink);padding:10px 5px;font:inherit;font-size:.875rem;white-space:nowrap}.text-button:hover{text-decoration:underline;text-underline-offset:4px}.account-menu{position:relative}.account-menu summary{cursor:pointer;list-style:none;border-radius:50%}.account-menu summary::-webkit-details-marker{display:none}.account-menu .avatar{width:40px;height:40px;background:#eaf5d4;color:#42582b}.account-dropdown{position:absolute;top:51px;right:0;width:230px;padding:9px;border:1px solid var(--border);border-radius:13px;background:#fff;box-shadow:0 14px 45px #15201917;z-index:5}.account-dropdown strong{display:block;padding:11px 12px 13px;overflow-wrap:anywhere;font-size:.9375rem;border-bottom:1px solid var(--border);margin-bottom:5px}.account-dropdown a{display:block;border-radius:7px;padding:11px 12px;font-size:.875rem}.account-dropdown a:hover{background:#f3f7ec}.account-dialog{color:var(--ink);background:#fff;border:0;border-radius:18px;padding:28px;width:min(470px,calc(100% - 32px));max-height:calc(100dvh - 40px);box-shadow:0 24px 100px #15201933}.account-dialog::backdrop{background:#18201688;backdrop-filter:blur(4px)}.account-dialog .icon-button{font-size:24px;width:36px;height:36px;line-height:1}.auth-copy{font-size:1rem;line-height:1.7;color:#535c4d;margin:0 0 24px;overflow-wrap:anywhere}.auth-note{font-size:.875rem;line-height:1.6;color:var(--muted);margin:17px 0 0}.wide-button{width:100%;min-height:48px}.account-dialog .upload-actions{margin-top:24px}.account-dialog .upload-error{margin:20px 0 0}.danger-button{border:0;border-radius:9px;background:#a63429;color:#fff;padding:11px 17px;font:inherit;font-size:.875rem;min-height:43px}.danger-button:hover{background:#8b291f}.danger-button:disabled{opacity:.5}.account-gate{max-width:540px;margin:42px auto;text-align:center}.account-gate .channel-avatar{margin:0 auto 24px}.account-gate h1{font-size:2.2rem}.account-gate>p{color:var(--muted);line-height:1.7}.account-gate>.upload-button{margin-top:10px}.profile-layout{display:grid;grid-template-columns:minmax(240px,1fr) minmax(320px,1.25fr);gap:72px;max-width:960px;margin-top:24px}.profile-layout .eyebrow{display:block;font-size:.8125rem;letter-spacing:1.2px;color:var(--muted);margin-bottom:12px}.profile-layout h1{font-size:2.5rem}.section-description{font-size:1rem;color:var(--muted);line-height:1.65;margin:10px 0 0}.profile-form .upload-fields{margin-top:0}.upload-fields textarea{width:100%;padding:12px;border:1px solid #dfe4d8;border-radius:8px;background:#fff;color:var(--ink);font:inherit;font-size:1rem;font-weight:400;line-height:1.6;resize:vertical;min-height:125px}.upload-fields textarea:focus{outline:2px solid #afc588;outline-offset:1px}.optional-label{font-size:.875rem;font-weight:400;color:var(--muted)}.profile-form label:has(.optional-label){display:block}.profile-form textarea{display:block;margin-top:8px}.saved-note{color:#4c692b;font-size:.875rem;text-align:right}.channel-header{display:flex;gap:26px;align-items:center;padding:18px 0 38px}.channel-avatar{width:88px;height:88px;border-radius:50%;background:#ebf5d8;color:#4b612f;display:flex;align-items:center;justify-content:center;font-size:1.8rem;font-weight:600;flex-shrink:0}.channel-info{min-width:0;flex:1}.channel-info h1{font-size:2.25rem;letter-spacing:-1px;overflow-wrap:anywhere}.channel-count{font-size:.875rem;color:var(--muted);margin:10px 0 0}.channel-bio{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;font-size:1rem;margin:15px 0 0;max-width:660px}.channel-actions{display:flex;gap:10px;flex-wrap:wrap}.channel-divider{border-top:1px solid var(--border);padding-top:22px;margin-bottom:25px}.channel-divider h2{font-size:1.125rem;font-weight:600;margin:0}.creator-link{display:inline-flex;align-items:center;gap:11px}.creator-link:hover>span:last-child{text-decoration:underline;text-underline-offset:4px}.studio-heading{align-items:center}.studio-grid{align-items:start}.managed-video{min-width:0}.video-actions{display:flex;gap:22px;margin-left:46px;margin-top:6px}.delete-link{color:#9b493d}.studio-heading h1{font-size:2.5rem}.header-actions .upload-button{margin:0}
@media(max-width:1100px){.header-inner{gap:20px;padding-left:28px;padding-right:28px}.header-inner .search{margin-left:0}.header-actions,.guest-actions{gap:8px}.channel-header{flex-wrap:wrap}.channel-actions{margin-left:114px}.profile-layout{gap:38px}}
@media(max-width:760px){.header-inner{height:auto;min-height:128px;flex-wrap:wrap;padding:18px 24px;gap:15px}.header-inner .search{order:2;width:100%;max-width:none;flex-basis:100%}.header-actions{margin-left:auto}.profile-layout{grid-template-columns:1fr;gap:28px}.profile-form{max-width:560px}.channel-actions{margin-left:0;width:100%}.channel-header{gap:18px}.channel-info h1{font-size:1.875rem}}
@media(max-width:560px){.header-inner{padding:18px 20px}.header-actions,.guest-actions{gap:6px}.header-actions .upload-button{width:36px;min-height:36px;padding:8px}.header-actions .upload-button>span{display:none}.header-actions .text-button{font-size:.8125rem;padding:8px 4px}.header-actions .button-secondary{font-size:.8125rem;padding:8px 9px;min-height:36px}.account-menu .avatar{width:36px;height:36px}.account-dialog{padding:24px 20px}.profile-layout h1,.studio-heading h1{font-size:2rem}.studio-heading{gap:16px;flex-wrap:wrap}.studio-heading>.upload-button{font-size:.8125rem;padding:10px 13px}.channel-header{padding-top:5px;padding-bottom:28px}.channel-avatar{width:66px;height:66px;font-size:1.4rem}.channel-info h1{font-size:1.625rem}.account-gate h1{font-size:1.9rem}.account-gate{margin-top:25px}.video-actions{margin-left:46px}.profile-form .upload-actions{justify-content:flex-end;flex-wrap:wrap}}
@media(max-width:380px){.header-inner{padding-left:16px;padding-right:16px;gap:14px 6px}.header-inner .brand{font-size:1.25rem;gap:6px}.header-inner .brand>svg{width:28px;height:28px}.header-actions,.guest-actions{gap:3px}}
.upload-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:9px;padding:11px 19px;background:var(--accent);color:var(--ink);font-size:.875rem;font-weight:650;white-space:nowrap;min-height:43px}.upload-button:hover{background:#c4e653}.upload-button:disabled{opacity:.45;cursor:default}.upload-button svg{width:18px;height:18px}.thumbnail-placeholder{position:absolute;inset:0;display:grid;place-items:center;background:#eaf0df;color:#7c8d61}.thumbnail-placeholder svg{width:50px;height:50px}.storage-notice{padding:14px 18px;border:1px solid #e4d7af;background:#fffcf3;border-radius:8px;font-size:.875rem;color:#796732}.storage-notice button{color:inherit;background:transparent;border:0;text-decoration:underline;font:inherit;padding:0;margin-left:4px}#upload-dialog{color:var(--ink);background:#fff;border:0;border-radius:18px;padding:28px;width:min(560px,calc(100% - 32px));max-height:calc(100dvh - 40px);box-shadow:0 24px 100px #15201933}#upload-dialog::backdrop{background:#18201688;backdrop-filter:blur(4px)}.dialog-heading{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:23px}.dialog-heading h2{font-size:1.5rem;line-height:1.3;letter-spacing:-.6px;margin:0 0 5px;font-weight:650}.dialog-heading p{font-size:.875rem;line-height:1.5;margin:0;color:var(--muted)}.icon-button{display:grid;place-items:center;border:0;background:#f3f5f0;color:#68735f;border-radius:8px;padding:7px;flex-shrink:0}.icon-button:hover{background:#e8eddc}.icon-button:disabled{opacity:.4;cursor:default}.upload-drop{border:1.5px dashed #c4ceba;border-radius:12px;background:#fafcf7;display:flex;align-items:center;flex-direction:column;padding:28px 20px;cursor:pointer;text-align:center}.upload-drop:hover,.upload-drop.drag-over{background:#f0f7e2;border-color:#8d9f6b}.upload-drop:focus-within{outline:3px solid #74931f;outline-offset:3px}.upload-drop>svg{width:35px;height:35px;margin-bottom:12px;color:#607446}.upload-drop strong{font-weight:600;font-size:1rem}.upload-drop span{font-size:.875rem;color:var(--muted);margin:5px 0 15px}.upload-drop small{font-size:.75rem;color:#7b8472}.upload-fields{display:grid;gap:17px;margin-top:23px}.upload-fields label{display:flex;flex-direction:column;gap:8px;font-weight:550;font-size:.875rem}.upload-fields input,.upload-fields select{width:100%;min-height:45px;padding:11px 12px;border:1px solid #dfe4d8;border-radius:8px;background:#fff;color:var(--ink);font-size:1rem;font-weight:400}.upload-fields input:focus,.upload-fields select:focus{outline:2px solid #afc588;outline-offset:1px}.upload-fields :disabled{background:#f7f8f5;color:var(--muted)}.upload-hint{font-size:.8125rem;line-height:1.5;color:var(--muted);margin:16px 0 22px}.upload-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:19px;border-top:1px solid var(--border)}.button-secondary{border:1px solid #e1e6d9;background:#fff;color:#535f48;border-radius:9px;font-size:.875rem;padding:11px 17px;min-height:43px}.button-secondary:hover{background:#f4f6ef}.button-secondary:disabled{opacity:.4;cursor:default}#upload-preview{width:100%;max-height:225px;aspect-ratio:16/9;object-fit:contain;background:#12180f;border-radius:10px;display:block}.selected-file{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:11px}.selected-file>div{min-width:0;display:grid;gap:4px}.selected-file strong{font-size:.8125rem;font-weight:550;overflow-wrap:anywhere}.selected-file span{font-size:.75rem;color:var(--muted)}.selected-file button{font-size:.8125rem;color:#5f732f;background:none;border:0;text-decoration:underline;text-underline-offset:3px}.selected-file button:disabled{opacity:.4}.upload-progress-wrap{margin:0 0 20px}.upload-progress-wrap>div{display:flex;justify-content:space-between;gap:16px;font-size:.8125rem;color:#61724c;margin:0 0 10px}.upload-progress-wrap progress{appearance:none;width:100%;height:7px;border:0;border-radius:10px;overflow:hidden;background:#edf1e6}.upload-progress-wrap progress::-webkit-progress-bar{background:#edf1e6;border-radius:10px}.upload-progress-wrap progress::-webkit-progress-value{background:#9bc432;border-radius:10px;transition:width .2s}.upload-progress-wrap progress::-moz-progress-bar{background:#9bc432;border-radius:10px}.upload-error{font-size:.875rem;line-height:1.55;padding:12px 14px;background:#fff1ed;color:#933a28;border-radius:8px;margin:0 0 18px}.upload-success{text-align:center;padding:22px 10px 15px}.success-mark{display:grid;place-items:center;background:#e6f6c4;width:60px;height:60px;border-radius:50%;margin:0 auto 20px;color:#608522}.success-mark svg{width:28px;height:28px;stroke-width:2}.upload-success h3{font-size:1.375rem;letter-spacing:-.4px;font-weight:600;margin:0 0 9px}.upload-success p{font-size:.9375rem;color:var(--muted);margin:0 0 24px;line-height:1.5}@media(max-width:560px){.header-inner>.upload-button{margin-left:auto;padding:8px 13px;min-height:37px}.header-inner{gap:17px 12px}#upload-dialog{padding:23px 20px;border-radius:14px}.dialog-heading h2{font-size:1.375rem}.dialog-heading p{font-size:.8125rem}.upload-drop{padding:24px 16px}.upload-fields{gap:15px;margin-top:20px}.upload-actions{justify-content:space-between}.upload-actions>.upload-button{flex:1}.upload-progress-wrap>div{font-size:.75rem}}

.section-nav{display:flex;align-items:center;gap:26px;border-bottom:1px solid var(--border);margin:-12px 0 32px}.section-nav a{display:block;padding:0 0 14px;font-size:.9375rem;font-weight:550;color:var(--muted);border-bottom:3px solid transparent;margin-bottom:-1px}.section-nav a:hover{color:var(--ink)}.section-nav a[aria-current="page"]{color:var(--ink);border-bottom-color:#9ec339}.watch-author-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:22px 0;flex-wrap:wrap}.watch-author-row .watch-creator{margin:0;min-width:0}.watch-author-row .creator-link{overflow-wrap:anywhere}.subscribe-button{display:inline-flex;align-items:center;justify-content:center;min-height:43px;padding:10px 20px;border:1px solid transparent;border-radius:24px;background:var(--ink);color:#fff;font:inherit;font-size:.875rem;font-weight:550;white-space:nowrap}.subscribe-button:hover{background:#394333}.subscribe-button.is-subscribed{background:#f0f5e7;color:#445330;border-color:#dce5ce}.subscribe-button.is-subscribed:hover{background:#e6eddb}.subscribe-button:disabled{opacity:.55;cursor:default}.subscribed-channels{padding:0 0 26px;border-bottom:1px solid var(--border);margin:4px 0 26px}.subscribed-channels h2,.subscription-feed-heading h2{font-size:1.125rem;font-weight:600;margin:0}.subscribed-channels h2 span{font-size:.875rem;font-weight:400;color:var(--muted);margin-left:7px}.subscription-channel-list{display:flex;gap:12px;list-style:none;padding:14px 0 4px;margin:0;overflow-x:auto;scrollbar-width:thin}.subscription-channel-list li{flex:0 0 auto}.subscription-channel{display:flex;align-items:center;gap:10px;padding:8px 14px 8px 8px;border:1px solid var(--border);border-radius:30px;background:#fff;font-size:.9375rem;max-width:270px}.subscription-channel>span:last-child{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.subscription-channel:hover{background:#f6f9f0;border-color:#d6e1c3}.subscription-channel .avatar{background:#ebf5d8;flex-shrink:0}.subscription-feed-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:23px}.subscription-feed-heading>span{font-size:.875rem;color:var(--muted)}.subscription-feedback{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 32px);margin:0;padding:14px 20px;background:var(--ink);color:#fff;border-radius:12px;box-shadow:0 8px 30px #15201922;font-size:.9375rem;line-height:1.5;overflow-wrap:anywhere;z-index:6}.subscription-channel-list a:focus-visible{outline-offset:-3px}
@media(max-width:560px){.section-nav{margin:-5px 0 27px;gap:23px}.section-nav a{font-size:.875rem;padding-bottom:12px}.watch-author-row{gap:12px;margin:18px 0}.subscribe-button{min-height:40px;padding:9px 16px}.subscription-channel{font-size:.875rem;max-width:230px}.subscription-feedback{bottom:max(16px,env(safe-area-inset-bottom));padding:12px 16px;font-size:.875rem}.subscription-channel-list{margin-right:-20px;padding-right:20px}.subscribed-channels{padding-bottom:21px;margin-bottom:23px}}

#watch-subscription{max-width:100%}.subscription-note{margin:0;font-size:.875rem;color:var(--muted);line-height:1.5}#watch-subscription>[data-manage-own-video]{display:inline-flex;align-items:center;justify-content:center}

.section-nav{overflow-x:auto;scrollbar-width:thin}.section-nav a{white-space:nowrap}.video-card-wrap{position:relative;min-width:0}.watch-later-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:43px;border:1px solid #dfe5d7;border-radius:24px;background:#fff;color:var(--ink);padding:10px 17px;font:inherit;font-size:.875rem;font-weight:550;white-space:nowrap}.watch-later-button:hover{background:#f3f7eb;border-color:#c7d4b7}.watch-later-button.is-saved{background:#edf5dd;border-color:#d5e4bc;color:#435b25}.watch-later-button svg{width:19px;height:19px;stroke-width:1.7}.watch-later-button.is-saved svg{fill:currentColor}.watch-later-button:disabled{opacity:.55;cursor:default}.card-bookmark{position:absolute;top:10px;right:10px;width:40px;height:40px;min-height:40px;padding:9px;z-index:2;border:0;border-radius:10px;background:#ffffffed;box-shadow:0 2px 9px #17200c1f}.card-bookmark:hover{background:#fff}.card-bookmark.is-saved{background:var(--accent);color:#34451d}.card-bookmark svg{width:21px;height:21px}.watch-video-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;max-width:100%}.saved-video{min-width:0}.saved-video-actions{display:flex;justify-content:flex-end;margin-top:8px}.saved-video-actions .text-button{color:var(--muted);font-size:.875rem;padding:8px 2px}.saved-video-actions .text-button:hover{color:var(--ink)}
@media(max-width:560px){.watch-video-actions{gap:10px}.watch-later-button{min-height:40px;padding:9px 14px}.card-bookmark{width:40px;height:40px;padding:9px;top:9px;right:9px}.section-nav{gap:20px}.watch-video-actions .subscription-note{font-size:.8125rem}}

.progress-status{font-size:.875rem;line-height:1.6;color:var(--muted);margin:11px 0 0}.progress-status button{font:inherit;color:#4d681f;border:0;background:none;text-decoration:underline;text-underline-offset:3px;padding:3px 5px}.continue-video{min-width:0}.continue-details{display:grid;gap:9px;margin:14px 2px 0 46px;color:var(--muted);font-size:.875rem}.continue-details progress{appearance:none;width:100%;height:4px;border:0;border-radius:4px;overflow:hidden;background:#edf1e7}.continue-details progress::-webkit-progress-bar{background:#edf1e7;border-radius:4px}.continue-details progress::-webkit-progress-value{background:#92b932;border-radius:4px}.continue-details progress::-moz-progress-bar{background:#92b932;border-radius:4px}.section-nav{padding-top:3px}.section-nav a:focus-visible{outline-offset:-3px}
@media(max-width:560px){.section-nav{margin-right:-20px;padding-right:20px;gap:20px}.continue-grid{gap:30px}.continue-details{margin-top:12px}.progress-status{font-size:.8125rem}}

.like-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:43px;padding:10px 17px;border:1px solid #dfe5d7;border-radius:24px;background:#fff;color:var(--ink);font:inherit;font-size:.875rem;font-weight:550;white-space:nowrap}.like-button:hover{background:#f3f7eb;border-color:#c7d4b7}.like-button.is-liked{background:#edf5dd;border-color:#d5e4bc;color:#435b25}.like-button svg{width:19px;height:19px;stroke-width:1.7}.like-button.is-liked svg{fill:currentColor;fill-opacity:.18}.like-button:disabled{opacity:.55;cursor:default}.like-count{border-left:1px solid #d5dfc9;padding-left:8px;font-variant-numeric:tabular-nums;min-width:1.5em;text-align:center}@media(max-width:560px){.like-button{min-height:40px;padding:9px 14px}}

.comments-section{margin-top:34px;padding-top:28px;border-top:1px solid var(--border)}.comments-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.comments-heading h2{font-size:1.25rem;font-weight:650;margin:0;letter-spacing:-.3px}.comments-heading h2 span{font-size:1rem;font-weight:400;color:var(--muted);margin-left:7px}.comments-heading>span{font-size:.875rem;color:var(--muted)}.comment-form{margin-bottom:28px}.commenting-as{font-size:.875rem;color:var(--muted);margin:0 0 12px}.commenting-as strong{font-weight:550;color:var(--ink);overflow-wrap:anywhere}.comment-form textarea{display:block;resize:vertical;width:100%;min-height:96px;max-height:400px;padding:14px 16px;border:1px solid #dfe5d7;border-radius:10px;background:#fff;color:var(--ink);font:inherit;font-size:1rem;line-height:1.6}.comment-form textarea::placeholder{color:var(--muted)}.comment-form textarea:focus,.comment-name-field input:focus{outline:2px solid #afc588;outline-offset:1px}.comment-form-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:12px}.comment-form-actions>span{font-size:.875rem;color:var(--muted);line-height:1.5}.comment-form-actions .upload-button{flex-shrink:0}.comment-form-error,.comment-load-error{font-size:.875rem;line-height:1.6;color:#933a28;margin:14px 0}.comment-load-error button{color:inherit}.comment-name-field{margin-bottom:16px;max-width:360px}.comment-name-field label{display:block;font-size:.875rem;font-weight:550;margin-bottom:8px}.comment-name-field input{width:100%;min-height:43px;padding:10px 12px;border:1px solid #dfe5d7;border-radius:8px;font-size:1rem;color:var(--ink)}.comment-name-field p{font-size:.875rem;line-height:1.5;margin:8px 0;color:var(--muted)}.comment-signin{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;border:1px solid var(--border);border-radius:10px;margin-bottom:24px}.comment-signin p{margin:0;font-size:1rem;line-height:1.5;color:var(--muted)}.comment-signin a{display:inline-flex;align-items:center;justify-content:center}.comment-list{list-style:none;padding:0;margin:0}.comment{display:flex;align-items:flex-start;gap:12px;padding:20px 0;border-top:1px solid var(--border)}.comment:first-child{border-top:0;padding-top:5px}.comment-content{min-width:0;flex:1}.comment-meta{display:flex;flex-wrap:wrap;gap:5px 10px;align-items:baseline;font-size:.875rem;line-height:1.5}.comment-meta>span,.comment-meta>a{font-weight:600;overflow-wrap:anywhere}.comment-meta>a:hover{text-decoration:underline;text-underline-offset:3px}.comment-meta time,.comment-removed time{font-size:.875rem;color:var(--muted)}.comment-body{font-size:1rem;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0 0}.comment-action{font-size:.875rem;padding:8px 0 0;color:var(--muted)}.comment-removed{padding:18px 0 18px 47px;border-top:1px solid var(--border);color:var(--muted);font-size:.875rem}.comment-removed p{margin:0 0 5px;font-style:italic}.comment-empty{font-size:1rem;line-height:1.6;color:var(--muted);padding:12px 0 18px;margin:0}.comment-notice{font-size:.875rem;line-height:1.5;color:#4d681f;margin:0 0 16px}#comments-more{margin-top:12px}@media(max-width:560px){.comments-section{margin-top:27px;padding-top:23px}.comment-form-actions{align-items:flex-start;flex-wrap:wrap}.comment-form-actions>.upload-button{margin-left:auto}.comment-signin{padding:14px}.comment{gap:10px}.comment-removed{padding-left:45px}}

.report-video-button{color:var(--muted);padding:10px 5px}.comment-report{margin-left:14px}.report-target{font-size:1rem;font-weight:550;line-height:1.5;overflow-wrap:anywhere;margin:0 0 18px}#report-details{font:inherit;font-size:1rem;line-height:1.6;padding:12px;border:1px solid #dfe5d7;border-radius:8px;resize:vertical;min-height:100px;color:var(--ink)}.report-filters{display:flex;gap:9px;margin-bottom:24px}.report-list{display:grid;gap:18px;max-width:960px}.report-card{border:1px solid var(--border);border-radius:12px;padding:22px;min-width:0}.report-card-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;font-size:.875rem;color:var(--muted)}.report-kind{font-weight:550}.report-state{background:#f1f5e9;padding:5px 10px;border-radius:6px;color:#566544}.report-card h2{font-size:1.25rem;line-height:1.4;margin:0 0 7px;overflow-wrap:anywhere}.report-author{font-size:.875rem;color:var(--muted);line-height:1.5;margin:0 0 16px;overflow-wrap:anywhere}.report-card blockquote{white-space:pre-wrap;overflow-wrap:anywhere;font-size:1rem;line-height:1.65;border-left:3px solid #dce7c7;background:#f8faf4;padding:12px 16px;margin:16px 0}.report-reason{font-size:1rem;line-height:1.5;margin:16px 0 8px}.report-reason strong{font-weight:550}.report-details{white-space:pre-wrap;overflow-wrap:anywhere;font-size:1rem;line-height:1.6;margin:0 0 16px}.report-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px;padding-top:16px;margin-top:17px;border-top:1px solid var(--border)}.report-actions a{margin-right:auto}.report-unavailable,.report-resolved{font-size:.875rem;line-height:1.5;color:var(--muted)}.report-load-error{color:#933a28;font-size:1rem;line-height:1.6}.report-list+[data-more-reports]{margin-top:20px}@media(max-width:560px){.report-card{padding:17px}.report-actions{gap:9px}.report-actions .button-secondary,.report-actions .danger-button{flex:1;padding:10px 12px}.report-actions a{width:100%}.report-card blockquote{padding:11px 13px}}

.avatar-with-image{position:relative;overflow:hidden}.avatar-with-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit;background:#fff}.channel-banner{width:100%;aspect-ratio:4/1;border-radius:14px;overflow:hidden;background:#f3f5ef;margin:0 0 26px}.channel-banner img{display:block;width:100%;height:100%;object-fit:cover}.subscribe-with-count{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.subscribe-with-count>span{font-size:.875rem;color:var(--muted);white-space:nowrap}.profile-image-field{margin-bottom:26px}.profile-image-heading h2{font-size:1rem;font-weight:550;line-height:1.5;margin:0 0 5px}.profile-image-heading h2 span{font-size:.875rem;font-weight:400;color:var(--muted);margin-left:5px}.profile-image-heading p{font-size:.875rem;line-height:1.5;color:var(--muted);margin:0 0 14px}.profile-avatar-preview{width:96px;height:96px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#eef4e3;border:1px solid #e1e8d5;color:#607348;font-size:1.5rem;font-weight:650}.profile-avatar-preview img,.profile-banner-preview img{display:block;width:100%;height:100%;object-fit:cover}.profile-banner-preview{width:100%;aspect-ratio:4/1;border-radius:10px;background:#f4f6ef;border:1px solid var(--border);overflow:hidden;display:grid;place-items:center;color:var(--muted);font-size:.875rem}.profile-image-actions{display:flex;align-items:center;gap:13px;flex-wrap:wrap;margin-top:12px}.profile-image-actions>span{font-size:.875rem;color:var(--muted)}.image-choose{position:relative;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.image-choose:focus-within{outline:3px solid #74931f;outline-offset:3px}.image-choose.is-disabled{opacity:.5;cursor:default}.profile-form .upload-fields{margin-top:26px}@media(max-width:560px){.channel-banner{border-radius:10px;margin-bottom:21px}.subscribe-with-count{gap:8px}.profile-image-actions{gap:10px}.profile-avatar-preview{width:80px;height:80px}}

.thumbnail-editor{margin-top:22px}.thumbnail-editor h3{font-size:1rem;font-weight:550;line-height:1.5;margin:0 0 5px}.thumbnail-editor h3 span{font-size:.875rem;font-weight:400;color:var(--muted);margin-left:5px}.thumbnail-editor-hint{font-size:.875rem;line-height:1.5;color:var(--muted);margin:0 0 13px}.thumbnail-editor-preview{width:100%;max-width:320px;aspect-ratio:16/9;display:grid;place-items:center;overflow:hidden;border:1px solid var(--border);border-radius:9px;background:#f4f6ef;color:var(--muted);font-size:.875rem}.thumbnail-editor-preview img{display:block;width:100%;height:100%;object-fit:cover}.thumbnail-editor-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:12px}.thumbnail-editor-actions .text-button{font-size:.875rem}.thumbnail-editor-status{font-size:.875rem;line-height:1.5;color:var(--muted);margin:9px 0 0}.thumbnail-editor-status:empty{display:none}.thumbnail-editor .comment-form-error{margin:9px 0 0}

/* Private playlists follow the existing quiet white and lime surfaces. */
.playlist-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.playlist-card{display:block;overflow:hidden;border:1px solid var(--border);border-radius:12px;min-width:0;transition:background .15s,border-color .15s}.playlist-card:hover{background:#f8faf4;border-color:#bdcda6}.playlist-card-copy{min-width:0;padding:18px 20px 20px}.playlist-cover{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:16/9;background:#eff3e8;overflow:hidden}.playlist-cover>img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}.playlist-cover-count{position:absolute;right:10px;bottom:10px;background:#172014db;color:#fff;font-size:.875rem;line-height:1.4;padding:5px 9px;border-radius:6px;z-index:1;font-variant-numeric:tabular-nums}.playlist-card h2{font-size:1.25rem;line-height:1.4;font-weight:600;margin:0 0 7px;overflow-wrap:anywhere}.playlist-card p{font-size:.875rem;color:var(--muted);margin:0 0 10px}.playlist-symbol{display:grid;place-items:center;width:48px;height:48px;flex-shrink:0;border-radius:12px;background:#eff5e3;color:#566d34}.playlist-symbol svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.playlist-private{font-size:.875rem;color:var(--muted)}.playlist-heading{align-items:flex-start;gap:20px}.playlist-heading h1{overflow-wrap:anywhere}.playlist-heading>div:first-child{min-width:0}.playlist-heading-actions{display:flex;align-items:center;gap:18px;flex-shrink:0}.playlist-videos{list-style:none;max-width:1040px;padding:0;margin:0}.playlist-video-row{display:flex;align-items:center;gap:20px;padding:20px 0;border-bottom:1px solid var(--border)}.playlist-position{width:24px;flex-shrink:0;text-align:center;font-size:.875rem;color:var(--muted);font-variant-numeric:tabular-nums}.playlist-video-row .next-card{flex:1;min-width:0;display:grid;grid-template-columns:180px minmax(0,1fr);align-items:center;gap:18px}.playlist-video-row .card-copy h2{font-size:1.125rem}.playlist-row-actions{display:flex;flex-direction:column;gap:3px;align-items:flex-start;flex-shrink:0}.playlist-row-actions button{min-height:36px;padding:6px 3px;font-size:.875rem}.playlist-row-actions button:disabled{opacity:.35;cursor:default}.playlist-video-title{font-size:1rem;font-weight:550;line-height:1.5;overflow-wrap:anywhere;margin-bottom:20px}.playlist-picker-list{display:grid;gap:8px;max-height:280px;overflow:auto}.playlist-choice{display:flex;align-items:center;justify-content:space-between;gap:18px;width:100%;text-align:left;border:1px solid var(--border);border-radius:9px;padding:14px;background:#fff;color:var(--ink)}.playlist-choice:hover{background:#f5f8ef}.playlist-choice[aria-pressed=true]{border-color:#b8ca98;background:#f1f7e6}.playlist-choice>span:first-child{min-width:0}.playlist-choice strong{display:block;font-size:1rem;font-weight:550;overflow-wrap:anywhere}.playlist-choice small{display:block;font-size:.875rem;color:var(--muted);margin-top:5px}.playlist-choice-state{font-size:.875rem;font-weight:550;flex-shrink:0}.playlist-create-form{display:flex;align-items:flex-end;gap:10px;border-top:1px solid var(--border);padding-top:20px;margin:20px 0}.playlist-create-form label{display:grid;gap:8px;flex:1;min-width:0;font-size:.875rem;font-weight:550}.playlist-create-form input{width:100%;min-height:43px;padding:10px 12px;border:1px solid #dfe4d8;border-radius:8px;font:inherit;font-size:1rem;color:var(--ink)}.playlist-create-form input:focus{outline:2px solid #afc588;outline-offset:1px}.playlist-create-form button{padding:11px 13px}#playlist-page-error .text-button{color:inherit;text-decoration:underline;margin-left:8px}#playlist-editor .upload-fields{margin-top:0}
@media(max-width:1000px){.playlist-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.playlist-video-row .next-card{grid-template-columns:150px minmax(0,1fr)}}
@media(max-width:640px){.playlist-grid{grid-template-columns:1fr;gap:14px}.playlist-card-copy{padding:16px 18px 18px}.playlist-heading{flex-direction:column}.playlist-heading-actions{gap:20px}.playlist-video-row{flex-wrap:wrap;gap:12px;padding:18px 0}.playlist-position{width:18px}.playlist-video-row .next-card{grid-template-columns:110px minmax(0,1fr);gap:12px}.playlist-video-row .card-copy h2{font-size:1rem}.playlist-row-actions{flex-direction:row;flex-wrap:wrap;gap:18px;padding-left:30px;width:100%}.playlist-row-actions button{min-height:40px}.playlist-create-form{align-items:stretch;flex-direction:column}.playlist-create-form button{align-self:flex-start}.playlist-picker-list{max-height:35dvh}}

.playlist-heading-actions{flex-wrap:wrap}.playlist-playback-status{font-size:.875rem;line-height:1.6;margin:12px 0;color:#52663b}.playlist-playback-status button{color:inherit;text-decoration:underline;text-underline-offset:3px;margin-left:6px}.queue-heading{border:1px solid var(--border);border-bottom:0;border-radius:12px 12px 0 0;background:#f7f9f2;padding:18px}.queue-heading .eyebrow{font-size:.75rem;margin-bottom:7px;display:block}.next-panel .queue-heading h2{font-size:1.125rem;line-height:1.4;display:block;margin:0 0 7px;overflow-wrap:anywhere}.queue-heading h2 a:hover{text-decoration:underline;text-underline-offset:3px}.queue-heading p{font-size:.875rem;margin:0;color:var(--muted)}.queue-videos{position:relative;list-style:none;padding:6px;margin:0;border:1px solid var(--border);border-radius:0 0 12px 12px;max-height:520px;overflow-y:auto;overscroll-behavior:contain}.queue-video{display:grid;grid-template-columns:18px 100px minmax(0,1fr);align-items:center;gap:10px;border-radius:8px;padding:12px 8px}.queue-video:hover{background:#f6f8f0}.queue-video.is-current{background:#edf5dd}.queue-position{font-size:.875rem;text-align:center;color:var(--muted);font-variant-numeric:tabular-nums}.queue-thumbnail{position:relative;display:block;aspect-ratio:16/9;background:#eaf0df;overflow:hidden;border-radius:6px}.queue-thumbnail img{width:100%;height:100%;display:block;object-fit:cover}.queue-thumbnail>span:not(.queue-thumbnail-empty){position:absolute;bottom:3px;right:3px;background:#182015db;color:white;font-size:.75rem;padding:2px 4px;border-radius:3px}.queue-thumbnail-empty{display:grid;place-items:center;height:100%;color:#7b8b65}.queue-copy{display:grid;gap:4px;min-width:0}.queue-copy strong{font-size:1rem;font-weight:550;line-height:1.4;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.queue-copy>span{font-size:.875rem;color:var(--muted);line-height:1.35;overflow-wrap:anywhere}.queue-copy .queue-current{color:#4e672c;font-weight:550}.queue-error-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}@media(max-width:1100px) and (min-width:821px){.queue-video{grid-template-columns:16px 75px minmax(0,1fr);gap:7px;padding:10px 5px}}@media(max-width:820px){.queue-videos{max-height:400px}.queue-video{grid-template-columns:20px 130px minmax(0,1fr);padding:12px 10px}}@media(max-width:440px){.queue-video{grid-template-columns:16px 90px minmax(0,1fr);gap:8px;padding:10px 6px}.playlist-heading-actions{gap:14px}}

.share-video-title{font-size:1rem;font-weight:550;line-height:1.5;overflow-wrap:anywhere;margin:0 0 22px}.share-link-label{display:block;font-size:.875rem;font-weight:550;margin-bottom:8px}.share-link-row{display:flex;gap:10px;align-items:stretch}.share-link-row input{flex:1;min-width:0;width:100%;border:1px solid var(--border);border-radius:8px;padding:11px 12px;font-size:.875rem;background:#f8faf5;color:var(--ink)}.share-link-row input:focus,.share-start-row input[type=text]:focus{outline:2px solid #afc588;outline-offset:1px}.share-start-row{display:flex;gap:14px;align-items:center;margin:22px 0 7px;flex-wrap:wrap}.share-start-row label{display:inline-flex;align-items:center;gap:9px;font-size:1rem;cursor:pointer}.share-start-row input[type=checkbox]{width:18px;height:18px;accent-color:#6d8a24;margin:0}.share-start-row input[type=text]{width:112px;border:1px solid var(--border);border-radius:8px;padding:9px 11px;color:var(--ink);font-size:1rem;font-variant-numeric:tabular-nums}.share-start-row input[type=text]:disabled{background:#f5f6f2;color:var(--muted)}.share-hint{font-size:.875rem;line-height:1.5;color:var(--muted);margin:0 0 17px}.share-status{min-height:1.5em;font-size:.875rem;line-height:1.5;color:#526a36;margin:16px 0 0}#share-error{margin-bottom:0}@media(max-width:440px){.share-link-row{flex-direction:column}.share-link-row .upload-button{align-self:flex-start}}

.history-heading{gap:20px;align-items:center}.history-summary{display:flex;justify-content:space-between;gap:20px;align-items:baseline;margin:-10px 0 24px;color:var(--muted);font-size:.875rem;line-height:1.5}.history-summary>span{white-space:nowrap}.history-summary p{margin:0}.history-status{color:#526a36;font-size:.875rem;line-height:1.5;margin:0 0 20px}.history-status:empty{display:none}.history-video{min-width:0}.history-details{margin:10px 0 0 46px;display:grid;grid-template-columns:1fr auto;gap:5px 14px;font-size:.875rem;color:var(--muted);line-height:1.5}.history-details time{grid-column:1/-1}.history-details>span{align-self:center}.history-details button{font-size:.875rem;padding:6px 0;color:var(--muted)}.history-details button:hover{color:var(--ink)}.history-details button:disabled{opacity:.5;cursor:default}.history-more{margin-top:28px}@media(max-width:640px){.history-heading{flex-wrap:wrap}.history-summary{flex-direction:column;gap:7px}.history-details{margin-left:0}}

.watch-view-count{display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-size:.875rem;line-height:1.5;color:var(--muted);margin:9px 0 0}.watch-view-count button{color:inherit;padding:3px 0;text-decoration:underline;text-underline-offset:3px}.studio-view-count{margin-right:auto;font-size:.875rem;color:var(--muted);font-variant-numeric:tabular-nums}.managed-video .video-actions{align-items:center;flex-wrap:wrap}

.browse-heading{align-items:center;flex-wrap:wrap}.browse-controls{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:14px 20px}.sort-control{display:flex;align-items:center;gap:9px;font-size:.875rem;color:var(--muted);white-space:nowrap}.sort-control select{font:inherit;font-size:1rem;min-height:40px;max-width:100%;border:1px solid #dfe5d7;border-radius:8px;padding:8px 10px;background:#fff;color:var(--ink);cursor:pointer}.sort-control select:focus-visible{outline:2px solid #8da957;outline-offset:2px}.sort-status{font-size:.875rem;line-height:1.6;color:var(--muted);margin:-8px 0 22px}.sort-status button{color:inherit;text-decoration:underline;text-underline-offset:3px;padding:3px 5px}@media(max-width:560px){.browse-heading{gap:15px}.browse-controls{width:100%;justify-content:flex-end;gap:10px}.sort-control{gap:7px}}

.comment-actions{display:flex;align-items:center;flex-wrap:wrap;gap:16px}.comment-actions .comment-report{margin-left:0}.comment-thread{margin-top:12px;padding-left:18px;border-left:2px solid #edf1e7}.comment-replies-list{list-style:none;padding:0;margin:0}.comment-replies-list>.comment{padding:16px 0;gap:10px}.comment-replies-list .avatar{width:30px;height:30px;min-width:30px;font-size:.75rem}.comment-replies-list>.comment-removed{padding:16px 0 16px 40px}.replies-toggle{display:block;color:#536d2d;font-weight:550;padding:9px 0 0}.reply-form{padding:16px 0 0;margin-bottom:8px}.reply-form .comment-form-actions{gap:10px;flex-wrap:wrap}.reply-form .comment-form-actions>span{flex:1 1 180px}.reply-form .commenting-as{margin-top:0}.comment-removed>.comment-thread{font-style:normal;color:var(--ink)}@media(max-width:560px){.comment-thread{padding-left:10px}.comment-actions{gap:14px}.comment-replies-list>.comment{gap:8px}.reply-form .comment-form-actions>span{flex-basis:100%}.reply-form .comment-form-actions>.text-button{margin-left:auto}.reply-form .comment-form-actions>.upload-button{margin-left:0}}

.comment-removed>.comment-thread .comment-body{font-style:normal;margin:7px 0 0}

.notifications{position:relative}.notification-bell{position:relative;width:44px;height:44px;display:grid;place-items:center;border:1px solid transparent;border-radius:50%;color:var(--ink);background:#fff;cursor:pointer}.notification-bell:hover,.notification-bell[aria-expanded=true]{background:#f1f6e8}.notification-bell:focus-visible{outline:2px solid #789a36;outline-offset:3px}.notification-bell svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.notification-badge{position:absolute;right:-3px;top:-2px;min-width:21px;height:21px;padding:0 5px;border:2px solid #fff;border-radius:12px;background:var(--accent);color:#243111;font-size:.75rem;line-height:17px;font-weight:650;text-align:center}.notifications-panel{position:absolute;z-index:10;top:55px;right:0;width:390px;max-width:calc(100vw - 32px);max-height:min(550px,calc(100dvh - 125px));overflow:auto;overscroll-behavior:contain;background:#fff;border:1px solid var(--border);border-radius:14px;box-shadow:0 14px 45px #1520191c}.notifications-heading{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px 14px 20px;background:#fff;border-bottom:1px solid var(--border)}.notifications-heading h2{font-size:1.125rem;line-height:1.4;font-weight:600;margin:0}.notifications-heading .icon-button{width:34px;height:34px}.notifications-status{font-size:.875rem;line-height:1.6;color:var(--muted);padding:20px;margin:0}.notification-list{list-style:none;margin:0;padding:5px}.notification-item{width:100%;display:flex;align-items:flex-start;gap:12px;border:0;border-radius:9px;text-align:left;padding:16px 14px;background:#fff;color:var(--ink);cursor:pointer}.notification-item.is-unread{background:#f5f9ec}.notification-list li+li{margin-top:3px}.notification-item:hover{background:#edf4e0}.notification-item:focus-visible{outline:2px solid #789a36;outline-offset:-2px}.notification-item:disabled{opacity:.65;cursor:wait}.notification-item>.avatar{flex-shrink:0;margin-top:2px}.notification-copy{min-width:0;display:grid;gap:6px;font-size:.875rem;line-height:1.5;overflow-wrap:anywhere}.notification-description strong{font-weight:600}.notification-body{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:pre-wrap}.notification-video{color:var(--muted);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.notification-copy time{font-size:.75rem;color:var(--muted)}.notification-unread{width:7px;height:7px;flex-shrink:0;border-radius:50%;background:#65842e;margin-top:7px}.notifications-footer{display:flex;justify-content:center;gap:16px}.notifications-footer:has(button:not([hidden])){padding:12px 20px 18px}.notifications-footer .text-button{font-size:.875rem;color:#536d2d;padding:8px}.comment-target{background:#f5f9ec;border-radius:9px;scroll-margin:24px;outline:2px solid #b7cf8e;outline-offset:6px}.comment-linked-label{font-size:.75rem;color:#536d2d}.comment-meta{flex-wrap:wrap}@media(max-width:680px){.notifications-panel{position:fixed;top:76px;right:16px;max-height:calc(100dvh - 94px);width:390px}.notification-bell{width:40px;height:40px}.notification-item{padding:15px 12px}.notification-badge{right:-1px}.notifications-heading{padding-left:18px}}

.notification-group-icon{background:#edf5dd;color:#536d2d}.notification-group-icon svg{width:19px;height:19px}

.comment-edited{font-size:.75rem;color:var(--muted)}.comment-edit-form{margin:12px 0 4px}.comment-edit-form .comment-form-actions{flex-wrap:wrap;gap:10px}.comment-edit-form .comment-form-actions>span{flex:1 1 180px}@media(max-width:560px){.comment-edit-form .comment-form-actions>span{flex-basis:100%}.comment-edit-form .comment-form-actions>.text-button{margin-left:auto}.comment-edit-form .comment-form-actions>.upload-button{margin-left:0}}

.comment-pin-label{font-size:.875rem;font-weight:550;line-height:1.5;color:#536d2d;margin:0 0 8px}.comment-actions button:disabled{opacity:.5;cursor:default}

/* Keep intrinsic media sizes and long user text inside their columns. */
.header-inner .search,.watch-heading h1,.creator-link,.creator-link>span:last-child,
.dialog-heading>div,.dialog-heading h2{min-width:0}
.watch-heading h1,.card-copy h2,.creator-link>span:last-child,.dialog-heading h2{overflow-wrap:anywhere}
.player-wrap,.player-wrap video,#upload-preview{min-width:0;max-width:100%}
.watch-author-row .creator-link{max-width:100%}
.watch-video-actions>div{min-width:0;max-width:100%}
.account-dropdown{max-width:calc(100vw - 32px);max-height:calc(100vh - 80px);max-height:calc(100dvh - 80px);overflow-y:auto;overscroll-behavior:contain}
.upload-actions{flex-wrap:wrap}

/* Touch controls stay easy to use without changing the desktop layout. */
@media(max-width:760px),(pointer:coarse){
  .header-actions .upload-button,.notification-bell{min-width:44px;min-height:44px}
  .account-menu summary{display:grid;place-items:center;min-width:44px;min-height:44px}
  .account-dialog .icon-button,.notifications-heading .icon-button,.icon-button{width:44px;height:44px;min-width:44px;min-height:44px}
  .button,.button-secondary,.upload-button,.danger-button,.watch-later-button,.like-button,.subscribe-button{min-height:44px}
  .header-actions .text-button,.header-actions .button-secondary{min-height:44px;min-width:44px;font-size:.875rem}
  .section-nav a{min-height:44px;display:inline-flex;align-items:center;padding-top:8px;padding-bottom:10px;flex-shrink:0}
  .chip{min-height:44px}
  .comment-actions{gap:0 8px;margin-top:4px}
  .comment-actions .comment-action{min-width:44px;min-height:44px;padding:10px 6px}
  .comment-actions .comment-action:first-child{margin-left:-6px}
  .replies-toggle{min-height:44px;padding:10px 0}
  .comment-form-actions>.text-button,.notifications-footer .text-button,.playlist-row-actions button{min-height:44px;padding:10px 8px}
  .video-actions .text-button,.saved-video-actions .text-button,.history-details button{min-height:44px;padding:10px 6px}
  .card-bookmark{width:44px;height:44px;min-width:44px;min-height:44px}
  .selected-file button{min-width:44px;min-height:44px;padding:10px 6px;font-size:.875rem}
  .header-inner .search{height:46px}
  .search input,.share-link-row input{font-size:1rem}
  .search kbd{display:none}
}

@media(max-width:560px){
  .header-inner{padding:16px;gap:14px 8px}
  .header-actions,.guest-actions{gap:4px}
  .header-actions{max-width:100%;flex-wrap:wrap}
  .header-actions .upload-button{width:44px;height:44px;padding:11px}
  .header-actions .text-button{padding:10px 4px}
  .header-actions .button-secondary{padding:10px 8px}
  .notification-bell{width:44px;height:44px}
  .account-menu .avatar{width:36px;height:36px}
  main{padding:26px 16px 36px}
  .section-nav,.categories,.subscription-channel-list{min-width:0;max-width:100%;margin-right:0;padding-right:3px;overscroll-behavior-x:contain}
  .category-label{font-size:.875rem}
  .card-copy h2{font-size:1.25rem}
  .next-card .card-copy h2{font-size:1rem}
  .watch-video-actions{gap:8px;width:100%}
  .watch-video-actions .watch-later-button,.watch-video-actions .like-button{padding:10px 13px}
  .watch-video-actions .report-video-button{min-height:44px;padding:10px 8px}
  .comments-heading{flex-wrap:wrap;gap:8px 14px}
  .comment-form-actions>span{flex-basis:100%}
  .comment-form-actions>.upload-button{margin-left:auto}
  .reply-form .comment-form-actions>.upload-button,.comment-edit-form .comment-form-actions>.upload-button{margin-left:0}
  .comment-form textarea{padding:12px;scroll-margin-block:24px}
  .comment-thread{padding-left:8px}
  .comment-removed{padding-left:0}
  .comment-replies-list>.comment-removed{padding-left:0}
  .account-dialog,#upload-dialog{padding:20px 16px;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain}
  .dialog-heading{gap:10px}
  .dialog-heading p{font-size:.875rem}
  .upload-actions>*{max-width:100%;white-space:normal;line-height:1.4}
  .upload-actions>.button-secondary,.upload-actions>.danger-button{flex:1 1 auto}
  .notifications-panel{right:16px;left:16px;width:auto;max-width:none;max-height:calc(100vh - 92px);max-height:calc(100dvh - 92px - env(safe-area-inset-bottom,0px))}
  .notifications-heading{padding:10px 12px 10px 16px}
  .notification-item{gap:10px;padding:14px 10px}
  .playlist-video-row .next-card{grid-template-columns:minmax(80px,38%) minmax(0,1fr)}
  .history-details{grid-template-columns:minmax(0,1fr) auto}
  .continue-details{margin-left:0}
}

@media(max-width:360px){
  .header-inner .brand{font-size:1.125rem;gap:5px;letter-spacing:-.7px}
  .header-inner .brand>svg{width:26px;height:26px}
  .header-inner{column-gap:6px}
  .header-actions,.guest-actions{gap:3px}
}

.channel-search{padding-bottom:26px;margin-bottom:26px;border-bottom:1px solid var(--border)}
.channel-tabs{display:flex;gap:26px;border-bottom:1px solid var(--border);margin:28px 0}
.channel-tabs a{font-size:1rem;padding:14px 2px;min-height:48px;border-bottom:3px solid transparent;color:var(--muted)}
.channel-tabs a[aria-current]{color:var(--ink);font-weight:600;border-bottom-color:#81994e}
.cp-list-heading{margin-bottom:24px;gap:16px;flex-wrap:wrap}
.cp-list-heading h2{font-size:1.25rem;margin:0}
.cp-picker-list{max-height:45dvh;overflow-y:auto;overscroll-behavior:contain}
.cp-picker-row{display:grid;grid-template-columns:80px minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--border)}
.cp-picker-row img,.cp-picker-placeholder{width:80px;aspect-ratio:16/9;border-radius:6px;object-fit:cover;background:#edf2e5}
.cp-picker-placeholder{display:grid;place-items:center;color:var(--muted)}
.cp-picker-row strong{font-size:1rem;font-weight:550;overflow-wrap:anywhere;line-height:1.4}
.cp-picker-row button{min-height:44px;white-space:nowrap;padding:10px}
#cp-picker{width:min(600px,calc(100% - 32px))}
#cp-editor .upload-fields{margin-top:0}
#cp-page-error .text-button{color:inherit;text-decoration:underline}
@media(max-width:440px){.cp-picker-row{grid-template-columns:60px minmax(0,1fr) auto;gap:8px}.cp-picker-row img,.cp-picker-placeholder{width:60px}}
.channel-search h2,.search-videos-title{font-size:1.125rem;font-weight:600;line-height:1.4;margin:0 0 18px}
.channel-search-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;list-style:none;padding:0;margin:0}
.channel-search-list li{min-width:0}
.channel-search-card{display:flex;align-items:center;gap:12px;min-height:76px;height:100%;padding:14px;border:1px solid var(--border);border-radius:10px}
.channel-search-card:hover{background:#f5f8ef;border-color:#d5dfc7}
.channel-search-card:focus-visible{outline-offset:-3px}
.channel-search-copy{display:grid;gap:5px;min-width:0;overflow-wrap:anywhere}
.channel-search-copy strong{font-size:1rem;font-weight:600;line-height:1.4}
.channel-search-copy>span{font-size:.875rem;line-height:1.4;color:var(--muted)}
.channel-search-status{font-size:.875rem;line-height:1.6;color:var(--muted);margin:0 0 16px}
.channel-search-status .text-button{color:inherit;text-decoration:underline;min-height:44px}
#channel-search-more{margin-top:16px;min-height:44px}
@media(max-width:850px){.channel-search-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.channel-search-list{grid-template-columns:1fr;gap:10px}.channel-search{padding-bottom:22px;margin-bottom:22px}.channel-search-card{padding:12px;min-height:72px}}

.upload-playlist-editor{padding:16px;border:1px solid var(--border);border-radius:10px;margin:8px 0 16px}
.upload-playlist-editor .upload-fields{margin-top:0}
#new-upload-playlist{min-height:44px;text-decoration:underline;text-underline-offset:3px}

.search-query-label{margin:0 0 28px;overflow-wrap:anywhere}
/* Email sign-in uses the same compact form styles as channel editing. */
.auth-form .upload-fields{display:flex;flex-direction:column;gap:18px;margin:22px 0}.auth-form .upload-fields label{display:flex;flex-direction:column;gap:8px}.auth-form [hidden]{display:none!important}.password-input{display:flex;align-items:center;gap:10px}.password-input input{min-width:0;flex:1}.password-input button{min-width:44px}.auth-form-actions{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;margin:20px 0}.auth-message{padding:14px 16px;border-radius:10px;background:#f1f7e7;line-height:1.6;font-size:.9rem}.auth-legacy{font-size:.8rem;color:var(--muted);margin-top:22px;line-height:1.6}.auth-legacy summary{cursor:pointer}.auth-legacy p{margin:12px 0}.account-dropdown>button{display:block;width:100%;text-align:left;border:0;background:transparent;color:inherit;font:inherit;padding:10px 12px;cursor:pointer}.account-dropdown>button:hover{background:#f2f5ec}.account-dropdown>button[hidden]{display:none}

/* The picture stays clear; playback controls appear only on interaction. */
.player-wrap{position:relative;background:#0b0b0b;aspect-ratio:16/9}
.player-wrap video{object-fit:cover;object-position:center}
.media-controls{position:absolute;inset:0;z-index:2;color:#fff;pointer-events:none;background:linear-gradient(to top,#0009,transparent 90px);opacity:1;visibility:visible;transition:opacity .18s ease,visibility .18s ease}
.media-controls button,.media-controls input,.media-settings-panel{pointer-events:auto}
.media-controls button{display:flex;align-items:center;justify-content:center;border:0;color:#fff;cursor:pointer;padding:0;flex-shrink:0;-webkit-appearance:none;appearance:none}
.media-buttons{position:absolute;left:6px;right:6px;bottom:18px;display:flex;align-items:center;gap:4px;min-height:40px}
.media-buttons button{height:40px;width:40px;border-radius:50%;background:transparent}
.media-buttons button:hover{background:#ffffff20}
.media-buttons svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.media-buttons .media-play svg,.media-buttons .media-more-icon{fill:currentColor;stroke:none}
.media-time{font-size:.8125rem;font-variant-numeric:tabular-nums;line-height:1.3;white-space:nowrap;margin-right:auto;text-shadow:0 1px 2px #000}
.media-volume-control{display:flex;align-items:center;pointer-events:auto}
.media-volume{width:0;opacity:0;min-width:0;accent-color:#fff;margin:0;transition:width .15s ease,opacity .15s ease}
.media-volume-control:hover .media-volume,.media-volume-control:focus-within .media-volume{width:60px;opacity:1;margin-right:8px}
.media-seek{--played:0%;position:absolute;left:10px;bottom:0;width:calc(100% - 20px);height:24px;margin:0;border:0;padding:0;background:transparent;cursor:pointer;-webkit-appearance:none;appearance:none;accent-color:#eee}
.media-seek::-webkit-slider-runnable-track{height:3px;border:0;border-radius:0;background:linear-gradient(to right,#eee 0%,#eee var(--played),#ffffff50 var(--played),#ffffff50 100%)}
.media-seek::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:10px;height:10px;margin-top:-3.5px;border:0;border-radius:50%;background:#eee;opacity:0}
.media-seek::-moz-range-track{height:3px;border:0;border-radius:0;background:#ffffff50}
.media-seek::-moz-range-progress{height:3px;border:0;border-radius:0;background:#eee}
.media-seek::-moz-range-thumb{width:10px;height:10px;border:0;border-radius:50%;background:#eee;opacity:0}
.media-seek:hover::-webkit-slider-thumb,.media-seek:focus-visible::-webkit-slider-thumb,.media-seek:active::-webkit-slider-thumb{opacity:1}
.media-seek:hover::-moz-range-thumb,.media-seek:focus-visible::-moz-range-thumb,.media-seek:active::-moz-range-thumb{opacity:1}
.media-settings-panel{position:absolute;right:12px;bottom:64px;z-index:3;display:flex;align-items:center;gap:16px;padding:12px 14px;border:1px solid #ffffff20;border-radius:8px;background:#242424f5;box-shadow:0 4px 20px #0004;font-size:.875rem}
.media-settings-panel select{min-height:36px;max-width:95px;background:#383838;color:#fff;border:1px solid #ffffff30;border-radius:5px;padding:4px 8px;font:inherit;color-scheme:dark}
.media-controls :focus-visible{outline:2px solid #fff;outline-offset:2px}
.player-wrap.controls-hidden{cursor:none}
.player-wrap.controls-hidden .media-controls{opacity:0;visibility:hidden;pointer-events:none}
.player-wrap.controls-hidden .media-controls *{pointer-events:none}
.player-wrap:focus-visible{outline:2px solid #aeb6a7;outline-offset:3px}
.media-note{font-size:.875rem;line-height:1.5;color:var(--muted);margin:10px 0}
.player-wrap:fullscreen,.player-wrap.is-expanded{background:#000;aspect-ratio:auto;border-radius:0;width:100%;height:100%}
.player-wrap.is-expanded{position:fixed;inset:0;z-index:100;width:100dvw;height:100dvh}
.player-wrap:fullscreen .media-controls,.player-wrap.is-expanded .media-controls{bottom:env(safe-area-inset-bottom);left:env(safe-area-inset-left);right:env(safe-area-inset-right)}
@media(max-width:560px){.media-buttons{gap:0}.media-volume{display:none}}
@media(prefers-reduced-motion:reduce){.media-controls{transition:none}}

/* Phones keep a compact return link between the header and player. */
@media(max-width:760px){
  body:has(#watch-view:not([hidden])) .header-inner{height:auto;min-height:64px;padding:10px 12px;gap:6px}
  body:has(#watch-view:not([hidden])) .header-inner .search,
  body:has(#watch-view:not([hidden])) .section-nav{display:none}
  body:has(#watch-view:not([hidden])) #watch-back{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin:0;padding:10px 0;font-size:.875rem}
  body:has(#watch-view:not([hidden])) #main{padding-top:0;padding-left:16px;padding-right:16px}
  body:has(#watch-view:not([hidden])) .watch-layout{grid-template-columns:minmax(0,1fr)}
  body:has(#watch-view:not([hidden])) .player-wrap:not(:fullscreen):not(.is-expanded){width:calc(100% + 32px);max-width:none;margin-left:-16px;margin-right:-16px;border-radius:0}
}

/* Compact watch-page information and actions. */
#watch-view .watch-heading{display:block;margin-top:18px}
#watch-view .watch-heading h1{font-size:1.5rem;line-height:1.3;margin:0;letter-spacing:-.4px}
#watch-view .watch-view-count{gap:7px;margin-top:6px;font-size:.8125rem}
#watch-view .watch-category{display:inline;background:none;padding:0;margin:0;border-radius:0;font:inherit;color:inherit}
#watch-view .watch-author-row{flex-wrap:nowrap;gap:12px;margin:16px 0 12px}
#watch-view .watch-creator{flex:1;min-width:0;font-size:.875rem;gap:9px}
#watch-view .creator-link{display:flex;align-items:center;gap:9px;min-width:0}
#watch-view .creator-link>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#watch-view .watch-creator .avatar{width:34px;height:34px;flex-shrink:0;font-size:.75rem}
#watch-subscription{flex-shrink:0}
#watch-subscription .subscribe-with-count{gap:0}
#watch-subscription [data-subscriber-count]{display:none}
#watch-subscription .subscribe-button{padding:8px 15px;font-size:.8125rem;min-height:40px}
#watch-view .watch-video-actions{display:flex;flex-wrap:nowrap;gap:8px;width:100%;margin-bottom:12px}
#watch-view .watch-video-actions>div{flex-shrink:0}
#watch-view .watch-video-actions>.watch-later-button,#watch-view .like-button{border:0;background:#f1f2ef;min-height:44px;padding:9px 15px;font-size:.8125rem;gap:7px}
#watch-view .like-button.is-liked{background:#e5efcf;color:#435b25}
#watch-view .watch-video-actions>.watch-later-button:hover,#watch-view .like-button:hover{background:#e7e9e3}
#watch-view .like-count{border:0;padding-left:0;margin-left:0}
.watch-more{position:relative;flex-shrink:0;margin-left:auto}
.watch-more>summary{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:#f1f2ef;cursor:pointer;list-style:none}
.watch-more>summary::-webkit-details-marker{display:none}
.watch-more>summary svg{width:20px;height:20px}
.watch-more>summary:focus-visible{outline:2px solid #7a942f;outline-offset:3px}
.watch-more-panel{position:absolute;right:0;top:50px;z-index:20;min-width:190px;padding:6px;background:white;border:1px solid var(--border);border-radius:12px;box-shadow:0 8px 28px #17201020}
#watch-view .watch-more-panel button{width:100%;min-height:44px;justify-content:flex-start;text-align:left;border:0;border-radius:7px;padding:10px 12px;background:transparent;font-size:.875rem;color:var(--ink)}
#watch-view .watch-more-panel button:hover{background:#f1f2ef}
#watch-view .watch-description{font-size:.875rem;line-height:1.6;margin:0 0 10px}
#watch-view .source-line{display:flex;flex-wrap:wrap;gap:8px 18px;border:0;padding:0 0 12px;margin:0;font-size:.75rem}
#watch-view .comments-section{background:#f5f6f3;border:0;border-radius:12px;margin-top:16px;padding:14px}
#watch-view .comments-heading{margin-bottom:10px;gap:8px}
#watch-view .comments-heading h2{font-size:1rem;letter-spacing:0}
#watch-view .comments-heading h2 span{font-size:.8125rem;margin-left:5px}
#watch-view .comments-heading>span{font-size:.75rem}
#watch-view .comment-signin{display:block;border:0;padding:0;margin:0}
#watch-view .comment-signin button{width:100%;text-align:left;justify-content:flex-start;border:0;border-radius:20px;background:#e9ebe5;font-size:.8125rem;font-weight:400;color:var(--muted);padding:10px 14px}
#watch-view .comment-empty{font-size:.8125rem;padding:10px 0 0}
#watch-view .commenting-as{font-size:.75rem;margin:0 0 8px}
#watch-view .comment-form textarea{min-height:44px;height:44px;font-size:.875rem}
#watch-view .comment-form textarea:focus{height:90px}
#watch-view .comment-form-actions{gap:8px}
#watch-view .comment-form-actions>span{font-size:.6875rem}
#watch-view #next-count{display:none}
@media(max-width:760px){
 #watch-view .watch-heading h1{font-size:1.25rem}
 #watch-view .watch-heading{margin-top:14px}
 #watch-view .watch-video-actions>.watch-later-button,#watch-view .like-button{padding:9px 12px}
 #watch-view .watch-video-actions .like-label{display:none}
 #watch-view .watch-video-actions{gap:6px}
 #watch-view .next-panel{border:0;padding-top:18px}
 #watch-view .next-panel h2{font-size:1rem;margin-bottom:12px}
 #watch-view .next-list{gap:14px}
}

/* Conversation sheet: shared layout, typography and touch controls. */
#comment-form{margin:0}
#watch-view #comment-form:not(.is-expanded) .comment-name-field,
#watch-view #comment-form:not(.is-expanded) .comment-form-actions{display:none}
#watch-view #comment-form #comment-text{display:block;width:100%;height:44px;min-height:44px;resize:none;border:0;border-radius:22px;background:#e9ebe5;padding:12px 14px;font-size:.875rem}
#watch-view #comment-form.is-expanded #comment-text{height:88px;border-radius:10px;background:#fff;border:1px solid var(--border);resize:vertical}
#watch-view #comment-form .comment-name-field{margin:12px 0 0}
#watch-view #comment-form .comment-name-field label{font-size:.875rem;margin-bottom:6px}
#watch-view #comment-form .comment-name-field input{min-height:44px;padding:10px 12px;font-size:1rem}
#watch-view #comment-form .comment-form-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:10px}
#watch-view #comment-form .comment-form-actions>span{margin-right:auto}
#watch-view #comment-form .comment-form-actions button{min-height:44px;padding:8px 16px;font-size:.875rem;border-radius:24px}
#watch-view #comment-form #comment-cancel{color:var(--ink)}
#watch-view #comments-heading:focus{outline:none}
#watch-view .comment{gap:10px;padding:12px 0;border:0}
#watch-view .comment>.avatar{width:32px;height:32px;min-width:32px;font-size:.75rem}
#watch-view .comment-content{flex:1;min-width:0}
#watch-view .comment-meta{position:relative;gap:4px 8px;padding-right:30px;min-height:24px;font-size:.875rem}
#watch-view .comment-meta time{font-size:.75rem;font-weight:400}
#watch-view .comment-body{margin:3px 0 0;line-height:1.45}
#watch-view .comment-actions{margin:0;gap:8px}
#watch-view .comment-actions:empty{display:none}
#watch-view .comment-actions .comment-action{font-size:.875rem;padding:8px 6px}
#watch-view .replies-toggle{display:inline-flex;align-items:center;gap:5px;min-height:44px;padding:8px 0;font-size:.875rem}
#watch-view .comment-thread{border:0;margin:0;padding:0}
#watch-view .comment-replies-list>.comment{padding:6px 0;gap:8px}
#watch-view .comment-replies-list .avatar{width:26px;height:26px;min-width:26px;font-size:.6875rem}
#watch-view .reply-form{padding:6px 0;margin:0}
#watch-view .reply-form textarea{font-size:1rem}
#watch-view .comment-notice{margin:6px 0;font-size:.8125rem}
.comment-menu{position:absolute;right:-8px;top:-10px;font-weight:400}
.comment-menu>summary{width:44px;height:44px;display:flex;align-items:center;justify-content:center;cursor:pointer;list-style:none;color:var(--muted)}
.comment-menu>summary::-webkit-details-marker{display:none}
.comment-menu>summary svg{width:18px;height:18px}
.comment-menu>summary:focus-visible{outline:2px solid #7a942f;border-radius:50%}
.comment-menu>div{position:absolute;right:8px;top:40px;z-index:10;min-width:110px;background:white;border:1px solid var(--border);border-radius:10px;box-shadow:0 5px 20px #17201018;padding:4px}
.comment-menu>div>button{width:100%;min-height:44px;padding:8px 14px;text-align:left;font-size:.875rem;color:var(--ink)}
.comments-preview{display:block;width:100%;border:0;border-radius:14px;background:#f2f3f0;padding:14px;text-align:left;color:var(--ink);margin:16px 0;font:inherit;cursor:pointer}
.comments-preview-title{display:block;font-size:1rem;font-weight:600;margin-bottom:10px}
.comments-preview-title>span{font-size:.875rem;font-weight:400;color:var(--muted);margin-left:5px}
.comments-preview-input{display:block;border-radius:24px;background:#e6e8e3;padding:9px 14px;font-size:.875rem;color:var(--muted)}
body.comments-sheet-open{overflow:hidden}
#comments-panel.comments-sheet{position:fixed;inset:auto 0 auto;margin:0 auto;width:min(100%,720px);max-width:100%;height:64dvh;max-height:none;padding:0;border:0;border-radius:18px 18px 0 0;background:#fff;color:var(--ink);box-shadow:none;overflow:hidden;bottom:auto}
#comments-panel.comments-sheet[open]{display:flex;flex-direction:column}
#comments-panel::backdrop{background:transparent}
.comments-sheet-handle{flex-shrink:0;width:40px;height:4px;border-radius:4px;background:#d8dad5;margin:9px auto 4px}
.comments-sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-shrink:0;padding:4px 12px 8px;border-bottom:1px solid #e5e5e5}
.comments-sheet-heading h2{font-size:1.125rem;margin:0;font-weight:650;flex:1;outline:none}
.comments-sheet-heading h2 span{font-size:.875rem;color:var(--muted);font-weight:400;margin-left:6px}
#comments-close{border:0;background:none;width:44px;height:44px;font-size:2rem;color:var(--ink);cursor:pointer}
.comments-sheet-scroll{overflow-y:auto;overscroll-behavior:contain;min-height:0;flex:1;padding:8px 12px 12px;-webkit-overflow-scrolling:touch}
#comments-panel #comment-composer{padding-bottom:14px;border-bottom:1px solid #eee;margin-bottom:6px}
#watch-view #comments-panel .comment{padding:14px 0 18px;gap:12px}
#watch-view #comments-panel .comment>.avatar{width:28px;height:28px;min-width:28px;font-size:.75rem}
#watch-view #comments-panel .comment-meta{font-size:.875rem;gap:4px;padding-right:28px;justify-content:flex-start;align-items:baseline;flex-wrap:wrap;color:#60635e;min-height:18px;line-height:1.3}
#watch-view #comments-panel .comment-meta>a,#watch-view #comments-panel .comment-meta>span{font-weight:500}
#watch-view #comments-panel .comment-meta time{margin-left:0;font-size:inherit}
#watch-view #comments-panel .comment-body{font-size:1rem;line-height:1.5;margin-top:3px;color:#171917;margin:4px 0 0;overflow-wrap:anywhere}
#watch-view #comments-panel .comment-actions .comment-action svg{width:22px;height:22px;display:block}
#watch-view #comments-panel .comment-replies-list>.comment{padding:8px 0}
#watch-view #comments-panel .comment-replies-list .avatar{width:28px;height:28px;min-width:28px}
#watch-view #comments-panel .replies-toggle{text-decoration:none;font-weight:600;font-size:.875rem;color:#171917;gap:7px;padding:4px 0;min-height:44px;margin-top:0}
#comments-close,#comments-back{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;min-height:44px;border:0;border-radius:50%;background:none;color:#171917;font-size:2rem;padding:0;outline:none;box-shadow:none}
#comments-close:focus-visible,#comments-back:focus-visible{outline:2px solid #444;outline-offset:-4px}
#comments-back[hidden]{display:none}
.comments-sheet-footer{flex-shrink:0;border-top:1px solid #ddd;background:white;padding:8px 12px max(8px,env(safe-area-inset-bottom));max-height:60%;overflow-y:auto}
#comments-panel .comments-sheet-footer #comment-composer{padding:0;border:0;margin:0}
#comments-panel .comments-sheet-footer [hidden]{display:none!important}
#watch-view #comments-panel .comment-meta time::before{content:'·';margin-right:5px}
#watch-view #comments-panel .comment-actions{margin-top:4px;flex-wrap:wrap;gap:4px}
#watch-view #comments-panel .comment-actions .comment-action{color:#171917;min-width:44px;min-height:44px;padding:8px 6px}
#watch-view #comments-panel .replies-toggle span{font-size:1.4rem}
#comments-panel .reply-parent{border-bottom:1px solid #eee;margin-bottom:8px}
#watch-view #comments-panel .replies-page>.comment{padding-left:10px;position:relative;padding:12px 0 14px;gap:8px}
#comments-panel .comment-menu>summary svg{transform:rotate(90deg);color:#171917}
#watch-view #comments-panel .reply-form{padding:0;margin:0}
#watch-view #comments-panel .reply-form textarea{display:block;width:100%;height:44px;min-height:44px;border:0;border-radius:24px;resize:none;background:#f1f1f1;padding:11px 14px;font-size:1rem}
#watch-view #comments-panel .reply-form:not(.is-expanded) .comment-form-actions,
#watch-view #comments-panel .reply-form:not(.is-expanded) .comment-name-field{display:none}
#watch-view #comments-panel .reply-form.is-expanded textarea{height:72px;border-radius:12px}
#watch-view #comments-panel .reply-form .comment-form-actions{margin-top:6px;justify-content:flex-end;gap:8px}
#watch-view #comments-panel .reply-form .comment-form-actions>span{display:none}
#watch-view #comments-panel .reply-form .comment-form-actions button{min-height:44px;padding:6px 14px;font-size:.875rem;border-radius:24px}
#watch-view #comments-panel #comment-form #comment-text{background:#f1f1f1}
#comments-panel #comments-heading-label{font-size:1.25rem;font-weight:700;line-height:1.2;color:#111;margin:0}
#comments-panel .comments-sheet-heading{min-height:50px;padding:0 12px 4px}
#comments-back svg{width:24px;height:24px}
#watch-view #comments-panel .reply-parent{background:#f2f2f2;border:0;margin:-8px -12px 0;padding:0 12px}
#watch-view #comments-panel .reply-parent>.comment{padding:12px 0 8px}
#watch-view #comments-panel .replies-page{position:relative;margin:0 0 0 14px;padding:0 0 0 24px;margin-left:12px;padding-left:24px}
#watch-view #comments-panel .replies-page::before{content:'';position:absolute;left:0;top:0;bottom:30px;width:1px;background:#dedede}
#watch-view #comments-panel .replies-page>.comment::before{content:'';position:absolute;left:-24px;top:0;width:19px;height:21px;border-left:1px solid #dedede;border-bottom:1px solid #dedede;border-radius:0 0 0 20px}
#watch-view #comments-panel .replies-page>.comment>.avatar{width:24px;height:24px;min-width:24px;font-size:.75rem}
#watch-view #comments-panel .replies-page .comment-meta{font-size:.875rem}
#watch-view #comments-panel .replies-page .comment-body{margin-top:4px}
#comments-panel .comments-sheet-footer{padding-top:6px;padding-bottom:max(6px,env(safe-area-inset-bottom));padding:6px 12px max(6px,env(safe-area-inset-bottom))}
#comments-panel .comments-sheet-handle{margin:8px auto 2px}
#comments-panel #comments-back,#comments-panel #comments-close{height:44px;width:44px}
#watch-view #comments-panel .reply-form textarea,#watch-view #comments-panel #comment-form #comment-text{height:44px;min-height:44px;padding:11px 14px;font-size:1rem;line-height:22px}
#watch-view #comments-panel .reply-form.is-expanded textarea,#watch-view #comments-panel #comment-form.is-expanded #comment-text{height:72px}
#watch-view #comments-panel .reply-form .comment-name-field input{font-size:1rem;min-height:44px;width:100%}
@media(max-width:760px){#watch-view .comment-form-actions>span{display:none}}

/* Swipeable navigation without distracting horizontal or vertical scrollbars. */
.section-nav{overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;scroll-padding-inline:12px;gap:22px;padding-bottom:0}
.section-nav::-webkit-scrollbar{display:none;width:0;height:0}
.section-nav a{margin-bottom:0;flex-shrink:0}
@media(max-width:760px){
 .section-nav{gap:20px;margin-bottom:24px}
 .section-nav a{font-size:.875rem;min-height:44px;padding:8px 0 10px}
}
#watch-view #comments-panel .comment-reaction{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:44px;min-height:44px;padding:8px 6px;border:0;background:none;color:#171917;font-size:.875rem;border-radius:20px}
#comments-panel .comment-reaction svg{width:22px;height:22px;flex-shrink:0}
#comments-panel .comment-dislike svg{transform:rotate(180deg)}
#comments-panel .comment-reaction[aria-pressed="true"] svg{fill:currentColor}
#comments-panel .comment-reaction:disabled{opacity:.5}
#comments-panel .comment-reaction:focus-visible{outline:2px solid #7a942f}

.profile-desktop-title,.profile-camera,.profile-desktop-hint{display:none}
/* Shared channel editor: banner, overlapping avatar and camera controls. */
 .profile-layout{display:block;max-width:860px;margin:16px auto 0}
 .profile-layout>div:first-child{margin-bottom:28px}
 .profile-layout .eyebrow,.profile-layout .section-description,.profile-mobile-title{display:none}
 .profile-desktop-title{display:inline}
 .profile-layout h1{font-size:2rem;letter-spacing:-.7px}
 .profile-form{max-width:none}
 #profile-images{display:grid;grid-template-columns:160px minmax(0,1fr);grid-template-rows:auto auto auto;position:relative;margin-bottom:24px}
 #profile-images .profile-image-field{margin:0;min-width:0;position:relative}
 #profile-images .profile-image-heading{display:none}
 #profile-images .profile-image-banner{grid-column:1/-1;grid-row:1}
 #profile-images .profile-banner-preview{aspect-ratio:4/1;border-radius:16px;background:linear-gradient(120deg,#eff2ec,#e3e9dd);border:0}
 #profile-images .profile-image-avatar{grid-column:1;grid-row:2;margin:-48px 0 0 24px;z-index:1}
 #profile-images .profile-avatar-preview{width:120px;height:120px;border:5px solid #fff;background:#eaf0e1;font-size:2rem}
 #profile-images .profile-image-actions{margin:0;gap:8px}
 #profile-images .image-choose{position:absolute;width:40px;height:40px;padding:9px;min-height:40px;border:1px solid #dce1d7;border-radius:50%;background:#fff;color:var(--ink);box-shadow:0 2px 8px #18201612}
 #profile-images .image-choose:hover{background:#f4f6f1}
 #profile-images .profile-image-banner .image-choose{top:16px;right:16px}
 #profile-images .profile-image-avatar .image-choose{top:76px;left:82px}
 .profile-camera{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 #profile-images .profile-choose-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 #profile-images .profile-image-banner [data-remove-profile-image]{position:absolute;right:66px;top:16px;background:#fff;border-radius:20px;padding:11px 15px}
 #profile-images .profile-image-avatar [data-remove-profile-image]{margin-left:28px;padding:6px}
 #profile-images [role=status]:not(:empty){display:block;font-size:.8125rem;margin-top:8px}
 #profile-images .profile-image-banner [role=status]:not(:empty){position:absolute;bottom:12px;right:16px;background:#fff;padding:5px 10px;border-radius:6px}
 .profile-desktop-hint{display:block;grid-column:2;grid-row:2;align-self:center;margin:12px 0 0 24px;color:var(--muted);font-size:.8125rem;line-height:1.6;max-width:440px}
 .profile-form .upload-fields{margin-top:0;gap:18px}
 .profile-form #profile-bio{min-height:96px;height:96px}
 .profile-form>.upload-hint{font-size:.8125rem;margin:14px 0}
 .profile-form .upload-actions{margin-top:20px;padding-top:20px}


@media(max-width:760px), (hover:none){
 .profile-layout{margin:12px auto 0}
 .profile-layout>div:first-child{margin-bottom:18px}
 .profile-layout h1{font-size:1.625rem;line-height:1.25;letter-spacing:-.4px}
 #profile-images{grid-template-columns:110px minmax(0,1fr);margin-bottom:20px}
 #profile-images .profile-banner-preview{min-height:108px;border-radius:14px}
 #profile-images .profile-image-avatar{margin:-30px 0 0 12px}
 #profile-images .profile-avatar-preview{width:84px;height:84px;border-width:4px;font-size:1.625rem}
 #profile-images .image-choose{width:44px;height:44px;min-height:44px;padding:11px}
 #profile-images .profile-image-banner .image-choose{top:10px;right:10px}
 #profile-images .profile-image-avatar .image-choose{top:46px;left:52px}
 #profile-images .profile-image-avatar [data-remove-profile-image]{margin:6px 0 0 8px;min-height:44px;font-size:.875rem}
 #profile-images .profile-image-banner [data-remove-profile-image]{top:10px;right:62px;min-height:44px;font-size:.875rem}
 #profile-images .profile-desktop-hint{grid-column:1/-1;grid-row:3;margin:14px 0 0;font-size:.875rem;line-height:1.5;max-width:none}
 #profile-images [role=status]:not(:empty){font-size:.875rem;line-height:1.4}
 #profile-images .profile-image-banner [role=status]:not(:empty){position:static;margin:8px 8px 30px;padding:0;background:transparent}
 #profile-images .comment-form-error{position:relative;margin:12px 0 28px;overflow-wrap:anywhere}
 .profile-form .upload-fields{gap:16px}
 .profile-form #profile-bio{height:88px;min-height:88px}
 .profile-form>.upload-hint{font-size:.875rem;line-height:1.5;margin:14px 0}
 .profile-form .upload-actions{margin-top:18px;padding-top:18px;gap:10px}
}

/* Desktop conversations stay in the page; touch layouts retain the modal sheet. */
@media(min-width:761px) and (hover:hover){
 #comments-open{display:none}
 #watch-view #comments-panel.comments-inline{position:static;inset:auto;width:100%;max-width:none;height:auto;max-height:none;margin:28px 0 0;padding:0;border:0;border-radius:0;background:transparent;overflow:visible;box-shadow:none}
 #comments-panel.comments-inline .comments-sheet-handle,#comments-panel.comments-inline #comments-close{display:none}
 #comments-panel.comments-inline .comments-sheet-heading{order:0;padding:0 0 16px;border:0;justify-content:flex-start}
 #comments-panel.comments-inline .comments-sheet-footer{order:1;border:0;padding:0 0 20px;max-height:none;overflow:visible;background:transparent}
 #comments-panel.comments-inline .comments-sheet-scroll{order:2;flex:none;overflow:visible;padding:0;max-height:none}
 #watch-view #comments-panel.comments-inline .comment>.avatar{width:36px;height:36px;min-width:36px}
 #watch-view #comments-panel.comments-inline .reply-parent{margin:0;padding:0 12px;border-radius:8px}
 #watch-view #comments-panel.comments-inline #comment-form #comment-text{border-radius:0;background:transparent;border-bottom:1px solid #c8ccc4;padding-left:0;padding-right:0}
 #watch-view #comments-panel.comments-inline #comment-form.is-expanded #comment-text{border:0;border-bottom:1px solid #c8ccc4;resize:vertical}
 #watch-view #comments-panel.comments-inline #comment-form #comment-text:focus{outline:none;box-shadow:none;border-bottom:1px solid #c8ccc4}
}

/* Desktop browse refresh: keep the touch/mobile presentation unchanged. */
.section-nav .desktop-nav-icon{display:none}
@media(min-width:761px) and (hover:hover) and (pointer:fine){
 main:has(#browse-view:not([hidden])){padding-top:24px}
 .section-nav{gap:8px;border-bottom:0;margin:0 0 24px;padding:3px}
 .section-nav a{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:10px 15px;border:0;border-radius:12px;color:#62685e;transition:background .15s,color .15s}
 .section-nav a:hover{background:#f2f3ef;color:var(--ink)}
 .section-nav a[aria-current="page"]{background:#edf4df;color:#34451d}
 .section-nav .desktop-nav-icon{display:block;width:19px;height:19px;stroke-width:1.7}
 #browse-view .browse-heading{align-items:center;margin-bottom:18px}
 #browse-view #browse-title{font-size:2rem;letter-spacing:-1px;line-height:1.2}
 #browse-view .category-row{display:flex;gap:20px;border-bottom:0;padding-bottom:0;margin-bottom:24px}
 #browse-view .category-label{margin:0;color:#68705f;font-size:.875rem}
 #browse-view .categories{gap:8px;min-width:0}
 #browse-view .chip{border-color:transparent;background:#f1f2ef;border-radius:20px;min-height:38px;padding:9px 17px;font-weight:550;color:#42483e}
 #browse-view .chip:hover{background:#e7ebe0}
 #browse-view .chip[aria-pressed=true]{background:#e5f1cb;border-color:#c8df9c;color:#304713}
 #browse-view .video-grid{row-gap:30px}
 #browse-view .card-info{padding-top:12px;gap:11px}
 #browse-view .card-copy h2{font-size:1.25rem;line-height:1.35;margin-bottom:5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 #browse-view .card-meta{font-size:.875rem;color:#697064;line-height:1.5}
 #browse-view .card-bookmark{opacity:0;pointer-events:none;transition:opacity .15s}
 #browse-view .video-card-wrap:hover .card-bookmark,
 #browse-view .video-card-wrap:focus-within .card-bookmark{opacity:1;pointer-events:auto}
}

.later-list-toolbar{display:flex;align-items:flex-start;gap:16px;justify-content:space-between;margin:0 0 24px}.later-list-tabs{display:flex;gap:8px;flex-wrap:wrap;min-width:0}.later-list-tabs .chip{border-radius:22px;min-height:42px;overflow-wrap:anywhere;max-width:100%}.later-list-toolbar>.button-secondary{flex-shrink:0}
#later-empty{margin-bottom:24px}#later-list-dialog [hidden]{display:none!important}#later-list-dialog .upload-actions{margin-top:22px}#later-list-error{margin-top:16px}
.saved-video[hidden]{display:none!important}.saved-menu{position:relative}.saved-menu summary{list-style:none;cursor:pointer;width:44px;height:40px;display:grid;place-items:center;border-radius:20px;font-size:24px}.saved-menu summary::-webkit-details-marker{display:none}.saved-menu summary:hover{background:#f1f3ed}.saved-menu>div{position:absolute;right:0;top:42px;z-index:5;min-width:215px;background:white;border:1px solid var(--border);box-shadow:0 8px 25px #15201920;border-radius:12px;padding:6px}.saved-menu button{display:block;width:100%;text-align:left;background:none;border:0;font:inherit;font-size:.875rem;padding:12px;border-radius:8px;color:var(--ink)}.saved-menu button:hover{background:#f1f5e9}
@media(max-width:560px){.later-list-toolbar{flex-wrap:wrap;gap:12px}.later-list-tabs{width:100%}}
.saved-video-actions{gap:18px;flex-wrap:wrap;align-items:center}
.saved-video-actions [data-add-to-playlist]{margin-right:auto;color:#4d652a}
.library-heading{margin:0 0 26px}.library-heading h1{font-size:2rem;letter-spacing:-1px}
.library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;max-width:1100px}
.library-item{display:flex;align-items:center;gap:18px;min-width:0;padding:25px 22px;border:1px solid var(--border);border-radius:16px;background:#fff;transition:background .15s,border-color .15s}
.library-item:hover{background:#f8fbf1;border-color:#bfd498}
.library-icon{display:grid;place-items:center;flex-shrink:0;width:48px;height:48px;border-radius:14px;background:#edf4df;color:#49602c}
.library-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.library-item strong{display:block;font-size:1rem;font-weight:600;line-height:1.4}.library-item small{display:block;color:var(--muted);font-size:.875rem;line-height:1.5;margin-top:5px}
@media(max-width:1000px){.library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.library-heading{margin-bottom:20px}.library-grid{grid-template-columns:1fr;gap:12px}.library-item{padding:18px;gap:16px}}

/* Compact desktop upload; touch layouts retain their original presentation. */
@media(min-width:761px) and (hover:hover) and (pointer:fine){
 #upload-dialog{width:min(680px,calc(100% - 48px));padding:28px 32px;overflow-y:auto}
 #upload-dialog .dialog-heading{align-items:center;margin-bottom:22px}
 #upload-dialog .dialog-heading h2{font-size:1.6rem;margin:0}
 #upload-dialog #upload-dialog-subtitle{display:none}
 #upload-dialog #close-upload{width:40px;height:40px;border-radius:50%;background:#f2f3ef}
 #upload-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:20px;row-gap:18px}
 #upload-form>[hidden]{display:none!important}
 #upload-form>*{grid-column:1/-1;min-width:0}
 #upload-form>.upload-fields{display:contents}
 #upload-form>.upload-fields>label{min-width:0}
 #upload-form label[for="video-title"]{grid-column:1/-1}
 #upload-form label[for="video-category"]{grid-column:1}
 #upload-form label[for="video-playlist"]{grid-column:2;display:grid;grid-template-columns:auto 1fr;column-gap:8px;align-items:center}
 #upload-form #video-playlist{grid-column:1/-1;min-width:0}
 #upload-form .optional-label{font-size:.8125rem}
 #upload-form .upload-fields input,#upload-form .upload-fields select{min-height:46px;border-radius:10px}
 #upload-dialog .upload-drop{padding:20px;border-radius:16px;border-color:#bacb9c;background:#f8fbf1}
 #upload-dialog .upload-drop:hover,#upload-dialog .upload-drop.drag-over{background:#f0f7df;border-color:#809d45}
 #upload-dialog .upload-drop>svg{width:48px;height:48px;padding:11px;border-radius:14px;background:var(--accent);color:#34451d;margin-bottom:12px}
 #upload-dialog .upload-drop strong{font-size:1rem;color:#27351c;text-decoration:underline;text-underline-offset:4px}
 #upload-dialog .upload-drop span{margin:6px 0 12px}
 #upload-dialog .upload-drop small{font-size:.8125rem;line-height:1.6;color:#66725c}
 #upload-form>#new-upload-playlist{grid-column:2;justify-self:start;min-height:32px;padding:4px 0;margin-top:-14px;color:#4d652a}
 #upload-form>.upload-hint{margin:0;font-size:.875rem}
 #upload-form>.upload-hint:has(#upload-playlist-hint[data-routine="true"]):has(#retry-upload-playlists[hidden]),
 #upload-form>.upload-hint:has(#upload-playlist-hint:empty):has(#retry-upload-playlists[hidden]),
 #upload-form>.upload-hint:not(:has(#upload-playlist-hint)){display:none}
 #upload-form>.upload-actions{padding-top:18px;margin-top:2px;gap:12px}
 #upload-form>.upload-actions button{border-radius:24px;min-height:46px;padding:11px 23px}
 #upload-form>.upload-actions #cancel-upload{border-color:transparent}
 #upload-form>.upload-error,#upload-form>.upload-progress-wrap{margin:0}
 #upload-dialog .selected-file strong,#upload-dialog .selected-file span{font-size:.875rem}
}

/* Touch browse uses the same quiet pills and card rhythm as desktop. */
@media(max-width:760px), (hover:none), (pointer:coarse){
 main:has(#browse-view:not([hidden])){padding-top:18px}
 .section-nav{gap:6px;border-bottom:0;margin:0 0 22px;padding:3px;scroll-padding-inline:3px}
 .section-nav a{display:inline-flex;align-items:center;gap:7px;flex-shrink:0;min-height:44px;padding:10px;border:0;border-radius:12px;margin:0;color:#62685e;font-size:.875rem}
 .section-nav a[aria-current="page"]{background:#edf4df;color:#34451d}
 .section-nav .desktop-nav-icon{display:block;width:18px;height:18px;stroke-width:1.7}
 #browse-view .browse-heading{align-items:center;gap:12px;margin-bottom:18px}
 #browse-view #browse-title{font-size:1.75rem;letter-spacing:-.7px;line-height:1.2;overflow-wrap:anywhere}
 #browse-view .browse-controls{width:auto;margin-left:auto;gap:8px}
 #browse-view .sort-control{font-size:0;gap:0}
 #browse-view .sort-control select{font-size:.875rem;min-height:44px;border:0;border-radius:12px;padding:10px;background:#f1f2ef;max-width:145px}
 #browse-view .category-row{display:block;padding:0;border:0;margin-bottom:20px;min-width:0}
 #browse-view .category-label{font-size:.875rem;color:#68705f;margin-bottom:10px}
 #browse-view .categories{gap:8px;margin:0;padding:3px 0;min-width:0}
 #browse-view .chip{border-color:transparent;background:#f1f2ef;border-radius:24px;min-height:44px;padding:10px 16px;font-size:.875rem;font-weight:550;color:#42483e}
 #browse-view .chip[aria-pressed=true]{background:#e5f1cb;border-color:#c8df9c;color:#304713}
 #browse-view .video-grid{row-gap:24px}
 #browse-view .card-info{padding-top:12px;gap:11px}
 #browse-view .card-copy h2{font-size:1.25rem;line-height:1.35;margin-bottom:4px;letter-spacing:-.25px}
 #browse-view .card-meta{font-size:.875rem;line-height:1.5;color:#697064}
 #browse-view .thumbnail{border-radius:14px}
 #browse-view .card-bookmark{opacity:1;pointer-events:auto;width:44px;height:44px;top:8px;right:8px;padding:12px;border-radius:50%;background:#fffffff0;box-shadow:0 2px 8px #17200c12}
 #browse-view .card-bookmark svg{width:20px;height:20px}
 #browse-view .card-bookmark.is-saved{background:var(--accent);color:#34451d}
}

.profile-compact-copy{display:none}
@media(max-width:760px), (hover:none){
 main:has(.profile-layout){padding-top:18px}
 main:has(.profile-layout) .section-nav{margin-bottom:20px}
 main:has(.profile-layout) .back-link{display:none}
 .profile-layout{margin-top:0}
 .profile-layout>div:first-child{margin-bottom:16px}
 .profile-layout h1{font-size:1.5rem;line-height:1.3}
 .profile-layout .profile-full-copy{display:none}
 .profile-layout .profile-compact-copy{display:inline}
 #profile-images{grid-template-columns:104px minmax(0,1fr);margin-bottom:22px}
 #profile-images .profile-banner-preview{min-height:100px;border-radius:16px;background:linear-gradient(120deg,#f0f4e9,#e2ebd6);color:#62734e}
 #profile-images .profile-image-avatar{margin:-26px 0 0 12px}
 #profile-images .profile-avatar-preview{width:76px;height:76px;font-size:1.5rem}
 #profile-images .profile-image-avatar .image-choose{top:40px;left:44px;box-shadow:0 2px 6px #17200c0d}
 #profile-images .profile-image-banner .image-choose{box-shadow:none}
 #profile-images .profile-desktop-hint{grid-column:2;grid-row:2;align-self:start;margin:12px 0 0 8px;font-size:.875rem;line-height:1.5;overflow-wrap:anywhere}
 .profile-form .upload-fields{gap:18px}
 .profile-form .upload-fields input,.profile-form .upload-fields textarea{border-radius:12px;background:#fafbf8;border-color:#e0e5d9;font-size:1rem}
 .profile-form #profile-bio{min-height:80px;height:80px}
 .profile-form>.upload-hint{margin:14px 0;color:#697064}
 .profile-form .upload-actions{border:0;margin-top:18px;padding-top:0}
 .profile-form .upload-actions .upload-button{min-height:48px;border-radius:24px}
}
@media(max-width:340px){
 #profile-images .profile-desktop-hint{grid-column:1/-1;grid-row:3;margin:14px 0 0}
}

.card-watch-link{display:block;border-radius:inherit}
.card-channel-link{display:flex;align-items:flex-start;justify-content:center;flex-shrink:0;border-radius:50%}
.card-channel-link:hover{filter:brightness(.95)}
.card-title-link{display:block;border-radius:4px}
.video-card:focus-within .hover-play{opacity:1}
@media(pointer:coarse){.card-channel-link{min-width:44px;min-height:44px;margin-right:-9px;justify-content:flex-start}}

.channel-list-count{display:none}
@media(max-width:760px), (hover:none){
 main:has(#account-view .channel-tabs){padding-top:18px}
 main:has(#account-view .channel-tabs) .section-nav{margin-bottom:12px}
 #account-view:has(.channel-tabs)>.back-link{min-height:44px;margin:0 0 12px;align-items:center}
 #account-view:has(.channel-tabs) .channel-banner{margin-bottom:18px}
 #account-view:has(.channel-tabs) .channel-header{gap:14px;padding:0 0 12px;align-items:center}
 #account-view:has(.channel-tabs) .channel-avatar{width:64px;height:64px;font-size:1.375rem}
 #account-view:has(.channel-tabs) .channel-info h1{font-size:1.5rem;line-height:1.25;letter-spacing:-.5px}
 #account-view:has(.channel-tabs) .channel-count{font-size:.875rem;line-height:1.5;margin-top:6px}
 #account-view:has(.channel-tabs) .channel-bio{font-size:1rem;margin-top:10px;line-height:1.5}
 #account-view:has(.channel-tabs) .channel-actions{width:100%;margin:0;gap:10px}
 #account-view:has(.channel-tabs) .channel-actions>.subscribe-button{width:100%;min-height:44px;padding:10px 16px}
 #account-view .channel-tabs{gap:24px;margin:4px 0 20px}
 #account-view .channel-tabs a{font-size:1rem;min-height:48px;padding:12px 2px}
 #channel-content .cp-list-heading{justify-content:flex-end;margin:0 0 16px}
 #channel-content .cp-list-heading h2{display:none}
 #channel-content .cp-list-heading:not(:has(button)){display:none}
 #channel-content .playlist-grid{grid-template-columns:1fr;gap:18px}
 #channel-content .playlist-card{display:grid;grid-template-columns:42% minmax(0,1fr);align-items:start;gap:14px;border:0;border-radius:10px;overflow:visible;min-height:76px}
 #channel-content .playlist-cover{aspect-ratio:16/9;border-radius:10px;background:#f0f3eb}
 #channel-content .playlist-symbol{width:36px;height:36px;background:transparent}
 #channel-content .playlist-symbol svg{width:24px;height:24px}
 #channel-content .playlist-cover-count{display:none}
 #channel-content .playlist-card-copy{padding:3px 0;min-width:0}
 #channel-content .playlist-card-copy h2{font-size:1rem;font-weight:550;line-height:1.4;margin:0 0 6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
 #channel-content .channel-list-count{display:block;font-size:.875rem;line-height:1.5;color:var(--muted)}
 #channel-content .playlist-private{display:none}
 #channel-content .empty-state{padding:28px 12px}
}

/* Every video thumbnail shows its play affordance, including touch screens. */
.thumbnail .hover-play{opacity:1;pointer-events:none}

@media(max-width:760px), (hover:none){
 main:has(.subscription-page-heading){padding-top:18px}
 main:has(.subscription-page-heading) .section-nav{margin-bottom:22px}
 .subscription-page-heading{margin-bottom:20px}
 .subscription-page-heading h1{font-size:1.75rem;letter-spacing:-.7px;line-height:1.25;overflow-wrap:anywhere}
 .subscription-page-heading .section-description{display:none}
 #account-view .subscriptions-empty{margin:0;padding:28px 22px;background:#f6f8f2;border:1px solid #edf0e6;border-radius:18px;text-align:center}
 #account-view .subscriptions-empty>.subscriptions-empty-icon{display:block;margin:0 auto 18px;width:52px;height:52px;padding:13px;border-radius:16px;background:#e8f0da;color:#4d6530}
 #account-view .subscriptions-empty h2{font-size:1.25rem;line-height:1.35;letter-spacing:-.3px;margin:0 0 10px}
 #account-view .subscriptions-empty p{font-size:1rem;line-height:1.55;margin:0 auto;max-width:280px;color:#697064}
 #account-view .subscribed-channels{padding-bottom:18px;margin-bottom:20px}
 #account-view .subscription-feed-heading{margin-bottom:18px}
}

/* Compact watch history on mobile. */
.history-mobile-count,.history-mobile-copy{display:none}
@media(max-width:760px), (hover:none){
 main:has(.history-heading){padding-top:18px}
 main:has(.history-heading) .section-nav{margin-bottom:22px}
 #account-view .history-heading{align-items:center;flex-wrap:nowrap;gap:10px;margin-bottom:22px}
 .history-title-block{min-width:0;flex:1}
 .history-title-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
 #account-view .history-heading h1{font-size:1.75rem;line-height:1.25;letter-spacing:-.7px}
 .history-mobile-count{display:inline;color:var(--muted);font-size:.8125rem;white-space:nowrap}
 .history-mobile-copy{display:inline}
 .history-desktop-copy{display:none}
 #account-view .history-heading .section-description{margin:7px 0 0;font-size:.8125rem;line-height:1.4}
 #account-view .history-heading [data-clear-history]{flex-shrink:0;min-height:44px;padding:10px 8px;border:0;border-radius:10px;background:transparent;color:var(--muted);font-size:.8125rem}
 #account-view .history-heading [data-clear-history]:hover{background:#f3f5ef;color:var(--ink)}
 #account-view .history-summary{margin:0}
 #account-view .history-summary>span{display:none}
 #history-removal-note{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
 #account-view .history-details{margin:8px 0 0 48px;font-size:.8125rem;gap:0 10px;align-items:center}
 #account-view .history-details time{font-size:.75rem;color:var(--muted)}
 #account-view .history-details button{font-size:.8125rem;padding:10px 0}
}

/* Central playback and next-video controls. */
.media-center-controls{position:absolute;inset:0;pointer-events:none}
.media-center-controls button{position:absolute;top:50%;transform:translate(-50%,-50%);border-radius:50%;background:#292929cf;width:52px;height:52px}
.media-center-controls button:hover{background:#3c3c3ce6}
.media-center-controls .media-play{left:50%;width:72px;height:72px}
.media-center-controls .media-next{left:calc(50% + 94px)}
.media-center-controls svg{width:28px;height:28px;fill:currentColor;stroke:none}
.media-center-controls .media-play svg{width:36px;height:36px}
@media(max-width:760px), (pointer:coarse){
 .media-center-controls .media-play{width:60px;height:60px}
 .media-center-controls .media-play svg{width:32px;height:32px}
 .media-center-controls .media-next{left:calc(50% + 86px);width:44px;height:44px}
 .media-center-controls .media-next svg{width:26px;height:26px}
}

#playlist-picker .playlist-create-form{margin-bottom:0}

/* Direct access to saved lists while watching. */
.watch-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.watch-navigation .back-link{min-height:44px;margin:0;padding:10px 0;line-height:1.4}
.watch-navigation .watch-saved-link{white-space:nowrap}
@media(max-width:760px){
 .watch-navigation{margin:0;gap:10px}
 .watch-navigation .back-link{font-size:.875rem}
 .watch-navigation .watch-saved-link{gap:7px}
}
@media(max-width:360px){
 .watch-navigation .back-link,#watch-back{font-size:.8125rem!important;gap:6px}
}

/* Private playlist details keep editing actions in mobile overflow menus. */
.playlist-mobile-menu{display:none}
.playlist-heading-actions>.playlist-desktop-actions{display:contents}
@media(max-width:760px), (hover:none){
 main:has(.private-playlist-heading){padding-top:18px}
 main:has(.private-playlist-heading) .section-nav{margin-bottom:20px}
 #account-view .private-playlist-back{font-size:.8125rem;min-height:44px;padding:10px 0;margin-bottom:12px}
 #account-view .private-playlist-heading{gap:18px;margin-bottom:10px;flex-direction:column}
 #account-view .private-playlist-heading h1{font-size:1.75rem;line-height:1.25;letter-spacing:-.7px}
 .private-playlist-heading .section-description{font-size:.875rem;margin-top:7px;line-height:1.5}
 .playlist-desktop-copy{display:none}
 .private-playlist-heading .playlist-heading-actions{width:100%;justify-content:space-between;gap:12px}
 .private-playlist-heading .upload-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border-radius:24px;padding:11px 22px;font-size:.875rem}
 .playlist-heading-actions>.playlist-desktop-actions,.private-playlist-videos .playlist-desktop-actions{display:none}
 .playlist-mobile-menu{display:block;position:relative;flex-shrink:0;align-self:center}
 .playlist-mobile-menu>summary{display:flex;align-items:center;justify-content:center;list-style:none;width:44px;height:44px;border-radius:50%;cursor:pointer;color:var(--ink)}
 .playlist-mobile-menu>summary::-webkit-details-marker{display:none}
 .playlist-mobile-menu>summary:hover,.playlist-mobile-menu[open]>summary{background:#f1f3ed}
 .playlist-mobile-menu>summary svg{width:22px;height:22px;fill:currentColor;stroke:none}
 .playlist-menu-panel{position:absolute;right:0;top:48px;z-index:20;min-width:172px;padding:6px;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 8px 28px #17201020}
 #account-view .playlist-menu-panel button{display:block;text-align:left;width:100%;min-height:44px;padding:10px 12px;background:transparent;border:0;border-radius:7px;font-size:.875rem}
 #account-view .playlist-menu-panel button:hover{background:#f3f5ef;text-decoration:none}
 .playlist-menu-panel [data-playlist-move]:disabled{display:none}
 .private-playlist-videos .playlist-video-row{flex-wrap:nowrap;align-items:flex-start;gap:8px;padding:16px 0;border-bottom:0}
 .private-playlist-videos .playlist-position{display:none}
 .private-playlist-videos .next-card{grid-template-columns:104px minmax(0,1fr);gap:12px;align-items:start}
 .private-playlist-videos .card-copy h2{font-size:1rem;line-height:1.4;letter-spacing:-.2px;margin-bottom:5px}
 .private-playlist-videos .card-meta{font-size:.75rem}
 .private-playlist-videos .playlist-mobile-menu{align-self:flex-start;margin-top:-6px}
}
@media(max-width:360px){.private-playlist-videos .next-card{grid-template-columns:88px minmax(0,1fr);gap:9px}}
