/*
 * Unlayered CSS - Tailwind v4 puts generated classes inside @layer utilities
 * which causes them to lose to unlayered user-agent defaults (form elements, etc.)
 * and also makes certain responsive utilities not override correctly.
 * These rules stay outside the Tailwind build pipeline so they remain unlayered.
 */

/* === Responsive Layout Utilities === */
@media (min-width: 64rem) {
  .lg\:flex { display: flex; }
  .lg\:flex-col { flex-direction: column; }
  .lg\:flex-1 { flex: 1; }
  .lg\:min-w-0 { min-width: 0; }
  .lg\:w-56 { width: 14rem; }
  .lg\:w-80 { width: 20rem; }
  .lg\:ml-56 { margin-left: 14rem; }
  .lg\:gap-8 { gap: 2rem; }
  .lg\:static { position: static; }
  .lg\:translate-x-0 { translate: 0; }
  .lg\:hidden { display: none; }
}

/* === Dark Mode - override base Tailwind utility classes so `dark:` variants aren't needed === */

.dark .text-text-muted { color: var(--color-text-muted-dark); }
.dark .text-text { color: var(--color-text-dark); }
.dark .bg-surface { background-color: var(--color-surface-dark); }
.dark .bg-surface-hover { background-color: var(--color-surface-hover-dark); }
.dark .border-border { border-color: var(--color-border-dark); }

/* === Form Elements === */

.pf\:input, .pf\:textarea, .pf\:select {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.875rem;
  outline: none;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.pf\:input::placeholder, .pf\:textarea::placeholder {
  color: color-mix(in srgb, var(--color-text-muted) 40%, transparent);
}

.pf\:input:focus, .pf\:textarea:focus, .pf\:select:focus {
  border-color: color-mix(in srgb, var(--color-primary) 60%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 25%, transparent);
}

.dark .pf\:input, .dark .pf\:textarea, .dark .pf\:select {
  border-color: var(--color-border-dark);
  background: var(--color-surface-dark);
  color: var(--color-text-dark);
}

.dark .pf\:input::placeholder, .dark .pf\:textarea::placeholder {
  color: color-mix(in srgb, var(--color-text-muted-dark) 40%, transparent);
}

.pf\:textarea {
  min-height: 6rem;
  resize: vertical;
}

.pf\:select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.dark .pf\:select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

.pf\:select option {
  background: var(--color-surface);
  color: var(--color-text);
}

.dark .pf\:select option {
  background: var(--color-surface-dark);
  color: var(--color-text-dark);
}

.pf\:label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--color-text);
}

.dark .pf\:label {
  color: var(--color-text-dark);
}

.pf\:checkbox, .pf\:radio {
  accent-color: var(--color-primary);
}

.pf\:checkbox {
  border-radius: 0.25rem;
}

.pf\:file {
  width: 100%;
  font-size: 0.875rem;
  color: var(--color-text);
  cursor: pointer;
}

.pf\:file::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s;
}

.pf\:file::file-selector-button:hover {
  background: var(--color-primary-hover);
}

.dark .pf\:file {
  color: var(--color-text-dark);
}

.pf\:hint {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.dark .pf\:hint {
  color: var(--color-text-muted-dark);
}

.pf\:btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all .15s;
  border: none;
}

.pf\:btn:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  scale: 1.02;
}

.pf\:btn:active {
  scale: 0.98;
}

.pf\:btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  scale: 1;
  box-shadow: none;
}

/* Error state for fields inside field_with_errors wrapper */
.field_with_errors .pf\:input,
.field_with_errors .pf\:textarea,
.field_with_errors .pf\:select {
  border-color: #ef4444;
}

.field_with_errors .pf\:input:focus,
.field_with_errors .pf\:textarea:focus,
.field_with_errors .pf\:select:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px color-mix(in srgb, #ef4444 25%, transparent);
}

/* Disabled state */
.pf\:input:disabled, .pf\:textarea:disabled, .pf\:select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Live room (TikTok-style full-bleed) — unlayered to beat UA defaults.
   inset:0 alone sizes the box; an extra 100svh/100dvh height fights bottom
   and leaves a dead black band under the dock on mobile browsers. */
