:root {
    --primary-color: #1db954;
    --primary-light: #1ed760;
    --primary-dark: #179c46;
    --dark-bg: #121212;
    --dark-secondary: #181818;
    --dark-tertiary: #282828;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --shadow: 0 8px 24px rgba(0,0,0,0.5);
    --gradient-opacity: 0.4;
    --neon-glow: 0 0 10px rgba(29, 185, 84, 0.8), 0 0 20px rgba(29, 185, 84, 0.6);
    --scrollbar-thumb: #535353;
    --scrollbar-thumb-hover: #646464;
    --scrollbar-track: #282828;
    --card-hover-bg: rgba(255,255,255,0.07);
    --card-active-bg: rgba(255,255,255,0.1);
    --transition-normal: all 0.25s cubic-bezier(0.3, 0, 0.4, 1);
    --transition-slow: all 0.5s cubic-bezier(0.3, 0, 0.4, 1);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border-radius: 5px;
    border: 2px solid var(--scrollbar-track);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-thumb-hover);
}

html {
    font-family: 'YS Text', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-feature-settings: 'pnum' on, 'lnum' on;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'YS Text', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    touch-action: manipulation;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: var(--gradient-opacity);
    background: linear-gradient(-45deg, #1a3a1a, #1db954, #1ed760, #1a3a1a);
    background-size: 400% 400%;
    animation: gradientBG 18s ease infinite;
}

.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(24, 24, 24, 0.8), rgba(18, 18, 18, 0.95));
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 80px);
    padding-bottom: 80px;
}

.main-content {
    flex: 1;
    padding: 15px;
}

.sidebar {
    padding: 20px;
    background-color: rgba(20, 20, 20, 0.85);
    box-shadow: 0 3px 15px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(255,255,255,0.03);
    transition: var(--transition-normal);
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}

header {
    position: sticky;
    top: 0;
    background-color: rgba(18, 18, 18, 0.9);
    padding: 10px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
    z-index: 10;
    backdrop-filter: blur(10px);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-normal);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    padding: 0 18px;
    transition: var(--transition-normal);
}

.bmw-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.search-box {
    margin: 20px 0;
    display: flex;
    transition: var(--transition-normal);
}

.search-box input {
    flex: 1;
    padding: 12px 18px;
    border: none;
    border-radius: 24px;
    font-size: 15px;
    outline: none;
    background-color: rgba(40, 40, 40, 0.7);
    color: var(--text-primary);
    transition: var(--transition-normal);
    box-shadow: 0 0 0 1px rgba(29, 185, 84, 0.2), inset 0 2px 5px rgba(0,0,0,0.2);
}

.search-box input:focus {
    background-color: #2a2a2a;
    box-shadow: 0 0 0 2px var(--primary-color), var(--neon-glow), inset 0 2px 5px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.search-box button {
    margin-left: 10px;
    padding: 0 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition-normal);
    min-width: 80px;
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3), var(--neon-glow);
    letter-spacing: 0.5px;
}

.search-box button:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(29, 185, 84, 0.4), var(--neon-glow);
}

.search-box button:active {
    background-color: var(--primary-dark);
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(29, 185, 84, 0.3);
}

.track-list {
    background-color: rgba(30, 30, 30, 0.6);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    overflow: hidden;
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
    height: 682px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
    border: 1px solid rgba(255,255,255,0.05);
}

.track-list::-webkit-scrollbar {
    width: 8px;
}

.track-list::-webkit-scrollbar-track {
    background: transparent;
    margin: 5px;
}

.track-list::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border-radius: 4px;
}

.track-list::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-thumb-hover);
}

.track-item {
    display: flex;
    align-items: center;
    padding: 15px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: var(--transition-normal);
    cursor: pointer;
    min-height: 75px;
    position: relative;
}

.track-item:hover {
    background-color: var(--card-hover-bg);
    transform: translateY(-1px);
}

.track-item:active {
    background-color: var(--card-active-bg);
    transform: scale(0.99);
}

.track-item:last-child {
    border-bottom: none;
}

.track-avatar {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 15px;
    background-color: #333;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: var(--transition-normal);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.track-item:hover .track-avatar {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.track-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    transition: var(--transition-normal);
}

.track-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: var(--transition-normal);
}

.track-item:hover .track-title {
    color: var(--primary-light);
}

.track-artist {
    color: var(--text-secondary);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: var(--transition-normal);
}

.track-tags {
    display: flex;
    flex-wrap: wrap;
    margin-top: 6px;
    gap: 6px;
}

.track-tag {
    background-color: rgba(29, 185, 84, 0.15);
    color: var(--primary-light);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    white-space: nowrap;
    transition: var(--transition-normal);
    border: 1px solid rgba(29, 185, 84, 0.2);
    font-weight: 500;
}

