/* LIVE ID + Live Studio — mobile-first demo shell (GKZiD green, red LIVE dot). */

.live-id-body,
.live-studio-view-body {
  margin: 0;
  min-height: 100%;
  font-family: "Outfit", system-ui, sans-serif;
  background: #000;
  color: rgba(244, 248, 251, 0.92);
  -webkit-font-smoothing: antialiased;
}

.live-id-main,
.live-studio-view-main {
  max-width: 28rem;
  margin: 0 auto;
  padding: calc(0.75rem + env(safe-area-inset-top)) 1.1rem calc(2rem + env(safe-area-inset-bottom));
}

/* ID LIVE: ~20% wider column so the Mux iframe reads larger than the old preview strip (28rem × 1.2). */
.live-id-main.live-id-main--mux-embed {
  max-width: min(33.6rem, 100vw - 1.25rem);
}

.live-id-mux-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
  box-sizing: border-box;
}

.live-id-mux-embed__frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  vertical-align: top;
}

.live-id-brand {
  text-align: center;
  margin-bottom: 1.25rem;
}

.live-id-brand__title {
  margin: 0;
  font-family: "Syne", system-ui, sans-serif;
  font-size: clamp(1.75rem, 6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.live-id-brand__sub {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #00f52a;
  text-transform: uppercase;
}

.live-id-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
}

.live-id-profile__avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(0, 245, 42, 0.25), rgba(255, 255, 255, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}

.live-id-profile__meta {
  min-width: 0;
}

.live-id-profile__name {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-id-profile__hint {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: rgba(234, 240, 255, 0.45);
}

.live-id-field {
  display: block;
  margin-bottom: 1rem;
}

.live-id-field__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(234, 240, 255, 0.5);
  margin-bottom: 0.45rem;
}

.live-id-field__input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
}

.live-id-field__input:focus {
  outline: none;
  border-color: rgba(0, 245, 42, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 245, 42, 0.12);
}

.live-id-preview-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: min(52vh, 420px);
  margin: 0 auto 1rem;
  border-radius: 16px;
  overflow: hidden;
  background: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.live-id-preview-wrap--live {
  border-color: rgba(255, 59, 48, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 59, 48, 0.2), 0 12px 40px rgba(0, 0, 0, 0.45);
}

.live-id-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

.live-id-preview__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem;
  color: rgba(234, 240, 255, 0.42);
  font-size: 0.9rem;
  line-height: 1.45;
  pointer-events: none;
}

.live-id-preview-wrap.is-previewing .live-id-preview__placeholder {
  display: none;
}

.live-id-status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  min-height: 1.5rem;
}

.live-id-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333;
  flex-shrink: 0;
  transition: background 0.2s, box-shadow 0.2s;
}

.live-id-live-dot--on {
  background: #ff3b30;
  box-shadow: 0 0 12px rgba(255, 59, 48, 0.85);
  animation: live-id-pulse 1.4s ease-in-out infinite;
}

@keyframes live-id-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.08);
  }
}

.live-id-status-text {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(234, 240, 255, 0.45);
}

.live-id-status-text--connecting {
  color: #f5a623;
}

.live-id-status-text--live {
  color: #ff3b30;
}

