:root {
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255,255,255,0.7);
  --accent: #ff2e63;
  --card: #111;
  --line: rgba(255,255,255,0.12);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
button, a { -webkit-tap-highlight-color: transparent; }
button:focus, a:focus, [role="slider"]:focus { outline: none; }
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
body { height: 100dvh; overflow: hidden; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

/* ---------- Feed page ---------- */
.feed-body { position: relative; }

.top-bar {
  position: fixed; top: 0; left: 0; right: 0;
  padding: calc(var(--safe-top) + 10px) 16px 10px;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 20;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0));
  pointer-events: none;
}
.top-bar > * { pointer-events: auto; }
.brand {
  font-weight: 800; letter-spacing: -0.02em; font-size: 18px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.top-bar-left { display: inline-flex; gap: 10px; align-items: center; pointer-events: auto; }
.top-bar-right { display: inline-flex; gap: 8px; align-items: center; pointer-events: auto; }
.timer {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,0.78);
  background: rgba(0,0,0,0.4);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  letter-spacing: 0.04em;
}
.timer:active { transform: scale(0.95); }
.timer.warn { color: #ffd166; border-color: rgba(255,209,102,0.4); }
.timer.alert { color: #ff6b6b; border-color: rgba(255,107,107,0.5); }
.admin-link, .fx-btn {
  color: #fff; background: rgba(0,0,0,0.35);
  border-radius: 999px; width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 0;
}
.fx-btn { font-family: inherit; }
.fx-btn:active { transform: scale(0.92); }
.fx-label {
  position: fixed;
  top: calc(var(--safe-top) + 56px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  z-index: 26;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  animation: fx-label-pop 220ms ease-out;
}
@keyframes fx-label-pop {
  from { opacity: 0; transform: translate(-50%, -8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- Acid Party ----------
   One intense toggle: fast zoom in/out bursts on a different rhythm to a fast hue cycle. */
.fx-acid-party .reel video {
  animation: acid-zoom 0.45s ease-in-out infinite, acid-hue 0.7s linear infinite;
  transform-origin: center;
}
@keyframes acid-zoom {
  0%   { transform: scale(1)    rotate(0deg); }
  25%  { transform: scale(1.32) rotate(-3deg); }
  50%  { transform: scale(0.86) rotate(2deg); }
  75%  { transform: scale(1.22) rotate(-1deg); }
  100% { transform: scale(1)    rotate(0deg); }
}
@keyframes acid-hue {
  from { filter: hue-rotate(0deg)   saturate(2.8) contrast(1.25); }
  to   { filter: hue-rotate(360deg) saturate(2.8) contrast(1.25); }
}
/* Strobe-y background flash so it feels like a party even on quote cards */
.fx-acid-party {
  animation: acid-bg-flash 0.35s steps(2) infinite;
}
@keyframes acid-bg-flash {
  0%   { background: #000; }
  50%  { background: #1a001f; }
  100% { background: #001a1f; }
}
.fx-btn.active {
  background: linear-gradient(45deg, #ff00cc, #00ffff);
  border-color: rgba(255,255,255,0.6);
  animation: acid-hue 0.7s linear infinite;
}

.feed {
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.feed::-webkit-scrollbar { display: none; }

.reel {
  position: relative;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #000;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.reel video, .reel .thumb {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  background: #000;
}
.reel .thumb {
  object-fit: cover;
  filter: blur(30px) brightness(0.6) saturate(1.2);
  transform: scale(1.1);
}
.reel video {
  object-fit: contain;
  z-index: 1;
  opacity: 0;
  transition: opacity 60ms linear;
}
.reel.ready video,
.reel.primed video { opacity: 1; }

/* ---------- Quote reels ---------- */
.reel.quote-reel .quote-wrap {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px 32px calc(var(--safe-bottom) + 96px);
  z-index: 2;
}
.reel.quote-reel .quote-mark {
  font-family: "Iowan Old Style", Georgia, "Times New Roman", serif;
  font-size: 140px;
  line-height: 0.5;
  color: rgba(255,255,255,0.15);
  margin-bottom: 8px;
}
.reel.quote-reel .quote-text {
  font-family: "Iowan Old Style", "Apple Garamond", Georgia, serif;
  font-size: clamp(22px, 5.8vw, 32px);
  line-height: 1.42;
  color: #fff;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.reel.quote-reel .quote-author {
  margin-top: 26px;
  font-size: 15px;
  font-style: italic;
  color: rgba(255,255,255,0.72);
}
.reel.quote-reel .quote-author::before { content: "— "; }
.reel.quote-reel .quote-overlay { background: none; padding-bottom: calc(var(--safe-bottom) + 16px); }
/* Non-video reels have no audio or scrub bar */
.reel.quote-reel .right-rail,
.reel.quote-reel .progress,
.reel.quote-reel .loading,
.reel.quote-reel .play-indicator,
.reel.quiz-reel .right-rail,
.reel.quiz-reel .progress,
.reel.quiz-reel .loading,
.reel.quiz-reel .play-indicator,
.reel.chess-reel .right-rail,
.reel.chess-reel .progress,
.reel.chess-reel .loading,
.reel.chess-reel .play-indicator { display: none !important; }

/* ---------- Quiz reels (riddles / math / language / logic / history) ---------- */
.reel.quiz-reel .quiz-wrap {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 60px 24px calc(var(--safe-bottom) + 80px);
  gap: 14px;
  z-index: 2;
  overflow-y: auto;
}
.reel.quiz-reel .quiz-cat {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
}
.reel.quiz-reel .quiz-question {
  font-size: clamp(18px, 4.8vw, 24px);
  line-height: 1.4;
  color: #fff;
  font-weight: 600;
}
.reel.quiz-reel .quiz-choices {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 6px;
}
.reel.quiz-reel .quiz-choice {
  text-align: left;
  padding: 14px 16px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.35;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, transform 80ms ease;
}
.reel.quiz-reel .quiz-choice:hover:not(:disabled) { background: rgba(255,255,255,0.12); }
.reel.quiz-reel .quiz-choice:active:not(:disabled) { transform: scale(0.98); }
.reel.quiz-reel .quiz-choice.correct {
  background: rgba(0,200,120,0.18);
  border-color: rgba(0,220,140,0.65);
  color: #b9ffd9;
}
.reel.quiz-reel .quiz-choice.wrong {
  background: rgba(255,80,80,0.18);
  border-color: rgba(255,100,100,0.6);
  color: #ffc0c0;
}
.reel.quiz-reel .quiz-choice:disabled { cursor: default; }
.reel.quiz-reel .quiz-feedback {
  margin-top: 6px;
  padding: 12px 14px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.reel.quiz-reel .quiz-verdict {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.reel.quiz-reel .quiz-verdict.right { color: #74e8a8; }
.reel.quiz-reel .quiz-verdict.wrong { color: #ff8a8a; }
.reel.quiz-reel .quiz-explain {
  font-size: 13.5px;
  color: rgba(255,255,255,0.78);
  line-height: 1.5;
}

/* Wikipedia links inline in question text & explanations */
.wiki-link {
  color: #9bc3ff;
  text-decoration: underline;
  text-decoration-color: rgba(155,195,255,0.45);
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.wiki-link::after {
  content: '↗';
  font-size: 0.7em;
  opacity: 0.55;
  margin-left: 1px;
  vertical-align: top;
}
.wiki-link:hover { text-decoration-color: #9bc3ff; }
.wiki-link:active { color: #bcd5ff; }

/* See-also chips below the explanation */
.related-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.related-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 500;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(155,195,255,0.10);
  color: #c2d8ff;
  border: 1px solid rgba(155,195,255,0.25);
}
.related-chip::before { content: 'W'; font-weight: 700; font-style: italic; opacity: 0.6; font-size: 11px; }
.related-chip:active { background: rgba(155,195,255,0.18); }

/* ---------- Chess reels ---------- */
.reel.chess-reel .chess-wrap {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  align-items: stretch;
  padding: 52px 18px calc(var(--safe-bottom) + 80px);
  gap: 12px;
  z-index: 2;
  overflow-y: auto;
}
.reel.chess-reel .chess-task {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-align: center;
}
.reel.chess-reel .chess-side {
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-transform: none;
  letter-spacing: 0;
}
.reel.chess-reel .chess-board {
  width: min(86vw, 360px);
  aspect-ratio: 1 / 1;
  margin: 4px auto;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.reel.chess-reel .chess-sq {
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(22px, 7vw, 32px);
  line-height: 1;
  user-select: none;
}
.reel.chess-reel .chess-sq.light { background: #e8d8b0; }
.reel.chess-reel .chess-sq.dark  { background: #927251; }
.reel.chess-reel .chess-pc {
  color: #1a1a1a;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
  font-family: "Segoe UI Symbol", "Apple Color Emoji", "Noto Sans Symbols", serif;
}
.reel.chess-reel .chess-form {
  display: flex; gap: 8px;
  margin-top: 4px;
}
.reel.chess-reel .chess-input {
  flex: 1; min-width: 0;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--line);
  color: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  font-family: ui-monospace, monospace;
  font-size: 16px;  /* ≥16px prevents iOS auto-zoom */
}
.reel.chess-reel .chess-submit {
  background: var(--accent);
  color: #fff; border: none;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.reel.chess-reel .chess-hint-btn {
  background: transparent;
  color: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  align-self: center;
}
.reel.chess-reel .chess-hint-btn:disabled {
  background: rgba(255,255,255,0.08);
  cursor: default;
}
.reel.chess-reel .chess-feedback {
  padding: 12px 14px;
  background: rgba(0,0,0,0.45);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.reel.chess-reel .chess-verdict {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 4px;
}
.reel.chess-reel .chess-verdict.right { color: #74e8a8; }
.reel.chess-reel .chess-verdict.wrong { color: #ff8a8a; }
.reel.chess-reel .chess-solution {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  color: rgba(255,255,255,0.78);
}

.reel .overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 18px calc(var(--safe-bottom) + 24px);
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.0));
  z-index: 3;
  pointer-events: none;
}
.reel .overlay .meta {
  display: flex; flex-direction: column; gap: 6px;
  max-width: calc(100% - 60px);
}
.reel .uploader { font-weight: 700; font-size: 15px; }
.reel .title {
  font-size: 14px; color: var(--muted); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.reel .source-chip {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
}

.reel .right-rail {
  position: absolute;
  right: 12px;
  bottom: calc(var(--safe-bottom) + 28px);
  display: flex; flex-direction: column; gap: 14px;
  z-index: 4;
}
.reel .icon-btn {
  width: 44px; height: 44px; border-radius: 999px;
  background: rgba(0,0,0,0.45);
  border: 1px solid var(--line);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.reel .icon-btn:active { transform: scale(0.92); }

.reel .play-indicator {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 2; opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.reel.paused .play-indicator { opacity: 1; }
.reel .play-indicator svg {
  width: 80px; height: 80px;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.7));
}

.reel .loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 2; color: rgba(255,255,255,0.85);
  font-size: 13px; letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease-in 360ms;
}
.reel.active:not(.ready):not(.errored) .loading { opacity: 1; }
.spinner {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.reel .error {
  position: absolute; inset: 0;
  display: none; align-items: center; justify-content: center;
  z-index: 5; padding: 24px; text-align: center;
}
.reel.errored .error { display: flex; flex-direction: column; gap: 10px; }
.reel.errored .loading { display: none; }
.reel .error a {
  text-decoration: underline; color: var(--accent);
  font-size: 14px;
}

.reel .progress {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(var(--safe-bottom) + 0px);
  height: 22px;          /* generous vertical hit area */
  z-index: 6;
  touch-action: none;
  cursor: pointer;
}
.reel .progress::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(255,255,255,0.22);
  transition: height 120ms ease;
}
.reel .progress > .bar {
  position: absolute;
  left: 0; bottom: 0;
  height: 3px;
  width: 0%;
  background: var(--fg);
  transition: height 120ms ease;
  pointer-events: none;
}
.reel .progress > .head {
  position: absolute;
  bottom: -3px;
  width: 14px; height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--fg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 120ms ease, transform 120ms ease;
  pointer-events: none;
}
.reel .progress > .scrub-label {
  position: absolute;
  bottom: 16px;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: rgba(0,0,0,0.7);
  padding: 4px 8px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.reel .progress.scrubbing::before,
.reel .progress.scrubbing > .bar { height: 5px; }
.reel .progress.scrubbing > .head { opacity: 1; transform: scale(1); }
.reel .progress.scrubbing > .scrub-label { opacity: 1; }

.empty-state {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; z-index: 5;
}
.empty-card {
  max-width: 320px; text-align: center;
  background: #0c0c0c; border: 1px solid var(--line);
  border-radius: 20px; padding: 28px 22px;
}
.empty-card h1 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.02em; }
.empty-card p { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff; font-weight: 700;
  padding: 12px 22px; border-radius: 12px;
}

.mute-toast {
  position: fixed;
  top: calc(var(--safe-top) + 56px);
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.55); color: #fff;
  border: 1px solid var(--line);
  padding: 8px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.01em;
  z-index: 25;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
  font-family: inherit;
  animation: mute-toast-in 220ms ease-out;
}
.mute-toast svg { display: block; }
.mute-toast:active { transform: scale(0.96); }
@keyframes mute-toast-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Admin page ---------- */
.admin-body {
  background: #0a0a0a;
  min-height: 100dvh; height: auto;
  overflow: auto;
  color: var(--fg);
}
.admin-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--safe-top) + 24px) 20px calc(var(--safe-bottom) + 80px);
}
.admin-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.admin-header h1 {
  font-size: 26px; letter-spacing: -0.02em; margin: 0;
}
.back-link {
  font-size: 14px; color: var(--muted);
  border: 1px solid var(--line);
  padding: 8px 12px; border-radius: 10px;
}
.section {
  background: #131313;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
}
.section h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 12px;
}
.input-row {
  display: flex; gap: 8px; flex-wrap: wrap;
}
input[type="text"], input[type="url"], select {
  flex: 1 1 220px;
  min-width: 0;
  background: #0a0a0a;
  border: 1px solid var(--line);
  color: var(--fg);
  padding: 12px 14px;
  font-size: 15px;
  border-radius: 10px;
  outline: none;
}
input:focus, select:focus { border-color: rgba(255,255,255,0.35); }
button.primary {
  background: var(--accent);
  border: none; color: #fff; font-weight: 700;
  padding: 12px 18px; border-radius: 10px;
  cursor: pointer; font-size: 15px;
}
button.secondary {
  background: transparent; color: var(--fg);
  border: 1px solid var(--line);
  padding: 10px 14px; border-radius: 10px;
  cursor: pointer; font-size: 14px;
}
button.danger { color: #ff8898; }
button:disabled { opacity: 0.6; cursor: progress; }

.help { font-size: 13px; color: var(--muted); margin: 10px 2px 0; line-height: 1.5; }

.sources-list {
  list-style: none; padding: 0; margin: 0;
}
.sources-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.sources-list li:first-child { border-top: none; }
.src-info { flex: 1; min-width: 0; }
.src-title {
  font-weight: 600; font-size: 15px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.src-url {
  font-size: 12px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.src-meta {
  font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-top: 2px;
}
.src-error {
  font-size: 12px; color: #ff8898; margin-top: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.src-actions { display: flex; gap: 8px; }

.file-drop {
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}
.file-drop.dragover { border-color: var(--accent); color: #fff; }

.toast {
  position: fixed; bottom: calc(var(--safe-bottom) + 18px); left: 50%;
  transform: translateX(-50%);
  background: #1c1c1c; color: #fff;
  border: 1px solid var(--line);
  padding: 10px 16px; border-radius: 10px;
  font-size: 14px; z-index: 50;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
