/* ================================================================
   GXXXN.LIVE — NIGHT DRIVE + CHANNEL SURFING V3
   ================================================================ */

#sceneV2Launcher,
#sceneV2Dialog,
.scene-pack-control,
.scene-switcher,
.theme-switcher,
#themeAutoButton {
  display: none !important;
}

.nightdrive-v3 {
  position: relative;
  z-index: 45;
  width: 100%;
  border-block: 1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(
      180deg,
      rgba(8,9,11,.98),
      rgba(4,5,7,.96)
    );
  color: #eee;
  box-shadow: 0 8px 25px rgba(0,0,0,.35);
}

.nd-roadbar {
  display: grid;
  grid-template-columns: minmax(120px,1fr) auto minmax(120px,1fr);
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 7px clamp(10px,3vw,30px);
}

.nd-location {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nd-location small {
  font-size: .54rem;
  font-weight: 900;
  letter-spacing: .13em;
  opacity: .58;
}

.nd-location strong {
  font: 800 .72rem/1 monospace;
}

.nd-tuner {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 5px;
}

.nd-tuner > button {
  border: 1px solid rgba(255,255,255,.18);
  background: #0d0e11;
  color: inherit;
  cursor: pointer;
}

#ndPrev,
#ndNext {
  width: 34px;
  font-size: .73rem;
}

.nd-current {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 8px;
  align-items: center;
  min-width: 210px;
  padding: 5px 12px;
  text-align: left;
}

.nd-current > span {
  grid-row: 1 / 3;
  padding-right: 8px;
  border-right: 1px solid rgba(255,255,255,.13);
  font: 900 1rem/1 monospace;
}

.nd-current strong {
  font-size: .72rem;
  line-height: 1;
  letter-spacing: .06em;
}

.nd-current small {
  font-size: .47rem;
  line-height: 1;
  letter-spacing: .09em;
  opacity: .55;
}

.nd-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.nd-actions button {
  min-height: 31px;
  padding: 0 9px;
  border: 1px solid rgba(255,255,255,.16);
  background: #0d0e11;
  color: inherit;
  font: 800 .52rem/1 monospace;
  letter-spacing: .055em;
  cursor: pointer;
}

#ndAuto[aria-pressed="true"] {
  border-color: currentColor;
  box-shadow: 0 0 9px rgba(255,255,255,.14);
}

.nd-strip-wrap {
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.07);
}