.pf\:live-room {
  position: fixed;
  inset: 0;
  width: auto;
  height: auto;
  max-height: none;
  overflow: hidden;
  background: #000;
  color: #fff;
}
.pf\:live-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.pf\:live-video.is-mirrored {
  transform: scaleX(-1);
}
.pf\:live-go .pf\:live-video {
  object-fit: cover;
}
.pf\:live-hud-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: calc(0.75rem + env(safe-area-inset-top, 0px)) 0.75rem 0.75rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent);
}
.pf\:live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pf\:live-viewers {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  border: 0;
  cursor: pointer;
}
.pf\:live-viewers:hover,
.pf\:live-viewers[aria-expanded="true"] {
  background: rgba(0, 0, 0, 0.65);
}
.pf\:live-viewers-popover {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 40;
  width: min(18rem, calc(100vw - 1.5rem));
  max-height: 18rem;
  overflow: auto;
  border-radius: 1rem;
  background: rgba(10, 10, 10, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  padding: 0.75rem;
  color: #fff;
  transform-origin: top right;
  transform: translate3d(0, -0.35rem, 0) scale(0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.36s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.36s;
  will-change: transform, opacity;
}
.pf\:live-viewers-popover.is-open {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    transform 0.36s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}
.pf\:live-viewers-popover-head {
  margin-bottom: 0.65rem;
}
.pf\:live-viewers-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.pf\:live-viewers-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.pf\:live-viewers-rank {
  width: 1.1rem;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}
.pf\:live-viewers-avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}
.pf\:live-viewers-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
}
.pf\:live-viewers-empty {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  padding: 0.35rem 0.15rem 0.15rem;
}
.pf\:live-muted-banner {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}
.pf\:live-rail {
  position: absolute;
  right: 0.5rem;
  bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}
.pf\:live-rail-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: none;
  background: rgba(0,0,0,0.45);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.pf\:live-rail-btn[aria-pressed="true"] {
  background: rgba(225, 29, 72, 0.85);
}
.pf\:live-chat-stack {
  position: absolute;
  left: 0.75rem;
  right: 4.25rem;
  bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  max-height: 28dvh;
  overflow-y: auto;
  mask-image: linear-gradient(to bottom, transparent, #000 18%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%);
  scrollbar-width: none;
  -webkit-user-select: none;
  user-select: none;
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.22s ease;
  will-change: transform, opacity;
}
.pf\:live-chat-stack::-webkit-scrollbar { display: none; }
.pf\:live-chat-stack.is-hidden {
  transform: translate3d(110%, 0, 0);
  opacity: 0;
  pointer-events: none;
}
.pf\:live-chat-peek {
  position: absolute;
  left: 0;
  bottom: calc(8rem + env(safe-area-inset-bottom, 0px));
  z-index: 21;
  width: 1.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 0 0.75rem 0.75rem 0;
  background: rgba(10, 10, 10, 0.55);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  cursor: pointer;
  padding: 0;
}
.pf\:live-chat-peek.is-visible {
  display: inline-flex;
}
.pf\:live-gifts {
  position: absolute;
  left: 0.75rem;
  right: 4.25rem;
  bottom: calc(32dvh + 4.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 21;
  max-height: 5.5rem;
  overflow: hidden;
  pointer-events: none;
}
.pf\:live-joins {
  position: absolute;
  left: 0.75rem;
  top: calc(4.75rem + env(safe-area-inset-top, 0px));
  z-index: 22;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-width: min(16rem, calc(100vw - 5.5rem));
  pointer-events: none;
}
.pf\:live-join-toast {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.7rem 0.45rem 0.45rem;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transform: translate3d(-120%, 0, 0);
  opacity: 0;
  transition:
    transform 0.42s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}
.pf\:live-join-toast.is-visible {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}
.pf\:live-join-toast.is-leaving {
  transform: translate3d(-120%, 0, 0);
  opacity: 0;
  transition:
    transform 0.34s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.26s ease;
}
.pf\:live-join-avatar {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}
.pf\:live-join-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
}
.pf\:live-join-name {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.1;
}
.pf\:live-join-meta {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.1;
}
.pf\:studio-go-live {
  background: linear-gradient(135deg, #e11d48, #f59e0b);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.pf\:studio-go-live:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.pf\:studio-go-live-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: pf-studio-live-pulse 1.6s ease-out infinite;
}
@keyframes pf-studio-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.65); }
  70% { box-shadow: 0 0 0 0.45rem rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.pf\:live-compose-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}
