.live-hub-shell {
  width: min(1520px, 100%);
}

.live-hub-main {
  display: grid;
  gap: clamp(1.25rem, 2vw, 2rem);
  min-width: 0;
  padding-bottom: 3rem;
}

.live-hub-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid rgba(128, 238, 203, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 0%, rgba(95, 242, 182, 0.17), transparent 36%),
    radial-gradient(circle at 92% 18%, rgba(102, 126, 234, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(18, 28, 48, 0.98), rgba(10, 16, 29, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.live-hub-hero::after {
  position: absolute;
  z-index: -1;
  right: -8rem;
  bottom: -10rem;
  width: 24rem;
  height: 24rem;
  border: 1px solid rgba(95, 242, 182, 0.12);
  border-radius: 50%;
  content: '';
}

.live-hub-hero-copy {
  align-self: center;
  max-width: 720px;
}

.live-hub-hero-copy h1 {
  max-width: 14ch;
  margin: 0.25rem 0 0.8rem;
  font-size: clamp(2.15rem, 5vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.live-hub-hero-copy > p:last-child {
  max-width: 62ch;
  margin: 0;
  color: var(--muted, #aeb9cc);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.65;
}

.live-hub-room-form {
  align-self: center;
  display: grid;
  gap: 0.6rem;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(5, 10, 20, 0.58);
  backdrop-filter: blur(14px);
}

.live-hub-room-form > label {
  color: #f5f8ff;
  font-weight: 700;
}

.live-hub-room-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
}

.live-hub-room-field > span {
  color: var(--muted, #aeb9cc);
  font-weight: 800;
}

.live-hub-room-field input {
  min-width: 0;
}

.live-hub-summary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.live-hub-summary > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.live-hub-summary dt {
  color: var(--muted, #aeb9cc);
  font-size: 0.84rem;
}

.live-hub-summary dd {
  margin: 0;
  color: #f4fff9;
  font-size: 1.35rem;
  font-weight: 800;
}

.live-hub-discovery {
  display: grid;
  gap: 1rem;
}

.live-hub-discovery-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.live-hub-discovery-header h2,
.live-hub-creator-cta h2 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
}

.live-hub-search {
  width: min(100%, 360px);
}

.live-hub-search input {
  width: 100%;
}

.live-hub-filter-row {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scrollbar-width: thin;
}

.live-hub-filter {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted, #aeb9cc);
  font-weight: 700;
}

.live-hub-filter:hover,
.live-hub-filter:focus-visible,
.live-hub-filter.is-active {
  border-color: rgba(95, 242, 182, 0.5);
  background: rgba(95, 242, 182, 0.12);
  color: #eafff7;
}

.live-hub-status {
  min-height: 1.4rem;
  margin: 0;
  color: var(--muted, #aeb9cc);
  font-size: 0.9rem;
}

.live-hub-sections {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.live-hub-section {
  grid-column: span 4;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(13, 21, 37, 0.84);
}

.live-hub-section[hidden] {
  display: none;
}

.live-hub-section.is-filtered {
  grid-column: 1 / -1;
}

.live-hub-section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  margin-bottom: 0.8rem;
}

.live-hub-section-heading h3 {
  margin: 0;
  font-size: 1.1rem;
}

.live-hub-section-heading p {
  margin: 0.3rem 0 0;
  color: var(--muted, #aeb9cc);
  font-size: 0.84rem;
  line-height: 1.45;
}

.live-discovery-list {
  display: grid;
  gap: 0.75rem;
}

.live-discovery-row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  transition:
    border-color 150ms ease,
    transform 150ms ease,
    background 150ms ease;
}

.live-discovery-row:hover {
  transform: translateY(-1px);
  border-color: rgba(95, 242, 182, 0.25);
  background: rgba(255, 255, 255, 0.055);
}

.live-discovery-row > div:not(.avatar) {
  min-width: 0;
}

.live-discovery-row strong,
.live-discovery-row .hint {
  overflow-wrap: anywhere;
}

.live-age-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  margin-left: 0.25rem;
  padding: 0.05rem 0.38rem;
  border: 1px solid rgba(255, 184, 107, 0.35);
  border-radius: 999px;
  color: #ffd3a1;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  vertical-align: middle;
}

.live-discovery-row .hint {
  margin: 0.25rem 0 0;
  line-height: 1.4;
}

.live-discovery-row .owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.live-discovery-row > .live-pill {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
}

.live-discovery-thumb {
  width: 72px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
}

.live-discovery-empty {
  display: grid;
  align-content: center;
  gap: 0.75rem;
  min-height: 132px;
  padding: 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  text-align: left;
}

.live-discovery-empty h4 {
  margin: 0;
  font-size: 0.96rem;
}

.live-discovery-empty .ghost-btn {
  justify-self: start;
}

.live-hub-creator-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(102, 126, 234, 0.1), rgba(95, 242, 182, 0.06));
}

.live-hub-creator-cta p:last-child {
  max-width: 68ch;
  margin: 0.55rem 0 0;
  color: var(--muted, #aeb9cc);
}

.live-hub-creator-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 0.65rem;
}

@media (max-width: 1120px) {
  .live-hub-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-hub-section {
    grid-column: auto;
  }

  .live-hub-section:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .live-hub-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 1.35rem;
    border-radius: 18px;
  }

  .live-hub-hero-copy h1 {
    font-size: clamp(2.1rem, 11vw, 3.2rem);
  }

  .live-hub-summary {
    grid-column: auto;
  }

  .live-hub-discovery-header,
  .live-hub-creator-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .live-hub-search {
    width: 100%;
  }

  .live-hub-sections {
    grid-template-columns: minmax(0, 1fr);
  }

  .live-hub-section,
  .live-hub-section:last-child {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .live-hub-room-field {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .live-hub-room-field .primary-btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .live-hub-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .live-hub-section {
    padding: 0.8rem;
  }

  .live-hub-creator-actions > * {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-discovery-row {
    transition: none;
  }

  .live-discovery-row:hover {
    transform: none;
  }
}
