*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  font-family: 'Relaway', sans-serif;
  color: #7b809a;
  background-color: #02040e;
  min-height: 100vh;
  --rss-panel-peek: 56px;
  --stocks-panel-peek: 56px;
}

body {
  min-height: 100vh;
  background-color: #060607;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 100px 100px;
  background-position: 0 0;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  color: #7b809a;
}

.page {
  width: min(1440px, 100%);
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  position: relative;
  margin: 0 auto;
}

.glass {
  background: transparent;
  backdrop-filter: blur(1px);
  border-radius: 16px;
  border: none;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  font-size: 0.95rem;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 10;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
}

.top-bar.is-scrolled {
  background: #0f0f1291;
  backdrop-filter: blur(8px);
}

.brand-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #7b809a;
  font-weight: 500;
}

.brand {
  letter-spacing: 0.08em;
  font-weight: bold;
  color: #ccd1ea;
}

.status:not(.status--mobile) {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ccd1ea;
  font-weight: 400;
  font-size: 1.2rem;
  pointer-events: none;
}

.status--mobile {
  display: none;
  position: static !important;
  margin: 0;
  width: min(90%, 520px);
  text-align: center;
  color: #ccd1ea;
  font-weight: 400;
  font-size: 1.2rem;
  transform: none !important;
  top: auto !important;
  left: auto !important;
  pointer-events: auto;
}

.meta-controls {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: #7b809a;
}

.mobile-menu-toggle {
  display: none; /* Hidden on desktop */
}

.timestamp {
  min-width: 150px;
  text-align: right;
  color: #7b809a;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(204, 209, 234, 0.12);
}

.toggle-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.toggle-icon--filled {
  background: #ccd1ea;
}

.toggle-icon svg {
  width: 16px;
  height: 16px;
}

.toggle-icon--filled svg path {
  stroke: #02040e;
}

.scene-wrapper {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
  padding: 64px 16px 16px; /* top padding for top bar, 16px bottom gap */
}

@media (min-width: 1200px) {
  .scene-wrapper {
    padding: 64px 16px 16px;
  }
}

#bubble-root {
  position: relative;
  width: 100%;
  max-width: 350px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  --bubble-hover-scale: 1;
  --bubble-hover-x: 0px;
  --bubble-hover-y: 0px;
  --bubble-translate-x: 0px;
  --bubble-translate-y: 0px;
  --bubble-tilt-x: 0deg;
  --bubble-tilt-y: 0deg;
}

/*
#bubble-root:hover {
  --bubble-hover-scale: 1.02;
  --bubble-hover-x: 12px;
  --bubble-hover-y: -10px;
}
*/

.bubble-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform:
    translate3d(
      calc(var(--bubble-hover-x, 0px) + var(--bubble-translate-x, 0px)),
      calc(var(--bubble-hover-y, 0px) + var(--bubble-translate-y, 0px)),
      0)
    rotateX(var(--bubble-tilt-y, 0deg))
    rotateY(var(--bubble-tilt-x, 0deg))
    scale(var(--bubble-hover-scale, 1));
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

.bubble-wrapper.is-hovering {
  transform: translate3d(0, 0, 0);
}

.bubble-panel,
.rss-panel,
.stocks-panel {
  position: relative;
  width: min(450px, 100%);
  flex: 1 1 0;
  max-height: calc(100vh - 80px); /* full height minus top bar (60px) + scene top padding (64px) + bottom gap (16px) */
  min-height: 0;
  background: rgba(123, 128, 154, 0.08);
  backdrop-filter: blur(1px);
  border-radius: 4px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 18px 28px 60px rgba(0, 0, 0, 0.35);
  z-index: 15;
}

.bubble-panel__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bubble-panel__player {
  margin-top: auto;
  padding-top: 16px;
}

.bubble-panel__track {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 4px;
  overflow: hidden;
}

/* Mobile music player - shown below stocks on mobile */
.mobile-music-player {
  display: none; /* Hidden on desktop */
  padding: 16px;
  background: rgba(123, 128, 154, 0.08);
  backdrop-filter: blur(1px);
  border-radius: 4px;
  margin-top: 16px;
}

