/*
 * Design-system foundation generated from the current product language.
 * This file owns base tokens, shell layout, and shared components. Product
 * overrides load afterwards from style.css; avoid redefining tokens there.
 */
:root {
  --bg: #07070a;
  --surface-1: #0d0d13;
  --surface-2: #13131a;
  --surface-3: #1a1a24;
  --surface-4: #22222e;
  --border: #28283a;
  --border-light: #32324a;
  --text-1: #f2f2f7;
  --text-2: #8a8a9e;
  --text-3: #4a4a5e;
  --cyan: #05e0ff;
  --cyan-dim: #03a8be;
  --violet: #9b5dff;
  --violet-dim: #6c3fbf;
  --lime: #baff47;
  --gold: #c8a255;
  --gold-bright: #ddb96a;
  --danger: #ff4560;
  --success: #00d68f;
  --shell-width: 390px;
  --shell-height: min(844px, calc(100vh - 32px));
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --button-height: 38px;
  --button-height-small: 32px;
  --button-height-large: 44px;
  --button-radius: 12px;
  --button-radius-small: 10px;
  --shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.42);
  --shadow-violet: 0 0 20px rgba(155, 93, 255, 0.22), 0 0 60px rgba(155, 93, 255, 0.08);
  --shadow-cyan: 0 0 20px rgba(5, 224, 255, 0.22), 0 0 60px rgba(5, 224, 255, 0.08);
  --shadow-gold: 0 0 20px rgba(200, 162, 85, 0.28), 0 0 60px rgba(200, 162, 85, 0.12);
}
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text-1);
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, #11091a 0%, var(--bg) 58%);
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ambient-a {
  background: radial-gradient(circle at 24% 18%, rgba(155, 93, 255, 0.08) 0, transparent 42%);
}

.ambient-b {
  background: radial-gradient(circle at 74% 78%, rgba(5, 224, 255, 0.06) 0, transparent 40%);
}

.shell-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.device-shell {
  position: relative;
  width: 100%;
  max-width: var(--shell-width);
  height: var(--shell-height);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 42px;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 40px 80px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(155, 93, 255, 0.08),
    0 0 120px rgba(5, 224, 255, 0.04);
}

.device-island {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 118px;
  height: 34px;
  border-radius: 24px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 20;
}

.status-bar {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 52px;
  padding: 14px 26px 0;
  font-size: 12px;
  font-weight: 600;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
}