.nd-strip {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  padding: 5px max(10px,calc((100vw - 1280px)/2));
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.nd-channel {
  display: grid;
  flex: 0 0 108px;
  min-height: 45px;
  padding: 5px 7px;
  border: 1px solid transparent;
  background: rgba(255,255,255,.035);
  color: inherit;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: center;
}

.nd-channel > span {
  font: 800 .45rem monospace;
  opacity: .45;
}

.nd-channel strong {
  overflow: hidden;
  font-size: .57rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nd-channel small {
  overflow: hidden;
  font-size: .4rem;
  opacity: .45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nd-channel:hover {
  background: rgba(255,255,255,.07);
}

.nd-channel.active {
  border-color: currentColor;
  background: rgba(255,255,255,.1);
}

.nd-world-status {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 3px 8px 4px;
  border-top: 1px solid rgba(255,255,255,.05);
  font: 800 .44rem monospace;
  letter-spacing: .08em;
  opacity: .47;
}

/* ================================================================
   TUNING TRANSITION
   ================================================================ */

.nd-transition {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: grid;
  place-items: center;
  visibility: hidden;
  background: #050506;
  color: #fff;
  opacity: 0;
  pointer-events: none;
}

.nd-transition.active {
  visibility: visible;
  animation: ndTune .62s steps(2,end);
}

.nd-static {
  position: absolute;
  inset: 0;
  opacity: .23;
  background:
    repeating-radial-gradient(
      ellipse at center,
      #fff 0 1px,
      #000 1px 3px
    );
  background-size: 9px 5px;
  mix-blend-mode: screen;
  animation: ndStatic .08s steps(2,end) infinite;
}

.nd-transition-copy {
  position: relative;
  z-index: 2;
  min-width: min(420px,80vw);
  padding: 25px;
  border: 1px solid rgba(255,255,255,.75);
  background: rgba(0,0,0,.76);
  text-align: center;
  font-family: monospace;
}

.nd-transition-copy small,
.nd-transition-copy span {
  display: block;
  font-size: .55rem;
  letter-spacing: .15em;
  opacity: .65;
}

.nd-transition-copy strong {
  display: block;
  margin-top: 12px;
  font-size: .9rem;
}

.nd-transition-copy h2 {
  margin: 4px 0 11px;
  font: 900 clamp(1.8rem,7vw,4.5rem)/.9 sans-serif;
}

/* ================================================================
   ENVIRONMENT
   ================================================================ */

.nd-environment {
  position: fixed;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.nd-env-layer {
  position: absolute;
}

/* THE BLADE */

body[data-gxxxn-channel="aurora-blade"] .nightdrive-v3 {
  border-color: rgba(0,210,255,.25);
  background:
    linear-gradient(
      180deg,
      rgba(5,12,18,.97),
      rgba(12,6,15,.97)
    );
}

body[data-gxxxn-channel="aurora-blade"] .nd-channel.active,
body[data-gxxxn-channel="aurora-blade"] #ndAuto[aria-pressed="true"] {
  color: #ff4b95;
  border-color: #ff3d88;
  box-shadow: 0 0 13px rgba(255,42,127,.23);
}

body[data-gxxxn-channel="aurora-blade"] .nd-env-a {
  inset: -20%;
  background:
    repeating-linear-gradient(
      105deg,
      transparent 0 17px,
      rgba(173,224,255,.06) 18px,
      transparent 20px 35px
    );
  animation: ndRain .9s linear infinite;
}

body[data-gxxxn-channel="aurora-blade"] .nd-env-b {
  left: -10%;
  right: -10%;
  bottom: -8%;
  height: 42vh;
  background:
    linear-gradient(
      100deg,
      rgba(0,209,255,.07),
      rgba(255,25,110,.18),
      rgba(255,180,39,.08),
      rgba(45,100,255,.15)
    );
  filter: blur(26px);
}

/* MAIN STAGE */

body[data-gxxxn-channel="strip-club"] .nightdrive-v3 {
  color: #f1d48d;
  border-color: #8d672a;
  background:
    linear-gradient(180deg,#16000f,#060004);
}

body[data-gxxxn-channel="strip-club"] .nd-channel.active {
  border-color: #e0b457;
  box-shadow: 0 0 14px rgba(224,180,87,.2);
}

body[data-gxxxn-channel="strip-club"] .nd-env-a {
  width: 35vw;
  height: 120vh;
  left: 10vw;
  top: -30vh;
  background:
    linear-gradient(
      165deg,
      rgba(255,224,160,.13),
      transparent 62%
    );
  clip-path: polygon(47% 0,53% 0,100% 100%,0 100%);
  animation: ndSpotA 8s ease-in-out infinite alternate;
}

body[data-gxxxn-channel="strip-club"] .nd-env-b {
  width: 35vw;
  height: 120vh;
  right: 8vw;
  top: -30vh;
  background:
    linear-gradient(
      195deg,
      rgba(230,42,180,.13),
      transparent 62%
    );
  clip-path: polygon(47% 0,53% 0,100% 100%,0 100%);
  animation: ndSpotB 9s ease-in-out infinite alternate;
}

/* BRAINROT */

body[data-gxxxn-channel="gooner"] .nightdrive-v3 {
  color: #ff89db;
  background:
    linear-gradient(180deg,#24001c,#090008);
}

body[data-gxxxn-channel="gooner"] .nd-channel.active {
  border-color: #ff32b2;
  background: rgba(255,38,174,.13);
  box-shadow: 0 0 14px rgba(255,38,174,.3);
}

/* MINDFUCK 69 */

body[data-gxxxn-channel="mkultra"] .nightdrive-v3 {
  color: #d4ff2c;
  background:
    linear-gradient(180deg,#210037,#07000c);
}

body[data-gxxxn-channel="mkultra"] .nd-current {
  box-shadow:
    2px 2px 0 #ff29cb,
    -2px -2px 0 #20e9ff;
}

body[data-gxxxn-channel="mkultra"] .nd-channel.active {
  color: #d2ff25;
  border-color: #d2ff25;
}

body[data-gxxxn-channel="mkultra"] .nd-env-a {
  width: 70vmax;
  height: 70vmax;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      rgba(202,255,0,.06) 0 12deg,
      rgba(255,28,203,.055) 12deg 24deg,
      transparent 24deg 36deg
    );
  animation: ndHypno 34s linear infinite;
}

/* VHS */

body[data-gxxxn-channel="vhs80"] .nightdrive-v3 {
  color: #76f4ff;
  background: #0b0221;
  box-shadow: 0 5px 0 #fa2aaa;
}

body[data-gxxxn-channel="vhs90"] .nightdrive-v3 {
  color: #d3bbd1;
  background: #211c21;
  box-shadow: 0 5px 0 #080708;
}

/* DVD */

body[data-gxxxn-channel="dvd00"] .nightdrive-v3 {
  color: #e7f5ff;
  background:
    linear-gradient(#375f8f,#08162b);
}

body[data-gxxxn-channel="dvd00"] .nd-current,
body[data-gxxxn-channel="dvd00"] .nd-actions button {
  border-radius: 999px;
  background:
    linear-gradient(#416c9e,#0c2340);
}

/* MAGIC FINGERS */

body[data-gxxxn-channel="motel60"] .nightdrive-v3 {
  color: #f0d5a0;
  background: #634129;
  border-color: #b78338;
  font-family: Georgia,serif;
}

/* ================================================================
   NO SLEEP — lifestyle world
   ================================================================ */

.nd-nosleep-hud {
  display: none;
}

body[data-gxxxn-channel="spun"] {
  background: #080806 !important;
}

body[data-gxxxn-channel="spun"] .nightdrive-v3 {
  color: #e4d5ad;
  background:
    linear-gradient(
      180deg,
      #19160d,
      #080806
    );
  border-color: #6e5c22;
}

body[data-gxxxn-channel="spun"] .nd-channel.active {
  border-color: #b39a3e;
  box-shadow: 4px 4px 0 #000;
}

body[data-gxxxn-channel="spun"] .nd-current {
  transform: rotate(-.3deg);
  border-color: #88722c;
  box-shadow: 4px 4px 0 #020201;
}

body[data-gxxxn-channel="spun"] .nd-nosleep-hud {
  position: fixed;
  right: 18px;
  bottom: 16px;
  display: grid;
  min-width: 150px;
  padding: 9px 11px;
  border: 1px solid rgba(207,177,73,.4);
  background: rgba(8,8,5,.78);
  color: #d8c998;
  font-family: monospace;
  transform: rotate(.45deg);
  box-shadow: 5px 5px 0 #000;
}

.nd-nosleep-hud small {
  font-size: .46rem;
  letter-spacing: .12em;
  opacity: .55;
}

.nd-nosleep-hud strong {
  margin: 2px 0 5px;
  font-size: 1rem;
}

.nd-nosleep-hud span {
  font-size: .48rem;
  line-height: 1.35;
}

/* APARTMENT */

body[data-gxxxn-channel="spun"][data-no-sleep-phase="apartment"] .nd-env-a {
  inset: 0;
  background:
    radial-gradient(
      circle at 72% 28%,
      rgba(230,194,91,.1),
      transparent 18%
    ),
    linear-gradient(
      110deg,
      rgba(111,83,30,.05),
      transparent 40%
    );
}

/* GAS STATION */

body[data-gxxxn-channel="spun"][data-no-sleep-phase="gas-station"] .nd-env-a {
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(138,185,150,.075),
      transparent 30%
    ),
    radial-gradient(
      ellipse at 50% 8%,
      rgba(219,255,226,.09),
      transparent 26%
    );
}

/* CAR */

body[data-gxxxn-channel="spun"][data-no-sleep-phase="car"] .nd-env-a {
  inset: 0;
  background:
    radial-gradient(
      circle at 22% 78%,
      rgba(36,120,180,.08),
      transparent 16%
    ),
    radial-gradient(
      circle at 77% 74%,
      rgba(191,62,34,.08),
      transparent 13%
    );
}

body[data-gxxxn-channel="spun"][data-no-sleep-phase="car"] .nd-env-b {
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 9vh;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(218,184,63,.13),
      transparent
    );
  filter: blur(12px);
}

/* MOTEL / SUNRISE */

body[data-gxxxn-channel="spun"][data-no-sleep-phase="motel"] .nd-env-a {
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(181,111,51,.09),
      transparent 35%
    ),
    radial-gradient(
      ellipse at 50% 0,
      rgba(228,166,75,.1),
      transparent 30%
    );
}

/* NIGHT DRIVE */

body[data-gxxxn-channel="truckstop"] .nightdrive-v3 {
  color: #d6bd74;
  background:
    linear-gradient(180deg,#1c2022,#090a0b);
}

body[data-gxxxn-channel="truckstop"] .nd-env-a {
  left: 49%;
  bottom: 0;
  width: 2%;
  height: 70vh;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(235,192,57,.22) 0 35px,
      transparent 35px 70px
    );
  transform-origin: bottom;
  transform: perspective(500px) rotateX(55deg);
}

/* ================================================================
   MOBILE
   ================================================================ */

@media (max-width: 760px) {
  .nd-roadbar {
    grid-template-columns: 1fr auto;
    gap: 7px;
  }

  .nd-location {
    display: none;
  }

  .nd-tuner {
    justify-content: flex-start;
  }

  .nd-current {
    min-width: 175px;
  }

  .nd-current > span {
    font-size: .82rem;
  }

  .nd-actions {
    gap: 3px;
  }

  .nd-actions button {
    padding-inline: 6px;
    font-size: .46rem;
  }

  .nd-channel {
    flex-basis: 96px;
  }

  .nd-world-status {
    gap: 9px;
  }

  body[data-gxxxn-channel="spun"] .nd-nosleep-hud {
    right: 8px;
    bottom: 8px;
    min-width: 120px;
  }
}

@media (max-width: 470px) {
  .nd-roadbar {
    padding-inline: 6px;
  }

  #ndPrev,
  #ndNext {
    width: 27px;
  }

  .nd-current {
    min-width: 145px;
    padding-inline: 7px;
  }

  .nd-current small {
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #ndRandom {
    display: none;
  }
}

/* ================================================================
   MOTION SAFETY
   ================================================================ */

@media (prefers-reduced-motion: reduce) {
  .nd-env-layer,
  .nd-static,
  .nd-transition,
  body[data-gxxxn-channel] .video-card {
    animation: none !important;
    transition: none !important;
  }

  .nd-transition.active {
    opacity: 1;
  }
}

@keyframes ndTune {
  0%   { opacity: 0; }
  15%  { opacity: 1; }
  68%  { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes ndStatic {
  from { transform: translate(0,0); }
  to   { transform: translate(-7px,4px); }
}

@keyframes ndRain {
  from { transform: translate3d(0,-25px,0); }
  to   { transform: translate3d(-14px,28px,0); }
}

@keyframes ndHypno {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes ndSpotA {
  from { transform: rotate(-5deg); }
  to   { transform: rotate(7deg); }
}

@keyframes ndSpotB {
  from { transform: rotate(6deg); }
  to   { transform: rotate(-6deg); }
}

/* ================================================================
   COMPACT NIGHT DRIVE TUNER
   ================================================================ */

.nightdrive-v3 {
  box-shadow: 0 4px 12px rgba(0,0,0,.28);
}

.nd-roadbar {
  grid-template-columns: minmax(90px,.8fr) auto minmax(90px,.8fr);
  min-height: 40px;
  gap: 7px;
  padding: 4px clamp(8px,2vw,18px);
}

.nd-location {
  gap: 1px;
}

.nd-location small {
  font-size: .44rem;
  letter-spacing: .1em;
}

.nd-location strong {
  font-size: .58rem;
}

.nd-tuner {
  gap: 3px;
}

#ndPrev,
#ndNext {
  width: 25px;
  min-height: 29px;
  padding: 0;
  font-size: .58rem;
}

.nd-current {
  min-width: 160px;
  min-height: 29px;
  padding: 3px 7px;
  column-gap: 6px;
}

.nd-current > span {
  padding-right: 6px;
  font-size: .72rem;
}

.nd-current strong {
  font-size: .58rem;
}

.nd-current small {
  font-size: .37rem;
}

.nd-actions {
  gap: 3px;
}

.nd-actions button {
  min-height: 27px;
  padding: 0 6px;
  font-size: .43rem;
}

.nd-strip {
  gap: 2px;
  padding-top: 3px;
  padding-bottom: 3px;
}

.nd-channel {
  flex-basis: 78px;
  min-height: 32px;
  padding: 3px 5px;
}

.nd-channel > span {
  font-size: .36rem;
}

.nd-channel strong {
  font-size: .47rem;
}

.nd-channel small {
  font-size: .32rem;
}

.nd-world-status {
  gap: 12px;
  padding: 2px 6px;
  font-size: .34rem;
}

/* Make the environment badge less intrusive */
.scene-v2-badge {
  margin-bottom: .3rem !important;
  padding: .16rem .3rem !important;
  font-size: .43rem !important;
}

/* Less giant scene lettering inside the hero */
body[data-gxxxn-channel] .hero-sign h1,
body[data-gxxxn-channel] #sceneTitle {
  font-size: clamp(2rem, 7vw, 5rem) !important;
}

/* Compact mobile tuner */
@media (max-width: 760px) {
  .nd-roadbar {
    min-height: 36px;
    padding: 3px 5px;
  }

  .nd-current {
    min-width: 128px;
    min-height: 27px;
  }

  .nd-current > span {
    font-size: .62rem;
  }

  .nd-current strong {
    font-size: .5rem;
  }

  .nd-current small {
    display: none;
  }

  #ndPrev,
  #ndNext {
    width: 23px;
    min-height: 27px;
  }

  .nd-actions button {
    min-height: 25px;
    padding-inline: 5px;
  }

  .nd-channel {
    flex-basis: 70px;
    min-height: 29px;
  }

  .nd-channel small {
    display: none;
  }

  .nd-world-status {
    display: none;
  }
}

@media (max-width: 470px) {
  .nd-current {
    min-width: 112px;
  }

  .nd-strip {
    padding-block: 2px;
  }

  .nd-channel {
    flex-basis: 64px;
  }
}

/* ================================================================
   MICRO NIGHT DRIVE UI
   ================================================================ */

.nightdrive-v3 {
  min-height: 0 !important;
  border-width: 0 0 1px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.22) !important;
}

.nd-roadbar {
  display: flex !important;
  justify-content: center !important;
  min-height: 26px !important;
  height: 26px !important;
  gap: 3px !important;
  padding: 2px 6px !important;
}

.nd-location {
  display: none !important;
}

.nd-tuner {
  gap: 2px !important;
}

#ndPrev,
#ndNext {
  width: 20px !important;
  min-height: 21px !important;
  height: 21px !important;
  padding: 0 !important;
  border-radius: 2px !important;
  font-size: .48rem !important;
}

.nd-current {
  display: flex !important;
  align-items: center !important;
  min-width: 112px !important;
  min-height: 21px !important;
  height: 21px !important;
  gap: 4px !important;
  padding: 1px 5px !important;
}

.nd-current > span {
  display: inline !important;
  grid-row: auto !important;
  padding: 0 4px 0 0 !important;
  border-right: 1px solid rgba(255,255,255,.16) !important;
  font-size: .5rem !important;
  line-height: 1 !important;
}

.nd-current strong {
  font-size: .47rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.nd-current small {
  display: none !important;
}

.nd-actions {
  gap: 2px !important;
}

.nd-actions button {
  min-height: 21px !important;
  height: 21px !important;
  padding: 0 5px !important;
  font-size: .37rem !important;
  border-radius: 2px !important;
}

#ndRandom {
  width: auto !important;
}

/* Tiny channel station strip */
.nd-strip-wrap {
  border-top: 0 !important;
  max-height: 18px !important;
}

.nd-strip {
  justify-content: center;
  gap: 1px !important;
  min-height: 18px !important;
  padding: 1px 4px !important;
}

.nd-channel {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 31px !important;
  min-height: 15px !important;
  height: 15px !important;
  padding: 1px 3px !important;
}

.nd-channel > span {
  font-size: .3rem !important;
  line-height: 1 !important;
}

.nd-channel strong,
.nd-channel small {
  display: none !important;
}

.nd-channel.active {
  min-width: 48px !important;
}

.nd-channel.active > span::after {
  content: " " attr(data-name);
}

/* Remove extra third tuner/status row */
.nd-world-status {
  display: none !important;
}

/* ================================================================
   MICRO FEED COUNTER
   ================================================================ */

#feed.feed-head {
  min-height: 0 !important;
  padding-top: .45rem !important;
  padding-bottom: .35rem !important;
  gap: .4rem !important;
}