.live-id-cta {
  width: 100%;
  padding: 1.05rem 1.25rem;
  border: none;
  border-radius: 14px;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  background: linear-gradient(165deg, #00f52a 0%, #00c422 100%);
  color: #050608;
  box-shadow: 0 8px 28px rgba(0, 245, 42, 0.28);
  transition: transform 0.15s, filter 0.15s;
}

.live-id-cta:hover:not(:disabled) {
  filter: brightness(1.06);
}

.live-id-cta:active:not(:disabled) {
  transform: scale(0.98);
}

.live-id-cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.live-id-cta--danger {
  margin-top: 0.75rem;
  background: transparent;
  color: rgba(255, 59, 48, 0.95);
  border: 2px solid rgba(255, 59, 48, 0.55);
  box-shadow: none;
}

.live-id-cta--danger:hover:not(:disabled) {
  background: rgba(255, 59, 48, 0.12);
  filter: none;
}

.live-id-cta--ghost {
  margin-top: 0.5rem;
  background: transparent;
  color: rgba(244, 248, 251, 0.88);
  border: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.live-id-cta--ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
  filter: none;
}

.live-id-footer-links {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

.live-id-footer-links a {
  color: #00f52a;
  font-weight: 600;
  text-decoration: none;
}

.live-id-footer-links a:hover {
  text-decoration: underline;
}

.live-id-msg {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.4;
  background: rgba(255, 59, 48, 0.12);
  border: 1px solid rgba(255, 59, 48, 0.35);
  color: #ffb4ae;
}

.live-id-msg[hidden] {
  display: none !important;
}

.live-id-msg--warn {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.45);
  color: #ffe08a;
}

.live-id-broadcast-panel {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
}

.live-id-broadcast-panel__lead {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(244, 248, 251, 0.88);
}

.live-id-broadcast-panel__lead:last-child {
  margin-bottom: 0;
}

.live-id-broadcast-panel__muted {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(234, 240, 255, 0.45);
  word-break: break-all;
}

.live-id-broadcast-panel__muted code {
  font-size: 0.72rem;
  color: rgba(0, 245, 42, 0.95);
}

.live-id-share-watch {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.live-id-share-watch__actions {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.live-id-share-watch__actions .live-id-cta--ghost {
  flex: 1;
  margin-top: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-id-share-watch-fab {
  flex-shrink: 0;
  width: 48px;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(0, 245, 42, 0.4);
  background: linear-gradient(160deg, rgba(12, 22, 32, 0.98), rgba(8, 14, 22, 0.96));
  color: #00f52a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  padding: 0;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 0 16px rgba(0, 245, 42, 0.28),
    0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.1s ease;
}

.live-id-share-watch-fab svg {
  width: 20px;
  height: 20px;
}

.live-id-share-watch-fab:focus-visible {
  outline: 2px solid rgba(0, 245, 42, 0.6);
  outline-offset: 2px;
}

.live-id-share-watch-fab:active {
  transform: scale(0.96);
}

.live-id-share-watch .live-id-broadcast-panel__muted {
  margin-top: 0.5rem;
}

.live-id-share-watch .live-id-broadcast-panel__muted strong {
  color: rgba(244, 248, 251, 0.9);
  font-weight: 700;
}

.live-id-footer-hint {
  margin: 0.65rem auto 0;
  max-width: 28rem;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(234, 240, 255, 0.42);
}

.live-id-footer-hint strong {
  color: rgba(234, 240, 255, 0.62);
  font-weight: 600;
}

.live-id-watch-share {
  margin-bottom: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 245, 42, 0.22);
}

.live-id-watch-share__heading {
  margin: 0 0 0.35rem;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.live-id-watch-share__lede {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(234, 240, 255, 0.55);
}

.live-id-watch-share .live-id-share-watch__actions {
  margin-bottom: 0.35rem;
}

.live-id-watch-share__hint {
  margin: 0;
}

.live-id-broadcaster-details {
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.live-id-broadcaster-details__summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(244, 248, 251, 0.75);
  padding: 0.5rem 0;
  list-style: none;
}

.live-id-broadcaster-details__summary::-webkit-details-marker {
  display: none;
}

.live-id-broadcaster-details__summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 0.35rem;
  transition: transform 0.15s ease;
  color: #00f52a;
}

.live-id-broadcaster-details[open] .live-id-broadcaster-details__summary::before {
  transform: rotate(90deg);
}

.live-id-broadcaster-details__body {
  padding-bottom: 0.75rem;
}

.live-studio-copy-link {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.75rem;
}

/* Live Studio (viewer) */
.live-studio-view-hero {
  text-align: center;
  margin-bottom: 1rem;
}

.live-studio-view-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
}

.live-studio-view-player video,
.live-studio-view-player iframe {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: contain;
  background: #000;
}

.live-studio-offline {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: #000;
  text-align: center;
}

.live-studio-offline[hidden] {
  display: none !important;
}

.live-studio-offline__inner {
  max-width: 22rem;
}

.live-studio-offline__dot {
  display: block;
  width: 14px;
  height: 14px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #8e8e93;
  box-shadow: 0 0 0 4px rgba(142, 142, 147, 0.28);
  position: relative;
}

.live-studio-offline__dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.65);
}

.live-studio-offline__gkz {
  margin: 0 0 0.5rem;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #00f52a;
}

.live-studio-offline__title {
  margin: 0 0 0.35rem;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: rgba(244, 248, 251, 0.96);
  line-height: 1.2;
}

.live-studio-offline__brand {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(234, 240, 255, 0.45);
}

.live-studio-offline__msg {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(234, 240, 255, 0.52);
}

