:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --card: #161616;
  --text: #f5f5f5;
  --text-2: #a0a0a0;
  --muted: #666666;
  --accent: #e63946;
  --accent-2: #ff4d5a;
  --border: #2a2a2a;
  --border-2: #333333;
  --success: #2ecc71;
  --error: #e74c3c;
  --nav-h: 74px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .07;
  z-index: 99;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 64px);
  background: rgba(10, 10, 10, .82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}
.logo, .hero-meta, .eyebrow, .video-artist, .rule span, .card-number {
  font-family: "Space Mono", "Courier New", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.logo {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 800;
  min-width: 0;
}
.brand-logo {
  display: block;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.brand-wordmark {
  height: 26px;
}
.brand-symbol {
  display: none;
  height: 26px;
}
.rec-dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
  display: inline-block;
  animation: rec 1s infinite;
}
@keyframes rec { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a {
  color: var(--text-2);
  font-size: .85rem;
  transition: color .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.menu-toggle { display: none; background: none; border: 0; color: var(--text); width: 44px; height: 44px; }
.menu-toggle span { display: block; height: 2px; background: var(--text); margin: 7px 0; transition: transform .25s ease; }
.section {
  min-height: 70vh;
  padding: clamp(82px, 12vw, 150px) clamp(18px, 5vw, 88px);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + 60px);
  background:
    radial-gradient(circle at 78% 15%, rgba(230, 57, 70, .16), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.035), transparent 42%);
}
.hero-brand {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}
.hero-brand img {
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.hero-brand-wordmark {
  display: block;
  height: clamp(34px, 5vw, 56px);
}
.hero-brand-symbol {
  display: none;
  height: 48px;
}
.hero-meta { display: flex; gap: 12px; align-items: center; color: var(--text-2); margin-bottom: 22px; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: .86;
  letter-spacing: -.08em;
  margin-bottom: 28px;
  font-weight: 900;
  max-width: 1200px;
}
h2 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1;
  letter-spacing: -.045em;
  margin-bottom: 22px;
}
h3 { line-height: 1.1; }
.hero p { max-width: 620px; color: var(--text-2); font-size: clamp(1.05rem, 1.4vw, 1.35rem); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  cursor: pointer;
  font-weight: 700;
  font-size: .9rem;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-2); }
.btn.ghost { background: transparent; color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); }
.split {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: start;
}
.eyebrow { color: var(--accent); font-size: .78rem; margin-bottom: 18px; }
.copy-xl { color: var(--text-2); font-size: clamp(1.1rem, 2vw, 1.55rem); }
.copy-xl p:last-child { color: var(--text); }
.section-head { max-width: 780px; margin-bottom: 44px; }
.section-head.compact { max-width: 940px; }
.cards, .gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card, .video-card, .form, .empty-state {
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)), var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
}
.card { padding: 28px; min-height: 240px; }
.card-number { color: var(--accent); font-size: 2.1rem; font-weight: 800; margin-bottom: 28px; }
.card h3 { font-size: 1.3rem; }
.card p, .target-list, .muted { color: var(--text-2); }
.rules { display: grid; gap: 10px; }
.rule {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  font-size: clamp(1.35rem, 3vw, 3rem);
  font-weight: 850;
  letter-spacing: -.04em;
}
.rule span { color: var(--muted); font-size: 1rem; min-width: 44px; letter-spacing: 0; }
.target-list { font-size: 1.08rem; }
.video-card { overflow: hidden; }
.video-card video { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; background: #050505; }
.video-body { padding: 18px; }
.video-artist { color: var(--accent); font-size: .72rem; margin-bottom: 8px; }
.video-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .8rem; }
.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-2);
  background: #0e0e0e;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}
.vote-btn.is-voted, .vote-btn:hover { color: #fff; border-color: var(--accent); }
.vote-btn.is-voted span { color: var(--accent); }
.empty-state { grid-column: 1 / -1; padding: 34px; color: var(--text-2); }
.form { padding: 26px; display: grid; gap: 16px; }
.form label { display: grid; gap: 8px; color: var(--text-2); font-size: .9rem; }
.form input, .form textarea {
  width: 100%;
  background: #0d0d0d;
  color: var(--text);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
}
.form input:focus, .form textarea:focus { border-color: var(--accent); }
.hp { display: none !important; }
.drop-zone {
  min-height: 190px;
  border: 1px dashed var(--border-2);
  border-radius: 20px;
  place-items: center;
  text-align: center;
  cursor: pointer;
  background: #101010;
}
.drop-zone input { display: none; }
.drop-zone.is-dragging { border-color: var(--accent); }
.drop-title { color: var(--text); font-weight: 800; font-size: 1.2rem; }
.drop-hint { color: var(--muted); }
.check { grid-template-columns: 18px 1fr !important; align-items: start; }
.check input { width: auto; margin-top: 3px; }
.form-message { min-height: 22px; margin: 0; color: var(--text-2); }
.form-message.ok { color: var(--success); }
.form-message.error { color: var(--error); }
.cta { min-height: 55vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; background: linear-gradient(90deg, rgba(230,57,70,.16), transparent); }
.footer { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); padding: 30px clamp(18px, 5vw, 88px); font-size: .85rem; }
.footer-brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
.footer-symbol {
  width: auto;
  height: 18px;
  filter: brightness(0) invert(1);
}
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 40;
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (max-width: 1100px) {
  .cards, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .nav { height: 66px; }
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 66px 0 auto 0;
    display: grid;
    gap: 0;
    background: rgba(10,10,10,.98);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform .25s ease;
  }
  .nav.is-open .nav-links { transform: translateY(0); }
  .nav-links a { padding: 18px 24px; border-top: 1px solid var(--border); font-size: 1rem; }
  .nav.is-open .menu-toggle span:first-child { transform: translateY(5px) rotate(45deg); }
  .nav.is-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .split { grid-template-columns: 1fr; }
  .cards, .gallery { grid-template-columns: 1fr; }
  .section { min-height: auto; }
  .footer { flex-direction: column; }
}
@media (max-width: 480px) {
  h1 { font-size: clamp(3.35rem, 20vw, 4.4rem); }
  .hero-actions, .btn { width: 100%; }
  .card, .form { padding: 20px; border-radius: 18px; }
}

