body.live-page {
  --lp-max: 1120px;
  --lp-pad: clamp(18px, 4vw, 44px);
  --lp-text: rgba(255, 255, 255, 0.92);
  --lp-muted: rgba(255, 255, 255, 0.72);
  color: var(--lp-text);
  overflow-x: hidden;
}

body.live-page .landing-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px var(--lp-pad);
  pointer-events: none;
}

body.live-page .topbar-inner {
  width: 100%;
  max-width: var(--lp-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
}

body.live-page .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--lp-text);
}

body.live-page .brand-logo {
  width: 140px;
  max-width: 42vw;
  height: auto;
  display: block;
}

body.live-page .brand-text {
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 18px;
  display: none;
}

body.live-page .topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0; /* allow horizontal scrolling instead of wrapping */
  flex-wrap: nowrap;
  justify-content: flex-end;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

body.live-page .topbar-actions::-webkit-scrollbar {
  display: none;
}

body.live-page .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--lp-text);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  font-weight: 700;
  font-size: 13px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  will-change: transform;
  flex: 0 0 auto;
}

body.live-page .pill ion-icon {
  font-size: 16px;
}

body.live-page .pill:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
}

body.live-page .pill.primary {
  background: linear-gradient(135deg, rgba(216, 10, 56, 0.88), rgba(88, 0, 129, 0.88));
  border-color: rgba(255, 255, 255, 0.22);
}

body.live-page .pill.primary:hover {
  transform: translateY(-1px) scale(1.01);
}

body.live-page .live-main {
  position: relative;
  z-index: 2;
  padding-top: 92px;
  min-height: 100dvh;
  min-height: 100vh;
}

body.live-page .live-toast {
  max-width: 820px;
  margin: 14px auto 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

body.live-page .live-toast.is-error {
  border-color: rgba(216, 10, 56, 0.35);
  background: rgba(216, 10, 56, 0.12);
}

/* Auth */
body.live-page .live-auth {
  display: grid;
  place-items: center;
  min-height: calc(100dvh - 92px);
  padding: 18px 16px 60px;
}

body.live-page .account-page {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.live-page .account-card {
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 36px 28px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 10;
}

body.live-page .logo-small {
  height: 64px;
  display: block;
  margin: 0 auto 18px;
}

body.live-page .account-title {
  font-size: 28px;
  color: #333;
  text-align: center;
  margin-bottom: 6px;
  font-weight: 700;
}

body.live-page .account-subtitle {
  text-align: center;
  color: #333;
  font-size: 14px;
  margin-bottom: 18px;
}

body.live-page .auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 14px;
}

body.live-page .auth-tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  border-radius: 12px;
  color: #333;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body.live-page .auth-tab.is-active {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

body.live-page .auth-panels {
  margin-top: 10px;
}

body.live-page .auth-panel {
  display: none;
}

body.live-page .auth-panel.is-active {
  display: block;
}

/* Signup grouping (Create account) */
body.live-page .signup-group {
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 14px;
}

body.live-page .signup-group:last-child {
  margin-bottom: 0;
}

body.live-page .signup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

body.live-page .signup-title {
  font-size: 12px;
  font-weight: 900;
  color: #222;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.live-page .signup-sub {
  font-size: 12px;
  color: #555;
  margin-top: 4px;
  line-height: 1.35;
}

body.live-page .required-badge {
  white-space: nowrap;
  background: rgba(216, 10, 56, 0.12);
  color: #ffffff;
  border: 1px solid rgba(216, 10, 56, 0.18);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
}

body.live-page .signup-method-title {
  font-size: 13px;
  font-weight: 800;
  color: #333;
  margin: 6px 0 10px;
}

body.live-page .signup-group .divider {
  margin: 16px 0;
}

body.live-page .consent-row {
  margin-top: 6px;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(216, 10, 56, 0.05);
  border: 1px solid rgba(216, 10, 56, 0.12);
}

body.live-page .consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

body.live-page .consent-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #d80a38;
  cursor: pointer;
  flex: 0 0 auto;
}