.live-studio-view-placeholder {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  text-align: center;
  color: rgba(234, 240, 255, 0.5);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Share FAB — same paper-plane affordance as Reel (top-right over player) */
.live-studio-share-fab {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 25;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(0, 245, 42, 0.4);
  background: linear-gradient(160deg, rgba(12, 22, 32, 0.98), rgba(8, 14, 22, 0.96));
  color: #00f52a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  padding: 0;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(0, 245, 42, 0.35),
    0 6px 18px rgba(0, 0, 0, 0.45);
  transition:
    box-shadow 0.1s ease,
    transform 0.1s cubic-bezier(0.25, 0.8, 0.25, 1),
    border-color 0.15s ease;
}

.live-studio-share-fab svg {
  width: 20px;
  height: 20px;
}

.live-studio-share-fab:hover,
.live-studio-share-fab:focus-visible {
  transform: none;
}

.live-studio-share-fab:focus-visible {
  outline: 2px solid rgba(0, 245, 42, 0.6);
  outline-offset: 3px;
}

.live-studio-share-fab:active {
  transform: scale(0.96);
}

.live-studio-view-meta {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
}

.live-studio-view-meta__row {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
}

.live-studio-view-meta__row:last-child {
  margin-bottom: 0;
}

.live-studio-view-meta__label {
  color: rgba(234, 240, 255, 0.45);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.2rem;
}

.live-studio-view-share {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 245, 42, 0.45);
  background: rgba(0, 245, 42, 0.1);
  color: #00f52a;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  margin-bottom: 0.75rem;
}

.live-studio-view-share:hover {
  background: rgba(0, 245, 42, 0.18);
}

.live-studio-view-main .live-id-cta {
  width: 100%;
  box-sizing: border-box;
}

.live-studio-view-main .live-id-cta--danger {
  margin-top: 0;
}

.is-hidden {
  display: none !important;
}

.live-id-ingest-todo {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(234, 240, 255, 0.55);
  background: rgba(0, 245, 42, 0.06);
  border: 1px solid rgba(0, 245, 42, 0.2);
}

.live-id-ingest-todo strong {
  color: rgba(244, 248, 251, 0.85);
}

/* ID LIVE Replays (broadcaster page + Live Studio) */
.live-id-replays {
  margin-top: 1.5rem;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.live-id-replays__heading {
  margin: 0 0 0.25rem;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.live-id-replays__brand {
  margin: 0 0 0.85rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00f52a;
}

.live-id-replays__player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.75rem;
}

.live-id-replays__player iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
}

.live-id-replays__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(234, 240, 255, 0.5);
}

.live-id-replays__placeholder p {
  margin: 0;
}

.live-id-replays__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.live-id-replays__actions .live-id-cta {
  width: 100%;
  box-sizing: border-box;
}

/* Clip builder → MeDia Locker (Mux instant clip) */
.live-id-clips {
  margin-top: 1.25rem;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(0, 245, 42, 0.2);
}

.live-id-clips__heading {
  margin: 0 0 0.35rem;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.live-id-clips__hint {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(234, 240, 255, 0.5);
}

.live-id-clips__quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  margin: -0.35rem 0 0.85rem;
}

.live-id-clips__quick-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(234, 240, 255, 0.4);
  margin-right: 0.1rem;
}

.live-id-clips__quick-btn {
  padding: 0.42rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(244, 248, 251, 0.9);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}

.live-id-clips__quick-btn:hover {
  background: rgba(0, 245, 42, 0.1);
  border-color: rgba(0, 245, 42, 0.35);
}

.live-id-clips__fields {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.live-id-clips__preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.75rem;
}

.live-id-clips__iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.live-id-clips__preview-hint {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(234, 240, 255, 0.45);
  pointer-events: none;
}

.live-id-clips__preview-hint[hidden] {
  display: none !important;
}

.live-id-clips__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.live-id-clips__actions .live-id-cta {
  width: 100%;
  box-sizing: border-box;
}

.live-id-replay-dev {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(255, 193, 7, 0.4);
  background: rgba(255, 193, 7, 0.06);
}

.live-studio-replays {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.live-studio-replays__heading {
  margin: 0 0 0.25rem;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.live-studio-replays__brand {
  margin: 0 0 0.85rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00f52a;
}

.live-studio-replays__player {
  margin-bottom: 0.75rem;
}

.live-studio-replays__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.live-studio-replays__actions .live-id-cta {
  width: 100%;
  box-sizing: border-box;
}