/* Admin */
.admin-page {
  min-height: 100vh;
  padding: clamp(28px, 5vw, 72px);
  max-width: 1280px;
  margin: 0 auto;
}
.admin-hero {
  border-bottom: 1px solid var(--border);
  padding-bottom: 32px;
  margin-bottom: 32px;
}
.admin-hero h1 {
  font-size: clamp(2.6rem, 8vw, 7rem);
  line-height: .9;
  margin: 34px 0 18px;
  text-transform: uppercase;
}
.admin-msg {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border-2);
  background: var(--card);
  color: var(--text);
}
.admin-login { max-width: 520px; }
.admin-top {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 36px;
}
.admin-top > div, .admin-top form {
  border: 1px solid var(--border);
  background: var(--card);
  padding: 18px;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.admin-top strong { font-size: 2rem; line-height: 1; }
.admin-top span { color: var(--text-2); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.admin-section { margin: 42px 0; }
.admin-section h2 { font-size: clamp(1.6rem, 4vw, 3rem); text-transform: uppercase; margin-bottom: 20px; }
.admin-list { display: grid; gap: 14px; }
.admin-item {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 14px;
}
.admin-cover, .admin-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  border: 1px solid var(--border-2);
}
.admin-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.btn.danger {
  border-color: rgba(231, 76, 60, .55);
  color: var(--error);
  background: rgba(231, 76, 60, .08);
}
.inline-link { color: var(--accent-2); font-size: .9rem; }
.admin-message {
  border: 1px solid var(--border);
  background: var(--card);
  padding: 18px;
}
.admin-message h3 { margin: 0 0 6px; }
.admin-message h3 span { color: var(--text-2); font-size: .85rem; font-weight: 400; }
code {
  background: #050505;
  border: 1px solid var(--border);
  padding: 2px 5px;
  color: var(--text);
}
@media (max-width: 820px) {
  .admin-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-item { grid-template-columns: 1fr; }
  .admin-actions { justify-content: flex-start; }
}
@media (max-width: 520px) { .admin-top { grid-template-columns: 1fr; } }

/* Mobile-first UX upgrade */
.nav-upload {
  display: none;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: .84rem;
}
.mobile-quick,
.upload-steps,
.mobile-actionbar,
.mobile-only { display: none; }
.field-hint,
.file-meta {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  margin-top: 4px;
}
.drop-icon {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  color: var(--accent-2);
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 10px;
}
.upload-progress {
  display: none;
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #080808;
  border: 1px solid var(--border);
}
.upload-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--accent);
  transition: width .18s ease;
}
.upload-progress.is-active { display: block; }
.upload-submit[disabled] { opacity: .62; cursor: wait; transform: none; }

@supports (height: 100svh) {
  .hero { min-height: 100svh; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  html { scroll-padding-top: 74px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .noise { opacity: .045; }
  .nav {
    padding: 0 14px 0 max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }
  .logo { font-size: .95rem; }
  .brand-wordmark { display: none; }
  .brand-symbol { display: block; height: 28px; }
  .hero-brand {
    justify-content: center;
    margin-bottom: 20px;
  }
  .hero-brand-wordmark { display: none; }
  .hero-brand-symbol {
    display: block;
    height: 54px;
  }
  .nav-upload { display: inline-flex; margin-left: auto; margin-right: 8px; }
  .nav-links {
    inset: 64px 10px auto 10px;
    border: 1px solid var(--border);
    border-radius: 0 0 22px 22px;
    overflow: hidden;
    box-shadow: 0 22px 60px rgba(0,0,0,.45);
  }
  .nav-links a {
    min-height: 54px;
    display: flex;
    align-items: center;
  }
  .section {
    padding: 78px 18px;
    border-bottom-color: rgba(255,255,255,.08);
  }
  .hero {
    justify-content: flex-end;
    min-height: 92vh;
    padding-top: calc(var(--nav-h) + 30px);
    padding-bottom: 96px;
  }
  .hero-meta { font-size: .76rem; margin-bottom: 18px; }
  h1 {
    font-size: clamp(3.45rem, 17vw, 5.8rem);
    letter-spacing: -.07em;
    margin-bottom: 18px;
  }
  h2 { font-size: clamp(2.15rem, 11vw, 3.2rem); }
  .hero p { font-size: 1.06rem; max-width: 92%; }
  .hero-actions { position: relative; z-index: 2; }
  .hero-actions .btn { min-height: 54px; }
  .mobile-quick {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 18px;
  }
  .mobile-quick span {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 10px;
    color: var(--text-2);
    font-family: "Space Mono", "Courier New", monospace;
    font-size: .68rem;
    text-transform: uppercase;
  }
  .mobile-only { display: block; }
  .cards, .gallery { gap: 14px; }
  .card, .video-card, .form, .empty-state { border-radius: 20px; }
  .card { min-height: auto; padding: 22px; }
  .card-number { margin-bottom: 18px; }
  .rule {
    gap: 16px;
    padding: 18px 0;
    font-size: clamp(1.55rem, 8vw, 2.4rem);
  }
  .video-card video {
    aspect-ratio: 9 / 12;
    max-height: 68vh;
    object-fit: cover;
  }
  .video-body { padding: 16px; }
  .video-meta { margin-top: 12px; }
  .vote-btn {
    min-height: 44px;
    min-width: 74px;
    justify-content: center;
    font-size: 1rem;
  }
  .upload-section { gap: 24px; }
  .upload-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 18px;
  }
  .upload-steps div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255,255,255,.025);
  }
  .upload-steps strong {
    color: var(--accent);
    font-family: "Space Mono", "Courier New", monospace;
  }
  .upload-steps span { color: var(--text-2); }
  .form input, .form textarea {
    min-height: 52px;
    font-size: 16px;
    border-radius: 16px;
  }
  .drop-zone {
    min-height: 210px;
    padding: 24px 16px;
    border-radius: 22px;
    border-color: rgba(230,57,70,.55);
    background: linear-gradient(180deg, rgba(230,57,70,.08), rgba(255,255,255,.02)), #101010;
  }
  .drop-icon { display: inline-flex; }
  .drop-title { font-size: 1.08rem; }
  .drop-hint { font-size: .86rem; }
  .upload-submit { min-height: 56px; width: 100%; font-size: 1rem; }
  .cta { min-height: 45vh; padding-bottom: 110px; }
  .footer { padding-bottom: 98px; }
  .back-to-top { display: none; }
  .mobile-actionbar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 70;
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(10,10,10,.88);
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 48px rgba(0,0,0,.55);
  }
  .mobile-actionbar a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--text-2);
    font-weight: 800;
    font-size: .85rem;
  }
  .mobile-actionbar a.primary {
    color: #fff;
    background: var(--accent);
  }
}