.pf\:live-compose {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}
.pf\:live-input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  outline: none;
  backdrop-filter: blur(10px);
}
.pf\:live-input::placeholder {
  color: rgba(255,255,255,0.55);
}
.pf\:live-send,
.pf\:live-compose-btn {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.14);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.pf\:live-send {
  background: #e11d48;
}
.pf\:live-comment {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.2rem 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.65);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.pf\:live-comment-avatar {
  display: inline-flex;
  flex-shrink: 0;
  margin-top: 0.125rem;
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.pf\:live-comment-avatar:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.pf\:live-comment-body {
  font-size: 0.875rem;
  line-height: 1.25;
  word-break: break-word;
}
.pf\:live-comment-name {
  font-weight: 700;
  margin-right: 0.3rem;
  color: inherit;
  text-decoration: none;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
.pf\:live-comment-name:hover {
  text-decoration: underline;
}
.pf\:live-comment-context {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.pf\:live-comment-context.is-open {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}
.pf\:live-comment-context-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}
.pf\:live-comment-context-card {
  position: relative;
  z-index: 1;
  width: min(22rem, calc(100% - 1.5rem));
  margin-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  border-radius: 1rem;
  background: rgba(22, 22, 22, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  padding: 1rem;
  transform: translate3d(0, 1rem, 0);
  transition: transform 0.24s cubic-bezier(0.32, 0.72, 0, 1);
}
.pf\:live-comment-context.is-open .pf\:live-comment-context-card {
  transform: translate3d(0, 0, 0);
}
.pf\:live-comment-context-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 0.75rem;
}
.pf\:live-comment-context-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.pf\:live-comment-context-actions form {
  margin: 0;
}
.pf\:live-comment-context-btn {
  width: 100%;
  border: none;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  cursor: pointer;
  text-align: center;
}
.pf\:live-comment-context-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}
.pf\:live-comment-context-btn-danger {
  background: rgba(225, 29, 72, 0.22);
  color: #fecdd3;
}
.pf\:live-comment-context-btn-danger:hover {
  background: rgba(225, 29, 72, 0.34);
}
.pf\:live-comment-context-cancel {
  width: 100%;
  margin-top: 0.65rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.55rem;
  cursor: pointer;
}
.pf\:live-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  max-height: 70dvh;
  overflow-y: auto;
  border-radius: 1.25rem 1.25rem 0 0;
  background: rgba(16, 16, 16, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #f3f4f6;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  transform: translate3d(0, 110%, 0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.42s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.42s;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
  will-change: transform, opacity;
}
.pf\:live-sheet.is-open {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    transform 0.42s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}
.pf\:live-sheet-effects {
  max-height: min(52dvh, 28rem);
  background: rgba(12, 12, 12, 0.48);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}
.pf\:live-sheet-share {
  max-height: min(78dvh, 36rem);
}
.pf\:live-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  border: none;
  border-radius: 0.75rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background: #e11d48;
  text-decoration: none;
}
.pf\:live-share-btn:hover {
  opacity: 0.92;
}
.pf\:live-share-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pf\:live-share-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  color: #f3f4f6;
  background: rgba(255, 255, 255, 0.12);
}
.pf\:live-share-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}
.pf\:live-share-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #f3f4f6;
  padding: 0.5rem;
  text-decoration: none;
  font-size: 0.625rem;
  font-weight: 500;
}
.pf\:live-share-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.pf\:live-share-input {
  width: 100%;
  min-width: 0;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.1);
  color: #f3f4f6;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}
