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

:root {
    /* Light theme */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent: #06b6d4;
    --accent-hover: #0891b2;
    --shadow: rgba(0, 0, 0, 0.1);
    --border: rgba(0, 0, 0, 0.1);
    --glow: rgba(6, 182, 212, 0.3);
}

[data-theme="dark"] {
    /* Dark theme */
    --bg-primary: #020617;
    --bg-secondary: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #22d3ee;
    --accent-hover: #67e8f9;
    --shadow: rgba(0, 0, 0, 0.5);
    --border: rgba(255, 255, 255, 0.1);
    --glow: rgba(34, 211, 238, 0.4);
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #111827 100%);
    color: var(--text-primary);
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    position: relative;
}

[data-theme="dark"] body {
    background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e293b 100%);
}

[data-theme="light"] body {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #ffffff 100%);
}

.main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 120px;
}

.main-content {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 500px;
}

.theme-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
}

.theme-toggle:active {
    transform: scale(0.95);
}

.card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.8));
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 32px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 
                0 0 0 1px rgba(255, 255, 255, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #06b6d4, #3b82f6, #8b5cf6, transparent);
    opacity: 0.8;
}

[data-theme="light"] .card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.1),
                0 0 0 1px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4), 
                0 0 0 1px rgba(255, 255, 255, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.avatar {
    margin-bottom: 30px;
    position: relative;
    margin-top: -110px;
    z-index: 2;
}

.banner {
    display: none;
    position: relative;
    
    /* Robust horizontal positioning */
    left: auto;
    width: auto;
    margin-left: -40px;
    margin-right: -40px;
    
    transform: none;
    height: 200px;
    border-radius: 0;
    
    /* Ensure image fills exactly as cropped */
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    
    /* Maintain vertical flow */
    margin-top: 0;
    top: -50px;
    margin-bottom: 0;
    
    overflow: hidden;
}

.banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0,0,0,0.10) 0%,
        rgba(0,0,0,0.18) 35%,
        rgba(0,0,0,0.28) 65%,
        rgba(0,0,0,0.12) 100%);
    pointer-events: none;
}

@media (max-width: 480px) {
    .banner { height: 160px; }
}

@media (max-width: 980px) {
    .music-section {
        width: 100%;
        max-width: 100%;
        margin-top: 16px;
    }
    .music-section .music-title {
        text-align: center;
    }
}

.avatar-beat-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nickname-container {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.equalizer-bars {
    position: absolute;
    width: auto;
    height: 60px;
    top: -30px;
    left: 51%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    gap: 4px;
}

.equalizer-bar {
    position: relative;
    width: 5px;
    border-radius: 3px;
    background: linear-gradient(180deg, 
        rgba(6, 182, 212, 0.9) 0%,
        rgba(59, 130, 246, 0.8) 50%,
        rgba(139, 92, 246, 0.7) 100%);
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.6),
                0 0 15px rgba(59, 130, 246, 0.4),
                0 0 20px rgba(139, 92, 246, 0.3);
    transition: height 0.05s linear, opacity 0.05s linear;
    opacity: 0.8;
    min-height: 3px;
    align-self: flex-end;
}

.avatar-beat-ring {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid;
    pointer-events: none;
    opacity: 0;
    transform: scale(1);
    left: 50%;
    top: 50%;
    margin-left: -60px;
    margin-top: -60px;
    z-index: 0;
}

.avatar-beat-ring-gradient-1 {
    border-color: rgba(6, 182, 212, 0.6);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.avatar-beat-ring-gradient-2 {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.3);
}

.avatar-beat-ring-gradient-3 {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}

.avatar-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.avatar-circle:hover {
    transform: scale(1.05) rotate(5deg);
}

.avatar-circle {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
                filter 0.3s ease-out,
                box-shadow 0.3s ease;
    will-change: transform, filter, box-shadow;
}

.avatar-text {
    font-size: 48px;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.avatar-image, .avatar-video {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
}

.avatar-video {
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.avatar-circle {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.nickname {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.3));
}

.role-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 25px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

[data-theme="light"] .role-badge {
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.15);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.08);
}

