/* SunVibe v0.30 — interface adaptée à tous les téléphones */
.yu-ic{width:1em;height:1em;display:inline-block;vertical-align:-.15em;flex:0 0 auto}
.cam-tool-icon .yu-ic,.creator-tool b .yu-ic,.sv-post-montage-action b .yu-ic,.sv-post-editor-btn b .yu-ic{width:22px;height:22px}
.yu-lead{display:inline-flex;margin-right:6px;font-style:normal}
.yu-lead .yu-ic{width:16px;height:16px}

/* ---------- barre du haut du fil : 2 lignes nettes ---------- */
#view-feed header.topbar.yt{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:7px!important;height:auto!important;min-height:0!important;grid-template-columns:none!important;
  padding:calc(env(safe-area-inset-top,0px) + 8px) 10px 10px!important;background:linear-gradient(180deg,rgba(0,0,0,.62),rgba(0,0,0,.28) 70%,transparent)!important;border:0!important;box-shadow:none!important}
#view-feed header.topbar.yt>.brand-live-stack,#view-feed header.topbar.yt>.top-right,#view-feed header.topbar.yt>.brand,#view-feed header.topbar.yt>.brand-ic{display:none!important}
#view-feed .yt-r1{display:flex;align-items:center;gap:8px;min-width:0;width:100%}
#view-feed .yt-r1 .feed-live-entry{flex:0 0 auto;height:30px!important;min-width:0!important;padding:0 10px!important;border:0!important;border-radius:9px!important;background:#ff2e63!important;font-size:11.5px!important;gap:5px!important;box-shadow:0 2px 10px rgba(255,46,99,.35)}
#view-feed .yt-r1 .feed-live-entry .live-dot{background:#fff!important;box-shadow:none!important;width:6px!important;height:6px!important}
#view-feed .yt-r1 .feed-tabs{flex:1 1 auto!important;min-width:0!important;width:auto!important;margin:0!important;padding:0!important;display:flex!important;justify-content:safe center!important;gap:2px!important;overflow-x:auto!important;scrollbar-width:none;background:transparent!important;border:0!important;box-shadow:none!important;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 8px,#000 calc(100% - 8px),transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 8px,#000 calc(100% - 8px),transparent 100%)}
#view-feed .yt-r1 .feed-tabs::-webkit-scrollbar{display:none}
#view-feed .yt-r1 .feed-tabs .ftab{flex:0 0 auto!important;height:32px!important;padding:0 11px!important;font-size:15px!important;background:transparent!important;color:rgba(255,255,255,.68)!important;box-shadow:none!important;border-radius:0!important;position:relative}
#view-feed .yt-r1 .feed-tabs .ftab.active{color:#fff!important}
#view-feed .yt-r1 .feed-tabs .ftab.active::after{content:"";position:absolute;left:50%;bottom:1px;width:22px;height:3px;border-radius:2px;transform:translateX(-50%);background:#fff!important}
#view-feed .yt-r2 #btn-search{flex:0 0 auto;width:32px!important;height:32px!important;margin:0!important;padding:0!important;border-radius:50%!important;background:rgba(0,0,0,.38)!important;display:grid!important;place-items:center;position:static!important}
#view-feed .yt-r2 #btn-search svg{width:18px;height:18px}
#view-feed .sound-btn{top:calc(env(safe-area-inset-top,0px) + 100px)!important;left:12px!important;right:auto!important;width:40px!important;height:40px!important}
#view-feed .yt-r2{display:flex;align-items:center;gap:7px;overflow-x:auto;scrollbar-width:none;width:100%}
#view-feed .yt-r2::-webkit-scrollbar{display:none}
#view-feed .yt-chip{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px 0 10px;border:0;border-radius:999px;background:rgba(255,255,255,.14);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:#fff;font:inherit;font-size:13px;font-weight:800;cursor:pointer}
#view-feed .yt-chip .yu-ic{width:17px;height:17px}
#view-feed .yt-chip.games .yu-ic{color:#ffc531}
#view-feed .yt-chip.date .yu-ic{color:#ff2e63}
#view-feed .yt-chip.foot .yu-ic{color:#5fe39a}
#view-feed .yt-chip:active{transform:scale(.96)}
#view-feed .yt-r2 .quality.yt-q{display:inline-flex!important;flex:0 0 auto;margin-left:auto!important;height:30px!important;min-width:44px;padding:0 10px!important;border-radius:999px!important;background:rgba(0,0,0,.38)!important;font-size:12px!important;align-items:center;justify-content:center;position:static!important}
@media (max-width:360px){
  #view-feed .yt-r1 .feed-tabs .ftab{padding:0 8px!important;font-size:14px!important}
  #view-feed .yt-r1 .feed-live-entry{padding:0 8px!important}
  #view-feed .yt-chip{height:28px;font-size:12px;padding:0 10px 0 8px}
}

