:root{
  --bg:#0b0f14;
  --panel:#121823;
  --panel2:#0f141d;
  --text:#eaf0ff;
  --muted:#9aa8c7;
  --accent:#ff2d5e;
  --line:rgba(255,255,255,.10);
  --shadow: 0 12px 40px rgba(0,0,0,.35);
  --radius:18px;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 700px at 30% 0%, #18213a 0%, var(--bg) 55%);
  color:var(--text);
}

.page{
  max-width:none;
  margin:0;
  padding:12px 16px 20px 8px;
}

.editorLayout{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.btn{
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color:var(--text);
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  user-select:none;
}
.btn:hover{background:rgba(255,255,255,.10)}

.btn.primary{
  border-color: rgba(255,45,94,.40);
  background: rgba(255,45,94,.16);
}

.btn.small{
  padding:8px 10px;
  font-size:13px;
  border-radius:10px;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.22);
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  color: var(--text);
}

.pill.active{
  border-color: rgba(255,45,94,.35);
  background: rgba(255,45,94,.12);
  box-shadow: 0 0 12px rgba(255,45,94,.18);
}

.muted{color:var(--muted)}
.spacer{flex:1}

.statusLine{
  font-size:12px;
  color: var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:520px;
}

/* ===== Sidebar brand polish ===== */
.sbBrand{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 8px;
  min-height:72px;
  font-size:14px;
  font-weight:900;
  letter-spacing:.8px;
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
}

.sbBrand::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  background: var(--accent);
  animation: brandLivePulse 2s infinite;
  box-shadow:
    0 0 0 4px rgba(255,45,94,.12),
    0 0 16px rgba(255,45,94,.35);
}

@keyframes brandLivePulse{
  0% { transform:scale(1); }
  50% { transform:scale(1.12); }
  100% { transform:scale(1); }
}

/* ===== Pro sidebar polish ===== */
.sbNav{
  display:flex;
  flex-direction:column;
  gap:10px;              /* play here */
  padding:10px 8px 14px; /* play here */
}

.sbBtn{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;               /* play here */
  min-height:74px;       /* main height control */
  padding:10px 6px;      /* play here */
  text-decoration:none;
  color:rgba(235,243,255,.92);
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;    /* play here */
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)),
    rgba(5,10,18,.72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 8px 18px rgba(0,0,0,.16);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.sbBtn:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    rgba(8,14,24,.82);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 14px 30px rgba(0,0,0,.24),
    0 0 18px rgba(255,255,255,.04);
}

.sbBtn.active{
  position:relative;
  border-color: rgba(255, 89, 128, 0.423);
  background:
    linear-gradient(180deg, rgba(255,45,94,.08), rgba(255,45,94,.02)),
    rgba(11,16,28,.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 10px 24px rgba(0,0,0,.28),
    0 0 18px rgba(255,45,94,.12);
  transform: translateY(-1px);
}

.sbIco{
  font-size:24px; /* play here */
  line-height:1;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.20));
}

.sbTxt{
  font-size:11px; /* play here */
  font-weight:700;
  letter-spacing:.2px;
  color:inherit;
}

/* Header */
.editorHeader{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
}

.editorHeaderLeft{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.editorHeaderRight{
  display:flex;
  gap:10px;
  align-items:center;
}

/* Main grid */
.editorMainGrid{
  display:grid;
  grid-template-columns: 1fr 360px;
  gap:10px;
  align-items:start;
}

/* Player */
.videoShell{
  background: rgba(0,0,0,.20);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:8px;
}

.videoStage{
  position:relative;
  width:100%;
  border-radius:14px;
  overflow:hidden;
  background:#000;
  aspect-ratio: 16 / 9;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.06),
    0 20px 60px rgba(0,0,0,.45);
}

#editorVideo{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border-radius:14px;
  background:#000;
  z-index:1;
}

/* Freeze frame image */
#playerFreeze{
  position:absolute;
  inset:0;
  z-index:2;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  pointer-events:none;
  opacity:0;
  transition: opacity 120ms linear;
  background:#000;
}

#playerFreeze[src]{
  opacity:.96;
  transform: scale(1.01);
}

/* Overlay */
.playerOverlay{
  position:absolute;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:10px;
  background: radial-gradient(600px 300px at 50% 35%, rgba(255,255,255,.10), rgba(0,0,0,.55));
  backdrop-filter: blur(2px);
  z-index:3;
  pointer-events:none;
}
.playerOverlay.isOn{display:flex}

.playerOverlay::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.58));
}

.playerOverlay > *{
  position:relative;
  z-index:1;
}

.spinner{
  width:28px;
  height:28px;
  border-radius:999px;
  border:3px solid rgba(255,255,255,.22);
  border-top-color: rgba(255,255,255,.80);
  animation: spin 0.8s linear infinite;
}

@keyframes spin{
  to { transform: rotate(360deg); }
}

.playerOverlayText{
  font-size:12px;
  color: rgba(235,243,255,.92);
}


#playerOverlay.isLoading{
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(4px);
}

#playerOverlay.isLoading::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(420px 220px at 50% 50%, rgba(255,255,255,.06), rgba(0,0,0,.42));
  z-index:0;
}

#playerOverlay.isLoading .playerOverlayText{
  position:relative;
  z-index:2;
  margin-top:46px;
  font-size:13px;
  font-weight:700;
  color: rgba(255,255,255,.96);
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}

#playerOverlay.isLoading::after{
  content:"";
  position:absolute;
  z-index:2;
  width:42px;
  height:42px;
  border-radius:999px;
  border:3px solid rgba(255,255,255,.18);
  border-top-color: rgba(255,255,255,.96);
  animation: liveitSpin 0.8s linear infinite;
  box-shadow: 0 0 18px rgba(255,255,255,.10);
  top:50%;
  left:50%;
  transform: translate(-50%, -62%);
}

.videoStage.isLoading #editorVideo,
.videoStage.isLoading #playerFreeze{
  filter: blur(3px) brightness(.72);
  transform: scale(1.01);
  transition: filter 180ms ease, transform 180ms ease;
}

@keyframes liveitSpin {
  from { transform: translate(-50%, -62%) rotate(0deg); }
  to { transform: translate(-50%, -62%) rotate(360deg); }
}

/* Player toolbar */
.playerToolbar{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:10px;
  flex-wrap:wrap;
}

.playerToolbarV2{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.playerToolbarLeft,
.playerToolbarRight{
  display:flex;
  align-items:center;
  gap:10px;
}

.playerToolbarTimecode{
  flex:1;
  text-align:center;
  font-weight:900;
  letter-spacing:.6px;
  color: rgba(255,255,255,.95);
  font-variant-numeric: tabular-nums;
  user-select:none;
}

/* Right panel */
.rightPanel{
  background: rgba(0,0,0,.20);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.rightPanelHeader{
  padding:12px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}

.rightPanelTitle{
  font-weight:900;
  letter-spacing:.2px;
  margin-bottom:10px;
}

.rightPanelTabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.tabBtn{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
  color: rgba(235,243,255,.88);
  padding:8px 10px;
  border-radius:999px;
  font-size:12px;
  cursor:pointer;
}

.tabBtn.isActive{
  border-color: rgba(255,45,94,.35);
  background: rgba(255,45,94,.12);
}

.rightPanelBody{
  position:relative;
  padding:12px;
  min-height:420px;
}

.searchRow{
  display:flex;
  gap:10px;
  align-items:center;
}

.searchInput{
  flex:1;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
  color: var(--text);
  border-radius: 12px;
  padding:10px 12px;
  outline:none;
}

.searchInput::placeholder{
  color: rgba(154,168,199,.75);
}

.panelEmpty{
  margin-top:18px;
  border:1px dashed rgba(255,255,255,.14);
  border-radius: 16px;
  padding:18px 14px;
  text-align:center;
  color: rgba(235,243,255,.88);
}

.panelEmptyIcon{
  font-size:26px;
  opacity:.9;
  margin-bottom:8px;
}

.panelEmptyTitle{
  font-weight:800;
  margin-bottom:6px;
}

.panelEmptyHint{
  font-size:12px;
  color: rgba(154,168,199,.90);
}

/* Timeline */
.timelineWrap{
  background: rgba(0,0,0,.20);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:8px;
}

.tlAxis{
  position:relative;
  height:36px;
  border-radius:12px;
  overflow:hidden;
  border:1px solid var(--line);
  background: rgba(0,0,0,.18);
  margin-bottom:10px;
}

.tlAxisInner{
  position:absolute;
  inset:0;
  font-size:12px;
  color: rgba(235,243,255,.88);
}

.tlHolder{
  position:relative;
  height:100px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--line);
  background: rgba(0,0,0,.12);
}

.tlCanvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}

