:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #0b0b0c;
  --panel-soft: #141416;
  --text: #f7f7f7;
  --muted: rgba(247, 247, 247, 0.62);
  --dim: rgba(247, 247, 247, 0.36);
  --line: rgba(255, 255, 255, 0.11);
  --hot: #ff3b5f;
  --orange: #ff6a00;
  --green: #35f0a2;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 106, 0, 0.16), transparent 28rem),
    radial-gradient(circle at 90% 80%, rgba(255, 59, 95, 0.15), transparent 26rem),
    #000;
  color: var(--text);
  font-family: var(--font);
}

button {
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

button:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.app-shell {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: grid;
  place-items: center;
  padding: 16px;
}

.phone {
  /* Fixed 9:19.5 phone aspect ratio (390x844), scaled to fit viewport */
  width: 312px;
  height: 675px;
  aspect-ratio: 312 / 675;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 46px;
  background: var(--bg);
  box-shadow: 0 46px 140px rgba(0, 0, 0, 0.78);
  isolation: isolate;
  /* Scale uniformly to fit within viewport (minus padding) while keeping aspect ratio */
  scale: min(calc((100vw - 32px) / 312), calc((100dvh - 32px) / 675));
  transform-origin: center center;
}

.top-bar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 12px;
  padding-top: calc(env(safe-area-inset-top) + 18px);
  pointer-events: none;
}

.top-bar > * {
  pointer-events: auto;
}

.eyebrow {
  color: var(--dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.top-bar h1 {
  margin-top: 2px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
}

.profile-pill img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 50%;
}

.profile-pill span {
  font-size: 12px;
  font-weight: 700;
}

.content {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  background: var(--bg);
}

.screen.active {
  display: block;
  animation: screenIn 180ms ease both;
}

.video-feed {
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
}

.video-feed::-webkit-scrollbar,
.settings-scroll::-webkit-scrollbar {
  width: 0;
}

.video-card {
  height: 100%;
  min-height: 100%;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
  background: #050505;
}

.video-media {
  position: absolute;
  inset: 0;
  background: var(--poster);
}

.video-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.18), transparent 9rem),
    var(--poster);
}

.video-placeholder::before {
  content: "";
  width: 128px;
  height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 68px 68px 34px 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 38%),
    rgba(255, 255, 255, 0.05);
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.45);
}

.video-placeholder span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.video-placeholder strong {
  color: var(--muted);
  font-size: 14px;
}

.video-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 24%, rgba(0, 0, 0, 0.82)),
    linear-gradient(to right, rgba(0, 0, 0, 0.42), transparent 45%);
  pointer-events: none;
}

.video-tap-feedback {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 8;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  color: white;
  font-size: 34px;
  font-weight: 850;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.82);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  backdrop-filter: blur(18px);
}

.video-tap-feedback.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.video-tap-feedback.persist {
  opacity: 0.94;
}

.video-copy {
  position: absolute;
  right: 82px;
  bottom: 102px;
  left: 18px;
}

.video-copy p {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
}

.video-copy h2 {
  max-width: calc(100% - 4px);
  margin-bottom: 8px;
  font-size: 21px;
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.video-copy span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.side-actions {
  position: absolute;
  right: 12px;
  bottom: 112px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.round-action {
  width: 54px;
  display: grid;
  justify-items: center;
  gap: 5px;
  background: transparent;
}

.round-action span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  font-size: 20px;
  font-weight: 800;
  backdrop-filter: blur(16px);
}

.round-action small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  font-weight: 800;
}

.round-action.active span {
  background: var(--hot);
  border-color: var(--hot);
}

.live-stage {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.live-stage::-webkit-scrollbar {
  width: 0;
}

.live-video-shell {
  min-height: 100%;
  flex: 1;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #0a0a0b;
}

.live-visual-image {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  filter: none;
}

.live-stream-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  opacity: 0;
  background: #050505;
  filter: none;
  mix-blend-mode: normal;
  transition: opacity 260ms ease;
}

.live-stream-video.active {
  opacity: 1;
}

.live-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  z-index: 3;
  padding: 24px;
  transition: opacity 220ms ease;
}