.track-item:hover .track-tag {
    background-color: rgba(29, 185, 84, 0.25);
}

.track-duration {
    color: var(--text-secondary);
    margin: 0 10px;
    font-size: 13px;
    min-width: 40px;
    text-align: right;
    flex-shrink: 0;
}

.favorite-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-left: 8px;
    color: var(--text-secondary);
    transition: var(--transition-normal);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0.7;
}

.favorite-btn:hover {
    background-color: rgba(255,255,255,0.1);
    color: var(--primary-color);
    opacity: 1;
    transform: scale(1.1);
}

.favorite-btn.active {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(29, 185, 84, 0.8);
    opacity: 1;
}

.favorite-btn:active {
    transform: scale(0.9);
}

.player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(18, 18, 18, 0.85);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.6);
    padding: 10px 18px 5px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    height: 70px;
    z-index: 100;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition-slow);
}

.player-left-section {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
    margin-bottom: 0;
    width: 25%;
}

.player-main-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex: 0 1 auto;
    margin-bottom: 0;
    width: 50%;
}

.player-main-controls button {
    height: 32px;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-main-controls .play-btn,
.player-main-controls button[aria-label="Play"],
.player-main-controls button:nth-child(2) {
    height: auto;
    width: auto;
    background-color: transparent;
    box-shadow: none;
}

.player-main-controls .play-pause-btn,
.player-main-controls button[aria-label="Play"],
.player-main-controls button:nth-child(3) {
    height: 48px !important;
    width: 48px !important;
    border-radius: 50% !important;
    background-color: #1db954 !important;
    border: none !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 0 15px rgba(29, 185, 84, 0.7) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    z-index: 5 !important;
}

.player-main-controls .play-pause-btn:hover,
.player-main-controls button[aria-label="Play"]:hover,
.player-main-controls button:nth-child(3):hover {
    background-color: var(--primary-light) !important;
    transform: scale(1.08) !important;
    box-shadow: 0 0 20px rgba(29, 185, 84, 0.9) !important;
}

.player-main-controls .play-pause-btn svg,
.player-main-controls button[aria-label="Play"] svg,
.player-main-controls button:nth-child(3) svg {
    height: 22px !important;
    width: 22px !important;
    color: white !important;
}

/* Увеличиваем все кнопки плеера для подстраховки */
.player-main-controls button {
    min-height: 35px !important;
    min-width: 35px !important;
    margin: 0 5px !important;
}

.player-main-controls .play-pause-btn {
    height: 70px;
    width: 70px;
    border-radius: 50%;
    background-color: #1db954;
    border: none;
    position: relative;
    margin: 0 20px;
    box-shadow: 0 0 10px rgba(29, 185, 84, 0.7);
}

.player-main-controls .play-pause-btn svg {
    height: 35px;
    width: 35px;
    color: white;
}

.player-main-controls .play-pause-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(29, 185, 84, 0.9);
}

.player-volume-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 120px;
    margin-bottom: 0;
    margin-left: auto;
}

.player-volume-slider {
    width: 80px;
}


.player-progress-bar-fill {
    background-color: #1ed760; 
    box-shadow: 0 0 5px #1ed760, 
                0 0 10px #1ed760, 
                0 0 15px #1ed760;
    height: 100%;
    border-radius: 2px;
    position: relative;
    animation: neonPulse 1.5s ease-in-out infinite alternate;
}

.player-volume-bar-fill {
    background-color: #1ed760;
    box-shadow: 0 0 5px #1ed760, 
                0 0 10px #1ed760, 
                0 0 15px #1ed760;
    height: 100%;
    border-radius: 2px;
    position: relative;
    animation: neonPulse 1.5s ease-in-out infinite alternate;
}

@keyframes neonPulse {
    from {
        box-shadow: 0 0 5px rgba(30, 215, 96, 0.7), 
                    0 0 10px rgba(30, 215, 96, 0.5), 
                    0 0 15px rgba(30, 215, 96, 0.3);
    }
    to {
        box-shadow: 0 0 8px rgba(30, 215, 96, 0.9), 
                    0 0 16px rgba(30, 215, 96, 0.7), 
                    0 0 24px rgba(30, 215, 96, 0.5), 
                    0 0 32px rgba(30, 215, 96, 0.3);
    }
}


.player-volume-slider input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #5a5a5a;
    outline: none;
    cursor: pointer;
}


.player-volume-slider input[type="range"]::-webkit-slider-runnable-track {
    background: linear-gradient(to right, #1db954 var(--volume-percentage, 50%), #5a5a5a var(--volume-percentage, 50%));
    height: 4px;
    border-radius: 2px;
}


.player-volume-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    margin-top: -4px;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}