.timelineBottomBar{
  display:flex;
  align-items:center;
  justify-content:space-between;

  margin-top:14px;   /* controls distance from slider */
}

/* ===== Shortcut bar (editor help) ===== */
.shortcutBar{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:16px;

  margin-top:10px;

  font-size:12px;
  color:rgba(255,255,255,.55);

  user-select:none;
  pointer-events:none; /* prevents interaction issues */
}

.shortcutBar span{
  display:flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
}

.shortcutBar kbd{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  min-width:22px;
  height:20px;

  padding:0 6px;

  border-radius:6px;

  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.18);

  font-size:11px;
  font-weight:700;
  color:#fff;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 2px 6px rgba(0,0,0,.25);
}

.timelineClipperTime{
  appearance:none;
  -webkit-appearance:none;
  border:1px solid rgba(255,255,255,.12);
  cursor:pointer;
  font-size:18px;
  font-weight:700;
  padding:8px 14px;
  border-radius:14px;
  min-width:80px;
  text-align:center;
  color:#fff;

  margin-top:6px;

  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    rgba(8,14,24,.88);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 6px 14px rgba(0,0,0,.25);

  transition:
    transform .16s ease,
    box-shadow .16s ease,
    border-color .16s ease,
    background .16s ease;
}

.timelineClipperTime:hover{
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 10px 18px rgba(0,0,0,.28);
}

.timelineClipperTime:active{
  transform:translateY(0);
}

.timelineClipperTime:focus-visible{
  outline:none;
  box-shadow:
    0 0 0 2px rgba(255,255,255,.08),
    0 0 0 4px rgba(255,45,94,.20);
}

.timelineWrap{
  position:relative;
}

.tlPlayheadOverlay{
  position:absolute;
  left:12px;
  right:12px;
  top:12px;
  bottom:12px;
  pointer-events:none;
  z-index:30;
}

.tlPlayheadLine{
  position:absolute;
  top:0;
  bottom: calc(100px + 12px); /* trim at end of thumb area */

  width:3px;
  margin-left:-1.5px;
  background:rgba(255,45,94,1);
  box-shadow:0 0 10px rgba(255,45,94,.18);
  display:none;
}

.tlPlayheadCap{
  filter: drop-shadow(0 0 4px rgba(255,45,94,.4));
  position:absolute;
  width:0;
  height:0;

  margin-left:-7px;

  border-left:7px solid transparent;
  border-right:7px solid transparent;
  border-top:12px solid rgba(255,45,94,1);

  top:0;

  display:none;
}

#tlBigTime{
  position:relative;
  z-index:20;
  pointer-events:auto;
  flex:0 0 auto;
}

#tlWindowStart{
  justify-self:start;
}

#tlBtnLive{
  flex:0 0 auto;
  position:relative;
  overflow:hidden;
  border-color: rgba(255,255,255,.16);
  transition:
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

#tlBtnLive:hover{
  transform: translateY(-1px);
}

#tlBtnLive.isLive{
  background: rgba(255,45,94,.14);
  border-color: rgba(255,45,94,.42);
  box-shadow:
    0 0 0 1px rgba(255,45,94,.12) inset,
    0 0 18px rgba(255,45,94,.16);
}

#tlBtnLive.isLive::before{
  content:"";
  display:inline-block;
  width:10px;
  height:10px;
  margin-right:8px;
  border-radius:999px;
  background: var(--accent);
  box-shadow:
    0 0 0 0 rgba(255,45,94,.55),
    0 0 10px rgba(255,45,94,.55);
  animation: livePulse 1.5s ease-out infinite;
  vertical-align:middle;
}

@keyframes livePulse{
  0%{
    transform: scale(1);
    box-shadow:
      0 0 0 0 rgba(255,45,94,.48),
      0 0 10px rgba(255,45,94,.55);
  }
  70%{
    transform: scale(1.06);
    box-shadow:
      0 0 0 10px rgba(255,45,94,0),
      0 0 16px rgba(255,45,94,.35);
  }
  100%{
    transform: scale(1);
    box-shadow:
      0 0 0 0 rgba(255,45,94,0),
      0 0 10px rgba(255,45,94,.35);
  }
}

.bigTime{
  color:#fff;
  font-variant-numeric: tabular-nums;
  font-size:18px;
  font-weight:900;
}

/* Hover popup */
.hoverPop{
  position:fixed;
  width:240px;
  height:150px;
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--line);
  background: rgba(0,0,0,.65);
  box-shadow: var(--shadow);
  display:none;
  z-index:9999;
  pointer-events:none;
}

.hoverPop img{
  width:100%;
  height:120px;
  object-fit:cover;
  display:block;
  background:#000;
}

.hoverPop .hoverTime{
  height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  color: rgba(235,243,255,.92);
  border-top:1px solid rgba(255,255,255,.10);
}

/* Viewport slider */
/* Viewport slider */
.tlViewport{
  margin-top:12px;
  padding:0 8px;
}

.tlViewportTrack{
  position:relative;
  height:18px;
  border-radius:999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)),
    rgba(0,0,0,.24);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    inset 0 -10px 18px rgba(0,0,0,.22);
  overflow:hidden;
}

.tlViewportTrack::before{
  content:"";
  position:absolute;
  left:8px;
  right:8px;
  top:50%;
  height:2px;
  transform:translateY(-50%);
  border-radius:999px;
  background:rgba(255,255,255,.10);
  pointer-events:none;
}

.tlViewportHandle{
  position:absolute;
  top:2px;
  height:12px;
  border-radius:999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.36), rgba(255,255,255,.18));
  border:1px solid rgba(255,255,255,.45);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    0 6px 18px rgba(0,0,0,.32);
  cursor:grab;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.tlViewportHandle:active{
  cursor:grabbing;
  background:
    linear-gradient(180deg, rgba(255,255,255,.46), rgba(255,255,255,.24));
  border-color:rgba(255,255,255,.70);
}

.tlViewportGrip{
  position:absolute;
  top:50%;
  width:18px;
  height:18px;
  transform:translateY(-50%);
  border-radius:999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.95) 0 2px, transparent 3px),
    linear-gradient(180deg, rgba(255,255,255,.26), rgba(255,255,255,.10));
  border:1px solid rgba(255,255,255,.34);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.24),
    0 5px 14px rgba(0,0,0,.30);
  opacity:1;
}

.tlViewportGrip.left{
  left:-3px;
  cursor:ew-resize;
}

.tlViewportGrip.right{
  right:-3px;
  cursor:ew-resize;
}

.tlViewportHandle:hover{
  background:
    linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.22));
  border-color:rgba(255,255,255,.62);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.40),
    0 8px 22px rgba(0,0,0,.38),
    0 0 16px rgba(255,255,255,.05);
}

/* Responsive */
@media (max-width: 1100px){
  .editorMainGrid{grid-template-columns: 1fr}
  .statusLine{max-width: 100%}
}

/* -------- Clip Drawer (right panel) -------- */
.clipDrawer{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.clipDrawerTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.clipDrawerTitle{
  font-weight:900;
  letter-spacing:.2px;
}

.clipDrawerClose{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: rgba(235,243,255,.90);
  width:34px;
  height:34px;
  border-radius:12px;
  cursor:pointer;
  font-weight:900;
}
.clipDrawerClose:hover{ background: rgba(255,255,255,.10); }

.drawerThumb{
  width:100%;
  aspect-ratio: 16 / 9;
  object-fit:cover;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:#000;
}

.drawerSection{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.14);
  border-radius:14px;
  padding:12px;
}

.drawerSectionTitle{
  font-size:12px;
  font-weight:900;
  opacity:.9;
  margin-bottom:10px;
}

.drawerField{ margin-bottom:10px; }
.drawerField:last-child{ margin-bottom:0; }

.drawerLabel{
  font-size:11px;
  color: rgba(154,168,199,.92);
  letter-spacing:.3px;
  margin-bottom:4px;
}

.drawerValue{
  font-size:13px;
  font-weight:800;
  color: rgba(235,243,255,.92);
  word-break: break-word;
}

.drawerActions{
  display:flex;
  gap:10px;
  justify-content:space-between;
  margin-top:4px;
}

.drawerBtn{
  flex:1 1 auto;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: rgba(235,243,255,.90);
  padding:10px 12px;
  border-radius:14px;
  cursor:pointer;
  font-size:12px;
  font-weight:900;
  letter-spacing:.2px;
}

