:root{ --va-bg-dark:#0b0b0f; --va-bg-edit:#0d1117; --va-bg-row:#111827; --va-border:#1f2937; --va-text:#e5e7eb; --va-text-weak:#9ca3af; }

/* Editor: wrap wider + independent theme */
.vidapi-schedule-editor-wrap{ overflow-x:auto; }
.vidapi-schedule-editor{ min-width: 1200px; }

/* Add-rows toolbar */
.vidapi-addrows{ margin:8px 0 10px; }

/* Light editor (default) */
.vidapi-schedule-editor-wrap:not(.is-dark) .vidapi-schedule-editor table{ background:#fff; color:#111; }
.vidapi-schedule-editor-wrap:not(.is-dark) .vidapi-schedule-editor th{ background:#f3f4f6; color:#111; border:1px solid #e5e7eb; }
.vidapi-schedule-editor-wrap:not(.is-dark) .vidapi-schedule-editor td{ background:#fff; border:1px solid #e5e7eb; }
.vidapi-schedule-editor-wrap:not(.is-dark) .vidapi-schedule-editor input[type="text"]{ background:#fff; color:#111; border-color:#d1d5db; }
.vidapi-schedule-editor-wrap:not(.is-dark) .vidapi-table .vidapi-drag{ color:#6b7280; }

/* Dark editor (only when Editor Theme = Dark) */
.vidapi-schedule-editor-wrap.is-dark{ background:var(--va-bg-edit); }
.vidapi-schedule-editor-wrap.is-dark .vidapi-schedule-editor{ color:var(--va-text); }
.vidapi-schedule-editor-wrap.is-dark .vidapi-schedule-editor table{ background:var(--va-bg-edit); color:var(--va-text); border-collapse:collapse; width:100%; }
.vidapi-schedule-editor-wrap.is-dark .vidapi-schedule-editor th{ background:var(--va-bg-row); color:#fff; border:1px solid var(--va-border); }
.vidapi-schedule-editor-wrap.is-dark .vidapi-schedule-editor td{ background:var(--va-bg-edit); border:1px solid var(--va-border); }
.vidapi-schedule-editor-wrap.is-dark .vidapi-schedule-editor input[type="text"]{ background:var(--va-bg-row); color:var(--va-text); border-color:var(--va-border); }
.vidapi-schedule-editor-wrap.is-dark .vidapi-schedule-editor input[type="text"]::placeholder{ color:var(--va-text-weak); }
.vidapi-schedule-editor-wrap.is-dark .vidapi-table .vidapi-drag{ color:var(--va-text-weak); }

/* Make move buttons/icons white on dark */
.vidapi-schedule-editor-wrap.is-dark .vidapi-move .components-button,
.vidapi-schedule-editor-wrap.is-dark .vidapi-move .components-icon-button,
.vidapi-schedule-editor-wrap.is-dark .vidapi-move .components-button.is-secondary{
  color:#fff !important;
  border-color:rgba(255,255,255,.25) !important;
  background:rgba(255,255,255,.06) !important;
}
.vidapi-schedule-editor-wrap.is-dark .vidapi-move .components-button:hover{
  background:rgba(255,255,255,.12) !important;
}
.vidapi-schedule-editor-wrap.is-dark .vidapi-move .dashicons{
  color:#fff !important;
}

/* Front-end theme remains separate */
.vidapi-schedule-player[data-theme="dark"]{ background:var(--va-bg-dark); color:#fff; }
.vidapi-schedule-player[data-theme="dark"] .vidapi-overlay{ color:#fff; text-shadow:0 1px 1px rgba(0,0,0,.5); }
.vidapi-schedule-player[data-theme="dark"] video{ background:#000; }

/* Unmute button on dark */
.vidapi-schedule-player[data-theme="dark"] .vidapi-volbtn{
  background:rgba(255,255,255,.08) !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.15) !important;
  border-radius:6px; padding:6px 10px;
}
.vidapi-schedule-player[data-theme="dark"] .vidapi-volbtn:hover{ background:rgba(255,255,255,.18) !important; }

/* Light front-end default */
.vidapi-schedule-player[data-theme="light"]{ background:#000; color:#111; }