#feed .eyebrow {
  margin-bottom: .1rem !important;
  font-size: .48rem !important;
  letter-spacing: .08em !important;
}

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

#resultsMeta,
.results-meta {
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  min-height: 18px !important;
  margin: 0 !important;
  padding: 2px 5px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 3px !important;
  background: rgba(0,0,0,.25) !important;
  font-size: .44rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  opacity: .65 !important;
}

/* Compact provider counter */
.source-control {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.source-control > span {
  font-size: .43rem !important;
  letter-spacing: .05em !important;
  opacity: .55 !important;
}

.source-control select {
  min-height: 22px !important;
  padding: 1px 18px 1px 5px !important;
  font-size: .5rem !important;
}

/* Keep the visual environments, not giant UI */
.scene-v2-badge {
  font-size: .35rem !important;
  padding: .1rem .22rem !important;
  margin-bottom: .15rem !important;
  opacity: .7 !important;
}

/* ================================================================
   MOBILE
   ================================================================ */

@media (max-width: 650px) {
  .nd-roadbar {
    height: 24px !important;
    min-height: 24px !important;
  }

  .nd-current {
    min-width: 96px !important;
  }

  .nd-actions button {
    padding-inline: 4px !important;
  }

  #ndRandom {
    display: none !important;
  }

  .nd-strip {
    justify-content: flex-start !important;
  }

  #feed.feed-head {
    padding-block: .3rem !important;
  }

  #resultsMeta,
  .results-meta {
    font-size: .38rem !important;
  }
}

