/* Simple glass + space vibe (works with your existing styles.css) */

body.explore-page,
body.subscriptions-page {
  --explore-edge-padding: 24px;
}

body.explore-page .dashboard-main,
body.subscriptions-page .dashboard-main {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 16px 0 70px;
}

body.explore-page .container,
body.subscriptions-page .container,
body.subscriptions-page .subscriptions-container {
  max-width: none;
  width: 100%;
  padding: 0;
}

body.explore-page .gen-search,
body.subscriptions-page .gen-search {
  display: flex;
  justify-content: center;
  width: min(550px, 100%);
  max-width: 100%;
  min-width: 0;
  transform: none;
}

body.explore-page .gen-header-inner,
body.subscriptions-page .gen-header-inner {
  display: grid;
  align-items: center;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

body.explore-page .gen-left,
body.subscriptions-page .gen-left,
body.explore-page .gen-center,
body.subscriptions-page .gen-center,
body.explore-page .gen-right,
body.subscriptions-page .gen-right {
  flex: 0 0 auto;
  min-width: 0;
}

body.explore-page .gen-search-input,
body.subscriptions-page .gen-search-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 9px 16px;
  border-radius: 999px;
  border: none;
  background: rgba(5,7,18,0.55);
  color: rgba(255,255,255,0.92);
  font-size: 14px;
  font-family: var(--font-display);
  box-shadow: 0 14px 28px rgba(0,0,0,0.35);
}

body.explore-page .gen-search-input::placeholder,
body.subscriptions-page .gen-search-input::placeholder {
  color: rgba(255,255,255,0.6);
}

body.explore-page .gen-search-input:focus-visible,
body.subscriptions-page .gen-search-input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(199,125,255,0.35), 0 14px 28px rgba(0,0,0,0.35);
}

@media (max-width: 1100px) {
  body.explore-page .gen-user-sub,
  body.subscriptions-page .gen-user-sub {
    display: none;
  }

  body.explore-page .gen-user-name,
  body.subscriptions-page .gen-user-name {
    max-width: 120px;
  }

  body.explore-page .gen-actions,
  body.subscriptions-page .gen-actions {
    gap: 6px;
  }

  body.explore-page .gen-user-btn,
  body.subscriptions-page .gen-user-btn {
    max-width: 220px;
    overflow: hidden;
  }

  body.explore-page .gen-create-btn,
  body.subscriptions-page .gen-create-btn {
    min-width: 36px;
    width: 36px;
    padding: 0;
  }

  body.explore-page .gen-create-text,
  body.subscriptions-page .gen-create-text {
    display: none;
  }
}

.pill-btn {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
}

.explore-hero,
.subscriptions-hero {
  margin-top: 22px;
  margin-bottom: 18px;
  padding: 0 var(--explore-edge-padding);
}

.hero-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.explore-controls-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sort-menu {
  position: relative;
  flex-shrink: 0;
}

.sort-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(0,0,0,0.35);
}

.sort-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sort-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(199,125,255,0.35), 0 12px 26px rgba(0,0,0,0.35);
}

.sort-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 190px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10,12,26,0.96);
  box-shadow: 0 20px 45px rgba(0,0,0,0.55);
  opacity: 0;
  transform: translateY(-6px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity .12s ease, transform .12s ease, visibility .12s ease;
  z-index: 10020;
}

.sort-panel.open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.sort-option {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.92);
  font-size: 12px;
  font-weight: 800;
  font-family: var(--font-display);
  text-align: left;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
}

.sort-option:hover {
  background: rgba(199,125,255,0.12);
}

.sort-option.active {
  background: rgba(199,125,255,0.18);
}

.chip-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 2px 2px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 380px;
  min-width: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(7,10,24,0.6);
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  letter-spacing: 0.2px;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  scroll-snap-align: start;
}

.chip-mode {
  background: rgba(12,16,30,0.7);
  border-color: rgba(255,255,255,0.28);
}

.chip-live{
  background: rgba(7,10,24,0.6);
  border-color: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.82);
}

.chip-live.active{
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.5);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

.chip:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.32);
  color: rgba(255,255,255,0.96);
}

.chip.active {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.5);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

.status-line {
  margin: 10px 2px 14px 2px;
  color: rgba(255,255,255,0.70);
  font-size: 13px;
}

.explore-sentinel {
  width: 100%;
  height: 1px;
}

body.explore-page .explore-grid-section,
body.subscriptions-page .subscriptions-feed {
  padding: 0 var(--explore-edge-padding);
}

body.explore-page .world-card,
body.subscriptions-page .world-card {
  position: relative;
}

body.explore-page .world-live-badge,
body.subscriptions-page .world-live-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(220,48,60,0.95);
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 6px 16px rgba(180,40,50,0.35);
  z-index: 2;
  pointer-events: none;
}

body.explore-page .world-card .gen-menu,
body.subscriptions-page .world-card .gen-menu {
  position: absolute;
  right: 12px;
  bottom: 12px;
  margin-left: 0;
}

body.explore-page .world-body,
body.subscriptions-page .world-body {
  display: flex;
  flex-direction: column;
  padding: 12px 14px 14px;
}

body.explore-page .world-identity,
body.subscriptions-page .world-identity {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

body.explore-page .creator-avatar-link,
body.subscriptions-page .creator-avatar-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

body.explore-page .creator-avatar.is-live::after,
body.subscriptions-page .creator-avatar.is-live::after {
  font-size: 7px;
  padding: 1px 4px;
  letter-spacing: 0.06em;
  bottom: 0;
}

body.explore-page .world-text,
body.subscriptions-page .world-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

body.explore-page .world-title,
body.subscriptions-page .world-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.explore-page .world-creator,
body.subscriptions-page .world-creator {
  margin: 0;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  letter-spacing: 0.1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.explore-page .world-meta,
body.subscriptions-page .world-meta {
  margin-top: 0;
  padding-right: 36px;
}

@media (max-width: 640px) {
  body.explore-page .dashboard-main,
  body.subscriptions-page .dashboard-main {
    padding: 12px 0 60px;
  }

  body.explore-page,
  body.subscriptions-page {
    --explore-edge-padding: 14px;
  }

  body.explore-page .gen-search-input,
  body.subscriptions-page .gen-search-input {
    max-width: 240px;
  }

  .explore-controls-row {
    align-items: stretch;
  }

  .chip-row {
    width: 100%;
  }
}
