html {
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  width: 100%;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

.project-glow-frame {
  border-color: rgba(130, 116, 206, 0.6) !important;
  box-shadow:
    0 0 12px rgba(62, 52, 112, 0.45),
    0 0 30px rgba(62, 52, 112, 0.2);
  background: linear-gradient(120deg, rgba(41, 35, 72, 0.92), rgba(30, 25, 51, 0.9)) !important;
}

.with-sticky-header {
  margin-top: 0;
  padding-top: 0;
}

.protected-image-wrapper {
  position: relative;
}

.no-save-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.01);
  cursor: not-allowed;
}

.coming-soon-card .collection-info {
  display: none;
}

/* Mobile Navigation */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
  transform: translateX(0);
}

/* Enhanced touch targets for mobile */
@media (max-width: 768px) {

  /* Improve carousel scroll on mobile */
  #carousel {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  #carousel>div>div {
    scroll-snap-align: start;
  }

  /* Better touch targets */
  button,
  a {
    min-height: 44px;
  }
}

@media (max-width: 640px) {
  #carousel {
    overflow-x: hidden;
    scroll-snap-type: none;
    display: flex;
    justify-content: center;
  }

  #carousel>div {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
  }

  #carousel>div>div {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  /* Hide cards beyond 4th initially on mobile */
  #carousel>div>div:nth-child(n+5) {
    display: none;
  }

  #carousel>div>div.show-card {
    display: flex;
  }

  #scrollLeft,
  #scrollRight {
    display: none;
  }
}

/* News Ticker Animation */
@keyframes ticker-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

.news-ticker {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 100%;
  max-width: 320px;
  background: rgba(19, 16, 34, 0.9);
  backdrop-filter: blur(8px);
  border: 2px solid #3713ec;
  border-radius: 4px;
  overflow: hidden;
  z-index: 10;
  box-shadow: 0 0 12px rgba(55, 19, 236, 0.3);
}

.news-ticker-inner {
  display: inline-flex;
  padding-left: 100%;
  animation: ticker-scroll 30s linear infinite;
}

.news-ticker-inner:hover {
  animation-play-state: paused;
}

.news-ticker-content {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 6px 16px;
  white-space: nowrap;
}

.news-ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 13px;
}

.news-ticker-date {
  color: #3713ec;
  font-weight: 600;
}

.news-ticker-text {
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 640px) {
  .news-ticker {
    bottom: 12px;
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
  }
}

/* Smooth animations */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Audio Player Styles */
.audio-player.playing .audio-bar {
  animation: audio-wave 0.5s ease-in-out infinite alternate;
}

.audio-player.playing .audio-bar:nth-child(1) { animation-delay: 0s; }
.audio-player.playing .audio-bar:nth-child(2) { animation-delay: 0.1s; }
.audio-player.playing .audio-bar:nth-child(3) { animation-delay: 0.2s; }
.audio-player.playing .audio-bar:nth-child(4) { animation-delay: 0.05s; }
.audio-player.playing .audio-bar:nth-child(5) { animation-delay: 0.15s; }
.audio-player.playing .audio-bar:nth-child(6) { animation-delay: 0.25s; }
.audio-player.playing .audio-bar:nth-child(7) { animation-delay: 0.08s; }
.audio-player.playing .audio-bar:nth-child(8) { animation-delay: 0.18s; }
.audio-player.playing .audio-bar:nth-child(9) { animation-delay: 0.12s; }
.audio-player.playing .audio-bar:nth-child(10) { animation-delay: 0.22s; }
.audio-player.playing .audio-bar:nth-child(11) { animation-delay: 0.03s; }
.audio-player.playing .audio-bar:nth-child(12) { animation-delay: 0.13s; }

@keyframes audio-wave {
  0% {
    transform: scaleY(0.4);
    opacity: 0.6;
  }
  100% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.audio-player.playing .audio-bar {
  background-color: rgba(55, 19, 236, 1);
}