/* Thumbnail Preview, mindshare.tools/yt */
*{box-sizing:border-box;margin:0;padding:0}
html,body{background:#0f0f0f;color:#f1f1f1;font-family:"Roboto","Arial",sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
body{min-height:100vh;overflow-x:hidden}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
input,textarea,select{font:inherit;color:inherit}
svg{fill:currentColor}
img{display:block}
[hidden]{display:none!important}

/* ============ STUDIO PANEL ============ */
.studio{background:#161616;border-bottom:1px solid #2a2a2a;position:relative;z-index:50;font-size:13px;color:#e8e8e8}
.st-bar{display:flex;align-items:center;gap:16px;height:52px;padding:0 16px;border-bottom:1px solid #232323}
.st-brand{display:flex;align-items:center;gap:10px;min-width:0}
.st-logo svg{width:28px;height:20px;display:block}
.st-brand-t{display:flex;flex-direction:column;line-height:1.15}
.st-brand-t b{font-weight:500;font-size:14px;color:#fff;white-space:nowrap}
.st-brand-t span{font-size:11px;color:#8a8a8a}
.seg{display:flex;background:#232323;border-radius:10px;padding:3px;margin-left:12px}
.seg button{height:30px;padding:0 16px;border-radius:8px;font-size:13px;font-weight:500;color:#bbb}
.seg button.on{background:#f1f1f1;color:#0f0f0f}
.seg button:not(.on):hover{color:#fff;background:#2e2e2e}
.st-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
.sbtn{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;border-radius:17px;background:#262626;font-size:13px;font-weight:500;color:#eee;white-space:nowrap}
.sbtn:hover{background:#323232}
.sbtn svg{width:18px;height:18px}
.sbtn.icon{width:34px;padding:0;justify-content:center}
.sbtn.primary{background:#f1f1f1;color:#0f0f0f}
.sbtn.primary:hover{background:#fff}
.sbtn kbd{font:500 11px/1 "Roboto",sans-serif;background:rgba(0,0,0,.1);border-radius:4px;padding:3px 5px;margin-left:2px}
.chan-chip{display:inline-flex;align-items:center;gap:8px;height:34px;padding:0 12px 0 4px;border-radius:17px;background:#262626;font-weight:500;max-width:200px}
.chan-chip:hover{background:#323232}
.chan-chip img{width:26px;height:26px;border-radius:50%;object-fit:cover}
.chan-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.collapsed .st-body{display:none}
body.collapsed #btnCollapse svg{transform:rotate(180deg)}

.st-body{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:0;height:244px}
.st-col{padding:12px 16px;border-right:1px solid #232323;display:flex;flex-direction:column;min-height:0;min-width:0}
.st-col:last-child{border-right:0}
.col-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;min-height:28px}
.col-h h3{font-size:13px;font-weight:500;color:#fff;letter-spacing:.2px;display:flex;align-items:center;gap:8px}
.col-h h3 em,.pairs-h em{font-style:normal;font-size:11px;color:#aaa;background:#262626;border-radius:9px;padding:1px 7px}
.lbtn{display:inline-flex;align-items:center;justify-content:center;gap:5px;height:28px;padding:0 10px;border-radius:14px;background:#262626;font-size:12px;font-weight:500;color:#eee;white-space:nowrap}
.lbtn:hover{background:#333}
.lbtn svg{width:16px;height:16px}
.lbtn.solid{background:#f1f1f1;color:#0f0f0f}
.lbtn.solid:hover{background:#fff}
.lbtn.wide{width:100%;height:32px;border-radius:16px;margin:10px 0 8px}
.hint{font-size:11px;color:#7d7d7d;line-height:1.35}
.col-thumbs .hint{margin-top:8px}

.tray{flex:1;min-height:0;overflow:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:8px;align-content:start;padding:2px;border-radius:10px}
.tray.empty{border:1.5px dashed #3a3a3a;display:flex;align-items:center;justify-content:center;cursor:pointer}
.tray-empty{display:flex;flex-direction:column;align-items:center;gap:6px;color:#9a9a9a;font-size:12px;text-align:center;padding:12px}
.tray-empty svg{width:28px;height:28px;color:#bbb}
.tt{position:relative;aspect-ratio:16/9;border-radius:8px;overflow:hidden;cursor:pointer;background:#222;outline:2px solid transparent;outline-offset:1px;transition:outline-color .12s}
.tt img{width:100%;height:100%;object-fit:cover}
.tt:hover{outline-color:#555}
.tt.on{outline-color:#fff}
.tt .x,.tl .x,.pr .x{position:absolute;top:4px;right:4px;width:20px;height:20px;border-radius:50%;background:rgba(0,0,0,.75);display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .12s}
.tt .x svg,.pr .x svg{width:14px;height:14px}
.tt:hover .x,.pr:hover .x{opacity:1}
.tt .n{position:absolute;left:4px;bottom:4px;font-size:10px;font-weight:500;background:rgba(0,0,0,.7);border-radius:4px;padding:1px 5px}
.tt.on .n{background:#f1f1f1;color:#0f0f0f}
.tt.add{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;border:1.5px dashed #3a3a3a;background:transparent;color:#aaa;font-size:11px}
.tt.add svg{width:20px;height:20px}
.tt.add:hover{border-color:#777;color:#fff}

.title-add{display:flex;gap:6px;margin-bottom:8px}
.title-add input,.bulk textarea{flex:1;min-width:0;height:32px;background:#0f0f0f;border:1px solid #303030;border-radius:8px;padding:0 10px;font-size:13px;outline:none}
.title-add input:focus,.bulk textarea:focus,.f input:focus{border-color:#3ea6ff}
.title-add .lbtn{height:32px;border-radius:8px}
.bulk{margin-bottom:8px}
.bulk textarea{width:100%;height:auto;padding:8px 10px;resize:vertical;min-height:72px;line-height:1.4}
.bulk-row{display:flex;justify-content:space-between;align-items:center;margin-top:6px}
.title-list{list-style:none;flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:4px}
.tl{position:relative;display:flex;align-items:center;gap:8px;padding:7px 56px 7px 10px;border-radius:8px;background:#1e1e1e;cursor:pointer;border:1px solid transparent;line-height:1.3}
.tl:hover{background:#252525}
.tl.on{border-color:#f1f1f1;background:#262626}
.tl .tx{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.tl .cc{font-size:10px;color:#777;flex:none}
.tl .cc.warn{color:#f1a33c}
.tl .acts{position:absolute;right:6px;top:50%;transform:translateY(-50%);display:flex;gap:2px;opacity:0;transition:opacity .12s}
.tl:hover .acts{opacity:1}
.tl:hover .cc{visibility:hidden}
.tl .acts button{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#ccc}
.tl .acts button:hover{background:#3a3a3a;color:#fff}
.tl .acts svg{width:16px;height:16px}
.tl input{flex:1;min-width:0;background:#0f0f0f;border:1px solid #3ea6ff;border-radius:6px;height:26px;padding:0 8px;font-size:13px;outline:none}
.list-empty{color:#7d7d7d;font-size:12px;padding:10px 2px}

.combo{display:flex;gap:10px;align-items:flex-start}
.combo-thumb{width:132px;flex:none;aspect-ratio:16/9;border-radius:8px;overflow:hidden;background:#222}
.combo-thumb img{width:100%;height:100%;object-fit:cover}
.combo-meta{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}
.combo-title{font-size:13px;font-weight:500;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#fff;min-height:34px}
.combo-slot{display:flex;align-items:center;gap:6px}
.combo-slot label{font-size:12px;color:#aaa}
.combo-slot select{height:28px;background:#262626;border:0;border-radius:8px;padding:0 6px;font-size:12px;outline:none}
.pairs-h{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:500;color:#fff;margin-bottom:6px}
.pairs-h span:first-child{display:flex;gap:6px;align-items:center}
.pairs{flex:1;min-height:0;overflow:auto;display:flex;flex-wrap:wrap;gap:6px;align-content:flex-start}
.pr{position:relative;display:flex;align-items:center;gap:6px;height:32px;padding:0 26px 0 3px;border-radius:8px;background:#222;border:1px solid transparent;cursor:pointer;max-width:100%}
.pr:hover{background:#2a2a2a}
.pr.on{border-color:#f1f1f1;background:#2b2b2b}
.pr img{width:44px;height:25px;border-radius:5px;object-fit:cover;flex:none}
.pr b{font-size:12px;font-weight:500;white-space:nowrap}
.pr .x{top:50%;transform:translateY(-50%);right:3px}

/* ============ STAGE ============ */
#stage{position:relative}
.ytd,.ytm-stage,.tv-stage{display:none}
body.mode-desktop .ytd{display:block}
body.mode-mobile .ytm-stage{display:flex}
body.mode-tv .tv-stage{display:flex}

/* editor-only bits */
.mv{position:absolute;top:8px;left:8px;z-index:3;display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border-radius:15px;background:rgba(15,15,15,.82);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,.22);color:#fff;font:500 12px/1 "Roboto",sans-serif;opacity:0;transform:translateY(-2px);transition:opacity .14s,transform .14s;pointer-events:none}
.mv svg{width:16px;height:16px}
.card:hover .mv,.mcard:hover .mv,.tvcard:hover .mv{opacity:1;transform:none;pointer-events:auto}
.mv:hover{background:#fff;color:#0f0f0f}
.you-tag{position:absolute;top:8px;left:8px;z-index:3;height:22px;padding:0 8px;border-radius:11px;background:#ff0033;color:#fff;font:700 10px/22px "Roboto",sans-serif;letter-spacing:.6px;box-shadow:0 2px 8px rgba(0,0,0,.4)}
body.fs .edit-only{display:none!important}
.ph{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:radial-gradient(120% 120% at 30% 20%,#2c2c2c,#181818);color:#9a9a9a;font-size:13px;cursor:pointer}
.ph svg{width:30px;height:30px;color:#cfcfcf}

/* ============ DESKTOP (YouTube web) ============ */
.ytd{background:#0f0f0f;min-height:calc(100vh - 52px)}
.ytd-top{position:sticky;top:0;z-index:20;height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:#0f0f0f}
.ib{width:40px;height:40px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:#f1f1f1;flex:none}
.ib:hover{background:rgba(255,255,255,.1)}
.ib svg{width:24px;height:24px}
.ytd-start{display:flex;align-items:center;width:169px;flex:none}
.ytd-logo{display:flex;align-items:center;padding:18px 14px 18px 16px;cursor:pointer}
.ytd-logo img{width:93px;height:20px}
.ytd-center{flex:0 1 732px;display:flex;align-items:center;margin:0 40px;min-width:0}
.ytd-search{flex:1;display:flex;height:40px;min-width:0}
.ytd-input{flex:1;display:flex;align-items:center;justify-content:space-between;min-width:0;background:#121212;border:1px solid #303030;border-right:none;border-radius:40px 0 0 40px;padding:0 4px 0 16px;box-shadow:inset 0 1px 2px rgba(0,0,0,.4)}
.ytd-input span{font-size:16px;color:#888;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ask{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px 0 9px;border-radius:15px;background:#272727;font-size:14px;font-weight:500;color:#f1f1f1;white-space:nowrap;flex:none}
.ask svg{width:18px;height:18px}
.ytd-sbtn{width:64px;height:40px;background:#222;border:1px solid #303030;border-radius:0 40px 40px 0;display:flex;align-items:center;justify-content:center;flex:none}
.ytd-sbtn svg{width:24px;height:24px}
.ib.mic{background:#272727;margin-left:12px}
.ib.mic:hover{background:#3f3f3f}
.ytd-end{display:flex;align-items:center;gap:8px;flex:none;justify-content:flex-end;width:225px}
.create{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 16px 0 10px;border-radius:18px;background:#272727;font-size:14px;font-weight:500}
.create:hover{background:#3f3f3f}
.create svg{width:24px;height:24px}
.ytd-me{width:40px;height:40px;display:flex;align-items:center;justify-content:center;margin-left:4px}
.ytd-me img{width:32px;height:32px;border-radius:50%;object-fit:cover}
.ytd-main{display:flex}
.ytd-mini{width:72px;flex:none;position:sticky;top:56px;align-self:flex-start;padding:4px 4px 0}
.ytd-mini a{display:flex;flex-direction:column;align-items:center;padding:16px 0 14px;border-radius:10px;cursor:pointer;color:#f1f1f1}
.ytd-mini a:hover{background:rgba(255,255,255,.1)}
.ytd-mini svg{width:24px;height:24px;margin-bottom:6px}
.ytd-mini span{font-size:10px;line-height:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:64px}
.ytd-content{flex:1;min-width:0;container-type:inline-size}
.ytd-chips{position:sticky;top:56px;z-index:10;background:#0f0f0f;height:56px;display:flex;align-items:center;padding:0 24px;}
.chips-scroll{display:flex;gap:12px;overflow:hidden;flex:1;min-width:0}
.chip{flex:none;height:32px;padding:0 12px;border-radius:8px;background:rgba(255,255,255,.1);font-size:14px;font-weight:500;color:#f1f1f1;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.chip:hover{background:rgba(255,255,255,.2)}
.chip.on{background:#f1f1f1;color:#0f0f0f}
.chip.cf svg{width:20px;height:20px;margin-left:-4px}
.chips-next{position:absolute;right:0;top:0;height:56px;display:flex;align-items:center;padding:0 8px 0 60px;background:linear-gradient(to right,rgba(15,15,15,0),#0f0f0f 55%)}
.ytd-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:16px;row-gap:40px;padding:12px 24px 48px}
@container (min-width:2000px){.ytd-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@container (max-width:1000px){.ytd-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container (max-width:600px){.ytd-grid{grid-template-columns:1fr}}
.card{position:relative;min-width:0}
.card .th{position:relative;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#272727}
.card .th img{width:100%;height:100%;object-fit:cover}
.badge{position:absolute;right:8px;bottom:8px;height:20px;padding:0 4px;border-radius:4px;background:rgba(0,0,0,.6);color:#fff;font:500 12px/20px "Roboto",sans-serif;letter-spacing:.2px}
.badge.live{background:#cc0000;display:inline-flex;align-items:center;gap:3px;padding:0 5px 0 3px;font-weight:500;letter-spacing:.4px}
.badge.live svg{width:16px;height:16px}
.card .det{display:flex;padding-top:12px}
.av{width:36px;height:36px;border-radius:50%;overflow:hidden;flex:none;margin-right:12px;background:#333;position:relative}
.av img{width:100%;height:100%;object-fit:cover}
.av-wrap{position:relative;flex:none;margin-right:12px;height:fit-content}
.av-wrap .av{margin-right:0}
.av-wrap.live .av{box-shadow:0 0 0 2px #0f0f0f,0 0 0 4px #ff0033}
.av-wrap.live::after{content:"LIVE";position:absolute;left:50%;bottom:-6px;transform:translateX(-50%);background:#ff0033;color:#fff;font:700 8px/12px "Roboto",sans-serif;border-radius:3px;padding:0 3px;letter-spacing:.3px;box-shadow:0 0 0 2px #0f0f0f}
.meta{flex:1;min-width:0;padding-right:24px}
.ttl{font-size:16px;line-height:22px;font-weight:500;color:#f1f1f1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word;margin-bottom:4px}
.sub{font-size:14px;line-height:20px;color:#aaa;display:flex;flex-wrap:wrap;align-items:center;column-gap:8px}
.sub .ch{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.sub .ck{width:14px;height:14px;flex:none;color:#aaa}
.sub .vw{display:inline-flex;align-items:center;gap:3px;white-space:nowrap}
.sub .vw svg{width:14px;height:14px}
.sub .tm{white-space:nowrap}
.card .menu{position:absolute;right:-8px;top:calc(100% - var(--detH,0px));}
.dots{position:absolute;right:-10px;width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#f1f1f1}
.card .dots{top:6px}
.dots svg{width:24px;height:24px}
.card .det{position:relative}

/* ============ MOBILE (YouTube iOS) ============ */
.ytm-stage{justify-content:center;align-items:flex-start;padding:28px 16px 48px;min-height:calc(100vh - 52px);background:radial-gradient(1000px 600px at 50% 0%,#1b1b1b,#0a0a0a)}
body.fs .ytm-stage{min-height:100vh;align-items:center;padding:16px}
.phone{width:414px;height:868px;border-radius:64px;padding:12px;background:linear-gradient(145deg,#2b2b2e,#121214);box-shadow:0 0 0 2px #3a3a3d inset,0 30px 80px rgba(0,0,0,.6),0 0 0 1px #000;flex:none;transform-origin:top center}
body.fs .phone{transform-origin:center center}
.phone-screen{position:relative;width:390px;height:844px;border-radius:52px;overflow:hidden;background:#0f0f0f}
.ytm-scroll{position:absolute;inset:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:none}
.ytm-scroll::-webkit-scrollbar{display:none}
.ytm-head{position:sticky;top:0;z-index:5;background:rgba(15,15,15,.82);backdrop-filter:blur(20px) saturate(160%);-webkit-backdrop-filter:blur(20px) saturate(160%)}
.ios-status{height:54px;display:flex;align-items:center;justify-content:space-between;padding:0 30px 0 44px;position:relative;font-family:-apple-system,"SF Pro Text","Roboto",sans-serif}
.ios-time{font-size:17px;font-weight:600;letter-spacing:-.2px}
.island{position:absolute;left:50%;top:11px;transform:translateX(-50%);width:124px;height:36px;border-radius:20px;background:#000}
.ios-r{display:flex;align-items:center;gap:6px}
.batt{display:inline-flex;align-items:center;justify-content:center;width:27px;height:13px;border-radius:4px;background:#fff;position:relative;margin-left:1px}
.batt::after{content:"";position:absolute;right:-3px;top:4px;width:1.5px;height:5px;border-radius:0 1px 1px 0;background:rgba(255,255,255,.45)}
.batt i{font:700 10px/1 -apple-system,"Roboto",sans-serif;color:#000;font-style:normal}
.ytm-bar{height:44px;display:flex;align-items:center;justify-content:space-between;padding:0 14px 0 16px}
.ytm-logo{width:90px;height:20px}
.ytm-icons{display:flex;gap:22px}
.ytm-icons svg{width:24px;height:24px}
.ytm-pills{display:flex;align-items:center;gap:4px;padding:6px 10px 10px;white-space:nowrap;overflow:hidden}
.pl{height:36px;padding:0 12px;border-radius:18px;font-size:17px;line-height:36px;color:#f1f1f1;flex:none}
.pl.plus{padding:0 6px;display:flex;align-items:center}
.pl.plus svg{width:22px;height:22px}
.pl.on{background:rgba(255,255,255,.14);box-shadow:inset 0 0 0 .5px rgba(255,255,255,.12)}
.ytm-list{padding-bottom:110px}
.mcard{position:relative;margin-bottom:16px}
.mcard .th{position:relative;aspect-ratio:16/9;background:#272727;overflow:hidden}
.mcard .th img{width:100%;height:100%;object-fit:cover}
.mcard .badge{right:8px;bottom:8px}
.mcard .mt{padding:12px 12px 0}
.mcard .ttl{font-size:16px;line-height:22px;margin-bottom:10px}
.mrow{display:flex;align-items:center;gap:10px}
.mrow .av{margin-right:0}
.mrow .msub{flex:1;min-width:0;font-size:13px;line-height:18px;color:#aaa}
.mrow .msub div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:4px}
.mrow .msub svg{width:13px;height:13px;flex:none}
.macts{display:flex;align-items:center;gap:14px;color:#f1f1f1;flex:none}
.macts svg{width:22px;height:22px}
.ytm-nav{position:absolute;left:50%;transform:translateX(-50%);bottom:26px;z-index:6;width:342px;height:62px;border-radius:31px;background:rgba(36,36,36,.72);backdrop-filter:blur(22px) saturate(180%);-webkit-backdrop-filter:blur(22px) saturate(180%);box-shadow:inset 0 0 0 .5px rgba(255,255,255,.14),0 8px 30px rgba(0,0,0,.5);display:flex;align-items:center;justify-content:space-around;padding:0 8px}
.nv{width:76px;height:50px;border-radius:25px;display:flex;align-items:center;justify-content:center}
.nv svg{width:26px;height:26px}
.nv.on{background:rgba(255,255,255,.12)}
.nv img{width:28px;height:28px;border-radius:50%;object-fit:cover}
.home-ind{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);width:134px;height:5px;border-radius:3px;background:#fff;z-index:7}

/* ============ TV (YouTube leanback) ============ */
.tv-stage{justify-content:center;align-items:flex-start;padding:28px 24px 48px;min-height:calc(100vh - 52px);background:#050505}
body.fs .tv-stage{min-height:100vh;align-items:center;padding:0}
.tv-fit{position:relative;flex:none;border-radius:6px;overflow:hidden;box-shadow:0 0 0 1px #222,0 30px 80px rgba(0,0,0,.7)}
body.fs .tv-fit{border-radius:0;box-shadow:none}
.tv{position:absolute;left:0;top:0;width:1920px;height:1080px;transform-origin:0 0;background:radial-gradient(1400px 700px at 70% -10%,#1d1d1d 0%,#0f0f0f 60%);display:flex;overflow:hidden}
.tv-rail{width:132px;flex:none;display:flex;flex-direction:column;align-items:center;gap:14px;padding-top:56px}
.tv-ri{width:72px;height:72px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#cfcfcf}
.tv-ri svg{width:38px;height:38px}
.tv-ri.on{background:#f1f1f1;color:#0f0f0f}
.tv-ri.me{margin-top:auto;margin-bottom:56px}
.tv-ri.me img{width:56px;height:56px;border-radius:50%;object-fit:cover}
.tv-main{flex:1;min-width:0;padding:52px 0 0 24px;overflow:hidden}
.tv-top{display:flex;align-items:center;justify-content:space-between;padding-right:72px;height:64px}
.tv-tabs{display:flex;gap:12px}
.tv-tabs span{height:56px;padding:0 26px;border-radius:28px;font-size:26px;line-height:56px;font-weight:500;color:#cfcfcf}
.tv-tabs span.on{background:rgba(255,255,255,.14);color:#fff}
.tv-logo{width:153px;height:34px}
.tv-shelves{margin-top:34px}
.tv-shelf{margin-bottom:30px}
.tv-shelf h4{font-size:30px;font-weight:500;color:#f1f1f1;margin:0 0 20px 4px}
.tv-row{display:flex;gap:32px;padding:8px 6px}
.tvcard{position:relative;width:380px;flex:none;transition:transform .18s}
.tvcard .th{position:relative;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:#272727}
.tvcard .th img{width:100%;height:100%;object-fit:cover}
.tvcard .badge{height:30px;font-size:20px;line-height:30px;padding:0 7px;right:10px;bottom:10px;border-radius:6px}
.tvcard .badge.live svg{width:24px;height:24px}
.tvcard .tt2{margin-top:14px;font-size:23px;line-height:31px;font-weight:500;color:#f1f1f1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tvcard .tm2{margin-top:4px;font-size:20px;line-height:28px;color:#aaa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tvcard.focus{transform:scale(1.06);transform-origin:center top;z-index:2}
.tvcard.focus .th{outline:3px solid #fff;outline-offset:4px;box-shadow:0 16px 40px rgba(0,0,0,.55)}
.tvcard .mv{font-size:20px;height:44px;padding:0 18px;border-radius:22px;top:14px;left:14px}
.tvcard .mv svg{width:24px;height:24px}
.tvcard .you-tag{height:32px;line-height:32px;font-size:15px;padding:0 12px;border-radius:16px;top:14px;left:14px}

/* ============ FULL SCREEN ============ */
body.fs .studio{display:none}
body.fs .ytd{min-height:100vh}
.fs-pill{position:fixed;right:16px;bottom:16px;z-index:200;display:none;align-items:center;gap:8px;height:34px;padding:0 8px 0 14px;border-radius:17px;background:rgba(32,32,32,.88);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:#fff;font-size:13px;font-weight:500;border:1px solid rgba(255,255,255,.14);box-shadow:0 6px 20px rgba(0,0,0,.4);opacity:0;transition:opacity .35s}
.fs-pill kbd{font:500 11px/1 "Roboto",sans-serif;background:rgba(255,255,255,.14);border-radius:4px;padding:4px 6px}
body.fs .fs-pill{display:inline-flex}
body.fs .fs-pill.show{opacity:1}
body.fs.idle{cursor:none}

/* ============ MODAL ============ */
.modal{position:fixed;inset:0;z-index:300;display:flex;align-items:center;justify-content:center;padding:20px}
.modal-bg{position:absolute;inset:0;background:rgba(0,0,0,.6);backdrop-filter:blur(2px)}
.sheet{position:relative;width:520px;max-width:100%;max-height:calc(100vh - 40px);display:flex;flex-direction:column;background:#212121;border-radius:16px;box-shadow:0 24px 80px rgba(0,0,0,.6);font-size:14px}
.sheet-h{display:flex;align-items:center;justify-content:space-between;padding:16px 12px 8px 24px}
.sheet-h h2{font-size:20px;font-weight:500}
.sheet-b{padding:8px 24px 8px;overflow:auto;display:flex;flex-direction:column;gap:14px}
.sheet-f{display:flex;justify-content:flex-end;padding:12px 24px 20px}
.sheet-f .lbtn{height:36px;padding:0 20px;border-radius:18px;font-size:14px}
.f-pfp{display:flex;align-items:center;gap:16px}
.f-pfp img{width:72px;height:72px;border-radius:50%;object-fit:cover;background:#333}
.f-pfp .row{display:flex;gap:8px;margin-top:8px}
.f-lbl{display:block;font-size:12px;font-weight:500;color:#aaa;margin-bottom:6px}
.f-lbl small{font-weight:400;color:#3ea6ff;margin-left:4px}
.f input{width:100%;height:40px;background:#121212;border:1px solid #3a3a3a;border-radius:8px;padding:0 12px;font-size:14px;outline:none}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.presets{display:flex;flex-wrap:wrap;gap:6px;margin-top:-6px}
.presets button{height:28px;padding:0 10px;border-radius:8px;background:rgba(255,255,255,.1);font-size:12px;font-weight:500}
.presets button:hover{background:rgba(255,255,255,.2)}
.presets button.on{background:#f1f1f1;color:#0f0f0f}
.switch-row{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer}
.switch-row small{display:block;color:#777;font-size:12px;margin-top:-2px}
.switch-row input{display:none}
.sw{width:40px;height:22px;border-radius:11px;background:#555;position:relative;flex:none;transition:background .15s}
.sw::after{content:"";position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .15s}
.switch-row input:checked + .sw{background:#3ea6ff}
.switch-row input:checked + .sw::after{transform:translateX(18px)}
.danger{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:10px;background:rgba(255,60,60,.07);border:1px solid rgba(255,80,80,.22)}
.danger b{font-weight:500;display:block}
.danger small{color:#999;font-size:12px}
.danger-btn{background:#3a1515;color:#ff8a8a}
.danger-btn:hover{background:#5a1c1c}
.priv{text-align:center}

.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);z-index:400;background:#f1f1f1;color:#0f0f0f;font-size:14px;font-weight:500;padding:10px 16px;border-radius:8px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;box-shadow:0 8px 24px rgba(0,0,0,.4)}
.toast.show{opacity:1;transform:translate(-50%,0)}
.drop-veil{position:fixed;inset:0;z-index:250;display:none;align-items:center;justify-content:center;background:rgba(15,15,15,.75);backdrop-filter:blur(3px)}
.drop-veil div{display:flex;flex-direction:column;align-items:center;gap:10px;padding:36px 48px;border:2px dashed #888;border-radius:18px;font-size:18px;font-weight:500}
.drop-veil svg{width:40px;height:40px}
body.dragging .drop-veil{display:flex}

/* ============ RESPONSIVE (tool chrome) ============ */
@media (max-width:1180px){
  .sbtn span{display:none}.sbtn{width:34px;padding:0;justify-content:center}.sbtn kbd{display:none}
  .chan-chip span{max-width:90px}
}
/* ---- tablets & phones: studio panel ---- */
@media (max-width:900px){
  .st-body{grid-template-columns:1fr 1fr;height:auto}
  .st-col{border-right:0;border-bottom:1px solid #232323;max-height:340px}
  .col-thumbs{border-right:1px solid #232323}
  .col-combo{grid-column:1 / -1}
  body:not(.dzoom) .ytd-center{margin:0 12px}
  body:not(.dzoom) .ask{display:none}
  body:not(.dzoom) .ytd-start{width:auto}
  body:not(.dzoom) .ytd-end{width:auto}
  /* comfortable tap targets + no iOS zoom on focus */
  .lbtn{height:36px;padding:0 12px;border-radius:18px;font-size:13px}
  .lbtn.wide{height:40px;border-radius:20px}
  .sbtn,.sbtn.icon{height:40px;min-width:40px;border-radius:20px}
  .seg button{height:36px}
  .title-add input,.title-add .lbtn{height:40px}
  .title-add input,.bulk textarea,.f input,.combo-slot select{font-size:16px}
  .combo-slot select{height:36px;padding:0 8px}
  .tl{min-height:40px}
  .pr{height:40px}
  .pr img{width:52px;height:29px}
  .presets button{height:34px;padding:0 12px}
}
@media (hover:none){
  .tl .acts{opacity:1}
  .tl .cc{display:none}
  .tl{padding-right:64px}
  .tl .acts button{width:30px;height:30px}
  .tt .x,.pr .x{opacity:1}
  .tt .x{width:24px;height:24px}
  .card.tap .mv,.mcard.tap .mv,.tvcard.tap .mv{opacity:1;transform:none;pointer-events:auto}
}
@media (max-width:640px){
  .st-body{grid-template-columns:1fr}
  .col-thumbs{border-right:0}
  .st-col{max-height:none;padding:12px 14px}
  .tray{max-height:200px}
  .title-list{max-height:220px}
  .st-bar{height:auto;flex-wrap:wrap;padding:8px 12px;gap:8px}
  .st-brand-t{display:none}
  .seg{margin-left:auto;flex:1;max-width:260px}
  .seg button{flex:1;padding:0 8px}
  .st-actions{width:100%;justify-content:flex-end;gap:8px}
  .chan-chip{display:none}
  #btnCollapse{width:auto;padding:0 14px 0 10px;gap:4px;margin-right:auto;order:-1}
  #btnCollapse .clabel{display:inline}
  #btnFull span,#btnFull kbd,#btnShuffle span,#btnSettings span{display:none}
  /* collapsed on a phone: one slim row */
  body.collapsed .st-actions{width:auto;margin-left:0}
  body.collapsed #btnShuffle,body.collapsed #btnSettings{display:none}
  body.collapsed #btnCollapse{order:0;margin-right:0}
  body.collapsed .seg{max-width:none}
  /* native full-bleed Mobile feed: page scrolls, header sticks, nav floats */
  body.mode-mobile .ytm-stage{padding:0;background:#0f0f0f;min-height:0}
  body.mode-mobile .phone{width:100%;height:auto;padding:0;border-radius:0;background:none;box-shadow:none;transform:none!important}
  body.mode-mobile .phone-screen{width:100%;height:auto;border-radius:0;overflow:visible}
  body.mode-mobile .ytm-scroll{position:static;overflow:visible}
  body.mode-mobile .ytm-list{padding-bottom:24px}
  body.mode-mobile .ios-status,body.mode-mobile .home-ind{display:none}
  body.mode-mobile .ytm-nav{position:sticky;left:auto;transform:none;margin:0 auto;bottom:max(14px,env(safe-area-inset-bottom));width:calc(100% - 40px);max-width:390px}
  body.mode-mobile .ytm-stage .phone-screen::after{content:"";display:block;height:14px}
  .tv-stage{padding:12px 8px;min-height:0}
  .grid2{grid-template-columns:1fr}
  /* modals become bottom sheets */
  .modal{padding:0;align-items:flex-end}
  .sheet{width:100%;max-height:92vh;max-height:92dvh;border-radius:16px 16px 0 0}
  .sheet-h{padding:14px 8px 6px 18px}
  .sheet-b{padding:8px 18px}
  .sheet-f{padding:10px 18px calc(14px + env(safe-area-inset-bottom));border-top:1px solid #2e2e2e}
  .toast{bottom:calc(160px + env(safe-area-inset-bottom));max-width:calc(100% - 32px);text-align:center}
}
/* ============ v3: split layout (desktop screen + Mobile view) ============ */
.clabel{display:none}
.tools-tab{display:none}
body.split .studio{position:fixed;left:0;top:0;bottom:0;width:392px;overflow-y:auto;overflow-x:hidden;border-bottom:0;border-right:1px solid #2a2a2a;scrollbar-width:thin;scrollbar-color:#3a3a3a transparent;transition:transform .22s ease}
body.split #stage{margin-left:392px;transition:margin-left .22s ease}
body.split .st-bar{position:relative;flex-wrap:wrap;height:auto;padding:14px 16px 12px;gap:12px}
body.split .st-brand{width:100%;padding-right:120px}
body.split .seg{margin-left:0;width:100%}
body.split .seg button{flex:1}
body.split .st-actions{width:100%;margin-left:0;flex-wrap:wrap;gap:8px}
body.split .st-actions .sbtn span{display:inline}
body.split .st-actions .sbtn{width:auto;padding:0 12px}
body.split .st-actions .sbtn kbd{display:inline}
body.split .chan-chip{flex:1;min-width:0;max-width:none}
body.split #btnShuffle{flex:1;justify-content:center}
body.split #btnFull{flex:1;justify-content:center}
body.split #btnCollapse{position:absolute;top:14px;right:16px;width:auto;padding:0 12px 0 8px;gap:4px}
body.split #btnCollapse svg{transform:rotate(-90deg)}
body.split #btnCollapse .clabel{display:inline}
body.split .st-body{grid-template-columns:1fr;height:auto}
body.split .st-col{border-right:0;border-bottom:1px solid #232323;padding:14px 16px}
body.split .st-col:last-child{border-bottom:0;padding-bottom:84px}
body.split .tray{max-height:236px;grid-template-columns:repeat(auto-fill,minmax(104px,1fr))}
body.split .title-list{max-height:250px}
body.split .pairs{max-height:none}
body.split .ytm-stage{min-height:100vh;align-items:center;padding:24px}
body.split .phone{transform-origin:center center}
/* collapsed split: sidebar slides away, phone re-centers */
body.split.collapsed .st-body{display:grid}
body.split.collapsed .studio{transform:translateX(-100%)}
body.split.collapsed #stage{margin-left:0}
body.split.collapsed .tools-tab{display:inline-flex}
.tools-tab{position:fixed;left:16px;top:16px;z-index:120;align-items:center;gap:4px;height:38px;padding:0 14px 0 8px;border-radius:19px;background:#f1f1f1;color:#0f0f0f;font-size:13px;font-weight:500;box-shadow:0 6px 20px rgba(0,0,0,.45)}
.tools-tab svg{width:20px;height:20px}
.tools-tab:hover{background:#fff}

/* ============ v3: floating Randomize ============ */
.rand-fab{position:fixed;right:20px;bottom:20px;z-index:190;display:inline-flex;align-items:center;gap:8px;height:48px;padding:0 20px 0 16px;border-radius:24px;background:#ff0033;color:#fff;font-size:15px;font-weight:500;letter-spacing:.2px;box-shadow:0 8px 28px rgba(255,0,51,.35),0 4px 12px rgba(0,0,0,.45);transition:transform .12s,background .12s,opacity .35s}
.rand-fab svg{width:22px;height:22px}
.rand-fab:hover{background:#ff1a47;transform:translateY(-1px)}
.rand-fab:active{transform:scale(.97)}
/* full screen: fade with the controls pill, pill stacks above it */
body.fs .rand-fab{opacity:0;pointer-events:none}
body.fs .rand-fab.show{opacity:1;pointer-events:auto}
body.fs .fs-pill{bottom:80px;right:20px}
.toast{bottom:84px}
@media (max-width:640px){
  .rand-fab{right:14px;bottom:calc(92px + env(safe-area-inset-bottom));height:44px;font-size:14px;padding:0 16px 0 12px}
  body.fs .fs-pill{right:14px;bottom:calc(146px + env(safe-area-inset-bottom))}
}

/* ============ v3: YOUR VIDEO tag flashes on change, fades after 2s, returns on hover ============ */
.you-tag{opacity:0;transition:opacity .35s ease;pointer-events:none}
.you-tag.flash{opacity:1;transition:none}
.card.is-user:hover .you-tag,.mcard.is-user:hover .you-tag,.tvcard.is-user:hover .you-tag{opacity:1;transition:opacity .15s ease}

/* ============ v5: phone locked dead-center, scaled to fit, no outer scroll ============ */
body.split,body.fs.mode-mobile{overflow:hidden}
body.split .ytm-stage,body.fs.mode-mobile .ytm-stage{position:relative;display:block;height:100vh;height:100dvh;min-height:0;padding:0;overflow:hidden}
body.split .phone,body.fs.mode-mobile .phone{position:absolute;left:50%;top:50%;transform-origin:center center;transform:translate(-50%,-50%);margin:0!important}
@media (max-width:640px){
  body.fs.mode-mobile .ytm-stage{height:auto}
  body.fs.mode-mobile .phone{position:static}
}

/* ============ v6: phone overrides that must come last ============ */
@media (max-width:640px){
  body.fs.mode-mobile{overflow:visible;overflow-x:hidden}
  body.fs.mode-mobile .ytm-stage{height:auto;overflow:visible;padding:0}
  body.fs.mode-mobile .phone{position:static;transform:none!important}
}
.combo-slot{flex-wrap:wrap;row-gap:6px}
@media (max-width:640px){.combo-thumb{width:120px}}