.drawerBtn:hover{ background: rgba(255,255,255,.10); }
.drawerBtn:disabled{ opacity:.55; cursor:not-allowed; }

.drawerBtn.primary{
  border-color: rgba(80,160,255,.35);
}

.drawerBtn.danger{
  border-color: rgba(255,80,80,.35);
}

.drawerStatus{
  font-size:12px;
  color: rgba(154,168,199,.92);
  min-height:16px;
}

/* ===== Added: LIVE under timeline + hint row ===== */
.timelineHintRow{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  min-width:520px;
}

.tlLiveBtn{
  white-space:nowrap;
}

/* ===== Added: Saved clips list (right panel) ===== */
.savedClipsBox{
  margin-top:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.14);
  border-radius:16px;
  padding:10px;
  height:420px;
  overflow:auto;
}

.savedClipsEmpty{
  border:1px dashed rgba(255,255,255,.14);
  border-radius:14px;
  padding:18px 14px;
  text-align:center;
  color: rgba(235,243,255,.88);
}

.savedClipsList{
  display:grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
  margin-top:12px;
}

.savedClipCard{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  border-radius:14px;
  overflow:hidden;
}

.savedClipThumb{
  width:100%;
  aspect-ratio:16 / 9;
  object-fit:cover;
  display:block;
  background:#000;
}

.savedClipBody{
  padding:10px;
}

.savedClipTitle{
  font-size:13px;
  font-weight:800;
  color:rgba(235,243,255,.92);
  line-height:1.2;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-clamp:2;
  overflow:hidden;
  min-height:32px;
}

.savedClipMeta{
  margin-top:6px;
  font-size:12px;
  color:rgba(154,168,199,.90);
}

.savedClipCard{
  position:relative;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.savedClipCard:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 14px 30px rgba(0,0,0,.30);
}

.savedClipThumbWrap{
  position:relative;
  overflow:hidden;
  background:#000;
}

.savedClipProcessingOverlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px;
  background: rgba(6,10,16,.62);
  backdrop-filter: blur(2px);
  z-index:2;
  pointer-events:none;
  opacity:1;
  transition: opacity 220ms ease;

  opacity:1;
  transition:opacity .22s ease;
}

.savedClipProcessingOverlay.is-done{
  opacity:0;
  pointer-events:none;
}

.savedClipProcessingOverlay.is-failed{
  background: rgba(20,8,10,.68);
}

.savedClipProcessingInner{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-align:center;
  padding:14px 12px;
  min-width: 150px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  background: rgba(0,0,0,.22);
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
}

.savedClipSpinner{
  width:30px;
  height:30px;
  border-radius:999px;
  border:3px solid rgba(255,255,255,.20);
  border-top-color: rgba(255,255,255,.92);
  animation: savedClipSpin .8s linear infinite;
}

@keyframes savedClipSpin{
  to{ transform: rotate(360deg); }
}
@keyframes fadeInOverlay{
  from{opacity:0}
  to{opacity:1}
}

.savedClipProcessingTitle{
  font-size:13px;
  font-weight:900;
  color: rgba(235,243,255,.96);
  letter-spacing:.2px;
}

.savedClipProcessingSubtext{
  font-size:12px;
  color: rgba(154,168,199,.96);
  line-height:1.25;
}

.savedClipActions .btn[disabled],
.savedClipActions .btn.is-disabled{
  opacity:.48;
  cursor:not-allowed;
  pointer-events:none;
  box-shadow:none;
}

/* ===== Center modal ===== */
.modalBackdrop{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.6);
  backdrop-filter:blur(6px);
  z-index:100000;
}

.modalBackdrop.isOn{
  display:flex;
}

.modalCard{
  width:500px;
  max-width:90%;
  background:rgba(12,16,22,.96);
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  box-shadow:0 30px 80px rgba(0,0,0,.6);
  overflow:hidden;
}

.modalHeader{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.modalTitle{
  font-weight:900;
}

.modalBody{
  padding:14px;
}

.modalLabel{
  display:block;
  font-size:12px;
  color:rgba(154,168,199,.9);
  margin-bottom:6px;
}

.modalSelect,
.modalInput{
  width:100%;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.25);
  color:var(--text);
  border-radius:12px;
  padding:10px 12px;
  outline:none;
}

.modalFooter{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding:14px;
  border-top:1px solid rgba(255,255,255,.08);
}

.timeJumpCard{
  width:min(360px, calc(100vw - 32px));
  padding:0;
  overflow:hidden;
}

.timeJumpHeader{
  padding:18px 22px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
}

.timeJumpHeader .modalTitle{
  font-size:18px;
  font-weight:900;
}

.timeJumpBodyV2{
  padding:18px 22px 20px;
  display:flex;
  flex-direction:column;
  gap:18px;
}

.timeJumpCalendarHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.timeJumpMonthLabel{
  flex:1;
  text-align:center;
  font-size:20px;
  font-weight:900;
  color:#f3f6ff;
  letter-spacing:.2px;
}

.timeJumpNavBtn{
  width:42px;
  height:42px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:#eef2ff;
  font-size:24px;
  line-height:1;
  cursor:pointer;
  transition:
    transform 120ms ease,
    border-color 120ms ease,
    background 120ms ease;
}

.timeJumpNavBtn:hover{
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.18);
  background:rgba(255,255,255,.07);
}

.timeJumpWeekdays{
  display:grid;
  grid-template-columns:repeat(7, 1fr);
  gap:8px;
  color:rgba(154,168,199,.92);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.4px;
}

.timeJumpWeekdays > div{
  text-align:center;
  padding:6px 0 2px;
}

.timeJumpCalendarGrid{
  display:grid;
  grid-template-columns:repeat(7, 1fr);
  gap:8px;
}

.timeJumpDay{
  position:relative;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  color:#eaf0ff;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
  transition:
    transform 120ms ease,
    border-color 120ms ease,
    background 120ms ease,
    box-shadow 120ms ease;
}

.timeJumpDay:hover{
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
}

.timeJumpDay.isOtherMonth{
  opacity:.34;
}

.timeJumpDay.isToday{
  border-color:rgba(108,60,255,.28);
  box-shadow:0 0 0 1px rgba(108,60,255,.10) inset;
}

.timeJumpDay.isSelected{
  border-color:rgba(255,45,94,.95);
  background:rgba(255,45,94,.22);
  color:#ffffff;
  box-shadow:
    0 0 0 2px rgba(255,45,94,.55) inset,
    0 0 18px rgba(255,45,94,.18);
}

.timeJumpDayMarker{
  position:absolute;
  left:50%;
  bottom:8px;
  width:6px;
  height:6px;
  border-radius:999px;
  transform:translateX(-50%);
  background:var(--accent);
  box-shadow:0 0 8px rgba(255,45,94,.35);
}

.timeJumpTimeSection{
  display:flex;
  align-items:flex-end;
  justify-content:center;
  gap:18px;
  padding-top:6px;
}

.timeJumpTimeWheel{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}

.timeJumpWheelLabel{
  font-size:11px;
  color:rgba(154,168,199,.92);
  text-transform:uppercase;
  letter-spacing:.5px;
  font-weight:800;
}

.timeJumpWheelControl{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  min-width:88px;
}

.timeJumpWheelInput{
  width:88px;
  min-width:88px;
  height:62px;
  padding:0 16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.22);

  display:block;
  box-sizing:border-box;

  color:#f3f6ff;
  font-size:34px;
  font-weight:900;
  letter-spacing:.8px;
  font-variant-numeric:tabular-nums;
  text-align:center;

  outline:none;
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:textfield;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 10px 24px rgba(0,0,0,.18);
}

.timeJumpWheelControl{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  min-width:88px;
}

.timeJumpAmpmWheel .timeJumpWheelValue{
  width:96px;
  min-width:96px;
}

.timeJumpWheelInput::-webkit-outer-spin-button,
.timeJumpWheelInput::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}

.timeJumpWheelInput:focus{
  border-color:rgba(255,45,94,.65);
  box-shadow:
    0 0 0 2px rgba(255,45,94,.18),
    inset 0 1px 0 rgba(255,255,255,.04),
    0 10px 24px rgba(0,0,0,.18);
}

.timeJumpDay.isDisabled{
  opacity:.28;
  cursor:not-allowed;
  pointer-events:none;
}