.role-badge:hover {
    transform: translateY(-2px);
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.25);
}

.role-badge svg {
    width: 16px;
    height: 16px;
}

.divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #06b6d4, #3b82f6, #8b5cf6, transparent);
    margin: 0 auto 30px;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.description {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
    font-weight: 400;
    letter-spacing: 0.3px;
    text-align: center;
    max-width: 100%;
    padding: 0 10px;
    opacity: 0.9;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.description:hover {
    opacity: 1;
    color: var(--text-primary);
}

.description br {
    display: block;
    content: "";
    margin: 8px 0;
}

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

.social-link {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(59, 130, 246, 0.15));
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.15);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.social-link:hover {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: white;
    transform: translateY(-8px) scale(1.15) rotate(5deg);
    box-shadow: 0 12px 35px rgba(6, 182, 212, 0.5);
    border-color: rgba(6, 182, 212, 0.5);
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.closing {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeOut 0.25s ease forwards;
}

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

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

.modal-content {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(40px); opacity: 0; }
}

.modal.active .modal-content { animation: slideUp 0.3s ease; }
.modal.closing .modal-content { animation: slideDown 0.25s ease forwards; }

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(6, 182, 212, 0.2);
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 50%;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(6, 182, 212, 0.2);
    transform: rotate(90deg);
}

.modal-body { padding: 25px; }

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6), rgba(30, 41, 59, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.5), rgba(59, 130, 246, 0.5), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.project-item:hover {
    transform: translateY(-4px) scale(1.02);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.8));
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(6, 182, 212, 0.15);
}

.project-item:hover::before {
    opacity: 1;
}

.project-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.2));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.project-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.4s ease;
}

.project-item:hover .project-icon img {
    transform: scale(1.1);
}

.project-info {
    flex: 1;
    min-width: 0;
    z-index: 1;
}

.project-info h3 {
    margin: 0 0 4px 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    transition: color 0.3s ease;
}

.project-item:hover .project-info h3 {
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-info p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.project-arrow {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    opacity: 0.5;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.project-item:hover .project-arrow {
    opacity: 1;
    color: var(--accent);
    transform: translateX(0);
    background: rgba(6, 182, 212, 0.1);
}

.project-arrow svg {
    width: 18px;
    height: 18px;
}

/* Light theme adjustments */
[data-theme="light"] .project-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(248, 250, 252, 0.9));
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .project-item:hover {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.15);
}

.donate-text {
    text-align: center;
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.donate-qr {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 12px;
}

.donate-qr img {
    width: 200px;
    height: 200px;
    border-radius: 8px;
}

.donate-link {
    display: block;
    text-decoration: none;
    margin-top: 20px;
}

.donate-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
    font-family: inherit;
}

.donate-button:hover {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite ease-in-out;
    transition: width 0.1s ease-out, height 0.1s ease-out, opacity 0.1s ease-out, box-shadow 0.1s ease-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
    50% { transform: translateY(-100px) translateX(50px); opacity: 0.6; }
}

.music-section {
    width: 360px;
    max-width: 360px;
    padding: 24px 18px;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.4), rgba(30, 41, 59, 0.4));
    backdrop-filter: blur(20px);
    border-radius: 24px;
    transition: all 0.4s ease;
}

.music-section:hover {
    box-shadow: 0 0 40px var(--glow);
}

[data-theme="light"] .music-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(249, 250, 251, 0.9));
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.12),
                0 0 0 1px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .music-section:hover {
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.15);
}

.music-section .music-title {
    text-align: left;
    margin-bottom: 18px;
}

.music-sidebar::-webkit-scrollbar { width: 8px; }
.music-sidebar::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 10px; }
.music-sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
.music-sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    background-clip: padding-box;
}

[data-theme="light"] .music-sidebar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(249, 250, 251, 0.9));
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.music-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 15px;
}

.music-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #06b6d4, transparent);
    border-radius: 2px;
}

.tracks-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .tracks-list { grid-template-columns: 1fr; }
}