.live-video-shell.live-playing .live-placeholder {
  opacity: 0;
}

.live-placeholder p {
  font-size: 15px;
  font-weight: 800;
}

.live-placeholder strong {
  max-width: 220px;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.05;
}

.live-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--hot);
  box-shadow: 0 0 0 8px rgba(255, 59, 95, 0.16);
}

.live-gradient {
  position: absolute;
  inset: 0;
  z-index: 4;
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 106, 0, 0.18), transparent 12rem),
    linear-gradient(to top, rgba(0, 0, 0, 0.92), transparent 58%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.52), transparent 32%);
  pointer-events: none;
  transition: opacity 180ms ease;
}

.live-video-shell.live-playing .live-gradient {
  opacity: 0;
}


.live-info,
.setting-card,
.identity-card,
.favourite-card,
.live-events {
  border: 1px solid var(--line);
  background: rgba(18, 18, 20, 0.82);
  backdrop-filter: blur(18px);
}

.live-info {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 24px;
}

.live-info h2,
.identity-copy h2,
.favourite-header h3,
.setting-card h3 {
  margin: 4px 0 8px;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.live-info p,
.identity-copy p,
.setting-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.live-config-field {
  display: grid;
  gap: 7px;
}

.live-config-field span {
  color: var(--dim);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-config-field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.34);
  color: white;
  font: inherit;
  font-size: 13px;
  outline: none;
  padding: 0 13px;
}

.live-config-field input:focus {
  border-color: rgba(255, 255, 255, 0.42);
}

.primary-btn {
  width: 100%;
  padding: 13px 16px;
  border-radius: 999px;
  background: white;
  color: #050505;
  font-size: 13px;
  font-weight: 850;
}

.live-comment-bar {
  position: absolute;
  right: 12px;
  bottom: 88px;
  left: 12px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 6px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 18, 20, 0.86);
  backdrop-filter: blur(18px);
}

.live-comment-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: white;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  outline: none;
  padding: 0 10px;
}

.live-comment-bar input::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

.live-bar-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
  transition: background 0.2s;
}

.live-bar-icon:disabled {
  opacity: 0.4;
  cursor: default;
}

.live-bar-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.live-bar-icon[type="submit"] {
  background: white;
  color: #050505;
}

.live-bar-icon.active {
  background: white;
  color: #050505;
}

/* Sound icon toggle */
.sound-on-icon { display: none; }
.live-bar-icon[aria-pressed="true"] .sound-off-icon { display: none; }
.live-bar-icon[aria-pressed="true"] .sound-on-icon { display: block; }

.live-comment-bar button:disabled {
  opacity: 0.54;
  cursor: default;
}

.live-comment-log {
  position: absolute;
  right: 12px;
  bottom: 146px;
  left: 12px;
  z-index: 6;
  max-height: 168px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
  pointer-events: auto;
  scrollbar-width: none;
}

.live-comment-log::-webkit-scrollbar {
  width: 0;
}

.live-comment {
  width: fit-content;
  max-width: min(300px, 86%);
  display: grid;
  gap: 2px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.42);
  color: white;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
}

.live-comment.user {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.9);
  color: #080808;
}

.live-comment.avatar {
  border-color: rgba(53, 240, 162, 0.24);
  background: rgba(9, 54, 36, 0.58);
}

.live-comment span {
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}

.live-events {
  display: grid;
  gap: 8px;
  min-height: 90px;
  padding: 13px;
  border-radius: 20px;
}

.live-events p {
  display: flex;
  gap: 9px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.live-events p span {
  flex: 0 0 auto;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.live-events p[data-type="error"] {
  color: #ff8ea3;
}

.live-events p[data-type="outfit_changed"],
.live-events p[data-type="avatar_ready"] {
  color: var(--green);
}

.settings-scroll {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  padding: 92px 16px 104px;
}

.identity-card {
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 30px;
}

.avatar-frame {
  position: relative;
  height: 360px;
  overflow: hidden;
  background: #eee;
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 14%;
}

.upload-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.74);
  color: white;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
}

.identity-copy {
  padding: 18px;
}

.favourite-card {
  flex: 0 0 auto;
  padding: 16px;
  border-radius: 24px;
}