.timeJumpStepBtn{
  width:52px;
  height:34px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:#eef2ff;
  font-size:20px;
  line-height:1;
  cursor:pointer;
  transition:
    transform 120ms ease,
    border-color 120ms ease,
    background 120ms ease;
}

.timeJumpStepBtn:hover{
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.16);
  background:rgba(255,255,255,.07);
}

.timeJumpWheelValue{
  min-width:88px;
  height:62px;
  padding:0 16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.22);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#f3f6ff;
  font-size:34px;
  font-weight:900;
  letter-spacing:.8px;
  font-variant-numeric:tabular-nums;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 10px 24px rgba(0,0,0,.18);
}

.timeJumpAmpmWheel .timeJumpWheelValue{
  min-width:96px;
  font-size:28px;
}

.timeJumpTimeDivider{
  padding-bottom:54px;
  color:rgba(234,240,255,.82);
  font-size:34px;
  font-weight:900;
}

.timeJumpFooter{
  padding:16px 22px 20px;
  border-top:1px solid rgba(255,255,255,.08);
}

@media (max-width: 760px){
  .timeJumpBodyV2{
    padding:16px 16px 18px;
  }

  .timeJumpCalendarGrid{
    gap:6px;
  }

  .timeJumpDay{
    height:46px;
    border-radius:12px;
    font-size:14px;
  }

  .timeJumpTimeSection{
    gap:12px;
  }

.timeJumpWheelValue,
.timeJumpWheelInput{
  min-width:74px;
  width:74px;
  height:54px;
  font-size:28px;
}

  .timeJumpAmpmWheel .timeJumpWheelValue{
    min-width:84px;
    font-size:24px;
  }

  .timeJumpStepBtn{
    width:46px;
    height:30px;
  }
}

#saveConfirm[disabled]{
  opacity:.4;
  cursor:not-allowed;
}

/* ===== Export Drawer ===== */
.exportDrawer{
  position:absolute;
  inset:0;
  background: rgba(10,14,20,.96);
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  overflow:hidden;
  transform: translateX(110%);
  transition: transform 180ms ease;
  box-shadow: 0 16px 50px rgba(0,0,0,.45);
  z-index:50;
  display:flex;
  flex-direction:column;
}

.exportDrawer.isOpen{
  transform: translateX(0%);
}

.exportDrawerHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 12px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}

.exportDrawerTitle{
  font-weight:900;
  letter-spacing:.2px;
}

.exportDrawerClose{
  padding:6px 9px;
}

.exportDrawerBody{
  padding:12px;
  overflow:auto;
}

.exportLabel{
  display:block;
  font-size:12px;
  color: rgba(154,168,199,.90);
  margin-bottom:6px;
}

.exportSelect,
.exportInput,
.exportTextarea{
  width:100%;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  color: var(--text);
  border-radius:12px;
  padding:10px 12px;
  outline:none;
}

.exportTextarea{
  min-height:110px;
  resize:vertical;
}

.exportSection{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.08);
}

.exportSectionTitle{
  font-weight:800;
  font-size:12px;
  color: rgba(235,243,255,.90);
  margin-bottom:10px;
}

.thumbRow{
  display:flex;
  gap:10px;
  align-items:flex-start;
}

.thumbBox{
  width:150px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.35);
  position:relative;
}

.thumbBox img{
  width:100%;
  height:92px;
  object-fit:cover;
  display:block;
  background:#000;
}

.thumbHint{
  font-size:11px;
  color: rgba(154,168,199,.85);
  padding:8px 10px;
  border-top:1px solid rgba(255,255,255,.08);
}

.thumbActions{
  display:flex;
  flex-direction:column;
  gap:8px;
  flex:1;
}

.thumbUploadBtn{
  position:relative;
  overflow:hidden;
  text-align:center;
}

.thumbUploadBtn input{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}

.genRow{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  border-radius:14px;
  padding:10px;
}

.genTitle{
  font-weight:800;
  font-size:12px;
  color: rgba(235,243,255,.92);
}

.genHint{
  font-size:11px;
}

.socialGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:8px 10px;
}

.socialItem{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.14);
  cursor:pointer;
  user-select:none;
}

.socialItem input{
  accent-color: var(--accent);
}

.socialHiddenLegacy{
  display:none !important;
}

.socialPlatformBlock{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.14);
  border-radius:16px;
  padding:12px;
}

.socialPlatformHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.socialPlatformName{
  font-size:15px;
  font-weight:900;
  color:rgba(235,243,255,.96);
}

.socialPlatformHint{
  margin-top:3px;
  font-size:11px;
  color:rgba(154,168,199,.88);
}

.socialConnectBtn{
  white-space:nowrap;
}

.youtubeChannelGrid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}

.youtubeChannelCard{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  text-align:left;
  padding:10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.035);
  color:var(--text);
  cursor:pointer;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease;
}

.youtubeChannelCard:hover{
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
}

.youtubeChannelCard.isSelected{
  border-color:rgba(255,45,94,.72);
  background:rgba(255,45,94,.12);
  box-shadow:
    0 0 0 1px rgba(255,45,94,.20) inset,
    0 0 18px rgba(255,45,94,.16);
}

.youtubeChannelLogo{
  width:38px;
  height:38px;
  border-radius:999px;
  object-fit:cover;
  background:#111;
  flex:0 0 auto;
}

.youtubeChannelInfo{
  min-width:0;
  flex:1;
}

.youtubeChannelName{
  font-size:13px;
  font-weight:900;
  color:rgba(235,243,255,.96);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.youtubeChannelMeta{
  margin-top:2px;
  font-size:11px;
  color:rgba(154,168,199,.88);
}

.youtubeChannelMenu{
  width:28px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  color:rgba(235,243,255,.78);
  font-size:20px;
  line-height:1;
}

.youtubeChannelMenu:hover{
  background:rgba(255,255,255,.08);
}

.socialComingSoonGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:10px;
}

.socialComingSoon{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.025);
  color:rgba(235,243,255,.50);
  font-size:12px;
  font-weight:800;
}

.socialComingSoon span{
  font-size:10px;
  color:rgba(154,168,199,.70);
}

.exportDrawerFooter{
  padding:12px;
  border-top:1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.18));
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.exportMainBtn{
  white-space:nowrap;
}

.exportFooterNote{
  font-size:11px;
  line-height:1.2;
}

#exportThumbImg.isLoading{
  filter: blur(2px) brightness(.85);
}

/* ===== Save modal ===== */
.saveModalBackdrop{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.60);
  backdrop-filter: blur(6px);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:100000;
}

.saveModalBackdrop.isOn{
  display:flex;
}

.saveModal{
  width:500px;
  max-width:90%;
  background:rgba(12,16,22,.96);
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  box-shadow:0 30px 80px rgba(0,0,0,.6);
  overflow:hidden;
}

.saveModalHeader{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}

.saveModalTitle{
  font-weight:900;
}

.saveModalBody{
  padding:14px;
}

.saveModalFooter{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding:14px;
  border-top:1px solid rgba(255,255,255,.08);
}

#saveConfirm[disabled]{
  opacity:.4;
  cursor:not-allowed;
}

/* =========================================
   Editor transport bar + time jump + live badge
   CLEAN FINAL VERSION
   ========================================= */

.transportBar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.transportLeft,
.transportRight{
  display:flex;
  align-items:center;
  gap:12px;
}

/* Keep wrappers clean so no ghost rail/line appears */
.transportLeft,
.transportRight,
.playerToolbar,
.playerToolbarV2,
.transportBar{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.transportMid,
.playerToolbarTimecode{
  flex:1;
  text-align:center;
  font-variant-numeric: tabular-nums;
  font-weight:900;
  letter-spacing:.6px;
  color:rgba(255,255,255,.95);
  user-select:none;
}

.iconBtn{
  width:40px;            /* main button size */
  height:40px;
  border-radius:12px;    /* corner roundness */
  font-size:16px;        /* icon size */

  display:flex;
  align-items:center;
  justify-content:center;

  border:1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)),
    rgba(8,14,24,.85);

  color:rgba(235,243,255,.92);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 6px 14px rgba(0,0,0,.25);

  transition:
    transform 120ms ease,
    border-color 120ms ease,
    background 120ms ease,
    box-shadow 120ms ease;
}

.iconBtn:hover{
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border-color: rgba(255,255,255,.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 10px 28px rgba(0,0,0,.34);
}

.iconBtn:active{
  transform: translateY(0);
}

#btnStepBack,
#btnStepFwd{
  font-size:30px;
  letter-spacing:-1px;
}

#tlBtnMute{
  font-size:24px;
}