.mobile-music-player__track {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 4px;
  overflow: hidden;
}

.mobile-music-player__track::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(123, 128, 154, 0.08);
  z-index: 0;
}

.mobile-music-player__track iframe {
  display: block;
  position: relative;
  z-index: 1;
  background: transparent !important;
  width: 100%;
}

.bubble-panel__track::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(123, 128, 154, 0.08);
  z-index: 0;
}

.bubble-panel__track iframe {
  display: block;
  position: relative;
  z-index: 1;
  background: transparent !important;
  width: 100%;
}

.bubble-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.bubble-panel__title {
  display: inline-flex;
  flex-direction: row;
  gap: 8px;
  align-items: baseline;
  font-size: 0.92rem;
  font-weight: 500;
  color: #7b809a;
}

.bubble-panel__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(204, 209, 234, 0.6);
}

.bubble-panel__icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(204, 209, 234, 0.6);
  flex-shrink: 0;
}

.bubble-panel__icon svg {
  width: 100%;
  height: 100%;
}

.stocks-panel__handle {
  position: absolute;
  top: -16px;
  right: 24px;
  z-index: 16;
}

.rss-panel__handle {
  position: absolute;
  top: -16px;
  left: 24px;
}

.panel-handle {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(123, 128, 154, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, transform 0.3s ease;
}

.panel-handle:hover,
.panel-handle:focus-visible {
  background: rgba(123, 128, 154, 0.36);
  transform: translateY(-1px) scale(1.02);
  outline: none;
}

.panel-handle:active {
  transform: translateY(0) scale(0.98);
}

.stocks-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stocks-panel__title {
  display: inline-flex;
  flex-direction: row;
  gap: 8px;
  align-items: baseline;
  font-size: 0.92rem;
  font-weight: 500;
  color: #7b809a;
}

.stocks-panel__source {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(204, 209, 234, 0.6);
  text-transform: none;
}

.stocks-panel__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(204, 209, 234, 0.6);
}

.stocks-panel__icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(204, 209, 234, 0.6);
  flex-shrink: 0;
}

.stocks-panel__icon svg {
  width: 100%;
  height: 100%;
}

.stocks-panel__widget {
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 4px;
  overflow-y: auto;
  display: flex;
}

.stocks-panel__widget .elfsight-app-8f005903-f3e4-4167-b5a3-48847651d7b0,
.stocks-panel__widget .elfsight-app-8f005903-f3e4-4167-b5a3-48847651d7b0 > div {
  width: 100%;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  color: rgba(204, 209, 234, 0.68) !important;
}

