/* ============================================= */
/* ОСНОВНОЙ ФАЙЛ CSS */
/* ============================================= */

@font-face {
  font-family: "gamequest_news";
  src: url("../fonts/IgraSans.otf");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #d1f05d;
  --primary-glow: rgba(209, 240, 93, 0.3);
  --secondary-light: hsla(0, 0%, 20%, 0.8);
  --secondary: hsla(0, 0%, 12%, 0.9);
  --secondary-dark: hsl(0, 0%, 8%);
  --white: hsl(0, 0%, 100%);
  --glass-light: rgba(255, 255, 255, 0.1);
  --glass-dark: rgba(0, 0, 0, 0.2);

  font-family: "gamequest_news", sans-serif;
  font-size: 14px;
}

#music-toggle {
  font-family: "gamequest_news", sans-serif;
}

html,
body {
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  background: 
    linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.7) 100%),
    url('../images/background/backg_multilink.webp') center/cover no-repeat;
  background-color: var(--secondary-dark);
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  position: relative;
}

/* Основное размытие фона на весь экран */
body::before {
  content: '';
  position: fixed;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: 
    linear-gradient(135deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.6) 100%),
    url('../images/background/backg_multilink.webp') center/cover no-repeat;
  background-size: cover;
  background-position: center;
  filter: blur(0px) brightness(0.85);
  z-index: -2;
}

/* Свечение и дополнительное размытие */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(
      ellipse at center,
      rgba(209, 240, 93, 0.18) 0%,
      rgba(209, 240, 93, 0.08) 40%,
      transparent 70%
    );
  z-index: -1;
  backdrop-filter: blur(0px);
  pointer-events: none;
}

/* Анимация появления фона */
body {
  animation: backgroundReveal 2s ease-out forwards;
}

@keyframes backgroundReveal {
  0% {
    opacity: 0;
    filter: brightness(0.7) blur(15px);
  }
  50% {
    opacity: 0.8;
    filter: brightness(0.9) blur(8px);
  }
  100% {
    opacity: 1;
    filter: brightness(1) blur(0);
  }
}

/* Главный контейнер со стеклянным эффектом */
main {
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  margin: auto;
  padding: 2.5rem;
  background: linear-gradient(
    135deg,
    rgba(30, 30, 30, 0.7) 0%,
    rgba(20, 20, 20, 0.9) 100%
  );
  border-radius: 1.5rem;
  backdrop-filter: blur(25px) saturate(180%);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 50px rgba(209, 240, 93, 0.15),
    0 0 100px rgba(209, 240, 93, 0.05);
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: containerReveal 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  opacity: 0;
  transform: scale(0.8) translateY(50px) rotateX(45deg);
}

@keyframes containerReveal {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(50px) rotateX(45deg);
    box-shadow: 0 0 0 0 rgba(209, 240, 93, 0);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05) translateY(-10px) rotateX(-5deg);
    box-shadow: 0 0 80px 20px rgba(209, 240, 93, 0.3);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0) rotateX(0);
    box-shadow: 
      0 20px 40px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -1px 0 rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.05),
      0 0 50px rgba(209, 240, 93, 0.15),
      0 0 100px rgba(209, 240, 93, 0.05);
  }
}

/* Основной контейнер для шума */
main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 1.5rem;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  background-image: 
    url("../icons/Quest.svg"),
    radial-gradient(circle at 50% 50%, rgba(209, 240, 93, 0.02) 0%, transparent 50%);
  background-size: 80px 80px, cover;
  background-repeat: repeat;
  opacity: 0.03;
  animation: noiseFloat 12s ease-in-out infinite;
}