/* ================================================================
   V3.1 — RESTORE TUNER + SHRINK SCENE HERO
   ================================================================ */

/* ------------------------------------------------
   RESTORE THE TUNER TO THE PREVIOUS COMPACT SIZE
   ------------------------------------------------ */

.nd-roadbar {
  display: grid !important;
  grid-template-columns: minmax(90px,.8fr) auto minmax(90px,.8fr) !important;
  align-items: center !important;
  min-height: 40px !important;
  height: auto !important;
  gap: 7px !important;
  padding: 4px clamp(8px,2vw,18px) !important;
}

.nd-location {
  display: flex !important;
  gap: 1px !important;
}

.nd-location small {
  font-size: .44rem !important;
}

.nd-location strong {
  font-size: .58rem !important;
}

.nd-tuner {
  gap: 3px !important;
}

#ndPrev,
#ndNext {
  width: 25px !important;
  min-height: 29px !important;
  height: auto !important;
  font-size: .58rem !important;
}

.nd-current {
  display: grid !important;
  grid-template-columns: auto auto !important;
  min-width: 160px !important;
  min-height: 29px !important;
  height: auto !important;
  gap: 0 !important;
  column-gap: 6px !important;
  padding: 3px 7px !important;
}

.nd-current > span {
  display: block !important;
  grid-row: 1 / 3 !important;
  padding-right: 6px !important;
  font-size: .72rem !important;
}