body.live-page .consent-label span {
  font-size: 13px;
  color: #333;
  line-height: 1.35;
}

body.live-page .consent-label a {
  color: #d80a38;
  font-weight: 700;
  text-decoration: none;
}

body.live-page .consent-label a:hover {
  text-decoration: underline;
}

body.live-page .alert {
  padding: 15px 18px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 14px;
}

body.live-page .alert-error {
  background: #fee;
  border: 1px solid #fcc;
  color: #c00;
}

body.live-page .form-group {
  margin-bottom: 16px;
}

body.live-page .form-label {
  display: block;
  color: #333;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 14px;
}

body.live-page .form-input {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 15px;
  font-size: 16px;
  font-family: 'Comfortaa', sans-serif;
  transition: all 0.3s;
  background: white;
  color: #111;
}

body.live-page .input-wrapper {
  position: relative;
}

body.live-page .input-wrapper .form-input {
  padding-right: 44px;
}

body.live-page .toggle-visibility {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  color: #666;
}

body.live-page .toggle-visibility ion-icon {
  font-size: 20px;
  color: #666;
}

body.live-page .form-input:focus {
  outline: none;
  border-color: #d80a38;
  box-shadow: 0 0 0 3px rgba(216, 10, 56, 0.1);
}

body.live-page .btn-primary {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #d80a38 0%, #580081 100%);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Comfortaa', sans-serif;
  margin-top: 10px;
}

body.live-page .btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(216, 10, 56, 0.4);
}

body.live-page .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

body.live-page .form-footer {
  margin-top: 15px;
  text-align: center;
}

body.live-page .link {
  color: #d80a38;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

body.live-page .link:hover {
  text-decoration: underline;
}

body.live-page .divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 22px 0;
}

body.live-page .divider::before,
body.live-page .divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #ddd;
}

body.live-page .divider span {
  padding: 0 15px;
  color: #333;
  font-size: 13px;
  font-weight: 500;
}

body.live-page .social-notice {
  text-align: center;
  padding: 14px;
  background: rgba(216, 10, 56, 0.05);
  border-radius: 15px;
  margin-bottom: 18px;
}

body.live-page .social-notice p {
  font-size: 13px;
  color: #333;
  margin-bottom: 10px;
}

body.live-page .btn-apple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 260px;
  max-width: 100%;
  padding: 12px 18px;
  border-radius: 24px;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  font-family: 'Comfortaa', sans-serif;
}

body.live-page .btn-apple:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
}

body.live-page .btn-apple:active:not(:disabled) {
  transform: translateY(0px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

body.live-page .btn-apple:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

body.live-page .btn-apple ion-icon {
  font-size: 18px;
  color: #fff;
}

body.live-page .hint {
  margin-top: 8px;
  font-size: 12px;
  color: #666;
}

body.live-page .account-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #eee;
  font-size: 13px;
  color: #999;
}

body.live-page .account-footer a {
  color: #d80a38;
  text-decoration: none;
}

body.live-page .account-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  body.live-page .account-card {
    padding: 28px 20px;
    max-width: 92%;
  }
  body.live-page .logo-small {
    height: 56px;
    margin: 0 auto 16px;
  }
  body.live-page .account-title {
    font-size: 24px;
  }
  body.live-page .account-subtitle {
    font-size: 13px;
    margin-bottom: 14px;
  }
  body.live-page .btn-primary {
    padding: 14px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  body.live-page .account-card {
    padding: 24px 16px;
    max-width: 92%;
  }
  body.live-page .account-title {
    font-size: 22px;
  }
  body.live-page .form-input {
    padding: 14px 16px;
    font-size: 15px;
  }
  body.live-page .input-wrapper .form-input {
    padding-right: 42px;
  }
}

/* Live stage */
body.live-page .live-stage {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 16px 24px;
  display: grid;
  gap: 14px;
}

/* Fullscreen layout: expand stage to fill screen */
body.live-page .live-stage:fullscreen {
  max-width: none;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  gap: 0;
}

body.live-page .live-stage:fullscreen .video-shell {
  border-radius: 0;
  border-left: none;
  border-right: none;
  min-height: 100dvh;
  min-height: 100vh;
}

body.live-page .live-stage:fullscreen .controls {
  border-radius: 0;
  border-left: none;
  border-right: none;
}

/* In fullscreen, keep bottom overlays above the controls bar */
body.live-page .live-stage:fullscreen .peer-badge {
  bottom: calc(14px + 72px + env(safe-area-inset-bottom, 0px));
  z-index: 4;
}

body.live-page .live-stage:fullscreen .live-watermark[data-pos="br"] {
  bottom: calc(14px + 72px + env(safe-area-inset-bottom, 0px));
}

/* Safari legacy fullscreen selector */
body.live-page .live-stage:-webkit-full-screen .peer-badge {
  bottom: calc(14px + 72px + env(safe-area-inset-bottom, 0px));
  z-index: 4;
}

body.live-page .live-stage:-webkit-full-screen .live-watermark[data-pos="br"] {
  bottom: calc(14px + 72px + env(safe-area-inset-bottom, 0px));
}

body.live-page .video-shell {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-height: min(72dvh, 720px);
}

body.live-page .video-remote {
  position: absolute;
  inset: 0;
}

body.live-page .video-remote video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.35);
}