.stocks-panel__widget .elfsight-app-8f005903-f3e4-4167-b5a3-48847651d7b0 [style*="border-width"],
.stocks-panel__widget .elfsight-app-8f005903-f3e4-4167-b5a3-48847651d7b0 [style*="border-color"],
.stocks-panel__widget .elfsight-app-8f005903-f3e4-4167-b5a3-48847651d7b0 [style*="border-radius"],
.stocks-panel__widget .elfsight-app-8f005903-f3e4-4167-b5a3-48847651d7b0 [style*="box-shadow"],
.stocks-panel__widget .elfsight-app-8f005903-f3e4-4167-b5a3-48847651d7b0 [style*="background"] {
  border: 0 !important;
  border-width: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.stocks-panel__widget .elfsight-app-8f005903-f3e4-4167-b5a3-48847651d7b0 li {
  box-shadow: inset 0 0 0 1px rgba(123, 128, 154, 0.12) !important;
  border-radius: 4px !important;
  background: transparent !important;
  margin-bottom: 12px !important;
  transition: background 0.2s ease, transform 0.25s ease !important;
}

.stocks-panel__widget .elfsight-app-8f005903-f3e4-4167-b5a3-48847651d7b0 li:hover {
  background: rgba(123, 128, 154, 0.2) !important;
  transform: translateY(-2px) !important;
}

.stocks-panel__widget .stx-stock-list__item {
  background: transparent !important;
  box-shadow: inset 0 0 0 1px rgba(123, 128, 154, 0.12) !important;
  border-radius: 4px !important;
  margin-bottom: 12px !important;
  transition: background 0.2s ease, transform 0.25s ease !important;
}

.stocks-panel__widget .stx-stock-list__item:hover {
  background: rgba(123, 128, 154, 0.2) !important;
  transform: translateY(-2px) !important;
}

.bubble-blob {
  position: relative;
  width: 100%;
  height: 100%;
  --bubble-radius: 54% 46% 58% 42% / 60% 42% 58% 40%;
  border-radius: var(--bubble-radius);
  background:
    radial-gradient(62% 74% at 44% 74%, rgba(48, 112, 196, 0.08) 0%, rgba(48, 112, 196, 0.22) 58%, rgba(23, 54, 108, 0.34) 86%, rgba(12, 24, 42, 0.44) 100%),
    radial-gradient(60% 68% at 62% 28%, rgba(218, 140, 220, 0.12) 0%, rgba(218, 140, 220, 0.22) 48%, rgba(110, 48, 128, 0.26) 80%, rgba(28, 14, 36, 0.14) 100%),
    radial-gradient(72% 80% at 54% 62%, rgba(22, 34, 60, 0.08) 0%, rgba(22, 34, 60, 0.28) 70%, rgba(18, 26, 46, 0.38) 100%),
    radial-gradient(84% 92% at 50% 58%, rgba(12, 18, 30, 0.18) 40%, rgba(12, 18, 30, 0.44) 72%, rgba(6, 10, 20, 0.68) 92%, rgba(3, 6, 14, 0.82) 100%);
  background-color: transparent;
  overflow: visible;
  will-change: border-radius;
  box-shadow: 0 42px 140px rgba(4, 6, 14, 0.52);
  transition: border-radius 1.2s cubic-bezier(0.32, 0.04, 0.3, 1);
  animation: bubble-hum 7.5s ease-in-out infinite;
}

.bubble-blob::after {
  content: '';
  position: absolute;
  inset: -6%;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(120, 194, 255, 0.08), rgba(64, 116, 255, 0.02) 58%, rgba(0, 0, 0, 0) 75%);
  mix-blend-mode: screen;
  z-index: 1;
}

.bubble-blob.is-hovering {
  transition-duration: 0.85s;
  background:
    radial-gradient(62% 74% at 44% 74%, rgba(48, 112, 196, 0.08) 0%, rgba(48, 112, 196, 0.22) 58%, rgba(23, 54, 108, 0.34) 86%, rgba(12, 24, 42, 0.44) 100%),
    radial-gradient(60% 68% at 62% 28%, rgba(218, 140, 220, 0.12) 0%, rgba(218, 140, 220, 0.28) 48%, rgba(110, 48, 128, 0.26) 80%, rgba(28, 14, 36, 0.14) 100%),
    radial-gradient(72% 80% at 54% 62%, rgba(22, 34, 60, 0.08) 0%, rgba(22, 34, 60, 0.28) 70%, rgba(18, 26, 46, 0.38) 100%),
    radial-gradient(84% 92% at 50% 58%, rgba(12, 18, 30, 0.18) 40%, rgba(12, 18, 30, 0.44) 72%, rgba(6, 10, 20, 0.68) 92%, rgba(3, 6, 14, 0.82) 100%);
}

.bubble-highlight {
  position: absolute;
  pointer-events: none;
  border-radius: inherit;
  mix-blend-mode: screen;
}


.bubble-highlight--top {
  --highlight-top-inset: 5% 29% 80% 35%;
  inset: var(--highlight-top-inset);
  border-radius: 52% 48% 60% 40% / 58% 42% 56% 44%;
  background: radial-gradient(ellipse at 40% 18%, rgba(255, 255, 255, 0.48) 0%, rgba(255, 255, 255, 0.16) 42%, rgba(255, 255, 255, 0) 78%);
  filter: blur(20px);
  opacity: 0.7;
  z-index: 3;
  transition: inset 0.85s cubic-bezier(0.26, 0.16, 0.32, 1), filter 0.85s ease, opacity 0.85s ease;
}

