/* ================================================================
   GXXXN P0 UX
   Deeper worlds. Lighter interface.
   ================================================================ */

/* Do not resize the Night Drive tuner here. */

/* ------------------------------------------------
   REMOVE VISITOR-IRRELEVANT STATUS UI
   ------------------------------------------------ */

.status-card,
.status-panel,
.counter-card,
.counter-panel,
.counter-info,
.counter-info-card,
.counter-box,
.hero-status,
.api-status,
.api-card,
.system-status {
  display: none !important;
}

/* ------------------------------------------------
   REMOVE LARGE PRE-FEED COMMERCIAL BLOCKS
   Inline feed sponsorships can remain.
   ------------------------------------------------ */

.affiliate-strip-top,
.affiliate-market {
  display: none !important;
}

/* ------------------------------------------------
   HERO = SMALL WORLD BILLBOARD
   ------------------------------------------------ */

main > .hero,
body[data-gxxxn-channel] .hero {
  display: block !important;
  min-height: 0 !important;
  height: auto !important;
  margin-top: 5px !important;
  margin-bottom: 5px !important;
  padding: 6px 10px !important;
}

.hero-copy-wrap,
body[data-gxxxn-channel] .hero-copy-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  width: 100% !important;
  max-width: none !important;
  flex-wrap: wrap !important;
}

.hero-copy-wrap > .eyebrow {
  display: none !important;
}

.hero-sign,
body[data-gxxxn-channel] .hero-sign {
  display: flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  gap: 6px !important;

  width: auto !important;
  max-width: 340px !important;
  min-height: 0 !important;

  margin: 0 !important;
  padding: 4px 7px !important;
}

.scene-v2-badge {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
}

#sceneKicker {
  margin: 0 !important;
  padding: 2px 5px !important;
  font-size: .43rem !important;
  line-height: 1 !important;
}

#sceneTitle,
.hero-sign h1 {
  margin: 0 !important;
  font-size: clamp(1.3rem, 2.6vw, 2.25rem) !important;
  line-height: .76 !important;
  letter-spacing: -.035em !important;
}

#sceneOpen {
  margin: 0 !important;
  padding: 3px 5px !important;
  font-size: .42rem !important;
  line-height: 1 !important;
}

#sceneHeroCopy {
  flex: 1 1 280px !important;
  width: auto !important;
  max-width: 540px !important;
  min-height: 0 !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;

  font-size: .6rem !important;
  line-height: 1.28 !important;
  opacity: .72 !important;
}

.hero-actions {
  display: none !important;
}

/* ------------------------------------------------
   OLD CATEGORY SECTION IS REPLACED BY COMPACT RAIL
   ------------------------------------------------ */

.category-deck.ux-category-relocated {
  display: none !important;
}

.ux-compact-categories {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-top: 5px;
}

.ux-mini-label {
  flex: 0 0 auto;
  font: 800 .42rem/1 monospace;
  letter-spacing: .1em;
  opacity: .5;
}

.ux-compact-categories #categoryRail {
  display: flex !important;
  flex: 1 1 auto;
  gap: 4px !important;
  min-width: 0;
  overflow-x: auto;
  padding: 0 0 2px !important;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.ux-compact-categories #categoryRail > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

/* ------------------------------------------------
   DISCOVERY CONTROLS
   ------------------------------------------------ */

.controls {
  gap: 6px !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

#sortChips {
  gap: 4px !important;
}

#sortChips .chip {
  min-height: 25px !important;
  padding: 4px 7px !important;
  font-size: .54rem !important;
}

/* Provider source + long provider taxonomy are power-user UI. */

.ux-advanced {
  margin-left: auto;
  font-size: .52rem;
}

.ux-advanced > summary {
  cursor: pointer;
  padding: 4px 6px;
  border: 1px solid rgba(255,255,255,.13);
  opacity: .65;
  user-select: none;
}

.ux-advanced[open] > summary {
  opacity: 1;
}

.ux-advanced-body {
  display: grid;
  gap: 7px;
  margin-top: 5px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.3);
}

.ux-advanced .source-control {
  display: flex !important;
  align-items: center;
  gap: 6px;
}

.ux-advanced .source-control > span {
  font-size: .48rem !important;
}

.ux-advanced .provider-categories {
  margin: 0 !important;
}

/* ------------------------------------------------
   FEED HEAD
   ------------------------------------------------ */

#feed.feed-head {
  min-height: 0 !important;
  margin-top: 3px !important;
  padding-top: 5px !important;
  padding-bottom: 4px !important;
}

#feed .eyebrow {
  margin-bottom: 1px !important;
  font-size: .44rem !important;
}

#feedTitle {
  margin: 0 !important;
  font-size: clamp(.95rem, 1.7vw, 1.18rem) !important;
  line-height: 1 !important;
}

#resultsMeta,
.results-meta {
  min-height: 17px !important;
  width: auto !important;

  margin: 0 !important;
  padding: 2px 5px !important;

  border: 1px solid rgba(255,255,255,.1) !important;
  background: rgba(0,0,0,.22) !important;

  font-size: .39rem !important;
  line-height: 1 !important;
  opacity: .62 !important;
}

/* ------------------------------------------------
   ALL / STRAIGHT / GAY
   ------------------------------------------------ */

.orientation-switch {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0 !important;
}

.orientation-button {
  min-width: 0 !important;
}

#allModeButton {
  order: -1;
}

.orientation-button.active {
  position: relative;
  z-index: 1;
}

/* ------------------------------------------------
   REAL FEED COUNT IN TUNER
   ------------------------------------------------ */

.nd-feed-count {
  display: inline-flex;
  align-items: center;

  min-height: 27px;
  padding: 0 6px;

  border: 1px solid rgba(255,255,255,.11);
  background: rgba(0,0,0,.25);

  color: inherit;

  font: 800 .4rem/1 monospace;
  letter-spacing: .035em;
  white-space: nowrap;
  opacity: .62;
}

/* ------------------------------------------------
   MOBILE
   ------------------------------------------------ */

@media (max-width: 720px) {
  main > .hero,
  body[data-gxxxn-channel] .hero {
    padding: 4px 6px !important;
  }

  .hero-sign,
  body[data-gxxxn-channel] .hero-sign {
    max-width: 260px !important;
    padding: 3px 5px !important;
  }

  #sceneTitle,
  .hero-sign h1 {
    font-size: clamp(1.15rem, 6.5vw, 1.75rem) !important;
  }

  #sceneHeroCopy {
    display: none !important;
  }

  .ux-compact-categories {
    margin-top: 3px;
  }

  .ux-mini-label {
    display: none;
  }

  .ux-advanced {
    margin-left: 0;
  }

  .nd-feed-count {
    padding-inline: 4px;
    font-size: .34rem;
  }
}

@media (max-width: 440px) {
  .nd-feed-count {
    display: none;
  }
}
