/* watch.mcnu.ro, on top of the mcnu design system (mcnu.css).
   The accent is the red of a record light, per theme so it reads on light and dark paper. */
:root { --accent: #c5341c; --accent-ink: #ffffff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) { --accent: #ff7d61; --accent-ink: #2a0d06; } }
:root[data-theme='dark'] { --accent: #ff7d61; --accent-ink: #2a0d06; }
:root[data-theme='light'] { --accent: #c5341c; --accent-ink: #ffffff; }

/* ---------- page ---------- */
.w-wrap {
  max-width: 84rem;
  margin-inline: auto;
  padding-inline: clamp(14px, 3.5vw, 40px);
  padding-block: clamp(1.25rem, 3.5vh, 2rem) clamp(2rem, 6vh, 3.5rem);
}
.w-wrap .mc-topline { margin-bottom: clamp(1.25rem, 3.5vh, 2rem); }
.w-nav { color: var(--muted); text-decoration: none; margin-right: 0.6em; transition: color 0.2s ease; }
.w-nav:hover { color: var(--ink); }
.w-linkbtn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--faint);
  cursor: pointer;
  transition: color 0.2s ease;
}
.w-linkbtn:hover { color: var(--ink); }
.w-error { margin: 0.9rem 0 0; color: var(--error); font-size: 0.98rem; }
.w-login { display: flex; gap: 0.5rem; margin-top: 1.75rem; }
.w-login .mc-field { flex: 1; min-width: 0; }
.mc-btn.is-danger { color: var(--error); }
.mc-btn.is-danger:hover { border-color: var(--error); color: var(--error); }
.mc-btn.is-small { padding: 0.5rem 0.75rem; font-size: 0.9rem; }
.mc-btn svg { width: 1.05em; height: 1.05em; flex: none; }

/* ---------- watch layout ---------- */
.w-watch { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2rem); }
.w-main { min-width: 0; }
@media (min-width: 70rem) {
  .w-watch.has-side { grid-template-columns: minmax(0, 1fr) 21.5rem; align-items: start; }
  .w-side { position: sticky; top: 1rem; max-height: calc(100dvh - 2rem); }
}
.w-head { margin-top: clamp(1rem, 2.5vw, 1.4rem); }
.w-title {
  margin: 0;
  color: var(--ink);
  font: 600 clamp(1.35rem, 1.1rem + 1.1vw, 1.85rem) / 1.18 var(--font-text);
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}
.w-title[contenteditable] {
  margin-inline: -0.35rem;
  padding: 0.1rem 0.35rem;
  border-radius: 8px;
  outline: none;
  cursor: text;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}
.w-title[contenteditable]:hover { background: var(--tile); }
.w-title[contenteditable]:focus { background: var(--raised); box-shadow: 0 0 0 1.5px var(--accent); }
.w-meta { margin: 0.5rem 0 0; }
.w-desc {
  margin: 0.8rem 0 0;
  max-width: 46rem;
  color: var(--soft);
  font-size: 1rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.w-desc[contenteditable] {
  margin-inline: -0.35rem;
  padding: 0.15rem 0.35rem;
  border-radius: 8px;
  outline: none;
  cursor: text;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}
.w-desc[contenteditable]:hover { background: var(--tile); }
.w-desc[contenteditable]:focus { background: var(--raised); box-shadow: 0 0 0 1.5px var(--accent); }
.w-desc[contenteditable]:empty::before { content: attr(data-placeholder); color: var(--faint); }
.w-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 1.1rem;
}
.w-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.w-react { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.w-react button {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  font-size: 1.2rem;
  line-height: 1;
  background: var(--tile);
  border: 1px solid var(--hair);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.18s var(--ease), border-color 0.18s ease;
}
.w-react button:hover { transform: translateY(-2px) scale(1.08); border-color: var(--field); }
.w-react button:active { transform: scale(0.92); }

/* ---------- status card (recording, processing, failed, locked) ---------- */
.w-status {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.6rem;
  aspect-ratio: 16 / 9;
  max-height: 78vh;
  width: 100%;
  padding: 1.5rem;
  text-align: center;
  background: var(--raised);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
}
.w-status h2 { margin: 0; color: var(--ink); font: 600 clamp(1.15rem, 1rem + 0.8vw, 1.5rem) / 1.2 var(--font-text); }
.w-status p { margin: 0; max-width: 30rem; }
.w-status form { display: flex; gap: 0.5rem; width: min(22rem, 100%); margin-top: 0.6rem; }
.w-status form .mc-field { flex: 1; min-width: 0; }
.w-dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--accent); }
.w-status[data-kind='recording'] .w-dot { animation: w-pulse 1.4s ease-in-out infinite; }
.w-status[data-kind='processing'] .w-dot {
  width: 1.4rem;
  height: 1.4rem;
  background: none;
  border: 2px solid var(--hair);
  border-top-color: var(--accent);
  animation: w-spin 0.8s linear infinite;
}
.w-status[data-kind='failed'] .w-dot { background: var(--error); }
.w-status[data-kind='locked'] .w-dot { background: var(--field); }
@keyframes w-pulse { 50% { opacity: 0.3; transform: scale(0.8); } }
@keyframes w-spin { to { transform: rotate(360deg); } }

