:root {
    --bg-color: #2c3338; 
    --player-grey: #d3d3d3;
    --dark-grey: #121212; 
    --gold: #D4AF37; /* Tales Gold */
}

.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;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    box-sizing: border-box;
}

.skip-btn {
    background: #1e1e1e;
    color: var(--player-grey);
    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;
}

/* KEEPS YOUR GOLD HOVER FLIP */
.skip-btn:hover {
    background: var(--gold); 
    color: #121212;      
    transform: scale(1.1); 
    transition: all 0.2s ease;
}

.skip-btn:active {
    transform: scale(0.95);
}

.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 BLOCK: Added the Gold Morph on Hover */
audio {
    width: 100% !important;
    height: 30px;
    filter: invert(100%) brightness(100%); /* Default White */
    display: block;
    background: transparent !important;
    transition: filter 0.3s ease;
}

/* This is the new part: makes play button gold when console is hovered */
.console:hover audio {
    filter: invert(72%) sepia(15%) saturate(150%) hue-rotate(3deg) brightness(110%) contrast(250%);
}

/* TRACK TITLE: Preserving your exact hard-won positioning */
#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; /* Locked at your original value */
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-grey);
    border-radius: 12px;
    transition: all 0.3s ease;
    z-index: 100;
    max-height: 20px; 
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    touch-action: pan-y !important;
}

#track-title:hover {
    height: auto;
    max-height: 160px; 
    overflow-y: scroll !important;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0;
    width: 100%; 
    top: 30px; /* Locked at your original value */
    position: absolute; 
    color: var(--gold) !important;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

#track-title::-webkit-scrollbar {
    width: 4px;
}
#track-title::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

#playlist { 
    display: none !important; 
}

.menu-item {
    padding: 10px 5px;
    display: block;
    opacity: 0.6;
    transition: 0.2s;
    border-bottom: 1px solid #222;
    line-height: 1;
}

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