.direct-banner-progress{
  position:absolute;
  left:14px;
  right:14px;
  bottom:14px;
  z-index:999;
  border-radius:999px;
  background:rgba(15,23,42,.82);
  color:#fff;
  padding:8px 12px;
  box-shadow:0 16px 40px rgba(15,23,42,.24);
  overflow:hidden;
  font-size:12px;
  font-weight:900;
}
.direct-banner-progress.hidden{display:none!important}
.direct-banner-progress span{position:relative;z-index:2}
.direct-banner-progress b{
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  display:block;
  background:linear-gradient(135deg,#2563eb,#ec4899);
  opacity:.82;
  transition:width .18s ease;
}
[data-direct-banner-pick]{cursor:pointer}
[data-banner-reposition-host][data-banner-reposition-mode="1"]{
  outline:3px dashed rgba(37,99,235,.72);
  outline-offset:-8px;
}
[data-banner-reposition-host][data-banner-reposition-mode="1"]::after{
  content:"Move banner up/down live. Release to save.";
  position:absolute;
  inset:auto auto 14px 50%!important;
  left:50%;
  bottom:14px;
  transform:translateX(-50%);
  z-index:998;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(15,23,42,.84);
  color:#fff;
  font-weight:900;
  font-size:12px;
  pointer-events:none;
}
@media(max-width:760px){
  .direct-banner-progress{left:10px;right:10px;bottom:10px}
  [data-banner-reposition-host][data-banner-reposition-mode="1"]::after{
    inset:auto 10px 10px 10px!important;
    left:10px;
    right:10px;
    transform:none;
    text-align:center;
  }
}

/* Facebook-style banner menu: Upload photo / Reposition / Remove */
.banner-fb-wrap{position:relative;display:inline-flex;align-items:center}
.banner-fb-menu{
  position:fixed;
  top:calc(100% + 8px);
  right:0;
  min-width:210px;
  max-height:none;
  overflow:visible;
  display:none;
  flex-direction:column;
  gap:4px;
  padding:8px;
  border-radius:14px;
  background:rgba(24,25,26,.96);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 18px 42px rgba(0,0,0,.28);
  z-index:2147483600;
  backdrop-filter:blur(10px);
}
.banner-fb-menu.is-open{display:flex}
.banner-fb-menu[hidden],
.banner-fb-menu[aria-hidden="true"],
.banner-fb-menu:not(.is-open){
  display:none!important;
  pointer-events:none!important;
}
.banner-fb-menu button{
  width:100%;
  border:0;
  border-radius:8px;
  padding:10px 12px;
  background:transparent;
  color:#fff;
  text-align:left;
  font-weight:800;
  cursor:pointer;
}
.banner-fb-menu button:hover{background:rgba(255,255,255,.11)}
.direct-banner-library{
  position:fixed;
  inset:0;
  z-index:2147483647!important;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(15,23,42,.54);
  backdrop-filter:blur(8px);
  isolation:isolate;
  pointer-events:auto;
}
.direct-banner-library[hidden],
.direct-banner-library.hidden,
.direct-banner-library[aria-hidden="true"],
.direct-banner-library:not(.is-open){
  display:none!important;
  pointer-events:none!important;
}
.direct-banner-library-panel{
  width:min(860px,96vw);
  max-height:min(760px,88vh);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border-radius:16px;
  background:#fff;
  color:#0f172a;
  box-shadow:0 24px 80px rgba(15,23,42,.32);
}
.direct-banner-library-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
  border-bottom:1px solid rgba(148,163,184,.26);
}
.direct-banner-library-head strong{
  display:block;
  font-size:16px;
  line-height:1.2;
}
.direct-banner-library-head span{
  display:block;
  margin-top:3px;
  color:#64748b;
  font-size:12px;
  font-weight:700;
}
.direct-banner-library-close{
  width:34px;
  height:34px;
  border:0;
  border-radius:999px;
  background:#0f172a;
  color:#fff;
  font-size:17px;
  font-weight:900;
  line-height:1;
  cursor:pointer;
}
.direct-banner-library-status{
  padding:10px 16px 0;
  color:#475569;
  font-size:12px;
  font-weight:900;
}
.direct-banner-library-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(132px,1fr));
  gap:10px;
  padding:14px 16px 16px;
  overflow:auto;
}
.direct-banner-library-choice{
  display:flex;
  flex-direction:column;
  gap:5px;
  min-width:0;
  border:1px solid rgba(148,163,184,.28);
  border-radius:12px;
  padding:7px;
  background:#fff;
  color:#0f172a;
  text-align:left;
  cursor:pointer;
  box-shadow:0 10px 26px rgba(15,23,42,.08);
}
.direct-banner-library-choice:hover{
  border-color:#2563eb;
  box-shadow:0 14px 32px rgba(37,99,235,.16);
}
.direct-banner-library-choice img{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  border-radius:8px;
  background:#e2e8f0;
}
.direct-banner-library-choice span,
.direct-banner-library-choice small{
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.direct-banner-library-choice span{
  font-size:12px;
  font-weight:900;
}
.direct-banner-library-choice small{
  color:#64748b;
  font-size:11px;
  font-weight:800;
}
.direct-banner-progress{
  position:absolute;
  left:14px;
  right:14px;
  bottom:14px;
  z-index:2147480900;
  border-radius:999px;
  background:rgba(15,23,42,.84);
  color:#fff;
  padding:8px 12px;
  overflow:hidden;
  font-size:12px;
  font-weight:900;
  box-shadow:0 16px 40px rgba(15,23,42,.24)
}
.direct-banner-progress.hidden{display:none!important}
.direct-banner-progress span{position:relative;z-index:2}
.direct-banner-progress b{position:absolute;left:0;top:0;bottom:0;background:linear-gradient(135deg,#2563eb,#ec4899);opacity:.82;transition:width .18s ease}
[data-banner-reposition-host]{position:relative}
[data-banner-reposition-host][data-banner-reposition-mode="1"]{touch-action:none!important;cursor:ns-resize;outline:3px dashed rgba(37,99,235,.72);outline-offset:-8px}
[data-banner-reposition-host][data-banner-reposition-mode="1"] .profile-media-owner-actions-banner{display:none!important}
[data-banner-reposition-host][data-banner-reposition-mode="1"]::after{
  content:"Drag banner up/down, then Save.";
  position:absolute;
  inset:auto auto 16px 50%!important;
  left:50%;
  bottom:16px;
  transform:translateX(-50%);
  z-index:2147480800;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(15,23,42,.86);
  color:#fff;
  font-size:12px;
  font-weight:900;
  pointer-events:none;
}
.banner-reposition-savebar{
    position: absolute;
    right: 14px;
    top: 90px;
    z-index: 2147481100;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    background: #000000;
    padding: 12px;
    border-radius: 52px;
}
.banner-reposition-savebar.hidden{display:none!important}
.banner-reposition-savebar button{
  border:0;
  border-radius:999px;
  padding:10px 14px;
  font-weight:900;
  font-size:13px;
  box-shadow:0 10px 28px rgba(15,23,42,.18);
  cursor:pointer;
}
.banner-reposition-savebar .banner-save-btn{background:#0f172a;color:#fff}
.banner-reposition-savebar .banner-cancel-btn{background:rgba(255,255,255,.94);color:#0f172a}
.banner-mobile-arrows{display:none;gap:8px}
.banner-mobile-arrows button{background:#2563eb;color:#fff}
.video-channel-crop-btn[data-vc-crop-toggle]{display:none!important}
@media(max-width:760px){
  .banner-fb-menu{min-width:190px}
  [data-banner-reposition-host][data-banner-reposition-mode="1"]::after{content:"Use Up/Down, then Save.";inset:auto 10px 10px 10px!important;left:10px;right:10px;bottom:10px;transform:none;text-align:center}
  .banner-reposition-savebar{left:10px;right:10px;top:10px;justify-content:flex-end}
  .banner-mobile-arrows{display:flex}
  .banner-reposition-savebar button{min-height:38px;padding:9px 12px;font-size:12px}
}