.favourite-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.favourite-list {
  display: grid;
  grid-auto-columns: 148px;
  grid-auto-flow: column;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scroll-snap-type: x mandatory;
}

.favourite-list::-webkit-scrollbar {
  height: 0;
}

.favourite-item {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 5px;
  position: relative;
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: var(--poster);
  text-align: left;
  scroll-snap-align: start;
}

.favourite-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.16), transparent 4.5rem),
    linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent 58%);
  pointer-events: none;
}

.favourite-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.favourite-item.has-image .favourite-cover {
  background-image: var(--poster);
}

.favourite-item:not(.has-image) .favourite-cover {
  background-image: var(--poster);
}

.favourite-item strong,
.favourite-item small {
  position: relative;
  z-index: 1;
}

.favourite-item strong {
  color: white;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.08;
}

.favourite-item small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.25;
}

.favourite-empty {
  min-height: 92px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

.favourite-empty strong {
  color: white;
  font-size: 13px;
}

.favourite-empty span {
  max-width: 210px;
  color: var(--dim);
  font-size: 11px;
  line-height: 1.35;
}

.setting-card {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-radius: 24px;
}

.muted-card {
  background: rgba(255, 255, 255, 0.04);
}

.status-chip {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.status-chip.ready {
  background: rgba(53, 240, 162, 0.14);
  color: var(--green);
}

.status-chip.pending {
  background: rgba(255, 106, 0, 0.15);
  color: #ffb27a;
}

.tab-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 8px 10px 22px;
  padding-bottom: calc(env(safe-area-inset-bottom) + 14px);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.72), transparent);
}

.tab {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  padding: 8px 2px;
  background: transparent;
  color: rgba(255, 255, 255, 0.48);
}

.tab.active {
  color: white;
}

.tab svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab[data-tab="trending"] svg {
  fill: currentColor;
  stroke: none;
}

.tab span {
  max-width: 88px;
  overflow: hidden;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast {
  position: absolute;
  right: 24px;
  bottom: 98px;
  left: 24px;
  z-index: 60;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(15, 15, 16, 0.9);
  color: white;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  backdrop-filter: blur(18px);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 520px) {
  .app-shell {
    padding: 0;
  }

  .phone {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

/* Tryon outfit sheet */

.tryon-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  max-height: 44%;
  overflow-y: auto;
  padding: 14px 16px calc(env(safe-area-inset-bottom) + 76px);
  border-radius: 22px 22px 0 0;
  background: rgba(12, 12, 14, 0.94);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  pointer-events: none;
}

.tryon-sheet.open {
  transform: translateY(0);
  pointer-events: auto;
}

.tryon-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tryon-sheet-header strong {
  font-size: 15px;
  font-weight: 800;
  color: white;
}

.tryon-sheet-header button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 18px;
  line-height: 1;
}

.tryon-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 10px;
}

.tryon-item {
  display: grid;
  gap: 4px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  background: none;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s;
}

.tryon-item.active {
  border-color: white;
}



.tryon-item span {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.tryon-empty {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 16px 0;
}

/* Switch Avatar overlay */
.switch-avatar-btn {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 60px);
  left: 14px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.switch-avatar-btn:active {
  background: rgba(10, 10, 12, 0.9);
  border-color: rgba(255, 255, 255, 0.35);
}

.switch-avatar-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  opacity: 0.6;
}

.switch-avatar-panel {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 92px);
  left: 14px;
  z-index: 13;
  width: 240px;
  max-height: 320px;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: rgba(16, 16, 18, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.switch-avatar-panel[hidden] {
  display: none;
}

.switch-avatar-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.switch-avatar-panel-header strong {
  font-size: 15px;
}

.switch-avatar-panel-header button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.switch-avatar-panel-header button:active {
  background: rgba(255, 255, 255, 0.16);
}

.switch-avatar-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
  -webkit-overflow-scrolling: touch;
}

.switch-avatar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition: background 140ms ease;
}

.switch-avatar-item:active:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
}

.switch-avatar-item.active {
  background: rgba(255, 255, 255, 0.06);
}

.switch-avatar-item:disabled {
  cursor: default;
}

