/* About section */

.about__frame {
  position: relative;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(123, 92, 255, 0.4), rgba(192, 132, 255, 0.2));
  padding: 6px;
  box-shadow:
    0 8px 32px rgba(123, 92, 255, 0.3),
    0 0 0 2px rgba(192, 132, 255, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.about__frame--accents::before,
.about__frame--accents::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border: 3px solid var(--color-yellow);
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.5));
  pointer-events: none;
  z-index: 5;
}

.about__frame--accents::before {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
  border-radius: 14px 0 0 0;
}

.about__frame--accents::after {
  bottom: -2px;
  right: -2px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 14px 0;
}

/* Section setup */

.about {
  position: relative;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  background-image: url('/assets/about/starry_bg.webp');
  background-repeat: repeat;
  background-size: 400px;
}

.about::before,
.about::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 200px;
  pointer-events: none;
  z-index: 1;
}

.about::before {
  left: 0;
  background: linear-gradient(to right, #150925 0%, transparent 100%);
}

.about::after {
  right: 0;
  background: linear-gradient(to left, #150925 0%, transparent 100%);
}

.about > .container {
  max-width: 1500px;
  position: relative;
  z-index: 2;
}

/* Parallax */

.about__parallax {
  position: relative;
  margin: 0 calc(-50vw + 50%);
  margin-bottom: -240px;
  width: 100vw;
  aspect-ratio: 2968 / 1587;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.about__parallax-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

/* Section heading */

.about__heading {
  position: relative;
  z-index: 2;
  width: 100vw;
  margin: 120px calc(-50vw + 50%) 0;
  background: linear-gradient(
    to bottom,
    #150925 0%,
    #150925 30%,
    rgba(21, 9, 37, 0.5) 70%,
    transparent 100%
  );
  padding: var(--space-xl) var(--space-lg) var(--space-3xl);
  text-align: center;
}

.about__heading h2 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-sm);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.9);
}

.about__heading p {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 auto;
  max-width: 600px;
}

/* Console */

.about__console {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  max-width: 1200px;
  margin: 0 auto var(--space-xl);
  position: relative;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(123, 92, 255, 0.4), rgba(192, 132, 255, 0.2));
  padding: 8px;
  box-shadow:
    0 12px 40px rgba(123, 92, 255, 0.35),
    0 0 0 2px rgba(192, 132, 255, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.about__console::before,
.about__console::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border: 3px solid var(--color-yellow);
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
  pointer-events: none;
  z-index: 5;
}

.about__console::before {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
  border-radius: 14px 0 0 0;
}

.about__console::after {
  bottom: -2px;
  right: -2px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 14px 0;
}

.about__console-screen {
  position: relative;
  border-radius: 12px 0 0 12px;
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
  aspect-ratio: 16 / 9;
}

.about__console-screen::after {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  right: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 215, 0, 0.4) 50%,
    transparent
  );
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.3);
  pointer-events: none;
  z-index: 2;
}

.about__trailer {
  width: 100%;
  height: 100%;
}

.about__trailer iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.about__console-panel {
  display: flex;
  flex-direction: column;
  background: rgba(10, 5, 25, 0.85);
  border-radius: 0 12px 12px 0;
  padding: var(--space-md);
  position: relative;
  min-height: 0;
  height: 100%;
  
  overflow: hidden;
}

.about__console-buttons {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px var(--space-md) 6px;
  background: linear-gradient(145deg, rgba(123, 92, 255, 0.4), rgba(192, 132, 255, 0.2));
  border-radius: 0 0 14px 14px;
  border: 2px solid rgba(192, 132, 255, 0.5);
  border-top: none;
  box-shadow:
    0 4px 16px rgba(123, 92, 255, 0.3),
    inset 0 -1px 0 rgba(255, 255, 255, 0.15);
  pointer-events: none;
  z-index: 4;
}

.about__console-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 -2px 4px rgba(0, 0, 0, 0.4),
    0 0 6px rgba(0, 0, 0, 0.5);
}