.bubble-highlight--bottom {
  --highlight-bottom-inset: 82% 32% 4% 34%;
  inset: var(--highlight-bottom-inset);
  border-radius: 60% 40% 44% 56% / 58% 52% 48% 42%;
  background: radial-gradient(ellipse at 50% 72%, rgba(78, 216, 255, 0.26) 0%, rgba(78, 216, 255, 0.08) 45%, rgba(78, 216, 255, 0) 100%),
    radial-gradient(ellipse at 28% 36%, rgba(179, 142, 255, 0.12) 0%, rgba(179, 142, 255, 0) 100%);
  filter: blur(22px);
  opacity: 0.56;
  z-index: 3;
  transform: translateY(12%);
  transition: inset 0.85s cubic-bezier(0.26, 0.16, 0.32, 1), filter 0.85s ease, opacity 0.85s ease, transform 0.9s ease;
}

.bubble-blob.is-hovering .bubble-highlight--top,
.bubble-blob.is-hovering .bubble-highlight--bottom {
  transition-duration: 0.75s;
}

@keyframes blob-breathe {
  0%, 100% {
    border-radius: 54% 46% 58% 42% / 60% 42% 58% 40%;
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    border-radius: 58% 42% 54% 46% / 56% 44% 60% 40%;
    transform: translate3d(0, -6px, 0) scale(1.015);
  }
}

.bottom-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 14px 28px;
  font-size: 0.9rem;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  transform: none;
  box-sizing: border-box;
  z-index: 10;
}

.footer-left {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #7b809a;
  flex: 1 1 auto;
  min-width: 0;
}

.footer-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: 4px;
  overflow: hidden;
  background: transparent;
  border: none;
  box-shadow: none;
  isolation: isolate;
}

.footer-track::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(123, 128, 154, 0.08);
  z-index: 0;
}

.footer-track iframe {
  display: block;
  position: relative;
  z-index: 1;
  background: transparent !important;
    width: 100%;
}

.footer-stocks {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 0;
}

.stocks-section {
  display: none;
}

.stocks-ticker--mobile {
  display: none;
}

.stocks-ticker {
  display: inline-flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  padding: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}

.about-footer {
  display: none;
}

.about-footer {
  display: none;
  justify-content: center;
  padding: 28px;
  margin-bottom: 24px;
}

.about-footer.has-content {
  display: flex;
}

.stocks-ticker .elfsight-app-8f005903-f3e4-4167-b5a3-48847651d7b0 {
  width: 100%;
}

.stocks-ticker .elfsight-app-8f005903-f3e4-4167-b5a3-48847651d7b0 > div {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  color: rgba(204, 209, 234, 0.68) !important;
}

.stocks-ticker .elfsight-app-8f005903-f3e4-4167-b5a3-48847651d7b0 [style*="border-width"],
.stocks-ticker .elfsight-app-8f005903-f3e4-4167-b5a3-48847651d7b0 [style*="border-color"],
.stocks-ticker .elfsight-app-8f005903-f3e4-4167-b5a3-48847651d7b0 [style*="border-radius"],
.stocks-ticker .elfsight-app-8f005903-f3e4-4167-b5a3-48847651d7b0 [style*="box-shadow"],
.stocks-ticker .elfsight-app-8f005903-f3e4-4167-b5a3-48847651d7b0 [style*="background"] {
  border: 0 !important;
  border-width: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

[class^="WidgetBackground__Container"],
[class*=" WidgetBackground__Container"],
[class^="es-widget-background-container"],
[class*=" es-widget-background-container"] {
  border: 0 !important;
  border-width: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

[class^="WidgetBackground__Wrapper"],
[class*=" WidgetBackground__Wrapper"],
[class^="es-widget-background-wrapper"],
[class*=" es-widget-background-wrapper"] {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.stocks-ticker .elfsight-app-8f005903-f3e4-4167-b5a3-48847651d7b0 > div * {
  color: rgba(204, 209, 234, 0.68) !important;
}

.stocks-ticker .elfsight-app-8f005903-f3e4-4167-b5a3-48847651d7b0 > div a {
  color: rgba(204, 209, 234, 0.72) !important;
}

.sparkle svg {
  width: 16px;
  height: 16px;
}

.sparkle {
  flex: 0 0 auto;
}

.about {
  color: #7b809a;
  text-decoration: none;
  transition: color 0.2s ease;
  flex: 0 0 auto;
}

.meta-controls .about {
  margin-left: 0;
}

.about:hover {
  color: #ccd1ea;
}

.about-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  overflow-y: auto;
}

.about-open .about-modal {
  display: block;
}

.about-modal[hidden] {
  display: none !important;
}

.about-page {
  min-height: 100vh;
  background: #0b0b0d;
  padding: 100px 24px 80px;
  color: #ccd1ea;
}

.about-page__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #7b809a;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s ease;
  font-family: inherit;
}

.about-page__back:hover,
.about-page__back:focus-visible {
  color: #ccd1ea;
  outline: none;
}

.about-page__back svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.about-page__content {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 32px;
  align-items: start;
}

.about-page__content > .about-page__back {
  justify-self: start;
  margin-bottom: 0;
}

.about-page__title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
  color: #ccd1ea;
  line-height: 1.2;
  text-align: left;
}