.timecodeBtn,
.bigTimeBtn{
  min-width:170px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color:#fff;
  font-variant-numeric: tabular-nums;
  font-size:20px;
  font-weight:900;
  letter-spacing:.5px;
  text-align:center;
}

.bigTimeBtn{
  cursor:pointer;
  position:relative;
  z-index:20;
  pointer-events:auto;
}

.bigTimeBtn:hover{
  border-color: rgba(255,255,255,.65);
  background: rgba(255,255,255,.05);
}

/* ===== Time jump modal ===== */
.modalBackdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modalBackdrop[hidden]{ display:none !important; }
.modalBackdrop:not([hidden]){ display:flex; }

.modalCard{
  width: min(520px, calc(100vw - 24px));
  border-radius: 18px;
  background: rgba(15,18,28,.96);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
  padding: 14px;
}

.modalHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.modalTitle{
  font-weight:900;
  font-size:16px;
}

.modalBody{
  padding:6px 2px 10px;
}

.modalFooter{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding-top:8px;
}

/* ===== Current user chip ===== */
.currentUserChip{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  border-radius:16px;
  box-shadow: var(--shadow);
  min-width:220px;
}

.currentUserText{
  display:flex;
  flex-direction:column;
  min-width:0;
}

.currentUserEmail{
  font-size:12px;
  font-weight:800;
  color:var(--text);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:280px;
}

.currentUserRole{
  font-size:11px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.4px;
}

.is-hidden{
  display:none !important;
}

/* ===== Sign in page ===== */
.signinPage{
  min-height:100vh;
  display:grid;
  grid-template-columns: 430px 1fr;
  background:
    radial-gradient(900px 560px at 0% 0%, rgba(122,92,255,.18), transparent 58%),
    radial-gradient(1100px 820px at 100% 100%, rgba(255,68,120,.14), transparent 52%),
    linear-gradient(180deg, #070c15 0%, #0a1019 100%);
}

.signinLeft{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
  border-right:1px solid rgba(255,255,255,.06);
}

.signinCard{
  width:100%;
  max-width:336px;
}

.signinCardPro{
  padding:8px 0;
}

.signinEyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:18px;
  padding:7px 11px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.09);
  background:rgba(255,255,255,.04);
  color:#9aa8c7;
  font-size:11px;
  font-weight:800;
  letter-spacing:.7px;
  text-transform:uppercase;
}

.signinTitle{
  font-size:22px;
  font-weight:900;
  margin:0 0 10px;
}

.signinTitlePro{
  font-size:44px;
  line-height:.98;
  letter-spacing:-1.2px;
  margin:0 0 14px;
}

.signinSub{
  color:var(--muted);
  line-height:1.45;
  margin-bottom:18px;
}

.signinSubPro{
  font-size:17px;
  line-height:1.55;
  color:rgba(234,240,255,.74);
  margin-bottom:26px;
  max-width:32ch;
}

.signinField{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:14px;
}

.signinInput{
  width:100%;
  padding:13px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.24);
  color:var(--text);
  outline:none;
  font-size:14px;
}

.signinInputPro{
  padding:15px 16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 8px 28px rgba(0,0,0,.22);
}

.signinInput:focus{
  border-color: rgba(170,104,255,.55);
  box-shadow:
    0 0 0 3px rgba(157,92,255,.10),
    0 10px 30px rgba(80,40,180,.18);
}

.signinBtnPro{
  width:100%;
  padding:14px 16px !important;
  font-weight:900;
  border-radius:16px;
  background:
    linear-gradient(90deg, #6c3cff 0%, #7d40ff 45%, #ff4f86 100%);
  border:0;
  box-shadow:
    0 10px 26px rgba(108,60,255,.26),
    0 6px 14px rgba(255,79,134,.14);
}

.signinBtnPro:hover{
  transform:translateY(-1px);
  filter:brightness(1.04);
}

.signinError{
  min-height:18px;
  margin-top:10px;
  color:#ff9db1;
  font-size:12px;
  font-weight:700;
}

.signinMetaRow{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.07);
}

.signinMetaItem{
  display:flex;
  align-items:center;
  gap:10px;
  color:rgba(234,240,255,.64);
  font-size:12px;
  font-weight:600;
}

.signinDot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:linear-gradient(180deg, #9a67ff, #ff5b8b);
  box-shadow:0 0 12px rgba(154,103,255,.35);
  flex:0 0 auto;
}

.signinVisual{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:30px 34px;
}

.signinVisualInner{
  width:min(1000px, 100%);
  height:min(86vh, 820px);
  border-radius:36px;
  position:relative;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 15% 15%, rgba(120,88,255,.18), transparent 16%),
    radial-gradient(circle at 85% 78%, rgba(255,76,116,.14), transparent 18%),
    linear-gradient(135deg, #07101f 0%, #081225 40%, #06102a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 28px 90px rgba(0,0,0,.42);
}

.signinVisualInnerPro::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 60% 50%, rgba(67,95,255,.08), transparent 26%),
    radial-gradient(circle at 30% 80%, rgba(255,78,122,.05), transparent 24%);
  pointer-events:none;
}

.signinGlow{
  position:absolute;
  border-radius:999px;
  filter:blur(70px);
  opacity:.28;
  pointer-events:none;
}

.signinGlowA{
  width:340px;
  height:340px;
  background:#6f4cff;
  top:-60px;
  left:-40px;
}

.signinGlowB{
  width:320px;
  height:320px;
  background:#ff4f86;
  right:-60px;
  bottom:-70px;
}

.signinFlowScene{
  position:absolute;
  inset:36px 34px 150px 34px;
  pointer-events:none;
}

.signinFlowPlayer{
  position:absolute;
  left:38px;
  top:42px;
  width:min(720px, 72%);
  border-radius:28px;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(8,12,24,.94), rgba(6,10,20,.92));
  box-shadow:
    0 24px 70px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.03);
  overflow:hidden;
  animation: flowFloatA 7s ease-in-out infinite;
}

.signinFlowPlayerTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px 12px;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.signinLiveBadge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 11px;
  border-radius:999px;
  background:rgba(255,60,95,.10);
  border:1px solid rgba(255,90,120,.18);
  color:#ffd7df;
  font-size:11px;
  font-weight:900;
  letter-spacing:.6px;
}

.signinLiveBadge .dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:#ff4f86;
  box-shadow:0 0 0 4px rgba(255,79,134,.18);
  animation: livePulse 1.4s ease-in-out infinite;
}

.signinFlowPlayerMeta{
  color:rgba(234,240,255,.58);
  font-size:12px;
  font-weight:700;
}

.signinFlowVideo{
  position:relative;
  height:280px;
  background:
    radial-gradient(circle at 25% 25%, rgba(134,84,255,.22), transparent 20%),
    radial-gradient(circle at 82% 68%, rgba(255,84,126,.18), transparent 24%),
    linear-gradient(135deg, #0d1630 0%, #0a1634 36%, #0c1223 100%);
  overflow:hidden;
}

.signinFlowVideo::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  background:
    linear-gradient(130deg, rgba(130,82,255,.16), transparent 35%),
    linear-gradient(180deg, transparent 0%, transparent 62%, rgba(0,0,0,.30) 100%);
  pointer-events:none;
}

.signinFlowVideo::after{
  content:"";
  position:absolute;
  inset:18px 18px auto auto;
  width:180px;
  height:180px;
  border-radius:24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  transform:rotate(18deg);
  opacity:.35;
  z-index:2;
  pointer-events:none;
}

.signinFlowVideoShine{
  position:absolute;
  inset:-10% auto -10% -30%;
  width:42%;
  z-index:3;
  pointer-events:none;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.10), transparent);
  transform:skewX(-24deg);
  animation: shineSweep 4.8s linear infinite;
}

.signinFlowVideoLoop{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;

  z-index:0;
  pointer-events:none;

  opacity:.38;

  filter:
    brightness(.65)
    contrast(1.05)
    saturate(.85)
    blur(1.5px);
}

.signinFlowVideoOverlay{
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(5,10,20,.18), rgba(5,10,20,.34)),
    linear-gradient(90deg, rgba(8,12,22,.42), rgba(8,12,22,.18) 38%, rgba(8,12,22,.34));
}

.signinFlowLowerThird{
  position:absolute;
  left:18px;
  right:18px;
  bottom:16px;
  z-index:4;
  padding:14px 16px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(2,5,14,.22), rgba(2,5,14,.70));
  border:1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(6px);
}

