:root {
  --pink: #e8336e;
  --pink-dark: #b8265a;
  --cream: #fff5ec;
  --ink: #2a1a25;
  --muted: #6e5b66;
  --line: #f3d6c8;
  --ok: #1d8a4e;
  --err: #c0392b;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.55 -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff5ec 0%, #ffe8d8 100%);
  min-height: 100vh;
}
a { color: var(--pink-dark); }
a:hover { color: var(--pink); }
img { max-width: 100%; display: block; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 32px 20px 60px; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 860px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 56px; padding-top: 24px; }
}
.cover {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 24px 60px -20px rgba(120, 30, 70, .35);
}
.kicker {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pink);
  font-weight: 700;
  margin: 0 0 6px;
}
.hero-text h1 {
  font: 800 clamp(32px, 5vw, 52px)/1.05 "SF Pro Display", -apple-system, sans-serif;
  margin: 4px 0 6px;
  letter-spacing: -0.01em;
}
.artist {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 20px;
  font-style: italic;
}
audio {
  width: 100%;
  margin: 8px 0 22px;
  border-radius: 12px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 22px;
}
.lead {
  margin-top: 18px;
  color: var(--muted);
  font-style: italic;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: none;
  border-radius: 999px;
  font: 600 15px/1 inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}
.btn.primary {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(232, 51, 110, .55);
}
.btn.primary:hover { background: var(--pink-dark); color: #fff; }
.btn.primary:active { transform: translateY(1px); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn.ghost:hover { border-color: var(--pink); color: var(--pink); }
.btn.big { padding: 14px 28px; font-size: 16px; }

/* Upload */
.upload {
  margin-top: 64px;
  padding: 36px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 18px 50px -30px rgba(120, 30, 70, .3);
}
.upload h2 {
  margin: 0 0 6px;
  font: 800 28px/1.1 "SF Pro Display", -apple-system, sans-serif;
}
.upload .sub { color: var(--muted); margin: 0 0 24px; }

#form { display: grid; gap: 18px; max-width: 580px; }
.field { display: grid; gap: 6px; }
.field > span {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.field em { color: var(--muted); font-style: normal; font-weight: 400; }
.field input[type=text] {
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  transition: border-color .15s;
}
.field input[type=text]:focus {
  outline: none;
  border-color: var(--pink);
}
.field.file input[type=file] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.field.file {
  position: relative;
}
.field.file > span:first-child::after {
  content: "";
}
.field.file .filename {
  display: inline-block;
  padding: 12px 14px;
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: #fffaf5;
  cursor: pointer;
  font-size: 14px;
}
.field.file:focus-within .filename { border-color: var(--pink); }
.field.file .filename.has-file { color: var(--ink); border-style: solid; }

.progress {
  margin-top: 8px;
  background: #f5e9e0;
  border-radius: 999px;
  height: 28px;
  position: relative;
  overflow: hidden;
}
.progress .bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--pink), var(--pink-dark));
  transition: width .15s;
}
#progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}

footer {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

/* Login + Result */
.login, .result {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}
.card {
  background: #fff;
  padding: 36px;
  border-radius: 18px;
  box-shadow: 0 18px 50px -20px rgba(120, 30, 70, .3);
  max-width: 420px;
  width: 100%;
}
.card h1 { margin: 0 0 12px; }
.card form { display: grid; gap: 16px; margin-top: 16px; }
.card label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.card input[type=password] {
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: inherit;
}
.card input[type=password]:focus { outline: none; border-color: var(--pink); }
.err { color: var(--err); font-weight: 600; }
.result.success .card { border-top: 4px solid var(--ok); }
.result.error .card { border-top: 4px solid var(--err); }

/* Admin */
.admin { background: #fafafa; }
.admin-bar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}
.admin-bar h1 { margin: 0; font-size: 20px; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
}
.btn-ghost:hover { border-color: var(--pink); color: var(--pink); }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  padding: 24px;
}
.vid {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px -8px rgba(0,0,0,.15);
  display: flex;
  flex-direction: column;
}
.vid video { width: 100%; aspect-ratio: 16/9; background: #000; object-fit: contain; }
.vid .meta { padding: 14px 16px; }
.vid h3 { margin: 0 0 4px; font-size: 16px; }
.vid .msg { margin: 4px 0; }
.vid .sub { color: var(--muted); font-size: 12px; margin: 6px 0 12px; }
.btn-del {
  background: transparent;
  border: 1px solid #f0c4c4;
  color: var(--err);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}
.btn-del:hover { background: var(--err); color: #fff; border-color: var(--err); }
.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