.about-page__text {
  display: grid;
  gap: 20px;
}

.about-page__text p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(204, 209, 234, 0.82);
}

.about-page__sources {
  margin-top: 8px;
}

.about-page__sources-title {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(204, 209, 234, 0.7);
}

.about-page__sources-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.about-page__sources-list li {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(204, 209, 234, 0.82);
}

@keyframes bubble-morph {
  0%, 100% {
    border-radius: 54% 46% 58% 42% / 60% 42% 58% 40%;
    transform: translate3d(0, 0, 0) scale(1);
  }
  25% {
    border-radius: 56% 44% 60% 40% / 58% 40% 60% 42%;
    transform: translate3d(-6px, -8px, 0) scale(1.008);
  }
  50% {
    border-radius: 53% 47% 61% 39% / 63% 37% 55% 45%;
    transform: translate3d(6px, 4px, 0) scale(0.996);
  }
  75% {
    border-radius: 59% 41% 55% 45% / 57% 43% 61% 39%;
    transform: translate3d(-5px, 5px, 0) scale(1.004);
  }
}

/* rss-panel inherits base panel styles above in three-panel layout */

.rss-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rss-panel__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #7b809a;
}

.rss-panel__title .rss-panel__status {
  margin-left: 8px;
}

.rss-panel__heading {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: baseline;
}

.rss-panel__link {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(204, 209, 234, 0.6);
  text-decoration: none;
}

.rss-panel__icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(204, 209, 234, 0.6); /* RSS orange color */
  flex-shrink: 0;
}

.rss-panel__icon svg {
  width: 100%;
  height: 100%;
}

.rss-panel__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rss-panel__actions button {
  appearance: none;
  border: none;
  background: rgba(123, 128, 154, 0.2);
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rss-panel__actions button:hover,
.rss-panel__actions button:focus-visible {
  background: rgba(123, 128, 154, 0.35);
  transform: translateY(-1px);
  outline: none;
}

.rss-panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(123, 128, 154, 0.4) transparent;
}

.rss-panel__status {
  font-size: 0.72rem;
  color: rgba(204, 209, 234, 0.6);
  margin-left: 8px;
  display: none;
}

.rss-panel__status:not([hidden]) {
  display: inline;
}

/* Skeleton loader styles */
.rss-skeleton {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rss-skeleton__card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: transparent;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(123, 128, 154, 0.12);
}