/* Subtle watermark for screenshots */
body.live-page .live-watermark {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 118px;
  max-width: 38vw;
  opacity: 0.65;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.28));
}

body.live-page .live-watermark img {
  width: 100%;
  height: auto;
  display: block;
}

/* Auto-move watermark when local preview snaps top-right */
body.live-page .live-watermark[data-pos="br"] {
  top: auto;
  bottom: 14px;
  right: 14px;
}

body.live-page .video-overlay {
  position: absolute;
  left: 14px;
  right: auto;
  top: 14px;
  display: grid;
  gap: 6px;
  padding: 12px 12px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  max-width: min(460px, calc(100% - 28px));
  transition: opacity 220ms ease, transform 220ms ease;
}

body.live-page .video-overlay.is-hidden {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

body.live-page .video-overlay .status {
  font-weight: 900;
  letter-spacing: -0.01em;
}

body.live-page .video-overlay .sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

body.live-page .match-timer {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  color: rgba(255, 255, 255, 0.92);
  pointer-events: none;
  z-index: 4;
}

/* Ensure HTML `hidden` works even if we set `display` above */
body.live-page .match-timer[hidden] {
  display: none !important;
}

body.live-page .match-timer ion-icon {
  font-size: 16px;
  color: #ffcc00;
}

@media (max-width: 720px) {
  body.live-page .live-watermark {
    top: 12px;
    right: 12px;
    width: 96px;
    opacity: 0.65;
  }
}

body.live-page .match-timer span {
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.2px;
}

body.live-page .peer-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  max-width: min(62%, 420px);
}

/* Ensure HTML `hidden` works even if we set `display` above */
body.live-page .peer-badge[hidden] {
  display: none !important;
}

body.live-page .peer-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

body.live-page .peer-badge-row .peer-name {
  flex: 1;
  min-width: 0;
}

body.live-page .peer-report-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

body.live-page .peer-report-btn ion-icon {
  font-size: 18px;
}

body.live-page .peer-report-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

body.live-page .peer-report-btn:not(:disabled):hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
}

body.live-page .peer-name,
body.live-page .peer-meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.live-page .peer-name {
  font-weight: 900;
  letter-spacing: -0.01em;
}

body.live-page .peer-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

body.live-page .video-local {
  position: absolute;
  right: 10px;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  width: min(30vw, 200px);
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.32);
  z-index: 5;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  will-change: left, top, transform;
  transition: left 180ms ease, top 180ms ease, transform 160ms ease;
}

body.live-page .video-local.is-dragging {
  cursor: grabbing;
  transform: scale(1.02);
  transition: none;
}