/* ---------- player ---------- */
.pl {
  --pl-accent: #ff7d61;
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: var(--ar, 16 / 9);
  max-height: 78vh;
  overflow: hidden;
  background: #000;
  border-radius: var(--radius);
  color: #fff;
  font: 500 0.8rem / 1 var(--font-mono);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.pl:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius); }
.pl video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.pl:fullscreen { max-height: none; aspect-ratio: auto; width: 100vw; height: 100vh; border-radius: 0; }
.pl[data-ui='off'] { cursor: none; }

.pl-big {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  margin: auto;
  width: clamp(3.5rem, 9vw, 5rem);
  height: clamp(3.5rem, 9vw, 5rem);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 20, 22, 0.72);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: transform 0.2s var(--ease), opacity 0.2s ease, background-color 0.2s ease;
}
.pl-big:hover { transform: scale(1.06); background: var(--pl-accent); color: #2a0d06; }
.pl-big svg { width: 44%; height: 44%; margin-left: 6%; fill: currentColor; }
.pl[data-state='playing'] .pl-big, .pl[data-state='waiting'] .pl-big { opacity: 0; pointer-events: none; transform: scale(0.85); }
.pl-wait {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 2.6rem;
  height: 2.6rem;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: w-spin 0.8s linear infinite;
  transition: opacity 0.2s ease 0.25s;
}
.pl[data-state='waiting'] .pl-wait { opacity: 1; }

.pl-bar {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 2.5rem 0.75rem 0.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.42) 55%, transparent);
  transition: opacity 0.25s ease, transform 0.25s var(--ease);
}
.pl[data-ui='off'] .pl-bar { opacity: 0; transform: translateY(6px); pointer-events: none; }

.pl-seek { position: relative; height: 1.25rem; cursor: pointer; touch-action: none; outline: none; }
.pl-track {
  position: absolute;
  inset: 50% 0 auto 0;
  height: 4px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.26);
  border-radius: 99px;
  overflow: hidden;
  transition: height 0.15s ease;
}
.pl-seek:hover .pl-track, .pl-seek.is-dragging .pl-track, .pl-seek:focus-visible .pl-track { height: 6px; }
.pl-buf, .pl-fill { position: absolute; inset: 0 auto 0 0; width: 0; }
.pl-buf { background: rgba(255, 255, 255, 0.3); }
.pl-fill { background: var(--pl-accent); }
.pl-knob {
  position: absolute;
  top: 50%;
  left: 0;
  width: 13px;
  height: 13px;
  margin: -6.5px 0 0 -6.5px;
  background: #fff;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.15s var(--ease);
}
.pl-seek:hover .pl-knob, .pl-seek.is-dragging .pl-knob, .pl-seek:focus-visible .pl-knob { transform: scale(1); }
.pl-marks { position: absolute; inset: 0; pointer-events: none; }
.pl-mark {
  position: absolute;
  bottom: 100%;
  transform: translateX(-50%);
  font-size: 0.82rem;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}
.pl-mark.is-comment {
  bottom: auto;
  top: 50%;
  width: 3px;
  height: 9px;
  margin-top: -4.5px;
  background: #fff;
  border-radius: 2px;
}
.pl-tip {
  position: absolute;
  bottom: calc(100% + 0.9rem);
  left: 0;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}
.pl-seek:hover .pl-tip, .pl-seek.is-dragging .pl-tip { opacity: 1; }
.pl-tip-img {
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  background-color: #111;
  background-repeat: no-repeat;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}
