@import url("https://fonts.cdnfonts.com/css/pp-neue-montreal");

:root {
  --font-primary: "PP Neue Montreal", sans-serif;
  --text-color: rgba(245, 245, 245, 0.9);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
  background-color: #fff;
}

body {
  font-family: var(--font-primary);
  background-color: #fff;
  color: #000;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  overflow-x: hidden;
  width: 100%;
}

.scroll-container {
  position: relative;
  background-color: #fff;
}

.end-section {
  font-size: 2rem;
  height: 100vh;
  position: relative;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fin {
  transform: rotate(90deg);
  position: sticky;
  top: 50vh;
  color: #000;
}

.fixed-section {
  height: 1100vh;
  position: relative;
  background-color: #fff;
}

.fixed-container {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  will-change: transform, height;
  transform-origin: top center;
  background-color: #fff;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  padding: 0 2rem;
  height: 100%;
  position: relative;
  z-index: 2;
}

.background-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  background-color: #000;
}

.background-image {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  -o-object-fit: cover;
     object-fit: cover;
  opacity: 0;
  filter: brightness(0.8);
  will-change: transform;
  transform-origin: center center;
}

.background-image.active {
  opacity: 1;
  z-index: 2;
}

.background-image.previous {
  opacity: 1;
  z-index: 1;
}

.header {
  grid-column: 1 / 13;
  align-self: start;
  padding-top: 5vh;
  font-size: 10vw;
  line-height: 0.8;
  text-align: center;
  color: var(--text-color);
  will-change: transform, filter, opacity;
}

.header-row {
  display: block;
}

.footer {
  grid-column: 1 / 13;
  align-self: end;
  padding-bottom: 5vh;
  font-size: 10vw;
  line-height: 0.8;
  text-align: center;
  color: var(--text-color);
  will-change: transform, filter, opacity;
  transition: filter 0.5s ease, opacity 0.5s ease;
}

.progress-indicator {
  width: 160px;
  height: 1px;
  margin: 2vh auto 0;
  position: relative;
  background-color: rgba(245, 245, 245, 0.3);
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: var(--text-color);
  transition: width 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.progress-numbers {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-color);
  font-family: var(--font-primary);
  letter-spacing: -0.02em;
  transform: translateY(-50%);
  margin: 0 -25px;
}

.footer.blur,
.left-column.blur,
.right-column.blur {
  filter: blur(8px);
  opacity: 0.3;
  transition: filter 0.8s ease, opacity 0.8s ease;
}

.content {
  grid-column: 1 / 13;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  padding: 0 2rem;
  will-change: transform;
}

.left-column {
  width: 40%;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
  will-change: filter, opacity;
  transition: filter 0.5s ease, opacity 0.5s ease;
}

.right-column {
  width: 40%;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: right;
  will-change: filter, opacity;
  transition: filter 0.5s ease, opacity 0.5s ease;
}

.featured {
  width: 20%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 1.5vw;
  position: relative;
  height: 10vh;
  overflow: hidden;
  will-change: filter, opacity;
  transition: filter 0.5s ease, opacity 0.5s ease;
}

.featured.blur {
  filter: blur(8px);
  opacity: 0.3;
  transition: filter 0.8s ease, opacity 0.8s ease;
}

.featured-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
}

.featured-content.active {
  opacity: 1;
  visibility: visible;
}

.featured-content h3 {
  white-space: nowrap;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  margin: 0;
  font-weight: 500;
  color: var(--text-color);
}

.word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: middle;
}

.split-word {
  display: inline-block;
  vertical-align: middle;
}

.artist {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-color);
  cursor: pointer;
  position: relative;
  padding-left: 0;
}

.category {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-color);
  cursor: pointer;
  position: relative;
  padding-right: 0;
}

.artist:hover,
.category:hover {
  opacity: 1 !important;
}

.artist.loaded {
  opacity: 0.3;
  transform: translateY(0);
}

.category.loaded {
  opacity: 0.3;
  transform: translateY(0);
}

.artist.active {
  opacity: 1;
  transform: translateX(10px);
  padding-left: 15px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.artist.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background-color: var(--text-color);
  border-radius: 50%;
}

.category.active {
  opacity: 1;
  transform: translateX(-10px);
  padding-right: 15px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.category.active::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background-color: var(--text-color);
  border-radius: 50%;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  color: #000;
  font-size: 1.5rem;
  font-family: var(--font-primary);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.loading-counter {
  margin-left: 0.5rem;
}

.debug-info {
  position: fixed;
  bottom: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.7);
  color: #000;
  padding: 10px;
  font-size: 12px;
  z-index: 9000;
  font-family: monospace;
  display: none;
}

/* Sound toggle button */
.sound-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.sound-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.sound-toggle.disabled {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.sound-toggle.disabled:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Sound dots container */
.sound-dots {
  position: relative;
  width: 4px;
  height: 4px;
}

/* Base dot */
.sound-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  opacity: 1;
}

/* Animated expanding dots */
.sound-dot.animated {
  -webkit-animation: expandDot 2s ease-out infinite;
          animation: expandDot 2s ease-out infinite;
}

.sound-dot.animated:nth-child(2) {
  -webkit-animation-delay: 0.5s;
          animation-delay: 0.5s;
}

.sound-dot.animated:nth-child(3) {
  -webkit-animation-delay: 1s;
          animation-delay: 1s;
}

.sound-dot.animated:nth-child(4) {
  -webkit-animation-delay: 1.5s;
          animation-delay: 1.5s;
}

@-webkit-keyframes expandDot {
  0% {
    width: 4px;
    height: 4px;
    opacity: 1;
  }
  100% {
    width: 20px;
    height: 20px;
    opacity: 0;
  }
}

@keyframes expandDot {
  0% {
    width: 4px;
    height: 4px;
    opacity: 1;
  }
  100% {
    width: 20px;
    height: 20px;
    opacity: 0;
  }
}

/* Disabled state - no animation */
.sound-toggle.disabled .sound-dot.animated {
  -webkit-animation: none;
          animation: none;
  width: 4px;
  height: 4px;
  opacity: 0.3;
}

@media (max-width: 768px) {
  .content {
    flex-direction: column;
    gap: 5vh;
  }

  .left-column,
  .right-column,
  .featured {
    width: 100%;
    text-align: center;
  }

  .featured {
    font-size: 3vw;
    order: -1;
    margin-bottom: 2vh;
  }

  .header,
  .footer {
    font-size: 15vw;
  }

  .progress-indicator {
    width: 120px;
  }
}