body.live-page .video-local video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.35);
}

body.live-page .controls {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 10px;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

body.live-page .ctl {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  padding: 12px 10px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

body.live-page .ctl ion-icon {
  font-size: 18px;
}

body.live-page .ctl span {
  font-size: 12px;
}

body.live-page .ctl:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

body.live-page .ctl:not(:disabled):hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
}

body.live-page .ctl.danger {
  border-color: rgba(216, 10, 56, 0.28);
  background: rgba(216, 10, 56, 0.12);
}

@media (max-width: 720px) {
  body.live-page {
    --lp-pad: 14px;
  }

  body.live-page .landing-topbar {
    padding: 10px var(--lp-pad);
  }

  body.live-page .topbar-inner {
    padding: 8px 10px;
    border-radius: 16px;
  }

  body.live-page .brand-logo {
    width: 120px;
  }

  body.live-page .pill {
    padding: 9px 12px;
    font-size: 12px;
  }

  body.live-page .live-main {
    padding-top: 84px;
  }

  body.live-page .live-auth {
    min-height: calc(100dvh - 84px);
  }

  body.live-page .video-overlay {
    left: 10px;
    top: 10px;
    padding: 10px 10px;
    border-radius: 16px;
    max-width: min(360px, calc(100% - 20px));
  }

  body.live-page .video-overlay .status {
    font-size: 14px;
  }

  body.live-page .match-timer {
    top: 10px;
    padding: 7px 11px;
  }

  body.live-page .match-timer span {
    font-size: 12px;
  }

  body.live-page .peer-badge {
    left: 10px;
    bottom: 10px;
    padding: 9px 11px;
    border-radius: 14px;
    max-width: min(72%, 360px);
  }

  body.live-page .video-shell {
    min-height: 72dvh;
  }

  body.live-page .video-local {
    width: min(26vw, 132px);
    right: 6px;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    border-radius: 16px;
  }

  body.live-page .ctl span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.live-page .ctl {
    transition: none !important;
  }
}

/* Live Filters sheet (Premium) */
body.live-page .lf-modal {
  position: fixed;
  inset: 0;
  z-index: 58;
  display: grid;
  align-items: end;
  justify-items: stretch;
}

body.live-page .lf-modal[hidden] {
  display: none !important;
}

body.live-page .lf-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  border: none;
  padding: 0;
  margin: 0;
}

body.live-page .lf-sheet {
  position: relative;
  width: min(560px, calc(100% - 18px));
  justify-self: center;
  margin: 0 0 10px 0;
  padding: 10px 12px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  background: rgba(10, 10, 10, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(16px);
  box-shadow: 0 -18px 80px rgba(0, 0, 0, 0.48);
  max-height: min(80dvh, 680px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

body.live-page .lf-handle {
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.20);
  margin: 6px auto 10px;
}

body.live-page .lf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 2px 10px;
}

body.live-page .lf-title {
  font-weight: 950;
  letter-spacing: 0.2px;
}

body.live-page .lf-icon {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

body.live-page .lf-icon ion-icon {
  font-size: 20px;
}

body.live-page .lf-alert {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 10px 0;
}

body.live-page .lf-section {
  padding: 10px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.live-page .lf-section-title {
  font-weight: 950;
  margin-bottom: 4px;
}

body.live-page .lf-section-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 10px;
}

body.live-page .lf-age-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.live-page .lf-card {
  text-align: left;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.92);
  padding: 12px 12px;
  border-radius: 18px;
  cursor: pointer;
  position: relative;
  min-height: 64px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

body.live-page .lf-card-title {
  font-weight: 950;
}

body.live-page .lf-card-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.70);
  margin-top: 2px;
}

body.live-page .lf-card.is-selected {
  border-color: rgba(216, 10, 56, 0.34);
  background: rgba(216, 10, 56, 0.14);
}

body.live-page .lf-card.is-selected::after {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 12px;
  font-weight: 950;
  color: rgba(216, 10, 56, 0.95);
}

body.live-page .lf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