@media (max-width: 380px) {
  .nav-upload { padding: 0 12px; }
  .menu-toggle { width: 40px; }
  h1 { font-size: clamp(3.05rem, 18vw, 4.2rem); }
  .section { padding-left: 14px; padding-right: 14px; }
  .mobile-actionbar { left: 6px; right: 6px; }
}
.file-meta.error { color: var(--error); }

/* v5 mobile camera-first upload */
.video-source-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.source-btn {
  border: 1px solid var(--border-2);
  background: #101010;
  color: var(--text);
  border-radius: 18px;
  padding: 14px 12px;
  min-height: 92px;
  cursor: pointer;
  display: grid;
  gap: 4px;
  align-content: center;
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.source-btn:hover,
.source-btn:focus-visible {
  transform: translateY(-1px);
  border-color: var(--accent);
  outline: none;
}
.source-btn span {
  color: var(--accent);
  font-family: "Space Mono", "Courier New", monospace;
  font-weight: 800;
  letter-spacing: .08em;
}
.source-btn strong { font-size: .98rem; }
.source-btn small { color: var(--muted); line-height: 1.35; }
.source-record {
  border-color: rgba(230,57,70,.62);
  background: linear-gradient(135deg, rgba(230,57,70,.14), rgba(255,255,255,.02)), #101010;
}
.drop-zone.has-file {
  border-style: solid;
  border-color: var(--success);
}

@media (max-width: 768px) {
  .video-source-actions {
    grid-template-columns: 1fr;
  }
  .source-btn {
    min-height: 76px;
    padding: 15px 16px;
    grid-template-columns: 28px 1fr;
    column-gap: 10px;
  }
  .source-btn span { grid-row: 1 / span 2; align-self: center; }
  .source-btn strong { font-size: 1rem; }
  .source-record {
    min-height: 86px;
    box-shadow: 0 16px 40px rgba(230,57,70,.12);
  }
}

/* v6 true one-take recorder: gallery upload removed */
.hidden-file {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.recorder {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(230,57,70,.34);
  background: linear-gradient(145deg, rgba(230,57,70,.08), rgba(255,255,255,.02)), var(--card);
  border-radius: 24px;
  padding: 14px;
}
.recorder-preview {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #050505;
  aspect-ratio: 9 / 16;
  min-height: 360px;
}
.recorder-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #050505;
}
.recorder-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 10px;
  padding: 24px;
  color: var(--text);
  background: radial-gradient(circle at center, rgba(230,57,70,.14), rgba(0,0,0,.92));
}
.recorder-placeholder.is-hidden { display: none; }
.recorder-placeholder strong {
  font-size: 1.35rem;
  line-height: 1.1;
}
.recorder-placeholder small {
  color: var(--text-2);
  font-size: .9rem;
}
.recorder-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-2);
  font-size: .9rem;
}
.recorder-status strong {
  color: var(--accent);
  font-family: "Space Mono", "Courier New", monospace;
  font-size: 1.05rem;
}
.recorder-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.recorder-actions .btn {
  width: 100%;
  justify-content: center;
}
.mobile-capture-btn {
  grid-column: 1 / -1;
}
.btn.danger {
  background: rgba(231,76,60,.14);
  color: #fff;
  border-color: rgba(231,76,60,.55);
}
.btn:disabled,
button:disabled {
  opacity: .48;
  cursor: not-allowed;
  transform: none !important;
}

@media (min-width: 769px) {
  .recorder-preview {
    aspect-ratio: 16 / 9;
    min-height: 320px;
  }
}

@media (max-width: 480px) {
  .recorder {
    padding: 10px;
    border-radius: 20px;
  }
  .recorder-preview {
    min-height: 420px;
    border-radius: 16px;
  }
  .recorder-actions {
    grid-template-columns: 1fr;
  }
}

/* v8 gallery memory + mobile filters */
.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -18px 0 14px;
}
.gallery-filter {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: rgba(255,255,255,.025);
  color: var(--text-2);
  font-weight: 700;
  cursor: pointer;
}
.gallery-filter.is-active,
.gallery-filter:hover {
  color: #fff;
  border-color: var(--accent);
  background: rgba(230,57,70,.12);
}
.gallery-count {
  min-height: 20px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .86rem;
}
.video-wrap {
  position: relative;
  background: #050505;
}
.watch-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(230,57,70,.92);
  color: #fff;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
  box-shadow: 0 12px 32px rgba(0,0,0,.28);
}
.video-card.is-seen {
  opacity: .72;
}
.video-card.is-seen .watch-badge {
  background: rgba(12,12,12,.82);
  border: 1px solid rgba(255,255,255,.16);
  color: var(--text-2);
}
.video-card.is-hidden-by-filter {
  display: none;
}
.gallery-empty-filter {
  grid-column: 1 / -1;
  padding: 26px;
  border-radius: 24px;
  border: 1px dashed var(--border-2);
  color: var(--text-2);
  background: rgba(255,255,255,.02);
}
@media (max-width: 768px) {
  .gallery-toolbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-left: calc(var(--page-pad) * -1);
    margin-right: calc(var(--page-pad) * -1);
    padding-left: var(--page-pad);
    padding-right: var(--page-pad);
    scroll-snap-type: x proximity;
  }
  .gallery-filter {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-height: 48px;
    padding-inline: 16px;
  }
  .video-card.is-seen {
    opacity: .82;
  }
}


@media (min-width: 769px) {
  .brand-wordmark { display: block; }
  .brand-symbol { display: none; }
  .hero-brand-wordmark { display: block; }
  .hero-brand-symbol { display: none; }
}


/* v10 premium polish: cleaner typography, spacing, hero atmosphere, admin visual */
:root {
  --bg: #070707;
  --bg-2: #0d0d0d;
  --card: #121212;
  --card-soft: #171717;
  --text: #f3efe8;
  --text-2: #aaa39a;
  --muted: #6f6962;
  --accent: #c9252f;
  --accent-2: #ef3b46;
  --border: rgba(243, 239, 232, .105);
  --border-2: rgba(243, 239, 232, .16);
  --shadow-premium: 0 24px 80px rgba(0,0,0,.38);
}

body {
  background:
    radial-gradient(circle at 8% 12%, rgba(255,255,255,.035), transparent 25%),
    radial-gradient(circle at 86% 16%, rgba(201,37,47,.09), transparent 30%),
    var(--bg);
  font-family: Inter, Arial, Helvetica, sans-serif;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.014) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
  opacity: .28;
}

