:root {
    --primary-color: #2e3a4e;
    --highlight-light: rgba(255, 255, 255, 0.414);
    --shadow-dark: rgba(0, 0, 0, 0.4);
    --text-color: #f18735;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: url(background.jpg) no-repeat center center/cover;
    color: var(--text-color);
    height: 100vh;
    overflow: hidden;
}

.player-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    padding: 5vh 5vw;
    background: rgba(46, 58, 78, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.player-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
    gap: 20px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    /* The following properties ensure the logo is not pushed off-center by the menu button */
    padding-left: center; /* width of menu-container + gap */
}

.logo {
    max-width: 250px;
    height: auto;
    opacity: 0.8;
}

#visualizer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.4;
    background: rgba(0,0,0,0.2);
    box-shadow: inset 5px 5px 10px var(--shadow-dark), inset -5px -5px 10px var(--highlight-light);
}

.track-info {
    text-align: center;
}

#status-bar {
    font-size: 1em;
    color: #9ab;
    margin: 0;
}

.song-title {
    font-size: 1.8em;
    font-weight: 600;
    margin: 10px 0 0;
}

.control-btn, .social-btn {
    border: none;
    cursor: pointer;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 
        5px 5px 10px var(--shadow-dark),
        -5px -5px 10px var(--highlight-light);
    transition: all 0.2s ease-in-out;
    color: var(--text-color);
}

.control-btn:active, .social-btn:active {
    box-shadow: 
        inset 3px 3px 7px var(--shadow-dark),
        inset -3px -3px 7px var(--highlight-light);
    transform: scale(0.95);
}

.main-controls {
    display: flex;
    justify-content: center;
    align-items: center;
}

.play-btn {
    width: 80px;
    height: 80px;
    font-size: 2em;
}

#menu-btn {
    width: 45px;
    height: 45px;
    font-size: 1.2em;
}

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

.social-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2em;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

/* Dropdown Menu */
.menu-container {
    position: relative;
    display: inline-block;
    width: 45px; /* To help with centering the logo */
    height: 45px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: rgba(56, 70, 90, 0.8);
    backdrop-filter: blur(10px);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 15px;
    padding: 12px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9em;
}

.dropdown-content a:hover {
    background-color: rgba(255,255,255,0.1);
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

#wave-color-picker {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background-color: transparent;
    border: none;
    cursor: pointer;
}
#wave-color-picker::-webkit-color-swatch {
    border-radius: 50%;
    border: 2px solid var(--text-color);
}
#wave-color-picker::-moz-color-swatch {
    border-radius: 50%;
    border: 2px solid var(--text-color);
}

.show {
    display: block;
}