/* Public Styles for Anime Music Player - Pink & White Anime Theme */

.amp-player-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.amp-player-container.amp-collapsed .amp-player-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
}

.amp-player-container.amp-expanded .amp-player-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.amp-player-toggle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 105, 180, 0.5);
    transition: all 0.3s ease;
    z-index: 10;
}

.amp-player-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 105, 180, 0.7);
}

.amp-toggle-icon {
    font-size: 28px;
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

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

.amp-player-content {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(255, 105, 180, 0.3);
    border: 2px solid rgba(255, 182, 193, 0.5);
    background-size: cover;
    background-position: center;
    transition: all 0.4s ease;
}

.amp-player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 240, 245, 0.95) 100%);
    border-radius: 20px;
    z-index: 1;
}

.amp-player-header,
.amp-player-controls {
    position: relative;
    z-index: 2;
}

.amp-player-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 182, 193, 0.5);
}

.amp-song-cover {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    margin-right: 15px;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
    border: 3px solid rgba(255, 182, 193, 0.8);
}

.amp-song-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: rotate 20s linear infinite;
}

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

.amp-song-details {
    flex: 1;
    overflow: hidden;
}

.amp-song-name {
    font-size: 16px;
    font-weight: bold;
    color: #ff1493;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 4px rgba(255, 105, 180, 0.2);
}

.amp-song-artist {
    font-size: 13px;
    color: #ff69b4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.amp-progress-container {
    margin-bottom: 15px;
}

.amp-progress-bar {
    height: 6px;
    background: rgba(255, 182, 193, 0.3);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.amp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff69b4 0%, #ff1493 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
}

.amp-progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: white;
    border: 2px solid #ff1493;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(255, 20, 147, 0.4);
}

.amp-time-display {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 11px;
    color: #ff69b4;
}

.amp-control-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.amp-control-btn {
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
    color: white;
}

.amp-control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.5);
}

.amp-control-btn:active {
    transform: translateY(0);
}

.amp-play-btn {
    width: 55px;
    height: 55px;
}

.amp-control-btn svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

#amp-audio-element {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .amp-player-container {
        bottom: 10px;
        right: 10px;
    }

    .amp-player-content {
        width: 300px;
    }

    .amp-song-cover {
        width: 60px;
        height: 60px;
    }

    .amp-player-toggle {
        width: 50px;
        height: 50px;
    }

    .amp-toggle-icon {
        font-size: 24px;
    }
}

/* Cute animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.amp-player-container.amp-expanded .amp-player-toggle {
    animation: float 3s ease-in-out infinite;
}

/* Loading state */
.amp-loading-state {
    text-align: center;
    padding: 20px;
    color: #ff69b4;
    font-size: 14px;
}

/* Error state */
.amp-error-state {
    text-align: center;
    padding: 20px;
    color: #ff1493;
    font-size: 13px;
}
