/* Monerica Video — additions on top of the Monerica stylesheet (same tokens: --orange, --bg-card, …). */

#main-content .main.mv-main { max-width: 1280px; margin: 0 auto; padding-bottom: 2rem; }

.mv-brand {
  font-family: "Chakra Petch", var(--font-display, sans-serif);
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--orange);
  font-size: 0.85rem;
  margin-top: 0.25rem;
  text-shadow: var(--orange-neon);
}

.mv-h1 { margin: 0.6rem 0 0.4rem; text-wrap: balance; }
.mv-intro { color: var(--fg-muted); max-width: 70ch; margin: 0 0 1.25rem; }
.mv-empty, .mv-muted { color: var(--fg-dim); }
.mv-small { font-size: 0.85rem; }
.mv-mono { font-family: "Geist Mono", ui-monospace, monospace; }
.mv-prose { max-width: 70ch; }
.mv-inline { display: inline-flex; gap: 0.4rem; align-items: center; margin: 0; }
.mv-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.mv-w-80 { max-width: 80px; }
.mv-w-200 { max-width: 200px; }
.mv-w-300 { max-width: 300px; }

/* ---------- video grid & cards ---------- */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem 1rem;
}
.mv-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--fg);
  text-decoration: none;
}
.mv-card:hover .mv-card-title { color: var(--orange-bright); }
.mv-card:hover .mv-thumb { border-color: var(--orange-mid); box-shadow: 0 0 0 1px var(--orange-mid), 0 0 18px rgba(255, 102, 0, 0.18); }
.mv-card:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.mv-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.mv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mv-duration {
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font: 600 0.75rem/1 "Geist Mono", ui-monospace, monospace;
  padding: 3px 5px;
  border-radius: 3px;
  font-variant-numeric: tabular-nums;
}
.mv-card-title {
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mv-card-meta { color: var(--fg-dim); font-size: 0.82rem; }
.mv-pager { margin-top: 1.75rem; }
.mv-pager .pagination { flex-wrap: wrap; gap: 0.25rem; }
.mv-pager .page-item.active .page-link { border-color: var(--orange); color: var(--orange); }

/* ---------- watch page ---------- */
.mv-watch { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; align-items: start; }
.mv-player {
  background: #000;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  scroll-margin-top: 1rem;
}
.mv-player video { width: 100%; height: 100%; display: block; background: #000; }
.mv-watch-title { font-size: 1.45rem; margin: 0.9rem 0 0.35rem; text-wrap: balance; }
.mv-watch-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; color: var(--fg-muted); font-size: 0.9rem; }
.mv-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.9rem 0 1rem; }
.mv-btn-ghost { background: transparent; border: 1px solid var(--border-strong); color: var(--fg-muted); }
.mv-btn-ghost:hover { border-color: var(--orange); color: var(--orange-bright); }

.mv-chapters, .mv-description, .mv-comments {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin: 0 0 1rem;
}
.mv-chapters h2, .mv-comments h2, .mv-upnext h2 { font-size: 1.05rem; margin: 0 0 0.6rem; }
.mv-chapters ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.mv-chapters a { display: flex; gap: 0.7rem; padding: 0.3rem 0.4rem; border-radius: 4px; color: var(--fg); text-decoration: none; }
.mv-chapters a:hover { background: var(--orange-soft); }
.mv-chapters li.current a { background: var(--orange-soft); color: var(--orange-bright); }
.mv-ts { color: var(--orange); font-family: "Geist Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; min-width: 4.2ch; }
.mv-description summary { cursor: pointer; font-weight: 600; }
.mv-description-body { margin-top: 0.6rem; color: var(--fg-muted); line-height: 1.6; overflow-wrap: anywhere; }

.mv-upnext { display: grid; gap: 1rem; }
.mv-upnext .mv-card-title { font-size: 0.92rem; }

/* ---------- comments ---------- */
.mv-comment { border-top: 1px solid var(--border-divider); padding: 0.75rem 0; }
.mv-comment:first-of-type { border-top: 0; }
.mv-comment header { display: flex; gap: 0.6rem; align-items: center; font-size: 0.85rem; color: var(--fg-dim); }
.mv-fpr { font-family: "Geist Mono", ui-monospace, monospace; color: var(--cyan); }
.mv-mod-badge {
  background: var(--orange);
  color: #000;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
}
.mv-comment-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0.35rem 0; line-height: 1.55; }
.mv-replies { margin-left: 1.25rem; border-left: 2px solid var(--orange-mid); padding-left: 0.9rem; }
.mv-linkbtn { background: none; border: 0; padding: 0; color: var(--cyan); cursor: pointer; font: inherit; font-size: 0.85rem; }
.mv-linkbtn:hover { color: var(--cyan-hover); text-decoration: underline; }
.mv-reply-form { margin: 0; }
.mv-comment-start { margin-top: 1rem; display: grid; gap: 0.5rem; justify-items: start; }

