:root {
  --bg: #FAFAF7;
  --bg-alt: #F2F0EA;
  --surface: #FFFFFF;
  --ink: #14171A;
  --ink-soft: #4B4E52;
  --muted: #84867F;
  --border: #E6E3DA;
  --accent: #FF5A36;
  --accent-dark: #E14B29;
  --accent-soft: #FFE7DF;
  --teal: #0E5C52;
  --teal-soft: #E4F0EE;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;      /* prevents any oversized child from creating page-level horizontal scroll */
}
body {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
button, input { font-family: inherit; }
a { color: inherit; text-decoration: none; }
.nc-display { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.01em; }
.nc-focus:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@keyframes nc-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.nc-rise { animation: nc-rise 0.5s ease both; }
@keyframes nc-toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

.nc-scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
.nc-scrollbar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ---------- Buttons ---------- */
.nc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  padding: 12px 22px;
  transition: transform 0.1s ease;
}
.nc-btn:active { transform: scale(0.98); }
.nc-btn-sm { font-size: 13px; padding: 8px 14px; }
.nc-btn-full { width: 100%; }
.nc-btn-primary { background: var(--accent); color: #fff; }
.nc-btn-primary:hover { background: var(--accent-dark); }
.nc-btn:disabled { cursor: wait; opacity: 0.8; }
.nc-button-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: nc-spin 0.75s linear infinite;
}
@keyframes nc-spin { to { transform: rotate(360deg); } }
.nc-btn-outline { background: transparent; color: var(--ink); border-color: var(--border); }
.nc-btn-outline:hover { background: var(--bg-alt); }
.nc-btn-ghost { background: transparent; color: var(--ink-soft); }
.nc-btn-reverse { flex-direction: row-reverse; }

.nc-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: inherit;
  text-decoration: none;
}
.nc-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.nc-logo-text { font-size: 18px; font-weight: 700; }
.nc-logo-text span { color: var(--accent); }

.nc-link {
  background: none;
  border: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0;
}
.nc-link-sm { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; }

