:root {
  --bg: #120a08;
  --panel: #20110d;
  --panel-soft: rgba(255, 255, 255, 0.03);
  --panel-strong: rgba(255, 255, 255, 0.05);
  --text: #f7e7d3;
  --muted: #d8b48f;
  --accent: #ff6a1a;
  --accent-soft: #ffb36b;
  --line: rgba(247, 231, 211, 0.14);
  --line-strong: rgba(255, 179, 107, 0.4);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 106, 26, 0.28), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(255, 179, 107, 0.18), transparent 25%),
    radial-gradient(circle at 20% 80%, rgba(255, 106, 26, 0.12), transparent 30%),
    linear-gradient(135deg, #0e0908 0%, #1a0f0c 45%, #120a08 100%);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
}

button,
input {
  font: inherit;
}

.auth-screen,
.hero,
.story,
.admin-panel,
.member-list-panel,
.modes,
.gallery,
.signal {
  padding-inline: clamp(1.4rem, 3vw, 3rem);
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.auth-panel,
.admin-panel,
.member-card,
.summary-card,
.info-card,
.admin-highlight,
.quote-panel,
.mode-card,
.clip-card,
.category-panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 106, 26, 0.08), transparent 45%),
    var(--panel-soft);
  box-shadow: var(--shadow);
}

.auth-panel,
.admin-panel {
  width: min(100%, 34rem);
  padding: 1.5rem;
}

.auth-copy,
.auth-note,
.story p,
.gallery-note,
.clip-date,
.empty-state,
.clip-owner,
.admin-copy p,
.info-card p,
.input-help,
.auth-footnote {
  color: var(--muted);
  line-height: 1.6;
}

.auth-note,
.clip-date,
.clip-owner,
.empty-state,
.form-message,
.gallery-note,
.story p,
.admin-copy p,
.signal-list,
.lead,
.info-card p,
.input-help,
.auth-footnote {
  font-size: clamp(1rem, 2vw, 1.08rem);
}

.auth-note,
.form-message,
.clip-date,
.clip-owner,
.empty-state,
.input-help,
.auth-footnote {
  margin: 0;
}

.page-shell {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding-top: 1rem;
  padding-bottom: 2.5rem;
}

.topbar {
  position: absolute;
  top: 1rem;
  left: 0;
  right: 0;
  padding-inline: clamp(1.4rem, 3vw, 3rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-actions,
.cta-row,
.gallery-toolbar {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  align-items: center;
}

.brand-tag,
.section-label,
.mode-kicker,
.clip-category,
.field-label,
.user-badge,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.brand-tag,
.section-label,
.mode-kicker,
.clip-category,
.field-label,
.user-badge,
.eyebrow {
  font-size: 0.76rem;
}

.eyebrow,
.mode-kicker,
.clip-category,
.field-label,
.user-badge,
.hero-stat-label,
.summary-label,
.admin-highlight-label {
  color: var(--accent-soft);
}

.user-badge {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.mini-button,
.primary-cta,
.secondary-cta,
.mode-link,
.filter-button,
.delete-button,
.member-rank-button {
  border-radius: 999px;
  padding: 0.9rem 1.3rem;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.mini-button,
.secondary-cta,
.mode-link,
.filter-button,
.delete-button,
.member-rank-button {
  color: var(--text);
  border: 1px solid var(--line);
  background: transparent;
}

.primary-cta,
.filter-button.is-active {
  background: var(--accent);
  color: #1c0d08;
  font-weight: 700;
  border: none;
}

.mini-button:hover,
.primary-cta:hover,
.secondary-cta:hover,
.mode-link:hover,
.filter-button:hover,
.delete-button:hover,
.member-rank-button:hover {
  transform: translateY(-2px);
}

.mini-button:hover,
.secondary-cta:hover,
.mode-link:hover,
.filter-button:hover,
.delete-button:hover,
.member-rank-button:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.auth-form,
.upload-form,
.mode-copy,
.clip-meta,
.admin-copy {
  display: grid;
  gap: 0.95rem;
}

.auth-footnote {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.owner-readonly-note {
  padding: 1.2rem;
  border-radius: 1.1rem;
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.status-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  width: fit-content;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 1rem;
}

.status-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: 0 0 0 0 rgba(255, 179, 107, 0.45);
  animation: pulse 1.8s infinite;
}

.hero-stats,
.summary-grid,
.info-grid,
.admin-highlights {
  display: grid;
  gap: 1rem;
}

.hero-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.hero-stat,
.summary-card,
.info-card,
.admin-highlight {
  padding: 1rem 1.1rem;
  border-radius: 1.2rem;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  backdrop-filter: blur(10px);
}

.hero-stat-label,
.summary-label,
.admin-highlight-label {
  display: block;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
}

.hero-stat-value,
.summary-value,
.admin-highlight strong {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-family: "Anton", sans-serif;
  font-weight: 400;
  line-height: 1;
}

.summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1.4rem;
}

.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.info-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

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

.category-select-block {
  display: grid;
  gap: 0.7rem;
}

.category-select-shell {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background:
    linear-gradient(135deg, rgba(255, 106, 26, 0.14), rgba(255, 179, 107, 0.06)),
    rgba(255, 255, 255, 0.03);
  text-decoration: none;
}

.category-select-copy {
  display: grid;
  gap: 0.3rem;
}

.category-select-copy strong {
  font-size: 1.05rem;
  color: var(--text);
}

.category-select-copy span {
  color: var(--muted);
  font-size: 0.95rem;
}

.field-label,
.mode-kicker,
.clip-category {
  margin: 0;
}

.text-input,
.file-input,
.category-select {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 0.95rem 1rem;
}

.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.category-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.category-choice {
  min-height: 4rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(18, 10, 8, 0.48);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.category-choice:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}

.category-choice.is-selected {
  border-color: rgba(255, 179, 107, 0.75);
  background:
    linear-gradient(135deg, rgba(255, 106, 26, 0.28), rgba(255, 179, 107, 0.14)),
    rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 179, 107, 0.35);
}

.file-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  min-height: 4.2rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 106, 26, 0.12), rgba(255, 179, 107, 0.04)),
    rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.file-picker:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background:
    linear-gradient(135deg, rgba(255, 106, 26, 0.18), rgba(255, 179, 107, 0.07)),
    rgba(255, 255, 255, 0.04);
}

