* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a2e 100%);
    background-attachment: fixed;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    color: #e0e0e0;
    overflow-x: hidden;
    line-height: 1.6;
}

body {
    min-height: 100vh;
    overflow-y: auto;
    padding-top: 70px;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 70px);
    padding: 40px 20px;
}

.profile-section {
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.avatar-container {
    margin-bottom: 30px;
}

.avatar-wrapper {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 0 60px rgba(168, 85, 247, 0.4), 
                inset 0 0 30px rgba(168, 85, 247, 0.2);
}

.avatar-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(168, 85, 247, 0.6);
    pointer-events: none;
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.username {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, #a8a8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    max-width: 350px;
    gap: 12px;
    justify-content: center;
    padding: 20px;
    margin: 0 auto 50px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #a855f7;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    cursor: pointer;
    background: rgba(168, 85, 247, 0.05);
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-8px) scale(1.1) rotate(5deg);
    border-color: #00ffff;
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.5), 
                0 0 40px rgba(0, 255, 200, 0.4),
                inset 0 0 20px rgba(168, 85, 247, 0.3);
    filter: brightness(1.2);
}

.social-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
}

/* КОМАНДА */
.team-section {
    margin-top: 80px;
    padding: 50px 30px;
    background: linear-gradient(135deg, 
        rgba(168, 85, 247, 0.08) 0%, 
        rgba(0, 255, 200, 0.04) 100%);
    border-radius: 24px;
    border: 1px solid rgba(168, 85, 247, 0.15);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 60px rgba(168, 85, 247, 0.1),
                inset 0 0 60px rgba(168, 85, 247, 0.02);
}

.team-section h2 {
    font-size: 26px;
    margin-bottom: 35px;
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 25px;
    max-width: 800px;
    margin: 0 auto;
}

.team-card {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    --card-color: #a855f7;
}

.team-card-inner {
    background: linear-gradient(135deg, 
        rgba(168, 85, 247, 0.1) 0%, 
        rgba(0, 255, 200, 0.05) 100%);
    border: 2px solid var(--card-color);
    border-radius: 16px;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.team-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.team-card:hover .team-card-inner {
    transform: translateY(-12px);
    background: linear-gradient(135deg, 
        rgba(168, 85, 247, 0.15) 0%, 
        rgba(0, 255, 200, 0.08) 100%);
    box-shadow: 0 12px 40px var(--card-color),
                inset 0 0 30px rgba(168, 85, 247, 0.1);
    border-color: #00ffff;
}

.team-card:hover .team-card-inner::before {
    left: 100%;
}

.team-avatar {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    border: 2.5px solid var(--card-color);
    object-fit: cover;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2;
}

.team-card:hover .team-avatar {
    border-color: #00ffff;
    box-shadow: 0 0 25px rgba(0, 255, 200, 0.8);
    transform: rotate(15deg) scale(1.1);
}

.team-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    position: relative;
    z-index: 2;
}

.team-relationship {
    font-size: 12px;
    color: #00ffff;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

/* ПЛАВАЮЩИЙ АУДИОПЛЕЕР */
.music-player {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 320px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(0, 255, 200, 0.08) 100%);
    border: 2px solid rgba(168, 85, 247, 0.6);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.3), 
                0 0 40px rgba(0, 255, 200, 0.2);
    z-index: 990;
    animation: slideInPlayer 0.6s ease-out;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
}

@keyframes slideInPlayer {
    from {
        opacity: 0;
        transform: translateY(100px) translateX(0);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
}

.music-player.minimized {
    opacity: 0;
    pointer-events: none;
    transform: translateY(400px);
}

.music-player-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.music-player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.music-player-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.music-player-minimize {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.5);
    color: #a855f7;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 12px;
}

.music-player-minimize:hover {
    background: rgba(168, 85, 247, 0.4);
    border-color: #00ffff;
    color: #00ffff;
}

.music-player-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.music-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.music-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #a855f7, #00ffff);
    border-radius: 3px;
    transition: width 0.1s linear;
}

.music-time {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.music-player-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.music-control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.2);
    border: 2px solid rgba(168, 85, 247, 0.5);
    color: #a855f7;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.music-control-btn:hover {
    background: rgba(168, 85, 247, 0.4);
    border-color: #00ffff;
    color: #00ffff;
    transform: scale(1.1);
}

.music-control-btn.play-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(0, 255, 200, 0.1));
    font-size: 16px;
}

.music-control-btn.play-btn:hover {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6),
                0 0 30px rgba(0, 255, 200, 0.4);
}

.music-player-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.4), rgba(0, 255, 200, 0.2));
    border: 2px solid rgba(168, 85, 247, 0.7);
    color: #a855f7;
    font-size: 24px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 991;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: pulseButton 2s ease-in-out infinite;
}

@keyframes pulseButton {
    0%, 100% {
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.4),
                    inset 0 0 10px rgba(168, 85, 247, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(168, 85, 247, 0.8),
                    inset 0 0 20px rgba(168, 85, 247, 0.4);
    }
}