.rss-skeleton__thumb {
  width: 80px;
  height: 80px;
  background: rgba(123, 128, 154, 0.15);
  border-radius: 4px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.rss-skeleton__content {
  display: grid;
  gap: 6px;
}

.rss-skeleton__line {
  background: rgba(123, 128, 154, 0.15);
  border-radius: 4px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.rss-skeleton__line--source {
  height: 10px;
  width: 40%;
}

.rss-skeleton__line--title {
  height: 14px;
  width: 100%;
  margin-bottom: 2px;
}

.rss-skeleton__line--title:nth-of-type(2) {
  width: 90%;
}

.rss-skeleton__line--title:nth-of-type(3) {
  width: 75%;
  margin-bottom: 0;
}

.rss-skeleton__line--time {
  height: 10px;
  width: 30%;
}

@keyframes skeleton-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes rss-spin {
  to {
    transform: rotate(360deg);
  }
}

.rss-panel__list::-webkit-scrollbar {
  width: 6px;
}

.rss-panel__list::-webkit-scrollbar-thumb {
  background: rgba(123, 128, 154, 0.4);
  border-radius: 999px;
}

.rss-card {
  display: grid;
  grid-template-columns: 1fr 80px;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid rgba(123, 128, 154, 0.12);
  min-width: 0; /* Allow grid item to shrink */
}

.rss-card:first-child {
  border-top: none;
  padding-top: 0;
}

.rss-card:last-child {
  padding-bottom: 0;
}

.rss-card__thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  filter: saturate(1.1) contrast(1.05);
  order: 2; /* Move image to the right */
}

.rss-card__thumb--placeholder {
  background: linear-gradient(135deg, rgba(123, 128, 154, 0.25), rgba(123, 128, 154, 0.12));
  box-shadow: inset 0 0 0 1px rgba(123, 128, 154, 0.25);
}

.rss-card__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #ccd1ea;
  align-content: start;
  min-width: 0; /* Allow flex item to shrink below content size */
  order: 1; /* Keep meta content on the left */
}

.rss-card__title {
  color: #ccd1ea;
  text-decoration: none;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  min-width: 0; /* Allow truncation */
  word-break: break-word; /* Break long words if needed */
  transition: color 0.2s ease; /* Smooth color transition on hover */
}

.rss-card__title:hover,
.rss-card__title:focus-visible {
  color: #ffffff;
  text-decoration: none; /* No underline on hover */
  outline: none;
}

.rss-card__meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(204, 209, 234, 0.6);
  line-height: 1.4;
  white-space: nowrap; /* Prevent wrapping - keep on single line */
  flex-shrink: 0; /* Don't allow metadata row to shrink */
}

.rss-card__time {
  font-size: 14px;
  color: rgba(204, 209, 234, 0.6);
  margin: 0;
}

.rss-card__source {
  font-size: 14px;
  color: rgba(204, 209, 234, 0.6);
  margin: 0;
}

.rss-panel__footer {
  margin-top: auto;
}

.rss-panel__cta {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(122, 164, 255, 0.45), rgba(96, 228, 232, 0.45));
  color: #0e1527;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rss-panel__cta:hover,
.rss-panel__cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(110, 170, 255, 0.35);
  outline: none;
}

.rss-open .rss-toggle {
  background: rgba(123, 128, 154, 0.32);
  color: #ffffff;
}

.rss-panel__handle {
  position: absolute;
  top: -16px;
  right: 24px;
}

.rss-panel__handle-icon {
  width: 14px;
  height: 14px;
  position: relative;
}

.rss-panel__handle-icon::before,
.rss-panel__handle-icon::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 2px;
  background: #ccd1ea;
  border-radius: 999px;
  left: 3px;
  transition: transform 0.3s ease;
}

.rss-panel__handle-icon::before {
  top: 4px;
  transform: rotate(-45deg);
}

.rss-panel__handle-icon::after {
  bottom: 4px;
  transform: rotate(45deg);
}

.rss-open .rss-panel__handle-icon::before {
  transform: rotate(45deg);
}

.rss-open .rss-panel__handle-icon::after {
  transform: rotate(-45deg);
}

.stocks-panel__handle-icon {
  width: 14px;
  height: 14px;
  position: relative;
}

.stocks-panel__handle-icon::before,
.stocks-panel__handle-icon::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 2px;
  background: #ccd1ea;
  border-radius: 999px;
  right: 3px;
  transition: transform 0.3s ease;
}

.stocks-panel__handle-icon::before {
  top: 4px;
  transform: rotate(45deg);
}

.stocks-panel__handle-icon::after {
  bottom: 4px;
  transform: rotate(-45deg);
}