/* ---------- comment flow ---------- */
.mv-crumb { color: var(--fg-muted); margin: 0 0 0.5rem; }
.mv-steps { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 0 0 1.2rem; }
.mv-steps li { padding: 0.25rem 0.6rem; border: 1px solid var(--border); border-radius: 999px; font-size: 0.82rem; color: var(--fg-dim); }
.mv-steps li.done { color: var(--green); border-color: rgba(24, 255, 109, 0.35); }
.mv-steps li.now { color: var(--orange-bright); border-color: var(--orange); background: var(--orange-soft); }
.mv-form { max-width: 640px; display: grid; gap: 0.25rem; }
.mv-form-wide { max-width: 900px; }
.mv-form .form-group > small { display: block; color: var(--fg-dim); margin-top: 0.25rem; }
.mv-captcha { border-radius: 4px; }
.mv-cipher {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.8rem;
  font-size: 0.78rem;
  max-width: 76ch;
  user-select: all;
}
.mv-quote { border-left: 3px solid var(--orange-mid); margin: 0 0 1rem; padding: 0.3rem 0.8rem; color: var(--fg-muted); }
.mv-alert { padding: 0.6rem 0.9rem; border-radius: 6px; margin: 0 0 1rem; }

/* ---------- admin ---------- */
.mv-admin-nav { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin: 0 0 1.2rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--border); }
.mv-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.mv-kpi { display: grid; gap: 0.2rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 0.8rem; color: var(--fg); text-decoration: none; }
.mv-kpi-n { font: 600 1.5rem/1.1 "Chakra Petch", sans-serif; font-variant-numeric: tabular-nums; }
.mv-kpi-l { color: var(--fg-dim); font-size: 0.8rem; }
.mv-kpi-alert { border-color: var(--orange); box-shadow: var(--orange-neon); }
.mv-bars {
  display: grid;
  grid-template-columns: repeat(30, minmax(0, 1fr));
  gap: 3px;
  height: 170px;
  align-items: end;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.4rem 0.6rem 1.6rem;
  margin-bottom: 1.5rem;
}
.mv-bar { position: relative; height: 100%; display: flex; align-items: flex-end; }
.mv-bar-fill { width: 100%; min-height: 1px; background: linear-gradient(to top, var(--orange), var(--orange-bright)); border-radius: 2px 2px 0 0; box-shadow: 0 0 8px rgba(255, 102, 0, 0.35); }
.mv-bar-n { position: absolute; top: -1.1rem; left: 50%; transform: translateX(-50%); font-size: 0.62rem; color: var(--fg-muted); white-space: nowrap; }
.mv-bar-d { position: absolute; bottom: -1.3rem; left: 50%; transform: translateX(-50%); font-size: 0.62rem; color: var(--fg-dim); }
.mv-table-wrap { overflow-x: auto; margin-bottom: 1.5rem; }
.mv-table { width: 100%; font-size: 0.88rem; }
.mv-table .num, .mv-cat-row .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mv-mini-thumb { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; display: block; }
.mv-admin-comment { padding: 0.9rem; margin-bottom: 0.9rem; }
.mv-admin-actions { display: flex; gap: 0.5rem; margin: 0.4rem 0; }
.mv-admin-reply { display: grid; gap: 0.4rem; justify-items: start; }
.mv-cat-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.mv-cat-row .form-control { flex: 1 1 180px; }
.mv-filter { margin-bottom: 1rem; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .mv-watch { grid-template-columns: minmax(0, 1fr); }
  .mv-upnext { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .mv-upnext h2 { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .mv-grid { grid-template-columns: minmax(0, 1fr); }
  .mv-watch-title { font-size: 1.2rem; }
  .mv-bars { gap: 1px; padding-inline: 0.3rem; }
  .mv-bar-n { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mv-thumb { transition: none; }
}
