/* Modern Music Hub Styles */
.music-player-bar {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: rgba(5, 5, 10, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(76, 201, 240, 0.3);
    border-radius: 20px;
    padding: 0;
    z-index: 9999;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    width: 320px;
    overflow: hidden;
}

.music-player-bar.minimized {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
}

/* Header Section */
.music-header {
    padding: 1rem;
    background: rgba(76, 201, 240, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.music-search {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 4px 12px;
    margin-bottom: 0.75rem;
}

.music-search input {
    background: transparent;
    border: none;
    color: white;
    font-size: 0.75rem;
    flex: 1;
    outline: none;
    padding: 5px;
}

.music-search button {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
}

.music-tabs {
    display: flex;
    gap: 15px;
}

.music-tab {
    background: none;
    border: none;
    color: #555;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
    padding-bottom: 3px;
}

.music-tab.active {
    color: var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
}

/* Playlist Section */
.music-playlist {
    height: 0;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    transition: height 0.4s ease;
}

.music-player-bar.expanded .music-playlist {
    height: 300px;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    transition: 0.3s;
}

.playlist-item:hover {
    background: rgba(76, 201, 240, 0.05);
}

.playlist-item.active {
    background: rgba(76, 201, 240, 0.1);
    border-left: 3px solid var(--accent-color);
}

.pi-image {
    width: 35px;
    height: 35px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
}

.pi-content {
    flex: 1;
    overflow: hidden;
}

.pi-title {
    font-size: 0.8rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pi-artist {
    font-size: 0.65rem;
    color: #777;
}

.pi-fav {
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    transition: 0.3s;
}

.pi-fav.active {
    color: #ff4466;
    transform: scale(1.2);
}

/* Controls Section */
.music-controls-container {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.music-info {
    flex: 1;
    overflow: hidden;
}

.music-track-name {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.65rem;
    color: #fff;
    white-space: nowrap;
    display: block;
}

.music-artist-name {
    font-size: 0.6rem;
    color: #666;
    display: block;
}

.music-main-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-color);
    border: none;
    color: #000;
    cursor: pointer;
    transition: 0.3s;
}

.music-expand-btn {
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
}

.music-empty {
    padding: 2rem;
    text-align: center;
    color: #444;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 1px;
}

.music-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 15px;
}

.vis-bar {
    width: 2px;
    background: var(--accent-color);
    border-radius: 1px;
    height: 40%;
}

.playing .vis-bar {
    animation: visAnim 0.5s ease-in-out infinite alternate;
}

.vis-bar:nth-child(2) {
    animation-delay: 0.1s;
}

.vis-bar:nth-child(3) {
    animation-delay: 0.2s;
}

.vis-bar:nth-child(4) {
    animation-delay: 0.3s;
}

@keyframes visAnim {
    from {
        height: 20%;
    }

    to {
        height: 100%;
    }
}