:root {
  color-scheme: dark;
  --bg: #07070d;
  --bg-soft: #0d0c15;
  --surface: #12111b;
  --surface-raised: #181622;
  --surface-bright: #211d2a;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #fbfaf8;
  --muted: #aaa5b2;
  --muted-strong: #d3ced7;
  --orange: #ff8200;
  --orange-bright: #ff9e18;
  --red: #ed3213;
  --danger: #ff6b61;
  --success: #4dd7a4;
  --warning: #ffc14d;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 15px;
  --radius-sm: 10px;
  --header-height: 76px;
  --sidebar-width: 220px;
  --font-sans: Helvetica, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

html.feed-route {
  overflow: hidden;
}

html.feed-route body {
  overflow: hidden;
}

.feed-route .app-shell {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: var(--font-sans);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-sans);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
label[for] {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(255, 158, 24, 0.62);
  outline-offset: 3px;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  min-height: var(--header-height);
  border-bottom: 0;
  background: transparent;
  pointer-events: none;
}

.header-inner {
  width: min(100% - 40px, 1240px);
  min-height: var(--header-height);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: center;
  gap: 24px;
  pointer-events: none;
}

.brand {
  grid-column: 1;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  pointer-events: auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 1px solid rgba(255, 130, 0, 0.24);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(255, 94, 0, 0.15);
}

.brand-wordmark {
  color: #fff;
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  text-transform: lowercase;
}

.guest-nav,
.header-actions {
  display: flex;
  align-items: center;
}

.primary-nav {
  position: fixed;
  z-index: 90;
  top: calc(var(--header-height) + 22px);
  left: max(20px, calc((100vw - 1240px) / 2));
  width: 190px;
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 8px;
}

.nav-link {
  width: 160px;
  max-width: 100%;
  min-height: 46px;
  padding: 11px 10px;
  display: grid;
  align-self: flex-start;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.035);
  transform: translateX(2px);
}

.nav-link[aria-current="page"] {
  color: #f47604;
  background: transparent;
}

.nav-icon {
  width: 22px;
  height: 22px;
  display: block;
  background: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.nav-icon-audio-lines {
  -webkit-mask-image: url("./assets/audio-lines.svg");
  mask-image: url("./assets/audio-lines.svg");
}

.nav-icon-search {
  -webkit-mask-image: url("./assets/search.svg");
  mask-image: url("./assets/search.svg");
}

.nav-icon-bookmark {
  -webkit-mask-image: url("./assets/bookmark.svg");
  mask-image: url("./assets/bookmark.svg");
}

.nav-icon-ticket-plus {
  -webkit-mask-image: url("./assets/ticket-plus.svg");
  mask-image: url("./assets/ticket-plus.svg");
}

.nav-icon-user {
  -webkit-mask-image: url("./assets/user.svg");
  mask-image: url("./assets/user.svg");
}

.search-drawer {
  position: fixed;
  z-index: 130;
  top: 0;
  bottom: 0;
  left: 0;
  width: clamp(360px, 33.333vw, 640px);
  padding: 0 24px 24px;
  overflow-y: auto;
  visibility: hidden;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #0d0c15;
  box-shadow: 24px 0 70px rgba(0, 0, 0, 0.42);
  opacity: 0;
  transform: translate3d(-108%, 0, 0);
  transition:
    transform 360ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 220ms ease,
    visibility 0s linear 360ms;
  overscroll-behavior: contain;
  pointer-events: none;
}

.search-drawer.is-open {
  visibility: visible;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0s;
  pointer-events: auto;
}

.search-drawer-header {
  min-height: var(--header-height);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.search-drawer-header h2 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.045em;
}

.search-drawer-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease;
}

.search-drawer-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.search-close-icon {
  width: 22px;
  height: 22px;
  display: block;
  background: currentColor;
  -webkit-mask: url("./assets/x.svg") center / contain no-repeat;
  mask: url("./assets/x.svg") center / contain no-repeat;
}

.search-form.search-drawer-form {
  width: 100%;
  padding: 0;
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.search-input-wrap {
  position: relative;
}

.search-drawer .search-drawer-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 48px 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.search-drawer .search-drawer-form input::-webkit-search-cancel-button {
  display: none;
}

.search-clear-button {
  position: absolute;
  top: 50%;
  right: 9px;
  width: 32px;
  height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--muted-strong);
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transform: translateY(-50%);
}

.search-clear-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.search-clear-button .search-close-icon {
  width: 17px;
  height: 17px;
}

.search-drawer .search-results {
  margin-top: 20px;
}

.search-drawer .user-result {
  grid-template-columns: auto minmax(0, 1fr);
}

.search-drawer .result-arrow {
  display: none;
}

.recent-searches h3 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.recent-searches-empty {
  margin: 0;
  padding: 18px 2px;
  color: var(--muted);
}

.header-actions {
  grid-column: 2;
  justify-content: flex-end;
  gap: 10px;
  pointer-events: auto;
}

.guest-nav {
  gap: 14px;
}

.text-link {
  color: var(--muted-strong);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  color: var(--text);
}

.compact-button,
.primary-button,
.secondary-button,
.quiet-button,
.icon-button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease, opacity 150ms ease;
}

.compact-button,
.primary-button {
  color: #130b03;
  background: linear-gradient(135deg, var(--orange-bright), var(--orange));
  box-shadow: 0 10px 28px rgba(255, 106, 0, 0.18);
}

.compact-button {
  min-height: auto;
  padding: 10px 15px;
  font-size: 0.9rem;
}

.primary-button,
.secondary-button,
.quiet-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 19px;
}

.primary-button:hover:not(:disabled),
.compact-button:hover,
.secondary-button:hover:not(:disabled),
.quiet-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.primary-button:hover:not(:disabled),
.compact-button:hover {
  background: linear-gradient(135deg, #ffb02e, #ff7600);
}

.secondary-button {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.075);
}

.secondary-button:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.11);
}

.quiet-button,
.icon-button {
  color: var(--muted-strong);
  background: transparent;
}

.quiet-button:hover:not(:disabled),
.icon-button:hover:not(:disabled) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.075);
}

.icon-button {
  min-height: auto;
  padding: 9px 12px;
  border: 1px solid var(--line);
  font-size: 0.86rem;
}

.account-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 150ms ease;
}

.account-link:hover,
.account-link[aria-current="page"] {
  transform: translateY(-1px);
}

.account-link .avatar,
.header-avatar {
  width: 100%;
  height: 100%;
  border: 0;
}

.app-shell {
  width: 100%;
  min-height: 100vh;
}

.signed-in .app-shell {
  padding-left: var(--sidebar-width);
}

.page-wrap {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
  padding: calc(var(--header-height) + 54px) 0 80px;
}

.page-header {
  max-width: 760px;
  margin-bottom: 34px;
}