.signinFlowLowerThirdTitle{
  font-size:11px;
  font-weight:900;
  letter-spacing:.7px;
  color:#ffc6d5;
  margin-bottom:6px;
}

.signinFlowLowerThirdText{
  font-size:18px;
  line-height:1.15;
  font-weight:900;
  color:#f3f6ff;
  max-width:26ch;
}

.signinFlowControls{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:14px 16px;
  border-top:1px solid rgba(255,255,255,.04);
}

.signinCtlGroup{
  display:flex;
  align-items:center;
  gap:8px;
}

.signinCtlBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  color:#eef2ff;
  font-weight:900;
  font-size:13px;
}

.signinCtlTime{
  color:#dfe5f7;
  font-size:13px;
  font-weight:900;
  letter-spacing:.8px;
}

.signinActionBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  color:#eef2ff;
  font-size:12px;
  font-weight:800;
}

.signinActionBtnSave{
  background:linear-gradient(90deg, rgba(108,60,255,.22), rgba(255,79,134,.18));
  border-color:rgba(255,79,134,.18);
}

.signinFlowTimeline{
  padding:0 16px 16px;
}

.signinTimelineTicks{
  height:18px;
  margin-bottom:8px;
  opacity:.78;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 88px,
      rgba(255,255,255,.12) 88px 90px
    );
  mask-image: linear-gradient(90deg, rgba(255,255,255,.5), rgba(255,255,255,.95));
}

.signinTimelineTrack{
  position:relative;
  height:94px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  overflow:hidden;
  background:linear-gradient(180deg, rgba(7,10,18,.96), rgba(10,13,22,.88));
}

.signinTimelineThumbs{
  position:absolute;
  inset:10px 10px 10px 10px;
  border-radius:14px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(101,70,210,.88) 0 58px,
      rgba(206,72,255,.80) 58px 116px,
      rgba(255,88,120,.80) 116px 174px,
      rgba(71,46,182,.88) 174px 232px
    );
  opacity:.82;
  transform:translateX(0);
  animation: thumbsMove 9s linear infinite;
}

.signinTimelineThumbs::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, transparent, rgba(0,0,0,.18));
}

.signinTimelineCursor{
  position:absolute;
  top:0;
  bottom:0;
  left:54%;
  width:3px;
  background:#ff4f86;
  box-shadow:0 0 0 4px rgba(255,79,134,.12);
}

.signinTimelineCursor::before{
  content:"";
  position:absolute;
  top:8px;
  left:50%;
  transform:translateX(-50%);
  width:14px;
  height:14px;
  border-radius:999px;
  background:#ff4f86;
}

.signinTimelineIn,
.signinTimelineOut{
  position:absolute;
  top:10px;
  bottom:10px;
  width:4px;
  border-radius:4px;
  background:#8a64ff;
  box-shadow:0 0 0 4px rgba(138,100,255,.10);
}

.signinTimelineIn{ left:30%; }
.signinTimelineOut{ left:74%; }

.signinExportCard{
  position:absolute;
  right:18px;
  top:112px;
  width:220px;
  padding:18px;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(11,16,28,.94), rgba(9,14,24,.90));
  box-shadow:
    0 24px 60px rgba(0,0,0,.32),
    inset 0 1px 0 rgba(255,255,255,.03);
  animation: flowFloatB 8s ease-in-out infinite;
}

.signinExportTitle{
  font-size:22px;
  font-weight:900;
  margin-bottom:14px;
}

.signinExportBtn{
  display:flex;
  align-items:center;
  justify-content:center;
  height:46px;
  border-radius:14px;
  background:linear-gradient(90deg, #6c3cff 0%, #ff4f86 100%);
  color:#fff;
  font-size:14px;
  font-weight:900;
  box-shadow:0 14px 32px rgba(115,67,255,.22);
  margin-bottom:14px;
}

.signinExportStatus{
  position:relative;
  height:64px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.03);
  overflow:hidden;
  margin-bottom:14px;
}

.signinExportWave{
  position:absolute;
  left:-10%;
  right:-10%;
  top:50%;
  height:2px;
  background:linear-gradient(90deg, transparent, #8d65ff, #ff4f86, transparent);
  opacity:.9;
  animation: waveMove 2.3s linear infinite;
}

.signinExportWave2{
  top:62%;
  animation-duration:3.1s;
  opacity:.55;
}

.signinPublishRow{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.signinPublishPill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  color:#dce4fb;
  font-size:11px;
  font-weight:800;
}

.signinFloatCard{
  position:absolute;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(14,20,34,.92), rgba(11,16,28,.90));
  box-shadow:
    0 18px 44px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.03);
  animation: flowFloatC 6.8s ease-in-out infinite;
}

.signinFloatCardA{
  left:70px;
  top:390px;
}

.signinFloatCardB{
  right:190px;
  bottom:90px;
  animation-delay:-2.4s;
}

.signinFloatLabel{
  color:rgba(234,240,255,.58);
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.6px;
  margin-bottom:6px;
}

.signinFloatValue{
  color:#f5f7ff;
  font-size:16px;
  font-weight:900;
}

@keyframes livePulse{
  0%,100%{ transform:scale(1); opacity:1; }
  50%{ transform:scale(1.18); opacity:.74; }
}

@keyframes shineSweep{
  0%{ transform:translateX(0) skewX(-24deg); opacity:0; }
  12%{ opacity:.8; }
  55%{ opacity:.35; }
  100%{ transform:translateX(320%) skewX(-24deg); opacity:0; }
}

@keyframes thumbsMove{
  0%{ transform:translateX(0); }
  100%{ transform:translateX(-174px); }
}

@keyframes waveMove{
  0%{ transform:translateX(-20%) scaleX(.9); opacity:.2; }
  50%{ transform:translateX(8%) scaleX(1.05); opacity:.95; }
  100%{ transform:translateX(28%) scaleX(.9); opacity:.2; }
}

@keyframes flowFloatA{
  0%,100%{ transform:translateY(0px); }
  50%{ transform:translateY(-8px); }
}

@keyframes flowFloatB{
  0%,100%{ transform:translateY(0px); }
  50%{ transform:translateY(10px); }
}

@keyframes flowFloatC{
  0%,100%{ transform:translateY(0px); }
  50%{ transform:translateY(-7px); }
}

.signinBand{
  position:absolute;
  border-radius:34px;
  background:
    linear-gradient(90deg,
      rgba(66,40,180,.96) 0%,
      rgba(122,78,255,.96) 22%,
      rgba(211,70,255,.94) 48%,
      rgba(255,80,119,.94) 74%,
      rgba(61,39,160,.97) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 16px 40px rgba(0,0,0,.28);
  opacity:.96;
}

.signinBand1{
  width:1120px;
  height:168px;
  top:120px;
  left:-120px;
  transform:rotate(25deg);
}

.signinBand2{
  width:980px;
  height:132px;
  top:315px;
  left:60px;
  transform:rotate(25deg);
  opacity:.78;
}

.signinBand3{
  width:760px;
  height:96px;
  top:500px;
  left:280px;
  transform:rotate(25deg);
  opacity:.52;
}

.signinVisualText{
  position:absolute;
  left:38px;
  bottom:34px;
  max-width:360px;
}

.signinVisualText .eyebrow{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  letter-spacing:.5px;
  text-transform:uppercase;
}

.signinVisualTextPro{
  left:54px;
  bottom:48px;
  max-width:420px;
}

.signinVisualText h2{
  margin:14px 0 10px;
  font-size:34px;
  line-height:1.02;
  letter-spacing:-1px;
}

.signinVisualText p{
  margin:0;
  color:rgba(234,240,255,.78);
  line-height:1.5;
  font-size:15px;
}

@media (max-width: 980px){
  .signinPage{
    grid-template-columns:1fr;
  }

  .signinVisual{
    min-height:360px;
    order:-1;
    padding:18px;
  }

  .signinVisualInner{
    height:420px;
    border-radius:28px;
  }

  .signinLeft{
    padding:22px 18px 30px;
    border-right:0;
    border-top:1px solid rgba(255,255,255,.08);
  }

  .signinTitlePro{
    font-size:34px;
  }

  .signinSubPro{
    font-size:15px;
  }

  .signinFlowScene{
    inset:18px 18px 118px 18px;
  }

  .signinFlowPlayer{
    left:10px;
    top:14px;
    width:82%;
    border-radius:22px;
  }

  .signinFlowVideo{
    height:170px;
  }

  .signinFlowLowerThirdText{
    font-size:14px;
  }

  .signinFlowControls{
    padding:10px 12px;
  }

  .signinCtlTime{
    font-size:11px;
  }

  .signinActionBtn{
    padding:7px 9px;
    font-size:10px;
  }

  .signinFlowTimeline{
    padding:0 12px 12px;
  }

  .signinTimelineTrack{
    height:58px;
  }

  .signinTimelineThumbs{
    inset:8px;
  }

  .signinExportCard{
    right:10px;
    top:150px;
    width:150px;
    padding:12px;
    border-radius:18px;
  }

  .signinExportTitle{
    font-size:16px;
    margin-bottom:10px;
  }

  .signinExportBtn{
    height:38px;
    font-size:12px;
    margin-bottom:10px;
  }

  .signinExportStatus{
    height:42px;
    margin-bottom:10px;
  }

  .signinPublishPill{
    font-size:9px;
    padding:6px 8px;
  }

  .signinFloatCard{
    display:none;
  }

  .signinVisualTextPro{
    left:24px;
    bottom:22px;
    max-width:280px;
  }

  .signinVisualText h2{
    font-size:26px;
  }

  .signinVisualText p{
    font-size:13px;
  }
}

/* ===== Campaigns page alignment ===== */
.campaignsRightHead{
  display:flex;
  justify-content:flex-end;
  align-items:flex-start;
  margin:0 0 10px 0;
}

.campaignsRightHead .currentUserChip{
  min-width:270px;
}

@media (max-width: 980px){
  .campaignsRightHead{
    justify-content:flex-start;
    margin:0 0 14px 0;
  }

  .campaignsRightHead .currentUserChip{
    min-width:220px;
  }
}

.campMetaMain{
  font-size:12px;
  color:rgba(235,243,255,.92);
}

.campMetaSub{
  font-size:12px;
  color:rgba(154,168,199,.85);
  margin-top:4px;
}

/* ===== Home page header alignment ===== */
.homeTopbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  margin-bottom:12px;
  padding-top:14px;
}

