:root {
    --bg-color: #2c3338; 
    --player-grey: rgba(80, 80, 80, 0.2);
    --dark-grey: #121212; 
    --gold: #D4AF37;
}

.player-page-layout {
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden; 
}

.player-container {
    background: var(--player-grey);
    padding: 6px 10px; 
    border-radius: 60px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 440px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.15)
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    box-sizing: border-box;
}

.skip-btn {
    background: #1e1e1e;
    color: rgba(211, 211, 211, 1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.skip-btn:hover {
    background: var(--gold); 
    color: #121212;      
    transform: scale(1.1); 
    transition: all 0.2s ease;
}

.console {
    background: var(--dark-grey);
    border-radius: 30px;
    padding: 4px 8px 14px 8px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 210px;
    height: 48px; 
    justify-content: flex-start; 
    position: relative;
    overflow: visible; 
}

audio {
    width: 100% !important;
    height: 30px;
    filter: invert(100%) brightness(100%);
    display: block;
    -webkit-appearance: none;
    background: transparent !important;
    transition: filter 0.3s ease;
}

.console:hover audio {
    filter: invert(72%) sepia(15%) saturate(150%) hue-rotate(3deg) brightness(110%) contrast(250%);
}

#track-title {
    color: #ffffff !important; 
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    width: 90%;
    cursor: pointer;
    position: absolute; 
    top: 31px; 
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-grey);
    border-radius: 12px;
    transition: all 0.3s ease;
    z-index: 100;
    height: 20px; /* Force the height so it doesn't squash */
    max-height: 20px; 
    overflow: hidden;
    display: block; /* Essential for mobile scroll trigger */
    line-height: 20px; /* Vertically centers the text perfectly when closed */
    white-space: nowrap;
    touch-action: pan-y !important; 
}

#track-title:hover, #track-title:active {
    height: auto;
    max-height: 150px; /* Tight window for the list */
    overflow-y: auto !important; 
    -webkit-overflow-scrolling: touch; 
    padding: 4px 0; /* Tightened padding */
    width: 100%; 
    top: 30px;
    white-space: normal;
    color: var(--gold) !important;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

#track-title::-webkit-scrollbar {
    width: 4px;
}
#track-title::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

.menu-item {
    padding: 8px 5px; /* Reduced padding for a tighter list */
    display: block;
    opacity: 0.6;
    transition: 0.2s;
    border-bottom: 1px solid #222;
    line-height: 1.2;
    width: 100%;
    box-sizing: border-box;
}

.menu-item:last-child { border-bottom: none; }
.menu-item:hover { opacity: 1; background: #1e1e1e; }
.menu-item.active-link { opacity: 1; color: #fff; background: #121212; }