/* Слой с частицами */
main::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 1.5rem;
  pointer-events: none;
  z-index: -1;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(209, 240, 93, 0.1) 2px, transparent 3px),
    radial-gradient(circle at 30% 40%, rgba(120, 200, 255, 0.08) 1px, transparent 2px),
    radial-gradient(circle at 50% 70%, rgba(255, 120, 200, 0.06) 3px, transparent 4px),
    radial-gradient(circle at 70% 30%, rgba(200, 255, 120, 0.09) 1px, transparent 2px),
    radial-gradient(circle at 90% 60%, rgba(150, 100, 255, 0.07) 2px, transparent 3px),
    radial-gradient(circle at 20% 80%, rgba(255, 180, 80, 0.05) 1px, transparent 2px),
    radial-gradient(circle at 40% 10%, rgba(80, 220, 255, 0.08) 2px, transparent 3px),
    radial-gradient(circle at 60% 50%, rgba(240, 100, 100, 0.06) 1px, transparent 2px),
    radial-gradient(circle at 80% 90%, rgba(180, 240, 100, 0.09) 3px, transparent 4px);
  background-size: 200px 200px;
  animation: particlesMove 25s linear infinite;
  will-change: background-position;
}

/* Анимация движения частиц */
@keyframes particlesMove {
  0% {
    background-position: 
      0px 0px, 
      100px 50px, 
      50px 100px, 
      150px 25px, 
      25px 150px, 
      75px 75px, 
      125px 125px, 
      175px 175px, 
      200px 200px;
  }
  100% {
    background-position: 
      400px 400px, 
      500px 450px, 
      450px 500px, 
      550px 425px, 
      425px 550px, 
      475px 475px, 
      525px 525px, 
      575px 575px, 
      600px 600px;
  }
}

/* Анимация для шума */
@keyframes noiseFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    background-position: 0 0;
    opacity: 0.02;
  }
  25% {
    transform: translate(1px, -1px) scale(1.005);
    background-position: 25px 15px;
    opacity: 0.03;
  }
  50% {
    transform: translate(-1px, 2px) scale(0.995);
    background-position: 15px 25px;
    opacity: 0.025;
  }
  75% {
    transform: translate(2px, -1px) scale(1.01);
    background-position: 20px 20px;
    opacity: 0.035;
  }
}

/* Усиленное свечение при наведении */
main:hover {
  backdrop-filter: blur(30px) saturate(200%);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 60px rgba(209, 240, 93, 0.25),
    0 0 120px rgba(209, 240, 93, 0.1);
  transform: translateY(-5px) scale(1.002);
}

/* ============================================= */
/* УЛУЧШЕННЫЙ СКРОЛЛБАР С АНИМАЦИЕЙ */
/* ============================================= */
/* Скролл видим только когда есть класс show-scrollbar */
main::-webkit-scrollbar {
  width: 6px;
  opacity: 0;
  transition: opacity 0.3s;
}

main.show-scrollbar::-webkit-scrollbar {
  opacity: 1;
}

/* Трек */
main::-webkit-scrollbar-track {
  opacity: 0;
  transition: opacity 0.3s;
}

main.show-scrollbar::-webkit-scrollbar-track {
  opacity: 1;
}

/* Ползунок */
main::-webkit-scrollbar-thumb {
  opacity: 0;
  transition: opacity 0.3s;
}

main.show-scrollbar::-webkit-scrollbar-thumb {
  opacity: 1;
}

/* Firefox */
main {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
main.show-scrollbar {
  scrollbar-color: var(--primary-color) rgba(40, 40, 40, 0.6);
}


/* ============================================= */
/* Улучшенная аватарка */
img {
  width: 100%;
  max-width: 110px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  margin: auto;
  display: block;
  object-fit: cover;
  border: 2px solid rgba(209, 240, 93, 0.4);
  box-shadow: 
    0 0 30px rgba(209, 240, 93, 0.3),
    0 0 60px rgba(209, 240, 93, 0.1),
    inset 0 0 20px rgba(209, 240, 93, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: brightness(1.05) contrast(1.1);
  position: relative;
  animation: avatarPop 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
  opacity: 0;
  transform: scale(0) rotate(-180deg);
}

@keyframes avatarPop {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    filter: blur(20px);
  }
  70% {
    opacity: 1;
    transform: scale(1.2) rotate(10deg);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
    filter: blur(0);
  }
}

/* Анимация пульсирующего свечения для аватарки */
img::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(209, 240, 93, 0.2) 0%, transparent 70%);
  z-index: -1;
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* Эффекты при наведении на аватарку */
img:hover {
  box-shadow: 
    0 0 40px rgba(209, 240, 93, 0.5),
    0 0 80px rgba(209, 240, 93, 0.2),
    0 0 120px rgba(209, 240, 93, 0.1),
    inset 0 0 30px rgba(209, 240, 93, 0.2);
  transform: scale(1.08) rotate(2deg);
  border: 2px solid rgba(209, 240, 93, 0.6);
  filter: brightness(1.1) contrast(1.2) saturate(1.2);
}