.music-player-toggle:hover {
    transform: scale(1.15);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.6), rgba(0, 255, 200, 0.3));
    border-color: #00ffff;
    color: #00ffff;
}

/* МОДАЛЬНОЕ ОКНО */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    --card-color: #a855f7;
    animation: modalFadeIn 0.3s ease-out;
    overflow: hidden;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(135deg, 
        rgba(168, 85, 247, 0.12) 0%, 
        rgba(0, 255, 200, 0.06) 100%);
    border: 2px solid var(--card-color);
    border-radius: 24px;
    padding: 45px 35px;
    max-width: 420px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px var(--card-color),
                inset 0 0 60px rgba(168, 85, 247, 0.05);
    backdrop-filter: blur(15px);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--card-color);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.05);
}

.modal-close:hover {
    color: #00ffcb;
    background: rgba(0, 255, 200, 0.1);
    transform: rotate(90deg) scale(1.1);
}

.profile-card {
    text-align: center;
}

.profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 3px solid var(--card-color);
    object-fit: cover;
    margin-bottom: 25px;
    box-shadow: 0 0 40px var(--card-color);
}

.profile-card h2 {
    font-size: 26px;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 700;
}

.relationship-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--card-color), #00ffff);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 20px;
    color: #000;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.profile-description {
    font-size: 15px;
    color: #b0b0b0;
    margin-bottom: 25px;
    line-height: 1.7;
}

.modal-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.modal-social {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--card-color) 15%, transparent);
    border: 2px solid var(--card-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--card-color);
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    cursor: pointer;
}

.modal-social:hover {
    background: rgba(0, 255, 200, 0.3);
    border-color: #00ffff;
    color: #00ffff;
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 0 25px rgba(0, 255, 200, 0.8),
                0 0 50px var(--card-color),
                inset 0 0 15px color-mix(in srgb, var(--card-color) 30%, transparent);
}

#snowCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

/* FOOTER */
footer {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(15px);
    border-top: 2px solid rgba(168, 85, 247, 0.5);
    padding: 60px 20px 40px;
    margin-top: 100px;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.social-link-footer {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.1);
    border: 2px solid #a855f7;
    color: #a855f7;
    font-size: 22px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
    position: relative;
    overflow: hidden;
}

.social-link-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(168, 85, 247, 0.4), 
        transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.social-link-footer:hover {
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.8), inset 0 0 20px rgba(168, 85, 247, 0.5);
    background: rgba(168, 85, 247, 0.3);
    border-color: #00ffff;
    color: #00ffff;
}

.social-link-footer:hover::before {
    left: 100%;
}

.legal-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.legal-link {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(0, 255, 255, 0.05));
    border: 2px solid #a855f7;
    border-radius: 8px;
    color: #a855f7;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3), inset 0 0 10px rgba(168, 85, 247, 0.1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.legal-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(168, 85, 247, 0.4), 
        transparent);
    transition: left 0.6s;
    z-index: -1;
    pointer-events: none;
}

.legal-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.8), 
                inset 0 0 15px rgba(168, 85, 247, 0.6),
                0 0 40px rgba(0, 255, 255, 0.4);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(0, 255, 255, 0.2));
    border-color: #00ffff;
    color: #fff;
    text-shadow: 0 0 10px #a855f7;
}

.legal-link:hover::before {
    left: 100%;
}

.legal-link:active {
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.6), inset 0 0 20px rgba(168, 85, 247, 0.4);
}

@keyframes neonPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(168, 85, 247, 0.3), inset 0 0 10px rgba(168, 85, 247, 0.1);
    }
    50% {
        box-shadow: 0 0 25px rgba(168, 85, 247, 0.6), inset 0 0 15px rgba(168, 85, 247, 0.3);
    }
}

.legal-link:not(:hover) {
    animation: neonPulse 2s ease-in-out infinite;
}

.footer-text {
    text-align: center;
    color: rgba(168, 85, 247, 0.6);
    font-size: 12px;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    padding-top: 25px;
    position: relative;
    z-index: 10;
}

/* ===== НАВИГАЦИЯ ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid rgba(168, 85, 247, 0.5);
    z-index: 100;
    padding: 0;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.navbar-logo a {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #fff 0%, #a8a8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-logo a:hover {
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: #c9d1d9;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #a855f7, #00ffff);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: #a855f7;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    position: relative;
    z-index: 101;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: linear-gradient(90deg, #a855f7, #00ffff);
    margin: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-12px, 11px);
}

.hamburger.active span:nth-child(2) {
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-12px, -11px);
}

/* ===== СТРАНИЦЫ ===== */
.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, #a8a8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(168, 85, 247, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.6));
    }
}

.friends-section,
.games-section {
    text-align: center;
    width: 100%;
}

/* ===== КАРУСЕЛЬ ДРУЗЕЙ ===== */
.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 50px;
}