.stocks-open .stocks-panel__handle-icon::before {
  transform: rotate(-45deg);
}

.stocks-open .stocks-panel__handle-icon::after {
  transform: rotate(45deg);
}

.rss-panel__status {
  font-size: 0.82rem;
  color: rgba(204, 209, 234, 0.7);
  padding-right: 6px;
}

.rss-panel__error {
  margin-top: auto;
  font-size: 0.85rem;
  color: rgba(255, 138, 148, 0.85);
  background: rgba(255, 77, 98, 0.12);
  padding: 12px 14px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rss-panel__error[hidden] {
  display: none;
}

.rss-panel__retry {
  appearance: none;
  border: none;
  background: rgba(204, 209, 234, 0.25);
  color: #ccd1ea;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.78rem;
  transition: background 0.2s ease;
}

.rss-panel__retry:hover,
.rss-panel__retry:focus-visible {
  background: rgba(204, 209, 234, 0.4);
  outline: none;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
  display: none;
  appearance: none;
  border: none;
  background: transparent;
  padding: 8px;
  cursor: pointer;
  color: #7b809a;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible {
  color: #ccd1ea;
  outline: none;
}

.mobile-menu-toggle__icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
  height: 16px;
}

.mobile-menu-toggle__icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__icon span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__icon span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__icon span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  pointer-events: none;
}

.mobile-menu.is-open {
  display: block;
  pointer-events: auto;
}

.mobile-menu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu.is-open .mobile-menu__overlay {
  opacity: 1;
}

.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: #0f0f12;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.mobile-menu.is-open .mobile-menu__panel {
  transform: translateX(0);
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(123, 128, 154, 0.12);
}

.mobile-menu__title {
  font-size: 0.95rem;
  font-weight: 500;
  color: #7b809a;
  letter-spacing: 0.08em;
}

