#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;
}
/* Public display of the scheduled deletion date on the watch page. */
.video-lifecycle-deletion-date {
  margin-top: 0.5rem;
  font-size: 0.9em;
  opacity: 0.85;
}
/*
 * 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 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;
}

.video-lifecycle-notice__control {
  cursor: pointer;
}

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

.video-lifecycle-countdown__row {
  margin: 0.2rem 0;
}

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