:root {
    /* Design Tokens */
    --primary-color: #ff3e3e;
    /* Grunge Red */
    --secondary-color: #00e5ff;
    /* Cyan highlight */
    --bg-color: #0a0a0a;
    --panel-bg: rgba(20, 20, 20, 0.85);
    --text-color: #f0f0f0;
    --text-muted: #a0a0a0;
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-gradient: linear-gradient(135deg, var(--primary-color), #880000);

    --font-main: 'Bebas Neue', cursive;
    --font-secondary: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-secondary);
    line-height: 1.6;
    margin: 0;
    overflow-x: hidden;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('../images/20141018_214810.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

h1,
h2,
h3,
.nav-link {
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
}

/* Custom Navigation */
.nav-tabs {
    border-bottom: none;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.nav-tabs .nav-link {
    border: none;
    color: var(--text-muted);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.nav-tabs .nav-link.active {
    background: transparent;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.nav-tabs .nav-link:hover {
    color: var(--text-color);
}

/* Minimal Player Bar */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(10, 10, 10, 0.95);
    border-top: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 2000;
    backdrop-filter: blur(15px);
}

.player-controls {
    display: flex;
    gap: 20px;
    font-size: 1.5rem;
}

.player-progress {
    flex-grow: 1;
    margin: 0 30px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-color);
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.track-item:hover {
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

/* Responsive Breakpoints */

/* Mobile (< 768px) */
@media (max-width: 767.98px) {
    .nav-tabs .nav-link {
        font-size: 1rem;
        padding: 8px 5px;
    }

    .player-bar {
        height: auto;
        flex-direction: column;
        padding: 10px;
    }

    .player-controls {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .player-progress {
        width: 100%;
        margin: 10px 0;
    }

    .player-info {
        display: none !important;
    }

    .glass-panel {
        padding: 15px;
        margin-top: 10px;
    }
}

/* Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1023.98px) {
    .nav-tabs .nav-link {
        font-size: 1.1rem;
    }

    .player-progress {
        margin: 0 15px;
    }

    .player-info {
        min-width: 150px;
    }

    #player-track-title {
        max-width: 100px;
    }
}

/* Desktop (> 1024px) */
@media (min-width: 1024px) {
    .nav-tabs {
        padding: 15px 50px;
    }

    .container-fluid {
        padding-left: 50px;
        padding-right: 50px;
    }
}

/* PWA Install App Button */
#btnAdd {
    background: rgba(255, 62, 62, 0.05);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    padding: 6px 18px;
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    outline: none;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

#btnAdd:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 62, 62, 0.6);
    transform: translateY(-1px);
    text-decoration: none;
}

#btnAdd:active {
    transform: translateY(0);
}

#btnAdd i {
    font-size: 0.95rem;
}

/* Premium Glassmorphic Lyrics Overlay */
.lyrics-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 80px; /* Above player bar */
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1900;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

.lyrics-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lyrics-card {
    background: rgba(18, 18, 18, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 80%;
    padding: 35px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lyrics-overlay.active .lyrics-card {
    transform: translateY(0) scale(1);
}

.close-lyrics-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
    outline: none;
}

.close-lyrics-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.lyrics-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.lyrics-header h3 {
    font-size: 2.2rem;
    letter-spacing: 1.5px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 62, 62, 0.3);
    margin-bottom: 5px;
}

.lyrics-artist {
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.lyrics-body {
    flex-grow: 1;
    overflow-y: auto;
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    line-height: 2;
    text-align: center;
    color: rgba(240, 240, 240, 0.95);
    padding: 10px 15px;
    white-space: pre-wrap;
    /* CSS Fade-out mask on scrolling boundaries */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

/* Custom scrollbar for lyrics body */
.lyrics-body::-webkit-scrollbar {
    width: 6px;
}

.lyrics-body::-webkit-scrollbar-track {
    background: transparent;
}

.lyrics-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
    opacity: 0.7;
}

.lyrics-body::-webkit-scrollbar-thumb:hover {
    background: #ff6666;
}

/* Mobile responsive styling for lyrics */
@media (max-width: 767.98px) {
    .lyrics-overlay {
        bottom: 110px; /* Above mobile player-bar */
        padding: 10px;
    }

    .lyrics-card {
        padding: 20px;
        max-height: 90%;
        border-radius: 15px;
    }

    .lyrics-header h3 {
        font-size: 1.6rem;
    }

    .lyrics-body {
        font-size: 1rem;
        line-height: 1.8;
    }
}