header {
    background: rgba(34, 34, 34, 0.8);
    padding: 1em 0;
    text-align: center;
    line-height: 1.6;
}

header .header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

header .header-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

header img {
    max-width: 150px;
    height: auto;
    border-radius: 10px;
}

header .header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    position: relative;
    line-height: 0.5;
}

.music-player {
    display: flex;
    align-items: center;
    margin-top: 5px;
    gap: 10px;
}

.music-player .menu-button {
    display: inline-block;
    padding: 0.5em 1em;
    background: rgba(34, 34, 34, 0.8);
    color: rgb(242, 216, 229);
    font-size: 1em;
    text-decoration: none;
    text-align: center;
    border: 2px solid rgb(242, 216, 229);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    cursor: pointer;
}

.music-player .menu-button span {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgb(242, 216, 229);
    top: 100%;
    left: 0;
    z-index: -1;
    transition: 0.3s;
}

.music-player .menu-button:hover span {
    top: 0;
}

.music-player .menu-button:hover {
    color: white;
}

.mcontainer {
    position: relative;
    width: 200px;
    height: 200px;
}

.toggle-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgb(242, 216, 229);
    color: rgb(51, 51, 51);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    z-index: 10;
}

.menu {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-item {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: rgb(242, 216, 229);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 4px;
    transform: scale(0);
    transition: transform 0.3s ease-in-out;
}

.menu-item img {
    width: 30px;
    height: 30px;
}

.menu.open .menu-item:nth-child(1) {
    transform: rotate(0deg) translate(80px) rotate(0deg);
}

.menu.open .menu-item:nth-child(2) {
    transform: rotate(90deg) translate(80px) rotate(-90deg);
}

.menu.open .menu-item:nth-child(3) {
    transform: rotate(180deg) translate(80px) rotate(-180deg);
}

.menu.open .menu-item:nth-child(4) {
    transform: rotate(270deg) translate(80px) rotate(-270deg);
}

.social-links {
    text-align: center;
    margin: 1em 0;
}

.social-links a {
    margin: 0 0.5em;
    display: inline-block;
    width: 30px;
    height: 30px;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s;
}

.social-links a.telegram {
    background-image: url("https://siren.chat/chic/i/purple-haze/telegram.png");
    width: 50px;
    height: 50px;
}

.social-links a.instagram {
    background-image: url("https://siren.chat/chic/i/purple-haze/instagram.png");
    width: 50px;
    height: 50px;
}

.social-links a.allmylinks {
    background-image: url("https://siren.chat/chic/i/purple-haze/allmylinks.png");
    width: 50px;
    height: 50px;
}

.social-links a:hover {
    transform: scale(1.2);
}

.music-note {
    width: 50px;
    height: 50px;
    background-image: url("https://kottyaa.ru/images/music.gif");
    background-size: cover;
    cursor: pointer;
    animation: none;
}

.music-note.playing {
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.custom-span {
    position: relative;
    display: inline-block;
    height: 1.5em;
    overflow: hidden;
}

.custom-span > p {
    font-size: 1.5em;
    line-height: 1;
    margin: 0;
    display: block;
    transform: translateY(0);
    animation: animateWords 18s ease-in-out infinite;
}

@keyframes animateWords {
    0%, 27.77% {
        transform: translateY(0);
    }
    33.33%, 61.11% {
        transform: translateY(-100%);
    }
    66.66%, 94.44% {
        transform: translateY(-200%);
    }
    100% {
        transform: translateY(-300%);
    }
}