.mobile-menu__close {
  appearance: none;
  border: none;
  background: transparent;
  padding: 8px;
  cursor: pointer;
  color: #7b809a;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu__close:hover,
.mobile-menu__close:focus-visible {
  color: #ccd1ea;
  outline: none;
}

.mobile-menu__close svg {
  width: 20px;
  height: 20px;
}

.mobile-menu__content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.mobile-menu__link {
  display: block;
  padding: 16px 0;
  color: #7b809a;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s ease;
  border-bottom: 1px solid rgba(123, 128, 154, 0.08);
}

.mobile-menu__link:hover,
.mobile-menu__link:focus-visible {
  color: #ccd1ea;
  outline: none;
}

.mobile-menu__link:active {
  color: #ccd1ea;
}

.mobile-menu__link:last-child {
  border-bottom: none;
}

@media (max-width: 960px) {
  .top-bar {
    z-index: 100; /* Higher z-index on mobile to be above panels */
    padding: 18px 20px; /* Slightly less padding on mobile */
  }

  #bubble-root {
    max-width: 300px; /* 40px smaller than desktop (400px - 100px) */
  }

  .meta-controls {
    gap: 12px; /* Reduce gap on mobile */
    margin-left: auto; /* Push to the right */
  }

  .meta-controls .about {
    display: none; /* Hide About link in top bar on mobile */
  }

  .mobile-menu-toggle {
    display: block; /* Show hamburger on mobile */
  }

  .page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 70px;
    padding-bottom: 180px;
  }

  .scene-wrapper {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 16px 16px;
    gap: 16px;
  }

  .bubble-panel,
  .rss-panel,
  .stocks-panel {
    width: 100%;
    max-width: 100%;
    flex: none;
    order: 0;
    min-height: auto; /* Allow natural height on mobile */
  }

  .bubble-panel {
    order: 1;
  }

  .rss-panel {
    order: 2;
    max-height: none; /* Allow full expansion on mobile */
  }

  .rss-panel__list {
    overflow-y: visible; /* Disable scrolling on mobile */
    max-height: none;
  }

  .stocks-panel {
    order: 3;
    display: flex !important;
    max-height: none;
  }

  .stocks-panel__widget {
    overflow-y: visible;
    max-height: none;
  }

  /* Show mobile music player below stocks on mobile */
  .mobile-music-player {
    display: block;
    order: 4; /* After stocks panel (order 3) */
    width: 100%;
    margin-top: 16px;
  }

  /* Hide bubble panel player on mobile (show mobile player instead) */
  .bubble-panel__player {
    display: none;
  }

  .top-bar {
    padding: 18px 20px; /* Slightly less padding on mobile */
  }

  .meta-controls {
    gap: 12px; /* Reduce gap on mobile */
    margin-left: auto; /* Push to the right */
  }

  .meta-controls .about {
    display: none; /* Hide About link in top bar on mobile */
  }

  .mobile-menu-toggle {
    display: block; /* Show hamburger on mobile */
  }

  .top-bar .status {
    display: none !important;
  }

  p.status--mobile {
    display: block !important;
    position: static !important;
    margin: 0 auto 24px !important;
    padding: 0 16px;
    width: 100%;
    max-width: 520px;
    text-align: center;
    font-size: 1.1rem;
    color: #ccd1ea !important;
    font-weight: 400;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    pointer-events: auto;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1;
    order: 0;
  }

  .rss-panel {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    transform: none;
    max-width: none;
    margin: 0;
  }

  .rss-panel__handle {
    display: none;
  }

  .rss-panel__actions {
    justify-content: flex-end;
  }

  .rss-panel__close {
    display: none !important;
  }

  .rss-panel__close {
    display: none;
  }

  .stocks-section {
    display: none !important;
  }

  .stocks-ticker--mobile {
    display: none !important;
    border-radius: 8px;
    background: rgba(123, 128, 154, 0.08);
    padding: 8px 16px;
  }

  .stocks-ticker--desktop,
  .sparkle {
    display: none;
  }

  .bottom-bar {
    position: static;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    justify-content: center;
    padding: 16px;
    flex-direction: column;
    gap: 16px;
    order: 4;
  }

  .bottom-bar .about {
    display: none;
  }

  .footer-left {
    width: 100%;
    justify-content: center;
    position: relative;
    padding: 0;
  }

  .footer-left::before {
    content: none;
  }

  .footer-track {
    width: 100%;
  }

  .about-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 0 48px;
    text-align: center;
    order: 5;
  }

  .about-footer .about {
    margin-left: 0;
    text-align: center;
  }

  .about-page {
    padding: 80px 16px 60px;
  }

  .about-page__back {
    margin-bottom: 32px;
    font-size: 0.85rem;
  }

  .about-page__content {
    gap: 24px;
  }

  .about-page__title {
    font-size: 1.5rem;
  }

  .about-page__text p {
    font-size: 1rem;
  }

  .about-page__sources-title {
    font-size: 0.95rem;
  }

  .about-page__sources-list li {
    font-size: 0.95rem;
  }
}

@keyframes bubble-hum {
  0% {
    box-shadow: 0 38px 120px rgba(2, 4, 12, 0.46), 0 0 40px rgba(92, 152, 255, 0.08);
  }
  45% {
    box-shadow: 0 46px 155px rgba(3, 6, 16, 0.52), 0 0 60px rgba(124, 210, 255, 0.14);
  }
  70% {
    box-shadow: 0 42px 140px rgba(4, 6, 14, 0.5), 0 0 48px rgba(86, 170, 255, 0.11);
  }
  100% {
    box-shadow: 0 38px 120px rgba(2, 4, 12, 0.46), 0 0 40px rgba(92, 152, 255, 0.08);
  }
}


.stocks-ticker .elfsight-app-8f005903-f3e4-4167-b5a3-48847651d7b0 .es-ticker-value--positive,
.stocks-ticker .elfsight-app-8f005903-f3e4-4167-b5a3-48847651d7b0 [class*="positive"] {
  color: rgba(156, 228, 180, 0.82) !important;
}

.stocks-ticker .elfsight-app-8f005903-f3e4-4167-b5a3-48847651d7b0 .es-ticker-value--negative,
.stocks-ticker .elfsight-app-8f005903-f3e4-4167-b5a3-48847651d7b0 [class*="negative"] {
  color: rgba(247, 149, 149, 0.82) !important;
}