.switch-avatar-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.switch-avatar-info {
  flex: 1;
  min-width: 0;
}

.switch-avatar-info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.switch-avatar-status {
  font-size: 11px;
  font-weight: 600;
}

.switch-avatar-status.live {
  color: #ff3b5f;
}

.switch-avatar-status.offline {
  color: rgba(255, 255, 255, 0.35);
}

.switch-avatar-current {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.live-video-shell:not(.live-playing) .live-visual-image {
  opacity: 0;
}

/* Trending loading sentinel */
.trending-loading-sentinel {
  height: 100%;
  min-height: 100%;
  scroll-snap-align: start;
  background: #050505;
  display: grid;
  place-items: center;
  padding: 24px;
}

.trending-loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.trending-loading-content p {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  max-width: 200px;
  line-height: 1.35;
}

.trending-loading-spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: #fff;
  animation: trending-spin 700ms linear infinite;
}

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

/* Tryon favourite star */
.tryon-fav-star {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.tryon-fav-star.active {
  color: #ffd54a;
  background: rgba(0, 0, 0, 0.6);
}

.tryon-fav-star:active {
  transform: scale(0.88);
}



/* New Avatar add button */
.switch-avatar-add {
  border: 1px dashed rgba(255, 255, 255, 0.16);
}

.switch-avatar-add-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  font-size: 22px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

/* Tryon add new outfit */
.tryon-add-item {
  display: grid;
  place-items: center;
  gap: 6px;
  border: 2px dashed rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: none;
  cursor: pointer;
  min-height: 100%;
}

.tryon-add-item span {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.tryon-add-icon {
  font-size: 28px !important;
  font-weight: 300 !important;
  color: rgba(255, 255, 255, 0.35) !important;
  line-height: 1;
}

/* Tryon item image wrapper - positions fav star relative to image */
.tryon-item-img-wrap {
  position: relative;
  width: 100%;
}

.tryon-item-img-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* Favourite video thumbnail - uses actual video first frame */
.favourite-video-thumb {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Setting card image */
.setting-card-img {
  width: 100%;
  border-radius: 14px;
  margin-top: 10px;
  object-fit: cover;
  max-height: 200px;
}

/* Video item card - product info replacing creator line */
.video-item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 8px;
  border-radius: 16px;
  background: rgba(10, 10, 12, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
  max-width: 280px;
}

.video-item-img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.video-item-info {
  flex: 1;
  min-width: 0;
}

.video-item-info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-item-fav {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 140ms ease, color 140ms ease;
}

.video-item-fav.active {
  color: #ffd54a;
  background: rgba(255, 213, 74, 0.15);
}

.video-item-fav:active {
  transform: scale(0.88);
}

/* Home Layout card - same layout as identity-card */
.home-layout-card {
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: 30px;
}

.home-layout-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.home-layout-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.avatar-frame,
.home-layout-frame {
  cursor: pointer;
}


/* Personal Profile card */
.profile-card {
  flex-direction: column;
  gap: 8px;
  border-radius: 24px;
}

.profile-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-card-header .eyebrow {
  margin: 0;
}

.profile-edit-btn {
  padding: 5px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.profile-edit-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.profile-edit-btn.saving {
  background: rgba(53, 240, 162, 0.14);
  color: var(--green);
  border-color: rgba(53, 240, 162, 0.3);
}

.profile-row {
  display: flex;
  gap: 10px;
}

.profile-field {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.profile-field label {
  flex: 0 0 48px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.profile-field input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.profile-field input[readonly] {
  opacity: 0.7;
  border-color: transparent;
}

.profile-field input:not([readonly]):focus {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

/* Welcome overlay */
.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  transition: opacity 320ms ease;
}

.welcome-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.welcome-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 36px 40px;
  text-align: center;
}

.welcome-card h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.welcome-card p {
  margin: 0 0 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.welcome-start-btn {
  padding: 12px 36px;
  font-size: 16px;
  font-weight: 600;
  color: #0c0c0c;
  background: #fff;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}

.welcome-start-btn:hover {
  transform: scale(1.04);
  background: #f0f0f0;
}

.welcome-start-btn:active {
  transform: scale(0.97);
}
