@import url('https://fonts.googleapis.com/css?family=VT323&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  margin: 0;
}

body {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: #ffffff;
  background: #000;
}

.wrapper {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  min-height: 100vh;
}

.container {
  width: 100%;
  flex: 0 0 auto;
  position: relative;
  margin: 0 auto;
  max-width: 1280px;
}

/* Фоновое видео */
.background video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -99;
  /* Улучшение качества рендеринга */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
}

/* Прелоадер */
.preloader {
  display: flex;
  flex-direction: column;
  align-content: center;
  position: fixed;
  justify-content: center;
  top: 0;
  left: 0;
  text-align: center;
  width: 100%;
  height: 100%;
  background-color: #000000;
  z-index: 9999;
  transition: 1s;
  visibility: visible;
  opacity: 1;
}

.preloader-circle {
  align-self: center;
  width: 60px;
  height: 60px;
  border: 6px solid transparent;
  border-top: 6px solid #ff0000;
  border-radius: 100%;
  animation: preloader 500ms linear infinite;
}

@keyframes preloader {
  100% {
    transform: rotate(360deg);
  }
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.6);
}

/* Копирайт */
.page-copyright {
  position: fixed;
  top: 10px;
  left: 10px;
  color: #ff0000;
  font-size: 1rem;
  font-family: 'VT323', monospace;
  z-index: 10;
}

/* Основной контейнер */
.page-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.page-info {
  width: 100%;
  text-align: center;
}


/* Кнопка Play */
.page-info-play {
  font-family: 'VT323', monospace;
  font-size: 10rem;
  cursor: pointer;
  color: #ff0000;
  text-align: center;
  text-shadow: 3px 3px 0 rgba(255, 0, 0, 0.6);
  animation: play linear alternate 1s infinite;
  transition: 200ms;
}

@keyframes play {
  100% {
    transform: translateY(10px);
  }
}

.page-info-play.is-playing {
  font-size: 5rem;
  opacity: 0;
  visibility: hidden;
  height: 0;
  pointer-events: none;
}

/* Заголовок */
.page-info-title {
  font-family: 'VT323', monospace;
  text-align: center;
  font-size: 10rem;
  color: #ff0000;
  text-shadow: 3px 3px 0 rgba(255, 0, 0, 0.6);
  transform: scale(0);
  opacity: 0;
  visibility: hidden;
  transition: 300ms;
}

.page-info-title.title-visible {
  transform: scale(1);
  visibility: visible;
  opacity: 1;
}

/* Социальные сети */
.page-info-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  opacity: 0;
  visibility: hidden;
  transition: 300ms;
  transform: rotateY(40deg) translateY(100px);
}

.page-info-social.social-visible {
  opacity: 1;
  visibility: visible;
  transform: rotateY(0deg) translateY(0px);
}

.page-info-social-item {
  color: #ff0000;
  text-shadow: 3px 3px 0 rgba(255, 255, 255, 0.2);
  font-size: 3rem;
  text-decoration: none;
  transition: 300ms;
}

.page-info-social-item:hover {
  transform: translateY(-5px);
  color: #ff4444;
}

/* Адаптив */
@media screen and (max-width: 768px) {
  .page-info-play {
    font-size: 6rem;
  }
  
  .page-info-title {
    font-size: 5rem;
  }
  
  .page-info-social-item {
    font-size: 2rem;
  }
}

@media screen and (max-width: 480px) {
  .page-info-title {
    font-size: 4rem;
  }
  
  .page-info-play {
    font-size: 4rem;
  }
}


/* Ползунок громкости */
.volume-control {
  position: fixed;
  top: 30px;
  left: 30px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  padding: 15px 25px;
  border-radius: 50px;
  transition: opacity 0.5s ease;
  opacity: 0;
}

.volume-control.visible {
  opacity: 1;
}

.volume-control.hidden {
  opacity: 0;
  pointer-events: none;
}

.volume-icon {
  font-size: 24px;
  color: #ffffff;
}

.volume-slider {
  width: 150px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease;
}

.volume-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}

.volume-percent {
  font-size: 16px;
  font-weight: bold;
  min-width: 45px;
  color: #ffffff;
}

@media (max-width: 768px) {
  .volume-control {
    top: 20px;
    left: 20px;
    padding: 12px 20px;
    gap: 10px;
  }
  
  .volume-slider {
    width: 100px;
  }
  
  .volume-icon {
    font-size: 20px;
  }
  
  .volume-percent {
    font-size: 14px;
  }
}