.file-picker-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  background: var(--accent);
  color: #1c0d08;
  font-weight: 700;
  white-space: nowrap;
}

.file-picker-name {
  color: var(--text);
  opacity: 0.88;
  font-size: 0.98rem;
  line-height: 1.4;
}

.input-help {
  margin-top: -0.2rem;
}

.text-input::placeholder {
  color: rgba(247, 231, 211, 0.5);
}

.text-input:focus,
.file-input:focus,
.category-select:focus {
  outline: 1px solid var(--line-strong);
  border-color: var(--line-strong);
}

.file-picker:focus-within {
  outline: 1px solid var(--line-strong);
  border-color: var(--line-strong);
}

h1,
h2,
.clip-title {
  margin: 0;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  line-height: 0.95;
}

h1 {
  font-size: clamp(4.2rem, 16vw, 11rem);
}

.auth-panel h1 {
  font-size: clamp(3.4rem, 11vw, 6rem);
}

h2 {
  font-size: clamp(2.4rem, 8vw, 5.2rem);
  max-width: 11ch;
}

.clip-title {
  font-size: clamp(2rem, 5vw, 3.3rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 42rem;
  animation: rise 900ms ease-out both;
}

.lead {
  max-width: 38rem;
}

.hero-mark {
  position: absolute;
  right: clamp(-1rem, 4vw, 1rem);
  bottom: 1.2rem;
  display: grid;
  gap: 0;
  text-align: right;
  font-family: "Anton", sans-serif;
  font-size: clamp(3.8rem, 13vw, 9rem);
  line-height: 0.8;
  color: rgba(247, 231, 211, 0.06);
  pointer-events: none;
  transform: rotate(-7deg);
}

.strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem clamp(1.4rem, 3vw, 3rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
}

.strip-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 4.6rem;
  padding: 1rem 1.1rem;
  border-radius: 1.1rem;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.strip-link:hover {
  transform: translateY(-2px);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.strip-link.is-active {
  border-color: rgba(255, 179, 107, 0.45);
  background:
    linear-gradient(135deg, rgba(255, 106, 26, 0.16), rgba(255, 179, 107, 0.08)),
    rgba(255, 255, 255, 0.05);
}

.strip-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.strip-text {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  color: var(--accent-soft);
}

.story,
.admin-panel,
.member-list-panel,
.modes,
.gallery,
.signal {
  padding-top: clamp(4rem, 10vw, 7rem);
  padding-bottom: clamp(4rem, 10vw, 7rem);
}

.story {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: end;
}

.quote-panel {
  min-height: 22rem;
  display: grid;
  place-items: end start;
  padding: 1.5rem;
  border-radius: 1.4rem;
}

.quote-line {
  max-width: 7ch;
  font-family: "Anton", sans-serif;
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 0.95;
}

.admin-panel,
.member-list-panel,
.modes,
.gallery,
.signal {
  border-top: 1px solid var(--line);
}

.admin-panel {
  width: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.admin-copy {
  align-content: start;
}

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

.member-list-panel {
  width: auto;
}

.member-list-head,
.modes-heading,
.gallery-head {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
}

.member-list-head {
  margin-bottom: 2rem;
}

.modes-heading,
.gallery-head {
  margin-bottom: 2.5rem;
}

.gallery-grid,
.member-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.category-panel {
  padding: 1.4rem;
  display: grid;
  gap: 1.4rem;
  border-radius: 1.4rem;
}

.member-card {
  padding: 1.3rem;
  display: grid;
  gap: 0.8rem;
  border-radius: 1.1rem;
}

.member-card-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.member-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.member-role {
  margin: 0;
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
}

.member-created-at {
  color: var(--muted);
  font-size: 0.9rem;
}

.member-name {
  margin: 0;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 0.95;
}

.mode-link,
.delete-button,
.member-rank-button {
  width: fit-content;
  cursor: pointer;
}

.gallery-note {
  max-width: 30rem;
  margin: 0;
}

.clip-card {
  overflow: hidden;
  border-radius: 1.2rem;
}

.clip-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
}

.clip-meta {
  padding: 1.2rem 1.2rem 0.8rem;
}

.clip-category {
  display: inline-flex;
  width: fit-content;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 179, 107, 0.3);
  background: rgba(255, 179, 107, 0.08);
}

.delete-button {
  margin: 0 1.2rem 1.2rem;
}

.signal-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.signal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.2rem;
}

.signal-list li {
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 179, 107, 0.45);
  }
  70% {
    box-shadow: 0 0 0 0.55rem rgba(255, 179, 107, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 179, 107, 0);
  }
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    padding-top: 7rem;
  }

  .strip,
  .story,
  .admin-panel,
  .hero-stats,
  .summary-grid,
  .info-grid,
  .admin-highlights,
  .category-choice-grid,
  .member-list-grid,
  .gallery-grid,
  .signal-grid,
  .member-list-head,
  .modes-heading,
  .gallery-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .topbar {
    align-items: start;
    gap: 1rem;
    flex-direction: column;
  }

  .quote-panel {
    min-height: 14rem;
  }

  .hero-mark {
    right: -0.6rem;
    bottom: 7rem;
    opacity: 0.75;
  }
}
