.shorts-shell {
  --shorts-gap: clamp(0.85rem, 1.45vw, 1.35rem);
  position: relative;
  margin-top: clamp(1.8rem, 4vw, 3.5rem);
}

.marquee > div {
  display: flex;
  width: max-content;
  min-width: max-content;
  animation: rockbot-marquee-loop 24s linear infinite;
  will-change: transform;
}

.marquee > div > .marquee-loop-group {
  flex: 0 0 auto;
  margin: 0;
  padding-right: 1.75rem;
  white-space: nowrap;
}

@keyframes rockbot-marquee-loop {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(var(--marquee-loop-distance, -50%), 0, 0);
  }
}

.hero-actions .platform-logo {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  object-fit: contain;
}

.hero-actions [data-platform="youtube-music"],
.hero-actions [data-platform="spotify"] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.hero-actions [data-platform="youtube-music"] {
  border-color: rgba(255, 72, 112, 0.52);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 28, 86, 0.22), transparent 38%),
    linear-gradient(135deg, rgba(9, 20, 54, 0.96), rgba(76, 23, 79, 0.94));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 12px 30px rgba(255, 30, 89, 0.13);
}

.hero-actions [data-platform="spotify"] {
  border-color: rgba(30, 215, 96, 0.48);
  background:
    radial-gradient(circle at 12% 18%, rgba(30, 215, 96, 0.2), transparent 38%),
    linear-gradient(135deg, rgba(5, 25, 44, 0.96), rgba(18, 70, 67, 0.94));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 12px 30px rgba(30, 215, 96, 0.11);
}

.hero-actions [data-platform="youtube-music"]:hover {
  border-color: rgba(255, 92, 132, 0.82);
  box-shadow: 0 16px 34px rgba(255, 30, 89, 0.2);
}

.hero-actions [data-platform="spotify"]:hover {
  border-color: rgba(30, 215, 96, 0.78);
  box-shadow: 0 16px 34px rgba(30, 215, 96, 0.17);
}

.hero-title-lockup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(11rem, 11.5vw, 13rem);
  align-items: center;
  gap: clamp(0.9rem, 1.5vw, 1.5rem);
  min-width: 0;
}

.hero-title-lockup h1 {
  font-size: clamp(4.2rem, 7.5vw, 8rem);
}

.hero-title-logo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  isolation: isolate;
}

.hero-title-logo-frame::before,
.hero-title-logo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-title-logo-frame::before {
  z-index: 0;
  background: #4ce5ed66;
  transform: translate(-4.5%, -4%) rotate(-1.2deg);
}

.hero-title-logo-frame::after {
  z-index: 1;
  background: #ff5b37;
  transform: translate(5%, 4.5%) rotate(1deg);
}

.hero-title-logo {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  box-shadow: 0 0 3.4rem rgba(255, 111, 36, 0.24), 0 1.2rem 3rem rgba(0, 0, 0, 0.42);
}

@media (min-width: 48.0625rem) {
  .hero {
    isolation: isolate;
    background-color: #071027;
    background-image:
      radial-gradient(circle at 76% 18%, rgba(89, 42, 128, 0.62), transparent 34%),
      radial-gradient(circle at 64% 78%, rgba(255, 72, 42, 0.34), transparent 40%),
      linear-gradient(112deg, #020611 0%, #071333 42%, #291641 70%, #5b1c3d 100%);
  }

  .hero::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: -5%;
    pointer-events: none;
    background-image:
      linear-gradient(90deg, rgba(2, 5, 16, 0.84) 0%, rgba(6, 12, 34, 0.54) 46%, rgba(36, 11, 48, 0.32) 100%),
      url("/rockbot-reference-image.jpg");
    background-position: center;
    background-size: cover;
    filter: blur(32px) saturate(1.18);
    opacity: 0.46;
    transform: scale(1.08);
  }

  .hero-title-lockup {
    position: relative;
    isolation: isolate;
  }

  .hero-title-lockup::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 50%;
    right: clamp(-4.5rem, -3.5vw, -2rem);
    width: clamp(16rem, 19vw, 23rem);
    aspect-ratio: 1;
    pointer-events: none;
    background: url("/rockbot-skull-logo.png") center / contain no-repeat;
    filter: blur(42px) saturate(1.22);
    opacity: 0.34;
    transform: translateY(-50%) scale(1.08);
  }

  .hero-title-lockup h1,
  .hero-title-logo-frame {
    position: relative;
    z-index: 1;
  }

  .hero-title-logo {
    border: 0;
    box-shadow: none;
    filter: saturate(1.08) contrast(1.02) drop-shadow(0 0 1.6rem rgba(255, 81, 46, 0.2));
  }

  .hero-actions {
    width: max-content;
    max-width: 100%;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .hero-actions .primary-cta,
  .hero-actions .secondary-cta {
    min-width: 0;
    padding-inline: 16px;
    gap: 12px;
    white-space: nowrap;
    letter-spacing: 0.1em;
    font-size: 0.66rem;
  }
}

