@import url('https://fonts.googleapis.com/css2?family=Play:wght@400;700&family=Tektur:wght@400..900&display=swap');

* { margin:0; padding:0; 
  box-sizing:border-box; 
  color: rgb(236, 236, 236);
  text-shadow:  4px #000000;
  font-family: 'Play', sans-serif;
}

body, html { 
  background: #000; 
  color: rgb(214, 214, 214);
}

@keyframes fadeIn {
  to {
     opacity: 1;
    }
  }

html {
  overflow-x: hidden;
  font-size: 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 100, 100, 0.3) transparent; /* thumb / track */
  position: relative;
}

body {

  display: flex;
  flex-direction: column;
    height: 100vh;  
  overflow: auto;   
  opacity: 0;                    
  animation: fadeIn 3s ease-out forwards;
}

/*<--- Для фона*--->*/
.space { position:absolute; inset:0; pointer-events:none; overflow:hidden; }
.layer { position:absolute; inset:0; will-change:transform; }
.content { position:relative; pointer-events:none; } /*Элементы над фоном*/
.content * { pointer-events:auto; }

main{
  width: 100%;  
  padding: 25px 0px;
    z-index: 1;
  flex-shrink: 0;   
  display: flex;
   overflow-x: hidden;  
   flex-direction: column;        /* дети идут сверху вниз как блочные элементы */
  justify-content: center;       /* центрируем по вертикали */
  align-items: center;
  gap: 10px;
  scroll-behavior:smooth;
}

header {
    padding: 1px 0 0 0;
    position:sticky;
    top: 0;
    width: 90%;
    background: rgba(31, 31, 31, 0.4); /* полупрозрачный тёмно-серый */
    backdrop-filter: blur(8px);
    text-align: center;
    z-index: 1000;
    border-radius: 0 0 50px 50px;
    margin: 0 auto; 
}

h1{
    font-size: 3rem;
    color:azure;
}

@keyframes glitch {
  0%, 100% {
    text-shadow: none;
  }
  25% {
    text-shadow: 2px 0 red, -2px 0 #00ffff;
  }
  50% {
    text-shadow: -3px 0 red, 3px 0 #00ffff;
  }
  75% {
    text-shadow: 2px 0 red, -2px 0 #00ffff;
  }
}

h1 a {
  /* предыдущие стили */
  display: block;
  width: 100%;
  padding: 16px 1px;
  text-decoration: none;
  color: azure;
  text-align: center;
  transition: color 0.3s, transform 0.2s;

  animation: 
    pulse 2s ease-in-out infinite,
    glitch 4s ease-in-out infinite;
}

h1 a:hover {
    color: #000000;
    transform: scale(1.1); /* лёгкое увеличение */
}


section {
    width: 90%;
    margin: 0 auto;        
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;  
    align-items: center;      
    border-radius: 15px;
    scroll-margin-top: 90px;
}

.player {
    display: flex;
    background: rgba(31, 31, 31, 0.4); /* полупрозрачный тёмно-серый */
    backdrop-filter: blur(3px);
    padding: 15px;
    border-radius: 12px;
    width: 450px;
    height: 150px;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    gap: 5px;
}

.player:hover {
    background-color: rgba(50, 50, 50, 0.7);
    transform: scale(1.05);
}

.player:active,
.player:focus,
.player:focus-visible {
    background-color: rgba(50, 50, 50, 0.7);
    transform: scale(1.05);
}

.player img {
    height: 100%;
    border-radius: 15%;
    filter: grayscale(1);
    transition: filter 0.5s , transform 0.2s ease;
}

.player:hover img {
    filter: grayscale(0)
}

.player:active img,
.player:focus img,
.player:focus-visible img {
    filter: grayscale(0);
}

.player-info{
    display: flex;
    flex-direction: column;
    margin: auto;
    gap: 15px;
    opacity: 0.6;            
    transition: opacity 0.3s ease; 
}

.player:active .player-info,
.player:focus .player-info,
.player:focus-visible .player-info {
    opacity: 1;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;  
}