/* Заголовки с улучшенными эффектами */
h1,
h2,
p,
li {
  text-align: center;
}

h1,
p,
li {
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Главный заголовок */
h1 {
  margin-top: 1.8rem;
  font-size: 2.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--white) 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  position: relative;
  animation: titleReveal 1s cubic-bezier(0.23, 1, 0.32, 1) 0.8s both;
  opacity: 0;
  transform: translateY(30px) skewY(5deg);
}

@keyframes titleReveal {
  0% {
    opacity: 0;
    transform: translateY(30px) skewY(5deg);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) skewY(0);
    filter: blur(0);
  }
}

/* Декоративная линия под заголовком */
h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  border-radius: 3px;
  animation: lineExpand 0.8s ease-out 1.2s both;
}

@keyframes lineExpand {
  0% {
    width: 0;
    opacity: 0;
  }
  100% {
    width: 100px;
    opacity: 1;
  }
}

h2 {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(209, 240, 93, 0.3);
  letter-spacing: 1px;
  margin-top: 1rem;
  animation: subtitleReveal 0.8s ease-out 1s both;
  opacity: 0;
  transform: translateX(-20px);
}

@keyframes subtitleReveal {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

p {
  margin: 1.2rem 0 1.8rem;
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
  animation: textReveal 0.8s ease-out 1.1s both;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes textReveal {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 0.9;
    transform: translateY(0);
  }
}

/* Меню со стеклянным эффектом */
menu {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 0;
}

li {
  padding: 1.1rem 1.5rem;
  background: linear-gradient(135deg, var(--glass-light) 0%, var(--glass-dark) 100%);
  border-radius: 0.85rem;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: menuItemReveal 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  opacity: 0;
  transform: translateX(-50px) scale(0.9);
}

@keyframes menuItemReveal {
  0% {
    opacity: 0;
    transform: translateX(-50px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Последовательная анимация для пунктов меню */
li:nth-child(1) { animation-delay: 1.3s; }
li:nth-child(2) { animation-delay: 1.4s; }
li:nth-child(3) { animation-delay: 1.5s; }
li:nth-child(4) { animation-delay: 1.6s; }
li:nth-child(5) { animation-delay: 1.7s; }
li:nth-child(6) { animation-delay: 1.8s; }

/* Анимация скользящего свечения */
li::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

li:hover::before {
  left: 100%;
}

/* Иконки для пунктов меню */
li::after {
  content: '';
  width: 28px;
  height: 28px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
}

/* Индивидуальные иконки */
li:nth-child(1)::after { background-image: url("../icons/Wed.svg"); }
li:nth-child(2)::after { background-image: url("../icons/YouTube.svg"); }
li:nth-child(3)::after { background-image: url("../icons/Telegram.svg"); }
li:nth-child(4)::after { background-image: url("../icons/Discord.svg"); }
li:nth-child(5)::after { background-image: url("../icons/Vkontakte.svg"); }
li:nth-child(6)::after { background-image: url("../icons/Wed.svg"); }

li a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  text-align: center;
  position: relative;
  z-index: 2;
}

li:not(:last-child) {
  margin-bottom: 1rem;
}

/* Эффекты при наведении на пункты меню */
li:hover,
li:active {
  background: linear-gradient(135deg, var(--primary-color) 0%, #c5e74a 100%);
  color: var(--secondary-dark);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.4),
    0 0 25px rgba(209, 240, 93, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Анимация иконок при наведении */
li:hover::after {
  filter: brightness(0) invert(0) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
  transform: translateY(-50%) scale(1.1);
}

/* YouTube видео контейнер */
.video-container {
  margin: 20px auto 15px;
  width: 100%;
  max-width: 100%;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 25px rgba(209, 240, 93, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 100%);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  animation: videoReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s both;
  opacity: 0;
  transform: scale(0.8) translateY(20px);
}

@keyframes videoReveal {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Градиентный оверлей для видео контейнера */
.video-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(209, 240, 93, 0.1) 0%,
    transparent 30%,
    transparent 70%,
    rgba(209, 240, 93, 0.05) 100%
  );
  border-radius: 1rem;
  pointer-events: none;
  z-index: 1;
}

/* Эффекты при наведении на видео контейнер */
.video-container:hover {
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 35px rgba(209, 240, 93, 0.25),
    0 0 70px rgba(209, 240, 93, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-5px) scale(1.02);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 1rem;
  z-index: 2;
}

.video-text {
  margin-top: 20px;
  text-align: center;
  position: relative;
  animation: textReveal 0.8s ease-out 1.4s both;
  opacity: 0;
  transform: translateY(20px);
}

/* Декоративная линия над текстом видео */
.video-text::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  border-radius: 2px;
}

.video-text p {
  font-size: 14px;
  color: var(--white);
  margin: 0 0 15px;
  letter-spacing: 0.8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.5;
}

.video-text a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  padding: 2px 4px;
  border-radius: 3px;
}

/* Анимированное подчеркивание для ссылок */
.video-text a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--primary-color);
}

