:root {
  --bg: #e8eef2;
  --bg-2: #f7fafc;
  --ink: #102a2d;
  --muted: #4d6469;
  --line: rgba(16, 42, 45, 0.14);
  --panel: rgba(247, 250, 252, 0.9);
  --accent: #0f8f7b;
  --accent-2: #ff5a36;
  --shadow: 0 18px 50px rgba(16, 42, 45, 0.12);
  --radius: 16px;
  --font-display: "Syne", "Avenir Next", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(15, 143, 123, 0.12), transparent 40%),
    linear-gradient(320deg, rgba(255, 90, 54, 0.1), transparent 35%),
    repeating-linear-gradient(
      -12deg,
      transparent 0 18px,
      rgba(16, 42, 45, 0.025) 18px 19px
    ),
    var(--bg);
}

.shell { width: min(1080px, calc(100% - 2rem)); margin: 0 auto; padding: 1.25rem 0 3rem; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.brand {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 1.4rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.03em;
}
nav { display: flex; gap: 1rem; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 600; }
nav a:hover { color: var(--ink); }

.hero { display: grid; gap: 1rem; padding: 0.5rem 0 2rem; }
.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 700;
}
h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  max-width: 11ch;
}
.lede { margin: 0; max-width: 34rem; color: var(--muted); font-size: 1.05rem; }

.dropzone {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--panel);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.dropzone.dragover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(15, 143, 123, 0.18);
}
.drop-copy { display: grid; gap: 0.2rem; }
.drop-copy strong { font-family: var(--font-display); font-size: 1.25rem; }
.drop-copy span { color: var(--muted); }

.field { display: grid; gap: 0.35rem; }
.field span { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
input[type="text"], input[type="password"], textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  background: var(--bg-2);
  font: inherit;
  color: var(--ink);
}
textarea { resize: vertical; }

.btn, button {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.btn.primary, button.primary {
  background: var(--ink);
  border-color: transparent;
  color: #f4fffc;
}
.btn.primary:hover, button.primary:hover { background: #163c41; }
.btn:disabled, button:disabled { opacity: 0.45; cursor: not-allowed; }
button.danger { color: #a12020; }

.progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(16, 42, 45, 0.08);
  overflow: hidden;
}
.progress > div {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 120ms linear;
}
.status, .hint, .muted { color: var(--muted); }
.hint { margin: 0.25rem 0 0; }
.error { color: #a12020; }

.narrow { width: min(420px, 100%); margin: 2rem auto; display: grid; gap: 1rem; }
.card-form {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.watch { display: grid; gap: 1.25rem; }
.player-stage {
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  background: #071316;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}
.player-stage video { width: 100%; height: 100%; display: block; background: #000; }
.meta h1 { max-width: none; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.share { display: grid; gap: 0.75rem; margin-top: 1rem; }

.table-wrap {
  overflow: auto;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.9rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.actions { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.actions form { margin: 0; }

@media (max-width: 720px) {
  h1 { max-width: none; }
  .top { align-items: flex-start; flex-direction: column; }
}
