:root{color-scheme:dark;--bg:#090a0d;--panel:#111319;--panel2:#171a21;--text:#f4f6fb;--muted:#949aa8;--line:rgba(255,255,255,.10);--accent:#ff315c;--radius:18px}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}a{color:inherit;text-decoration:none}button,input{font:inherit}.wrap{width:min(1240px,calc(100% - 28px));margin:auto}.topbar{position:sticky;top:0;z-index:50;background:rgba(9,10,13,.88);backdrop-filter:blur(18px);border-bottom:1px solid var(--line)}.topbar-inner{min-height:66px;display:flex;align-items:center;gap:18px}.brand{position:relative;display:inline-flex;align-items:center;gap:9px;font-weight:900;letter-spacing:-.045em;font-size:22px;line-height:1;white-space:nowrap}.brand-logo{display:block;object-fit:contain;object-position:left center;flex:none}.brand-gradient .brand-logo{width:210px;height:40px}.brand-mark-mobile{display:none;width:34px;height:34px;object-fit:contain;flex:none}.brand-mark{width:31px;height:31px;display:block;flex:none}.brand-name{display:inline-block;background:linear-gradient(90deg,#fff 0 43%,#ff6d8c 43% 100%);-webkit-background-clip:text;background-clip:text;color:transparent}.nav-spacer{flex:1}.nav-user{display:flex;align-items:center;gap:9px;color:var(--muted);font-weight:650}.avatar{width:38px;height:38px;border-radius:50%;object-fit:cover;background:#222}.btn{border:1px solid var(--line);background:var(--panel2);color:var(--text);border-radius:12px;padding:10px 14px;cursor:pointer;font-weight:750}.btn:hover{background:#20242d}.btn-primary{background:var(--text);color:#0b0c0f;border-color:var(--text)}.btn-primary:hover{background:#ddd}.btn-danger{background:transparent}.page{padding:28px 0 60px}.hero{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:22px}.hero h1{font-size:clamp(28px,4vw,48px);line-height:1;margin:0;letter-spacing:-.045em}.hero p{margin:9px 0 0;color:var(--muted)}.video-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.video-card{min-width:0}.video-card .thumb-wrap{position:relative;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:#17191f;border:1px solid var(--line)}.video-card img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .18s ease}.video-card:hover img{transform:scale(1.025)}.video-card h3{font-size:15px;line-height:1.3;margin:10px 2px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.video-card p{font-size:12px;color:var(--muted);margin:6px 2px 0}.load-status{padding:28px;text-align:center;color:var(--muted)}.player-layout{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:18px;align-items:start}.player-column{min-width:0}.player-frame{aspect-ratio:16/9;background:#000;border-radius:16px;overflow:hidden;border:1px solid var(--line)}#yt-player,#yt-player iframe{width:100%;height:100%}.video-info{padding:18px 2px}.video-info h1{font-size:clamp(22px,3vw,34px);letter-spacing:-.03em;margin:0}.video-description{white-space:pre-wrap;color:var(--muted);line-height:1.55;margin-top:12px;max-height:190px;overflow:auto}.queue-panel{border:1px solid var(--line);background:var(--panel);border-radius:16px;overflow:hidden;position:sticky;top:84px}.queue-head{padding:14px 15px;border-bottom:1px solid var(--line);font-weight:850;display:flex;justify-content:space-between}.queue-count{color:var(--muted);font-size:12px}.queue-list{max-height:calc(100vh - 150px);overflow:auto}.queue-item{width:100%;border:0;border-bottom:1px solid var(--line);background:transparent;color:inherit;text-align:left;padding:10px;display:grid;grid-template-columns:124px minmax(0,1fr);gap:10px;cursor:pointer}.queue-item:hover,.queue-item.active{background:rgba(255,255,255,.06)}.queue-thumb{width:124px;aspect-ratio:16/9;object-fit:cover;border-radius:9px;background:#222}.queue-title{font-size:13px;line-height:1.3;font-weight:750;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.queue-score{color:var(--muted);font-size:11px;margin-top:5px}.section{margin-top:34px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.section h2{margin:0;font-size:22px;letter-spacing:-.025em}.user-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.user-chip{border:1px solid var(--line);background:var(--panel);border-radius:14px;padding:12px;display:flex;gap:10px;align-items:center;min-width:0}.user-chip img{width:44px;height:44px;border-radius:50%;object-fit:cover;background:#222}.user-chip-name{font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-chip-meta{font-size:11px;color:var(--muted);margin-top:3px}.profile-head{display:flex;gap:18px;align-items:center;margin-bottom:28px}.profile-head .avatar{width:92px;height:92px}.profile-name{font-size:38px;margin:0;letter-spacing:-.04em}.profile-meta{color:var(--muted);margin-top:6px}.list-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.list-card{border:1px solid var(--line);background:var(--panel);border-radius:16px;overflow:hidden}.list-thumb{width:100%;aspect-ratio:16/9;object-fit:cover;background:#191b22;display:block}.list-card-body{padding:14px}.list-card h3{margin:0;font-size:17px}.list-card p{color:var(--muted);font-size:12px;margin:6px 0 0}.form-card{max-width:680px;border:1px solid var(--line);background:var(--panel);border-radius:18px;padding:22px}.field{margin-bottom:18px}.field label{display:block;font-size:13px;font-weight:800;margin-bottom:7px}.field input[type=text],.field input[type=url]{width:100%;background:#0d0f13;border:1px solid var(--line);border-radius:12px;color:var(--text);padding:12px 13px;outline:none}.field input:focus{border-color:rgba(255,255,255,.35)}.field-note{color:var(--muted);font-size:12px;margin-top:6px}.preview-avatar{width:86px;height:86px;border-radius:50%;object-fit:cover;background:#222;margin-bottom:18px}.notice{border:1px solid rgba(255,255,255,.14);background:#151821;border-radius:14px;padding:13px 15px;margin-bottom:18px;color:#cfd3df}.actions{display:flex;gap:10px;flex-wrap:wrap}.empty{border:1px dashed var(--line);border-radius:16px;padding:42px;text-align:center;color:var(--muted)}.inline-form{display:inline}.muted{color:var(--muted)}
@media(max-width:1050px){.video-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.player-layout{grid-template-columns:minmax(0,1fr) 330px}.user-list{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:820px){.video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.player-layout{grid-template-columns:1fr}.queue-panel{position:static}.queue-list{max-height:520px}.user-list{grid-template-columns:repeat(2,minmax(0,1fr))}.list-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.wrap{width:min(100% - 20px,1240px)}.topbar-inner{min-height:58px}.nav-user span{display:none}.page{padding-top:18px}.video-grid{grid-template-columns:1fr;gap:20px}.player-frame{border-radius:0;margin-left:-10px;margin-right:-10px}.queue-item{grid-template-columns:108px minmax(0,1fr)}.queue-thumb{width:108px}.user-list,.list-grid{grid-template-columns:1fr}.profile-head{align-items:flex-start}.profile-head .avatar{width:72px;height:72px}.profile-name{font-size:30px}}

/* YouTube sync preview */
.sync-page{padding-bottom:130px}.sync-hero{align-items:center}.sync-summary{color:var(--muted);white-space:nowrap}.sync-summary strong{color:var(--text)}.sync-toolbar{display:flex;align-items:center;gap:14px;justify-content:space-between;margin:18px 0}.sync-toolbar-actions{display:flex;gap:8px;flex-wrap:wrap}.sync-selected-count{font-size:13px;color:var(--muted);font-weight:700}.sync-lists{display:grid;gap:12px}.sync-list{border:1px solid var(--line);background:var(--panel);border-radius:16px;overflow:hidden}.sync-list-head{min-height:78px;display:flex;align-items:center;gap:14px;padding:11px 13px}.sync-list-check{display:flex;align-items:center;gap:12px;min-width:0;flex:1;cursor:pointer}.sync-list-check>input,.sync-video-row>input{width:18px;height:18px;accent-color:var(--accent);flex:none}.sync-list-thumb-wrap{width:82px;flex:none}.sync-list-thumb{display:block;width:82px;aspect-ratio:16/9;border-radius:9px;object-fit:cover;background:#20232a}.sync-list-thumb-empty{display:grid;place-items:center;color:var(--muted);font-size:22px}.sync-list-info{display:flex;flex-direction:column;min-width:0;gap:4px}.sync-list-info strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sync-list-info span{font-size:12px;color:var(--muted)}.sync-list-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}.sync-mini-btn{border:1px solid var(--line);background:#0d0f13;color:var(--muted);border-radius:9px;padding:7px 9px;cursor:pointer;font-size:12px;font-weight:750}.sync-mini-btn:hover{color:var(--text);background:#1b1e25}.sync-video-list{border-top:1px solid var(--line);background:#0c0e12}.sync-video-row{display:grid;grid-template-columns:18px 96px minmax(0,1fr);gap:11px;align-items:center;padding:9px 13px;border-bottom:1px solid rgba(255,255,255,.065);cursor:pointer}.sync-video-row:last-child{border-bottom:0}.sync-video-row:hover{background:rgba(255,255,255,.035)}.sync-video-row img,.sync-video-thumb-empty{width:96px;aspect-ratio:16/9;object-fit:cover;border-radius:7px;background:#1b1e25;display:block}.sync-video-copy{min-width:0;display:flex;flex-direction:column;gap:4px}.sync-video-copy strong{font-size:13px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sync-video-copy span{font-size:11px;color:var(--muted);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.sync-empty-list{padding:18px;color:var(--muted);font-size:13px}.sync-submit-bar{position:sticky;bottom:14px;z-index:25;margin-top:18px;border:1px solid var(--line);border-radius:16px;background:rgba(17,19,25,.94);backdrop-filter:blur(18px);padding:13px 15px;display:flex;align-items:center;justify-content:space-between;gap:18px;box-shadow:0 14px 44px rgba(0,0,0,.35)}.sync-submit-bar>div:first-child{display:flex;flex-direction:column;gap:3px;font-size:13px}.sync-submit-bar .muted{font-size:11px}.sync-expiry-note{text-align:center;color:var(--muted);font-size:11px;margin:17px 0}.btn:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:820px){.sync-list-head{align-items:flex-start;flex-direction:column}.sync-list-actions{width:100%;justify-content:flex-start;padding-left:30px}.sync-submit-bar{align-items:flex-start;flex-direction:column}.sync-submit-bar .actions{width:100%}.sync-submit-bar .actions .btn{flex:1;text-align:center}.sync-summary{white-space:normal}}
@media(max-width:540px){.sync-toolbar{align-items:flex-start;flex-direction:column}.sync-list-thumb-wrap,.sync-list-thumb{width:68px}.sync-video-row{grid-template-columns:18px 82px minmax(0,1fr);padding-left:10px;padding-right:10px}.sync-video-row img,.sync-video-thumb-empty{width:82px}.sync-list-actions{padding-left:0}.sync-list-info strong{white-space:normal}.sync-submit-bar{bottom:8px}}

/* Profile library management */
.profile-list-card{display:flex;flex-direction:column}.list-card-link{display:block;min-width:0}.profile-card-actions{margin-top:auto;padding:0 14px 14px}.profile-card-actions form,.profile-video-delete{margin:0}.btn-delete{border-color:rgba(255,49,92,.32);color:#ff728f;background:rgba(255,49,92,.055)}.btn-delete:hover{border-color:rgba(255,49,92,.5);background:rgba(255,49,92,.12)}.profile-video-card{min-width:0;display:flex;flex-direction:column}.profile-video-card>.video-card{display:block}.profile-video-delete{margin-top:auto;padding-top:10px}.profile-video-delete .btn{width:100%}.profile-pagination{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;margin-top:24px}.profile-pagination>:last-child{justify-self:end}.profile-pagination .muted{text-align:center}
@media(max-width:540px){.profile-pagination{grid-template-columns:1fr 1fr}.profile-pagination .muted{grid-column:1/-1;grid-row:1}.profile-pagination>:last-child{justify-self:stretch;text-align:center}.profile-pagination>:first-child{justify-self:stretch;text-align:center}}

/* Manual video / playlist creation */
.field select{width:100%;background:#0d0f13;border:1px solid var(--line);border-radius:12px;color:var(--text);padding:12px 13px;outline:none}.field select:focus{border-color:rgba(255,255,255,.35)}.notice-error{border-color:rgba(255,49,92,.35);background:rgba(255,49,92,.08);color:#ffb1c1}
@media(max-width:700px){.topbar-inner{gap:9px}.topbar .btn{padding:9px 11px}.topbar .btn-primary{white-space:nowrap}}

/* Recommended for you */
.nav-link{color:var(--muted);font-size:14px;font-weight:800;white-space:nowrap}.nav-link:hover,.nav-link.is-active{color:var(--text)}
.rfy-public-hero{max-width:860px;padding:58px 0 26px}.rfy-kicker{color:var(--accent);font-size:12px;font-weight:900;letter-spacing:.1em;text-transform:uppercase;margin-bottom:10px}.rfy-public-hero h1,.rfy-user-head h1{margin:0;letter-spacing:-.05em;font-size:clamp(38px,7vw,72px);line-height:.98}.rfy-lead{max-width:760px;color:var(--muted);font-size:18px;line-height:1.65;margin:20px 0 24px}.rfy-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.rfy-step{border:1px solid var(--line);background:var(--panel);border-radius:16px;padding:18px;display:flex;gap:14px}.rfy-step>span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--panel2);font-weight:900;flex:none}.rfy-step h3{margin:1px 0 6px;font-size:16px}.rfy-step p{margin:0;color:var(--muted);font-size:13px;line-height:1.55}.rfy-note,.rfy-inline-explain{margin-top:24px;border:1px solid var(--line);background:var(--panel);border-radius:16px;padding:17px 18px}.rfy-note strong,.rfy-inline-explain strong{display:block;margin-bottom:5px}.rfy-note p,.rfy-inline-explain span{margin:0;color:var(--muted);font-size:13px;line-height:1.55}.rfy-user-head{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;margin-bottom:22px}.rfy-user-head h1{font-size:clamp(34px,5vw,58px)}.rfy-user-head p{margin:10px 0 0;color:var(--muted);font-size:13px}.rfy-empty h2{margin:0 0 8px;color:var(--text)}.rfy-empty p{margin:0 auto 18px;max-width:650px;line-height:1.55}.rfy-empty .actions{justify-content:center}.rfy-inline-explain{display:flex;gap:10px;align-items:baseline}.rfy-inline-explain strong{margin:0;white-space:nowrap}
@media(max-width:820px){.rfy-steps{grid-template-columns:1fr}.rfy-user-head{align-items:flex-start;flex-direction:column}.rfy-inline-explain{display:block}.rfy-inline-explain strong{margin-bottom:6px}}
@media(max-width:700px){.nav-link{font-size:13px}.rfy-public-hero{padding-top:38px}.rfy-lead{font-size:16px}.rfy-user-head form,.rfy-user-head .btn{width:100%}.rfy-user-head .btn{text-align:center}.topbar .nav-link{display:none}}

@media (max-width:560px){.brand-gradient .brand-logo{display:none}.brand-gradient .brand-mark-mobile{display:block}.brand-classic .brand-name{display:none}.brand-classic .brand-mark{width:34px;height:34px}.topbar-inner{gap:10px}}

/* Compact header navigation */
.header-nav{display:flex;align-items:center;gap:3px;min-width:0}.header-link{height:34px;padding:0 8px;border:0;background:transparent;color:var(--muted);border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:13px;font-weight:720;line-height:1;white-space:nowrap;cursor:pointer;transition:color .14s ease,background .14s ease}.header-link:hover,.header-link.is-active{color:var(--text);background:rgba(255,255,255,.055)}.header-link.is-active{box-shadow:inset 0 -2px 0 rgba(255,255,255,.22)}.header-link-add .header-icon{color:#ff6d8c}.header-link-login .header-icon{color:#ff5578}.header-icon{width:17px;height:17px;display:block;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.header-user{height:36px;padding:3px 7px 3px 4px;border-radius:999px;display:inline-flex;align-items:center;gap:7px;color:var(--muted);font-size:13px;font-weight:720;white-space:nowrap;min-width:0;transition:color .14s ease,background .14s ease}.header-user:hover{color:var(--text);background:rgba(255,255,255,.055)}.header-avatar{width:28px;height:28px;border-radius:50%;object-fit:cover;background:#222;display:block;flex:none}.header-user-name{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-form{display:inline-flex;margin:0}.header-link-button{font-family:inherit}.topbar-inner{gap:10px}.topbar .btn{font-size:13px}
@media(max-width:760px){.topbar-inner{gap:6px}.header-nav{gap:1px}.header-link{width:34px;padding:0;gap:0}.header-link .header-label{display:none}.header-user{width:34px;padding:3px;justify-content:center}.header-user-name{display:none}.header-link-login{width:34px}.brand-gradient .brand-logo{width:176px;height:36px}}
@media(max-width:540px){.brand-gradient .brand-logo{display:none}.brand-gradient .brand-mark-mobile{display:block}.brand{font-size:20px}.brand-mark{width:29px;height:29px}.topbar-inner{min-height:56px}.header-link,.header-user{height:34px}.header-avatar{width:27px;height:27px}}

.avatar-editor{display:flex;align-items:center;gap:16px;margin-bottom:22px}.avatar-editor .preview-avatar{margin:0;flex:none}.avatar-file-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.avatar-upload-btn{display:inline-flex;align-items:center;justify-content:center}.avatar-upload-btn:before{content:"↑";font-size:16px;margin-right:7px;line-height:1}.avatar-editor .field-note{margin-top:8px;max-width:360px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:540px){.avatar-editor{align-items:flex-start}.avatar-editor .preview-avatar{width:72px;height:72px}}


/* Social share block */
.share-social-card{margin:10px 0 0;border:1px solid var(--line);background:linear-gradient(180deg,rgba(23,26,33,.92),rgba(17,19,25,.96));border-radius:15px;padding:12px 13px;display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0}.share-social-copy{min-width:0}.share-social-copy strong{display:block;font-size:13px;line-height:1.2}.share-social-url{margin-top:4px;max-width:420px;color:var(--muted);font-size:11px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.share-social-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}.share-social-btn{height:34px;border:1px solid var(--line);background:#0d0f13;color:var(--muted);border-radius:9px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;gap:6px;font:inherit;font-size:12px;font-weight:800;cursor:pointer;transition:background .14s ease,color .14s ease,border-color .14s ease,transform .14s ease}.share-social-btn:hover{background:#1a1d24;color:var(--text);border-color:rgba(255,255,255,.18)}.share-social-btn:active{transform:scale(.97)}.share-social-btn.is-copied{color:#81e6aa;border-color:rgba(129,230,170,.34);background:rgba(129,230,170,.08)}.share-social-brand{font-size:13px;font-weight:900;line-height:1}.share-facebook .share-social-brand{font-size:17px}.share-reddit .share-social-brand{font-size:11px}.share-copy svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.share-social-icon-btn{width:34px;min-width:34px;flex:0 0 34px;padding:0}.share-social-icon-btn svg{width:17px;height:17px;display:block;fill:currentColor}.share-facebook svg{width:18px;height:18px}.share-reddit svg{width:18px;height:18px}
@media(max-width:760px){.share-social-card{align-items:flex-start;flex-direction:column}.share-social-copy{width:100%}.share-social-url{max-width:none}.share-social-actions{width:100%;justify-content:flex-start}.share-social-btn{flex:1;min-width:92px}}
@media(max-width:440px){.share-social-btn{padding:0 8px;min-width:0}.share-social-btn>span:last-child{display:none}.share-social-btn{width:36px;flex:0 0 36px}.share-social-brand{font-size:14px}.share-copy svg{width:16px;height:16px}}@media(max-width:760px){.share-social-actions .share-social-icon-btn{width:36px;min-width:36px;flex:0 0 36px;padding:0}}

/* Add current video to a playlist from the share bar */
[hidden]{display:none!important}.share-add-list{color:#ff9bb0;border-color:rgba(255,109,140,.28);background:rgba(255,109,140,.055)}.share-add-list:hover{color:#ffd9e1;border-color:rgba(255,109,140,.48);background:rgba(255,109,140,.12)}.share-add-list svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.modal-open{overflow:hidden}.add-list-modal{position:fixed;inset:0;z-index:1000;padding:18px;display:grid;place-items:center;background:rgba(0,0,0,.68);backdrop-filter:blur(10px)}.add-list-dialog{position:relative;width:min(470px,100%);border:1px solid rgba(255,255,255,.13);border-radius:20px;background:linear-gradient(180deg,#191c24,#111319);box-shadow:0 28px 90px rgba(0,0,0,.58);padding:22px}.add-list-close{position:absolute;right:12px;top:12px;width:34px;height:34px;border:1px solid var(--line);border-radius:10px;background:#0d0f13;color:var(--muted);font-size:23px;line-height:1;cursor:pointer}.add-list-close:hover{color:var(--text);background:#20242d}.add-list-head{display:flex;gap:13px;align-items:center;padding-right:38px;margin-bottom:20px}.add-list-head h2{margin:0;font-size:22px;letter-spacing:-.03em}.add-list-head p{margin:5px 0 0;color:var(--muted);font-size:13px;line-height:1.4}.add-list-icon{width:42px;height:42px;display:grid;place-items:center;flex:none;border-radius:13px;background:rgba(255,109,140,.10);color:#ff8fa8;border:1px solid rgba(255,109,140,.18)}.add-list-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.add-list-label{display:block;margin:0 0 7px;font-size:12px;font-weight:850}.add-list-dialog select,.add-list-dialog input{width:100%;height:44px;border:1px solid var(--line);border-radius:11px;background:#0d0f13;color:var(--text);padding:0 12px;outline:none}.add-list-dialog select:focus,.add-list-dialog input:focus{border-color:rgba(255,255,255,.34)}.add-list-new{margin-top:14px}.add-list-error{margin-top:13px;padding:10px 11px;border:1px solid rgba(255,49,92,.30);border-radius:10px;background:rgba(255,49,92,.08);color:#ffb4c4;font-size:12px;line-height:1.4}.add-list-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}@media(max-width:520px){.add-list-modal{padding:10px;align-items:end}.add-list-dialog{border-radius:20px 20px 14px 14px;padding:20px 16px 16px}.add-list-actions .btn{flex:1}.share-add-list>span:last-child{display:none}}

/* YouTube sync permission prompt: shown only on /sync when youtube.readonly is missing. */
.sync-permission-hero{min-height:180px}
.sync-permission-modal{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:18px;background:rgba(0,0,0,.68);backdrop-filter:blur(10px)}
.sync-permission-dialog{width:min(500px,100%);padding:28px;border:1px solid rgba(255,255,255,.13);border-radius:22px;background:linear-gradient(180deg,#191c24,#111319);box-shadow:0 30px 100px rgba(0,0,0,.62);text-align:center}
.sync-permission-icon{width:58px;height:58px;margin:0 auto 16px;display:grid;place-items:center;border-radius:18px;color:#ff8fa8;background:rgba(255,109,140,.10);border:1px solid rgba(255,109,140,.20)}
.sync-permission-icon svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sync-permission-dialog h2{margin:0;font-size:25px;letter-spacing:-.035em}
.sync-permission-dialog>p{margin:10px auto 0;max-width:410px;color:var(--muted);font-size:14px;line-height:1.55}
.sync-permission-scope{margin:20px 0 0;padding:13px 14px;border:1px solid var(--line);border-radius:13px;background:#0d0f13;display:flex;flex-direction:column;gap:4px;text-align:left}
.sync-permission-scope strong{font-size:12px}
.sync-permission-scope span{font-size:12px;color:var(--muted)}
.sync-permission-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:22px}
@media(max-width:520px){.sync-permission-modal{padding:10px;align-items:end}.sync-permission-dialog{padding:24px 16px 16px;border-radius:22px 22px 14px 14px}.sync-permission-actions .btn{flex:1;text-align:center}}

/* Manual add shown on /sync only when YouTube has nothing new to import. */
.sync-manual-add{margin:18px auto 0;max-width:680px}
.sync-manual-add-head{margin-bottom:20px}
.sync-manual-add-head h2{margin:0;font-size:22px;letter-spacing:-.025em}
.sync-manual-add-head p{margin:7px 0 0;color:var(--muted);font-size:13px;line-height:1.5}

/* User Play all */
.section-head-actions{display:flex;align-items:center;gap:10px}.play-all-link{display:inline-flex;align-items:center;gap:7px;color:#e8e9ef;font-size:13px;font-weight:850;padding:6px 9px;border-radius:9px;border:1px solid transparent;transition:background .14s ease,border-color .14s ease,color .14s ease}.play-all-link:hover{background:rgba(255,255,255,.06);border-color:var(--line);color:#fff}.play-all-link svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}.play-all-link svg path{fill:currentColor;stroke:none}.play-all-head{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:22px}.play-all-owner{display:flex;align-items:center;gap:11px;min-width:0}.play-all-owner img{width:48px;height:48px;border-radius:50%;object-fit:cover;background:#222}.play-all-owner h1{margin:0;min-width:0;font-size:clamp(25px,3vw,38px);letter-spacing:-.035em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:620px){.section-head-actions{gap:7px}.play-all-link span{display:none}.play-all-link{padding:6px}.play-all-head{align-items:flex-start;flex-direction:column}.play-all-owner img{width:42px;height:42px}.play-all-owner h1{font-size:clamp(24px,8vw,32px);white-space:normal}}

/* Profile delete controls */
.profile-list-card,.profile-video-card{position:relative}.profile-list-thumb-wrap{position:relative;aspect-ratio:16/9;overflow:hidden;background:#191b22}.profile-list-thumb-wrap .list-thumb{height:100%;aspect-ratio:auto}.profile-delete-overlay{position:absolute;top:9px;right:9px;z-index:4;margin:0}.profile-delete-icon{width:34px;height:34px;padding:0;display:grid;place-items:center;border:1px solid rgba(255,255,255,.16);border-radius:10px;background:rgba(12,14,18,.76);color:#f0f1f5;box-shadow:0 5px 18px rgba(0,0,0,.30);backdrop-filter:blur(9px);cursor:pointer;transition:transform .14s ease,background .14s ease,border-color .14s ease,color .14s ease}.profile-delete-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.profile-delete-icon:hover{transform:translateY(-1px);color:#ff8da5;background:rgba(48,15,24,.92);border-color:rgba(255,88,120,.48)}.profile-delete-icon:focus-visible{outline:2px solid rgba(255,125,151,.85);outline-offset:2px}.profile-list-card:hover .profile-delete-icon,.profile-video-card:hover .profile-delete-icon{border-color:rgba(255,255,255,.24)}
.profile-delete-modal{position:fixed;inset:0;z-index:1400;display:grid;place-items:center;padding:18px;background:rgba(0,0,0,.70);backdrop-filter:blur(10px)}.profile-delete-modal[hidden]{display:none}.profile-delete-dialog{position:relative;width:min(480px,100%);padding:22px;border:1px solid rgba(255,255,255,.13);border-radius:20px;background:linear-gradient(180deg,#191c24,#111319);box-shadow:0 30px 100px rgba(0,0,0,.62)}.profile-delete-close{position:absolute;right:12px;top:12px;width:34px;height:34px;border:1px solid var(--line);border-radius:10px;background:#0d0f13;color:var(--muted);font-size:23px;line-height:1;cursor:pointer}.profile-delete-close:hover{color:var(--text);background:#20242d}.profile-delete-head{display:flex;align-items:flex-start;gap:13px;padding-right:38px}.profile-delete-modal-icon{width:44px;height:44px;display:grid;place-items:center;flex:none;border-radius:13px;color:#ff8ba4;background:rgba(255,73,111,.10);border:1px solid rgba(255,73,111,.22)}.profile-delete-modal-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.profile-delete-head h2{margin:1px 0 0;font-size:22px;letter-spacing:-.03em}.profile-delete-head p{margin:7px 0 0;color:var(--muted);font-size:13px;line-height:1.5}.profile-delete-target{margin:18px 0 0;padding:11px 12px;border:1px solid var(--line);border-radius:11px;background:#0d0f13;color:#e8e9ef;font-size:13px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-delete-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}.btn-danger{border-color:rgba(255,73,111,.34);background:rgba(255,73,111,.11);color:#ff9ab0}.btn-danger:hover{border-color:rgba(255,73,111,.56);background:rgba(255,73,111,.18);color:#ffc0ce}.btn-danger:disabled{opacity:.65;cursor:wait}
@media(max-width:520px){.profile-delete-modal{padding:10px;align-items:end}.profile-delete-dialog{padding:20px 16px 16px;border-radius:20px 20px 14px 14px}.profile-delete-actions .btn{flex:1}.profile-delete-overlay{top:7px;right:7px}.profile-delete-icon{width:32px;height:32px}}

/* Playlists containing the current video */
.media-list-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.media-list-chip{min-width:0;border:1px solid var(--line);background:var(--panel);border-radius:14px;padding:10px;display:flex;align-items:center;gap:10px;transition:background .14s ease,border-color .14s ease,transform .14s ease}.media-list-chip:hover{background:#171a21;border-color:rgba(255,255,255,.16);transform:translateY(-1px)}.media-list-thumb{width:68px;height:42px;border-radius:8px;object-fit:cover;background:#222;display:block;flex:0 0 auto}.media-list-thumb-empty{display:grid;place-items:center;font-size:20px;color:var(--muted)}.media-list-copy{min-width:0}.media-list-name{font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.media-list-meta{font-size:11px;color:var(--muted);margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media(max-width:1050px){.media-list-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:820px){.media-list-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:540px){.media-list-grid{grid-template-columns:1fr}}


/* Profile playlist edit controls */
.profile-list-actions{position:absolute;top:9px;right:9px;z-index:5;display:flex;gap:6px;align-items:center}.profile-list-actions .profile-delete-overlay{position:static;inset:auto}.profile-edit-icon{width:34px;height:34px;padding:0;display:grid;place-items:center;border:1px solid rgba(255,255,255,.16);border-radius:10px;background:rgba(12,14,18,.76);color:#f0f1f5;box-shadow:0 5px 18px rgba(0,0,0,.30);backdrop-filter:blur(9px);cursor:pointer;transition:transform .14s ease,background .14s ease,border-color .14s ease,color .14s ease}.profile-edit-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.profile-edit-icon:hover{transform:translateY(-1px);color:#b9a8ff;background:rgba(35,29,65,.94);border-color:rgba(155,132,255,.52)}.profile-edit-icon:focus-visible{outline:2px solid rgba(174,156,255,.9);outline-offset:2px}.profile-list-card:hover .profile-edit-icon{border-color:rgba(255,255,255,.24)}
.profile-edit-modal{position:fixed;inset:0;z-index:1450;display:grid;place-items:center;padding:18px;background:rgba(0,0,0,.70);backdrop-filter:blur(10px)}.profile-edit-modal[hidden]{display:none}.profile-edit-dialog{position:relative;width:min(520px,100%);max-height:calc(100dvh - 36px);display:flex;flex-direction:column;overflow:hidden;padding:22px;border:1px solid rgba(255,255,255,.13);border-radius:20px;background:linear-gradient(180deg,#191c24,#111319);box-shadow:0 30px 100px rgba(0,0,0,.62)}.profile-edit-close{position:absolute;right:12px;top:12px;width:34px;height:34px;border:1px solid var(--line);border-radius:10px;background:#0d0f13;color:var(--muted);font-size:23px;line-height:1;cursor:pointer}.profile-edit-close:hover{color:var(--text);background:#20242d}.profile-edit-head{display:flex;align-items:flex-start;gap:13px;padding-right:38px;margin-bottom:18px;flex:none}.profile-edit-dialog form{display:flex;flex-direction:column;min-height:0;flex:1}.profile-edit-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-right:5px;margin-right:-5px;scrollbar-gutter:stable}.profile-edit-modal-icon{width:44px;height:44px;display:grid;place-items:center;flex:none;border-radius:13px;color:#b9a8ff;background:rgba(137,111,255,.10);border:1px solid rgba(151,129,255,.22)}.profile-edit-modal-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.profile-edit-head h2{margin:1px 0 0;font-size:22px;letter-spacing:-.03em}.profile-edit-head p{margin:7px 0 0;color:var(--muted);font-size:13px;line-height:1.5}.profile-edit-preview-wrap{width:100%;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:#0d0f13;border:1px solid var(--line);margin-bottom:17px}.profile-edit-preview{width:100%;height:100%;display:block;object-fit:cover}.profile-edit-label{display:block;margin:13px 0 7px;font-size:12px;font-weight:850}.profile-edit-dialog input{width:100%;height:44px;border:1px solid var(--line);border-radius:11px;background:#0d0f13;color:var(--text);padding:0 12px;outline:none}.profile-edit-dialog input:focus{border-color:rgba(255,255,255,.34)}.profile-edit-note{margin-top:7px;color:var(--muted);font-size:11px;line-height:1.45}.profile-edit-error{margin-top:13px;padding:10px 11px;border:1px solid rgba(255,49,92,.30);border-radius:10px;background:rgba(255,49,92,.08);color:#ffb4c4;font-size:12px;line-height:1.4}.profile-edit-actions{display:flex;justify-content:flex-end;gap:9px;flex:none;margin-top:14px;padding-top:14px;border-top:1px solid var(--line);background:linear-gradient(180deg,rgba(17,19,25,0),#111319 24%)}.profile-edit-actions .btn-primary:disabled{opacity:.65;cursor:wait}@media(max-width:520px){.profile-list-actions{top:7px;right:7px}.profile-edit-icon{width:32px;height:32px}.profile-edit-modal{padding:10px;align-items:end}.profile-edit-dialog{max-height:calc(100dvh - 20px);padding:20px 16px 16px;border-radius:20px 20px 14px 14px}.profile-edit-actions .btn{flex:1}}

/* Playlist thumbnail chooser */
.profile-edit-thumb-tools{display:flex;justify-content:flex-start;margin-top:8px}.profile-edit-choose-thumb{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:7px 10px;border:1px solid var(--line);border-radius:10px;background:#151820;color:#e8e9ef;font:inherit;font-size:12px;font-weight:800;cursor:pointer;transition:background .14s ease,border-color .14s ease,color .14s ease}.profile-edit-choose-thumb svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.profile-edit-choose-thumb:hover,.profile-edit-choose-thumb[aria-expanded="true"]{background:#20242d;border-color:rgba(169,148,255,.42);color:#c9bbff}.profile-edit-thumb-picker{margin-top:10px;padding:12px;border:1px solid var(--line);border-radius:13px;background:#0d0f13}.profile-edit-thumb-picker[hidden]{display:none}.profile-edit-thumb-picker-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:10px}.profile-edit-thumb-picker-head strong{font-size:12px}.profile-edit-thumb-picker-head span{font-size:10px}.profile-edit-thumb-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-height:270px;overflow:auto;padding-right:2px}.profile-edit-thumb-option{min-width:0;padding:0;border:1px solid var(--line);border-radius:10px;background:#151820;color:var(--text);overflow:hidden;text-align:left;cursor:pointer;transition:transform .12s ease,border-color .12s ease,background .12s ease}.profile-edit-thumb-option:hover{transform:translateY(-1px);border-color:rgba(169,148,255,.50);background:#1b1e27}.profile-edit-thumb-option:focus-visible{outline:2px solid rgba(174,156,255,.9);outline-offset:2px}.profile-edit-thumb-option img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;background:#1d2028}.profile-edit-thumb-option span{display:block;padding:6px 7px;font-size:10px;line-height:1.25;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-edit-thumb-status{padding:8px 2px 2px;font-size:11px}.profile-edit-thumb-more{display:block;margin:10px auto 0;padding:7px 11px;font-size:11px}.profile-edit-thumb-more[hidden]{display:none}@media(max-width:520px){.profile-edit-thumb-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-height:240px}.profile-edit-choose-thumb{width:100%;justify-content:center}}
.rfy-refresh-form{display:flex;flex-direction:column;align-items:flex-end;gap:6px}.rfy-refresh-form .btn:disabled{opacity:.48;cursor:not-allowed}.rfy-refresh-note{max-width:240px;color:var(--muted);font-size:11px;line-height:1.35;text-align:right}@media(max-width:640px){.rfy-refresh-form{align-items:stretch}.rfy-refresh-note{text-align:left;max-width:none}}

/* Profile-owned account actions */
.profile-account-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.profile-account-form{margin:0;display:inline-flex}.profile-account-action{min-height:37px;padding:0 11px;border:1px solid rgba(255,255,255,.11);border-radius:10px;background:rgba(255,255,255,.035);color:#d8dbe3;display:inline-flex;align-items:center;justify-content:center;gap:7px;font:inherit;font-size:12px;font-weight:790;line-height:1;white-space:nowrap;cursor:pointer;box-shadow:inset 0 1px 0 rgba(255,255,255,.025);transition:transform .14s ease,background .14s ease,border-color .14s ease,color .14s ease}.profile-account-action svg{width:16px;height:16px;display:block;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.profile-account-action:hover{transform:translateY(-1px);background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.19);color:#fff}.profile-account-action:focus-visible{outline:2px solid rgba(183,166,255,.85);outline-offset:2px}.profile-account-action-play{color:#e2e4ea}.profile-account-action-play:hover{color:#fff}.profile-account-action-sync{color:#c8baff;border-color:rgba(157,133,255,.24);background:rgba(126,101,230,.07)}.profile-account-action-sync:hover{color:#ddd4ff;border-color:rgba(165,143,255,.42);background:rgba(126,101,230,.13)}.profile-account-action-logout{color:#aeb3bf;background:transparent}.profile-account-action-logout:hover{color:#ff9ab0;border-color:rgba(255,88,120,.30);background:rgba(255,73,111,.07)}
@media(max-width:720px){.profile-head{align-items:flex-start}.profile-account-actions{width:100%;justify-content:flex-start;margin-top:3px}.profile-account-action{min-height:36px;padding:0 10px}}
@media(max-width:430px){.profile-account-actions{display:grid;grid-template-columns:1fr 1fr}.profile-account-form{display:block}.profile-account-action{width:100%}.profile-account-form .profile-account-action{width:100%}}
@media(max-width:720px){.profile-head{flex-wrap:wrap}.profile-head>.nav-spacer{display:none}}

.playlist-title-row{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}.playlist-owner-link{color:var(--muted);font-size:14px;font-weight:750;white-space:nowrap;transition:color .15s ease}.playlist-owner-link:hover{color:var(--text);text-decoration:underline;text-underline-offset:3px}

.rfy-head-actions{display:flex;flex-direction:column;align-items:flex-end;gap:7px}.rfy-head-buttons{display:flex;align-items:center;gap:9px}.rfy-source-config{display:inline-flex;align-items:center;gap:8px}.rfy-source-config svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.rfy-source-summary{padding-left:8px;margin-left:2px;border-left:1px solid var(--line);color:var(--muted);font-size:11px;font-weight:800}.rfy-source-config:disabled,.rfy-refresh-form .btn:disabled{opacity:.48;cursor:not-allowed}.rfy-source-modal{position:fixed;inset:0;z-index:1500;display:grid;place-items:center;padding:18px;background:rgba(0,0,0,.72);backdrop-filter:blur(10px)}.rfy-source-modal[hidden]{display:none}.rfy-source-dialog{position:relative;width:min(720px,100%);max-height:min(820px,calc(100vh - 36px));overflow:auto;padding:22px;border:1px solid rgba(255,255,255,.13);border-radius:20px;background:linear-gradient(180deg,#191c24,#111319);box-shadow:0 30px 100px rgba(0,0,0,.62)}.rfy-source-close{position:absolute;right:12px;top:12px;width:34px;height:34px;border:1px solid var(--line);border-radius:10px;background:#0d0f13;color:var(--muted);font-size:23px;line-height:1;cursor:pointer}.rfy-source-close:hover{color:var(--text);background:#20242d}.rfy-source-head{display:flex;align-items:flex-start;gap:13px;padding-right:38px}.rfy-source-icon{width:44px;height:44px;display:grid;place-items:center;flex:none;border-radius:13px;color:#b9a8ff;background:rgba(137,111,255,.10);border:1px solid rgba(151,129,255,.22)}.rfy-source-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.rfy-source-head h2{margin:1px 0 0;font-size:22px;letter-spacing:-.03em}.rfy-source-head p{margin:7px 0 0;color:var(--muted);font-size:13px;line-height:1.5}.rfy-source-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:20px}.rfy-source-mode{display:flex;gap:10px;align-items:flex-start;padding:13px;border:1px solid var(--line);border-radius:13px;background:#0d0f13;cursor:pointer}.rfy-source-mode:has(input:checked){border-color:rgba(151,129,255,.55);background:rgba(137,111,255,.08)}.rfy-source-mode input{margin:3px 0 0;accent-color:#9d87ff}.rfy-source-mode span{display:block}.rfy-source-mode strong{display:block;font-size:13px}.rfy-source-mode small{display:block;margin-top:4px;color:var(--muted);font-size:11px;line-height:1.4}.rfy-source-picker{margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}.rfy-source-picker-tools{display:flex;align-items:center;gap:10px;justify-content:space-between}.rfy-source-search-wrap{height:42px;display:flex;align-items:center;gap:8px;flex:1;padding:0 11px;border:1px solid var(--line);border-radius:11px;background:#0d0f13}.rfy-source-search-wrap:focus-within{border-color:rgba(255,255,255,.34)}.rfy-source-search-wrap svg{width:17px;height:17px;flex:none;fill:none;stroke:var(--muted);stroke-width:1.8;stroke-linecap:round}.rfy-source-search-wrap input{width:100%;border:0;outline:0;background:transparent;color:var(--text);font:inherit}.rfy-source-selected-count{flex:none;color:var(--muted);font-size:12px;font-weight:800}.rfy-source-list{display:grid;gap:8px;margin-top:12px}.rfy-source-item{display:grid;grid-template-columns:88px minmax(0,1fr) 28px;align-items:center;gap:11px;padding:8px;border:1px solid var(--line);border-radius:12px;background:#0d0f13;cursor:pointer}.rfy-source-item:hover{border-color:rgba(255,255,255,.22);background:#12151b}.rfy-source-item.is-selected{border-color:rgba(151,129,255,.40);background:rgba(137,111,255,.06)}.rfy-source-item img{width:88px;aspect-ratio:16/9;object-fit:cover;border-radius:8px;background:#050608}.rfy-source-item-title{min-width:0;font-size:12px;font-weight:800;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.rfy-source-item input{width:18px;height:18px;margin:0;accent-color:#9d87ff}.rfy-source-list-status{margin-top:12px;padding:12px;border:1px dashed var(--line);border-radius:11px;color:var(--muted);font-size:12px;text-align:center}.rfy-source-more{width:100%;margin-top:10px}.rfy-source-error{margin-top:13px;padding:10px 11px;border:1px solid rgba(255,49,92,.30);border-radius:10px;background:rgba(255,49,92,.08);color:#ffb4c4;font-size:12px;line-height:1.4}.rfy-source-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}.rfy-source-actions .btn-primary:disabled{opacity:.65;cursor:wait}@media(max-width:700px){.rfy-head-actions,.rfy-head-buttons{width:100%;align-items:stretch}.rfy-head-buttons{flex-direction:column}.rfy-head-buttons>*{width:100%}.rfy-source-config{justify-content:center}.rfy-refresh-note{text-align:left}.rfy-source-modal{padding:10px;align-items:end}.rfy-source-dialog{max-height:calc(100vh - 20px);padding:20px 16px 16px;border-radius:20px 20px 14px 14px}.rfy-source-modes{grid-template-columns:1fr}.rfy-source-picker-tools{align-items:stretch;flex-direction:column}.rfy-source-selected-count{align-self:flex-end}.rfy-source-item{grid-template-columns:78px minmax(0,1fr) 26px}.rfy-source-item img{width:78px}.rfy-source-actions .btn{flex:1}}
.rfy-first-run-source{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin:18px 0 12px}.rfy-first-run-source>span{color:var(--muted);font-size:13px}.rfy-first-run-source strong{color:var(--text)}

.home-latest-users{margin-bottom:34px}.home-videos-hero{margin-top:0}.home-latest-users .user-chip{transition:background .14s ease,border-color .14s ease,transform .14s ease}.home-latest-users .user-chip:hover{background:rgba(255,255,255,.055);border-color:rgba(255,255,255,.16);transform:translateY(-1px)}

/* Product status badge beside the brand. */
.brand-beta{position:absolute;left:calc(100% + 6px);top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;height:21px;padding:0 8px;border:1px solid rgba(255,109,140,.28);border-radius:999px;background:linear-gradient(135deg,rgba(255,49,92,.14),rgba(150,92,255,.12));box-shadow:inset 0 1px 0 rgba(255,255,255,.07);color:#ff89a2;font-size:10px;font-weight:850;line-height:1;letter-spacing:.07em;text-transform:uppercase;white-space:nowrap;pointer-events:none}
@media(max-width:540px){.brand-beta{left:calc(100% + 4px);height:18px;padding:0 6px;font-size:9px;letter-spacing:.06em}}

/* Home latest content: two columns when there is room, tabs on narrower screens. */
.home-latest-tabs{display:none}
.home-latest-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,.78fr);gap:30px;align-items:start}
.home-latest-pane{min-width:0}
.home-videos-pane .home-videos-hero{margin-top:0}
.home-videos-pane .video-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.home-users-pane{position:sticky;top:88px}
.home-users-pane .section-head{margin-bottom:14px}
.home-users-pane .section-head h2{font-size:26px;letter-spacing:-.035em}
.home-users-list{grid-template-columns:1fr}
.home-users-list .user-chip{padding:11px 12px}
@media(max-width:1120px) and (min-width:901px){.home-videos-pane .video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){
  .home-latest-tabs{display:flex;gap:4px;padding:4px;margin-bottom:18px;border:1px solid var(--line);background:var(--panel);border-radius:12px;width:max-content;max-width:100%}
  .home-latest-tab{border:0;background:transparent;color:var(--muted);border-radius:9px;padding:9px 13px;font:inherit;font-size:13px;font-weight:800;cursor:pointer;white-space:nowrap}
  .home-latest-tab:hover{color:var(--text)}
  .home-latest-tab.is-active{background:var(--panel2);color:var(--text);box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
  .home-latest-layout{display:block}
  .home-latest-pane{display:none}
  .home-latest-pane.is-active{display:block}
  .home-users-pane{position:static}
  .home-users-pane .section-head{display:none}
  .home-videos-pane .video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-videos-pane .home-videos-hero{display:none}
  .home-users-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:540px){
  .home-latest-tabs{width:100%}
  .home-latest-tab{flex:1;padding-left:8px;padding-right:8px}
  .home-videos-pane .video-grid,.home-users-list{grid-template-columns:1fr}
}


/* Public legal pages and shared footer. */
.site-footer{border-top:1px solid var(--line);background:rgba(9,10,13,.7)}
.site-footer-inner{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:14px;padding-bottom:14px}
.site-footer-brand{color:var(--muted);font-size:12px;font-weight:800;letter-spacing:.01em}
.site-footer-brand span{margin-left:5px;color:#ff89a2;font-size:9px;letter-spacing:.08em;text-transform:uppercase}
.site-footer-links{display:flex;align-items:center;justify-content:flex-end;gap:18px;flex-wrap:wrap}
.site-footer-links a{color:var(--muted);font-size:12px;font-weight:700;transition:color .14s ease}
.site-footer-links a:hover{color:var(--text)}
.legal-page{max-width:900px;padding-bottom:70px}
.legal-hero{padding:30px 0 20px;border-bottom:1px solid var(--line);margin-bottom:22px}
.legal-kicker{display:inline-block;margin-bottom:10px;color:#b9a8ff;font-size:11px;font-weight:850;letter-spacing:.11em;text-transform:uppercase}
.legal-hero h1{margin:0;font-size:clamp(34px,6vw,58px);line-height:1;letter-spacing:-.05em}
.legal-hero p{margin:10px 0 0;color:var(--muted);font-size:13px}
.legal-card{font-size:15px;line-height:1.72;color:#d9dce5}
.legal-card>p:first-child{font-size:17px;line-height:1.7;color:#f0f2f7}
.legal-card h2{margin:34px 0 10px;color:var(--text);font-size:21px;letter-spacing:-.025em}
.legal-card h3{margin:21px 0 7px;color:#eceef4;font-size:15px}
.legal-card p{margin:0 0 14px}
.legal-card ul{margin:8px 0 16px;padding-left:23px}
.legal-card li{margin:7px 0}
.legal-card a{color:#c8baff;text-decoration:underline;text-underline-offset:3px}
.legal-card a:hover{color:#e1d9ff}
.legal-card code{padding:2px 6px;border:1px solid var(--line);border-radius:7px;background:#0d0f13;color:#f1f2f6;font-size:.9em}
@media(max-width:620px){.site-footer-inner{align-items:flex-start;flex-direction:column}.site-footer-links{justify-content:flex-start;gap:14px}.legal-hero{padding-top:18px}.legal-card{font-size:14px}.legal-card>p:first-child{font-size:16px}}
