:root {
    --primary-color: rgba(255, 255, 255, 0.1);
    --accent-color: #ffffffc9;
    --text-color: white;
    --background: 
        radial-gradient(circle at 30% 30%, #1b27354d, #090a0f75),
        linear-gradient(to bottom, rgba(2, 1, 17, 0.6) 20%, rgba(58, 58, 82, 0.6) 80%),
        linear-gradient(135deg, #000428, #1b2735, #274060, #5290a5, #000000);
    --glassmorphism: rgba(255, 255, 255, 0.05);
    --glassmorphism-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: var(--background);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden; 
}

#wrapper {
    box-shadow: 0 0 150px 0 rgba(0, 0, 0, 0.15);
    border: solid 2px #314459;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    position: absolute;
    transition: opacity 1s ease-in-out;
    z-index: 10;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
}

#header {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    margin: 0;
    padding: 0;
    position: relative;
}

#logo {
    position: absolute;
    left: 30px;
    height: 130px;
    line-height: 130px;
    display: flex;
    align-items: center;
    gap: 15px;
}

#logo .subtitle {
    font-size: 1.5rem;
    background: linear-gradient(45deg, #fff6e6, #ffed89);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: normal;
    display: block;
    line-height: normal;
    margin-top: 10px;
    font-family: "Segoe UI", sans-serif;
    text-shadow: 0 0 10px rgba(255, 217, 0, 0.568);
    opacity: 0.9;
}

#logo a {
    color: #dad4db;
    text-decoration: none;
}

#logo h1 {
    font-family: "Open Sans", sans-serif;
    font-size: 3em;
    font-weight: normal; 
    background: linear-gradient(45deg, #ffffff, #ffed89);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

#menu {
    text-shadow: 0 0 10px rgba(255, 217, 0, 0.568);
    opacity: 0.9;
    background: linear-gradient(45deg, #fff6e6, #ffed89);
    background-clip: text;
    line-height: 57px;
    position: absolute;
    right: 40px;
    top: 20px;
    height: 57px;
    font-family: "Open Sans", sans-serif;
}

#menu a {
    
    text-transform: uppercase;
    text-decoration: none;
    color: #d1d1d1;
    font-size: 1.2em;
}

#menu ul {
    
    padding: 0 20px;
    list-style: none;
}

#menu ul li {
    
    display: inline;
    padding: 10px;
    margin: 0 8px;
}

#menu ul li.active {
    
    background: #F2EBDE;
    border: solid 1px #BFB5A4;
    box-shadow: inset 0px 0px 0px 1px #fff;
    text-shadow: 1px 1px 0px rgba(255,255,255,0.9);
}

#menu ul li.active a {
    color: #403B31;
}

.content-wrapper {
    display: flex;
    height: calc(100vh - 100px - 80px);
    position: relative;
    transition: all 0.4s ease;
    margin-bottom: 80px;
}

.song-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 2rem;
    padding: 2rem;
    overflow-y: auto;
    transition: all 0.4s ease;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--glassmorphism);
}

.song-grid::-webkit-scrollbar {
    width: 8px;
}

.song-grid::-webkit-scrollbar-track {
    background: var(--glassmorphism);
    border-radius: 4px;
}

.song-grid::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.song-grid::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
    opacity: 0.8;
}

.song-card {
    width: 500px;
    height: 500px;
    background: var(--glassmorphism);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glassmorphism-border);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    position: relative;
}

.song-card:hover {
    transform: scale(1.05)!important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 20;
}

.song-card:active {
    transform: scale(0.95) translateZ(-20px)!important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.song-card.selected {
    box-shadow: 0 0 15px 5px rgba(255, 240, 157, 0.7);
    border: 2px solid rgba(250, 255, 203, 0.774);
}

.song-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.song-info {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.7);
    position: absolute;
    bottom: 0;
    width: 100%;
    backdrop-filter: blur(5px);
}

.song-title, .song-artist {
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.song-artist {
    font-size: 0.9rem;
    opacity: 0.7;
}

.sidebar {
    width: 0;
    height: calc(100vh - 100px - 80px);
    background: var(--glassmorphism);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-left: 1px solid var(--glassmorphism-border);
    transition: width 0.4s ease;
    overflow: hidden;
}

.sidebar.expanded {
    width: 350px;
}

.sidebar-content {
    padding: 2rem;
    width: 350px;
}

.sidebar-toggle {
    position: absolute;
    right: 1rem;
    top: 1rem;
    background: var(--glassmorphism);
    border: 1px solid var(--glassmorphism-border);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow);
}

.player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(17, 25, 40, 0.95); /* Slightly darker and more opaque */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--glassmorphism-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 50;
    
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.player-control {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-progress {
    flex: 1;
    margin: 0 2rem;
}

.progress-bar {
    width: 100%;
    height: 5px;
    background: var(--primary-color);
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: var(--accent-color);
    border-radius: 5px;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 0.3rem;
    object-fit: cover;
    background-color: rgba(255, 255, 255, 0.05);
}

.eq-container {
    margin-top: 2rem;
}

.eq-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.eq-sliders {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.eq-slider {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.eq-slider input {
    appearance: slider-vertical;
    width: 8px;
    height: 150px;
    background: var(--primary-color);
    outline: none;
    margin-bottom: 0.5rem;
}

.eq-slider input::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
}

.eq-slider span {
    font-size: 0.8rem;
    opacity: 0.7;
}

.visualizer-container {
    position: fixed;
    bottom: 80px;
    left: 0;
    width: 100%;
    height: 300px;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 40;
    pointer-events: none;
}

.visualizer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.visualizer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
 
    pointer-events: none;
}

.canvas-container {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.visualizer-canvas {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

.effects-container {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.effect-control {
    margin: 1rem 0;
}

.effect-slider {
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    appearance: none;
    border-radius: 2px;
    outline: none;
}

.effect-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
}

.effect-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
}