.pl-tip-time { padding: 0.25rem 0.4rem; background: rgba(20, 20, 22, 0.9); border-radius: 5px; font-variant-numeric: tabular-nums; }

.pl-row { display: flex; align-items: center; gap: 0.15rem; margin-top: 0.1rem; }
.pl-btn {
  display: grid;
  place-items: center;
  flex: none;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.4rem;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.pl-btn:hover { background: rgba(255, 255, 255, 0.16); }
.pl-btn:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.pl-btn svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.pl-time { margin-left: 0.4rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-time span { opacity: 0.65; }
.pl-gap { flex: 1; }
.pl-vol { width: 4.5rem; height: 1.5rem; margin: 0 0.3rem 0 0; accent-color: #fff; cursor: pointer; }
.pl-speed { position: relative; }
.pl-speed-btn { min-width: 3rem; font-variant-numeric: tabular-nums; }
.pl-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.5rem);
  display: grid;
  min-width: 9.5rem;
  padding: 0.3rem;
  background: rgba(24, 24, 27, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.pl-menu button {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.6rem;
  border: 0;
  border-radius: 6px;
  background: none;
  color: #fff;
  font: inherit;
  font-variant-numeric: tabular-nums;
  text-align: left;
  cursor: pointer;
}
.pl-menu button span { opacity: 0.55; }
.pl-menu button:hover { background: rgba(255, 255, 255, 0.12); }
.pl-menu button[aria-checked='true'] { color: var(--pl-accent); }
.pl-float {
  position: absolute;
  bottom: 4.2rem;
  z-index: 1;
  font-size: 1.9rem;
  pointer-events: none;
  animation: pl-float 1.9s var(--ease) forwards;
}
@keyframes pl-float {
  0% { opacity: 0; transform: translate(-50%, 12px) scale(0.5); }
  15% { opacity: 1; transform: translate(-50%, 0) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%, -110px) scale(1); }
}
@media (max-width: 34rem) {
  .pl-vol, .pl-pip { display: none; }
  .pl-bar { padding-inline: 0.4rem; }
}

/* ---------- comments ---------- */
.w-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: color-mix(in srgb, var(--raised) 60%, transparent);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
}
.c-head { display: flex; align-items: baseline; gap: 0.5rem; padding: 1rem 1.1rem 0.8rem; border-bottom: 1px solid var(--hair); }
.c-list { flex: 1; min-height: 4rem; margin: 0; padding: 0.3rem 1.1rem; overflow-y: auto; list-style: none; scrollbar-width: thin; }
.c-empty { margin: 0; padding: 1.2rem 0; font-size: 0.95rem; color: var(--faint); }
.c-item { padding: 0.8rem 0; border-bottom: 1px solid var(--hair); }
.c-item:last-child { border-bottom: 0; }
.c-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.5rem; font-size: 0.95rem; }
.c-author { color: var(--ink); font-weight: 600; }
.c-when { font: 400 var(--fs-meta) / 1.3 var(--font-mono); color: var(--faint); }
.c-time {
  padding: 0.16em 0.5em;
  font: 500 var(--fs-meta) / 1.3 var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 999px;
  cursor: pointer;
}
.c-time:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.c-del { margin-left: auto; padding: 0 0.3rem; border: 0; background: none; color: var(--faint); font-size: 1.1rem; line-height: 1; cursor: pointer; opacity: 0; transition: opacity 0.15s ease, color 0.15s ease; }
.c-item:hover .c-del, .c-del:focus-visible { opacity: 1; }
.c-del:hover { color: var(--error); }
@media (hover: none) { .c-del { opacity: 1; } }
.c-body { margin: 0.3rem 0 0; color: var(--soft); font-size: 0.98rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.c-form { display: grid; gap: 0.5rem; padding: 0.9rem 1.1rem 1.1rem; border-top: 1px solid var(--hair); }
.c-form .mc-field { font-size: 0.98rem; padding: 0.6rem 0.75rem; }
.c-form textarea { min-height: 4.2rem; resize: vertical; font-family: var(--font-text); }
.c-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.c-at { display: inline-flex; align-items: center; gap: 0.45em; font: 400 var(--fs-meta) / 1.3 var(--font-mono); color: var(--muted); cursor: pointer; }
.c-at input { accent-color: var(--accent); margin: 0; }
.c-at b { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink); }