.player-volume-slider input[type="range"]:hover::-webkit-slider-thumb {
    background: #1db954;
    box-shadow: 0 0 8px rgba(29, 185, 84, 0.7);
    transform: scale(1.2);
}


.player-volume-slider input[type="range"]::-moz-range-track {
    background: #5a5a5a;
    height: 4px;
    border-radius: 2px;
}

.player-volume-slider input[type="range"]::-moz-range-progress {
    background-color: #1db954;
    height: 4px;
    border-radius: 2px;
}

.player-volume-slider input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

.player-volume-slider input[type="range"]:hover::-moz-range-thumb {
    background: #1db954;
    box-shadow: 0 0 8px rgba(29, 185, 84, 0.7);
    transform: scale(1.2);
}

.player-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 40%;
    margin: -5px auto 0;
    order: 4;
}

.player-avatar {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 12px;
    background-color: #333;
    flex-shrink: 0;
}

.player-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.player-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-artist {
    color: var(--text-secondary);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s ease;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
}

.player-btn:active {
    background-color: rgba(255,255,255,0.1);
    transform: scale(0.95);
}

.material-icons {
    font-size: 24px;
}

.player-btn.active {
    color: var(--primary-color);
    text-shadow: var(--neon-glow);
}

.main-play-btn {
    background-color: var(--primary-color);
    width: 60px;
    height: 60px;
    box-shadow: var(--neon-glow);
}

.main-play-btn:active {
    background-color: var(--primary-light);
    transform: scale(0.95);
}

.player-current-time,
.player-duration {
    color: var(--text-secondary);
    font-size: 12px;
    min-width: 35px;
    flex-shrink: 0;
}

.player-progress-bar {
    flex: 1;
    height: 4px;
    cursor: pointer;
}

.player-progress-bar-bg {
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.2);
    border-radius: 2px;
    position: relative;
}

.player-progress-bar-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: var(--neon-glow);
}

.player-volume-icon {
    color: var(--text-primary);
}

.player-volume-bar {
    flex: 1;
    height: 4px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.player-volume-bar-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 2px;
    width: 100%;
}

.sidebar-title {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.sidebar-title .material-icons {
    font-size: 21px;
    margin-right: 10px;
    color: var(--primary-color);
    text-shadow: var(--neon-glow);
}

.favorites-list {
    margin-top: 10px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

.favorites-list::-webkit-scrollbar {
    width: 8px;
}

.favorites-list::-webkit-scrollbar-track {
    background: transparent;
    margin: 5px;
}

.favorites-list::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border-radius: 4px;
}

.favorites-list::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-thumb-hover);
}

.favorite-track-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 10px;
    transition: var(--transition-normal);
    cursor: pointer;
    position: relative;
    margin-bottom: 6px;
    border: 1px solid rgba(255,255,255,0);
}

.favorite-track-item:hover {
    background-color: var(--card-hover-bg);
    border: 1px solid rgba(255,255,255,0.05);
    transform: translateY(-2px);
}

.favorite-track-item:active {
    background-color: var(--card-active-bg);
    transform: scale(0.98);
}

.favorite-track-item:last-child {
    border-bottom: none;
}

.favorite-avatar {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 12px;
    background-color: #333;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: var(--transition-normal);
    border: 1px solid rgba(255,255,255,0.05);
}