.carousel-container {
    position: relative;
    width: 320px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-card {
    position: absolute;
    width: 300px;
    height: 350px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(0, 255, 200, 0.05) 100%);
    border: 2px solid #a855f7;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%) scale(0.8);
    transition: transform 0.4s ease, opacity 0.4s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.carousel-card.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0) scale(1);
    z-index: 2;
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.5);
    border-color: #00ffff;
    border-width: 2px;
}

.carousel-card.prev {
    opacity: 0.4;
    pointer-events: none;
    transform: translateX(-120%) scale(0.85);
    z-index: 1;
}

.carousel-card.next {
    opacity: 0.4;
    pointer-events: none;
    transform: translateX(120%) scale(0.85);
    z-index: 1;
}

.carousel-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    border: 3px solid;
    border-color: inherit;
    box-shadow: 0 0 20px currentColor;
}

.carousel-card h2 {
    color: #fff;
    font-size: 20px;
    margin: 10px 0;
    font-weight: 700;
}

.carousel-card p {
    color: #8b949e;
    line-height: 1.5;
    font-size: 14px;
}

.carousel-card .description {
    flex-grow: 1;
    overflow-y: auto;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(0, 255, 200, 0.1));
    border: 2px solid rgba(168, 85, 247, 0.7);
    color: #a855f7;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
}

.nav-btn:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.6), rgba(0, 255, 200, 0.3));
    border-color: #00ffff;
    color: #00ffff;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6), 0 0 30px rgba(0, 255, 200, 0.4);
    transform: translateY(-50%) scale(1.15);
}

.nav-btn.prev {
    left: -60px;
}

.nav-btn.next {
    right: -60px;
}

/* ===== ИГРЫ ===== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.game-card {
    background: linear-gradient(135deg, 
        rgba(168, 85, 247, 0.1) 0%, 
        rgba(0, 255, 200, 0.05) 100%);
    border: 2px solid rgba(168, 85, 247, 0.5);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    transition: left 0.6s ease;
    pointer-events: none;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: #00ffff;
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.5), 
                inset 0 0 20px rgba(168, 85, 247, 0.1);
    background: linear-gradient(135deg, 
        rgba(168, 85, 247, 0.15) 0%, 
        rgba(0, 255, 200, 0.08) 100%);
}

.game-card:hover::before {
    left: 100%;
}

.game-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 700;
}

.game-card p {
    font-size: 13px;
    color: #b0b0b0;
    margin-bottom: 15px;
}

.game-card a {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(0, 255, 200, 0.1));
    border: 2px solid rgba(168, 85, 247, 0.6);
    border-radius: 8px;
    color: #a855f7;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s ease;
}

.game-card a:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.5), rgba(0, 255, 200, 0.2));
    border-color: #00ffff;
    color: #00ffff;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
}

/* ===== МЕДИА ЗАПРОСЫ ===== */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .username {
        font-size: 24px;
    }

    .social-links {
        max-width: 300px;
        gap: 10px;
        margin-bottom: 30px;
        padding: 15px;
    }

    .social-link {
        width: 45px;
        height: 45px;
    }

    .team-section {
        margin-top: 50px;
        padding: 30px 20px;
    }

    .team-section h2 {
        font-size: 20px;
        margin-bottom: 25px;
    }

    .team-grid {
        gap: 15px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .carousel-wrapper {
        height: 350px;
    }

    .carousel-card {
        width: 280px;
        height: 320px;
        padding: 20px;
    }

    .carousel-avatar {
        width: 80px;
        height: 80px;
    }

    .carousel-card h2 {
        font-size: 18px;
    }

    .carousel-card p {
        font-size: 13px;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .nav-btn.prev {
        left: -40px;
    }

    .nav-btn.next {
        right: -40px;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .game-card {
        padding: 15px;
    }

    .game-card h3 {
        font-size: 16px;
    }

    .music-player {
        width: 280px;
        padding: 15px;
        bottom: 20px;
        right: 20px;
    }

    .music-player-toggle {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        gap: 0;
        padding: 20px 0;
        border-bottom: 2px solid rgba(168, 85, 247, 0.5);
        z-index: 99;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        padding: 15px 0;
        border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    }

    .navbar-container {
        padding: 0 15px;
    }

    .nav-link::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .username {
        font-size: 22px;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 12px;
    }

    .avatar-wrapper {
        width: 140px;
        height: 140px;
    }

    .carousel-wrapper {
        height: 300px;
    }

    .carousel-card {
        width: 260px;
        height: 290px;
        padding: 15px;
    }

    .music-player {
        width: 260px;
        padding: 12px;
        bottom: 15px;
        right: 15px;
    }

    .music-player-header h3 {
        font-size: 13px;
    }

    .music-control-btn {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    .music-control-btn.play-btn {
        width: 45px;
        height: 45px;
        font-size: 14px;
    }

    .music-player-toggle {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 20px;
    }

    .nav-menu {
        top: 70px;
    }
}