.video-text a:hover {
  color: var(--white);
  text-shadow: 0 0 10px rgba(209, 240, 93, 0.8);
}

.video-text a:hover::after {
  width: 100%;
}

/* ============================================= */
/* КНОПКА МУЗЫКИ - ТОЛЬКО НА ДЕСКТОПАХ */
/* ============================================= */
.music-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #c5e74a 100%);
  color: var(--secondary);
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 35px;
  padding: 12px 22px;
  cursor: pointer;
  box-shadow: 
    0 6px 20px rgba(0,0,0,0.4),
    0 0 25px rgba(209, 240, 93, 0.4),
    0 0 50px rgba(209, 240, 93, 0.2);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 999;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: buttonPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 2s both;
  opacity: 0;
  transform: scale(0) rotate(-180deg);
  
  /* Скрыть на мобильных по умолчанию */
  display: none;
}

/* Показывать только на десктопах */
@media (min-width: 1025px) {
  .music-btn {
    display: block;
  }
}

@keyframes buttonPop {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
  }
  70% {
    opacity: 1;
    transform: scale(1.1) rotate(10deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

/* Градиентная обводка для кнопки */
.music-btn::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--primary-color) 0%, transparent 30%, transparent 70%, var(--primary-color) 100%);
  border-radius: 37px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.music-btn:hover {
  background: linear-gradient(135deg, #e5ff7a 0%, #d1f05d 100%);
  color: var(--secondary-dark);
  box-shadow: 
    0 10px 30px rgba(0,0,0,0.5),
    0 0 35px rgba(209, 240, 93, 0.6),
    0 0 70px rgba(209, 240, 93, 0.3);
  transform: translateY(-5px) scale(1.05);
}

.music-btn:hover::before {
  opacity: 1;
}

.music-btn:active {
  transform: translateY(-2px) scale(1.02);
}

/* Улучшенное выделение текста */
::selection {
  background-color: rgba(209, 240, 93, 0.8);
  color: #000000;
  text-shadow: none;
}

::-moz-selection {
  background-color: rgba(209, 240, 93, 0.8);
  color: #000000;
  text-shadow: none;
}

/* Оптимизация для производительности */
@media (prefers-reduced-motion: reduce) {
  main::before,
  main::after {
    animation: none;
  }
  
  /* Отключаем анимации скроллбара */
  main::-webkit-scrollbar-thumb {
    animation: none;
  }
  
  main::-webkit-scrollbar-thumb::before {
    animation: none;
  }
}