@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;
  }
}


/* Ползунок громкости - Liquid Glass стиль iOS (компактный) */
.volume-control {
  position: fixed;
  top: 25px;
  left: 25px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  /* Улучшенный Liquid Glass эффект - более контрастный */
  background: rgba(20, 20, 20, 0.75);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  padding: 12px 18px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 8px 32px 0 rgba(0, 0, 0, 0.6),
    0 2px 8px 0 rgba(0, 0, 0, 0.4),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.3);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.volume-control.visible {
  opacity: 1;
  transform: translateY(0);
}

.volume-control.hidden {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

.volume-icon {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.95);
  transition: all 0.3s ease;
  width: 16px;
  min-width: 16px;
  text-align: center;
  display: inline-block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Убираем правую иконку полностью */
.volume-icon-right {
  display: none !important;
}

#volume-slider-container {
  position: relative;
  width: 140px;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

#volume-slider-fill {
  position: absolute;
  height: 5px;
  width: 25%;
  background: linear-gradient(90deg, #ff0000 0%, #ff3333 50%, #ff4444 100%);
  border-radius: 10px;
  pointer-events: none;
  box-shadow: 
    0 0 10px rgba(255, 0, 0, 0.6),
    0 0 5px rgba(255, 0, 0, 0.4);
  transition: width 0.1s ease;
}

#volume-slider-handle {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
  left: 25%;
  top: 50%;
  transform: translate(-50%, -50%);
  cursor: grab;
  box-shadow: 
    0 3px 10px rgba(0, 0, 0, 0.5),
    0 2px 5px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#volume-slider-handle:active {
  cursor: grabbing;
}

#volume-slider-container:hover #volume-slider-handle {
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.6),
    0 2px 6px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* Подсказка Shift - Liquid Glass стиль iOS (компактный) */
.shift-hint {
  position: fixed;
  top: 25px;
  right: 25px;
  z-index: 100;
  /* Улучшенный Liquid Glass эффект - более контрастный */
  background: rgba(20, 20, 20, 0.75);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  padding: 10px 18px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 8px 32px 0 rgba(0, 0, 0, 0.6),
    0 2px 8px 0 rgba(0, 0, 0, 0.4),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.3);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.3px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.shift-hint.hidden {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

.shift-hint-text {
  display: flex;
  align-items: center;
  gap: 6px;
}

.shift-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  background: rgba(255, 0, 0, 0.2);
  border: 1px solid rgba(255, 0, 0, 0.4);
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  color: #ff0000;
  text-shadow: 
    0 0 10px rgba(255, 0, 0, 0.9),
    0 0 20px rgba(255, 0, 0, 0.7),
    0 0 30px rgba(255, 0, 0, 0.5);
  box-shadow: 
    0 0 15px rgba(255, 0, 0, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  animation: shiftGlow 2s ease-in-out infinite;
}

@keyframes shiftGlow {
  0%, 100% {
    text-shadow: 
      0 0 10px rgba(255, 0, 0, 0.9),
      0 0 20px rgba(255, 0, 0, 0.7),
      0 0 30px rgba(255, 0, 0, 0.5);
    box-shadow: 
      0 0 15px rgba(255, 0, 0, 0.4),
      0 2px 8px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
  50% {
    text-shadow: 
      0 0 15px rgba(255, 0, 0, 1),
      0 0 30px rgba(255, 0, 0, 0.9),
      0 0 45px rgba(255, 0, 0, 0.7);
    box-shadow: 
      0 0 25px rgba(255, 0, 0, 0.6),
      0 2px 8px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}

@media (max-width: 768px) {
  .volume-control {
    top: 15px;
    left: 15px;
    padding: 10px 14px;
    gap: 10px;
  }
  
  #volume-slider-container {
    width: 100px;
  }
  
  .volume-icon {
    font-size: 14px;
  }
  
  .shift-hint {
    top: 15px;
    right: 15px;
    padding: 8px 14px;
    font-size: 11px;
  }
  
  .shift-key {
    padding: 2px 8px;
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .volume-control {
    padding: 8px 12px;
    gap: 8px;
  }
  
  #volume-slider-container {
    width: 80px;
  }
  
  .shift-hint {
    font-size: 10px;
    padding: 6px 12px;
  }
  
  .shift-key {
    padding: 2px 6px;
    font-size: 9px;
  }
}