.nd-current strong {
  font-size: .58rem !important;
}

.nd-current small {
  display: block !important;
  font-size: .37rem !important;
}

.nd-actions button {
  min-height: 27px !important;
  height: auto !important;
  padding: 0 6px !important;
  font-size: .43rem !important;
}

.nd-strip-wrap {
  max-height: none !important;
}

.nd-strip {
  justify-content: center !important;
  gap: 2px !important;
  min-height: 0 !important;
  padding: 3px 4px !important;
}

.nd-channel {
  display: grid !important;
  flex: 0 0 78px !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 32px !important;
  height: auto !important;
  padding: 3px 5px !important;
}

.nd-channel > span {
  font-size: .36rem !important;
}

.nd-channel strong {
  display: block !important;
  font-size: .47rem !important;
}

.nd-channel small {
  display: block !important;
  font-size: .32rem !important;
}

.nd-channel.active {
  min-width: 0 !important;
}

.nd-world-status {
  display: flex !important;
  gap: 12px !important;
  padding: 2px 6px !important;
  font-size: .34rem !important;
}


/* ================================================================
   SHRINK THE GIANT SCENE/HERO BANNER
   ================================================================ */

body[data-gxxxn-channel] .hero {
  min-height: 0 !important;
  height: auto !important;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(220px, 310px) !important;

  align-items: center !important;

  gap: 14px !important;

  padding:
    14px
    clamp(12px, 2vw, 22px) !important;

  margin-top: 8px !important;
  margin-bottom: 10px !important;
}


