html {
  height: 100%;
  overflow-x: hidden;
}

body {
  background-color: #1a1a1a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-family: 'Courier New', monospace;
  color: #bdb7af;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  /* Для Firefox */
  scrollbar-width: thin;
  scrollbar-color: #bdb7af rgba(42, 42, 42, 0.3);
}

.main-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.enter-text {
  font-size: 0.8rem;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 10;
  transform: scale(1);
}

.enter-text:hover {
  color: #ffffff;
  transform: scale(1.05);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.enter-text:active {
  transform: scale(0.95);
  transition: all 0.1s ease;
}

.word {
  display: block;
  transition: all 0.3s ease;
}

.word:hover {
  transform: translateY(-2px);
  color: #ffffff;
}

.domain-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.domain-block:hover {
  transform: scale(1.02);
}

.domain-text {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 0;
  text-align: center;
  line-height: 1;
  transition: all 0.3s ease;
}

.domain-text:hover {
  text-shadow: 0 0 30px rgba(189, 183, 175, 0.8);
  transform: scale(1.05);
}

.subtext {
  font-size: 0.9rem;
  opacity: 0.8;
  white-space: pre;
  margin: 0;
  text-align: center;
  line-height: 1;
  transition: all 0.3s ease;
}

.subtext:hover {
  opacity: 1;
  color: #ffffff;
}

.typewriter {
  font-size: 0.9rem;
  height: 1.5rem;
  text-align: center;
  letter-spacing: 0.05em;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
  z-index: 4;
}

.typewriter:hover {
  transform: scale(1.02);
  text-shadow: 0 0 15px rgba(189, 183, 175, 0.6);
}

.contacts-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  z-index: 3;
}

.contacts {
  display: flex;
  gap: 0.8rem;
  opacity: 0.8;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-link, .buy-dlc {
  text-decoration: underline;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.contact-link:hover {
  color: #ffffff;
  transform: translateY(-2px);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.1);
}

.buy-dlc {
  color: #ff5555;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.buy-dlc:hover {
  color: #ff0000;
  transform: translateY(-2px) scale(1.05);
  text-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
  background-color: rgba(255, 0, 0, 0.1);
}

.email-line {
  font-size: 0.8rem;
  opacity: 0.6;
  text-align: center;
  transition: all 0.3s ease;
}

.email-line:hover {
  opacity: 1;
  color: #ffffff;
}

.cursor {
  display: inline-block;
  width: 0.5rem;
  height: 1rem;
  background-color: #bdb7af;
  animation: blink 1s infinite;
  vertical-align: middle;
  margin-left: 2px;
  transition: all 0.3s ease;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
    transform: scaleY(1);
  }
  50% {
    opacity: 0;
    transform: scaleY(0.8);
  }
}