.nav,
.section,
.footer,
.admin-page {
  position: relative;
  z-index: 1;
}

.nav {
  height: 72px;
  background: rgba(7, 7, 7, .72);
  border-bottom: 1px solid rgba(243,239,232,.08);
  backdrop-filter: blur(22px) saturate(120%);
}

.brand-wordmark {
  height: 30px;
  opacity: .96;
}

.nav-links {
  gap: 28px;
}

.nav-links a {
  font-size: .78rem;
  letter-spacing: .04em;
}

.nav-upload,
.btn.primary,
.mobile-actionbar a.primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 14px 38px rgba(201, 37, 47, .22);
}

.btn {
  min-height: 50px;
  padding-inline: 24px;
  border-color: rgba(243,239,232,.16);
  letter-spacing: .01em;
}

.btn.ghost {
  background: rgba(255,255,255,.025);
}

.btn:hover {
  transform: translateY(-1px);
}

.section {
  padding-inline: clamp(22px, 5.5vw, 104px);
}

.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 38%, rgba(243,239,232,.06), transparent 22%),
    radial-gradient(circle at 83% 32%, rgba(201,37,47,.16), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.038), transparent 42%),
    #070707;
}

.hero::before {
  content: "";
  position: absolute;
  right: clamp(24px, 12vw, 190px);
  top: 50%;
  width: clamp(220px, 32vw, 560px);
  height: clamp(300px, 42vw, 720px);
  transform: translateY(-45%);
  background: url("assets/logo-symbol.png") center / contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: .055;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255,255,255,.06), transparent 58%),
    linear-gradient(180deg, transparent, rgba(0,0,0,.18));
  pointer-events: none;
}

.hero-brand,
.hero-meta,
.hero h1,
.hero p,
.hero-actions,
.mobile-quick {
  position: relative;
  z-index: 2;
}

.hero-brand {
  margin-bottom: 20px;
}

.hero-brand-wordmark {
  height: clamp(40px, 5vw, 64px);
  opacity: .98;
}

.hero-meta,
.eyebrow {
  color: var(--accent-2);
  letter-spacing: .14em;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.052em;
  line-height: .94;
  font-size: clamp(4rem, 9.8vw, 8.6rem);
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.02;
}

h3 {
  font-weight: 740;
}

.hero p {
  max-width: 520px;
  color: var(--text-2);
  font-size: clamp(1rem, 1.12vw, 1.2rem);
}

.card,
.video-card,
.form,
.empty-state,
.recorder,
.admin-top > div,
.admin-top form,
.admin-item,
.admin-message {
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
    var(--card);
  border-color: rgba(243,239,232,.11);
  box-shadow: 0 18px 58px rgba(0,0,0,.22);
}

.card,
.form,
.recorder,
.video-card {
  border-radius: 26px;
}

.card {
  min-height: 220px;
  padding: 30px;
}

.card-number {
  font-size: 1.48rem;
  margin-bottom: 36px;
  color: var(--accent-2);
}

.manifest-grid .card p {
  max-width: 92%;
}

.rules {
  border-top: 1px solid var(--border);
}

.rule {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.032em;
}

.gallery-toolbar {
  gap: 8px;
}

.gallery-filter {
  background: rgba(255,255,255,.018);
  border-color: rgba(243,239,232,.12);
  color: var(--text-2);
  font-size: .82rem;
}

.gallery-filter.is-active,
.gallery-filter:hover {
  background: rgba(201,37,47,.13);
  border-color: rgba(239,59,70,.62);
}

.video-card {
  transition: transform .2s ease, opacity .2s ease, border-color .2s ease;
}

.video-card:hover {
  transform: translateY(-2px);
  border-color: rgba(243,239,232,.2);
}

.video-card video {
  background: #030303;
}

.form input,
.form textarea {
  background: rgba(0,0,0,.38);
  border-color: rgba(243,239,232,.13);
}

.form input:focus,
.form textarea:focus {
  border-color: rgba(239,59,70,.78);
  box-shadow: 0 0 0 4px rgba(201,37,47,.13);
}

.recorder {
  background:
    radial-gradient(circle at 50% 12%, rgba(201,37,47,.14), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012)),
    var(--card);
}

.recorder-preview {
  border-color: rgba(243,239,232,.13);
  box-shadow: inset 0 0 80px rgba(0,0,0,.4);
}

.recorder-placeholder {
  background:
    radial-gradient(circle at center, rgba(201,37,47,.15), rgba(0,0,0,.94) 62%),
    #050505;
}

.upload-steps div,
.mobile-quick span {
  background: rgba(255,255,255,.018);
  border-color: rgba(243,239,232,.11);
}

.mobile-actionbar {
  border-color: rgba(243,239,232,.14);
  background: rgba(7,7,7,.76);
}

/* Admin premium */
.admin-page {
  max-width: 1360px;
}

.admin-hero {
  border-bottom-color: rgba(243,239,232,.1);
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: grid;
  align-content: end;
}

.admin-hero::after {
  content: "";
  position: absolute;
  right: 3%;
  top: 8%;
  width: min(28vw, 300px);
  aspect-ratio: 1;
  background: url("assets/logo-symbol.png") center / contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: .045;
  pointer-events: none;
}

.admin-hero .logo .brand-wordmark {
  height: 34px;
}

.admin-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.05em;
  text-transform: none;
  margin-bottom: 12px;
}

.admin-top > div,
.admin-top form,
.admin-item,
.admin-message {
  border-radius: 24px;
}

.admin-top strong {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  color: var(--text);
}

.admin-section h2 {
  font-family: Georgia, "Times New Roman", serif;
  text-transform: none;
  font-weight: 500;
  letter-spacing: -.035em;
}

.admin-actions .btn {
  min-height: 42px;
  padding-inline: 16px;
}

.admin-msg {
  border-radius: 999px;
  border-color: rgba(239,59,70,.28);
  background: rgba(201,37,47,.09);
}

.admin-login {
  border-radius: 28px;
  box-shadow: var(--shadow-premium);
}