.track-item {
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.7), 
        rgba(30, 41, 59, 0.7));
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border-radius: 18px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .track-item {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95), 
        rgba(248, 250, 252, 0.95));
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.track-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(6, 182, 212, 0.15), 
        rgba(59, 130, 246, 0.15),
        rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.track-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.track-item:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 
        0 10px 30px rgba(6, 182, 212, 0.3),
        0 0 20px var(--glow),
        0 0 0 1px rgba(6, 182, 212, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(6, 182, 212, 0.4);
}

.track-item:hover::before { opacity: 1; }
.track-item:hover::after { left: 100%; }

.track-item.active {
    border-color: rgba(6, 182, 212, 0.6);
    background: linear-gradient(135deg, 
        rgba(6, 182, 212, 0.2), 
        rgba(59, 130, 246, 0.2),
        rgba(139, 92, 246, 0.15));
    box-shadow: 
        0 8px 25px rgba(6, 182, 212, 0.4),
        0 0 30px var(--glow),
        inset 0 0 0 1px rgba(6, 182, 212, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

.track-item.active::before { opacity: 1; }

.track-info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.track-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
    letter-spacing: -0.2px;
}

.track-artist {
    font-size: 13px;
    color: var(--text-secondary);
    opacity: 0.8;
    font-weight: 500;
}

.audio-player { width: 100%; margin-top: 10px; }
.audio-player audio { width: 100%; height: 32px; outline: none; }
.audio-controls { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.play-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.play-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
}

.play-btn:active { transform: scale(1.05); }

.progress-container {
    flex: 1;
    height: 6px;
    background: var(--bg-primary);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.time-display {
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 80px;
    text-align: right;
}

@media (max-width: 1200px) {
    .main-layout { flex-direction: column; align-items: center; }
    .music-sidebar { max-width: 500px; width: 100%; position: relative; top: 0; max-height: none; }
}

@media (max-width: 600px) {
    .main-layout { padding: 15px; gap: 20px; }
    .container { padding: 15px; }
    .card { padding: 40px 30px; }
    .nickname { font-size: 36px; }
    .theme-toggle { top: 20px; right: 20px; width: 45px; height: 45px; font-size: 20px; }
    .avatar-circle { width: 100px; height: 100px; }
    .avatar-text { font-size: 40px; }
    .music-sidebar { padding: 20px; }
}

/* Нижний плеер */
.bottom-player {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(calc(100% + 25px));
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    width: 92%;
    max-width: 900px;
}

.bottom-player.visible { transform: translateX(-50%) translateY(0); }

.player-content {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 
                0 0 0 1px rgba(255, 255, 255, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 24px;
    position: relative;
    overflow: visible;
}

.player-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #06b6d4, #3b82f6, #8b5cf6, transparent);
    opacity: 0.6;
}

[data-theme="light"] .player-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(249, 250, 251, 0.9));
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.12),
                0 0 0 1px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.player-album-art {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4), 
                0 0 0 3px rgba(6, 182, 212, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.player-album-art::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.player-album-art:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 12px 35px rgba(6, 182, 212, 0.5), 
                0 0 0 3px rgba(6, 182, 212, 0.2);
}

.player-album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.player-info { flex: 1; min-width: 0; }

.player-track-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, var(--text-primary), rgba(6, 182, 212, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.player-track-artist {
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    opacity: 0.85;
}

.player-controls { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.player-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.2));
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    line-height: 1;
    padding: 0;
}

.player-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.player-btn:hover {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.4), rgba(59, 130, 246, 0.4));
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
    border-color: rgba(6, 182, 212, 0.5);
}

.player-btn:hover::before { width: 100%; height: 100%; }
.player-btn:active { transform: scale(1.05); }

.play-pause-btn {
    width: 56px;
    height: 56px;
    font-size: 22px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: white;
    box-shadow: 0 6px 25px rgba(6, 182, 212, 0.5);
    border: none;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-pause-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.6);
    transform: scale(1.2);
}

.player-progress-section { display: flex; align-items: center; gap: 15px; flex: 1; min-width: 200px; }

.player-time {
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 45px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    opacity: 0.9;
}

.player-progress-container {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: visible;
    backdrop-filter: blur(5px);
}

