#json-categories-as-text {
  border: 1px solid #c6c6c6;
  color: var(--textareaForegroundColor);
  padding: 5px 15px;
  background-color: var(--markdownTextareaBackgroundColor);
  font-family: monospace;
  font-size: 13px;
  border-bottom: 0;
  border-radius: 3px 3px unset unset;
  width: 100%;
}

#json-categories-as-text.error {
  border-color: red;
  color: red;
  border-bottom: 1px solid;
}

#categories-table th {
  border-color: currentcolor;
  border-bottom: none;
  border: var(--submenuBackgroundColor);
  border-bottom: 1px solid var(--submenuBackgroundColor);
  padding: 5px;
  font-weight: 600;
  color: var(--mainForegroundColor);
}

#categories-table tr {
  outline: 0;
  background-color: var(--mainBackgroundColor);
}

#categories-table tbody tr:nth-child(odd) {
  background-color: var(--submenuBackgroundColor);
}

#categories-table td {
  padding: 5px;
}

#categories-table .category__deleted {
  text-decoration: line-through;
  color: red;
}

#categories-table .category__added {
  color: green;
}

/* Override `.vjs-menu li { text-transform: lowercase; }`, from video-js.css */
#peertube-plugin-chapters-menu li {
	text-transform: none;
}

#peertube-plugin-chapters-menu {
	width: max-content;
	max-width: 18em;
	max-height: 20em;
}

#peertube-plugin-chapters-menu li:not(:first-child) {
	padding-left: 1em;
	padding-right: 1em;
	text-align: left;
}
/*
 * Styles for the plugin's client surfaces. PeerTube loads this file globally
 * (declared under `css` in package.json), so every selector is namespaced with
 * `video-lifecycle-` — these rules live in the same cascade as the core app.
 *
 * `--mainColor` is PeerTube's own accent variable: using it keeps the notices
 * on-theme across instances, and the fallback covers a theme that does not
 * define it. Everything else inherits, so a notice picks up the surrounding
 * font and colours rather than imposing its own.
 *
 * The buttons are not styled here at all. They carry core's own
 * `peertube-button` / `primary-button` classes, emitted globally by
 * `class-helpers/_buttons.scss`, so they follow the instance's theme instead of
 * a look of ours that would drift from it. What is left below is placement.
 */

/* ── The inline notice, shared by the watch page and the account warning ──── */
.video-lifecycle-notice {
  margin: 0.5rem 0;
  padding: 0.4rem 0.75rem;
  border-left: 3px solid var(--mainColor, #f2690d);
  font-size: 0.9em;
}

.video-lifecycle-notice__link,
.video-lifecycle-notice__control {
  margin-left: 0.75rem;
}

/* ── The countdown page: the list of videos scheduled for deletion ────────── */
.video-lifecycle-countdown__row {
  margin: 0.2rem 0;
}

.video-lifecycle-countdown__keep {
  margin-left: 0.5rem;
}

/* The rule the page applies, stated above the list. Set apart from the videos
   themselves — it is context, not something to act on. */
.video-lifecycle-countdown__rule {
  margin-bottom: 1rem;
  font-size: 0.9em;
}

/* The note under a declaration that can no longer be changed. Sits with the
   field's own description rather than announcing itself as a warning: nothing
   went wrong, the answer is simply settled. */
.video-lifecycle-frozen-note {
  margin: 0.25rem 0 0;
  font-size: 0.9em;
}