/* Main left scene sign */

body[data-gxxxn-channel] .hero-sign {
  width: min(100%, 410px) !important;
  min-height: 0 !important;

  padding: 9px 12px !important;

  margin:
    0
    0
    8px !important;

  box-sizing: border-box !important;
}


/* tiny scene label above title */

body[data-gxxxn-channel] .scene-v2-badge {
  margin: 0 0 4px !important;

  padding:
    2px
    5px !important;

  font-size: .38rem !important;
  line-height: 1 !important;

  letter-spacing: .09em !important;
}


/* MK-ULTRA / THE BLADE / etc eyebrow */

body[data-gxxxn-channel] #sceneEyebrow {
  margin: 0 0 5px !important;

  font-size: .48rem !important;
  line-height: 1.15 !important;

  letter-spacing: .11em !important;
}


/* Small angled scene tag */

body[data-gxxxn-channel] #sceneKicker {
  margin-bottom: 2px !important;

  padding:
    3px
    7px !important;

  font-size: .58rem !important;
  line-height: 1 !important;
}


/* Main HYPNO LAB / THE BLADE / etc lettering */

body[data-gxxxn-channel] #sceneTitle,
body[data-gxxxn-channel] .hero-sign h1 {
  margin: 0 !important;

  font-size:
    clamp(2.15rem, 4.6vw, 4.5rem) !important;

  line-height: .78 !important;

  letter-spacing: -.045em !important;
}