.favorite-track-item:hover .favorite-avatar {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.favorite-track-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.favorite-track-title {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.favorite-track-artist {
    color: var(--text-secondary);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.remove-favorite {
    color: var(--primary-color);
    background: rgba(29, 185, 84, 0.1);
    border: none;
    cursor: pointer;
    margin-left: 10px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    transition: var(--transition-normal);
    opacity: 0.7;
    border: 1px solid rgba(29, 185, 84, 0.2);
}

.remove-favorite:hover {
    background-color: rgba(29, 185, 84, 0.2);
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 0 10px rgba(29, 185, 84, 0.3);
}

.remove-favorite:active {
    transform: scale(0.9);
}

.remove-favorite .material-icons {
    font-size: 18px;
}

.no-favorites {
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
}

.now-playing {
    background-color: rgba(29, 185, 84, 0.15) !important;
    border-left: 3px solid var(--primary-color);
}

.player-expanded {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--dark-bg);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.player-expanded.show {
    transform: translateY(0);
}

.player-expanded-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.player-expanded-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

.player-expanded-avatar-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto 30px;
}

.player-expanded-avatar {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    object-fit: cover;
    background-color: #333;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
}

.player-expanded-avatar-glow {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 30px;
    background-color: var(--primary-color);
    z-index: 1;
    filter: blur(15px);
    opacity: 0.7;
    transition: background-color 0.5s ease;
}

.player-expanded-info {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 5;
}

.player-expanded-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.player-expanded-artist {
    font-size: 18px;
    color: var(--text-secondary);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.player-expanded-progress {
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: var(--neon-glow);
}

.player-expanded-time {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: 14px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.player-expanded-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    gap: 15px;
    background-color: rgba(18, 18, 18, 0.3);
    border-radius: 30px;
    padding: 10px;
}

.player-expanded-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 28px;
    cursor: pointer;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.player-expanded-btn:active {
    transform: scale(0.95);
    background-color: rgba(255, 255, 255, 0.1);
}

.player-expanded-btn.active {
    color: var(--primary-color);
    text-shadow: var(--neon-glow);
}

.player-expanded-main-btn {
    background-color: var(--primary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: var(--neon-glow);
    transition: all 0.2s ease;
}

.player-expanded-main-btn:active {
    transform: scale(0.95);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.pulse {
    animation: pulse 1.5s infinite;
}


@media (max-width: 767px) {
    .player {
        height: auto;
        padding: 10px 15px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        min-height: 60px;
    }
    
    .player-left-section {
        width: auto;
        min-width: unset;
        margin-bottom: 0;
        gap: 10px;
        flex: 0 0 auto;
    }
    
    .player-album-cover {
        width: 40px;
        height: 40px;
        border-radius: 4px;
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    }
    
    .player-track-info {
        max-width: 60%;
        flex: 1;
    }
    
    .player-track-title {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 600;
    }
    
    .player-track-artist {
        font-size: 12px;
        color: #a0a0a0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .player-main-controls {
        width: auto;
        justify-content: flex-end;
        gap: 10px;
        margin-bottom: 0;
        flex: 0 0 auto;
        display: flex !important;
    }
    
    .player-main-controls button {
        display: none !important;
    }
    
    .player-main-controls .play-pause-btn,
    .player-main-controls button[aria-label="Play"],
    .player-main-controls button[aria-label="Pause"],
    .player-main-controls button:nth-child(3) {
        display: flex !important;
        height: 36px !important;
        width: 36px !important;
        box-shadow: 0 0 6px rgba(29, 185, 84, 0.5) !important;
        margin: 0 !important;
        background-color: #1db954 !important;
        border-radius: 50% !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .player-main-controls .play-pause-btn svg,
    .player-main-controls button[aria-label="Play"] svg,
    .player-main-controls button[aria-label="Pause"] svg,
    .player-main-controls button:nth-child(3) svg {
        height: 18px !important;
        width: 18px !important;
        color: white !important;
    }
    
    .player-volume-container,
    .player-progress-wrapper {
        display: none;
    }

    .bmw-logo {
        height: 40px;
    }
}


@media (max-width: 480px) {
    .player {
        padding: 8px 10px;
    }
    
    .player-album-cover {
        width: 35px;
        height: 35px;
    }
    
    .player-track-title {
        font-size: 13px;
    }
    
    .player-track-artist {
        font-size: 11px;
    }
}

@media (min-width: 768px) {
    :root {
        --gradient-opacity: 0.5;
    }
    
    .app-container {
        flex-direction: row;
        min-height: calc(100vh - 90px);
        padding-bottom: 0;
    }
    
    .sidebar {
        flex: 0 0 280px;
        box-shadow: -2px 0 5px rgba(0,0,0,0.3);
        order: 1;
    }
    
    .main-content {
        flex: 1;
        padding: 20px;
    }
    
    .player {
        height: 90px;
        padding: 15px 20px;
    }
    
    .player-avatar {
        width: 60px;
        height: 60px;
    }
    
    .player-expanded-avatar-container {
        width: 300px;
        height: 300px;
    }
    
    .player-expanded-title {
        font-size: 28px;
    }
    
    .player-expanded-artist {
        font-size: 20px;
    }
    
    .track-list {
        max-height: calc(100vh - 220px);
    }
    
    .favorites-list {
        max-height: calc(100vh - 220px);
    }
}


.modal-player {
    background-color: rgba(40, 40, 40, 0.98);
    border-radius: 8px;
    padding: 20px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}


.modal-player .player-progress-wrapper,
.modal-content .player-progress-wrapper {
    display: flex !important;
    align-items: center;
    width: 100% !important;
    margin: 20px 0 !important;
    gap: 10px;
    order: unset;
}

.modal-player .player-progress-bar,
.modal-content .player-progress-bar {
    height: 5px;
    background-color: rgba(255, 255, 255, 0.2);
    width: 100%;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.modal-player .player-progress-bar-fill,
.modal-content .player-progress-bar-fill {
    background-color: #1ed760;
    box-shadow: 0 0 5px #1ed760, 
                0 0 10px #1ed760, 
                0 0 15px #1ed760;
    height: 100%;
    border-radius: 2px;
    position: absolute;
    left: 0;
    top: 0;
    animation: neonPulse 1.5s ease-in-out infinite alternate;
}

.modal-player .player-progress-time,
.modal-content .player-progress-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    min-width: 40px;
    text-align: center;
}

/* Делаем прогресс-бар интерактивным */
.modal-player .player-progress-bar:hover,
.modal-content .player-progress-bar:hover {
    cursor: pointer;
    height: 6px;
    transition: height 0.2s ease;
}


.modal-player .track-info,
.modal-content .track-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.modal-player .track-cover,
.modal-content .track-cover {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    margin-right: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.modal-player .track-details,
.modal-content .track-details {
    flex-grow: 1;
}

.modal-player .track-title,
.modal-content .track-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.modal-player .track-artist,
.modal-content .track-artist {
    font-size: 14px;
    opacity: 0.8;
}


@media (max-width: 767px) {
    .modal-player .player-progress-wrapper,
    .modal-content .player-progress-wrapper {
        display: flex !important; 
    }
}


.track-modal,
.modal-player,
.modal-content,
.modal-dialog {
    position: relative;
}


.track-modal .player-progress-wrapper,
.modal-player .player-progress-wrapper,
.modal-content .player-progress-wrapper,
[class*="modal"] .player-progress-wrapper,
.modal .player-progress-wrapper,
body .modal .player-progress-wrapper {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    margin: 20px auto !important;
    z-index: 1000 !important;
    position: relative !important;
    min-height: 15px !important;
    padding: 5px 0 !important;
}


.track-modal .player-progress-bar,
.modal-player .player-progress-bar,
.modal-content .player-progress-bar,
[class*="modal"] .player-progress-bar {
    height: 6px !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 3px !important;
    position: relative !important;
    overflow: visible !important;
    z-index: 1001 !important;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.5) !important;
}


.track-modal .player-progress-bar-fill,
.modal-player .player-progress-bar-fill,
.modal-content .player-progress-bar-fill,
[class*="modal"] .player-progress-bar-fill {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: #1ed760 !important;
    box-shadow: 0 0 5px #1ed760, 
                0 0 10px #1ed760 !important;
    height: 100% !important;
    border-radius: 3px !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    min-width: 5px !important;
    z-index: 1002 !important;
}


.track-modal .player-progress-time,
.modal-player .player-progress-time,
.modal-content .player-progress-time,
[class*="modal"] .player-progress-time {
    display: block !important;
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    min-width: 40px !important;
    text-align: center !important;
}

.modal-progress-container {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    margin: 20px 0 !important;
    position: relative !important;
    height: 20px !important;
}

.modal-progress-bar {
    height: 6px !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
    width: 100% !important;
    border-radius: 3px !important;
    position: relative !important;
    overflow: visible !important;
}

.modal-progress-bar-fill {
    background-color: #1ed760 !important;
    box-shadow: 0 0 5px #1ed760, 
                0 0 10px #1ed760 !important;
    height: 100% !important;
    border-radius: 3px !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    min-width: 5px !important;
}


.floating-spheres-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.floating-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(25px);
    opacity: 0;
    transition: opacity 1.5s ease, transform 10s cubic-bezier(0.25, 0.1, 0.25, 1);
    z-index: 1;
}

.sphere-1 {
    width: 450px;
    height: 450px;
    background-color: rgba(29, 185, 84, 0.4);
    left: 10%;
    top: 20%;
}

.sphere-2 {
    width: 550px;
    height: 550px;
    background-color: rgba(45, 70, 185, 0.4);
    right: 15%;
    top: 30%;
}

.sphere-3 {
    width: 400px;
    height: 400px;
    background-color: rgba(185, 29, 95, 0.4);
    left: 25%;
    bottom: 20%;
}

.sphere-4 {
    width: 500px;
    height: 500px;
    background-color: rgba(188, 185, 40, 0.4);
    right: 25%;
    bottom: 30%;
}

.sphere-5 {
    width: 350px;
    height: 350px;
    background-color: rgba(132, 38, 173, 0.4);
    left: 40%;
    top: 15%;
}

.sphere-6 {
    width: 280px;
    height: 280px;
    background-color: rgba(235, 75, 35, 0.4);
    right: 35%;
    top: 45%;
}

.sphere-7 {
    width: 320px;
    height: 320px;
    background-color: rgba(25, 194, 209, 0.4);
    left: 30%;
    bottom: 40%;
}

.sphere-8 {
    width: 230px;
    height: 230px;
    background-color: rgba(242, 142, 28, 0.4);
    right: 20%;
    top: 10%;
}

.sphere-9 {
    width: 380px;
    height: 380px;
    background-color: rgba(93, 211, 158, 0.4);
    left: 15%;
    top: 50%;
}

.sphere-10 {
    width: 270px;
    height: 270px;
    background-color: rgba(164, 74, 206, 0.4);
    right: 10%;
    bottom: 15%;
}

.sphere-11 {
    width: 310px;
    height: 310px;
    background-color: rgba(16, 152, 173, 0.4);
    left: 5%;
    bottom: 35%;
}

.sphere-12 {
    width: 340px;
    height: 340px;
    background-color: rgba(224, 81, 148, 0.4);
    right: 30%;
    bottom: 5%;
}

.player-expanded.show .floating-sphere {
    opacity: 0.7;
}


.player-expanded-info,
.player-expanded-progress,
.player-expanded-header {
    position: relative;
    z-index: 5; 
}


.player-expanded-title,
.player-expanded-artist,
.player-expanded-time,
#expanded-current-time,
#expanded-duration {
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}


.floating-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(25px); 
    opacity: 0;
    transition: opacity 1.5s ease, transform 10s cubic-bezier(0.25, 0.1, 0.25, 1);
    z-index: 1; 
}

.sphere-1 {
    width: 450px;
    height: 450px;
    background-color: rgba(29, 185, 84, 0.4);
    left: 10%;
    top: 20%;
}

.sphere-2 {
    width: 550px;
    height: 550px;
    background-color: rgba(45, 70, 185, 0.4);
    right: 15%;
    top: 30%;
}

.sphere-3 {
    width: 400px;
    height: 400px;
    background-color: rgba(185, 29, 95, 0.4);
    left: 25%;
    bottom: 20%;
}

.sphere-4 {
    width: 500px;
    height: 500px;
    background-color: rgba(188, 185, 40, 0.4);
    right: 25%;
    bottom: 30%;
}

.sphere-5 {
    width: 350px;
    height: 350px;
    background-color: rgba(132, 38, 173, 0.4);
    left: 40%;
    top: 15%;
}


@media (max-width: 768px) {
 
    .player-expanded-controls {
        position: relative;
        z-index: 5;
        background-color: rgba(18, 18, 18, 0.3);
        border-radius: 30px;
        padding: 10px;
        margin: 15px 0;
    }
}


.track-avatar,
.favorite-track-avatar {
    position: relative;
    overflow: hidden;
}


.track-item.now-playing,
.favorite-track-item.now-playing {
    background-color: rgba(29, 185, 84, 0.15) !important;
    border-left: 3px solid var(--primary-color);
}

.track-item.now-playing .track-title,
.favorite-track-item.now-playing .favorite-track-title {
    color: var(--primary-color);
}


.track-avatar.playing,
.favorite-track-avatar.playing {
    position: relative;
}

.track-avatar.playing::after,
.favorite-track-avatar.playing::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #1db954;
    animation: pulse-line 1.5s ease infinite;
}

@keyframes pulse-line {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}


@font-face {
    font-family: 'YS Text';
    src: url('https://yastatic.net/s3/home/fonts/ys/1/text-regular.woff2') format('woff2'),
         url('https://yastatic.net/s3/home/fonts/ys/1/text-regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'YS Text';
    src: url('https://yastatic.net/s3/home/fonts/ys/1/text-medium.woff2') format('woff2'),
         url('https://yastatic.net/s3/home/fonts/ys/1/text-medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'YS Text';
    src: url('https://yastatic.net/s3/home/fonts/ys/1/text-bold.woff2') format('woff2'),
         url('https://yastatic.net/s3/home/fonts/ys/1/text-bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


@media (max-width: 767px) {
    .bmw-logo {
        height: 40px;
    }
}

@media (min-width: 1200px) {
    .bmw-logo {
        height: 60px;
    }
}


.add-track-btn {
    position: fixed;
    top: 12px;
    right: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 28px;
    padding: 9px 20px;
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: 0 4px 15px rgba(29, 185, 84, 0.4);
    z-index: 1000;
    text-decoration: none;
    letter-spacing: 0.5px;
}

@media (max-width: 767px) {
    .add-track-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0; 
        overflow: hidden;
        position: fixed;
        top: 12px;
        right: 15px;
        z-index: 1000;
    }
    
    .add-track-btn * {
        display: none !important; 
    }
    
    .add-track-btn::after {
        content: "+";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 24px; 
        color: white;
        font-weight: bold;
        line-height: 1;
        margin: 0;
        padding: 0;
    }
}

.add-track-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(29, 185, 84, 0.6);
}

.add-track-btn:active {
    transform: scale(0.96);
    background-color: var(--primary-dark);
    box-shadow: 0 2px 10px rgba(29, 185, 84, 0.4);
}

.add-track-btn .material-icons {
    margin-right: 7px;
    font-size: 20px;
}


@keyframes pulse-button {
    0% {
        box-shadow: 0 0 0 0 rgba(29, 185, 84, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(29, 185, 84, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(29, 185, 84, 0);
    }
}

.add-track-btn {
    animation: pulse-button 2s infinite;
}


.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 100;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: var(--dark-secondary);
    margin: 10% auto;
    padding: 25px;
    border-radius: 8px;
    max-width: 500px;
    box-shadow: var(--shadow);
    animation: fadeIn 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--text-secondary);
    font-size: 22px;
    cursor: pointer;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid var(--dark-tertiary);
    background-color: var(--dark-bg);
    color: var(--text-primary);
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
    width: 100%;
}

.submit-btn:hover {
    background-color: var(--primary-light);
}


.youtube-btn {
    position: absolute;
    top: 10px;
    right: 18px;
    background-color: #ff0000; 
    color: white;
    border: none;
    border-radius: 22px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
    z-index: 20;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.youtube-btn:hover {
    background-color: #e50000; 
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 0, 0, 0.4);
}

.youtube-btn:active {
    background-color: #cc0000;
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
}

.youtube-btn .material-icons {
    margin-right: 5px;
    font-size: 18px;
}

/* Стили для заставки */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    overflow: hidden;
}

.splash-screen.active {
    opacity: 1;
}

.splash-screen.fade-out {
    opacity: 0;
}

.splash-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    transform: translateY(30px);
    opacity: 0;
    animation: splash-fade-in 1s forwards 0.2s;
}

.splash-logo {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.splash-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(29, 185, 84, 0.7));
    animation: iconPulse 4s ease-in-out infinite alternate;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.splash-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
    text-shadow: 0 0 15px rgba(29, 185, 84, 0.5);
    letter-spacing: 2px;
    background: linear-gradient(to right, #ffffff, #1db954, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: splash-title-shine 3s linear infinite;
}

.splash-loading {
    display: flex;
    gap: 8px;
}

.splash-loading span {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: splash-loading 1.4s infinite ease-in-out both;
    box-shadow: 0 0 10px rgba(29, 185, 84, 0.6);
}

.splash-loading span:nth-child(1) {
    animation-delay: -0.32s;
}

.splash-loading span:nth-child(2) {
    animation-delay: -0.24s;
}

.splash-loading span:nth-child(3) {
    animation-delay: -0.16s;
}

.splash-loading span:nth-child(4) {
    animation-delay: -0.08s;
}

.splash-spheres {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.splash-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0;
    animation: splash-sphere-fade 5s forwards;
}

.splash-screen .sphere-1 {
    width: 450px;
    height: 450px;
    background-color: rgba(29, 185, 84, 0.4);
    left: 10%;
    top: 20%;
    animation-delay: 0.2s;
}

.splash-screen .sphere-2 {
    width: 550px;
    height: 550px;
    background-color: rgba(45, 70, 185, 0.4);
    right: 15%;
    top: 30%;
    animation-delay: 0.4s;
}

.splash-screen .sphere-3 {
    width: 400px;
    height: 400px;
    background-color: rgba(185, 29, 95, 0.4);
    left: 25%;
    bottom: 20%;
    animation-delay: 0.6s;
}

.splash-screen .sphere-4 {
    width: 500px;
    height: 500px;
    background-color: rgba(188, 185, 40, 0.4);
    right: 25%;
    bottom: 30%;
    animation-delay: 0.8s;
}

.splash-screen .sphere-5 {
    width: 350px;
    height: 350px;
    background-color: rgba(132, 38, 173, 0.4);
    left: 40%;
    top: 15%;
    animation-delay: 1s;
}

@keyframes splash-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes splash-logo-pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

@keyframes splash-loading {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.6;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes splash-sphere-fade {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 0.5;
        transform: scale(1);
    }
}

@keyframes splash-title-shine {
    0% {
        background-position: -200px;
    }
    100% {
        background-position: 200px;
    }
}

/* Updated styles for image icon and enhanced text animations */

/* Enhanced icon styles for PNG image */
.splash-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(29, 185, 84, 0.7));
    animation: iconPulse 4s ease-in-out infinite alternate;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

@keyframes iconPulse {
    0% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 15px rgba(29, 185, 84, 0.7));
    }
    50% {
        transform: scale(1.1) rotate(5deg);
        filter: drop-shadow(0 0 25px rgba(29, 185, 84, 0.9));
    }
    100% {
        transform: scale(1) rotate(-5deg);
        filter: drop-shadow(0 0 15px rgba(29, 185, 84, 0.7));
    }
}