.screen-scroll {
  position: absolute;
  inset: 52px 0 70px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.screen-scroll::-webkit-scrollbar {
  display: none;
}

.home-indicator {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.page-section {
  padding: 0 16px 24px;
}

.top-margin-8 { margin-top: 8px; }
.top-margin-12 { margin-top: 12px; }
.top-margin-16 { margin-top: 16px; }
.top-margin-18 { margin-top: 18px; }
.top-margin-20 { margin-top: 20px; }
.no-margin { margin: 0; }
.gap-12 { gap: 12px; }

.flash-stack {
  display: grid;
  gap: 8px;
  padding: 0 16px 12px;
}

.flash {
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--surface-1);
  font-size: 12px;
}

.flash-success { border-color: rgba(0, 214, 143, 0.35); color: var(--success); }
.flash-danger { border-color: rgba(255, 69, 96, 0.35); color: var(--danger); }
.flash-warning { border-color: rgba(200, 162, 85, 0.35); color: var(--gold-bright); }
.flash-info { border-color: rgba(5, 224, 255, 0.3); color: var(--cyan); }

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-title {
  font-family: "Syne", "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.page-subtitle {
  margin-top: 2px;
  color: var(--text-3);
  font-size: 11px;
}

.home-header {
  padding-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.icon-avatar {
  width: var(--button-height);
  height: var(--button-height);
  border-radius: var(--button-radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  box-shadow: var(--shadow-soft);
}

.icon-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.brand-mark {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(5, 224, 255, 0.08);
  border: 1px solid rgba(5, 224, 255, 0.18);
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.eyebrow {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-copy h1,
.auth-card h1 {
  margin: 10px 0 10px;
  font-family: "Syne", "Space Grotesk", sans-serif;
  font-size: 34px;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-copy p,
.auth-card p,
.body-copy,
.empty-state p {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
}

.body-copy.compact { font-size: 13px; }
.body-strong { font-size: 13px; font-weight: 700; }
.body-muted { font-size: 11px; color: var(--text-3); }

.onboarding-screen,
.auth-screen {
  padding: 0 20px 24px;
}

.hero-stack {
  position: relative;
  height: 268px;
  margin-top: 18px;
}

.preview-card {
  position: absolute;
  inset: auto;
  width: 185px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  background: var(--surface-2);
}

.preview-card img {
  width: 100%;
  height: 128px;
  object-fit: cover;
}

.preview-card-overlay,
.hero-overlay,
.winner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 7, 10, 0.95) 0%, rgba(7, 7, 10, 0.2) 60%, transparent 100%);
}

.preview-card-meta {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.preview-card-title,
.clip-row-title,
.duel-title,
.podium-title,
.mini-rank-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.preview-card-score,
.hero-score,
.clip-row-score,
.podium-score,
.mini-rank-score {
  font-family: "Syne", "Space Grotesk", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.preview-card-score { font-size: 22px; color: var(--cyan); }
.preview-1 { left: 0; top: 22px; transform: rotate(-8deg); z-index: 1; }
.preview-2 { right: 0; top: 44px; transform: rotate(7deg); z-index: 2; }
.preview-3 { left: 50%; top: 86px; transform: translateX(-50%) rotate(-2deg); z-index: 0; }

.hero-copy { margin-top: 12px; }

.stats-grid {
  display: grid;
  gap: 10px;
}

.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.four-up { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.compact-grid .stat-box,
.compact-grid .mini-rank-card { min-height: 0; }

.stat-box {
  min-height: 78px;
  border-radius: 16px;
  padding: 12px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.stat-value {
  font-family: "Syne", "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  margin-top: 6px;
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tone-accent .stat-value { color: var(--cyan); }
.tone-success .stat-value { color: var(--success); }
.tone-warning .stat-value { color: var(--gold-bright); }
.tone-danger .stat-value { color: var(--danger); }

.stack {
  display: grid;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--button-height);
  padding: 0 14px;
  border-radius: var(--button-radius);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.button:hover { transform: translateY(-1px); }
.button-block { width: 100%; }
.button-small {
  min-height: var(--button-height-small);
  padding: 0 10px;
  border-radius: var(--button-radius-small);
  font-size: 12px;
}
.button-gradient {
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: var(--on-brand-gradient, #090811);
  box-shadow: var(--shadow-violet);
}
.button-muted {
  background: var(--surface-1);
  color: var(--text-1);
  border-color: var(--border);
}
.button-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  border-color: rgba(255, 255, 255, 0.06);
}
.button-danger {
  background: rgba(255, 69, 96, 0.09);
  color: var(--danger);
  border-color: rgba(255, 69, 96, 0.2);
}

.pill-row {
  display: flex;
  gap: 8px;
}

.pill-row.wrap { flex-wrap: wrap; }
.pill-row.scroll-x { overflow-x: auto; scrollbar-width: none; }
.pill-row.scroll-x::-webkit-scrollbar { display: none; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.pill-active,
.pill-active.tone-muted {
  background: rgba(5, 224, 255, 0.12);
  border-color: rgba(5, 224, 255, 0.28);
  color: var(--cyan);
}

.tone-accent { background: rgba(5, 224, 255, 0.08); border-color: rgba(5, 224, 255, 0.18); color: var(--cyan); }
.tone-warning { background: rgba(200, 162, 85, 0.12); border-color: rgba(200, 162, 85, 0.3); color: var(--gold-bright); }
.tone-danger { background: rgba(255, 69, 96, 0.12); border-color: rgba(255, 69, 96, 0.28); color: var(--danger); }
.tone-success { background: rgba(0, 214, 143, 0.1); border-color: rgba(0, 214, 143, 0.22); color: var(--success); }
.tone-muted { background: var(--surface-3); border-color: var(--border); color: var(--text-2); }

.hero-card,
.detail-hero,
.winner-card,
.podium-card,
.profile-card,
.panel,
.auth-card,
.clip-row,
.mini-rank-card,
.member-card,
.activity-row,
.moderation-card,
.setting-row,
.duel-card {
  border-radius: 22px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.hero-card,
.detail-hero,
.winner-card {
  position: relative;
  overflow: hidden;
}

.hero-media {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.tall-media { height: 260px; }
.compact-hero .hero-media { height: 150px; }

.hero-topline {
  position: absolute;
  inset: 14px 14px auto 14px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.hero-score {
  min-width: 74px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(7, 7, 10, 0.72);
  border: 1px solid rgba(5, 224, 255, 0.28);
  text-align: center;
  font-size: 26px;
  color: var(--cyan);
  backdrop-filter: blur(12px);
}

.hero-score.gold,
.gold {
  color: var(--gold-bright);
  border-color: rgba(200, 162, 85, 0.3);
}

.hero-content {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.hero-title {
  font-family: "Syne", "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-title.small { font-size: 18px; }
.hero-subtitle,
.clip-row-subtitle,
.duel-meta,
.podium-meta,
.mini-rank-meta {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 11px;
}

.hero-inline-stats {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 4px;
  font-size: 11px;
  color: var(--text-2);
}

.action-row {
  display: grid;
  gap: 10px;
}

.action-row.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.action-row.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0;
  font-size: 14px;
  font-family: "Syne", "Space Grotesk", sans-serif;
  font-weight: 700;
}

.section-head a,
.section-head span {
  color: var(--text-2);
  font-size: 11px;
}

.mini-rank-card {
  min-height: 112px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-rank-number {
  color: var(--cyan);
  font-weight: 700;
  font-size: 11px;
}

.mini-rank-score {
  margin-top: auto;
  font-size: 20px;
  color: var(--text-1);
}

.clip-row {
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.rank-chip {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--surface-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
}

.clip-row-thumb,
.moderation-thumb {
  width: 70px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
  flex: 0 0 auto;
}

.clip-row-body,
.moderation-body,
.activity-body {
  min-width: 0;
  flex: 1;
}

.clip-row-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clip-row-meta {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  font-size: 10px;
  color: var(--text-3);
}

.clip-row-score {
  margin-left: auto;
  font-size: 22px;
  color: var(--text-1);
}

.play-badge {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  color: white;
  font-size: 22px;
}

.gold-ring {
  border-color: rgba(200, 162, 85, 0.45);
  box-shadow: var(--shadow-gold);
}

.creator-row,
.creator-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.creator-inline { justify-content: flex-start; }

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.avatar-large { width: 54px; height: 54px; }
.avatar-xl { width: 72px; height: 72px; }

.panel {
  padding: 14px;
}

.accent-panel { border-color: rgba(5, 224, 255, 0.2); background: rgba(5, 224, 255, 0.05); }
.winner-panel { border-color: rgba(200, 162, 85, 0.22); background: rgba(200, 162, 85, 0.06); }

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 11px;
  color: var(--text-2);
}

.bar-cloud {
  display: flex;
  align-items: end;
  gap: 4px;
  min-height: 50px;
  margin-top: 10px;
}

.bar-stick {
  flex: 1;
  border-radius: 999px;
  background: var(--surface-4);
}

.bar-stick.active {
  background: linear-gradient(180deg, var(--cyan), var(--violet-dim));
}

.reaction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.reaction-button {
  min-height: 72px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.reaction-button.active {
  border-color: rgba(5, 224, 255, 0.35);
  color: var(--cyan);
  background: rgba(5, 224, 255, 0.08);
}

.reaction-emoji {
  font-size: 20px;
}

.meter-track,
.taste-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: var(--surface-4);
  overflow: hidden;
}

.meter-fill,
.taste-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
}

.rating-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.rating-card {
  min-height: 92px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.rating-card.active,
.rating-card:hover {
  color: var(--text-1);
  background: linear-gradient(180deg, rgba(155, 93, 255, 0.22), rgba(5, 224, 255, 0.18));
  border-color: rgba(5, 224, 255, 0.28);
}

.rating-number {
  font-family: "Syne", "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.rating-label {
  font-size: 10px;
  text-align: center;
}

.duel-axis {
  width: 52px;
  height: 52px;
  margin-inline: auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(155, 93, 255, 0.14);
  border: 1px solid rgba(155, 93, 255, 0.26);
  color: var(--violet);
  font-weight: 800;
  box-shadow: var(--shadow-violet);
}

.duel-stack {
  display: grid;
  gap: 12px;
}

.duel-shell {
  position: relative;
}

.duel-form-card { margin: 0; }

.duel-card {
  width: 100%;
  padding: 0;
  overflow: hidden;
  text-align: left;
}

.duel-thumb {
  width: 100%;
  height: 164px;
  object-fit: cover;
}

.duel-card-body {
  padding: 14px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.podium-card {
  padding: 10px;
  text-align: center;
}

.podium-first {
  transform: translateY(-10px);
  border-color: rgba(200, 162, 85, 0.34);
  box-shadow: var(--shadow-gold);
}

.podium-rank {
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 700;
}

.podium-thumb {
  width: 100%;
  height: 92px;
  object-fit: cover;
  border-radius: 16px;
  margin: 10px 0;
}

.podium-score {
  font-size: 24px;
  color: var(--text-1);
}

.podium-votes { font-size: 10px; color: var(--text-3); }

.community-hero {
  position: relative;
}

.community-identity {
  display: flex;
  gap: 14px;
  align-items: center;
}

.community-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: var(--shadow-violet);
  flex: 0 0 auto;
}

.community-title { font-size: 20px; }

.member-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.member-card {
  padding: 14px 10px;
  text-align: center;
}

.member-badge {
  display: inline-flex;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(200, 162, 85, 0.12);
  color: var(--gold-bright);
  font-size: 10px;
  font-weight: 700;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 14px rgba(186, 255, 71, 0.35);
}

.activity-row,
.setting-row {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.activity-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-weight: 700;
  flex: 0 0 auto;
}

.activity-icon.danger { color: var(--danger); }

.profile-card {
  overflow: hidden;
  padding-bottom: 14px;
}

.profile-banner {
  height: 96px;
}

.profile-main {
  display: flex;
  gap: 14px;
  padding: 0 14px;
  margin-top: -28px;
  margin-bottom: 10px;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}

.profile-identity {
  min-width: 0;
  padding: 10px 12px 8px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(11, 11, 18, 0.92), rgba(11, 11, 18, 0.72));
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.24);
}

.profile-identity .hero-title,
.profile-identity .body-muted {
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

.profile-bio {
  padding: 0 14px;
}

.best-clip-share .clip-row {
  box-shadow: none;
}

.best-clip-share .share-status,
.winner-panel .share-status {
  display: block;
  margin-top: 10px;
  min-height: 18px;
}

.share-status[data-state="error"] {
  color: var(--danger);
}

.share-manual-dialog {
  width: min(92vw, 520px);
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface-1);
  color: var(--text-1);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}

.share-manual-dialog::backdrop {
  background: rgba(4, 4, 8, 0.76);
  backdrop-filter: blur(8px);
}

.share-manual-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.share-manual-dialog-head h2 {
  margin: 0;
}

.share-manual-dialog .field {
  width: 100%;
  margin-top: 14px;
}

.taste-stack {
  display: grid;
  gap: 10px;
}

.taste-row {
  display: grid;
  grid-template-columns: 34px 1fr 40px;
  gap: 10px;
  align-items: center;
}

.taste-label,
.taste-value {
  font-size: 11px;
  color: var(--text-2);
}

.auth-card {
  padding: 18px;
}

.auth-footer {
  font-size: 12px;
  color: var(--text-2);
}

.auth-footer a { color: var(--cyan); }

.auth-legal-note {
  line-height: 1.5;
}

.winner-page {
  position: relative;
}

.winner-card {
  border-color: rgba(200, 162, 85, 0.4);
  box-shadow: var(--shadow-gold);
}

.winner-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(200, 162, 85, 0.92), rgba(221, 185, 106, 0.92));
  color: #2b1700;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.moderation-card {
  padding: 12px;
}

.moderation-top {
  display: flex;
  gap: 12px;
  align-items: center;
}

.moderation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.report-row {
  align-items: flex-start;
}

.setting-row {
  justify-content: space-between;
}

.toggle {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: var(--surface-4);
  border: 1px solid var(--border-light);
  position: relative;
  flex: 0 0 auto;
}

.toggle-button {
  padding: 0;
  appearance: none;
  cursor: pointer;
}

.toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-2);
}

.toggle.enabled {
  background: rgba(5, 224, 255, 0.18);
  border-color: rgba(5, 224, 255, 0.35);
}

.toggle.enabled::after {
  left: 21px;
  background: var(--cyan);
}

.form-stack {
  display: grid;
  gap: 12px;
}

.form-panel {
  display: grid;
  gap: 10px;
}

.form-grid {
  display: grid;
  gap: 10px;
}

.form-grid.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-label {
  font-size: 11px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.field {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-1);
  outline: none;
  caret-color: var(--text-1);
  color-scheme: dark;
}

.field:focus {
  border-color: rgba(5, 224, 255, 0.32);
  box-shadow: 0 0 0 3px rgba(5, 224, 255, 0.08);
}

.field:-webkit-autofill,
.field:-webkit-autofill:hover,
.field:-webkit-autofill:focus,
.field:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text-1);
  -webkit-box-shadow: 0 0 0 1000px var(--surface-2) inset;
  box-shadow: 0 0 0 1000px var(--surface-2) inset;
  border: 1px solid var(--border);
  caret-color: var(--text-1);
  transition: background-color 9999s ease-in-out 0s;
}

.textarea {
  min-height: 110px;
  padding: 12px 14px;
  resize: vertical;
}

.file-field {
  padding: 10px 12px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-2);
}

.turnstile-stack {
  display: grid;
  gap: 10px;
}

.turnstile-stack .cf-turnstile {
  width: 100%;
}

.auth-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.admin-access-card {
  display: grid;
  gap: 14px;
}

.admin-access-submit {
  display: flex;
  align-items: end;
  justify-content: flex-end;
}

.empty-state {
  padding: 28px 16px;
  border-radius: 20px;
  background: var(--surface-1);
  border: 1px dashed var(--border-light);
  text-align: center;
}

.empty-icon {
  font-size: 30px;
  margin-bottom: 10px;
}

.empty-title {
  font-family: "Syne", "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 74px;
  padding: 10px 10px 12px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(7, 7, 10, 0) 0%, rgba(7, 7, 10, 0.9) 20%, var(--surface-1) 100%);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-3);
  font-size: 10px;
  opacity: 0.72;
}

.nav-item.active {
  color: var(--cyan);
  opacity: 1;
}

.nav-icon {
  font-size: 18px;
  line-height: 1;
}

.nav-item-center {
  align-self: start;
}

.nav-item-center .nav-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-3);
  border: 1px solid var(--border-light);
}

.nav-item-center.active .nav-icon {
  background: var(--cyan);
  color: var(--on-brand-gradient, #090811);
  border-color: var(--cyan);
}

@media (max-width: 430px) {
  .shell-wrap {
    padding: 0;
  }

  .device-shell {
    max-width: none;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .screen-scroll {
    inset: 52px 0 76px;
  }
}