/* SUBJECT READY / OPEN / VACANCY */

body[data-gxxxn-channel] #sceneOpen {
  display: inline-flex !important;

  min-width: 0 !important;

  margin:
    5px
    0
    0
    auto !important;

  padding:
    4px
    8px !important;

  font-size: .57rem !important;
  line-height: 1 !important;
}


/* Description should be a small caption, not another banner */

body[data-gxxxn-channel] #sceneHeroCopy {
  width: min(100%, 610px) !important;

  min-height: 0 !important;

  margin:
    7px
    0
    8px !important;

  padding:
    8px
    11px !important;

  font-size: .72rem !important;
  line-height: 1.4 !important;
}


/* Scene action buttons */

body[data-gxxxn-channel] .hero-actions {
  gap: 7px !important;

  margin-top: 5px !important;
}

body[data-gxxxn-channel] #exploreButton {
  min-height: 30px !important;

  padding:
    5px
    11px !important;

  font-size: .58rem !important;
}

body[data-gxxxn-channel] #sceneTextLink {
  font-size: .54rem !important;
}


/* ================================================================
   COUNTER INFO — TURN IT INTO A SMALL STATUS BOX
   ================================================================ */

body[data-gxxxn-channel] .hero :is(
  .status-card,
  .status-panel,
  .counter-card,
  .counter-panel,
  .hero-status
) {
  width: 100% !important;
  max-width: 310px !important;

  min-height: 0 !important;

  padding:
    9px
    10px !important;

  margin:
    0
    0
    0
    auto !important;

  box-sizing: border-box !important;
}


/* API mesh ready text */

body[data-gxxxn-channel] .hero :is(
  .status-card,
  .status-panel,
  .counter-card,
  .counter-panel,
  .hero-status
) h3 {
  margin:
    0
    0
    3px !important;

  font-size: .66rem !important;
}

body[data-gxxxn-channel] .hero :is(
  .status-card,
  .status-panel,
  .counter-card,
  .counter-panel,
  .hero-status
) p {
  margin:
    0
    0
    7px !important;

  font-size: .52rem !important;
}


/* Four little counter cells */

body[data-gxxxn-channel] .status-grid {
  display: grid !important;

  grid-template-columns:
    repeat(4, minmax(0,1fr)) !important;

  gap: 4px !important;

  margin-top: 6px !important;
}

body[data-gxxxn-channel] .status-grid > * {
  min-height: 0 !important;

  padding:
    5px
    6px !important;

  box-sizing: border-box !important;
}

body[data-gxxxn-channel] .status-grid strong {
  display: block !important;

  margin: 0 !important;

  font-size: .68rem !important;
  line-height: 1 !important;
}

body[data-gxxxn-channel] .status-grid span,
body[data-gxxxn-channel] .status-grid small {
  font-size: .38rem !important;
  line-height: 1.1 !important;
}


/* COUNTER INFO sticker */

body[data-gxxxn-channel] .hero :is(
  .status-card,
  .status-panel,
  .counter-card,
  .counter-panel,
  .hero-status
)::before {
  font-size: .37rem !important;

  padding:
    2px
    5px !important;
}


/* ================================================================
   FEED HEADER
   ================================================================ */

#feed.feed-head {
  padding:
    .3rem
    0 !important;

  min-height: 0 !important;
}