[data-theme="light"] .player-progress-container { background: rgba(0, 0, 0, 0.08); }

.player-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #06b6d4, #3b82f6, #8b5cf6);
    border-radius: 6px;
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.player-progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.6), 
                0 0 0 3px rgba(6, 182, 212, 0.2);
    border: 2px solid #06b6d4;
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.player-progress-handle:active { cursor: grabbing; transform: translate(-50%, -50%) scale(1.3); }
.player-progress-container:hover { height: 8px; }
.player-progress-container:hover .player-progress-handle { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }

.player-close-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.player-fullscreen-hover-bridge {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    margin-bottom: -20px;
    z-index: 9;
    pointer-events: all;
    background: transparent;
}

@media (max-width: 768px), (hover: none) and (pointer: coarse) {
    .player-fullscreen-hover-bridge,
    .player-fullscreen-hover-btn {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

.player-fullscreen-hover-btn {
    position: absolute;
    bottom: 100%;
    margin-bottom: 8px;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(6, 182, 212, 0.9) 100%);
    color: #ffffff;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(15px) scale(0.7);
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(20px);
    z-index: 10;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 4px 20px rgba(59, 130, 246, 0.4),
        0 0 40px rgba(59, 130, 246, 0.2);
}

.player-close-wrapper:hover .player-fullscreen-hover-btn,
.player-close-wrapper:hover .player-fullscreen-hover-bridge ~ .player-fullscreen-hover-btn,
.player-fullscreen-hover-bridge:hover ~ .player-fullscreen-hover-btn,
.player-fullscreen-hover-btn:hover,
.player-close-wrapper:hover .player-fullscreen-hover-bridge {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.player-close-wrapper:hover .player-fullscreen-hover-bridge ~ .player-fullscreen-hover-btn {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: all !important;
}

.player-fullscreen-hover-btn:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 1) 0%, rgba(6, 182, 212, 1) 100%);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.2),
        0 8px 30px rgba(59, 130, 246, 0.6),
        0 0 60px rgba(59, 130, 246, 0.4);
}

.player-fullscreen-hover-btn:active { transform: translateY(0) scale(0.95); }

.player-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.player-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    transform: rotate(90deg) scale(1.1);
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.player-volume-section { position: relative; flex-shrink: 0; }

.player-volume-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.2));
    backdrop-filter: blur(10px);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.player-volume-btn:hover {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.4), rgba(59, 130, 246, 0.4));
    color: var(--text-primary);
    transform: scale(1.1);
}

.player-volume-popup {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
    backdrop-filter: blur(30px);
    border-radius: 16px;
    padding: 20px 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 
                0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 50px;
}

.player-volume-popup::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
    pointer-events: all;
}

[data-theme="light"] .player-volume-popup {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(249, 250, 251, 0.98));
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12), 
                0 0 0 1px rgba(0, 0, 0, 0.06);
}

.player-volume-popup.active,
.player-volume-section:hover .player-volume-popup {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.player-volume-container-vertical {
    width: 6px;
    height: 120px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: visible;
    backdrop-filter: blur(5px);
}

[data-theme="light"] .player-volume-container-vertical { background: rgba(0, 0, 0, 0.08); }

.player-volume-bar-vertical {
    width: 100%;
    background: linear-gradient(180deg, #06b6d4, #3b82f6);
    border-radius: 6px;
    height: 100%;
    transition: height 0.1s linear;
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
    position: absolute;
    bottom: 0;
    left: 0;
}

.player-volume-handle-vertical {
    position: absolute;
    left: 50%;
    top: 100%;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: none;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.6), 
                0 0 0 3px rgba(6, 182, 212, 0.2);
    border: 2px solid #06b6d4;
    cursor: grab;
    user-select: none;
    touch-action: none;
    opacity: 0.8;
}

.player-volume-handle-vertical:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
}

.player-volume-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 40px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    opacity: 0.9;
}

@media (max-width: 768px), (hover: none) and (pointer: coarse) {
    .equalizer-bars { display: none !important; }
    .player-volume-section { display: none !important; }
    .bottom-player { width: 95%; bottom: 10px; }
    .player-content { flex-wrap: wrap; gap: 10px; padding: 12px 15px; }
    .player-progress-section { order: 4; width: 100%; margin-top: 10px; }
    .player-controls { order: 2; }
    .player-info { order: 1; flex: 1; }
    .player-album-art { width: 50px; height: 50px; }
}

