/* General Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

:root {
    --fener-navy: #002D72;
    --fener-yellow: #FBBE11;
    --dark-bg: #030a1e;
    --glass-bg: rgba(0, 45, 114, 0.4);
    --glass-border: rgba(251, 190, 17, 0.3);
    --text-primary: #fcfcfc;
    --text-secondary: #a0aec0;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    height: 100vh;
    overflow: hidden;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('assets/hero-bg.png') no-repeat center center/cover;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(3, 10, 30, 0.2) 0%,
        rgba(3, 10, 30, 0.6) 50%,
        var(--dark-bg) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 40px;
    animation: fadeIn 1s ease-out;
}

.brand-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--fener-yellow);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1 {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom, #fff, var(--fener-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Glass Buttons */
.cta-group {
    display: flex;
    gap: 25px;
    justify-content: center;
}

.btn {
    padding: 18px 40px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    border: none;
}

.btn-primary {
    background: var(--fener-yellow);
    color: var(--fener-navy);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(251, 190, 17, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(251, 190, 17, 0.1);
    border-color: var(--fener-yellow);
    transform: translateY(-5px);
}

/* Full-Width Audio Player Bar */
.audio-player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(3, 10, 30, 0.75);
    backdrop-filter: blur(40px);
    border-top: 1px solid var(--glass-border);
    z-index: 50;
    padding: 15px 40px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.audio-player-bar.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.player-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    height: 70px;
}

.track-section {
    min-width: 300px;
}

.track-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 0 10px rgba(251, 190, 17, 0.2);
}

.track-subtitle {
    font-size: 0.75rem;
    color: var(--fener-yellow);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: white;
    transition: var(--transition);
}

.control-btn:hover {
    background: var(--fener-yellow);
    color: var(--fener-navy);
    border-color: var(--fener-yellow);
    box-shadow: 0 0 15px rgba(251, 190, 17, 0.4);
}

.play-toggle {
    width: auto;
    padding: 0 25px;
    border-radius: 30px;
    gap: 10px;
    background: var(--fener-yellow);
    color: var(--fener-navy);
    font-weight: 800;
}

.progress-section {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.progress-wrapper {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--fener-yellow);
    box-shadow: 0 0 15px var(--fener-yellow);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.share-actions {
    display: flex;
    gap: 12px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn:hover {
    color: var(--fener-yellow);
    border-color: var(--fener-yellow);
}

/* Playlist Sidebar */
.playlist-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: rgba(3, 10, 30, 0.85);
    backdrop-filter: blur(30px);
    border-left: 1px solid var(--glass-border);
    z-index: 100;
    padding: 60px 40px;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -20px 0 50px rgba(0,0,0,0.5);
}

.playlist-sidebar.active {
    right: 0;
}

.playlist-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#trackList {
    list-style: none;
    margin-top: 30px;
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 10px;
}

/* Custom Scrollbar for Playlist */
#trackList::-webkit-scrollbar {
    width: 6px;
}

#trackList::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

#trackList::-webkit-scrollbar-thumb {
    background: var(--fener-yellow);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(251, 190, 17, 0.3);
}

#trackList li {
    padding: 15px 20px;
    border-radius: 16px;
    cursor: pointer;
    margin-bottom: 12px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
}

#trackList li:hover {
    background: rgba(251, 190, 17, 0.08);
    border-color: var(--fener-yellow);
    transform: translateX(10px);
}

.track-id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--fener-yellow);
    opacity: 0.6;
}

.track-meta {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.track-title {
    font-weight: 600;
    font-size: 1rem;
    color: white;
}

.track-artist {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-icon {
    font-size: 1.4rem;
    color: var(--fener-yellow);
    opacity: 0;
    transition: var(--transition);
}

#trackList li:hover .status-icon {
    opacity: 1;
}

#trackList li.playing {
    background: linear-gradient(90deg, rgba(251, 190, 17, 0.15), transparent);
    border-color: var(--fener-yellow);
    box-shadow: 0 0 20px rgba(251, 190, 17, 0.1);
}

#trackList li.playing .track-title {
    color: var(--fener-yellow);
}

#trackList li.playing .status-icon {
    opacity: 1;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsive Styles */
@media (max-width: 992px) {
    .player-container {
        gap: 20px;
        padding: 0 20px;
    }
    
    .track-section {
        min-width: 150px;
    }
    
    .share-actions {
        display: none; /* Hide shares on medium screens to save space */
    }
}

@media (max-width: 768px) {
    h1 { font-size: 3.2rem; }
    .hero p { font-size: 1.1rem; }
    .cta-group { flex-direction: column; align-items: center; }

    .audio-player-bar {
        padding: 10px 15px;
        height: auto;
    }

    .player-container {
        flex-direction: column;
        gap: 15px;
        height: auto;
        padding-bottom: 5px;
    }

    .track-section {
        min-width: 100%;
        text-align: center;
    }

    .track-section h4 {
        font-size: 1rem;
    }

    .player-controls {
        width: 100%;
        justify-content: center;
        order: 2;
    }

    .progress-section {
        width: 100%;
        order: 1;
    }

    .playlist-sidebar {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.8rem; }
    .brand-badge { font-size: 0.7rem; }
}