#feed #feedTitle {
  font-size:
    clamp(.9rem, 1.7vw, 1.15rem) !important;
}

#resultsMeta,
.results-meta {
  padding:
    2px
    5px !important;

  min-height: 17px !important;

  font-size: .4rem !important;
}


/* ================================================================
   MOBILE
   ================================================================ */

@media (max-width: 760px) {

  .nd-location {
    display: none !important;
  }

  .nd-roadbar {
    display: flex !important;
    justify-content: center !important;
    min-height: 34px !important;
  }

  .nd-current {
    min-width: 135px !important;
  }

  .nd-strip {
    justify-content: flex-start !important;
  }

  body[data-gxxxn-channel] .hero {
    display: block !important;

    padding:
      10px
      8px !important;
  }

  body[data-gxxxn-channel] .hero-sign {
    width: min(100%, 330px) !important;
  }

  body[data-gxxxn-channel] #sceneTitle,
  body[data-gxxxn-channel] .hero-sign h1 {
    font-size:
      clamp(2rem, 13vw, 3.5rem) !important;
  }

  body[data-gxxxn-channel] #sceneHeroCopy {
    padding:
      7px
      9px !important;

    font-size: .66rem !important;
  }

  body[data-gxxxn-channel] .hero :is(
    .status-card,
    .status-panel,
    .counter-card,
    .counter-panel,
    .hero-status
  ) {
    max-width: none !important;

    margin-top: 8px !important;
  }

  body[data-gxxxn-channel] .status-grid {
    grid-template-columns:
      repeat(4, 1fr) !important;
  }
}

/* ================================================================
   REMOVE BACKEND / COUNTER INFO FROM VISITOR UI
   ================================================================ */

body[data-gxxxn-channel] :is(
  .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;
}

/* Catch the old four-cell status block if it is standing alone */
body[data-gxxxn-channel] .hero > .status-grid {
  display: none !important;
}

/* Hero no longer reserves an entire right-hand column */
body[data-gxxxn-channel] .hero {
  display: block !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 10px 14px !important;
}

/* Keep scene content compact */
body[data-gxxxn-channel] .hero > :first-child,
body[data-gxxxn-channel] .hero-copy-wrap {
  width: min(100%, 720px) !important;
  max-width: 720px !important;
}

/* Scene sign */
body[data-gxxxn-channel] .hero-sign {
  width: min(100%, 360px) !important;
  min-height: 0 !important;
  margin-bottom: 6px !important;
  padding: 7px 10px !important;
}

/* HYPNO LAB / THE BLADE / etc */
body[data-gxxxn-channel] #sceneTitle,
body[data-gxxxn-channel] .hero-sign h1 {
  font-size: clamp(1.9rem, 4vw, 3.7rem) !important;
  line-height: .8 !important;
}

/* Description */
body[data-gxxxn-channel] #sceneHeroCopy {
  width: min(100%, 620px) !important;
  margin: 5px 0 7px !important;
  padding: 6px 9px !important;
  font-size: .68rem !important;
  line-height: 1.35 !important;
}

/* Buttons */
body[data-gxxxn-channel] .hero-actions {
  margin-top: 4px !important;
}

/* The useful visitor counter remains down by the actual feed */
#resultsMeta,
.results-meta {
  display: inline-flex !important;
  width: auto !important;
  padding: 2px 5px !important;
  font-size: .4rem !important;
  opacity: .65 !important;
}

@media (max-width: 700px) {
  body[data-gxxxn-channel] .hero {
    padding: 8px !important;
  }

  body[data-gxxxn-channel] .hero-sign {
    width: min(100%, 310px) !important;
  }
}

/* Tiny real feed counter in tuner */
.nd-feed-count {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 6px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.28);
  color: inherit;
  font: 800 .42rem/1 monospace;
  letter-spacing: .04em;
  white-space: nowrap;
  opacity: .68;
}

body[data-gxxxn-channel="aurora-blade"] .nd-feed-count {
  border-color: rgba(255,61,136,.28);
}

body[data-gxxxn-channel="mkultra"] .nd-feed-count {
  border-color: rgba(202,255,0,.35);
}

body[data-gxxxn-channel="strip-club"] .nd-feed-count {
  border-color: rgba(224,180,87,.3);
}

@media (max-width: 650px) {
  .nd-feed-count {
    padding-inline: 4px;
    font-size: .36rem;
  }
}

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