.live-page {
  padding-bottom: 28px;
  overflow-x: hidden;
}

.site-header .nav-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.live-hero {
  padding: 28px 0 16px;
}

.live-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.live-stage-card {
  grid-column: 1;
}

.live-stage-card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.live-stage-card {
  padding: 14px;
  min-width: 0;
}

.live-stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.live-stage-actions-compact {
  margin-bottom: 10px;
}

.live-stage-tools {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.live-stage-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  width: min(100%, 920px);
  height: clamp(560px, 76vh, 840px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at top, rgba(255, 106, 92, 0.18), transparent 28%),
    radial-gradient(circle at bottom, rgba(86, 208, 255, 0.16), transparent 30%),
    linear-gradient(180deg, #09070f 0%, #171226 100%);
}

.live-stage-frame.frame-fire {
  box-shadow: 0 0 0 1px rgba(255, 92, 92, 0.18), 0 0 0 10px rgba(255, 92, 92, 0.05), var(--shadow);
}

.live-stage-frame.frame-water {
  box-shadow: 0 0 0 1px rgba(86, 208, 255, 0.18), 0 0 0 10px rgba(86, 208, 255, 0.05), var(--shadow);
}

.live-stage-frame.frame-sunset {
  box-shadow: 0 0 0 1px rgba(255, 207, 90, 0.18), 0 0 0 10px rgba(255, 207, 90, 0.05), var(--shadow);
}

.live-stage-frame.frame-royal {
  box-shadow: 0 0 0 1px rgba(160, 120, 255, 0.18), 0 0 0 10px rgba(160, 120, 255, 0.05), var(--shadow);
}

.live-stage-frame.frame-neon {
  box-shadow: 0 0 0 1px rgba(93, 255, 194, 0.18), 0 0 0 10px rgba(93, 255, 194, 0.05), var(--shadow);
}

.live-stage-frame.frame-ice {
  box-shadow: 0 0 0 1px rgba(190, 240, 255, 0.18), 0 0 0 10px rgba(190, 240, 255, 0.05), var(--shadow);
}

.live-stage-frame.frame-snake {
  box-shadow: 0 0 0 1px rgba(93, 214, 122, 0.18), 0 0 0 10px rgba(93, 214, 122, 0.05), var(--shadow);
}

.live-stage-frame.frame-lions {
  box-shadow: 0 0 0 1px rgba(255, 193, 75, 0.18), 0 0 0 10px rgba(255, 193, 75, 0.05), var(--shadow);
}

.live-stage-media {
  position: absolute;
  inset: 0;
}

.live-video,
.live-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

.live-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
  color: #fff;
  background: linear-gradient(180deg, rgba(8, 6, 14, 0.26), rgba(8, 6, 14, 0.78));
}

.live-empty p {
  max-width: 320px;
  color: rgba(255, 255, 255, 0.76);
}

.live-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(10, 7, 18, 0.52);
  backdrop-filter: blur(10px);
  color: #fff;
  font-weight: 800;
}

.live-badge small {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff6a5c;
  box-shadow: 0 0 0 0 rgba(255, 106, 92, 0.55);
  animation: livePulse 1.6s infinite;
}

.live-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 20px 20px 22px;
  display: grid;
  gap: 12px;
  background: linear-gradient(180deg, rgba(8, 6, 14, 0) 0%, rgba(8, 6, 14, 0.24) 14%, rgba(8, 6, 14, 0.82) 100%);
}

.live-comment-overlay {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin: 0 0 14px;
  padding: 14px 14px 12px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(26, 18, 46, 0.62), rgba(8, 6, 16, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

.live-comment-overlay .live-comment-list {
  margin-top: 0;
  min-height: 124px;
  max-height: 250px;
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.42) rgba(255, 255, 255, 0.08);
}

.live-comment-overlay .live-comment-list::-webkit-scrollbar {
  width: 8px;
}

.live-comment-overlay .live-comment-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.live-comment-overlay .live-comment-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.22));
  border-radius: 999px;
  border: 2px solid rgba(10, 8, 18, 0.55);
}

.live-comment-overlay .live-comment-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.32));
}

.live-comment-overlay .live-comment-item {
  padding: 11px 12px 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.06));
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.live-comment-overlay .comment-state {
  margin-top: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.live-comment-overlay .reply-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
}

.live-comment-overlay .reply-state button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  opacity: 0.9;
}

.live-comment-overlay .reply-state button:hover {
  opacity: 1;
}

.live-comment-item {
  cursor: pointer;
}

.live-comment-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.live-comment-head > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.live-comment-item .avatar {
  flex: 0 0 auto;
}

.live-comment-item a {
  color: inherit;
  text-decoration: none;
}

.live-comment-item a:hover strong,
.live-comment-item a:hover {
  text-decoration: underline;
}

.live-comment-item .comment-author-link strong {
  font-weight: 700;
}

.live-comment-item .comment-body {
  margin: 8px 0 0;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.97);
  word-break: break-word;
}

.live-comment-item:focus-within {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.live-comment-item .comment-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.live-comment-item .comment-reply-btn {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.live-comment-item .comment-reply-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
  text-decoration: none;
}

.live-comment-overlay .live-comment-form textarea {
  min-height: 48px;
  padding: 11px 12px;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.10);
}