.platform-grid a .platform-card-logo {
  width: 1.8rem;
  height: 1.8rem;
  justify-self: start;
  object-fit: contain;
}

.channel-console {
  --solar-scale: 1;
  --sun-play-size: 116px;
  --side-control-offset: 112px;
  --shuffle-control-offset: 182px;
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 24%, rgba(76, 229, 237, 0.1), transparent 26%),
    radial-gradient(circle at 82% 72%, rgba(255, 91, 55, 0.12), transparent 29%),
    radial-gradient(circle at 54% 46%, rgba(169, 92, 255, 0.13), transparent 34%),
    linear-gradient(145deg, rgba(3, 8, 25, 0.95), rgba(7, 27, 36, 0.93));
}

.channel-console::before,
.channel-console::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.channel-console::before {
  inset: 0;
  opacity: 0.68;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.86) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(76, 229, 237, 0.76) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(255, 180, 112, 0.7) 0 1.2px, transparent 1.8px);
  background-position: 7px 11px, 31px 47px, 63px 19px;
  background-size: 73px 79px, 97px 103px, 137px 131px;
  mask-image: radial-gradient(circle at center, #000 18%, rgba(0, 0, 0, 0.8) 58%, transparent 100%);
}

.channel-console::after {
  inset: 16%;
  border-radius: 50%;
  opacity: 0.58;
  background: conic-gradient(
    from 20deg,
    transparent,
    rgba(76, 229, 237, 0.14),
    transparent 31%,
    rgba(169, 92, 255, 0.16) 54%,
    transparent 73%,
    rgba(255, 91, 55, 0.15),
    transparent
  );
  filter: blur(28px);
  animation: rockbot-nebula 22s linear infinite;
}