body.live-page .lf-link {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.92);
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
}

body.live-page .lf-link ion-icon {
  font-size: 18px;
  color: rgba(216, 10, 56, 0.92);
}

body.live-page .lf-count {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.60);
}

body.live-page .lf-gender-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.live-page .lf-pill {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.92);
  padding: 12px 10px;
  border-radius: 18px;
  cursor: pointer;
  font-weight: 950;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

body.live-page .lf-pill.is-selected {
  border-color: rgba(216, 10, 56, 0.34);
  background: rgba(216, 10, 56, 0.14);
}

body.live-page .lf-note {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

body.live-page .lf-actions {
  display: flex;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 6px;
}

body.live-page .lf-btn {
  flex: 1;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.92);
  padding: 12px 12px;
  border-radius: 18px;
  cursor: pointer;
  font-weight: 950;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

body.live-page .lf-btn.primary {
  border-color: rgba(216, 10, 56, 0.34);
  background: rgba(216, 10, 56, 0.18);
}

body.live-page .lf-card:disabled,
body.live-page .lf-pill:disabled,
body.live-page .lf-link:disabled,
body.live-page .lf-btn:disabled,
body.live-page .lf-icon:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

body.live-page .lf-card:not(:disabled):hover,
body.live-page .lf-pill:not(:disabled):hover,
body.live-page .lf-link:not(:disabled):hover,
body.live-page .lf-btn:not(:disabled):hover,
body.live-page .lf-icon:not(:disabled):hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
}

/* Report & Block sheet */
body.live-page .rb-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  align-items: end;
  justify-items: stretch;
}

body.live-page .rb-modal[hidden] {
  display: none !important;
}

body.live-page .rb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  border: none;
  padding: 0;
  margin: 0;
}

body.live-page .rb-sheet {
  position: relative;
  width: min(520px, calc(100% - 18px));
  justify-self: center;
  margin: 0 0 10px 0;
  padding: 10px 12px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  background: rgba(10, 10, 10, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(16px);
  box-shadow: 0 -18px 80px rgba(0, 0, 0, 0.48);
  max-height: min(80dvh, 620px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

body.live-page .rb-handle {
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  margin: 4px auto 10px;
}

body.live-page .rb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 10px;
}

body.live-page .rb-title {
  flex: 1;
  text-align: center;
  font-weight: 900;
  letter-spacing: -0.01em;
}

body.live-page .rb-icon {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

body.live-page .rb-icon[hidden] {
  display: none !important;
}

body.live-page .rb-icon ion-icon {
  font-size: 18px;
}

body.live-page .rb-icon:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

body.live-page .rb-icon:not(:disabled):hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
}

body.live-page .rb-alert {
  padding: 10px 12px;
  border-radius: 14px;
  margin: 0 2px 10px;
  background: rgba(216, 10, 56, 0.14);
  border: 1px solid rgba(216, 10, 56, 0.22);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
}

body.live-page .rb-view[hidden] {
  display: none !important;
}

body.live-page .rb-item,
body.live-page .rb-reason {
  width: 100%;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  padding: 14px 12px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  margin: 0 2px 10px;
  transition: background 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

body.live-page .rb-item ion-icon,
body.live-page .rb-reason ion-icon {
  font-size: 18px;
}

body.live-page .rb-item span,
body.live-page .rb-reason span {
  flex: 1;
  text-align: left;
  font-weight: 900;
  font-size: 14px;
}

body.live-page .rb-item:disabled,
body.live-page .rb-reason:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

body.live-page .rb-item:not(:disabled):hover,
body.live-page .rb-reason:not(:disabled):hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
}

body.live-page .rb-item.rb-danger {
  border-color: rgba(216, 10, 56, 0.28);
  background: rgba(216, 10, 56, 0.12);
}

body.live-page .rb-chevron {
  color: rgba(255, 255, 255, 0.55);
}

body.live-page.rb-open {
  overflow: hidden;
}

body.live-page.lf-open {
  overflow: hidden;
}