/* ---------- Toast ---------- */
.nc-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 200;
  display: none;
  align-items: center;
  gap: 8px;
  max-width: 90vw;
}
.nc-toast.show {
  display: flex;
  animation: nc-toast-in 0.25s ease both;
  left: 50%;
  transform: translateX(-50%);
}
.nc-toast.success { border-left: 3px solid #38a77b; }
.nc-toast.error { border-left: 3px solid #ef6652; }

/* ---------- Navbar (public) ---------- */
.nc-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,250,247,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nc-navbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nc-navbar-links { display: flex; align-items: center; gap: 24px; }

/* ---------- Hero ---------- */
.nc-hero-section { max-width: 1120px; margin: 0 auto; padding: 64px 20px 40px; }
.nc-hero-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.nc-hero-copy { flex: 1 1 420px; min-width: 280px; }
.nc-hero-title { font-size: clamp(32px, 5vw, 52px); font-weight: 700; line-height: 1.08; margin: 0; }
.nc-hero-sub { font-size: 17px; color: var(--ink-soft); margin-top: 20px; line-height: 1.6; max-width: 440px; }
.nc-hero-ctas { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.nc-hero-visual { flex: 1 1 340px; display: flex; justify-content: center; }
.nc-platform-label { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.nc-platform-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.nc-pill {
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--ink-soft);
  background: var(--surface);
}

/* clip stack hero visual */
.nc-clipstack { position: relative; width: 100%; max-width: 460px; }
.nc-timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 20px 50px -20px rgba(20,23,26,0.18);
}
.nc-timeline-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 12px; color: var(--muted); font-weight: 600; }
.nc-timeline-track { position: relative; height: 10px; background: var(--bg-alt); border-radius: 6px; overflow: hidden; }
.nc-timeline-mark { position: absolute; top: 0; bottom: 0; background: var(--accent); border-radius: 3px; }
.nc-timeline-note { font-size: 11px; color: var(--muted); margin-top: 8px; }
.nc-clip-row { display: flex; gap: 12px; margin-top: 18px; justify-content: center; }
.nc-clip-card {
  width: 92px;
  aspect-ratio: 9 / 16;
  background: var(--ink);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 24px -10px rgba(20,23,26,0.35);
  flex-shrink: 0;
}
.nc-clip-card .nc-clip-grad { position: absolute; inset: 0; }
.nc-clip-card .nc-clip-bar { position: absolute; top: 8px; left: 8px; right: 8px; height: 4px; background: rgba(255,255,255,0.25); border-radius: 2px; }
.nc-clip-card .nc-clip-label { position: absolute; bottom: 10px; left: 8px; right: 8px; font-size: 9.5px; line-height: 1.3; color: #fff; font-weight: 600; }
.nc-clip-card .nc-clip-play {
  position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%);
  width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- How it works ---------- */
.nc-section-surface { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.nc-section-inner { max-width: 1120px; margin: 0 auto; padding: 56px 20px; }
.nc-section-title { font-size: 26px; font-weight: 700; margin-bottom: 32px; }
.nc-steps { display: flex; gap: 20px; flex-wrap: wrap; }
.nc-step { flex: 1 1 240px; padding-left: 20px; border-left: 2px solid var(--border); }
.nc-step.is-first { border-left-color: var(--accent); }
.nc-step-title { font-weight: 700; font-size: 15.5px; margin-bottom: 6px; }
.nc-step-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

/* ---------- Who it's for ---------- */
.nc-section { max-width: 1120px; margin: 0 auto; padding: 56px 20px; }
.nc-audience-grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.nc-audience-copy { flex: 1 1 300px; }
.nc-audience-copy h2 { font-size: 26px; font-weight: 700; margin-bottom: 12px; }
.nc-audience-copy p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; max-width: 380px; }
.nc-audience-tags { flex: 1 1 340px; display: flex; flex-wrap: wrap; gap: 10px; }
.nc-tag { font-size: 13.5px; font-weight: 500; padding: 9px 16px; border-radius: 10px; background: var(--bg-alt); color: var(--ink); }

/* ---------- Clip examples (dark) ---------- */
.nc-section-dark { background: var(--ink); padding: 56px 20px; }
.nc-section-dark-inner { max-width: 1120px; margin: 0 auto; }
.nc-section-dark h2 { font-size: 26px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.nc-section-dark .nc-sub { color: rgba(255,255,255,0.55); font-size: 15px; margin-bottom: 32px; }
.nc-clip-scroll { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.nc-dark-clip-card { min-width: 200px; background: #1F2327; border-radius: 12px; padding: 16px; flex-shrink: 0; }
.nc-dark-clip-thumb {
  aspect-ratio: 9/16; background: linear-gradient(160deg, #2A2F35, #14171A); border-radius: 8px;
  margin-bottom: 12px; display: flex; align-items: center; justify-content: center;
}
.nc-dark-clip-title { font-size: 13px; color: #fff; font-weight: 500; line-height: 1.4; margin-bottom: 6px; }
.nc-dark-clip-dur { font-size: 11.5px; color: rgba(255,255,255,0.45); }

/* ---------- Pricing ---------- */
.nc-pricing-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.nc-toggle { display: flex; background: var(--bg-alt); border-radius: 10px; padding: 4px; }
.nc-toggle button {
  border: none; padding: 7px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
  cursor: pointer; background: transparent; color: var(--muted); text-transform: capitalize;
}
.nc-toggle button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.nc-toggle .nc-save { color: var(--accent); }
.nc-plans { display: flex; gap: 20px; flex-wrap: wrap; }
.nc-plan-card { flex: 1 1 260px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 28px; position: relative; }
.nc-plan-card.highlight { border-color: var(--accent); }
.nc-plan-badge {
  position: absolute; top: -11px; left: 24px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px;
}
.nc-plan-name { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.nc-plan-price { font-size: 30px; font-weight: 700; margin-bottom: 16px; }
.nc-plan-price span { font-size: 13px; color: var(--muted); font-weight: 500; }
.nc-plan-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.nc-plan-feature { display: flex; gap: 8px; font-size: 13.5px; color: var(--ink-soft); }

/* ---------- Final CTA ---------- */
.nc-final-cta { background: var(--accent-soft); border-radius: 20px; padding: 48px 32px; text-align: center; }
.nc-final-cta h2 { font-size: 28px; font-weight: 700; margin-bottom: 10px; }
.nc-final-cta p { color: var(--ink-soft); font-size: 15px; margin-bottom: 24px; }

/* ---------- Footer ---------- */
.nc-footer { border-top: 1px solid var(--border); padding: 28px 20px; }
.nc-footer-inner { max-width: 1120px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.nc-footer-copy { font-size: 13px; color: var(--muted); }

/* ---------- Dashboard shell ---------- */
.nc-dash { display: flex; min-height: 100vh; width: 100%; max-width: 100%; }
.nc-sidebar {
  width: 232px;
  border-right: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
}
.nc-sidebar-head { padding: 20px 18px; }
.nc-sidebar-nav { flex: 1; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.nc-navitem {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px;
  border: none; cursor: pointer; background: transparent; color: var(--ink-soft);
  font-weight: 500; font-size: 14px; text-align: left; width: 100%;
}
.nc-navitem.active { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.nc-navitem svg { flex-shrink: 0; }
.nc-sidebar-foot { padding: 14px; border-top: 1px solid var(--border); }
.nc-user-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; }
.nc-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; flex-shrink: 0;
}
.nc-user-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-user-plan { font-size: 11.5px; color: var(--muted); }
.nc-logout {
  display: flex; align-items: center; gap: 9px; width: 100%; margin-top: 4px; padding: 8px 6px;
  border: none; background: none; cursor: pointer; font-size: 13.5px; color: var(--muted); font-weight: 500;
}

.nc-sidebar-mobile { position: fixed; inset: 0; z-index: 100; display: none; }
.nc-sidebar-mobile.open { display: block; }
.nc-sidebar-overlay { position: absolute; inset: 0; background: rgba(20,23,26,0.4); }
.nc-sidebar-drawer { position: absolute; left: 0; top: 0; bottom: 0; width: 250px; background: var(--surface); display: flex; flex-direction: column; }
.nc-drawer-close { display: flex; justify-content: flex-end; padding: 10px; }
.nc-drawer-close button { background: none; border: none; cursor: pointer; padding: 6px; }

.nc-main { flex: 1; min-width: 0; max-width: 100%; }
.nc-topbar {
  display: none; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border);
  background: var(--surface); position: sticky; top: 0; z-index: 20;
}
.nc-topbar button { background: none; border: none; cursor: pointer; padding: 4px; }
.nc-topbar-title { font-weight: 700; font-size: 16px; }

.nc-page { padding: 28px 28px 60px; max-width: 100%; }
.nc-page-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.nc-page-title { font-size: 24px; font-weight: 700; margin: 0; }
.nc-page-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---------- Stat cards ---------- */
.nc-stats-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.nc-stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; flex: 1 1 180px; min-width: 0; }
.nc-stat-label { font-size: 13px; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.nc-stat-value { font-size: 26px; font-weight: 700; }
.nc-stat-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- Overview grid ---------- */
.nc-overview-grid { display: flex; gap: 24px; flex-wrap: wrap; }
.nc-overview-col-wide { flex: 2 1 380px; min-width: 0; }
.nc-overview-col-narrow { flex: 1 1 260px; min-width: 0; }
.nc-col-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.nc-col-head h2 { font-size: 15.5px; font-weight: 700; margin: 0; }

/* ---------- Recent videos TABLE (fixed so it can't blow out page width) ---------- */
.nc-table-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.nc-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;          /* if content genuinely can't fit, it scrolls inside the card, not the page */
  -webkit-overflow-scrolling: touch;
}
.nc-video-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;       /* stops long filenames from stretching the table past its container */
  border-collapse: collapse;
}
.nc-video-table col.col-thumb { width: 64px; }
.nc-video-table col.col-title { width: auto; }
.nc-video-table col.col-status { width: 190px; }
.nc-video-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  overflow: hidden;
}
.nc-video-table tr:last-child td { border-bottom: none; }
.nc-video-thumb {
  width: 56px; height: 40px; border-radius: 8px;
  background: linear-gradient(160deg, #2A2F35, var(--ink));
  display: flex; align-items: center; justify-content: center;
}
.nc-video-title {
  font-size: 13.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;  /* long titles truncate instead of forcing width */
  max-width: 100%;
  display: block;
}
.nc-video-meta { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-status-badge { font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.nc-status-ready { background: var(--teal-soft); color: var(--teal); }
.nc-status-processing { background: var(--accent-soft); color: var(--accent-dark); }
.nc-video-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.nc-video-actions .nc-btn { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- Recent clips list ---------- */
.nc-clip-list { display: flex; flex-direction: column; gap: 12px; }
.nc-clip-list-item {
  display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; min-width: 0;
  align-items: center; position: relative;
}
.nc-clip-list-playable {
  background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(242,240,234,0.9));
}
.nc-clip-preview {
  width: 96px; height: 70px; border-radius: 10px; overflow: hidden; background: linear-gradient(160deg, rgba(42, 47, 53, 0.9), rgba(20,23,26,1)); border: 1px solid rgba(20,23,26,0.08); flex-shrink: 0;
}
.nc-clip-preview video,
.nc-clip-video-frame video {
  width: 100%; height: 100%; display: block; object-fit: cover; background: linear-gradient(160deg, rgba(42, 47, 53, 0.9), rgba(20,23,26,1));
}
.nc-clip-meta {
  min-width: 0; flex: 1;
}
.nc-clip-list-thumb {
  width: 34px; height: 52px; border-radius: 6px; background: linear-gradient(160deg, #2A2F35, var(--ink));
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.nc-clip-list-thumb-lg {
  width: 100%; height: 100%; border-radius: 0; font-size: 20px; background: linear-gradient(160deg, rgba(42, 47, 53, 0.9), rgba(20,23,26,1));
}
.nc-clip-list-title { font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.nc-clip-list-dur { font-size: 11px; color: var(--muted); margin-top: 3px; }

.nc-clip-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px;
}
.nc-clip-video-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 24px -18px rgba(20,23,26,0.32);
}
.nc-clip-video-frame {
  position: relative; aspect-ratio: 9 / 16; background: linear-gradient(160deg, rgba(42, 47, 53, 0.9), rgba(20,23,26,1)); overflow: hidden;
}
.nc-clip-info {
  padding: 12px 14px 0;
}
.nc-clip-actions {
  padding: 12px 14px 14px;
  display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 8px;
}
.nc-featured-status { flex: 0 0 100%; color: var(--teal); font-size: 12px; font-weight: 700; }
.nc-clip-fullscreen-btn {
  position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; border: none; border-radius: 999px; padding: 8px 10px; background: rgba(20, 23, 26, 0.7); color: #fff; font-size: 11px; font-weight: 600; cursor: pointer; backdrop-filter: blur(4px);
}
.nc-clip-fullscreen-btn svg { width: 12px; height: 12px; }

.nc-clip-modal {
  position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px;
}
.nc-clip-modal.visible { display: flex; }
.nc-clip-modal-backdrop {
  position: absolute; inset: 0; background: rgba(10, 12, 14, 0.8); backdrop-filter: blur(8px);
}
.nc-clip-modal-panel {
  position: relative; width: min(92vw, 960px); background: rgba(8, 10, 12, 0.9); border: 1px solid rgba(255,255,255,0.08); border-radius: 18px; overflow: hidden; box-shadow: 0 28px 80px rgba(0,0,0,0.35);
}
.nc-clip-modal-stage {
  width: 100%; aspect-ratio: 9 / 16; max-height: 82vh; background: #000;
}
.nc-clip-modal-stage video {
  width: 100%; height: 100%; display: block; object-fit: contain; background: #000;
}
.nc-clip-modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2; border: none; border-radius: 999px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.12); color: #fff; cursor: pointer;
}

/* ---------- Upload page ---------- */
.nc-upload-wrap { max-width: 640px; }
.nc-dropzone {
  border: 1.5px dashed var(--border);
  border-radius: 16px;
  padding: 56px 24px;
  text-align: center;
  background: var(--surface);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.nc-dropzone.dragging { border-color: var(--accent); background: var(--accent-soft); }
.nc-dropzone-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.nc-dropzone-title { font-weight: 600; font-size: 15.5px; margin-bottom: 6px; }
.nc-dropzone-sub { font-size: 13px; color: var(--muted); margin-bottom: 20px; }

.nc-file-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.nc-file-row { display: flex; gap: 14px; align-items: center; }
.nc-file-icon { width: 64px; height: 46px; border-radius: 10px; background: linear-gradient(160deg, #2A2F35, var(--ink)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nc-file-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-file-meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.nc-file-remove { background: none; border: none; cursor: pointer; color: var(--muted); padding: 6px; }
.nc-processing-card { overflow: hidden; }
.nc-processing-card.is-failed { border-color: #e7b8b8; }
.nc-progress-value { color: var(--ink); font-size: 14px; font-weight: 700; min-width: 42px; text-align: right; }
.nc-progress { height: 8px; overflow: hidden; border-radius: 999px; background: var(--bg-alt); }
.nc-progress-bar { height: 100%; min-width: 0; border-radius: inherit; background: var(--accent); transition: width .45s ease; }
.nc-processing-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; margin-top: 12px; }
.nc-spinner { width: 13px; height: 13px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: nc-spin .8s linear infinite; flex-shrink: 0; }
@keyframes nc-spin { to { transform: rotate(360deg); } }

/* ---------- Placeholder ---------- */
.nc-placeholder-box {
  border: 1px dashed var(--border); border-radius: 14px; padding: 48px 24px; text-align: center; color: var(--muted); font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nc-hide-mobile { display: none !important; }
  .nc-sidebar { display: none !important; }
  .nc-topbar { display: flex !important; }
  .nc-page { padding: 20px 16px 48px; }

  .nc-overview-grid {
    display: block;
  }

  .nc-overview-col-wide,
  .nc-overview-col-narrow {
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
  }

  .nc-clip-list {
    gap: 14px;
  }

  .nc-clip-list-item {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }

  .nc-clip-preview {
    width: 100%;
    height: 180px;
  }

  .nc-clip-meta {
    width: 100%;
  }

  .nc-clip-list-title {
    font-size: 14px;
    line-height: 1.45;
  }

  .nc-clip-list-dur {
    font-size: 12px;
  }

  .nc-clip-fullscreen-btn {
    right: 12px;
    bottom: 12px;
  }

  .nc-clip-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .nc-clip-video-card {
    border-radius: 14px;
  }

  .nc-clip-video-frame {
    aspect-ratio: 16 / 9;
  }

  .nc-clip-actions {
    justify-content: flex-start;
  }

  .nc-clip-modal-panel {
    width: min(94vw, 680px);
  }

  .nc-clip-modal-stage {
    aspect-ratio: 16 / 10;
  }
}

/* ---------- Browser clip editor ---------- */
.nc-editor-page { max-width: 1480px; }
.nc-editor-head, .nc-editor-head-actions, .nc-editor-section-heading, .nc-editor-transport, .nc-editor-export-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nc-editor-head { margin-bottom: 18px; }
.nc-editor-source-warning { margin: -6px 0 16px; padding: 10px 12px; border-left: 3px solid #c88419; background: #fff3d8; color: #62430e; font-size: 13px; }
.nc-editor-head .nc-page-title { margin: 2px 0 0; overflow-wrap: anywhere; }
.nc-editor-head-actions { flex-wrap: wrap; justify-content: flex-end; }
.nc-editor-back { display: inline-flex; align-items: center; gap: 4px; }
.nc-editor-back svg { transform: rotate(180deg); width: 14px; }
.nc-editor-workspace { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(360px, 1.2fr); gap: 22px; align-items: start; }
.nc-editor-monitor, .nc-editor-timeline-panel, .nc-editor-subtitles-panel, .nc-editor-export-panel { min-width: 0; }
.nc-editor-stage { position: relative; width: min(100%, 390px); max-height: 62vh; aspect-ratio: 9 / 16; margin: 0 auto; overflow: hidden; background: #141a19; }
.nc-editor-stage video { width: 100%; height: 100%; object-fit: contain; display: block; }
.nc-editor-subtitle { position: absolute; left: 12px; right: 12px; bottom: 8%; color: #fff; font-size: 18px; font-weight: 800; line-height: 1.1; text-align: center; white-space: nowrap; -webkit-text-stroke: 1px #000; paint-order: stroke fill; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000; pointer-events: none; }
.nc-editor-transport { justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.nc-editor-time { min-width: 100px; text-align: center; color: var(--ink-soft); font-size: 13px; font-variant-numeric: tabular-nums; }
.nc-editor-section-heading { margin-bottom: 10px; }
.nc-editor-section-heading h2 { margin: 0; font-size: 17px; }
.nc-editor-section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.nc-editor-section-heading > span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.nc-editor-ruler { display: flex; justify-content: space-between; padding: 0 2px 6px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.nc-editor-timeline { position: relative; height: 64px; border: 1px solid var(--border); background: var(--bg-alt); touch-action: pan-y; cursor: crosshair; user-select: none; }
.nc-editor-segments { position: absolute; inset: 0; }
.nc-editor-segment { position: absolute; top: 13px; bottom: 13px; min-width: 3px; background: var(--teal); border: 1px solid #08483f; }
.nc-editor-segment.active { background: var(--accent); border-color: var(--accent-dark); }
.nc-editor-handle { position: absolute; z-index: 2; top: 50%; width: 14px; height: 38px; padding: 0; transform: translate(-50%, -50%); border: 2px solid #fff; border-radius: 3px; background: var(--teal); box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: ew-resize; touch-action: none; }
.nc-editor-segment.active .nc-editor-handle { background: var(--accent-dark); }
.nc-editor-handle.start { left: 0; }
.nc-editor-handle.end { left: 100%; }
.nc-editor-playhead { position: absolute; z-index: 3; top: 0; bottom: 0; width: 2px; background: #14171a; pointer-events: none; }
.nc-editor-playhead::before { content: ""; position: absolute; top: 0; left: 50%; width: 8px; height: 8px; background: #14171a; transform: translateX(-50%); }
.nc-editor-subtitle-track { position: relative; height: 22px; margin-top: 5px; border: 1px solid var(--border); background: var(--bg-alt); }
.nc-editor-timeline-cue { position: absolute; top: 3px; bottom: 3px; min-width: 3px; padding: 0; border: 1px solid #724d12; border-radius: 2px; background: #e9b84c; cursor: pointer; }
.nc-editor-timeline-cue.active { background: #f27a55; border-color: #9c321e; }
.nc-editor-tools { display: grid; gap: 10px; margin-top: 14px; }
.nc-editor-range-fields { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
.nc-editor-range-fields label, .nc-editor-cue label { display: grid; gap: 4px; color: var(--muted); font-size: 11px; }
.nc-editor-range-fields input, .nc-editor-cue input, .nc-editor-cue textarea { min-width: 84px; padding: 8px 9px; border: 1px solid var(--border); border-radius: 6px; color: var(--ink); background: var(--surface); font-size: 13px; }
.nc-editor-range-fields input { width: 94px; font-variant-numeric: tabular-nums; }
.nc-editor-danger { color: #a43625; }
.nc-editor-subtitles-panel, .nc-editor-export-panel { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); }
.nc-editor-subtitle-list { display: grid; }
.nc-editor-cue { display: grid; grid-template-columns: 86px minmax(180px, 1fr) 90px 90px auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); }
.nc-editor-cue.active { background: var(--teal-soft); }
.nc-editor-cue-time { padding: 6px 0; border: 0; background: transparent; color: var(--teal); font-size: 12px; font-variant-numeric: tabular-nums; cursor: pointer; }
.nc-editor-cue label span { display: none; }
.nc-editor-cue textarea { width: 100%; min-height: 40px; resize: vertical; line-height: 1.35; }
.nc-editor-warning { grid-column: 2; color: #a43625; font-size: 11px; }
.nc-editor-cue input { width: 100%; }
.nc-editor-empty { padding: 12px 0; color: var(--muted); font-size: 13px; }
.nc-editor-export-row { justify-content: flex-start; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--border); }
.nc-editor-export-row > div { display: grid; gap: 4px; min-width: 150px; margin-right: auto; }
.nc-editor-export-row strong { font-size: 13px; }
.nc-editor-export-row span { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.nc-editor-export-video { width: 96px; max-height: 150px; aspect-ratio: 9 / 16; background: #141a19; }

@media (max-width: 980px) {
  .nc-editor-workspace { grid-template-columns: minmax(0, 1fr); }
  .nc-editor-stage { max-height: 58vh; }
  .nc-editor-cue { grid-template-columns: 75px minmax(120px, 1fr) 78px 78px auto; gap: 7px; }
}
@media (max-width: 620px) {
  .nc-editor-head { align-items: flex-start; flex-direction: column; }
  .nc-editor-head-actions { justify-content: flex-start; }
  .nc-editor-head-actions .nc-btn { padding: 8px 10px; }
  .nc-editor-stage { width: min(100%, 310px); max-height: 52vh; }
  .nc-editor-range-fields { align-items: stretch; }
  .nc-editor-range-fields label { flex: 1 1 88px; }
  .nc-editor-range-fields .nc-btn { flex: 1 1 145px; }
  .nc-editor-cue { grid-template-columns: 1fr 1fr auto; gap: 8px; }
  .nc-editor-cue-time { grid-column: 1 / -1; justify-self: start; }
  .nc-editor-cue label:nth-of-type(1) { grid-column: 1 / -1; }
  .nc-editor-cue label span { display: block; }
  .nc-editor-cue label:nth-of-type(2), .nc-editor-cue label:nth-of-type(3) { grid-row: 3; }
  .nc-editor-cue .nc-editor-danger { grid-column: 3; grid-row: 3; }
  .nc-editor-subtitle { font-size: 15px; }
  .nc-editor-warning { grid-column: 1 / -1; }
}