.homeTopbarTitle{
  min-width:220px;
  padding-top:4px;
}

.homeTopbarHeading{
  margin-bottom:4px;
  line-height:1.05;
}

.homeTopbarSub{
  margin:0;
}

.homeTopbarRight{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  margin-left:auto;
}

.homeTopbarRight .currentUserChip{
  min-width:260px;
}

.homeTopbarRightInline{
  flex-wrap:nowrap;
}

.homeTopbarActions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}

@media (max-width: 980px){
  .homeTopbar{
    gap:14px;
    padding-top:4px;
  }

  .homeTopbarRight{
    width:100%;
    align-items:flex-start;
    justify-content:flex-start;
    margin-left:0;
    flex-wrap:wrap;
  }

  .homeTopbarRight .currentUserChip{
    min-width:220px;
  }

  .homeTopbarActions{
    justify-content:flex-start;
    flex-wrap:wrap;
  }
}

.homeChannelCard .row2{
  display:flex;
  align-items:center;   /* ensures vertical centering */
  justify-content:space-between;
  gap:20px;
}


.homeChannelLogoWrap{
  width:52px;
  height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;

  border-radius:12px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
}

.homeChannelLogo{
  width:130%;
  height:130%;
  object-fit:contain;
  display:block;
}

.homeChannelLogoFallback{
  width:44px;
  height:44px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  color:var(--text);
  font-size:14px;
  font-weight:900;
}

.campaignSideHint{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.035);
  border-radius:16px;
  padding:14px;
  margin-top:10px;
}
.campaignSideHint{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.035);
  border-radius:16px;
  padding:14px;
}

.markJumpBtn{
  min-width:42px;
  font-size:20px;
  font-weight:900;
  padding-left:12px;
  padding-right:12px;
}

.markJumpBtn:disabled{
  opacity:.35;
  cursor:not-allowed;
}

/* ===== Shared export drawer disabled submit state ===== */
#btnDoExport:disabled,
#btnDoExport.is-disabled,
.exportMainBtn:disabled,
.exportMainBtn.is-disabled{
  opacity:.38 !important;
  cursor:not-allowed !important;
  pointer-events:none !important;
  filter:saturate(.35) brightness(.82) !important;
  box-shadow:none !important;
  transform:none !important;
}

#btnDoExport:disabled:hover,
#btnDoExport.is-disabled:hover,
.exportMainBtn:disabled:hover,
.exportMainBtn.is-disabled:hover{
  background:rgba(255,45,94,.16) !important;
  border-color:rgba(255,45,94,.25) !important;
  transform:none !important;
  box-shadow:none !important;
}

/* =========================================================
   Live Editor final polish — visual only
   No layout / JS behavior changes
   ========================================================= */

/* Main timeline card depth */
.timelineWrap{
  border-color:rgba(255,255,255,.13);
  background:
    radial-gradient(900px 220px at 76% 0%, rgba(255,45,94,.055), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
    rgba(6,10,16,.72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.055),
    inset 0 -1px 0 rgba(0,0,0,.40),
    0 18px 45px rgba(0,0,0,.36);
}

/* Ruler polish */
.tlAxis{
  border-color:rgba(255,255,255,.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
    rgba(0,0,0,.30);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 8px 18px rgba(0,0,0,.22);
}

/* Thumbnail strip polish */
.tlHolder{
  border-color:rgba(255,255,255,.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,.018), rgba(0,0,0,.08)),
    rgba(0,0,0,.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.045),
    inset 0 -18px 30px rgba(0,0,0,.20),
    0 10px 24px rgba(0,0,0,.24);
}

/* DOM playhead: thinner but more premium */
.tlPlayheadLine{
  width:2px;
  margin-left:-1px;
  background:rgba(255,45,94,.98);
  box-shadow:
    0 0 0 1px rgba(255,45,94,.10),
    0 0 14px rgba(255,45,94,.28),
    0 0 32px rgba(255,45,94,.12);
}

.tlPlayheadCap{
  filter:
    drop-shadow(0 0 5px rgba(255,45,94,.55))
    drop-shadow(0 4px 8px rgba(0,0,0,.35));
}

/* Timecode pill / big time */
.bigTimeBtn,
.timecodeBtn{
  background:
    radial-gradient(160px 40px at 50% 0%, rgba(255,45,94,.10), transparent 65%),
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)),
    rgba(3,7,12,.82);
  border-color:rgba(255,255,255,.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.055),
    inset 0 -1px 0 rgba(0,0,0,.40),
    0 8px 18px rgba(0,0,0,.26);
  text-shadow:0 0 12px rgba(255,255,255,.10);
}

/* Player buttons feel more tactile */
.iconBtn,
.btn.small{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    inset 0 -1px 0 rgba(0,0,0,.30),
    0 7px 16px rgba(0,0,0,.25);
}

.iconBtn:hover,
.btn.small:hover{
  border-color:rgba(255,255,255,.24);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 10px 24px rgba(0,0,0,.32),
    0 0 18px rgba(255,255,255,.035);
}

.iconBtn:active,
.btn.small:active{
  transform:translateY(0);
  box-shadow:
    inset 0 2px 8px rgba(0,0,0,.35),
    0 5px 12px rgba(0,0,0,.22);
}

/* Right export/saved clips panel depth */
.rightPanel{
  border-color:rgba(255,255,255,.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
    rgba(6,10,16,.68);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 18px 46px rgba(0,0,0,.34);
}

.rightPanelHeader{
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.018));
}

/* Saved clip cards */
.savedClipCard{
  border-color:rgba(255,255,255,.11);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
    rgba(0,0,0,.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 8px 18px rgba(0,0,0,.20);
}

.savedClipCard:hover{
  border-color:rgba(255,255,255,.20);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.055),
    0 16px 34px rgba(0,0,0,.34),
    0 0 18px rgba(255,255,255,.035);
}

/* Search input */
.searchInput{
  border-color:rgba(255,255,255,.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
    rgba(0,0,0,.24);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 8px 18px rgba(0,0,0,.18);
}

.searchInput:focus{
  border-color:rgba(255,45,94,.45);
  box-shadow:
    0 0 0 3px rgba(255,45,94,.10),
    inset 0 1px 0 rgba(255,255,255,.05);
}

/* LIVE button polish */
#tlBtnLive.isLive{
  animation: liveBtnBreath 2.4s ease-in-out infinite;
}

@keyframes liveBtnBreath{
  0%,100%{
    box-shadow:
      0 0 0 1px rgba(255,45,94,.12) inset,
      0 0 14px rgba(255,45,94,.13);
  }
  50%{
    box-shadow:
      0 0 0 1px rgba(255,45,94,.18) inset,
      0 0 26px rgba(255,45,94,.24);
  }
}