.about__console-btn--y { background: var(--color-yellow); color: #1a0d2e; }
.about__console-btn--x { background: #4a90e2; }
.about__console-btn--b { background: #e84c6e; }
.about__console-btn--a { background: #65e060; color: #1a0d2e; }

/* Playlist */

.about__playlist {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  overflow-y: auto;
  padding-right: var(--space-xs);
  flex: 1;
  min-height: 0;
}

.about__playlist::-webkit-scrollbar {
  width: 6px;
}

.about__playlist::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 3px;
}

.about__playlist::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 3px;
}

.about__playlist-item {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: rgba(30, 20, 55, 0.7);
  border: 2px solid rgba(192, 132, 255, 0.25);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  font-family: inherit;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.about__playlist-item:hover {
  background: rgba(40, 25, 70, 0.85);
  border-color: rgba(192, 132, 255, 0.6);
  transform: translateY(-1px);
  box-shadow:
    0 4px 10px rgba(123, 92, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.about__playlist-item--active {
  border-color: var(--color-accent);
  background: rgba(123, 92, 255, 0.2);
  transform: translateX(-4px);
  box-shadow:
    0 4px 12px rgba(123, 92, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.about__playlist-item--active .about__playlist-icon {
  color: var(--color-yellow);
}

.about__playlist-thumb {
  position: relative;
  width: 100px;
  flex-shrink: 0;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
}

.about__playlist-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about__playlist-thumb::after {
  content: '\f04b';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.about__playlist-item:hover .about__playlist-thumb::after,
.about__playlist-item--active .about__playlist-thumb::after {
  opacity: 1;
}

.about__playlist-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.about__playlist-title-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
}

.about__playlist-icon {
  font-size: 0.85rem;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.about__playlist-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: #fff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.about__playlist-duration {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

/* Feature blocks */

.about__description {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  margin-bottom: var(--space-xl);
  max-width: 1750px;
  margin-left: auto;
  margin-right: auto;
}

.about__block {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  position: relative;
}

.about__block:nth-child(even) {
  flex-direction: row-reverse;
}

.about__block::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -5%;
  width: 50%;
  height: 130%;
  transform: translateY(-50%);
  background: radial-gradient(
    circle at center,
    rgba(0, 200, 255, 0.45) 0%,
    transparent 60%
  );
  filter: blur(35px);
  pointer-events: none;
  z-index: 0;
}

.about__block:nth-child(even)::before {
  left: auto;
  right: -5%;
}

.about__block-img {
  flex: 1;
  position: relative;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(123, 92, 255, 0.4), rgba(192, 132, 255, 0.2));
  padding: 6px;
  box-shadow:
    0 8px 32px rgba(123, 92, 255, 0.3),
    0 0 0 2px rgba(192, 132, 255, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  z-index: 2;
}

.about__block-img::before,
.about__block-img::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border: 3px solid var(--color-yellow);
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.5));
  pointer-events: none;
}

.about__block-img::before {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
  border-radius: 14px 0 0 0;
}

.about__block-img::after {
  bottom: -2px;
  right: -2px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 14px 0;
}

.about__block-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.about__block-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl);
  position: relative;
  z-index: 1;
}

.about__block-text::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -20%;
  width: 120%;
  height: 140%;
  transform: translateY(-50%);
  background: radial-gradient(
    circle at center left,
    rgba(123, 92, 255, 0.25) 0%,
    transparent 60%
  );
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

.about__block:nth-child(even) .about__block-text::before {
  left: auto;
  right: -20%;
  background: radial-gradient(
    circle at center right,
    rgba(123, 92, 255, 0.25) 0%,
    transparent 60%
  );
}

.about__block-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(192, 132, 255, 0.35);
}

.about__block-divider {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.about__block-divider-diamond {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  transform: rotate(45deg);
  box-shadow: 0 0 8px var(--color-accent);
}

.about__block-divider-line {
  width: 60px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.6;
}

.about__block-text p {
  text-align: left;
  color: var(--color-text-secondary);
  line-height: 1.75;
  font-size: 1rem;
}

.about__block-text p strong {
  color: var(--color-yellow);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.25);
}

.about__block-highlight {
  font-weight: 700;
  color: var(--color-yellow);
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}

/* Gallery */

.gallery {
  position: relative;
  max-width: 800px;
  margin: 0 auto var(--space-2xl);
}

.gallery__track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(123, 92, 255, 0.4), rgba(192, 132, 255, 0.2));
  padding: 6px;
  box-shadow:
    0 8px 32px rgba(123, 92, 255, 0.3),
    0 0 0 2px rgba(192, 132, 255, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.gallery__track::before,
.gallery__track::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border: 3px solid var(--color-yellow);
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.5));
  pointer-events: none;
  z-index: 10;
}