.channel-console .orbit {
  z-index: 1;
  width: min(78%, 430px);
  opacity: 0.82;
  border-color: rgba(76, 229, 237, 0.34);
  background:
    radial-gradient(circle at 76% 18%, #a95cff 0 5px, rgba(169, 92, 255, 0.3) 6px 10px, transparent 11px),
    radial-gradient(circle at 28% 78%, #f2ff48 0 3px, rgba(242, 255, 72, 0.25) 4px 8px, transparent 9px),
    radial-gradient(circle at 86% 64%, #ff9a55 0 6px, rgba(255, 91, 55, 0.24) 7px 12px, transparent 13px),
    radial-gradient(circle at 42% 8%, #4ce5ed 0 2px, rgba(76, 229, 237, 0.24) 3px 7px, transparent 8px);
  box-shadow:
    inset 0 0 34px rgba(76, 229, 237, 0.05),
    0 0 0 42px rgba(255, 91, 55, 0.08),
    0 0 0 84px rgba(169, 92, 255, 0.055),
    0 0 76px rgba(76, 229, 237, 0.12);
}

.channel-console .orbit::before {
  border-color: rgba(255, 91, 55, 0.3);
  box-shadow: 0 0 24px rgba(255, 91, 55, 0.08);
}

.channel-console .orbit::after {
  border-color: rgba(169, 92, 255, 0.32);
  background: radial-gradient(circle, rgba(255, 91, 55, 0.22), rgba(169, 92, 255, 0.1) 34%, transparent 68%);
  box-shadow: 0 0 50px rgba(255, 91, 55, 0.13);
}

.channel-console .orbit span,
.channel-console .orbit i {
  animation: rockbot-planet-pulse 2.8s ease-in-out infinite alternate;
}

.channel-console .orbit span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 7px;
  width: 58px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(76, 229, 237, 0.78));
  transform: translateY(-50%) rotate(-28deg);
  transform-origin: right center;
  filter: blur(0.3px);
}

.channel-console .orbit i::before {
  content: "";
  position: absolute;
  inset: -5px -9px;
  border: 1px solid rgba(242, 255, 72, 0.58);
  border-radius: 50%;
  transform: rotate(-25deg);
}

.channel-console .channel-controls {
  z-index: 3;
}

.channel-console .play-button.large {
  position: relative;
  width: var(--sun-play-size);
  height: var(--sun-play-size);
  color: #05050a;
  border: 0;
  background: transparent url("/assets/planets/sun.png") center / contain no-repeat;
  box-shadow: none;
  filter:
    drop-shadow(0 0 18px rgba(255, 116, 45, 0.9))
    drop-shadow(0 0 42px rgba(255, 80, 33, 0.45));
}

.channel-console .play-button.large::before {
  display: none;
}

.channel-console .play-button.large:focus-visible {
  outline: 3px solid #4ce5ed;
  outline-offset: 5px;
  filter:
    drop-shadow(0 0 22px rgba(255, 116, 45, 1))
    drop-shadow(0 0 10px rgba(76, 229, 237, 0.9));
}

.channel-console .icon-button {
  background: rgba(7, 12, 31, 0.64);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 18px rgba(76, 229, 237, 0.05), 0 8px 22px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

@keyframes rockbot-nebula {
  to {
    transform: rotate(360deg) scale(1.08);
  }
}

@keyframes rockbot-planet-pulse {
  to {
    filter: brightness(1.35) saturate(1.2);
  }
}

@keyframes rockbot-signal-pulse {
  0% {
    opacity: 0.72;
    transform: scale(0.82);
  }

  72%,
  100% {
    opacity: 0;
    transform: scale(1.28);
  }
}

@media (min-width: 561px) {
  .chart-list button {
    grid-template-columns: 40px 54px minmax(0, 1fr) 118px 32px;
  }

  .play-count {
    font-variant-numeric: tabular-nums;
  }
}

/* V7.1: keep combined stream totals readable at a glance. */
#top-tunes .play-count {
  color: #4ce5ed;
  font-size: clamp(0.88rem, 0.82vw, 1.02rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  line-height: 1.15;
  white-space: nowrap;
}

@media (max-width: 35rem) {
  #top-tunes .play-count {
    font-size: 0.78rem;
  }
}

@media (max-width: 23.75rem) {
  #top-tunes .play-count {
    grid-column: 3;
    font-size: 0.73rem;
    text-align: left;
  }
}

.shorts-toolbar,
.shorts-footer-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.shorts-toolbar {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(7, 7, 10, 0.74);
  backdrop-filter: blur(18px);
}

.shorts-feed-status {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shorts-feed-status strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shorts-live-dot {
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #f2ff48;
  box-shadow: 0 0 18px rgba(242, 255, 72, 0.74);
}

.shorts-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.shorts-toolbar-actions button,
.short-card-controls button,
.short-card-controls a {
  min-height: 2.35rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.56);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease,
    transform 180ms ease;
}

.shorts-toolbar-actions button {
  padding: 0.45rem 0.78rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shorts-toolbar-actions button:hover,
.shorts-toolbar-actions button:focus-visible,
.short-card-controls button:hover,
.short-card-controls button:focus-visible,
.short-card-controls a:hover,
.short-card-controls a:focus-visible {
  border-color: #f2ff48;
  color: #f2ff48;
  outline: none;
}

.shorts-toolbar-actions button:active,
.short-card-controls button:active,
.short-card-controls a:active {
  transform: scale(0.96);
}

.shorts-viewport {
  position: relative;
  overflow: hidden;
  padding: 0.35rem 0 0.8rem;
  scrollbar-width: none;
  touch-action: pan-y;
  overscroll-behavior-x: contain;
  cursor: grab;
  user-select: none;
  mask-image: linear-gradient(to right, transparent, #000 1.5%, #000 98.5%, transparent);
}

.shorts-viewport.is-dragging {
  cursor: grabbing;
}

.shorts-viewport::-webkit-scrollbar {
  display: none;
}

.shorts-viewport:focus-visible {
  outline: 2px solid #f2ff48;
  outline-offset: 5px;
}

.shorts-track {
  display: flex;
  align-items: stretch;
  gap: var(--shorts-gap);
  width: max-content;
  min-width: 100%;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.shorts-viewport.is-dragging .shorts-track {
  will-change: transform;
}

.short-card {
  position: relative;
  flex: 0 0 clamp(13.75rem, 20.5vw, 22rem);
  width: clamp(13.75rem, 20.5vw, 22rem);
  min-width: 13.75rem;
  max-width: 22rem;
  color: #fff;
}

.short-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.75rem;
  background: #07070a;
  box-shadow: 0 1.1rem 3rem rgba(0, 0, 0, 0.33);
  isolation: isolate;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.short-card:hover .short-frame,
.short-card.hover-held .short-frame,
.short-card.held .short-frame {
  transform: translateY(-0.3rem);
  border-color: rgba(242, 255, 72, 0.72);
  box-shadow: 0 1.4rem 3.7rem rgba(0, 0, 0, 0.48), 0 0 2rem rgba(242, 255, 72, 0.1);
}

.short-poster,
.short-player-mount,
.short-player-mount iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.short-poster {
  z-index: 0;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}

.short-player-mount {
  z-index: 1;
  background: transparent;
  opacity: 0;
  transition: opacity 300ms ease;
}

.short-card.player-ready .short-player-mount {
  opacity: 1;
}

.short-frame::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.18) 58%, rgba(0, 0, 0, 0.93) 100%);
}

.short-hold {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  color: transparent;
  background: transparent;
  cursor: pointer;
}

.short-hold::after {
  content: "Hold to watch";
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.68);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translate(-50%, -42%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.short-card:hover .short-hold::after,
.short-hold:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.short-card.held .short-hold::after {
  display: none;
}

.short-hold:focus-visible {
  outline: 2px solid #f2ff48;
  outline-offset: -4px;
}

.short-card-copy {
  position: absolute;
  z-index: 4;
  right: 1rem;
  bottom: 4.35rem;
  left: 1rem;
  pointer-events: none;
}

.short-label {
  display: block;
  margin-bottom: 0.35rem;
  color: #f2ff48;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.short-card-copy h3 {
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font-size: clamp(1rem, 1.45vw, 1.35rem);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.short-card-controls {
  position: absolute;
  z-index: 5;
  right: 0.75rem;
  bottom: 0.75rem;
  left: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.short-card-controls button,
.short-card-controls a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.65rem;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.short-sound {
  background: #f2ff48 !important;
  color: #07070a !important;
  border-color: #f2ff48 !important;
}

.short-card.sound-on .short-sound {
  background: #fff !important;
  border-color: #fff !important;
}

.short-open {
  margin-left: auto;
}

.shorts-footer-line {
  margin-top: 0.85rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  line-height: 1.5;
}

.shorts-footer-line b {
  color: rgba(255, 255, 255, 0.86);
}

.shorts-footer-line a {
  flex: 0 0 auto;
  margin-left: auto;
  color: #f2ff48;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-decoration: none;
}

@media (max-width: 72rem) {
  .short-card {
    flex-basis: clamp(14.5rem, 29vw, 20rem);
    width: clamp(14.5rem, 29vw, 20rem);
  }
}

@media (max-width: 48rem) {
  html,
  body,
  #root {
    max-width: 100%;
    overflow-x: clip;
  }

  .site-nav,
  .hero,
  .hero-grid,
  .hero-copy,
  .hero-art,
  .content-wrap,
  .top-stage,
  .tune-library,
  .visuals-section,
  .platform-section,
  .platform-grid,
  .channel-shell,
  footer {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .shorts-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-title-lockup {
    grid-template-columns: minmax(0, 1fr) clamp(7.5rem, 29vw, 10rem);
    gap: clamp(0.65rem, 2.5vw, 1rem);
  }

  .hero-title-lockup h1 {
    font-size: clamp(2.75rem, 12.8vw, 4.4rem);
  }

  .shorts-feed-status strong {
    white-space: normal;
  }

  .shorts-toolbar-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .shorts-toolbar-actions button {
    flex: 0 0 auto;
  }

  .shorts-viewport {
    width: 100%;
    margin: 0;
    padding-right: 0;
    mask-image: linear-gradient(to right, #000 0%, #000 94%, transparent 100%);
  }

  .channel-console .orbit {
    width: min(72vw, 320px);
    box-shadow:
      inset 0 0 28px rgba(76, 229, 237, 0.05),
      0 0 0 28px rgba(255, 91, 55, 0.075),
      0 0 0 56px rgba(169, 92, 255, 0.05),
      0 0 58px rgba(76, 229, 237, 0.1);
  }

  .short-card {
    flex-basis: min(76vw, 19.5rem);
    width: min(76vw, 19.5rem);
    min-width: min(76vw, 19.5rem);
  }

  .short-hold::after {
    content: "Tap to watch";
    opacity: 0.88;
  }

  .shorts-footer-line {
    align-items: flex-end;
    flex-direction: row;
  }
}

@media (max-width: 24rem) {
  .hero-title-lockup {
    grid-template-columns: minmax(0, 1fr) clamp(6.5rem, 30vw, 7.25rem);
  }

  .hero-title-lockup h1 {
    font-size: clamp(2.35rem, 12vw, 2.8rem);
  }

  .short-card {
    flex-basis: min(82vw, 18rem);
    width: min(82vw, 18rem);
    min-width: min(82vw, 18rem);
  }

  .shorts-toolbar-actions button {
    padding-inline: 0.65rem;
    font-size: 0.62rem;
  }

  .short-card-copy {
    right: 0.8rem;
    left: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .short-frame,
  .short-player-mount,
  .short-hold::after,
  .shorts-toolbar-actions button,
  .short-card-controls button,
  .short-card-controls a {
    transition: none;
  }
}

/* NASA-imagery solar-system player. Orbital periods are deliberately
   logarithmically compressed so all eight planets can remain visible. */
.channel-console {
  min-height: 630px;
}

.channel-console .orbit.astronomy-host {
  z-index: 1;
  width: min(96%, 630px);
  aspect-ratio: 1;
  opacity: 1;
  border: 0;
  border-radius: 50%;
  background: none;
  box-shadow: none;
  animation: none !important;
  pointer-events: none;
  overflow: visible;
}

.channel-console .orbit.astronomy-host::before,
.channel-console .orbit.astronomy-host::after {
  display: none;
}

.channel-console .orbit.astronomy-host span {
  position: static;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  box-shadow: none;
  animation: none;
}

.astronomy-system {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 126, 52, 0.2) 0 7%, transparent 21%),
    radial-gradient(circle at 35% 42%, rgba(76, 229, 237, 0.06), transparent 42%);
  filter: drop-shadow(0 0 2.5rem rgba(76, 229, 237, 0.08));
}

.planet-orbit {
  position: absolute;
  z-index: 2;
  inset: var(--orbit-inset);
  border: 1px solid rgba(76, 229, 237, 0.19);
  border-radius: 50%;
  transform: rotate(var(--start-angle));
  animation: solar-orbit var(--orbit-duration) linear infinite;
}

.planet-orbit:nth-of-type(even) {
  border-color: rgba(255, 121, 68, 0.17);
}

.planet-anchor {
  position: absolute;
  top: 0;
  left: 50%;
  display: flex;
  align-items: center;
  transform: translate(-50%, -50%) rotate(calc(0deg - var(--start-angle)));
  animation: solar-counter-orbit var(--orbit-duration) linear infinite;
}

.planet-disc {
  width: calc(var(--planet-size) * var(--solar-scale));
  height: auto;
  aspect-ratio: auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  transform: rotate(var(--axial-tilt));
  background: transparent;
  box-shadow: none;
  filter: none;
}

.planet-disc-wide {
  width: calc(var(--planet-size) * 2.15 * var(--solar-scale));
  aspect-ratio: auto;
}

.planet-image {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: normal;
  filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.72));
}

.planet-label {
  display: none !important;
}

.channel-console .channel-controls {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: block;
  pointer-events: none;
}

.channel-console .channel-controls > button {
  position: absolute;
  top: 50%;
  pointer-events: auto;
  translate: -50% -50%;
}

.channel-console .channel-controls > button:nth-child(1) {
  left: calc(50% - var(--side-control-offset));
}

.channel-console .channel-controls > .play-button.large {
  left: 50%;
}

.channel-console .channel-controls > button:nth-child(3) {
  left: calc(50% + var(--side-control-offset));
}

.channel-console .channel-controls > .shuffle {
  left: calc(50% + var(--shuffle-control-offset));
  margin-left: 0;
}

@keyframes solar-orbit {
  to {
    transform: rotate(calc(var(--start-angle) - 360deg));
  }
}

/* Keep each planet's axial tilt stable while its orbit moves around the Sun. */
@keyframes solar-counter-orbit {
  to {
    transform: translate(-50%, -50%) rotate(calc(360deg - var(--start-angle)));
  }
}

@media (max-width: 61.25rem) {
  .channel-console {
    --solar-scale: 0.9;
    --sun-play-size: 104px;
    --side-control-offset: 101px;
    --shuffle-control-offset: 164px;
    min-height: 600px;
  }

  .channel-console .orbit.astronomy-host {
    width: min(94vw, 570px);
  }
}

@media (max-width: 35rem) {
  .channel-console {
    /* Keep the orbit field large, but shrink the planet cutouts so neighboring
       orbits remain visually distinct on narrow screens. */
    --solar-scale: 0.48;
    --sun-play-size: 81px;
    --side-control-offset: 82px;
    min-height: 455px;
  }

  .channel-console .orbit.astronomy-host {
    width: min(calc(100% - 2rem), 430px);
  }

  .channel-console .channel-controls > .shuffle {
    top: calc(50% + 82px);
    left: 50%;
  }

  .planet-label {
    display: none;
  }
}

@media (max-width: 23.75rem) {
  .channel-console {
    --solar-scale: 0.4;
    --sun-play-size: 72px;
    --side-control-offset: 74px;
  }

  .channel-console .channel-controls > .shuffle {
    top: calc(50% + 74px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .planet-orbit,
  .planet-anchor,
  .planet-image {
    animation-play-state: paused;
  }
}