/* Zoom slider final polish */
.tlViewportTrack{
  border-color:rgba(255,255,255,.13);
}

.tlViewportHandle{
  backdrop-filter:blur(6px);
}

.tlViewportGrip:hover{
  border-color:rgba(255,255,255,.62);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.32),
    0 6px 18px rgba(0,0,0,.35),
    0 0 14px rgba(255,255,255,.06);
}

/* =========================================================
   Live Editor final polish — visual only
   No layout / JS behavior changes
   ========================================================= */

/* Main timeline card depth */
.timelineWrap{
  border-color:rgba(255,255,255,.13);
  background:
    radial-gradient(900px 220px at 76% 0%, rgba(255,45,94,.055), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
    rgba(6,10,16,.72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.055),
    inset 0 -1px 0 rgba(0,0,0,.40),
    0 18px 45px rgba(0,0,0,.36);
}

/* Ruler polish */
.tlAxis{
  border-color:rgba(255,255,255,.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
    rgba(0,0,0,.30);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 8px 18px rgba(0,0,0,.22);
}

/* Thumbnail strip polish */
.tlHolder{
  border-color:rgba(255,255,255,.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,.018), rgba(0,0,0,.08)),
    rgba(0,0,0,.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.045),
    inset 0 -18px 30px rgba(0,0,0,.20),
    0 10px 24px rgba(0,0,0,.24);
}

/* DOM playhead: thinner but more premium */
.tlPlayheadLine{
  width:2px;
  margin-left:-1px;
  background:rgba(255,45,94,.98);
  box-shadow:
    0 0 0 1px rgba(255,45,94,.10),
    0 0 14px rgba(255,45,94,.28),
    0 0 32px rgba(255,45,94,.12);
}

.tlPlayheadCap{
  filter:
    drop-shadow(0 0 5px rgba(255,45,94,.55))
    drop-shadow(0 4px 8px rgba(0,0,0,.35));
}

/* Timecode pill / big time */
.bigTimeBtn,
.timecodeBtn{
  background:
    radial-gradient(160px 40px at 50% 0%, rgba(255,45,94,.10), transparent 65%),
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)),
    rgba(3,7,12,.82);
  border-color:rgba(255,255,255,.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.055),
    inset 0 -1px 0 rgba(0,0,0,.40),
    0 8px 18px rgba(0,0,0,.26);
  text-shadow:0 0 12px rgba(255,255,255,.10);
}

/* Player buttons feel more tactile */
.iconBtn,
.btn.small{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    inset 0 -1px 0 rgba(0,0,0,.30),
    0 7px 16px rgba(0,0,0,.25);
}

.iconBtn:hover,
.btn.small:hover{
  border-color:rgba(255,255,255,.24);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 10px 24px rgba(0,0,0,.32),
    0 0 18px rgba(255,255,255,.035);
}

.iconBtn:active,
.btn.small:active{
  transform:translateY(0);
  box-shadow:
    inset 0 2px 8px rgba(0,0,0,.35),
    0 5px 12px rgba(0,0,0,.22);
}

/* Right export/saved clips panel depth */
.rightPanel{
  border-color:rgba(255,255,255,.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
    rgba(6,10,16,.68);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 18px 46px rgba(0,0,0,.34);
}

.rightPanelHeader{
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.018));
}

/* Saved clip cards */
.savedClipCard{
  border-color:rgba(255,255,255,.11);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
    rgba(0,0,0,.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 8px 18px rgba(0,0,0,.20);
}

.savedClipCard:hover{
  border-color:rgba(255,255,255,.20);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.055),
    0 16px 34px rgba(0,0,0,.34),
    0 0 18px rgba(255,255,255,.035);
}

/* Search input */
.searchInput{
  border-color:rgba(255,255,255,.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
    rgba(0,0,0,.24);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 8px 18px rgba(0,0,0,.18);
}

.searchInput:focus{
  border-color:rgba(255,45,94,.45);
  box-shadow:
    0 0 0 3px rgba(255,45,94,.10),
    inset 0 1px 0 rgba(255,255,255,.05);
}

/* LIVE button polish */
#tlBtnLive.isLive{
  animation: liveBtnBreath 2.4s ease-in-out infinite;
}

@keyframes liveBtnBreath{
  0%,100%{
    box-shadow:
      0 0 0 1px rgba(255,45,94,.12) inset,
      0 0 14px rgba(255,45,94,.13);
  }
  50%{
    box-shadow:
      0 0 0 1px rgba(255,45,94,.18) inset,
      0 0 26px rgba(255,45,94,.24);
  }
}

/* Zoom slider final polish */
.tlViewportTrack{
  border-color:rgba(255,255,255,.13);
}

.tlViewportHandle{
  backdrop-filter:blur(6px);
}

.tlViewportGrip:hover{
  border-color:rgba(255,255,255,.62);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.32),
    0 6px 18px rgba(0,0,0,.35),
    0 0 14px rgba(255,255,255,.06);
}

/* =========================================================
   Live Editor player frame polish — visual only
   ========================================================= */

.videoShell{
  border-color:rgba(255,255,255,.13);
  background:
    radial-gradient(900px 320px at 70% 0%, rgba(255,45,94,.045), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
    rgba(6,10,16,.70);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.055),
    inset 0 -1px 0 rgba(0,0,0,.42),
    0 18px 48px rgba(0,0,0,.36);
}

.videoStage{
  border:1px solid rgba(255,255,255,.10);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.045),
    inset 0 -40px 90px rgba(0,0,0,.14),
    0 24px 70px rgba(0,0,0,.48);
}

.videoStage::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:4;
  border-radius:14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 10%),
    radial-gradient(800px 260px at 50% 0%, rgba(255,255,255,.045), transparent 55%);
  opacity:.65;
}

#editorVideo{
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04);
}

.transportBar{
  padding:2px 2px 0;
}

.transportMid,
.playerToolbarTimecode{
  text-shadow:
    0 0 12px rgba(255,255,255,.10),
    0 2px 8px rgba(0,0,0,.32);
}

.videoShell:hover{
  border-color:rgba(255,255,255,.16);
}

/* =========================================
   Live Editor Logo Overlay Preview
   ========================================= */

.clipLogoPreviewBox{
  margin-top:14px;
}

.clipLogoPreviewScreen{
  position:relative;
  width:100%;
  aspect-ratio:16 / 9;

  overflow:hidden;

  border-radius:18px;

  border:1px solid rgba(255,255,255,.10);

  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)),
    #0a0f17;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 12px 28px rgba(0,0,0,.30);
}

.clipLogoPreviewScreen::before{
  content:"";

  position:absolute;
  inset:0;

  background:
    radial-gradient(
      700px 240px at 50% 0%,
      rgba(255,255,255,.05),
      transparent 60%
    );

  pointer-events:none;
}

.clipLogoPreviewBars{
  position:absolute;
  inset:0;

  display:flex;
  align-items:center;
  justify-content:center;

  color:rgba(255,255,255,.10);

  font-size:24px;
  font-weight:900;
  letter-spacing:3px;

  user-select:none;
  pointer-events:none;
  z-index:0;
}

.clipLogoPreviewOverlay{
  position:absolute;

  max-width:28%;
  max-height:28%;

  object-fit:contain;

  filter:
    drop-shadow(0 3px 10px rgba(0,0,0,.45));

  z-index:2;
}

.clipLogoPreviewOverlay.pos-top-left{
  top:16px;
  left:16px;
}

.clipLogoPreviewOverlay.pos-top-right{
  top:16px;
  right:16px;
}

.clipLogoPreviewOverlay.pos-bottom-left{
  bottom:16px;
  left:16px;
}

.clipLogoPreviewOverlay.pos-bottom-right{
  bottom:16px;
  right:16px;
}

.clipLogoPreviewOverlay.size-small{
  max-width:14%;
  max-height:14%;
}

.clipLogoPreviewOverlay.size-medium{
  max-width:22%;
  max-height:22%;
}

.clipLogoPreviewOverlay.size-large{
  max-width:32%;
  max-height:32%;
}

.clipLogoPreviewEmpty{
  position:absolute;
  inset:0;


  display:flex;
  align-items:center;
  justify-content:center;

  color:rgba(255,255,255,.38);

  font-size:13px;
  font-weight:700;

  text-align:center;

  padding:20px;

  user-select:none;
  pointer-events:none;
   z-index:1;
}