:root {
    --primary-color: #ff4d8d;
    --secondary-color: #6c5ce7;
    --bg-color: #1a1a2e;
    --card-bg: #16213e;
    --text-color: #f1f1f1;
    --text-secondary: #b8b8b8;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
    --bg-color: #f5f6fa;
    --card-bg: #ffffff;
    --text-color: #2d3436;
    --text-secondary: #636e72;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: flex-start;
    align-items: center;
    color: var(--text-color);
    transition: all 0.3s ease;

    /* FIXED */
    padding: 10px;
    /* padding-top: 100px; */
}


.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.top-controls {
    position: static;
    z-index: 100;
    display: flex;
    gap: 10px;
}

.top-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.top-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Pulse animation for playlist button */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.pulse {
    animation: pulse 2s infinite;
}

.pulse:hover {
    animation: none;
}

/* Pulse dot */
.pulse-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: #ff4d8d;
    border-radius: 50%;
    animation: pulseDot 1.5s infinite;
    border: 2px solid var(--card-bg);
}

@keyframes pulseDot {
    0% { transform: scale(0.8); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.8; }
}

/* Playlist icon specific styles */
#playlist-toggle .playlist-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

#playlist-toggle:hover .playlist-icon {
    transform: scale(1.2);
}

#theme-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    color: var(--text-color);
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

/* Playlist Dropdown Styles */
.playlist-dropdown-container {
    position: relative;
}

.playlist-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.playlist-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(255, 77, 141, 0.1);
    color: #ff4d8d;
    transform: translateX(5px);
}

.dropdown-item.active {
    background: rgba(255, 77, 141, 0.2);
    color: #ff4d8d;
    font-weight: 600;
}

.category-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Dark theme dropdown styles */
[data-theme="dark"] .playlist-dropdown {
    background: rgba(22, 33, 62, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .dropdown-item {
    color: #f1f1f1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .dropdown-item:hover {
    background: rgba(255, 77, 141, 0.2);
    color: #ff4d8d;
}

.search-box {
    margin-bottom: 20px;
    width: 100%;
    max-width: 450px;
    margin-top: 70px;
}

.search-box input {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    font-size: 16px;
    color: #333;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    background: white;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.player {
    width: 100%;
    max-width: 450px;
    padding: 25px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    text-align: center;
    animation: popup 0.6s ease;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

@keyframes popup {
    from { transform: scale(0.8); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.title {
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 22px;
    letter-spacing: 1px;
}

.cover {
    width: 220px;
    height: 220px;
    border-radius: 20px;
    margin-bottom: 10px;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
    animation: rotateCover 20s linear infinite;
}

@keyframes rotateCover {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#song-title {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.controls button {
    font-size: 22px;
    padding: 12px;
    margin: 0 10px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(5px);
    cursor: pointer;
    transition: 0.3s;
    color: var(--text-color);
}

.controls button:hover {
    background: rgba(255,255,255,0.8);
    color: #000;
    transform: scale(1.15);
}

#progress {
    width: 100%;
    margin-top: 20px;
    height: 5px;
    border-radius: 5px;
    cursor: pointer;
    background: #ffffff70;
}

#progress::-webkit-slider-thumb, #volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--text-color);
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    transition: 0.3s;
}

.time-display {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
    font-size: 14px;
    margin: 15px 0;
}

.time-display #progress {
    flex: 1;
    margin: 0 10px;
}

.volume-control {
    display: flex;
    align-items: center;
    margin-top: 15px;
    color: var(--text-color);
}

.volume-control #volume {
    flex: 1;
    margin-left: 10px;
    height: 4px;
    background: #ffffff70;
}

/* Playlist Container */
.playlist-container {
    margin-top: 20px;
    width: 100%;
}

.playlist-container h3 {
    color: var(--text-color);
    font-size: 18px;
    margin-bottom: 10px;
}

.playlist-container #song-count {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: normal;
}

#song-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .volume-control {
        display: none;
    }
}

@media (max-width: 400px) {
    .player {
        width: 90%;
        padding: 20px 15px;
    }
    
    .cover {
        width: 180px;
        height: 180px;
    }
}

/* Footer Styles */
.footer {
    margin-top: 30px;
    padding: 15px 0;
    width: 100%;
    max-width: 450px;
    text-align: center;
    color: var(--text-color);
    font-size: 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);

    /* ADD THIS ↓↓↓ */
    position: relative;
    z-index: 9999;
}


.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.developer-info p {
    margin: 0;
    font-weight: 500;
}

.developer-info .copyright {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 5px;
    font-weight: 400;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.social-icon {
    color: var(--text-color);
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-3px);
    color: var(--primary-color);
}

/* Animation for play button */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.playing {
    animation: pulse 1.5s infinite;
}



footer .social-links {
    display: flex !important;
    gap: 15px !important;
    margin-top: 8px !important;
}

footer .social-links a.social-icon {
    color: var(--text-color) !important;
    font-size: 22px !important;
    transition: all 0.3s ease !important;
}

footer .social-links a.social-icon:hover {
    transform: translateY(-4px) !important;
    color: var(--primary-color) !important;
}