/* ---------- montage : outils toujours accessibles, quel que soit l'écran ---------- */
.creator-preview .creator-rail{top:calc(env(safe-area-inset-top,0px) + 76px)!important;bottom:calc(env(safe-area-inset-bottom,0px) + 92px)!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden;justify-content:flex-start;gap:12px!important;padding:2px 2px 8px;scrollbar-width:none;right:8px!important}
.creator-preview .creator-rail::-webkit-scrollbar{display:none}
.creator-preview .creator-tool{flex:0 0 auto}
.creator-preview .creator-tool b{width:44px!important;height:44px!important;font-size:20px!important}
.creator-preview .creator-tool span{font-size:10.5px!important;max-width:64px;text-align:center;line-height:1.15}
.creator-close,.creator-next,.cam-x,#pub-back{z-index:30!important}
.creator-sound{max-width:calc(100% - 150px)!important}
@media (max-height:640px){
  .creator-preview .creator-tool b{width:38px!important;height:38px!important}
  .creator-preview .creator-rail{gap:8px!important}
  .creator-next{bottom:calc(14px + env(safe-area-inset-bottom))!important;padding:11px 20px!important}
}
/* feuilles et panneaux : jamais plus hauts que l'écran visible, en-tête et boutons toujours visibles */
.sheet .sheet-panel,.sv-post-sheet,.publish-sheet{max-height:calc(var(--yu-vh,1vh) * 100 - env(safe-area-inset-top,0px) - 12px)!important;display:flex;flex-direction:column}
.sheet .sheet-panel>.sheet-head,.sv-post-sheet-head{position:sticky;top:0;z-index:3;flex:0 0 auto}
.sheet .sheet-panel>:not(.sheet-head){min-height:0}
#yh-editor{height:calc(var(--yu-vh,1vh) * 100)!important;bottom:auto!important}
#yh-editor .ye-top{position:relative;z-index:5;flex:0 0 auto}
#yh-editor .ye-stage{min-height:120px}
#yh-editor .ye-tabs{flex:0 0 auto}
@media (max-height:640px){ #yh-editor .ye-panel{min-height:96px!important;max-height:30vh!important} #yh-editor .ye-tabs button{padding:6px 0!important;font-size:10.5px!important} }
.creator-shell,.publish-stage,#cam-stage{height:calc(var(--yu-vh,1vh) * 100)!important;bottom:auto!important}
.cam-bottom{padding-bottom:calc(env(safe-area-inset-bottom,0px) + 10px)!important}

/* ---------- fenêtres SunVibe ---------- */
.yu-dlg{position:fixed;inset:0;z-index:100000;background:rgba(0,0,0,.6);display:flex;align-items:center;justify-content:center;padding:22px;opacity:0;transition:opacity .16s}
.yu-dlg.on{opacity:1}
.yu-dlg-in{width:100%;max-width:340px;background:#17171b;border:1px solid #2a2a31;border-radius:22px;padding:22px 20px 18px;color:#fff;text-align:center;transform:scale(.94);transition:transform .16s;box-shadow:0 20px 60px rgba(0,0,0,.6)}
.yu-dlg.on .yu-dlg-in{transform:none}
.yu-dlg-ic{width:48px;height:48px;border-radius:50%;margin:0 auto 10px;display:grid;place-items:center;background:#22222a;color:#ffc531}
.yu-dlg-ic .yu-ic{width:24px;height:24px}
.yu-dlg-ic.ok{background:#10301f;color:#5fe39a}.yu-dlg-ic.warn{background:#3a1520;color:#ff6b8b}
.yu-dlg h3{margin:0 0 6px;font-size:17px;font-weight:900}
.yu-dlg p{margin:0;color:#c9c9cf;font-size:14.5px;line-height:1.45;white-space:pre-line}
.yu-dlg-input{width:100%;height:46px;margin-top:14px;border-radius:12px;border:1px solid #33333a;background:#0e0e11;color:#fff;padding:0 12px;font:inherit;font-size:15px}
.yu-dlg-btns{display:flex;gap:8px;margin-top:18px}
.yu-b{flex:1;height:46px;border:0;border-radius:14px;font:inherit;font-weight:900;font-size:15px;cursor:pointer;color:#fff;background:#26262d}
.yu-b.main{background:linear-gradient(90deg,#ffc531,#ff7a2f 45%,#ff2e63)}
.yu-b.ghost{background:#26262d}
.yu-b.wide{width:100%;flex:none;margin-top:10px}
.yu-b[disabled]{opacity:.45;cursor:default}
.yu-toast{position:fixed;left:50%;top:calc(env(safe-area-inset-top,0px) + 14px);transform:translate(-50%,-20px);z-index:100001;display:flex;align-items:center;gap:8px;padding:10px 16px;border-radius:14px;background:#17171b;border:1px solid #2a2a31;color:#fff;font-weight:800;font-size:14px;opacity:0;transition:.22s;max-width:92vw;width:max-content;white-space:nowrap}
.yu-toast .yu-ic{color:#5fe39a;width:18px;height:18px}
.yu-toast.on{opacity:1;transform:translate(-50%,0)}

/* ---------- monétisation ---------- */
#money-sheet{z-index:3000!important}
#money-sheet.yu-money .sheet-panel{height:calc(var(--yu-vh,1vh) * 92)!important;max-height:calc(var(--yu-vh,1vh) * 92)!important;background:#0f0f12!important}
#money-sheet .sheet-head button .yu-ic{width:22px;height:22px}
#money-sheet .money-body{padding:14px 16px calc(28px + env(safe-area-inset-bottom,0px))!important;gap:0!important;display:block!important}
.yu-bal{border-radius:20px;padding:16px;background:linear-gradient(135deg,#2a1622,#171320 55%,#14202a);border:1px solid #2c2433}
.yu-bal-top{display:flex;align-items:center;gap:8px;color:#d6d6dc;font-size:13px;font-weight:700}
.yu-bal-top .yu-ic{width:18px;height:18px;color:#ffc531}
.yu-ver{margin-left:auto;display:inline-flex;align-items:center;gap:4px;font-style:normal;font-size:11px;color:#5fe39a;background:#10301f;padding:3px 8px;border-radius:20px}
.yu-ver .yu-ic{width:12px;height:12px;color:#5fe39a}
.yu-bal-n{font-size:34px;font-weight:900;margin-top:10px;letter-spacing:-.5px}
.yu-bal-n small{font-size:16px;color:#bbb}
.yu-bal-f{color:#b9b9c0;font-size:14px;margin-top:2px}
.yu-bar{height:8px;border-radius:8px;background:rgba(255,255,255,.1);margin-top:14px;overflow:hidden}
.yu-bar i{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#ffc531,#ff2e63)}
.yu-bar-t{font-size:12px;color:#a9a9b0;margin-top:7px}
.yu-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}
.yu-stats div{background:#17171b;border:1px solid #24242a;border-radius:14px;padding:11px 6px;text-align:center}
.yu-stats b{display:block;font-size:17px}
.yu-stats span{font-size:11px;color:#8e8e95}
.yu-sec{margin:20px 2px 9px;font-size:12px;font-weight:800;color:#9a9aa1;text-transform:uppercase;letter-spacing:.6px}
.yu-methods{display:flex;flex-wrap:wrap;gap:7px}
.yu-meth{height:38px;padding:0 13px;border-radius:12px;border:1px solid #2a2a31;background:#17171b;color:#ddd;font:inherit;font-size:13.5px;font-weight:800;cursor:pointer}
.yu-meth.on{border-color:#ff2e63;background:#2a1220;color:#fff}
.yu-in{width:100%;height:48px;margin-top:10px;border-radius:14px;border:1px solid #2a2a31;background:#0b0b0d;color:#fff;padding:0 14px;font:inherit;font-size:15.5px}
.yu-hist{background:#141417;border:1px solid #222228;border-radius:16px;padding:2px 12px}
.yu-hrow{display:flex;align-items:center;justify-content:space-between;padding:11px 0;border-bottom:1px solid #222228}
.yu-hrow:last-child{border-bottom:0}
.yu-hrow b{display:block;font-size:14px}.yu-hrow small{font-size:12px;color:#8e8e95}
.yu-st{font-size:11.5px;font-weight:800;padding:4px 9px;border-radius:20px;background:#26262d}
.yu-st.ok{background:#10301f;color:#5fe39a}.yu-st.wait{background:#3a2c10;color:#ffc531}.yu-st.bad{background:#3a1520;color:#ff8aa3}
.yu-load{display:flex;justify-content:center;padding:40px}
.yu-load i{width:26px;height:26px;border-radius:50%;border:3px solid #333;border-top-color:#ffc531;animation:yuSpin .8s linear infinite}
@keyframes yuSpin{to{transform:rotate(360deg)}}
.yu-mut{color:#999;text-align:center;padding:20px}