/* Text animations with more dramatic effects */
.splash-title span {
    display: inline-block;
    position: relative;
    animation: textReveal 1.5s forwards;
    opacity: 0;
    transform: perspective(1000px) rotateX(90deg);
    transform-origin: bottom;
    filter: blur(10px);
    background: linear-gradient(135deg, #ffffff 0%, #d0d0d0 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.splash-title span.revealed {
    animation: letterFloat 3s ease-in-out infinite;
    animation-delay: 0s !important;
    background: linear-gradient(135deg, #ffffff 0%, #d0d0d0 50%, #ffffff 100%);
    background-size: 200% auto;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation-direction: alternate;
}

@keyframes letterFloat {
    0% {
        transform: translateY(0) rotateY(0deg);
        text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        background-position: 0% 50%;
    }
    25% {
        transform: translateY(-8px) rotateY(10deg);
        text-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
        background-position: 50% 50%;
    }
    50% {
        transform: translateY(0) rotateY(0deg);
        text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        background-position: 100% 50%;
    }
    75% {
        transform: translateY(8px) rotateY(-10deg);
        text-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
        background-position: 50% 50%;
    }
    100% {
        transform: translateY(0) rotateY(0deg);
        text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        background-position: 0% 50%;
    }
}

/* Enhanced 3D effect for title container */
.splash-title-container {
    transform-style: preserve-3d;
    animation: titleContainer 5s ease-in-out infinite alternate;
}

@keyframes titleContainer {
    0% {
        transform: perspective(1000px) rotateX(0deg) translateZ(0);
    }
    100% {
        transform: perspective(1000px) rotateX(5deg) translateZ(20px);
    }
}

/* Enhanced typing effect for subtitle */
.splash-subtitle .typing-text {
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    display: inline-block;
    animation: typing 3.5s steps(40) 2.5s forwards;
    border-right: 2px solid #1db954;
}

.splash-subtitle .typing-text:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
                rgba(29, 185, 84, 0) 0%,
                rgba(29, 185, 84, 0.8) 50%,
                rgba(29, 185, 84, 0) 100%);
    bottom: -2px;
    left: 0;
    animation: underlineShine 2s infinite;
    opacity: 0;
    animation-delay: 5s;
}