/* refined mobile */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  body::before {
    background-size: 48px 48px;
    opacity: .18;
  }

  .nav {
    height: var(--nav-h);
    background: rgba(7, 7, 7, .78);
  }

  .brand-symbol {
    height: 31px;
  }

  .nav-upload {
    min-height: 38px;
    padding-inline: 15px;
    font-size: .78rem;
  }

  .menu-toggle span {
    height: 1px;
    margin: 8px 0;
  }

  .hero {
    min-height: 94svh;
    justify-content: flex-end;
    padding-top: calc(var(--nav-h) + 28px);
    padding-bottom: 104px;
  }

  .hero::before {
    width: 72vw;
    height: 72vw;
    right: -10vw;
    top: 34%;
    opacity: .045;
  }

  .hero-brand {
    justify-content: flex-start;
    margin-bottom: 22px;
  }

  .hero-brand-symbol {
    height: 58px;
  }

  .hero-meta {
    font-size: .66rem;
    margin-bottom: 18px;
  }

  h1 {
    font-size: clamp(3.45rem, 16.2vw, 5.2rem);
    line-height: .96;
    letter-spacing: -.052em;
  }

  .hero p {
    max-width: 86%;
    font-size: 1rem;
  }

  .hero-actions .btn {
    min-height: 56px;
  }

  .section {
    padding-top: 84px;
    padding-bottom: 84px;
  }

  .section-head {
    margin-bottom: 30px;
  }

  .card,
  .form,
  .recorder,
  .video-card {
    border-radius: 22px;
  }

  .gallery-toolbar {
    margin-top: -8px;
  }

  .gallery-filter {
    min-height: 46px;
    font-size: .8rem;
  }

  .recorder-preview {
    min-height: min(440px, 72vh);
  }

  .admin-page {
    padding: 22px 16px 90px;
  }

  .admin-hero {
    min-height: 210px;
    padding-bottom: 26px;
  }

  .admin-hero .logo .brand-wordmark {
    display: block;
    height: 26px;
  }

  .admin-hero .logo .brand-symbol {
    display: none;
  }

  .admin-hero h1 {
    font-size: clamp(2.7rem, 16vw, 4.6rem);
  }

  .admin-top {
    gap: 10px;
  }

  .admin-top > div,
  .admin-top form,
  .admin-item,
  .admin-message {
    border-radius: 20px;
  }
}

@media (max-width: 380px) {
  .hero-brand-symbol {
    height: 52px;
  }

  h1 {
    font-size: clamp(3.08rem, 15.8vw, 4.4rem);
  }
}


/* v11 content backend + GDPR */
.form select {
  width: 100%;
  min-height: 52px;
  background: rgba(0,0,0,.38);
  color: var(--text);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
}

.content-form {
  gap: 22px;
}

.content-fieldset {
  display: grid;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
}

.content-fieldset legend {
  padding: 0 8px;
  color: var(--accent-2);
  font-family: "Space Mono", "Courier New", monospace;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.privacy-panel {
  display: grid;
  gap: 16px;
}

.privacy-card {
  min-height: auto;
}

.privacy-card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .content-fieldset {
    border-radius: 18px;
    padding: 14px;
  }
}

/* v13 iPhone noir design inspired by the supplied WANTAKE mockup */
:root {
  --bg: #020202;
  --bg-2: #080808;
  --card: rgba(19, 19, 20, .78);
  --text: #f7f7f7;
  --text-2: #b9b9bc;
  --muted: #7a7a80;
  --accent: #ff2634;
  --accent-2: #ff3a46;
  --border: rgba(255,255,255,.11);
  --border-2: rgba(255,255,255,.18);
  --nav-h: 62px;
}

body {
  background:
    radial-gradient(circle at 50% -10%, rgba(255,255,255,.06), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(255,38,52,.08), transparent 28%),
    #020202;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, Arial, sans-serif;
  letter-spacing: -.01em;
}

.noise {
  opacity: .035;
  mix-blend-mode: screen;
}

.nav {
  height: var(--nav-h);
  padding-inline: clamp(16px, 4vw, 72px);
  background: rgba(2,2,2,.72);
  border-bottom: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(26px) saturate(140%);
}

.brand-wordmark { height: 22px; }
.nav-links a { font-weight: 650; letter-spacing: -.01em; }