/* ---------- owner tools ---------- */
.w-owner { margin-top: clamp(1.25rem, 3vw, 1.75rem); }
.w-owner > .mc-label { display: block; margin-bottom: 0.9rem; }
.o-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.6rem; }
.w-owner > .o-row ~ .o-row { margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--hair); }
.trim:not([hidden]) { margin-top: 0.9rem; }
.o-row .mc-field { flex: 1 1 11rem; min-width: 0; max-width: 16rem; padding: 0.5rem 0.75rem; font-size: 0.95rem; }
.o-check { display: inline-flex; align-items: center; gap: 0.5em; margin-right: 0.75rem; font-size: 0.95rem; color: var(--soft); cursor: pointer; }
.o-check input { accent-color: var(--accent); margin: 0; }
.o-note { font-size: 0.95rem; color: var(--muted); }
.o-push { margin-left: auto; }
.o-viewers { width: 100%; margin: 0; padding: 0; list-style: none; font: 400 var(--fs-meta) / 1.5 var(--font-mono); color: var(--muted); }
.o-viewers li { display: flex; gap: 1rem; justify-content: space-between; padding: 0.3rem 0; }
.o-viewers li + li { border-top: 1px dashed var(--hair); }
.o-viewers b { font-weight: 500; color: var(--ink); }