/* Базовые анимации */
.fade-in {
  animation: fadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

.slide-up {
  animation: slideUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
}

.slide-down {
  animation: slideDown 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  transform: translateY(-20px);
}

.zoom-in {
  animation: zoomIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  transform: scale(0.8);
}

.rotate-in {
  animation: rotateIn 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  transform: rotate(-5deg);
}

/* Новые продвинутые анимации */
.bounce-in-up {
  animation: bounceInUp 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  opacity: 0;
  transform: translateY(60px) scale(0.8);
}

.slide-in-left {
  animation: slideInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 0;
  transform: translateX(-60px);
}

.slide-in-right {
  animation: slideInRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 0;
  transform: translateX(60px);
}

.pulse-in {
  animation: pulseIn 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  opacity: 0;
  transform: scale(0.5);
}

.spiral-in {
  animation: spiralIn 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  opacity: 0;
  transform: rotate(180deg) scale(0.3);
}

.wave-in {
  animation: waveIn 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  opacity: 0;
  transform: translateY(40px) rotateX(90deg);
}

.blur-in {
  animation: blurIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
  filter: blur(20px);
}

.slide-in-with-scale {
  animation: slideInWithScale 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
}

.slide-in-from-bottom {
  animation: slideInFromBottom 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  transform: translateY(80px);
}

.slide-in-from-top {
  animation: slideInFromTop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  transform: translateY(-80px);
}

.scale-in-with-bounce {
  animation: scaleInWithBounce 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  opacity: 0;
  transform: scale(0.1);
}

.fade-in-with-bounce {
  animation: fadeInWithBounce 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  opacity: 0;
  transform: scale(0.95);
}

/* Задержки для последовательного появления элементов */
.animation-delay-1 {
  animation-delay: 0.1s;
}

.animation-delay-2 {
  animation-delay: 0.2s;
}

.animation-delay-3 {
  animation-delay: 0.3s;
}

.animation-delay-4 {
  animation-delay: 0.4s;
}

.animation-delay-5 {
  animation-delay: 0.5s;
}

.animation-delay-6 {
  animation-delay: 0.6s;
}

.animation-delay-7 {
  animation-delay: 0.7s;
}

.animation-delay-8 {
  animation-delay: 0.8s;
}

/* Keyframes для новых анимаций */
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rotateIn {
  to {
    opacity: 1;
    transform: rotate(0);
  }
}

@keyframes bounceInUp {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulseIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes spiralIn {
  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

@keyframes waveIn {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

@keyframes blurIn {
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes slideInWithScale {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideInFromBottom {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromTop {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleInWithBounce {
  0% {
    opacity: 0;
    transform: scale(0.1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInWithBounce {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

#shader-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  pointer-events: none;
}

.shader-active {
  opacity: 0.15 !important;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 600px;
  align-items: center;
}

.news-item {
  background-color: rgba(26, 26, 26, 0.6);
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid #bdb7af;
  opacity: 0.9;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: auto;
  max-width: 500px;
  min-width: 300px;
  position: relative;
  overflow: hidden;
}

.news-item::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;
}

.news-item:hover {
  color: #ffffff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-left-color: #ffffff;
  background-color: rgba(26, 26, 26, 0.8);
}

.news-item:hover::before {
  left: 100%;
}

.news-date {
  font-size: 0.7rem;
  opacity: 0.6;
  margin-bottom: 0.5rem;
  color: #888;
  transition: all 0.3s ease;
}

.news-item:hover .news-date {
  opacity: 0.8;
  color: #aaa;
}

.news-text {
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: pre-line;
  transition: all 0.3s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  max-width: 100%;
}

.news-item:hover .news-text {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.qa-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
  max-width: 600px;
  align-items: center;
}

.qa-item {
  background-color: rgba(26, 26, 26, 0.6);
  padding: 1.2rem;
  border-radius: 8px;
  border-left: 4px solid #bdb7af;
  opacity: 0.9;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: auto;
  max-width: 500px;
  min-width: 300px;
  position: relative;
  overflow: hidden;
  transform: translateY(0);
}

.qa-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transition: left 0.8s ease;
}

.qa-item:hover {
  color: #ffffff;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  border-left-color: #ffffff;
  background-color: rgba(26, 26, 26, 0.8);
}

.qa-item:hover::before {
  left: 100%;
}

.qa-item.answered {
  border-left-color: #4ade80;
  background-color: rgba(26, 26, 26, 0.7);
}

.qa-item.answered:hover {
  border-left-color: #22c55e;
  background-color: rgba(26, 26, 26, 0.9);
}

.qa-item.question-only {
  border-left-color: #fbbf24;
  background-color: rgba(26, 26, 26, 0.7);
}

.qa-item.question-only:hover {
  border-left-color: #f59e0b;
  background-color: rgba(26, 26, 26, 0.9);
}

.qa-question {
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  line-height: 1.5;
  white-space: pre-line;
  transition: all 0.3s ease;
  font-weight: 500;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  max-width: 100%;
}

.qa-item:hover .qa-question {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.qa-answer {
  font-size: 0.9rem;
  margin-top: 0.8rem;
  padding: 0.8rem;
  background-color: rgba(42, 42, 42, 0.4);
  border-radius: 6px;
  font-style: italic;
  line-height: 1.5;
  white-space: pre-line;
  border-left: 3px solid #4ade80;
  transition: all 0.3s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  max-width: 100%;
}

.qa-item:hover .qa-answer {
  background-color: rgba(42, 42, 42, 0.6);
  border-left-color: #22c55e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.qa-date {
  font-size: 0.7rem;
  opacity: 0.6;
  margin-bottom: 0.8rem;
  color: #888;
  transition: all 0.3s ease;
}

.qa-item:hover .qa-date {
  opacity: 0.8;
  color: #aaa;
}

.qa-status {
  font-size: 0.7rem;
  opacity: 0.8;
  margin-top: 0.8rem;
  text-align: center;
  transition: all 0.3s ease;
}

.qa-status.success {
  color: #4ade80;
  background-color: rgba(26, 26, 26, 0.8);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.qa-status.error {
  color: #f87171;
  background-color: rgba(26, 26, 26, 0.8);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.qa-status.info {
  color: #60a5fa;
  background-color: rgba(26, 26, 26, 0.8);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.qa-status-pending {
  font-size: 0.8rem;
  margin-top: 0.8rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.8));
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 6px;
  color: #fbbf24;
  text-align: center;
  opacity: 0.9;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.qa-status-pending::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.2), transparent);
  transition: left 1s ease;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.qa-item:hover .qa-status-pending {
  background: linear-gradient(135deg, rgba(26, 26, 26, 1), rgba(26, 26, 26, 0.9));
  border-color: rgba(251, 191, 36, 0.6);
  transform: scale(1.02);
}

/* Специальные эффекты для новых элементов */
.qa-item.loading-new {
  animation: newItemGlow 2s ease-in-out infinite alternate;
  /* Сбрасываем трансформации при анимации */
  transform: none !important;
}

@keyframes newItemGlow {
  from {
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
  }
  to {
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.6);
  }
}

.qa-item.animated {
  animation: itemFloat 3s ease-in-out infinite;
  /* Сбрасываем трансформации при анимации */
  transform: none !important;
}

@keyframes itemFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

/* Защита от конфликтов трансформаций только для анимированных элементов */
.qa-item.loading-new, 
.qa-item.animated,
.news-item.loading-new, 
.news-item.animated,
.music-container.loading-new,
.music-container.animated {
  /* Сбрасываем трансформации при анимации для предотвращения конфликтов */
  transform: none !important;
}

/* Специальные стили для music-container */
.music-container {
  order: -1;
}



/* Плавная анимация разворота */
.music-content {
  /* Transition управляется через JavaScript */
}

.music-content.collapsed {
  /* Transition управляется через JavaScript */
}

/* Индикатор статуса музыки */
.music-title.music-playing .music-status-indicator {
  color: #4ade80;
  text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
  animation: musicPlayingPulse 2s ease-in-out infinite;
}

@keyframes musicPlayingPulse {
  0%, 100% {
    opacity: 1;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
  }
  50% {
    opacity: 0.8;
    text-shadow: 0 0 15px rgba(74, 222, 128, 0.7);
  }
}

.music-status-indicator {
  transition: all 0.3s ease;
}



.music-content {
  justify-content: center;
}

.music-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem;
  align-self: center;
}

.music-cover {
  width: 70px;
  height: 70px;
  border-radius: 6px;
  object-fit: cover;
  border: 2px solid #bdb7af;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.music-cover:hover {
  transform: scale(1.05);
  border-color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.music-details {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  text-align: left;
  flex: 1;
  align-items: center;
  width: 100%;
}

.music-track-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: left;
  align-items: flex-start;
}

.music-track-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #ffffff;
  line-height: 1.2;
  transition: all 0.3s ease;
}

.music-track-title:hover {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.music-artist {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.2;
  transition: all 0.3s ease;
}

.music-artist:hover {
  opacity: 1;
  color: #ffffff;
}

.music-album {
  font-size: 0.8rem;
  opacity: 0.6;
  line-height: 1.2;
  transition: all 0.3s ease;
}

.music-album:hover {
  opacity: 0.8;
  color: #ffffff;
}



.music-error {
  font-size: 0.8rem;
  opacity: 0.6;
  text-align: center;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.music-loading {
  font-size: 0.8rem;
  opacity: 0.6;
  text-align: center;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.music-refresh {
  font-size: 0.7rem;
  opacity: 0.6;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: underline;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}

.music-refresh:hover {
  opacity: 1;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

/* Стили для глобального скроллбара */
body::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-track {
  background: rgba(42, 42, 42, 0.3);
}

body::-webkit-scrollbar-thumb {
  background: #bdb7af;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

body::-webkit-scrollbar-thumb:hover {
  background: #ffffff;
}



/* Стили для контейнера контента */
.flex.flex-col.items-center.justify-center.gap-4.w-full {
  width: 100%;
  min-height: 100vh;
  overflow: visible;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Фиксируем позиционирование для всех элементов внутри */
  z-index: 1;
}

/* Стили для news и qa контейнеров */
.news-container, .qa-container {
  overflow: visible;
}

.news-content, .qa-content {
  overflow: visible;
}

/* Дополнительные эффекты для интерактивности */
.qa-item, .news-item {
  cursor: pointer;
}

.qa-item:active, .news-item:active {
  transform: scale(0.98);
  transition: all 0.1s ease;
}

/* Эффект параллакса для фона */
@keyframes backgroundFloat {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-2px) translateX(1px);
  }
  50% {
    transform: translateY(-1px) translateX(-1px);
  }
  75% {
    transform: translateY(1px) translateX(2px);
  }
}

/* Улучшенные hover эффекты для всех интерактивных элементов */
.contact-link:hover, .buy-dlc:hover {
  transform: translateY(-2px) scale(1.05);
  text-shadow: 0 0 20px currentColor;
}

/* Анимация для новых элементов */
@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(100px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-100px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Эффект волны для кнопок */
.qa-submit, .contact-link, .buy-dlc {
  position: relative;
  overflow: hidden;
}

.qa-submit::after, .contact-link::after, .buy-dlc::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.qa-submit:active::after, .contact-link:active::after, .buy-dlc:active::after {
  width: 300px;
  height: 300px;
}

/* Улучшенные переходы для интерактивных элементов */
.qa-item, .news-item, .music-container,
.contact-link, .buy-dlc, .qa-submit,
.domain-block, .enter-text, .word,
.typewriter, .subtext, .domain-text {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Специальные эффекты для мобильных устройств */
@media (max-width: 768px) {
  .qa-item, .news-item {
    min-width: 280px;
    max-width: 90vw;
  }

  .qa-form {
    max-width: 90vw;
  }

  .qa-textarea {
    max-width: 90vw;
  }
}

/* Добавляем недостающие стили для qa-form */
.qa-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
  max-width: 400px;
  margin: 0 auto 1.2rem auto;
  align-items: center;
  padding: 1rem;
  background-color: rgba(42, 42, 42, 0.2);
  border-radius: 8px;
  border: 1px solid rgba(189, 183, 175, 0.2);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.qa-form:hover {
  background-color: rgba(26, 26, 26, 0.4);
  border-color: rgba(189, 183, 175, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.qa-textarea {
  background-color: rgba(26, 26, 26, 0.7);
  border: 2px solid rgba(189, 183, 175, 0.3);
  color: #bdb7af;
  padding: 0.8rem;
  font-family: 'Courier New', monospace;
  resize: vertical;
  min-height: 100px;
  border-radius: 6px;
  width: 100%;
  max-width: 350px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
  box-sizing: border-box;
}

.qa-textarea:focus {
  outline: none;
  border-color: #ffffff;
  background-color: rgba(26, 26, 26, 0.9);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  transform: scale(1.02);
}

.qa-textarea::placeholder {
  color: rgba(189, 183, 175, 0.5);
  transition: all 0.3s ease;
}

.qa-textarea:focus::placeholder {
  opacity: 0.7;
  color: rgba(189, 183, 175, 0.8);
}

.qa-submit {
  background: linear-gradient(135deg, #bdb7af, #9a948c);
  color: #1a1a1a;
  border: none;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  font-family: 'Courier New', monospace;
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: bold;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  min-width: 120px;
}

.qa-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.qa-submit:hover {
  background: linear-gradient(135deg, #ffffff, #e0e0e0);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  color: #1a1a1a;
}

.qa-submit:hover::before {
  left: 100%;
}

.qa-submit:active {
  transform: translateY(0);
  transition: all 0.1s ease;
}

.qa-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Стили для статуса формы */
.qa-form .qa-status {
  text-align: center;
  width: 100%;
  margin-top: 0.5rem;
}



.news-header:hover, .qa-header:hover, .music-header:hover {
  background-color: rgba(26, 26, 26, 1);
  border-color: rgba(189, 183, 175, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.news-title, .qa-title, .music-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #bdb7af;
  transition: all 0.3s ease;
}

.news-header:hover .news-title, 
.qa-header:hover .qa-title, 
.music-header:hover .music-title {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.news-toggle, .qa-toggle, .music-toggle {
  font-size: 0.8rem;
  color: #bdb7af;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  padding: 0;
  border-radius: 8px;
  background-color: rgba(189, 183, 175, 0.1);
  border: 1px solid rgba(189, 183, 175, 0.2);
  /* Квадратные размеры */
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.news-toggle:hover, .qa-toggle:hover, .music-toggle:hover {
  color: #ffffff;
  background-color: rgba(189, 183, 175, 0.2);
  border-color: rgba(189, 183, 175, 0.4);
  /* Убираем scale для предотвращения изменения размера */
  transform: translateY(-1px);
}

.news-toggle.expanded, .qa-toggle.expanded, .music-toggle.expanded {
  color: #4ade80;
  background-color: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.3);
  /* Сохраняем квадратные размеры в expanded состоянии */
  width: 32px;
  height: 32px;
}

/* Стили для контента спойлеров */
.news-content, .qa-content, .music-content {
  display: none;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 500px;
  min-width: 300px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  align-items: center;
  will-change: opacity, transform;
  /* Начальное состояние для плавной анимации */
  transition: none;
}

.news-content.collapsed, .qa-content.collapsed, .music-content.collapsed {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  /* Начальное состояние без transition */
  transition: none;
}

.news-content:not(.collapsed), .qa-content:not(.collapsed), .music-content:not(.collapsed) {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  /* Состояние с transition для плавной анимации */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Специальные стили для music-content */
.music-content {
  justify-content: center;
  align-items: center;
}

/* Анимации для спойлеров */
.news-container, .qa-container, .music-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 600px;
  margin: 1rem 0;
  gap: 0.5rem;
}

/* Дополнительные стили для центрирования Q&A */
.qa-container {
  justify-content: center;
}

.qa-content {
  justify-content: center;
  align-items: center;
}

/* Стили для заголовков спойлеров */
.news-header, .qa-header, .music-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  background-color: rgba(26, 26, 26, 0.8);
  border-radius: 8px;
  border: 1px solid rgba(189, 183, 175, 0.3);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 0;
  min-width: 300px;
  max-width: 500px;
}

/* Улучшенные эффекты для заголовков */
.news-header:active, .qa-header:active, .music-header:active {
  transform: translateY(0) scale(0.98);
  transition: all 0.1s ease;
}

/* Стили для мобильных устройств */
@media (max-width: 768px) {
  .news-header, .qa-header, .music-header {
    min-width: 280px;
    max-width: 90vw;
    padding: 0.6rem 0.8rem;
  }
  
  .news-content, .qa-content, .music-content {
    min-width: 280px;
    max-width: 90vw;
  }
}

/* Унифицированные минималистичные подложки для всех компонентов */
.news-container, .qa-container, .music-container {
  /* Убраны подложки - оставлены только базовые стили */
  position: relative;
  overflow: visible;
}

/* Унифицированные стили для заголовков */
.news-header, .qa-header, .music-header {
  background: linear-gradient(135deg, 
    rgba(26, 26, 26, 0.9), 
    rgba(42, 42, 42, 0.8)
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(189, 183, 175, 0.2);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.news-header::before, .qa-header::before, .music-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(189, 183, 175, 0.1), 
    transparent
  );
  transition: left 0.6s ease;
}

.news-header:hover, .qa-header:hover, .music-header:hover {
  background: linear-gradient(135deg, 
    rgba(26, 26, 26, 1), 
    rgba(42, 42, 42, 0.95)
  );
  border-color: rgba(189, 183, 175, 0.35);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.news-header:hover::before, .qa-header:hover::before, .music-header:hover::before {
  left: 100%;
}

/* Унифицированные стили для элементов списков */
.news-item, .qa-item {
  background: linear-gradient(135deg, 
    rgba(26, 26, 26, 0.7), 
    rgba(42, 42, 42, 0.6)
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(189, 183, 175, 0.15);
  border-radius: 10px;
  padding: 1.2rem;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.news-item::before, .qa-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.05), 
    transparent
  );
  transition: left 0.7s ease;
}

.news-item:hover, .qa-item:hover {
  background: linear-gradient(135deg, 
    rgba(26, 26, 26, 0.9), 
    rgba(42, 42, 42, 0.8)
  );
  border-color: rgba(189, 183, 175, 0.3);
  transform: translateY(-3px);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.news-item:hover::before, .qa-item:hover::before {
  left: 100%;
}

/* Унифицированные стили для музыкального контейнера */
.music-content {
  background: linear-gradient(135deg, 
    rgba(26, 26, 26, 0.8), 
    rgba(42, 42, 42, 0.7)
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(189, 183, 175, 0.2);
  border-radius: 10px;
  padding: 1.2rem;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.music-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(189, 183, 175, 0.08), 
    transparent
  );
  transition: left 0.8s ease;
}

.music-content:hover {
  background: linear-gradient(135deg, 
    rgba(26, 26, 26, 0.95), 
    rgba(42, 42, 42, 0.85)
  );
  border-color: rgba(189, 183, 175, 0.3);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.music-content:hover::before {
  left: 100%;
}

/* Унифицированные стили для формы */
.qa-form {
  background: linear-gradient(135deg, 
    rgba(26, 26, 26, 0.8), 
    rgba(42, 42, 42, 0.7)
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(189, 183, 175, 0.2);
  border-radius: 10px;
  padding: 1.2rem;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.qa-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(189, 183, 175, 0.08), 
    transparent
  );
  transition: left 0.7s ease;
}

.qa-form:hover {
  background: linear-gradient(135deg, 
    rgba(26, 26, 26, 0.95), 
    rgba(42, 42, 42, 0.85)
  );
  border-color: rgba(189, 183, 175, 0.3);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.qa-form:hover::before {
  left: 100%;
}

/* Унифицированные стили для текстовых полей */
.qa-textarea {
  background: linear-gradient(135deg, 
    rgba(26, 26, 26, 0.9), 
    rgba(42, 42, 42, 0.8)
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(189, 183, 175, 0.25);
  border-radius: 8px;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.qa-textarea:focus {
  background: linear-gradient(135deg, 
    rgba(26, 26, 26, 1), 
    rgba(42, 42, 42, 0.95)
  );
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Унифицированные стили для кнопок */
.qa-submit {
  background: linear-gradient(135deg, 
    rgba(189, 183, 175, 0.9), 
    rgba(154, 148, 140, 0.8)
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(189, 183, 175, 0.3);
  border-radius: 8px;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.qa-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.2), 
    transparent
  );
  transition: left 0.6s ease;
}

.qa-submit:hover {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95), 
    rgba(224, 224, 224, 0.9)
  );
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.qa-submit:hover::before {
  left: 100%;
}

/* Унифицированные стили для статусов */
.qa-status, .qa-status-pending {
  background: linear-gradient(135deg, 
    rgba(26, 26, 26, 0.9), 
    rgba(42, 42, 42, 0.8)
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(189, 183, 175, 0.2);
  border-radius: 8px;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.qa-status:hover, .qa-status-pending:hover {
  background: linear-gradient(135deg, 
    rgba(26, 26, 26, 1), 
    rgba(42, 42, 42, 0.95)
  );
  border-color: rgba(189, 183, 175, 0.3);
  transform: translateY(-1px);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .news-header, .qa-header, .music-header {
    padding: 0.8rem 1rem;
    border-radius: 8px;
  }
  
  .news-item, .qa-item, .music-content, .qa-form {
    padding: 1rem;
    border-radius: 8px;
  }
}