.section {
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.hero {
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  align-items: flex-start;
  padding-left: clamp(22px, 9vw, 180px);
  background:
    radial-gradient(circle at 22% 58%, rgba(255,255,255,.16), transparent 12%),
    radial-gradient(circle at 70% 16%, rgba(255,38,52,.12), transparent 26%),
    linear-gradient(180deg, #050505 0%, #020202 64%, #030303 100%);
}

.hero::before {
  content: "";
  position: absolute;
  width: min(72vw, 760px);
  aspect-ratio: 1;
  left: clamp(8px, 9vw, 130px);
  top: 23%;
  z-index: -2;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, rgba(255,255,255,.105) 0 1px, transparent 1px 10px),
    radial-gradient(circle at 62% 38%, rgba(255,255,255,.22), transparent 8%),
    radial-gradient(circle, rgba(255,255,255,.06), transparent 63%);
  opacity: .52;
  filter: blur(.15px);
  transform: rotate(-16deg);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2,2,2,.18), rgba(2,2,2,.76) 62%, #020202),
    radial-gradient(circle at 30% 52%, transparent 0 20%, rgba(2,2,2,.72) 42%, #020202 76%);
}

.hero-brand-wordmark {
  height: clamp(38px, 4.2vw, 62px);
}

.hero-brand {
  margin-bottom: clamp(42px, 8vh, 92px);
}

.hero-meta {
  margin-left: clamp(4px, 8vw, 140px);
  color: #ff3a46;
  font-family: inherit;
  font-weight: 750;
  letter-spacing: .01em;
  text-transform: none;
}

.rec-dot {
  width: 11px;
  height: 11px;
  background: var(--accent);
  box-shadow: 0 0 20px rgba(255,38,52,.72);
}

h1 {
  max-width: 620px;
  font-weight: 820;
  letter-spacing: -.065em;
  line-height: .98;
  font-size: clamp(3.6rem, 7.6vw, 7.6rem);
}

.hero h1 {
  margin-bottom: 24px;
}

.hero h1 {
  text-wrap: balance;
}

.hero h1 span {
  color: #fff;
}

.hero h1 .claim-accent {
  color: var(--accent);
}

.hero p {
  max-width: 440px;
  text-align: center;
  color: rgba(255,255,255,.68);
  font-size: clamp(1.02rem, 1.25vw, 1.22rem);
  line-height: 1.55;
  margin-left: 10px;
}

.hero-actions {
  width: min(430px, 100%);
  display: grid;
  gap: 14px;
  margin-top: clamp(36px, 8vh, 86px);
}

.btn {
  min-height: 58px;
  border-radius: 16px;
  font-weight: 760;
  letter-spacing: -.015em;
}

.btn.primary {
  background: linear-gradient(180deg, #ff3441, #ed1020);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 18px 46px rgba(255,38,52,.28), inset 0 1px 0 rgba(255,255,255,.28);
}

.btn.ghost {
  background: rgba(15,15,16,.72);
  border-color: rgba(255,255,255,.13);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.btn-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 10px;
}

.rec-ring {
  border-radius: 50%;
  border: 3px solid #fff;
  position: relative;
}

.rec-ring::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
}

.flame-icon::before {
  content: "♨";
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.card,
.video-card,
.form,
.empty-state,
.admin-top > div,
.admin-top form,
.admin-item,
.admin-message,
.content-fieldset,
.privacy-card {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  border-color: rgba(255,255,255,.13);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 18px 48px rgba(0,0,0,.32);
  backdrop-filter: blur(22px) saturate(130%);
}

.form input,
.form textarea,
.form select {
  min-height: 56px;
  background: rgba(12,12,13,.76);
  border-color: rgba(255,255,255,.14);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.upload-section {
  background:
    radial-gradient(circle at 52% 24%, rgba(255,255,255,.07), transparent 24%),
    radial-gradient(circle at 70% 10%, rgba(255,38,52,.08), transparent 26%),
    #020202;
}

.upload-form {
  border-radius: 28px;
}

.recorder {
  display: grid;
  gap: 16px;
}

.recorder-preview {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.18);
  background:
    linear-gradient(110deg, rgba(0,0,0,.7), rgba(0,0,0,.18)),
    radial-gradient(circle at 56% 18%, rgba(255,255,255,.34), transparent 7%),
    linear-gradient(90deg, #050505, #17120f 44%, #050505);
}

.recorder-preview::before {
  content: "";
  position: absolute;
  inset: 18px auto auto 18px;
  width: 18px;
  height: 18px;
  z-index: 2;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(135deg);
  opacity: .88;
}

.recorder-preview::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 22px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.86);
  border-radius: 5px;
  box-shadow: 0 -5px 0 -2px rgba(255,255,255,.86);
  opacity: .9;
}

.recorder-preview video {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.recorder-placeholder {
  text-align: center;
  padding: 90px 24px;
  color: rgba(255,255,255,.76);
}

.recorder-placeholder strong {
  display: block;
  margin-top: 18px;
  font-size: 1.22rem;
  color: #fff;
}

.recorder-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,.72);
}

.recorder-status strong {
  font-size: 1.75rem;
  color: #fff;
}

.recorder-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

#startRecBtn,
#stopRecBtn {
  min-height: 72px;
  border-radius: 999px;
}

#startRecBtn {
  background: radial-gradient(circle at 38% 28%, #ff5660, #ff1d2d 62%, #b70714);
  box-shadow: 0 0 0 14px rgba(255,255,255,.04), 0 18px 42px rgba(255,38,52,.24);
}

#stopRecBtn {
  background: rgba(255,38,52,.12);
  border-color: rgba(255,38,52,.45);
}

.gallery-toolbar {
  background: rgba(14,14,15,.72);
  border-radius: 18px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.1);
}

.gallery-filter {
  border-radius: 13px;
}

.video-card video {
  aspect-ratio: 4 / 3;
}

.video-wrap {
  position: relative;
}

.watch-badge {
  background: rgba(255,38,52,.92);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 8px 24px rgba(0,0,0,.34);
}

.admin-page {
  max-width: 980px;
  background:
    radial-gradient(circle at 74% 10%, rgba(255,38,52,.11), transparent 28%),
    #020202;
}

.admin-hero {
  display: grid;
  gap: 14px;
  padding-bottom: 22px;
  margin-bottom: 24px;
}

.admin-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -.045em;
  text-transform: none;
  margin: 20px 0 0;
}

.admin-top {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-top > div,
.admin-top form {
  border-radius: 14px;
  min-height: 92px;
  align-items: center;
  text-align: center;
}

.admin-top strong {
  font-size: clamp(1.35rem, 3vw, 2.25rem);
}

.admin-top span {
  text-transform: none;
  letter-spacing: -.01em;
  font-size: .82rem;
}

.admin-section h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  text-transform: none;
  letter-spacing: -.035em;
}

.admin-item {
  border-radius: 22px;
  overflow: hidden;
}

.admin-cover,
.admin-video {
  border-radius: 16px;
}

.mobile-actionbar {
  background: rgba(8,8,9,.82);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(28px) saturate(140%);
}

.mobile-actionbar a {
  color: rgba(255,255,255,.56);
}

.mobile-actionbar a span {
  display: block;
  font-size: 1.25rem;
  line-height: 1;
  margin-bottom: 5px;
}

.mobile-actionbar a.primary,
.mobile-actionbar a.is-active {
  color: var(--accent);
}

