/* Floating Player Styles */
.player-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    font-family: var(--font-primary);
}

.player-trigger {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.player-trigger:hover {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.2);
}

.player-main {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.player-container.active .player-main {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.player-header {
    margin-bottom: 1.5rem;
}

.player-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #fff;
    margin-bottom: 0.2rem;
}

.player-header p {
    font-size: 0.8rem;
    color: var(--secondary-text);
}

.composition-list {
    list-style: none;
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    padding-right: 5px;
}

.composition-list::-webkit-scrollbar {
    width: 4px;
}

.composition-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.composition-item {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
}

.composition-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.composition-item.playing {
    background: rgba(255, 255, 255, 0.15);
    border-left: 3px solid #fff;
}

.comp-info {
    flex: 1;
}

.comp-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
}

.comp-duration {
    font-size: 0.7rem;
    color: var(--secondary-text);
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.progress-area {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.progress-area span {
    font-size: 0.75rem;
    color: var(--secondary-text);
    min-width: 35px;
    font-weight: 500;
}

#progress-bar {
    flex: 1;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    height: 4px;
    border-radius: 2px;
    cursor: pointer;
    outline: none;
}

#progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.2s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

#progress-bar:hover::-webkit-slider-thumb {
    transform: scale(1.2);
}

.control-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.control-btn svg {
    width: 20px;
    height: 20px;
}

.control-btn:hover {
    transform: scale(1.1);
    color: #fff;
}

.play-pause-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    color: black;
}

.play-pause-btn:hover {
    transform: scale(1.1);
    background: #f0f0f0;
}

@media (max-width: 768px) {
    .player-container {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .player-main {
        width: 280px;
        right: -10px;
    }
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-overlay span {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1rem;
}

.loader {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
