:root {
  --bg: #0f1220; --panel: #171b2e; --line: #2a3050; --text: #e9ecf5; --muted: #9aa3bf;
  --accent: #5b8cff; --accent2: #22c7a9; --err: #ff6b6b; --radius: 14px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f5f7fc; --panel: #fff; --line: #dfe3ee; --text: #161a2b; --muted: #5d6680; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.5; }
main { max-width: 860px; margin: 0 auto; padding: 0 16px 48px; }
.top { display: flex; justify-content: space-between; align-items: center; max-width: 860px; margin: 0 auto; padding: 16px; }
.brand { color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.3rem; }
.brand span { color: var(--accent); }
.hero { text-align: center; padding: 32px 0 8px; }
h1 { font-size: clamp(1.5rem, 4vw, 2.3rem); margin: 0 0 8px; }
.sub { color: var(--muted); margin: 0 0 24px; }
.box { display: flex; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
.box input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font-size: 1rem; padding: 10px; outline: none; }
button, .save { border: 0; border-radius: 10px; padding: 10px 18px; font-size: .95rem; font-weight: 600; cursor: pointer; background: var(--accent); color: #fff; text-decoration: none; }
button:disabled { opacity: .5; cursor: wait; }
button.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.msg { min-height: 1.5em; color: var(--muted); }
.msg.err { color: var(--err); }
.card { display: flex; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 8px; }
.card img { width: 200px; max-height: 200px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.info { flex: 1; min-width: 0; }
.info h2 { font-size: 1.1rem; margin: 6px 0; overflow-wrap: anywhere; }
.tag { display: inline-block; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; background: var(--line); border-radius: 6px; padding: 2px 8px; }
.muted { color: var(--muted); margin: 4px 0; }
.small { font-size: .85rem; }
.options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.opt.audio { background: var(--accent2); }
.opt.photo, .opt.subtitle { background: #8a63ff; }
.progress { position: relative; margin-top: 14px; background: var(--line); border-radius: 10px; min-height: 40px; overflow: hidden; }
.progress div { position: absolute; inset: 0 auto 0 0; width: 0; background: color-mix(in srgb, var(--accent) 35%, transparent); transition: width .4s; }
.progress span { position: relative; display: block; padding: 8px 12px; font-size: .9rem; overflow-wrap: anywhere; }
.progress .save { display: inline-block; padding: 6px 12px; }
.platforms ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.platforms li { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .9rem; }
h3 { margin-top: 36px; }
footer { text-align: center; color: var(--muted); padding: 24px; font-size: .85rem; }
footer a { color: var(--muted); }
@media (max-width: 600px) {
  .card { flex-direction: column; }
  .card img { width: 100%; }
  #paste { display: none; }
}
.tag.admin { background: var(--accent2); color: #fff; margin-left: auto; margin-right: 8px; }
.small-btn { padding: 6px 12px; font-size: .85rem; }
.hint { display: block; margin-top: 6px; }