/* Fullscreen Player - Modern Redesign */
.fullscreen-player {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #000000 !important;
    z-index: 99999 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden !important;
    visibility: hidden;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.fullscreen-player.active {
    visibility: visible;
    opacity: 1;
}

/* Dynamic background glow */
.fullscreen-player::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15), transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: pulseBackground 8s ease-in-out infinite alternate;
}

@keyframes pulseBackground {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.9); }
    100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

/* Close Button */
.fullscreen-close-btn {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.fullscreen-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg) scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Content Container */
.fullscreen-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 500px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Album Art */
.fullscreen-album-art-container {
    width: 320px;
    height: 320px;
    border-radius: 24px;
    position: relative;
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.6);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.fullscreen-album-art-container:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 40px 70px -5px rgba(0, 0, 0, 0.7);
}

.fullscreen-album-art, 
.fullscreen-album-art-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    object-fit: cover;
    /* Glass border effect */
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.fullscreen-album-art-placeholder {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: rgba(255, 255, 255, 0.1);
}

/* Track Info */
.fullscreen-info {
    text-align: center;
    width: 100%;
    margin-bottom: 10px;
}

.fullscreen-track-title {
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    line-height: 1.3;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
    letter-spacing: -0.5px;
}

.fullscreen-track-artist {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* Controls Section */
.fullscreen-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-top: 10px;
}