/* trim */
.trim { width: 100%; }
.trim-strip {
  position: relative;
  height: 3.25rem;
  margin: 0.2rem 0.5rem 0.7rem;
  background: var(--tile);
  border-radius: 8px;
  touch-action: none;
}
.trim-frames { position: absolute; inset: 0; display: flex; overflow: hidden; border-radius: 8px; }
.trim-frames i { flex: 1; background-repeat: no-repeat; }
.trim-shade { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--paper) 78%, transparent); }
.trim-shade.is-left { left: 0; border-radius: 8px 0 0 8px; }
.trim-shade.is-right { right: 0; border-radius: 0 8px 8px 0; }
.trim-range { position: absolute; top: -2px; bottom: -2px; border: 2px solid var(--accent); border-radius: 8px; pointer-events: none; }
.trim-handle {
  position: absolute;
  top: -5px;
  bottom: -5px;
  width: 1rem;
  margin-left: -0.5rem;
  padding: 0;
  background: var(--accent);
  border: 0;
  border-radius: 5px;
  cursor: ew-resize;
  touch-action: none;
}
.trim-handle::after { content: ''; position: absolute; inset: 30% 45%; background: var(--accent-ink); border-radius: 2px; }
.trim-play { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--ink); pointer-events: none; }
.trim-info { font: 400 var(--fs-meta) / 1.4 var(--font-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.trim-info b { font-weight: 500; color: var(--ink); }

/* ---------- library ---------- */
.lib-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 1.5rem; }
.lib-tools { display: flex; gap: 0.5rem; flex: 1 1 20rem; max-width: 30rem; }
.lib-tools .mc-field { flex: 1; min-width: 0; padding: 0.62rem 0.85rem; font-size: 0.98rem; }
.lib-tools .mc-btn { white-space: nowrap; }
.lib-summary { margin: 0.9rem 0 0; }
.lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr));
  gap: clamp(1.1rem, 2.4vw, 1.75rem) clamp(0.9rem, 2vw, 1.4rem);
  margin-top: clamp(1.25rem, 3.5vh, 2rem);
}
.lib-card { min-width: 0; }
.lib-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--tile);
  border: 1px solid var(--hair);
  border-radius: 14px;
  transition: border-color 0.18s ease, transform 0.25s var(--ease);
}
.lib-card:hover .lib-thumb { border-color: var(--field); }
.lib-thumb img, .lib-scrub { position: absolute; inset: 0; width: 100%; height: 100%; }
.lib-thumb img { object-fit: cover; }
.lib-scrub { background-repeat: no-repeat; background-color: #000; opacity: 0; }
.lib-thumb.is-scrubbing .lib-scrub { opacity: 1; }
.lib-progress { position: absolute; inset: auto 0 0 0; height: 3px; background: rgba(255, 255, 255, 0.25); opacity: 0; }
.lib-progress i { display: block; height: 100%; width: 0; background: var(--accent); }
.lib-thumb.is-scrubbing .lib-progress { opacity: 1; }
.lib-dur, .lib-state {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  padding: 0.22rem 0.42rem;
  font: 500 0.72rem / 1 var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: rgba(15, 15, 17, 0.78);
  border-radius: 5px;
}
.lib-state { left: 0.5rem; right: auto; display: inline-flex; align-items: center; gap: 0.4em; }
.lib-state::before { content: ''; width: 0.5em; height: 0.5em; border-radius: 50%; background: #ff7d61; animation: w-pulse 1.4s ease-in-out infinite; }
.lib-state.is-failed::before { animation: none; background: #ff8f85; }
.lib-thumb.is-scrubbing .lib-dur { opacity: 0; }
.lib-info { display: flex; align-items: flex-start; gap: 0.5rem; margin-top: 0.65rem; }
.lib-text { flex: 1; min-width: 0; }
.lib-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--ink);
  font: 600 1rem / 1.3 var(--font-text);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.lib-title:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.lib-meta { margin: 0.25rem 0 0; font: 400 var(--fs-meta) / 1.5 var(--font-mono); color: var(--faint); }
.lib-acts { display: flex; flex: none; margin: -0.2rem -0.3rem 0 0; }
.lib-act {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--faint);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.lib-act:hover { color: var(--ink); background: var(--tile); }
.lib-act.is-danger:hover { color: var(--error); }
.lib-act svg { width: 1rem; height: 1rem; }
.lib-empty { grid-column: 1 / -1; max-width: 40rem; }
.lib-empty h2 { margin: 0 0 0.5rem; color: var(--ink); font: 600 1.25rem / 1.25 var(--font-text); }
.lib-empty ol { margin: 0.75rem 0 0; padding-left: 1.2rem; }
.lib-empty li { margin: 0.3rem 0; }
.lib-empty code, .w-code { padding: 0.1em 0.4em; font: 400 0.9em var(--font-mono); color: var(--ink); background: var(--tile); border-radius: 5px; }
.lib-upload { display: flex; align-items: center; gap: 0.9rem; margin-top: 1rem; padding: 0.8rem 1rem; font-size: 0.95rem; }
.lib-upload progress { flex: 1; height: 6px; accent-color: var(--accent); }
.lib-upload .mc-meta { white-space: nowrap; }
body.is-dropping::after {
  content: 'Lasă fișierul aici';
  position: fixed;
  inset: 0.75rem;
  z-index: 50;
  display: grid;
  place-items: center;
  font: 600 1.4rem var(--font-text);
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  pointer-events: none;
}

/* ---------- toast, dialog ---------- */
.w-toasts { position: fixed; inset: auto 0 1.25rem 0; z-index: 60; display: grid; justify-items: center; gap: 0.5rem; pointer-events: none; }
.w-toast {
  max-width: min(28rem, calc(100vw - 2rem));
  padding: 0.7rem 1rem;
  font: 500 0.92rem / 1.35 var(--font-text);
  color: var(--paper);
  background: var(--ink);
  border-radius: 10px;
  box-shadow: 0 8px 28px var(--shadow);
  animation: w-toast-in 0.25s var(--ease);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.w-toast.is-leaving { opacity: 0; transform: translateY(8px); }
@keyframes w-toast-in { from { opacity: 0; transform: translateY(10px); } }
.w-dialog {
  width: min(26rem, calc(100vw - 2rem));
  padding: 1.4rem;
  color: var(--muted);
  background: var(--raised);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px var(--shadow);
}
.w-dialog::backdrop { background: rgba(10, 10, 12, 0.5); backdrop-filter: blur(3px); }
.w-dialog h2 { margin: 0 0 0.4rem; color: var(--ink); font: 600 1.2rem / 1.25 var(--font-text); }
.w-dialog p { margin: 0; font-size: 0.98rem; line-height: 1.5; }
.w-dialog menu { display: flex; justify-content: flex-end; gap: 0.5rem; margin: 1.25rem 0 0; padding: 0; }

/* ---------- embed ---------- */
body.is-embed { background: #000; min-height: 0; }
.w-embed { display: grid; place-items: center; width: 100vw; height: 100dvh; }
.w-embed .pl { max-height: none; height: 100%; aspect-ratio: auto; border-radius: 0; }
.w-embed .w-status { max-height: none; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; }
.w-embed-title {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  padding: 0.8rem 1rem 2rem;
  overflow: hidden;
  font: 600 0.95rem / 1.3 var(--font-text);
  color: #fff;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
  transition: opacity 0.25s ease;
}
.pl[data-ui='off'] .w-embed-title { opacity: 0; }
