/* ==========================================================
   Cores e medidas principais. Mude aqui para trocar o tema.
   ========================================================== */
:root {
  --bg: #07070c;
  --bg-2: #0d0d16;
  --card: rgba(22, 22, 34, 0.62);
  --card-solid: #14141f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f3f8;
  --muted: #9a9ab0;
  --faint: #6b6b82;

  --brand-1: #7c5cff;
  --brand-2: #ff4fa3;
  --brand-3: #2fd3ff;
  --brand: linear-gradient(135deg, var(--brand-1), var(--brand-2));

  --ok: #3ee08f;
  --warn: #ffb547;
  --danger: #ff5c6c;
  --discord: #5865f2;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--line);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--brand-1); color: #fff; }

/* ---------- Fundo animado ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: float 18s ease-in-out infinite; }
.blob.b1 { width: 520px; height: 520px; background: var(--brand-1); top: -180px; left: -120px; }
.blob.b2 { width: 460px; height: 460px; background: var(--brand-2); top: -120px; right: -140px; animation-delay: -6s; opacity: .4; }
.blob.b3 { width: 380px; height: 380px; background: var(--brand-3); top: 340px; left: 40%; animation-delay: -12s; opacity: .22; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, 30px) scale(1.08); }
  66% { transform: translate(-30px, 20px) scale(.95); }
}
@media (prefers-reduced-motion: reduce) { .blob { animation: none; } }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 16px; }
header.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--brand);
  display: grid; place-items: center; box-shadow: 0 8px 24px -6px var(--brand-1);
}
.logo-mark svg { width: 16px; height: 16px; fill: #fff; margin-left: 2px; }
.nav-link { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 10px; transition: .2s; }
.nav-link:hover { color: var(--text); background: rgba(255,255,255,.06); }

.hero { text-align: center; padding: 40px 0 28px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600;
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.hero h1 {
  font-size: clamp(34px, 7vw, 64px); line-height: 1.04; letter-spacing: -.04em; font-weight: 800;
  margin: 20px auto 16px; max-width: 760px;
}
.grad { background: linear-gradient(120deg, #fff 10%, #c9b8ff 40%, var(--brand-2) 75%, var(--brand-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: clamp(15px, 2.4vw, 18px); max-width: 560px; margin: 0 auto; }

/* ---------- Cartões ---------- */
.card {
  position: relative; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.glow::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(124,92,255,.7), rgba(255,79,163,.4) 40%, transparent 60%, rgba(47,211,255,.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.uploader { padding: 10px; margin: 0 auto; max-width: 720px; }

/* ---------- Área de soltar ---------- */
.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 260px; padding: 32px 20px; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--line-strong); border-radius: calc(var(--radius) - 6px);
  transition: border-color .25s, background .25s, transform .25s;
}
.drop:hover, .drop.over { border-color: var(--brand-1); background: rgba(124,92,255,.07); }
.drop.over { transform: scale(1.01); }
.drop-icon {
  width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 10px;
  background: linear-gradient(135deg, rgba(124,92,255,.25), rgba(255,79,163,.2)); border: 1px solid var(--line-strong);
  transition: transform .3s;
}
.drop:hover .drop-icon { transform: translateY(-4px) rotate(-4deg); }
.drop-icon svg { width: 30px; height: 30px; stroke: #fff; }
.drop strong { font-size: 18px; letter-spacing: -.01em; }
.drop .muted { font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.chip { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--muted); }
.chip.hl { color: #fff; background: rgba(124,92,255,.22); border-color: rgba(124,92,255,.5); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: var(--radius-sm); padding: 11px 18px; font-weight: 700; font-size: 14px;
  cursor: pointer; white-space: nowrap; text-decoration: none; transition: transform .15s, filter .2s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 30px -10px var(--brand-2); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-danger { background: rgba(255,92,108,.1); color: var(--danger); border: 1px solid rgba(255,92,108,.25); }
.btn-danger:hover { background: rgba(255,92,108,.18); }
.btn-sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Envio em andamento / pronto ---------- */
.job { display: grid; grid-template-columns: 180px 1fr; gap: 18px; padding: 14px; align-items: center; }
.job + .job { border-top: 1px solid var(--line); }
.job video, .job .poster { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; background: #000; display: block; }
.job-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.progress { height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; margin-top: 12px; }
.progress i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: inherit; transition: width .3s; position: relative; overflow: hidden; }
.progress i::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  animation: shine 1.4s linear infinite; transform: translateX(-100%);
}
@keyframes shine { to { transform: translateX(100%); } }
.link-box {
  display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 6px 6px 14px;
  background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 14px;
}
.link-box input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-family: var(--mono); font-size: 13px; color: #c9b8ff; }
.job-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.status-ok { color: var(--ok); font-weight: 700; }
.status-err { color: var(--danger); font-weight: 600; }

/* ---------- Prévia estilo Discord ---------- */
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 56px 0 16px; }
.section-title h2 { font-size: 22px; letter-spacing: -.02em; margin: 0; }
.section-title p { color: var(--muted); margin: 0; font-size: 14px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 56px; }
.feature { padding: 20px; }
.feature .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid var(--line); margin-bottom: 12px; }
.feature .ic svg { width: 20px; height: 20px; stroke: #fff; }
.feature h3 { margin: 0 0 4px; font-size: 16px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

.discord { background: #313338; border-radius: 16px; padding: 16px; display: flex; gap: 14px; max-width: 560px; margin: 0 auto; box-shadow: var(--shadow); }
.discord .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); flex: none; }
.discord .who { font-weight: 700; } .discord .who small { color: #949ba4; font-weight: 500; margin-left: 6px; font-size: 12px; }
.discord .msg-link { color: #00a8fc; font-size: 14px; word-break: break-all; }
.discord .embed { margin-top: 8px; border-radius: 8px; overflow: hidden; max-width: 400px; aspect-ratio: 16/9; background: #000; position: relative; }
.discord .embed video, .discord .embed .fake { width: 100%; height: 100%; object-fit: cover; display: block; }
.discord .fake { background: linear-gradient(135deg, #2b1d5c, #5c1d43 60%, #0d3a4d); }
.discord .play { position: absolute; inset: 0; display: grid; place-items: center; }
.discord .play span { width: 56px; height: 56px; border-radius: 50%; background: rgba(0,0,0,.6); display: grid; place-items: center; }
.discord .play svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }

/* ---------- Meus vídeos ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tile { overflow: hidden; display: flex; flex-direction: column; transition: transform .2s; }
.tile:hover { transform: translateY(-3px); }
.tile .thumb { aspect-ratio: 16/9; background: #000 center/cover no-repeat; position: relative; }
.tile .thumb .dur { position: absolute; right: 8px; bottom: 8px; font-size: 12px; font-weight: 700; background: rgba(0,0,0,.7); padding: 2px 7px; border-radius: 6px; }
.tile .body { padding: 12px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tile .name { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .meta { color: var(--muted); font-size: 12px; }
.tile .row { display: flex; gap: 6px; margin-top: auto; }
.tile .row .btn { flex: 1; }
.empty { text-align: center; color: var(--faint); padding: 36px 16px; border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- Janela (modal) ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(4,4,8,.7); backdrop-filter: blur(8px); animation: fade .2s; }
.modal[hidden] { display: none; }
.modal .card { width: 100%; max-width: 620px; max-height: calc(100vh - 32px); overflow: auto; padding: 24px; background: var(--card-solid); }
.modal h3 { margin: 0 0 6px; padding-right: 80px; font-size: 22px; letter-spacing: -.02em; }
.modal .close { position: absolute; top: 14px; right: 14px; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: rgba(255,181,71,.08); border: 1px solid rgba(255,181,71,.3); margin: 14px 0; }
.alert b { color: var(--warn); }
.tabs { display: flex; gap: 6px; padding: 4px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 14px; margin: 16px 0 12px; }
.tabs button { flex: 1; border: 0; background: none; padding: 9px 8px; border-radius: 10px; font-weight: 700; font-size: 13px; color: var(--muted); cursor: pointer; }
.tabs button.on { background: rgba(255,255,255,.1); color: var(--text); }
.steps { margin: 0; padding-left: 20px; color: #d6d6e3; }
.steps li { margin: 6px 0; }
.steps b { color: #fff; }
pre.code { background: #000; border: 1px solid var(--line); border-radius: 12px; padding: 12px; overflow-x: auto; font: 12.5px/1.6 var(--mono); color: #c9b8ff; white-space: pre-wrap; word-break: break-all; }
.tip { color: var(--muted); font-size: 13px; }

/* ---------- Avisos rápidos ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 14px;
  background: #1c1c28; border: 1px solid var(--line-strong); box-shadow: var(--shadow); font-weight: 700; font-size: 14px;
  animation: pop .25s;
}
.toast i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, 10px); } }
@keyframes fade { from { opacity: 0; } }

footer { color: var(--faint); font-size: 13px; text-align: center; padding: 64px 0 32px; }
footer a { color: var(--muted); }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* ---------- Celular ---------- */
@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; }
  .job { grid-template-columns: 1fr; }
  .section-title { flex-direction: column; align-items: flex-start; }
}

/* ---------- Página do vídeo ---------- */
.watch { max-width: 1100px; }
.player { overflow: hidden; padding: 0; }
.player video { width: 100%; max-height: 78vh; display: block; background: #000; }
.watch-info { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 4px; }
.watch-info h1 { font-size: 20px; margin: 0; letter-spacing: -.01em; word-break: break-word; }
.watch-info .actions { display: flex; gap: 8px; flex-wrap: wrap; }