.gallery__track::before {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
  border-radius: 14px 0 0 0;
}

.gallery__track::after {
  bottom: -2px;
  right: -2px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 14px 0;
}

.gallery__item {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
}

.gallery__item--active {
  opacity: 1;
  pointer-events: auto;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery__counter {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 11;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 4px;
  border: 1px solid rgba(192, 132, 255, 0.4);
  letter-spacing: 0.1em;
  pointer-events: none;
}

.gallery__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20, 10, 40, 0.85);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  z-index: 20;
  border: 2px solid var(--color-accent);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 0 12px rgba(123, 92, 255, 0.4);
}

.gallery__btn:hover {
  background: var(--color-accent);
  border-color: var(--color-yellow);
  box-shadow: 0 0 20px rgba(123, 92, 255, 0.7);
  transform: translateY(-50%) scale(1.08);
}

.gallery__btn--prev { left: -22px; }
.gallery__btn--next { right: -22px; }

/* Lightbox */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.lightbox--open {
  display: flex;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  color: #fff;
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background var(--transition-fast);
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 201;
  transition: all var(--transition-fast);
}

.lightbox__nav:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: var(--color-yellow);
  transform: translateY(-50%) scale(1.08);
}

.lightbox__nav--prev { left: var(--space-xl); }
.lightbox__nav--next { right: var(--space-xl); }

/* Mobile (tablet + phone) */

@media (max-width: 900px) {
  .about::before,
  .about::after {
    width: 100px;
  }

  .about__heading {
    padding: var(--space-lg) var(--space-md);
    margin-top: 0px; 
  }

  .about__heading h2 {
    font-size: 1.8rem;
  }

  .about__heading p {
    font-size: 0.9rem;
  }

  .about__console {
    grid-template-columns: 1fr;
    padding: 6px;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-3xl);
  }

  .about__console-screen {
    border-radius: 12px 12px 0 0;
  }

  .about__console-screen::after {
    top: auto;
    bottom: 0;
    left: 8px;
    right: 8px;
    width: auto;
    height: 2px;
    background: linear-gradient(
      to right,
      transparent,
      rgba(255, 215, 0, 0.4) 50%,
      transparent
    );
  }

  .about__console-panel {
    border-radius: 0 0 12px 12px;
  }

  .about__playlist {
    max-height: 320px;
  }

  .about__block,
  .about__block:nth-child(even) {
    flex-direction: column;
  }

  .about__block::before,
  .about__block:nth-child(even)::before {
    top: 25%;
    left: 50%;
    right: auto;
    width: 80%;
    height: 50%;
    transform: translate(-50%, -50%);
  }

  .about__block-text,
  .about__block:nth-child(even) .about__block-text {
    padding: var(--space-md);
    text-align: center;
  }

  .about__block-text::before,
  .about__block:nth-child(even) .about__block-text::before {
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    background: radial-gradient(
      circle at center,
      rgba(123, 92, 255, 0.25) 0%,
      transparent 60%
    );
  }

  .about__block-title {
    font-size: 1.5rem;
    text-align: center;
  }

  .about__block-divider {
    justify-content: center;
  }

  .about__block-text p {
    text-align: left;
    font-size: 1rem;
  }

  .about__parallax {
    margin-bottom: -40px;
  }

  .lightbox__nav {
    display: none;
  }
}

/* Phone-specific overrides */

@media (max-width: 768px) {
  .about::before,
  .about::after {
    width: 60px;
    
  }

  .about__heading {
    margin-top: 0px; 
    padding: var(--space-md) var(--space-sm);
  }

  .about__heading h2 {
    font-size: 1.4rem;
  }

  .about__heading p {
    font-size: 0.75rem;
  }

  .about__block-title {
    font-size: 1.3rem;
  }
}