.player:hover .player-info {
    opacity: 1;                
}

.youtube {
    position: relative;          
    width: 30px;
    height: 30px;
}

/* Основное изображение (по умолчанию) */
.youtube::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/icons/youtube.png') no-repeat center/cover;
    transition: opacity 1s ease;
    opacity: 1;
    z-index: 1;
}

/* Изображение при наведении */
.youtube::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/icons/youtube0.png') no-repeat center/cover;
    transition: opacity 0.3s ease;
    opacity: 0;
    z-index: 2;
}

/* При наведении скрываем первый слой и показываем второй */
.youtube:hover::before {
    opacity: 0;
}
.youtube:hover::after {
    opacity: 1;
}

.youtube:hover {
    background-image: url('assets/icons/tg.png');
}

.twitch {
    position: relative;          
    width: 30px;
    height: 30px;
}

/* Основное изображение (по умолчанию) */
.twitch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/icons/twitch.png') no-repeat center/cover;
    transition: opacity 1s ease;
    opacity: 1;
    z-index: 1;
}

/* Изображение при наведении */
.twitch::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/icons/twitch0.png') no-repeat center/cover;
    transition: opacity 0.3s ease;
    opacity: 0;
    z-index: 2;
}

/* При наведении скрываем первый слой и показываем второй */
.twitch:hover::before {
    opacity: 0;
}
.twitch:hover::after {
    opacity: 1;
}

.twitch:hover {
    background-image: url('assets/icons/tg.png');
}

.tg {
    position: relative;          
    width: 30px;
    height: 30px;
}

/* Основное изображение (по умолчанию) */
.tg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/icons/tg.png') no-repeat center/cover;
    transition: opacity 1s ease;
    opacity: 1;
    z-index: 1;
}

/* Изображение при наведении */
.tg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/icons/tg0.png') no-repeat center/cover;
    transition: opacity 0.3s ease;
    opacity: 0;
    z-index: 2;
}

/* При наведении скрываем первый слой и показываем второй */
.tg:hover::before {
    opacity: 0;
}
.tg:hover::after {
    opacity: 1;
}

.tg:hover {
    background-image: url('assets/icons/tg.png');
}

.vk {
    position: relative;          
    width: 30px;
    height: 30px;
}

/* Основное изображение (по умолчанию) */
.vk::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/icons/vk.png') no-repeat center/cover;
    transition: opacity 1s ease;
    opacity: 1;
    z-index: 1;
}

/* Изображение при наведении */
.vk::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/icons/vk0.png') no-repeat center/cover;
    transition: opacity 0.3s ease;
    opacity: 0;
    z-index: 2;
}

/* При наведении скрываем первый слой и показываем второй */
.vk:hover::before {
    opacity: 0;
}
.vk:hover::after {
    opacity: 1;
}

.vk:hover {
    background-image: url('assets/icons/vk.png');
}


footer {
    text-align: center;
    padding: 15px 25px;
    background: #2c2c2c;
    margin: 0 auto;
    margin-top: auto;
    background: rgba(31, 31, 31, 0.45); /* полупрозрачный тёмно-серый */
    backdrop-filter: blur(3px);
    border-radius: 50px 50px 0 0;
    width: 90%;
    z-index: 1000;
}

footer p{
    font-size: 0.9rem;
    color: rgba(139, 139, 139, 0.6);  
}

/*Scrol*/

/* Chrome, Safari, Edge */
::-webkit-scrollbar {
  width: 4px;          /* ещё тоньше */
  height: 4px;
  z-index: 2;          /* если хочешь, чтобы скролл был чуть выше контента */
}

::-webkit-scrollbar-track {
  background: transparent; /* полностью прозрачный фон */
}

::-webkit-scrollbar-thumb {
  background: rgba(100, 100, 100, 0.3); /* полупрозрачный палец */
  border-radius: 2px;
  border: 1px solid transparent; /* чуть‑чуть контраста, если фон не светлый */
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(80, 80, 80, 0.5); /* при наведении чуть более плотный */
}