.fullscreen-btn-control {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.fullscreen-btn-control:hover {
    color: white;
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.prev-btn svg, .next-btn svg {
    width: 20px;
    height: 20px;
}

/* Main Play Button */
.fullscreen-btn-control.play-pause-btn {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    color: black;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fullscreen-btn-control.play-pause-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.3);
    color: var(--accent); /* Icon color on hover */
}

.fullscreen-btn-control.play-pause-btn svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* Progress Section */
.fullscreen-progress-section {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.fullscreen-time {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    width: 45px;
    text-align: center;
}

.fullscreen-progress-container {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: height 0.2s ease;
}

.fullscreen-progress-container:hover {
    height: 8px;
}

.fullscreen-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    border-radius: 10px;
    position: relative;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

/* Hide default handle for cleaner look */
.fullscreen-progress-handle {
    display: none; 
}

/* Mobile Adaptation */
@media (max-width: 768px) {
    .fullscreen-content {
        padding: 30px 20px;
        gap: 30px;
    }
    
    .fullscreen-album-art-container {
        width: 260px;
        height: 260px;
    }
    
    .fullscreen-track-title {
        font-size: 24px;
    }
    
    .fullscreen-controls {
        gap: 35px;
    }
    
    .fullscreen-btn-control.play-pause-btn {
        width: 70px;
        height: 70px;
    }
    
    .fullscreen-close-btn {
        top: 20px;
        right: 20px;
    }
}

/* Light Theme Overrides */
[data-theme="light"] .fullscreen-player {
    background: #f8fafc !important;
}

[data-theme="light"] .fullscreen-track-title {
    color: #0f172a;
    text-shadow: none;
}

[data-theme="light"] .fullscreen-track-artist {
    color: #64748b;
}

[data-theme="light"] .fullscreen-time {
    color: #94a3b8;
}

[data-theme="light"] .fullscreen-progress-container {
    background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .fullscreen-btn-control {
    color: #94a3b8;
}

[data-theme="light"] .fullscreen-btn-control:hover {
    color: #0f172a;
}

[data-theme="light"] .fullscreen-btn-control.play-pause-btn {
    background: #0f172a;
    color: white;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.2);
}

[data-theme="light"] .fullscreen-btn-control.play-pause-btn:hover {
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.3);
    color: #ffffff;
}

[data-theme="light"] .fullscreen-close-btn {
    background: rgba(0, 0, 0, 0.05);
    color: #0f172a;
    border-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .fullscreen-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}
.legal-footer { width: 100%; margin-top: 1px; padding: 40px 20px; background: transparent; border-top: 1px solid rgba(128, 128, 128, 0.1); }
.legal-footer-content { max-width: 800px; margin: 0 auto; text-align: center; color: #888; font-size: 13px; line-height: 1.8; letter-spacing: 0.3px; }
.legal-footer-content p { margin: 10px 0; opacity: 0.85; transition: opacity 0.3s ease; }
.legal-footer-content p:hover { opacity: 1; }
html[data-theme="light"] .legal-footer { border-top-color: rgba(128, 128, 128, 0.2); }
html[data-theme="light"] .legal-footer-content { color: #666; }
@media (max-width: 768px) {
    .legal-footer { margin-top: 40px; padding: 30px 15px; }
    .legal-footer-content { font-size: 12px; line-height: 1.6; }
    .legal-footer-content p { margin: 10px 0; }
}

/* Анимация фона при воспроизведении музыки */
body.music-playing {
    background: linear-gradient(-45deg, #0f172a, #1e293b, #111827, #0e3a5a);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

[data-theme="light"] body.music-playing {
    background: linear-gradient(-45deg, #f0f9ff, #e0f2fe, #bae6fd, #e0f2fe);
    background-size: 400% 400%;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Пульсация карточки в такт (визуально, просто анимация) */
body.music-playing .card,
body.music-playing .music-section {
    animation: cardPulse 4s ease-in-out infinite;
}

@keyframes cardPulse {
    0% {
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 
                    0 0 0 1px rgba(255, 255, 255, 0.08),
                    inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }
    50% {
        box-shadow: 0 35px 100px rgba(6, 182, 212, 0.15), 
                    0 0 0 1px rgba(6, 182, 212, 0.2),
                    inset 0 1px 0 rgba(255, 255, 255, 0.1);
        border-color: rgba(6, 182, 212, 0.3);
    }
    100% {
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 
                    0 0 0 1px rgba(255, 255, 255, 0.08),
                    inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }
}

[data-theme="light"] body.music-playing .card,
[data-theme="light"] body.music-playing .music-section {
    animation: cardPulseLight 4s ease-in-out infinite;
}

@keyframes cardPulseLight {
    0% {
        box-shadow: 0 18px 60px rgba(0, 0, 0, 0.1),
                    0 0 0 1px rgba(0, 0, 0, 0.05);
    }
    50% {
        box-shadow: 0 25px 80px rgba(6, 182, 212, 0.15), 
                    0 0 0 1px rgba(6, 182, 212, 0.2);
    }
    100% {
        box-shadow: 0 18px 60px rgba(0, 0, 0, 0.1),
                    0 0 0 1px rgba(0, 0, 0, 0.05);
    }
}

/* Анимация загрузки треков (Sound Wave) */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 25px;
    width: 100%;
    grid-column: 1 / -1;
}

.loading-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 50px;
}

.loading-bar {
    width: 6px;
    height: 20%;
    background: linear-gradient(180deg, #06b6d4, #3b82f6);
    border-radius: 10px;
    animation: wave 1.2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.loading-bar:nth-child(1) { animation-delay: 0.0s; }
.loading-bar:nth-child(2) { animation-delay: 0.1s; }
.loading-bar:nth-child(3) { animation-delay: 0.2s; }
.loading-bar:nth-child(4) { animation-delay: 0.3s; }
.loading-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { 
        height: 20%; 
        opacity: 0.5;
        transform: scaleY(1);
    }
    50% { 
        height: 100%; 
        opacity: 1;
        transform: scaleY(1.1);
        box-shadow: 0 0 20px rgba(6, 182, 212, 0.6);
    }
}

.loading-text {
    font-size: 15px;
    font-weight: 600;
    background: linear-gradient(90deg, #06b6d4, #3b82f6, #8b5cf6);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 3s linear infinite;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
}

@keyframes shimmerText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Анимация загрузки внутри кнопки воспроизведения */
.loader-icon {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spinLoader 0.8s linear infinite;
    display: block;
}

@keyframes spinLoader {
    to { transform: rotate(360deg); }
}