@media (max-width: 768px) {
  .nav {
    height: 54px;
    border-bottom-color: transparent;
    background: linear-gradient(180deg, rgba(0,0,0,.8), rgba(0,0,0,0));
  }

  .nav-upload,
  .menu-toggle {
    display: none;
  }

  .hero {
    min-height: 100svh;
    justify-content: flex-start;
    padding: 86px 22px calc(92px + env(safe-area-inset-bottom));
  }

  .hero::before {
    width: 112vw;
    left: -17vw;
    top: 28%;
    opacity: .72;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(2,2,2,.08), rgba(2,2,2,.34) 42%, #020202 88%),
      radial-gradient(circle at 40% 52%, transparent 0 28%, rgba(2,2,2,.7) 59%, #020202 82%);
  }

  .hero-brand {
    justify-content: center;
    width: 100%;
    margin-bottom: 44px;
  }

  .hero-brand-wordmark {
    display: block;
    height: 38px;
  }

  .hero-brand-symbol {
    display: none;
  }

  .hero-meta {
    width: 100%;
    justify-content: center;
    margin: 0 0 76px;
    font-size: 1rem;
  }

  .hero h1 {
    font-size: clamp(2.85rem, 12.4vw, 4.6rem);
    line-height: 1.08;
    margin-bottom: 24px;
    max-width: 100%;
  }

  .hero h1::first-letter {
    color: inherit;
  }

  .hero p {
    margin: 0 auto;
    max-width: 320px;
    text-align: center;
    font-size: 1.02rem;
  }

  .hero-actions {
    width: 100%;
    margin-top: auto;
    padding-top: 42px;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 62px;
    border-radius: 14px;
    font-size: 1rem;
  }

  .section {
    padding: 76px 16px calc(82px + env(safe-area-inset-bottom));
  }

  .upload-section {
    padding-top: 32px;
  }

  .upload-section > div:first-child {
    text-align: center;
  }

  .upload-section h2 {
    font-size: 1.2rem;
    letter-spacing: -.02em;
  }

  .upload-section .muted,
  .upload-steps {
    display: none;
  }

  .upload-form {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .recorder {
    order: -1;
  }

  .recorder-preview,
  .recorder-preview video {
    min-height: 282px;
  }

  .recorder-status {
    flex-direction: column-reverse;
    gap: 4px;
    justify-content: center;
  }

  .recorder-status strong {
    font-size: 2.4rem;
  }

  .recorder-actions {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  #startCameraBtn,
  #redoRecBtn {
    width: 100%;
  }

  #startRecBtn,
  #stopRecBtn {
    width: 82px;
    height: 82px;
    min-height: 82px;
    padding: 0;
    font-size: 0;
  }

  #startRecBtn::after {
    content: "";
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
  }

  #stopRecBtn {
    font-size: .82rem;
  }

  .form label,
  .form input,
  .form textarea,
  .form select {
    font-size: 1rem;
  }

  .admin-page {
    padding: 24px 14px calc(88px + env(safe-area-inset-bottom));
  }

  .admin-hero {
    text-align: center;
    border-bottom-color: rgba(255,255,255,.06);
  }

  .admin-hero .logo {
    justify-content: center;
    font-family: inherit;
    text-transform: none;
    letter-spacing: -.02em;
    font-size: 1.05rem;
  }

  .admin-top {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .admin-top > div,
  .admin-top form {
    min-width: 76px;
    min-height: 86px;
    padding: 12px 8px;
  }

  .admin-top form {
    display: none;
  }

  .admin-item {
    gap: 0;
    padding: 0;
  }

  .admin-item > div:not(.admin-actions) {
    padding: 14px;
  }

  .admin-cover,
  .admin-video {
    border-radius: 18px 18px 0 0;
    aspect-ratio: 16 / 8.5;
  }

  .admin-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0 14px 14px;
  }

  .admin-actions form,
  .admin-actions .btn {
    width: 100%;
  }

  .mobile-actionbar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    min-height: 70px;
    border-radius: 22px;
    padding: 8px 8px 10px;
  }

  .mobile-actionbar a {
    display: grid;
    place-items: center;
    gap: 0;
    min-height: 52px;
    font-size: .68rem;
    font-weight: 650;
  }

  .back-to-top {
    display: none;
  }
}

@media (min-width: 769px) {
  .mobile-actionbar {
    display: none !important;
  }
}

/* v17 logo proportion fix: the original bitmap had a large canvas, so keep
   the cropped wordmark on stable, viewport-aware sizes across breakpoints. */
.brand-wordmark,
.hero-brand-wordmark {
  object-fit: contain;
  object-position: left center;
  max-width: 100%;
}

.brand-wordmark {
  display: block;
  width: clamp(104px, 9vw, 148px);
  height: auto;
}

.hero-brand {
  width: min(34vw, 360px);
  min-width: 190px;
}

.hero-brand-wordmark {
  display: block;
  width: 100%;
  height: auto;
}

.hero-brand-symbol,
.brand-symbol {
  object-fit: contain;
}

@media (max-width: 1024px) {
  .brand-wordmark {
    width: clamp(96px, 13vw, 132px);
  }

  .hero-brand {
    width: min(42vw, 300px);
    min-width: 168px;
  }
}

@media (max-width: 768px) {
  .brand-wordmark {
    display: none;
  }

  .brand-symbol {
    display: block;
    height: 30px;
  }

  .hero-brand {
    width: min(54vw, 236px);
    min-width: 150px;
    justify-content: center;
  }

  .hero-brand-wordmark {
    display: block;
  }

  .hero-brand-symbol {
    display: none;
  }
}

@media (max-width: 420px) {
  .hero-brand {
    width: min(62vw, 210px);
    min-width: 138px;
  }
}

/* v19 final product polish: consolidate the visible layer after historical
   version overrides and tune the public product experience. */
:root {
  --surface: rgba(255,255,255,.055);
  --surface-2: rgba(255,255,255,.085);
  --shadow-soft: 0 24px 80px rgba(0,0,0,.42);
  --shadow-red: 0 18px 52px rgba(255,38,52,.26);
  --radius-lg: 22px;
  --radius-md: 14px;
}

::selection {
  color: #fff;
  background: rgba(255,38,52,.74);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(255,58,70,.95);
  outline-offset: 4px;
}

.nav {
  transition: background .22s ease, border-color .22s ease, transform .22s ease;
}

.nav .logo {
  min-height: 44px;
}

.nav-links a {
  position: relative;
  padding-block: 10px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  opacity: .75;
  transition: transform .18s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.hero {
  min-height: max(720px, 100svh);
  justify-content: center;
  padding-top: calc(var(--nav-h) + 34px);
  padding-bottom: clamp(56px, 8vh, 96px);
}

.hero::before {
  opacity: .44;
}

.hero-brand {
  margin-bottom: clamp(30px, 6vh, 64px);
}

.hero-meta {
  margin-bottom: clamp(26px, 4.5vh, 52px);
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(4.25rem, 8.2vw, 8.4rem);
  line-height: .93;
  letter-spacing: -.068em;
  margin-bottom: clamp(18px, 3vh, 28px);
}

.hero p {
  margin-left: 0;
  text-align: left;
  max-width: 480px;
  color: rgba(255,255,255,.72);
}

.hero-actions {
  margin-top: clamp(28px, 5vh, 58px);
  width: min(460px, 100%);
  grid-template-columns: 1fr 1fr;
}

.hero-actions .btn {
  min-height: 60px;
}

.mobile-quick {
  margin-top: clamp(24px, 4vh, 42px);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-quick span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 0 12px;
  color: rgba(255,255,255,.62);
  background: rgba(255,255,255,.035);
  backdrop-filter: blur(14px);
}

.section {
  min-height: auto;
  padding-block: clamp(86px, 10vw, 132px);
}

.section-head {
  max-width: 760px;
}

.section-head .muted,
.muted {
  color: rgba(255,255,255,.66);
}

.cards,
.gallery {
  gap: clamp(14px, 2vw, 22px);
}

.card,
.video-card,
.form,
.empty-state,
.privacy-card,
.content-fieldset {
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.072), rgba(255,255,255,.027));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.075), var(--shadow-soft);
}