.live-comment-overlay .live-comment-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.live-comment-overlay .live-comment-form .primary-btn {
  min-height: 48px;
  padding-inline: 16px;
}

.live-comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

@media (max-width: 720px) {
  .live-comment-overlay {
    padding: 10px;
  }

  .live-comment-form {
    grid-template-columns: 1fr;
  }
}

.live-host {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.live-host small {
  display: block;
  color: rgba(255, 255, 255, 0.74);
}

.live-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  font-size: 0.82rem;
}

.live-reaction-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.reaction-card {
  display: grid;
  gap: 4px;
  padding: 10px 9px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  color: #fff;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.reaction-card i {
  width: 30px;
  height: 30px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
}

.reaction-card strong {
  font-size: 0.88rem;
  line-height: 1;
}

.reaction-card span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.72);
}

.reaction-card.like {
  border-color: rgba(255, 106, 92, 0.18);
}

.reaction-card.like i {
  background: rgba(255, 106, 92, 0.18);
  color: #ff8ca0;
}

.reaction-card.comment {
  border-color: rgba(86, 208, 255, 0.18);
}

.reaction-card.comment i {
  background: rgba(86, 208, 255, 0.16);
  color: #8ee7ff;
}

.reaction-card.share {
  border-color: rgba(168, 132, 255, 0.18);
}

.reaction-card.share i {
  background: rgba(168, 132, 255, 0.16);
  color: #c6adff;
}

.reaction-card:hover,
.reaction-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
}

.live-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.live-gift-strip {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 12px 0 2px;
}

.gift-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.gift-icon:hover {
  transform: translateY(-1px);
  background: rgba(255, 106, 92, 0.14);
  border-color: rgba(255, 106, 92, 0.34);
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

.toggle-row input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.toggle-row small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.live-comments-card .live-comment-list {
  flex: 1 1 auto;
  min-height: 180px;
  display: grid;
  gap: 10px;
  margin-top: 16px;
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.live-comment-item {
  display: grid;
  gap: 8px;
  padding: 14px 14px 13px;
  border-radius: 18px 18px 18px 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 20px rgba(0, 0, 0, 0.12);
}

.live-comment-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.live-comment-head small {
  color: var(--muted);
}

.live-comment-head .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.live-comment-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.45;
  word-break: break-word;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.live-comment-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 0;
  align-items: end;
}

.live-comment-form textarea {
  min-height: 64px;
  resize: vertical;
  border-radius: 18px;
  padding: 14px 14px 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--line);
}

.comment-state {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.94rem;
}

.danger {
  background: rgba(255, 106, 92, 0.14);
  border-color: rgba(255, 106, 92, 0.3);
  color: #ff7e96;
}

.action-pill.active {
  background: rgba(86, 208, 255, 0.16);
  border-color: rgba(86, 208, 255, 0.35);
  color: #8ee7ff;
}

.live-stage-card .live-stage-media,
.live-stage-card .live-empty {
  border-radius: 34px;
}

.live-sidebar .side-card {
  backdrop-filter: blur(14px);
  padding: 12px 12px 10px;
  border-radius: 22px;
}

.live-sidebar .side-head {
  margin-bottom: 8px;
}

.live-sidebar .side-head h2 {
  font-size: 1.18rem;
  margin-bottom: 0;
}

.live-sidebar .side-head .eyebrow {
  padding: 6px 9px;
  font-size: 0.68rem;
}

.live-sidebar .side-head i {
  font-size: 0.96rem;
  opacity: 0.9;
}

.live-sidebar .bullet-list {
  margin-top: 10px;
  gap: 6px;
  padding-left: 16px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.live-sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 92px;
}

.live-room-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.live-room-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  text-align: left;
}

.live-room-thumb {
  aspect-ratio: 9 / 16;
  width: 84px;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
}

.live-room-thumb img,
.live-room-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.live-room-item strong {
  display: block;
  margin-bottom: 4px;
}

.live-room-item small {
  color: rgba(255, 255, 255, 0.64);
}

.live-room-item.active {
  border-color: rgba(255, 106, 92, 0.3);
  background: rgba(255, 106, 92, 0.12);
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 106, 92, 0.55); }
  70% { box-shadow: 0 0 0 16px rgba(255, 106, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 106, 92, 0); }
}

@media (max-width: 700px) {
  .live-layout {
    grid-template-columns: 1fr;
  }

  .live-stage-card,
  .live-sidebar {
    grid-column: auto;
  }

  .live-stage-frame {
    width: min(100%, 100%);
    height: min(78vh, 780px);
  }

  .live-comment-overlay {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .live-stage-card {
    padding: 12px;
  }

  .live-stage-frame {
    width: 100%;
    height: 72vh;
    min-height: 540px;
  }

  .live-overlay {
    padding: 16px;
  }

  .live-stage-tools {
    top: 12px;
    right: 12px;
  }

  .live-meta-grid {
    grid-template-columns: 1fr;
  }

  .live-reaction-board {
    grid-template-columns: 1fr;
  }

  .live-comment-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .live-meta-grid,
  .live-reaction-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header .nav-actions > .secondary-btn:last-child {
    display: none;
  }
}