.simple-page-header {
  margin-bottom: 30px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.saved-page,
.upload-page,
.connections-page {
  padding-top: calc(var(--header-height) + 24px);
}

.profile-page {
  padding-top: calc(var(--header-height) + 24px);
}

.saved-page .page-title,
.upload-page .page-title,
.connections-page .page-title {
  font-size: clamp(2rem, 4.2vw, 3.75rem);
}

.page-kicker,
.eyebrow {
  margin: 0 0 10px;
  color: var(--orange-bright);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-title,
.auth-title,
.profile-name {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.055em;
}

.page-title {
  font-size: clamp(2.35rem, 6vw, 5rem);
  line-height: 0.96;
}

.page-description {
  max-width: 660px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.6;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(24, 22, 34, 0.95), rgba(15, 14, 23, 0.96));
  box-shadow: var(--shadow);
}

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

.stack-tight {
  display: grid;
  gap: 9px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
}

.helper, .muted { color: var(--muted); line-height: 1.55; }
.inline-link { color: var(--orange-bright); font-weight: 700; text-underline-offset: 3px; }

h1[tabindex="-1"]:focus {
  outline: none;
}

.field {
  display: grid;
  gap: 8px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.field label,
.field-legend {
  color: var(--muted-strong);
  font-size: 0.87rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 47px;
  padding: 12px 13px;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(5, 5, 9, 0.48);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field textarea {
  min-height: 95px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #77727f;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(255, 142, 15, 0.65);
  box-shadow: 0 0 0 4px rgba(255, 130, 0, 0.09);
  outline: none;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.45;
}

.checkbox-field input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--orange);
}

.status {
  padding: 13px 14px;
  color: var(--muted-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.91rem;
  line-height: 1.45;
}

.status-info {
  color: #ffd49a;
  border-color: rgba(255, 158, 24, 0.24);
  background: rgba(255, 130, 0, 0.08);
}

.status-success {
  color: var(--success);
  border-color: rgba(77, 215, 164, 0.25);
  background: rgba(77, 215, 164, 0.08);
}

.status-error {
  color: #ffaaa4;
  border-color: rgba(255, 107, 97, 0.24);
  background: rgba(255, 107, 97, 0.08);
}

.feed-page {
  position: relative;
  width: min(100% - 40px, 1120px);
  height: 100dvh;
  margin: 0 auto;
  padding: 18px 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  overscroll-behavior: none;
}

.feed-page > #feedInlineStatus {
  position: absolute;
  z-index: 10;
  right: 20px;
  bottom: 20px;
  left: 20px;
  margin: 0 !important;
}

.feed-list {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.feed-list.is-fetching-more .feed-slide {
  animation: feed-end-rubber-band 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.feed-slide {
  width: 100%;
  height: 100%;
  display: grid;
  grid-area: 1 / 1;
  place-items: center;
  will-change: transform;
}

.feed-slide[hidden], .clip-viewer-video[hidden] {
  display: none !important;
}

.feed-end-loader {
  position: absolute;
  z-index: 24;
  bottom: 26px;
  left: 50%;
  min-height: 44px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(12, 11, 18, 0.9);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px);
  font-size: 0.86rem;
  font-weight: 700;
  opacity: 0;
  transform: translate(-50%, 14px);
  transition: opacity 160ms ease, transform 220ms ease;
  pointer-events: none;
}

.feed-end-loader.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.feed-end-spinner {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-top-color: var(--orange-bright);
  border-radius: 50%;
  animation: spin 720ms linear infinite;
}

@keyframes feed-end-rubber-band {
  0% {
    transform: translate3d(0, 0, 0);
  }

  38% {
    transform: translate3d(0, -4.5%, 0);
  }

  68% {
    transform: translate3d(0, 1.2%, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

.soundbite-card {
  position: relative;
  isolation: isolate;
  width: min(100%, 514px, calc(56.25dvh + 63.75px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 430px) 66px;
  align-items: center;
  gap: 18px;
}

.feed-ambient-glow {
  z-index: -1;
  width: 100%;
  height: 100%;
  aspect-ratio: 9 / 16;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  object-fit: cover;
  border-radius: var(--radius-xl);
  opacity: 0.22;
  filter: blur(36px) saturate(1.45);
  transform: scale(1.035);
  pointer-events: none;
  user-select: none;
}

.soundbite-media {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  aspect-ratio: 9 / 16;
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at center, rgba(255, 126, 0, 0.09), transparent 45%),
    #030306;
  box-shadow: var(--shadow);
}

.soundbite-media::after {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 52%;
  pointer-events: none;
  content: "";
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.84));
}

.soundbite-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #000;
  cursor: pointer;
}

.feed-volume-control {
  position: absolute;
  z-index: 4;
  top: 18px;
  left: 18px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(4, 4, 8, 0.68);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  transition: width 180ms ease, background 180ms ease;
}

.feed-volume-control:hover,
.feed-volume-control:focus-within {
  width: 164px;
  background: rgba(4, 4, 8, 0.82);
}

.feed-mute-toggle {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.feed-volume-icon {
  width: 21px;
  height: 21px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.feed-volume-icon-low,
.feed-volume-icon-muted {
  display: none;
}

.feed-volume-control.is-volume-low .feed-volume-icon-high,
.feed-volume-control.is-muted .feed-volume-icon-high {
  display: none;
}

.feed-volume-control.is-volume-low .feed-volume-icon-low,
.feed-volume-control.is-muted .feed-volume-icon-muted {
  display: block;
}

.feed-volume-control.is-muted .feed-volume-icon-low {
  display: none;
}

.feed-volume-slider {
  flex: 0 0 102px;
  width: 102px;
  height: 24px;
  margin: 0 14px 0 2px;
  padding: 0;
  opacity: 0;
  background: transparent;
  accent-color: var(--orange-bright);
  cursor: pointer;
  transition: opacity 120ms ease;
  -webkit-appearance: none;
}

.feed-volume-control:hover .feed-volume-slider,
.feed-volume-control:focus-within .feed-volume-slider {
  opacity: 1;
}

.feed-volume-slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

.feed-volume-slider::-webkit-slider-thumb {
  width: 15px;
  height: 15px;
  margin-top: -5.5px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.42);
  -webkit-appearance: none;
}

.feed-volume-slider::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

.feed-volume-slider::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.42);
}

.soundbite-labels {
  position: absolute;
  z-index: 2;
  top: 70px;
  left: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  pointer-events: none;
}

.badge {
  padding: 7px 10px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(4, 4, 8, 0.62);
  backdrop-filter: blur(12px);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-warning {
  color: #ffd590;
  border-color: rgba(255, 183, 69, 0.28);
}

.avatar {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: var(--surface-raised);
  font-weight: 700;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-audio-prompt {
  position: absolute;
  z-index: 5;
  top: 20px;
  left: 72px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  font-size: 0.8rem;
  cursor: pointer;
}

.feed-volume-control:hover ~ .feed-audio-prompt,
.feed-volume-control:focus-within ~ .feed-audio-prompt {
  visibility: hidden;
}

.feed-video-copy {
  position: absolute;
  z-index: 3;
  right: 26px;
  bottom: 26px;
  left: 26px;
  pointer-events: none;
}

.feed-overlay-creator {
  display: inline-block;
  color: var(--text);
  font-size: 1rem;
  font-weight: 750;
  text-decoration: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
  pointer-events: auto;
}

.feed-overlay-creator:hover {
  color: var(--orange-bright);
}

.feed-overlay-title {
  max-width: 680px;
  margin: 7px 0 0;
  overflow-wrap: anywhere;
  font-size: clamp(1.4rem, 3vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.95);
}

.feed-action-rail {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  align-self: center;
  flex-direction: column;
  gap: 14px;
}

.feed-avatar-link {
  display: block;
  border-radius: 50%;
  text-decoration: none;
}

.feed-creator-avatar {
  width: 52px;
  height: 52px;
  border: 2px solid #fff;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.48);
  transition: border-color 150ms ease, transform 150ms ease;
}

.feed-avatar-link:hover .feed-creator-avatar {
  border-color: #fff;
  transform: translateY(-1px);
}

.social-action {
  width: 66px;
  min-height: 58px;
  padding: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  color: var(--text);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  transition: color 150ms ease, transform 150ms ease;
}

.social-action:disabled {
  cursor: default;
  opacity: 1;
}

.social-action:hover:not(:disabled) {
  transform: translateY(-1px);
}

.social-action[data-like-clip]:hover:not(:disabled) {
  color: #ff453a;
}

.social-action[data-save-clip]:hover:not(:disabled) {
  color: #f47604;
}

.social-action[data-repost-clip]:hover:not(:disabled) {
  color: #ffc107;
}

.feed-watch-action {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  color: #fff;
  text-decoration: none;
  transform: translateX(-50%);
}

.social-action.feed-watch-action:hover:not(:disabled) {
  color: #fff;
  transform: translate(-50%, -1px);
}

.feed-watch-icon {
  width: 30px;
  height: 30px;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
}

.social-action[data-like-clip].is-active {
  color: #ff453a;
}

.social-action[data-save-clip].is-active {
  color: #f47604;
}

.social-action[data-repost-clip].is-active {
  color: #ffc107;
}

.feed-action-icon {
  width: 30px;
  height: 30px;
  display: block;
  background: currentColor;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.feed-action-icon-heart {
  -webkit-mask-image: url("./assets/heart.svg");
  mask-image: url("./assets/heart.svg");
}

.feed-action-icon-bookmark {
  -webkit-mask-image: url("./assets/bookmark.svg");
  mask-image: url("./assets/bookmark.svg");
}

.feed-action-icon-repeat-2 {
  -webkit-mask-image: url("./assets/repeat-2.svg");
  mask-image: url("./assets/repeat-2.svg");
}

.social-action.is-active .feed-action-icon-heart {
  -webkit-mask-image: url("./assets/heart-filled.svg");
  mask-image: url("./assets/heart-filled.svg");
}

.social-action.is-active .feed-action-icon-bookmark {
  -webkit-mask-image: url("./assets/bookmark-filled.svg");
  mask-image: url("./assets/bookmark-filled.svg");
}

.feed-loader,
.empty-state,
.error-state {
  min-height: 260px;
  padding: 38px;
  display: grid;
  place-items: center;
  text-align: center;
}

.feed-load-more {
  padding: 22px 0 0;
  display: grid;
  place-items: center;
}

.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.section-title {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.section-copy {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

/* Upload reveals details only after a video has been selected. */
.upload-page.page-wrap { width: min(calc(100% - 40px), 720px); }
.upload-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.upload-heading h1 { margin: 0; font-size: clamp(1.65rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -.035em; outline: none; }
.upload-count { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.upload-page .primary-button { min-height: 48px; background: var(--orange); box-shadow: none; }
.upload-page .primary-button:hover:not(:disabled) { background: var(--orange-bright); box-shadow: none; transform: none; }
.upload-start { min-height: min(520px, calc(100svh - 280px)); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 36px 0 60px; text-align: center; }
.upload-start-icon { display: grid; place-items: center; color: var(--muted-strong); margin-bottom: 24px; transition: color 150ms ease; }
.upload-start-icon svg { width: 58px; height: 58px; stroke-width: 1.1; }
.upload-start h2 { margin: 0; font-size: clamp(1.5rem, 4vw, 1.9rem); font-weight: 600; letter-spacing: -.035em; }
.upload-file-help { margin: 12px 0 28px; color: var(--muted); font-size: .78rem; line-height: 1.6; }
.upload-choose { min-width: 190px; }
.upload-drop-hint { margin: 15px 0 0; color: var(--muted); font-size: .8rem; }
.upload-start.is-dragging .upload-start-icon { color: var(--orange); transform: translateY(-3px); }
.upload-start.is-dragging { outline: 1px dashed var(--orange); outline-offset: 12px; border-radius: 12px; }
.upload-list { display: grid; }
.upload-list.is-dragging { outline: 1px dashed var(--orange); outline-offset: 10px; }
.upload-item { display: grid; grid-template-columns: 100px minmax(0, 1fr) 32px; gap: 22px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.upload-item:first-child { padding-top: 0; }
.upload-item-content { min-width: 0; }
.upload-preview { position: relative; width: 100%; aspect-ratio: 9 / 16; display: grid; place-items: center; overflow: hidden; padding: 0; border: 0; border-radius: 10px; background: var(--bg-soft); color: #fff; cursor: pointer; }
.upload-preview video { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.upload-preview-symbol { width: 34px; height: 34px; display: grid; place-items: center; z-index: 1; border-radius: 50%; background: rgba(0,0,0,.55); }
.upload-preview-symbol svg { width: 18px; height: 18px; }
.upload-preview.is-unavailable video { display: none; }
.upload-preview.is-unavailable .upload-preview-symbol { background: none; }
.upload-item-title { margin: 0; overflow-wrap: anywhere; font-size: 1rem; line-height: 1.5; font-weight: 600; }
.upload-page .field label { font-weight: 500; font-size: .82rem; }
.upload-page .field input { border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; background: transparent; padding: 10px 0; min-height: 44px; }
.upload-page .field input:focus { border-color: var(--orange); box-shadow: none; }
.upload-page .file-meta { margin: 10px 0 0; color: var(--muted); font-size: .73rem; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-remove { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; align-self: start; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.upload-remove svg { width: 18px; height: 18px; }
.upload-remove:hover { color: var(--text); background: var(--surface); }
.upload-list-tools { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; }
.upload-text-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--muted-strong); font-size: .85rem; cursor: pointer; }
.upload-text-button:hover { color: var(--text); }
.upload-text-button svg { width: 17px; height: 17px; }
.upload-details { margin-top: 22px; border-bottom: 1px solid var(--line); }
.upload-details summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 54px; padding: 14px 0; cursor: pointer; font-size: .9rem; list-style: none; }
.upload-details summary::-webkit-details-marker { display: none; }
.upload-details summary svg { width: 17px; height: 17px; color: var(--muted); transform: rotate(90deg); transition: transform 150ms ease; }
.upload-details[open] summary svg { transform: rotate(-90deg); }
.upload-details-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 14px 0 26px; }
.upload-footer { margin-top: 30px; }
.upload-footer .primary-button { width: 100%; }
.upload-message { margin: 0 0 24px; color: var(--muted-strong); font-size: .86rem; line-height: 1.6; }
.upload-message.is-error { color: var(--danger); }
.upload-stay { margin: 26px 0 0; color: var(--muted); font-size: .8rem; text-align: center; line-height: 1.5; }
.upload-page .progress-wrap { margin-top: 14px; }
.upload-page .progress-label { font-size: .78rem; color: var(--muted-strong); line-height: 1.5; }
.upload-page [data-state="error"] .progress-label { color: var(--danger); }
.upload-working-track { height: 3px; overflow: hidden; margin-top: 10px; border-radius: 3px; background: var(--line); }
.upload-working-track span { display: block; width: 35%; height: 100%; border-radius: inherit; background: var(--orange); animation: upload-working 1600ms ease-in-out infinite; }
@keyframes upload-working { from { transform: translateX(-105%); } to { transform: translateX(390%); } }
.upload-complete { display: flex; align-items: center; gap: 12px; margin: -6px 0 30px; }
.upload-complete > span { color: var(--orange); width: 28px; height: 28px; flex-shrink: 0; }
.upload-complete svg { width: 100%; height: 100%; }
.upload-complete p { margin: 0; color: var(--muted-strong); font-size: .9rem; line-height: 1.5; }
.upload-list.is-complete .upload-item { grid-template-columns: 64px minmax(0, 1fr); padding: 16px 0; }
.upload-list.is-complete .upload-preview { aspect-ratio: 3 / 4; }
.upload-finished-actions { display: grid; gap: 8px; }
@media (hover: none) { .upload-drop-hint { display: none; } }
@media (max-width: 540px) {
  .upload-heading { margin-bottom: 26px; }
  .upload-item { grid-template-columns: 78px minmax(0, 1fr) 26px; gap: 12px; }
  .upload-remove { width: 26px; }
  .upload-details-fields { grid-template-columns: 1fr; gap: 22px; }
  .upload-start { padding-bottom: 48px; }
}

.profile-hero {
  padding: 8px 0 24px;
  display: grid;
  gap: 24px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.profile-actions > .profile-report-button {
  width: 46px;
  height: 46px;
  align-self: center;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--text);
  border: 0;
  border-radius: 50%;
  background: var(--surface-raised);
  cursor: pointer;
}
.profile-actions > .profile-report-button:hover { background: var(--surface-bright); }
.profile-report-button:focus-visible { outline-color: var(--text); }
.profile-actions .profile-report-button svg { width: 22px; height: 22px; }
.profile-overview {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  gap: 20px 28px;
}
.profile-overview > .profile-avatar { grid-row: 1 / 3; }
.profile-avatar {
  width: 116px;
  height: 116px;
  font-size: 2rem;
  border: 0;
  box-shadow: none;
}
.profile-name {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  line-height: 1.15;
}
.profile-handle { margin: 7px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.profile-identity { min-width: 0; }
.profile-stats {
  min-width: 0;
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 430px;
}
.profile-stat { color: inherit; text-decoration: none; }
a.profile-stat:hover { color: var(--orange); }
.profile-stat strong, .profile-stat span { display: block; }
.profile-stat strong { font-size: 1.25rem; line-height: 1.2; }
.profile-stat span { margin-top: 5px; color: var(--muted); font-size: .85rem; }
.profile-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.profile-actions > * { min-width: 0; min-height: 46px; gap: 9px; padding: 11px 16px; box-shadow: none; }
.profile-actions-with-report { grid-template-columns: repeat(2, minmax(0, 1fr)) 46px; }
.profile-actions-with-report > :not(.profile-report-button) { gap: 6px; }
.profile-actions .primary-button { background: var(--orange); }
.profile-actions .primary-button:hover:not(:disabled) { background: var(--orange-bright); }
.profile-actions .secondary-button { background: var(--surface-raised); border-color: transparent; }
.profile-actions .secondary-button:hover:not(:disabled) { background: var(--surface-bright); }
.profile-actions svg { flex: 0 0 20px; width: 20px; height: 20px; }
.profile-block-action { margin-top: 20px; padding: 0; color: var(--muted); border: 0; background: transparent; cursor: pointer; }
.profile-block-action:hover { color: var(--text); }
.clipboard-copy-field { position: fixed; top: 0; left: -9999px; }

.profile-section {
  margin-top: 34px;
}

.profile-section-head {
  margin-bottom: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.profile-tabs {
  padding: 4px;
  display: inline-flex;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.profile-tab {
  min-height: 42px;
  padding: 9px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.profile-tab span {
  margin-left: 5px;
  color: inherit;
  opacity: 0.72;
}

.profile-tab.is-active {
  color: #111;
  background: var(--text);
}

.clip-grid-shell {
  min-width: 0;
  container-name: clip-grid;
  container-type: inline-size;
}

.clip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(4px, 0.75vw, 10px);
}

@container clip-grid (min-width: 1060px) {
  .clip-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.profile-clip {
  position: relative;
  aspect-ratio: 9 / 16;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d0c15;
}

.profile-clip::after {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 42%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.84), transparent);
  content: "";
  pointer-events: none;
}

.clip-thumbnail-link,
.clip-thumbnail-placeholder,
.clip-thumbnail-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.clip-thumbnail-link {
  color: inherit;
  text-decoration: none;
}

.clip-thumbnail-link:focus-visible {
  z-index: 3;
  outline-offset: -4px;
}

.clip-thumbnail-placeholder {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.3);
  background:
    radial-gradient(circle at 70% 18%, rgba(244, 118, 4, 0.16), transparent 38%),
    linear-gradient(145deg, #181622, #0d0c15);
}

.clip-thumbnail-placeholder span {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 800;
}

.clip-thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.clip-thumbnail-image[hidden] {
  display: none;
}

html.clip-viewer-open,
html.clip-viewer-open body {
  overflow: hidden;
}

.clip-viewer-backdrop {
  position: fixed;
  z-index: 700;
  inset: 0;
  padding: 24px 30px;
  display: grid;
  grid-template-columns: 48px auto 48px;
  place-content: center;
  align-items: center;
  gap: 18px;
  background: rgba(3, 3, 7, 0.92);
  backdrop-filter: blur(8px);
}

.clip-viewer-dialog {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  width: min(540px, calc(56.25dvh - 27px), calc(100vw - 180px));
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #000;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.64);
}

.clip-viewer-dialog::after {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 30%;
  content: "";
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  pointer-events: none;
}

.clip-viewer-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #000;
  cursor: pointer;
}

.clip-viewer-video::-webkit-media-controls {
  display: none !important;
}

.clip-viewer-play-indicator,
.feed-play-indicator {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(10, 10, 14, 0.62);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 140ms ease, transform 140ms ease;
  pointer-events: none;
}

.clip-viewer-dialog.is-paused .clip-viewer-play-indicator,
.soundbite-card.is-active .soundbite-media.is-paused .feed-play-indicator {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.clip-viewer-play-indicator svg,
.feed-play-indicator svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.clip-viewer-copy {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 20px;
  left: 18px;
  pointer-events: none;
}

.clip-viewer-creator {
  width: fit-content;
  max-width: calc(100% - 70px);
  display: flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  pointer-events: auto;
}

.clip-viewer-creator > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clip-viewer-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-color: rgba(255, 255, 255, 0.82);
}

.clip-viewer-copy h2 {
  margin: 9px 0 0;
  overflow: hidden;
  color: #fff;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.clip-viewer-close {
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(25, 24, 31, 0.94);
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease;
}

.clip-viewer-close:hover {
  background: rgba(54, 52, 62, 0.98);
}

.clip-viewer-close {
  position: absolute;
  z-index: 3;
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
}

.clip-viewer-close::before {
  width: 24px;
  height: 24px;
  content: "";
  background: currentColor;
  -webkit-mask: url("./assets/x.svg") center / contain no-repeat;
  mask: url("./assets/x.svg") center / contain no-repeat;
}

.profile-clip-copy {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  left: 12px;
  min-width: 0;
  pointer-events: none;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.88);
}

.clip-creator-link {
  margin-bottom: 7px;
  display: block;
  overflow: hidden;
  color: var(--orange-bright);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: auto;
}

.profile-clip h3 {
  margin: 0;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-clip p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.search-page,
.connections-page {
  max-width: 900px;
}

.search-form {
  padding: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(18, 17, 27, 0.9);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.search-form input {
  min-width: 0;
  min-height: 48px;
  padding: 0 18px;
  color: var(--text);
  border: 0;
  background: transparent;
  outline: none;
}

.search-form input::placeholder {
  color: #77727f;
}

.search-results {
  margin-top: 26px;
}

.search-loading,
.search-prompt {
  padding: 34px 4px;
  color: var(--muted);
  text-align: center;
}

.user-results {
  display: grid;
  gap: 10px;
}

.user-result {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(18, 17, 27, 0.76);
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.user-result:hover {
  border-color: rgba(255, 158, 24, 0.4);
  background: rgba(24, 22, 34, 0.94);
  transform: translateY(-1px);
}

.user-result strong,
.user-result small {
  display: block;
}

.user-result small {
  margin-top: 4px;
  color: var(--muted);
}

.user-result-avatar {
  width: 50px;
  height: 50px;
}

.result-arrow {
  color: var(--orange-bright);
  font-size: 1.25rem;
}

.back-link {
  margin-bottom: 24px;
  display: inline-flex;
  color: var(--muted-strong);
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  color: var(--orange-bright);
}

.toast-region {
  position: fixed;
  z-index: 500;
  left: 50%;
  bottom: 22px;
  width: max-content;
  max-width: min(520px, calc(100% - 44px));
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  padding: 13px 15px;
  text-align: center;
  overflow-wrap: anywhere;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(24, 22, 34, 0.96);
  box-shadow: var(--shadow);
  animation: toast-in 180ms ease both;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.055);
}

.skeleton::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}

.skeleton-card {
  min-height: 540px;
  border-radius: var(--radius-xl);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 980px) {
  :root {
    --sidebar-width: 190px;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .header-actions {
    grid-column: 2;
  }

  .primary-nav {
    left: 16px;
    width: 168px;
  }

  .auth-page {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .auth-story {
    min-height: 400px;
  }

  .auth-story h1 {
    max-width: 760px;
  }

}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .header-inner {
    width: min(100% - 24px, 1240px);
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-wordmark {
    font-size: 1.28rem;
  }

  .header-actions {
    grid-column: 2;
  }

  .primary-nav {
    z-index: 120;
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    padding: 6px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background: var(--bg-soft);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(20px);
  }

  .primary-nav .nav-link {
    width: 100%;
    min-height: 54px;
    padding: 6px 2px;
    display: flex;
    align-self: stretch;
    flex-direction: column;
    gap: 4px;
    font-size: 0.68rem;
    text-align: center;
  }

  .primary-nav .nav-link:hover {
    transform: none;
  }

  .primary-nav .nav-icon {
    width: 20px;
    height: 20px;
  }

  .search-drawer {
    z-index: 130;
    left: 0;
    width: 100%;
    padding: 0 18px calc(28px + env(safe-area-inset-bottom, 0px));
    border-left: 0;
  }

  .signed-in .app-shell {
    padding-left: 0;
  }

  .clip-viewer-backdrop {
    padding: 18px 12px;
    grid-template-columns: 1fr;
  }

  .clip-viewer-dialog {
    width: min(calc(100vw - 24px), calc(56.25dvh - 20px));
    grid-column: 1;
    grid-row: 1;
  }

  .clip-viewer-close {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
  }

  .account-link {
    width: 40px;
    height: 40px;
  }

  .toast-region {
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100% - 24px);
  }

  .guest-nav .text-link {
    display: none;
  }

  .compact-button {
    padding-inline: 13px;
  }

  .page-wrap,
  .feed-page,
  .auth-page {
    width: min(100% - 24px, 1180px);
  }

  .page-wrap {
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 108px;
  }

  .saved-page,
  .upload-page,
  .profile-page,
  .connections-page {
    padding-top: calc(var(--header-height) + 16px);
  }

  .feed-page {
    padding-top: calc(var(--header-height) + 12px);
    padding-bottom: 108px;
  }

  .feed-end-loader {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  .soundbite-card {
    width: min(100%, calc(56.25dvh - 26px));
  }

  .auth-page {
    padding-top: calc(var(--header-height) + 24px);
  }

  .auth-story {
    min-height: 330px;
    padding: 34px;
  }

  .auth-logo {
    width: 76px;
    height: 76px;
    margin-bottom: 34px;
    border-radius: 21px;
  }

  .auth-story h1 {
    font-size: clamp(3.2rem, 15vw, 5.4rem);
  }

  .auth-card {
    padding: 24px;
  }

  .feed-video-copy {
    right: 20px;
    bottom: 20px;
    left: 20px;
  }

  .profile-hero { padding: 4px 8px 12px; gap: 22px; }
  .profile-overview { grid-template-columns: 88px minmax(0, 1fr); gap: 22px 18px; }
  .profile-overview > .profile-avatar { grid-row: 1; width: 88px; height: 88px; }
  .profile-stats { grid-column: 1 / -1; width: 100%; max-width: none; gap: 16px; }
  .profile-stat strong { font-size: 1.2rem; }
  .profile-stat span { font-size: .8rem; }
  .profile-handle { font-size: .85rem; }
  .profile-actions { gap: 10px; }
  .profile-actions > * { font-size: .9rem; padding: 10px 8px; }

  .profile-section-head {
    align-items: start;
    flex-direction: column;
  }

  .simple-page-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .field-row {
    grid-template-columns: 1fr;
  }

  .clip-grid {
    gap: 3px;
  }

  .profile-clip {
    border-radius: 5px;
  }

  .profile-clip-copy {
    right: 7px;
    bottom: 8px;
    left: 7px;
  }

  .clip-creator-link {
    margin-bottom: 3px;
    font-size: 0.66rem;
  }

  .profile-clip h3 {
    font-size: 0.78rem;
  }

  .page-title {
    font-size: clamp(2.6rem, 14vw, 4.2rem);
  }

  .auth-story {
    display: none;
  }

  .auth-page {
    display: block;
  }

  .auth-card {
    margin-top: 20px;
  }

  .feed-video-copy {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }

  .feed-overlay-title {
    font-size: clamp(1.3rem, 6.5vw, 1.8rem);
  }

  .soundbite-card {
    width: min(100%, calc(56.25dvh - 44px));
    grid-template-columns: minmax(0, 1fr) 58px;
    gap: 8px;
  }

  .feed-action-rail {
    gap: 10px;
  }

  .feed-watch-action {
    bottom: calc(100% + 10px);
  }

  .feed-creator-avatar {
    width: 46px;
    height: 46px;
  }

  .social-action {
    width: 58px;
    min-height: 52px;
  }

  .feed-action-icon {
    width: 27px;
    height: 27px;
  }

  .profile-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-tabs {
    width: 100%;
  }

  .profile-tab {
    flex: 1;
  }

  .search-form {
    padding: 0;
    grid-template-columns: 1fr;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .search-form input {
    padding: 0 16px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(18, 17, 27, 0.9);
  }
}

/* Match the bottom-navigation breakpoint; desktop keeps its portrait frame
   and outside action rail. Use available viewport size, not device sniffing. */
@media (max-width: 760px) {
  .feed-route .site-header {
    display: none;
  }

  .feed-route .feed-page {
    width: 100%;
    height: 100dvh;
    margin: 0;
    padding: 0;
  }

  .feed-route .feed-page,
  .feed-route .feed-list,
  .feed-route .feed-slide {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }

  .feed-route .soundbite-card {
    width: 100%;
    height: 100%;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
  }

  .feed-route .soundbite-media {
    min-height: 0;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .feed-route .soundbite-video {
    /* Keep the video's intrinsic 9:16 size from expanding the grid track. */
    position: absolute;
    inset: 0;
    object-fit: cover;
  }

  .feed-route .feed-ambient-glow {
    display: none;
  }

  .feed-route .feed-action-rail {
    position: absolute;
    z-index: 4;
    grid-column: 1;
    /* Move Watch into the avatar's former slot, keeping the icon order intact.
       On short screens stop above the fixed bottom navigation. */
    top: min(calc(50% + 93px), calc(100% - 241px - env(safe-area-inset-bottom, 0px)));
    right: calc(8px + env(safe-area-inset-right, 0px));
    width: 58px;
    gap: 10px;
    transform: translateY(-50%);
  }

  .feed-route .feed-creator-avatar {
    width: 46px;
    height: 46px;
  }

  .feed-route .social-action {
    width: 58px;
    min-height: 52px;
  }

  .feed-route .feed-watch-action {
    bottom: calc(100% + 10px);
  }

  .feed-route .feed-video-copy {
    left: calc(16px + env(safe-area-inset-left, 0px));
    right: calc(80px + env(safe-area-inset-right, 0px));
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  .feed-route .feed-overlay-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }

  .feed-route .feed-volume-control {
    top: calc(20px + env(safe-area-inset-top, 0px));
    left: calc(16px + env(safe-area-inset-left, 0px));
  }

  .feed-route .feed-audio-prompt {
    top: calc(22px + env(safe-area-inset-top, 0px));
    left: calc(68px + env(safe-area-inset-left, 0px));
  }

  .feed-route .primary-nav {
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .feed-route .feed-page > #feedInlineStatus {
    bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .feed-list.is-fetching-more .feed-slide {
    animation: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.settings-back-button { width: 44px; height: 44px; padding: 0; }
.signed-in.settings-route .app-shell { padding-left: 0; }
.settings-page { width: min(100% - 48px, 760px); padding-top: calc(var(--header-height) + 32px); }
.settings-heading { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; }
.settings-heading h1 { margin: 0; font-size: clamp(1.35rem, 2.5vw, 1.7rem); line-height: 1.3; letter-spacing: -.025em; }
.settings-heading .settings-back-button { flex: 0 0 44px; border-radius: 50%; background: #172027; border: 1px solid #2a353d; }
.settings-search { display: flex; align-items: center; gap: 10px; background: #22292f; border-radius: 12px; padding: 0 14px; margin-bottom: 24px; color: #a6afb7; }
.settings-search svg { width: 20px; height: 20px; flex-shrink: 0; }
.settings-search input { width: 100%; min-width: 0; padding: 12px 0; border: 0; border-radius: 0; background: transparent; color: var(--text); font: inherit; }
.settings-search:focus-within { outline: 2px solid var(--orange); outline-offset: 3px; }
.settings-search input:focus { outline: none; }
.settings-search input::placeholder { color: #a6afb7; }
.settings-group { margin: 0; padding: 22px 0; border-top: 5px solid #20272d; }
.settings-group:first-child { border-top: 0; padding-top: 0; }
.settings-group h2 { margin: 0 0 12px; color: #a6afb7; font-size: .85rem; font-weight: 600; }
.settings-row { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 14px 8px; border-radius: 8px; color: var(--text); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .settings-row:hover { background: rgba(255,255,255,.045); text-decoration: none; }
}
.settings-row:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.settings-row > svg { width: 24px; height: 24px; flex-shrink: 0; }
.settings-row > span { flex: 1; }
.settings-row .settings-chevron { width: 19px; height: 19px; color: #8b969f; }
.settings-empty { color: var(--muted); padding: 28px 8px; }
.settings-detail { min-width: 0; padding: 8px 0 40px; }
.settings-page [hidden] { display: none !important; }
.settings-detail h2 { margin: 0 0 12px; font-size: 1.15rem; }
.settings-intro { color: var(--muted); margin: 0 0 32px; line-height: 1.6; }
.settings-item { border-top: 1px solid rgba(255,255,255,.1); padding-top: 28px; }
.settings-item p { color: var(--muted); line-height: 1.6; }
.settings-detail button:disabled { opacity: .45; cursor: not-allowed; }
.settings-footnote { color: var(--muted); font-size: .85rem; line-height: 1.5; }
.settings-unavailable { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.settings-badge { font-size: .75rem; border-radius: 999px; padding: 6px 10px; background: #25252e; color: var(--muted); }
.settings-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.settings-delete { color: var(--danger); }
.settings-error { color: #FF655C; line-height: 1.5; }
.settings-users { padding: 0; margin: 0; list-style: none; }
.settings-users li { display: flex; align-items: center; gap: 14px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.settings-users .avatar { flex-shrink: 0; }
.settings-user-name { display: grid; gap: 6px; min-width: 0; flex: 1; overflow-wrap: anywhere; }
.settings-user-name span { color: var(--muted); font-size: .85rem; }
.settings-users button { flex-shrink: 0; }
.settings-support { display: grid; gap: 12px; }
.settings-support label { margin-top: 8px; font-weight: 600; }
.settings-support :is(input, select, textarea) { width: 100%; min-width: 0; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 13px 15px; background: #1c1c24; color: var(--text); font: inherit; }
.settings-support textarea { resize: vertical; }
.settings-support p { margin: 0; }
.settings-support .primary-button { justify-self: start; margin-top: 8px; }
@media (max-width: 700px) {
  .settings-page { width: calc(100% - 32px); padding-top: calc(var(--header-height) + 20px); }
  .settings-heading { gap: 16px; margin-bottom: 24px; }
  .settings-row { padding-inline: 0; min-height: 60px; }
  .settings-detail { padding-top: 4px; }
}

.profile-editor {
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 24px;
  background: #101016;
  color: #fff;
  overflow-y: auto;
}

.profile-editor::backdrop { background: rgba(0, 0, 0, .85); backdrop-filter: blur(12px); }
.profile-editor h2 { margin: 0 60px 28px 0; font-size: 1.6rem; }
.profile-editor-form { display: flex; flex-direction: column; gap: 12px; }
.profile-editor-form p { margin: 0; font-size: .875rem; }
.profile-editor-form #editProfileError { color: #FF453A; }
.profile-editor-form #editUsernameStatus.is-taken { color: #FF453A; font-weight: 700; }
.profile-editor-form #editNameStatus.is-over-limit { color: #FF453A; font-weight: 700; }
.profile-editor-form #applyProfile { margin-top: 16px; }
.profile-editor-form #applyProfile:disabled { background: #38383e; color: #999; box-shadow: none; cursor: not-allowed; }
.profile-photo-picker { align-self: flex-start; cursor: pointer; margin-bottom: 12px; }
.profile-photo-picker:focus-within { outline: 2px solid white; outline-offset: 3px; }

.video-report-action,
.video-report-action:hover:not(:disabled) { color: #fff; }
.video-report-action svg {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
}
@media (max-width: 540px) {
  .video-report-action svg { width: 27px; height: 27px; }
}
.video-report { max-width: 400px; }
.video-report h2 { margin: 0 0 20px; }
.video-report .actions { justify-content: flex-end; }
.video-report [data-report-error] { margin: 0; }

/* Use the same rail as Soundbytes; the viewer owns only its placement. */
.clip-viewer-stage {
  position: relative;
  touch-action: pan-x pinch-zoom;
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 66px;
  gap: 18px;
  width: min(624px, calc(56.25dvh + 57px), calc(100vw - 180px));
}
.clip-viewer-stage .clip-viewer-dialog {
  --clip-viewer-control-inset: 18px;
  grid-column: 1;
  width: 100%;
}
/* Keep both controls attached to the video through dragging and animation. */
.clip-viewer-dialog > .feed-volume-control {
  top: var(--clip-viewer-control-inset);
  left: var(--clip-viewer-control-inset);
}
.clip-viewer-dialog > .clip-viewer-close {
  z-index: 4;
  top: var(--clip-viewer-control-inset);
  right: var(--clip-viewer-control-inset);
  width: 44px;
  height: 44px;
}
.video-report #videoReportTitle { outline: none; }
.video-report-action:focus-visible {
  outline-color: #fff;
}
@media (max-width: 760px) {
  .clip-viewer-stage {
    grid-column: 1;
    grid-template-columns: minmax(0, 1fr);
    width: min(calc(100vw - 24px), calc(56.25dvh - 20px));
    gap: 0;
  }
  .clip-viewer-stage .feed-action-rail {
    position: absolute;
    z-index: 4;
    top: 50%;
    right: 8px;
    width: 58px;
    gap: 10px;
    transform: translateY(-50%);
  }
  .clip-viewer-stage .social-action { width: 58px; min-height: 52px; }
  .clip-viewer-stage .feed-creator-avatar { width: 46px; height: 46px; }
  .clip-viewer-stage .feed-watch-action { bottom: calc(100% + 10px); }
  .clip-viewer-stage .clip-viewer-copy { right: 80px; }

}

/* A single quiet column for the complete signed-out flow. */
.auth-route .site-header { background: var(--bg); backdrop-filter: none; }
.auth-route .header-inner { width: min(100% - 48px, 1200px); }
.auth-route .brand-mark { box-shadow: none; border: 0; }
.auth-route .app-shell { padding: 0; }
.auth-route .auth-page {
  width: min(100% - 48px, 420px);
  min-height: 100svh;
  margin: 0 auto;
  padding: calc(var(--header-height) + 44px) 0 36px;
  display: flex;
  align-items: center;
}
.auth-content { width: 100%; padding-bottom: 24px; }
.auth-heading { margin: 0 0 32px; }
.auth-heading h1 { margin: 0; font-size: clamp(2.1rem, 6vw, 2.75rem); line-height: 1.08; letter-spacing: -.055em; font-weight: 700; }
.auth-heading p { margin: 14px 0 0; color: var(--muted); font-size: .96rem; line-height: 1.55; max-width: 34ch; }
.auth-wave { height: 32px; display: flex; align-items: center; gap: 5px; margin-bottom: 25px; color: var(--orange); }
.auth-wave i { width: 4px; height: 14px; border-radius: 3px; background: currentColor; }
.auth-wave i:nth-child(2), .auth-wave i:nth-child(4) { height: 24px; }
.auth-wave i:nth-child(3) { height: 32px; }
.auth-form, .auth-fields { display: grid; gap: 22px; }
.auth-page [hidden] { display: none !important; }
.auth-page .field { min-width: 0; gap: 10px; }
.auth-page .field label { color: var(--muted-strong); font-size: .86rem; font-weight: 400; }
.auth-page .field input, .auth-page .field select {
  min-width: 0; min-height: 52px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: transparent; font-size: 16px; padding: 13px 15px; box-shadow: none;
}
.auth-page .field input:focus, .auth-page .field select:focus { border-color: var(--muted-strong); box-shadow: none; }
.auth-page input:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px var(--bg) inset; -webkit-text-fill-color: var(--text); }
.auth-page .password-input { position: relative; }
.auth-page .password-input input { padding-right: 52px; }
.password-toggle { position: absolute; top: 2px; bottom: 2px; right: 3px; width: 46px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.password-toggle[aria-pressed="true"] { color: var(--text); }
.password-toggle svg { width: 21px; height: 21px; }
.auth-page .auth-submit { width: 100%; min-height: 52px; background: var(--orange); box-shadow: none; font-size: 1rem; }
.auth-page .auth-submit:hover:not(:disabled) { background: var(--orange-bright); transform: none; }
.auth-page .auth-submit:disabled { opacity: .55; cursor: wait; }
.auth-page .auth-switch { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 25px 0 0; padding: 0; border: 0; color: var(--muted); font-size: .9rem; }
.auth-page .auth-switch a { flex: initial; padding: 0; border: 0; border-radius: 0; background: none; color: var(--text); font-weight: 500; text-decoration: none; }
.auth-page .auth-switch a:hover { text-decoration: underline; text-underline-offset: 4px; }
.auth-forgot { justify-self: end; color: var(--muted-strong); font-size: .85rem; margin-top: -8px; text-decoration: none; padding-block: 4px; }
.auth-forgot:hover { color: var(--text); }
.auth-legal { display: flex; justify-content: center; gap: 24px; margin-top: 48px; font-size: .75rem; }
.auth-legal a { color: var(--muted); text-decoration: none; padding-block: 8px; }
.auth-legal a:hover { color: var(--text); }
.auth-page .status { padding: 0; border: 0; background: none; border-radius: 0; font-size: .85rem; line-height: 1.5; }
.auth-page [id$="Status"]:empty { display: none; }
.auth-page .status-info, .auth-page .status-success { color: var(--muted-strong); }
.auth-hint { color: var(--muted); font-size: .78rem; margin-top: -12px; }
.signup-requirements { list-style: none; padding: 0; margin: -12px 0 0; display: grid; gap: 6px; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.signup-requirements li { display: flex; align-items: baseline; gap: 8px; }
.requirement-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--muted); }
.signup-requirements [data-state="invalid"] .requirement-dot { background: var(--danger); }
.signup-requirements [data-state="valid"] .requirement-dot { background: var(--success); }
.auth-back { display: inline-flex; align-items: center; min-height: 40px; border: 0; padding: 0; background: none; color: var(--muted-strong); font-size: .87rem; text-decoration: none; cursor: pointer; margin-bottom: 20px; }
.auth-step-row { display: flex; align-items: center; justify-content: space-between; height: 40px; margin-bottom: 18px; }
.auth-step-row .auth-back { margin: 0; }
.auth-step { color: var(--muted); font-size: .8rem; margin-left: auto; }
.auth-page .auth-agreement { font-size: .78rem; line-height: 1.65; gap: 12px; margin-top: 4px; }
.auth-agreement input { flex: 0 0 18px; margin-top: 3px; }
.auth-agreement a { color: var(--muted-strong); text-underline-offset: 3px; }
.auth-result-icon { color: var(--orange); margin-bottom: 24px; }
.auth-result-icon svg { width: 36px; height: 36px; }
@media (max-width: 540px) {
  .auth-route .auth-page { align-items: flex-start; padding-top: calc(var(--header-height) + 36px); }
  .auth-content { padding-bottom: 0; }
  .auth-heading { margin-bottom: 28px; }
  .auth-legal { margin-top: 36px; }
}
@media (max-height: 720px) {
  .auth-route .auth-page { align-items: flex-start; padding-top: calc(var(--header-height) + 20px); }
  .auth-wave { margin-bottom: 18px; }
  .auth-legal { margin-top: 28px; }
}

/* Support inbox uses the same flat surfaces as profiles and upload. */
.inbox-page { max-width: 880px; margin-inline: auto; }
.inbox-heading { display:flex; align-items:center; gap:16px; margin-bottom:24px; }
.inbox-heading h1,.inbox-heading h2 { flex:1; margin:0; font-size:clamp(1.2rem,3vw,1.8rem); }
.inbox-heading button,.inbox-heading a { flex-shrink:0; }
.inbox-filters { display:flex; flex-wrap:wrap; gap:8px; padding-bottom:12px; }
.inbox-filters button[aria-pressed="true"] { color:var(--text); border-color:var(--orange); }
.inbox-row { width:100%; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:22px 0; border:0; border-bottom:1px solid rgba(255,255,255,.12); border-radius:0; background:transparent; color:inherit; text-align:left; cursor:pointer; }
.inbox-row>span { min-width:0; }
.inbox-preview { display:block; margin-top:7px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:55vw; }
.inbox-row time,.inbox-contact,.inbox-message small { color:var(--muted); font-size:.85rem; }
.inbox-row time { flex-shrink:0; }
.inbox-empty { text-align:center; padding:70px 12px; color:var(--muted); }
.inbox-message { padding:22px 0; border-bottom:1px solid rgba(255,255,255,.12); }
.inbox-message p { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.6; margin:10px 0 0; }
.inbox-message.is-reply { padding-left:20px; border-left:2px solid var(--orange); }
.inbox-reply { display:grid; gap:12px; margin-top:28px; }
.inbox-reply textarea { width:100%; box-sizing:border-box; resize:vertical; padding:14px; font:inherit; line-height:1.5; color:var(--text); background:var(--bg-soft); border:1px solid var(--line-strong); border-radius:var(--radius-sm); }
.inbox-reply textarea:focus-visible { outline:1px solid var(--orange); outline-offset:2px; }
.inbox-reply .primary-button { background:var(--orange); box-shadow:none; }
.inbox-reply button { justify-self:end; }
@media(max-width:480px) { .inbox-heading { gap:8px; } .inbox-heading button,.inbox-heading a { padding:10px 12px; } .inbox-row time { max-width:85px; text-align:right; } }

.email-verification { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding:16px 18px; border:1px solid rgba(255,130,0,.18); border-radius:var(--radius-md); background:rgba(255,130,0,.1); }
.email-verification p { margin:0; color:#f1d0ae; font-size:.9rem; }
.email-verification button { flex-shrink:0; color:#ffd7ad; border-color:rgba(255,130,0,.3); background:none; box-shadow:none; padding:10px 16px; font-size:.85rem; }
.email-verification button:hover:not(:disabled) { background:rgba(255,130,0,.1); border-color:rgba(255,130,0,.45); transform:none; }
#confirmEmailStatus { margin-top:18px; }

/* Repost attribution stays quiet until opened. */
.repost-attribution { pointer-events: auto; display: block; border: 0; background: transparent; color: var(--text, #fbfaf8); padding: 8px 0; font-size: .8rem; font-weight: 600; text-align: left; }
.repost-details { outline: none; width: max-content; max-width: min(340px, calc(100vw - 32px)); margin: auto; padding: 20px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: #181622; color: #fbfaf8; }
.repost-details::backdrop { background: rgba(0,0,0,.35); }
.repost-details p { margin: 0; }
.repost-detail-row { display: flex; align-items: center; gap: 12px; }
.repost-detail-row + .repost-detail-row { margin-top: 16px; }
.repost-detail-row a { color: inherit; text-decoration: none; }
.repost-detail-row strong { font-weight: 700; overflow-wrap: anywhere; }
.repost-detail-row span:not(.avatar) { display: block; color: #aaa5b2; font-size: .8rem; margin-top: 3px; }
.repost-detail-avatar { width: 40px; height: 40px; }
@media (hover: none) and (pointer: coarse) {
  .feed-volume-control .feed-volume-slider { display: none; }
  .feed-volume-control:hover, .feed-volume-control:focus-within { width: 44px; }
}
@media (prefers-reduced-motion: no-preference) {
  .profile-section > .clip-grid-shell, .profile-section > .empty-state { animation: profile-content-in .2s ease-out; }
  @keyframes profile-content-in { from { opacity: .25; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
}

/* Full episode sources share the quiet secondary palette. */
.episode-source-logo { width: 24px; height: 24px; flex: 0 0 24px; color: #aaa5b2; }
.episode-source-label { display: flex; align-items: center; gap: 8px; color: #aaa5b2; }
.episode-upload { grid-column: 1 / -1; width: 100%; margin-top: 4px; }
.episode-upload .upload-details-fields { grid-template-columns: minmax(0, 1fr); }
.episode-upload summary { justify-content: flex-start; gap: 6px; }
.episode-upload summary > svg { margin-left: auto; }
.episode-preference { width: 100%; display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 0; border: 0; background: transparent; color: #fbfaf8; text-align: left; font: inherit; cursor: pointer; }
.episode-preference .source-check { margin-left: auto; color: #ff8200; }