.pf\:live-share-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.pf\:live-share-input-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.6875rem;
}
.pf\:live-sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}
.pf\:live-sheet-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.pf\:live-sheet-backdrop.is-effects {
  background: transparent;
}
.pf\:live-toolbar {
  position: absolute;
  left: 0.75rem;
  right: 4.25rem;
  bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 22;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.pf\:live-tool {
  border: none;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.pf\:live-tool[aria-pressed="true"] {
  background: rgba(225, 29, 72, 0.9);
}
.pf\:live-filter-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pf\:live-filter-row::-webkit-scrollbar {
  display: none;
}
.pf\:live-filter-chip {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  min-width: 4.25rem;
  text-align: center;
}
.pf\:live-filter-chip.has-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  border-radius: 0.85rem;
  padding: 0.4rem 0.45rem 0.5rem;
  min-width: 4.5rem;
  background: transparent;
  border-color: transparent;
}
.pf\:live-filter-chip-thumb {
  display: block;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}
.pf\:live-filter-chip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pf\:live-filter-chip.has-card [data-filter-label] {
  font-size: 0.65rem;
  line-height: 1.1;
  max-width: 4.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pf\:live-filter-chip[aria-pressed="true"],
.pf\:live-filter-chip.is-selected {
  background: rgba(225, 29, 72, 0.92);
  border-color: transparent;
}
.pf\:live-filter-chip.has-card[aria-pressed="true"],
.pf\:live-filter-chip.has-card.is-selected {
  background: rgba(225, 29, 72, 0.22);
}
.pf\:live-filter-chip.has-card[aria-pressed="true"] .pf\:live-filter-chip-thumb,
.pf\:live-filter-chip.has-card.is-selected .pf\:live-filter-chip-thumb {
  border-color: #e11d48;
}
.pf\:live-filter-chip.is-loading {
  opacity: 0.85;
  background: rgba(225, 29, 72, 0.45);
}
.pf\:live-filter-chip.is-error {
  border-color: #f87171;
}
.pf\:live-beauty-advanced summary {
  list-style: none;
}
.pf\:live-beauty-advanced summary::-webkit-details-marker {
  display: none;
}
.pf\:live-bg-thumb.is-selected,
.pf\:live-bg-thumb[aria-pressed="true"] {
  outline: 2px solid #e11d48;
  outline-offset: 2px;
  border-color: transparent;
}
.pf\:live-hud-top form {
  display: inline-flex;
  margin: 0;
}
.pf\:live-gift-toast {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.75rem;
  backdrop-filter: blur(8px);
  width: fit-content;
  max-width: 100%;
}
.pf\:live-go-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  min-height: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  padding: 0 0.75rem calc(1.1rem + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 70%);
}
.pf\:live-go-start {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
  z-index: 1;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.pf\:live-go-start > * {
  pointer-events: auto;
}
.pf\:live-go .pf\:live-rail {
  right: 0.5rem;
  bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
  pointer-events: auto;
}
.pf\:live-go:has(.pf\:live-sheet.is-open) .pf\:live-go-start {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.pf\:live-go-settings {
  max-height: min(78dvh, 40rem);
}
.pf\:live-go-settings .pf\:label {
  color: #f3f4f6;
}
.pf\:live-go-settings .pf\:hint {
  color: rgba(255, 255, 255, 0.5);
}

/* Live discover — friends rail + cards */
.pf\:live-friends-rail {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.15rem 0.15rem 0.35rem;
  -webkit-overflow-scrolling: touch;
}
.pf\:live-friends-rail::-webkit-scrollbar { display: none; }
.pf\:live-friend-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 4.5rem;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}
.pf\:live-avatar-ring {
  position: relative;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 999px;
  padding: 2px;
  background: linear-gradient(135deg, #e11d48, #f59e0b, #e11d48);
  background-size: 200% 200%;
  animation: pf-live-ring 2.4s ease infinite;
}
.pf\:live-avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--color-bg);
}
.dark .pf\:live-avatar-img {
  border-color: var(--color-bg-dark);
}
.pf\:live-avatar-badge {
  position: absolute;
  left: 50%;
  bottom: -0.2rem;
  transform: translateX(-50%);
  background: #e11d48;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  border: 2px solid var(--color-bg);
}
.dark .pf\:live-avatar-badge {
  border-color: var(--color-bg-dark);
}
.pf\:live-friend-name {
  font-size: 0.7rem;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}
@keyframes pf-live-ring {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.pf\:live-card {
  display: block;
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: #111;
}
.pf\:live-card-media {
  position: relative;
  aspect-ratio: 9 / 14;
  overflow: hidden;
}
.pf\:live-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.25s ease;
}
.pf\:live-card:hover .pf\:live-card-bg,
.pf\:live-card:focus-visible .pf\:live-card-bg {
  transform: scale(1.06);
}
.pf\:live-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.15) 45%, rgba(0,0,0,0.2) 100%);
}
.pf\:live-card-live {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  background: #e11d48;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.4rem;
  border-radius: 0.35rem;
}
.pf\:live-card-friend {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.pf\:live-card-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem;
}
.pf\:live-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pf\:live-card-user {
  margin-top: 0.2rem;
  font-size: 0.7rem;
  opacity: 0.85;
}
.pf\:live-share-msg {
  display: block;
  width: 11.5rem;
  max-width: 70vw;
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: #111;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.pf\:live-share-msg-media {
  position: relative;
  aspect-ratio: 9 / 14;
  overflow: hidden;
}
.pf\:live-share-msg-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.25s ease;
}
.pf\:live-share-msg:hover .pf\:live-share-msg-bg,
.pf\:live-share-msg:focus-visible .pf\:live-share-msg-bg {
  transform: scale(1.06);
}
.pf\:live-share-msg-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.2) 42%, rgba(0,0,0,0.28) 100%);
}
.pf\:live-share-msg-badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  background: #e11d48;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.18rem 0.45rem;
  border-radius: 0.35rem;
  box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.55);
  animation: pf-live-share-pulse 1.6s ease-out infinite;
}
.pf\:live-share-msg-badge.is-ended,
.pf\:live-share-msg.is-ended .pf\:live-share-msg-badge {
  background: rgba(0, 0, 0, 0.65);
  animation: none;
  box-shadow: none;
}
.pf\:live-share-msg-meta {
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.7rem;
}
.pf\:live-share-msg-title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pf\:live-share-msg-user {
  margin: 0.2rem 0 0;
  font-size: 0.7rem;
  opacity: 0.88;
}
.pf\:live-share-msg-cta {
  margin: 0.45rem 0 0;
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
}
.pf\:live-share-msg.is-ended {
  filter: grayscale(0.35);
  opacity: 0.9;
}
@keyframes pf-live-share-pulse {
  0% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(225, 29, 72, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}
.pf\:live-profile-avatar {
  position: relative;
}
.pf\:live-profile-avatar::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  border: 2px solid #ef4444;
  pointer-events: none;
  animation: pf-live-ring 1.6s ease-out infinite;
}
.pf\:live-profile-badge {
  position: absolute;
  left: 50%;
  bottom: -0.15rem;
  transform: translateX(-50%);
  z-index: 2;
  background: #ef4444;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.2rem 0.4rem;
  border-radius: 9999px;
  border: 2px solid var(--color-surface, #fff);
  text-decoration: none;
}
@keyframes pf-live-ring {
  0% { opacity: 0.9; transform: scale(1); }
  70% { opacity: 0; transform: scale(1.08); }
  100% { opacity: 0; transform: scale(1.08); }
}
.pf\:live-profile-sheet {
  z-index: 55;
  max-height: min(58dvh, 26rem);
  padding-top: 0.75rem;
}
.pf\:live-profile-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  cursor: pointer;
  z-index: 2;
}
.pf\:live-profile-loading {
  margin: 2rem 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.875rem;
}
.pf\:live-profile-card {
  padding: 0.25rem 0.15rem 0.5rem;
}
.pf\:live-profile-handle {
  width: 2.5rem;
  height: 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  margin: 0 auto 1rem;
}
.pf\:live-profile-hero {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.pf\:live-profile-avatar-lg {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}
.pf\:live-profile-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.pf\:live-profile-username {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}
.pf\:live-profile-meta {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}
.pf\:live-profile-bio {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
}
.pf\:live-profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 1.1rem;
}
.pf\:live-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.75rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  background: #e11d48;
}
.pf\:live-profile-btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.pf\:live-profile-btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  cursor: default;
}