@keyframes underlineShine {
    0% {
        left: -100%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

/* More dramatic glitch effect */
.splash-subtitle.glitch {
    animation: glitch 0.3s ease-in-out infinite;
    position: relative;
}

.splash-subtitle.glitch:before,
.splash-subtitle.glitch:after {
    content: 'Your Ultimate Music Experience';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    animation: typing 3.5s steps(40) 2.5s forwards;
}

.splash-subtitle.glitch:before {
    left: 2px;
    text-shadow: -2px 0 #ff00ff;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    animation: glitch-top 0.2s infinite linear alternate-reverse;
}

.splash-subtitle.glitch:after {
    left: -2px;
    text-shadow: 2px 0 #00ffff;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    animation: glitch-bottom 0.2s infinite linear alternate-reverse;
}

@keyframes glitch-top {
    0% { transform: translateX(0); }
    100% { transform: translateX(2px); }
}

@keyframes glitch-bottom {
    0% { transform: translateX(0); }
    100% { transform: translateX(-2px); }
}

/* Enhanced logo container */
.splash-logo {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(145deg, rgba(40, 40, 40, 0.4), rgba(20, 20, 20, 0.4));
    border-radius: 50%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
                inset 0 5px 15px rgba(255, 255, 255, 0.1);
    animation: float3D 6s ease-in-out infinite;
    transform-style: preserve-3d;
    perspective: 1000px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* Add light reflection effect on logo */
.splash-logo:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0) 0%, 
                rgba(255, 255, 255, 0.1) 50%, 
                rgba(255, 255, 255, 0) 100%);
    transform: rotate(45deg);
    animation: logoReflection 6s linear infinite;
}

@keyframes logoReflection {
    0% { transform: rotate(45deg) translateY(-100%); }
    100% { transform: rotate(45deg) translateY(100%); }
}

/* Dots equalizer styles - static version */
.dots-equalizer {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 20px;
    margin-top: 10px;
}

.equalizer-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
    box-shadow: 0 0 5px var(--primary-color);
    opacity: 1;
}

/* Enhanced splash screen text styles */
.splash-name {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(to right, #ffffff, #1db954, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: text-shine 3s linear infinite;
    text-shadow: 0 0 15px rgba(29, 185, 84, 0.3);
}

.splash-tagline {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in-up 1s ease forwards 0.8s;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.splash-text-container {
    text-align: center;
    margin-top: 25px;
    position: relative;
    z-index: 10;
}

@keyframes text-shine {
    0% {
        background-position: -200px;
    }
    100% {
        background-position: 200px;
    }
}

@keyframes fade-in-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media query for mobile devices */
@media (max-width: 767px) {
    .splash-name {
        font-size: 32px;
    }
    
    .splash-tagline {
        font-size: 16px;
    }
}