.manifest-card {
  min-height: 260px;
}

.manifest-card h3,
.video-body h3,
.privacy-card h3 {
  letter-spacing: -.03em;
}

.gallery-toolbar {
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.gallery-toolbar::-webkit-scrollbar {
  display: none;
}

.gallery-filter {
  white-space: nowrap;
  min-height: 40px;
}

.video-card {
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.video-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 28px 90px rgba(0,0,0,.48);
}

.video-body {
  padding: 18px;
}

.vote-btn {
  min-width: 58px;
  min-height: 42px;
  border-radius: 999px;
}

.upload-section {
  grid-template-columns: minmax(260px, .8fr) minmax(360px, 1fr);
  align-items: start;
  gap: clamp(34px, 6vw, 88px);
}

.upload-section > div:first-child {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
}

.upload-section h2 {
  max-width: 540px;
}

.upload-steps {
  margin-top: 28px;
}

.upload-steps div {
  min-height: 74px;
  border-radius: 18px;
}

.upload-form {
  padding: clamp(18px, 3vw, 30px);
}

.form {
  gap: 18px;
}

.form label {
  color: rgba(255,255,255,.76);
  font-weight: 660;
}

.form input,
.form textarea,
.form select {
  margin-top: 7px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  background: rgba(18,18,20,.92);
  border-color: rgba(255,58,70,.72);
  box-shadow: 0 0 0 4px rgba(255,38,52,.12), inset 0 1px 0 rgba(255,255,255,.08);
}

.recorder {
  border-radius: 26px;
}

.recorder-preview {
  min-height: clamp(340px, 44vw, 520px);
  aspect-ratio: 9 / 14;
}

.recorder-preview video {
  min-height: clamp(340px, 44vw, 520px);
}

.recorder-placeholder {
  min-height: inherit;
  display: grid;
  place-items: center;
}

.recorder-actions {
  align-items: stretch;
}

.mobile-capture-btn {
  min-height: 54px;
  border-style: dashed;
  color: rgba(255,255,255,.82);
}

.field-hint {
  color: rgba(255,255,255,.55);
}

.form-message {
  min-height: 24px;
  font-weight: 650;
}

.form-message.ok {
  color: var(--success);
}

.form-message.error,
.file-meta.error {
  color: #ff6b75;
}

.cta {
  min-height: 58vh;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 24%, rgba(255,38,52,.16), transparent 28%),
    linear-gradient(180deg, #020202, #070707);
}

.cta h2 {
  max-width: 860px;
}

#kontakt {
  align-items: start;
}

#kontakt .form,
#gdpr .form {
  max-width: 620px;
  width: 100%;
  justify-self: end;
}

.footer {
  min-height: 96px;
}

.footer-brand {
  gap: 10px;
}

.footer-symbol {
  height: 26px;
  width: auto;
}

.admin-page {
  max-width: 1120px;
}

.admin-top {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}

.admin-top form {
  min-width: 124px;
}

.admin-login {
  margin-inline: auto;
}

.admin-section {
  scroll-margin-top: 90px;
}

.content-form {
  grid-template-columns: 1fr;
}

.content-fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.content-fieldset label:has(textarea),
.content-fieldset label:has(input[name*="smtp_password"]) {
  grid-column: 1 / -1;
}

@media (max-width: 1024px) {
  .hero {
    min-height: max(680px, 100svh);
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .upload-section {
    grid-template-columns: 1fr;
  }

  .upload-section > div:first-child {
    position: static;
  }

  #kontakt .form,
  #gdpr .form {
    justify-self: stretch;
    max-width: none;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .nav .logo {
    min-height: 40px;
  }

  .hero {
    min-height: max(640px, 100svh);
    padding: 78px 20px calc(104px + env(safe-area-inset-bottom));
    justify-content: flex-start;
  }

  .hero-brand {
    margin: 0 auto clamp(34px, 8vh, 54px);
  }

  .hero-meta {
    margin: 0 0 clamp(34px, 7vh, 58px);
  }

  .hero h1 {
    font-size: clamp(3rem, 13.4vw, 4.9rem);
    line-height: 1;
    letter-spacing: -.058em;
    text-align: left;
  }

  .hero p {
    margin: 0;
    text-align: left;
    max-width: 92%;
  }

  .hero-actions {
    margin-top: auto;
    padding-top: 30px;
  }

  .mobile-quick {
    display: none;
  }

  .section {
    padding: 72px 16px;
  }

  .section-head {
    margin-bottom: 24px;
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3.1rem);
    line-height: 1;
  }

  .cards,
  .gallery {
    grid-template-columns: 1fr;
  }

  .manifest-card {
    min-height: auto;
  }

  .gallery-toolbar {
    width: 100%;
    display: flex;
    padding: 5px;
  }

  .gallery-filter {
    flex: 0 0 auto;
  }

  .upload-section {
    padding-top: 58px;
  }

  .upload-section > div:first-child {
    text-align: left;
  }

  .upload-section .muted {
    display: block;
  }

  .upload-form {
    padding: 0;
  }

  .recorder-preview,
  .recorder-preview video {
    min-height: min(78svh, 430px);
  }

  .recorder-actions {
    grid-template-columns: 1fr 1fr;
  }

  #startCameraBtn,
  #redoRecBtn,
  .mobile-capture-btn {
    width: 100%;
  }

  #startCameraBtn,
  #redoRecBtn,
  .mobile-capture-btn {
    grid-column: 1 / -1;
  }

  #startRecBtn,
  #stopRecBtn {
    justify-self: center;
  }

  #kontakt {
    gap: 24px;
  }

  .footer {
    display: grid;
    gap: 10px;
    text-align: center;
    justify-items: center;
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .mobile-actionbar {
    box-shadow: 0 18px 54px rgba(0,0,0,.48);
  }

  .content-fieldset {
    grid-template-columns: 1fr;
  }

  .admin-top {
    grid-template-columns: repeat(4, minmax(76px, 1fr));
  }
}

@media (max-width: 390px) {
  .hero {
    padding-inline: 16px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 13vw, 3.8rem);
  }

  .btn {
    min-height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}
