/* =============================================
   ARTIST WAVE PLAYER - ConincStudio™
   Mini player / Now playing bar
   ============================================= */

.wave-player {
    margin: 30px 0 40px;
}

/* --- Player Container --- */
.wave-player-card {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 60px;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wave-player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        #F5B301 20%,
        #FF8C42 50%,
        #9D4DFF 80%,
        transparent 100%
    );
    opacity: 0.4;
    animation: playerGlow 4s ease-in-out infinite;
}

@keyframes playerGlow {
    0%, 100% { 
        opacity: 0.3;
        background-position: -100% 0;
    }
    50% { 
        opacity: 0.7;
        background-position: 200% 0;
    }
}

.wave-player-card:hover {
    border-color: rgba(245, 179, 1, 0.15);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(245, 179, 1, 0.05);
}

/* --- Artwork --- */
.player-artwork {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(245, 179, 1, 0.3);
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.player-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.wave-player-card:hover .player-artwork img {
    transform: scale(1.05);
}

/* Playing indicator on artwork */
.player-artwork.playing::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    box-shadow: 
        inset 0 0 20px rgba(245, 179, 1, 0.3),
        0 0 20px rgba(245, 179, 1, 0.2);
    animation: artworkPulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes artworkPulse {
    0%, 100% { 
        box-shadow: 
            inset 0 0 20px rgba(245, 179, 1, 0.3),
            0 0 20px rgba(245, 179, 1, 0.2);
    }
    50% { 
        box-shadow: 
            inset 0 0 30px rgba(245, 179, 1, 0.5),
            0 0 30px rgba(245, 179, 1, 0.4);
    }
}

/* --- Player Meta --- */
.player-meta {
    flex: 1;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.player-track-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.player-track-title.muted {
    opacity: 0.5;
    font-style: italic;
}

.player-track-artist {
    font-size: 0.9rem;
    opacity: 0.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Player Controls --- */
.player-controls {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 2;
    min-width: 200px;
}

/* --- Play/Pause Button --- */
.ctrl-btn {
    background: #F5B301;
    border: none;
    color: #0A0A0A;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(245, 179, 1, 0.4);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.ctrl-btn:hover {
    transform: scale(1.08);
    background: #FF8C42;
    box-shadow: 0 6px 30px rgba(255, 140, 66, 0.5);
}

.ctrl-btn:active {
    transform: scale(0.95);
}

.ctrl-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ctrl-btn:hover::before {
    opacity: 1;
}

/* --- Secondary Controls --- */
.ctrl-btn-sm {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #EEEEEE;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ctrl-btn-sm:hover {
    background: rgba(245, 179, 1, 0.1);
    border-color: rgba(245, 179, 1, 0.3);
    color: #F5B301;
    transform: scale(1.05);
}

/* --- Progress Bar --- */
.player-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 120px;
}

.player-progress input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.15);
    height: 4px;
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    transition: background 0.2s;
}

.player-progress input[type="range"]:hover {
    background: rgba(255, 255, 255, 0.2);
}

.player-progress input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #F5B301;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(245, 179, 1, 0.6);
    transition: all 0.2s ease;
}

.player-progress input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 30px rgba(245, 179, 1, 0.8);
}

.player-progress input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #F5B301;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(245, 179, 1, 0.6);
}

.player-progress span {
    font-size: 0.8rem;
    opacity: 0.7;
    min-width: 36px;
    font-variant-numeric: tabular-nums;
    color: #EEEEEE;
}

/* --- Volume Control --- */
.player-volume {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 100px;
}

.player-volume-icon {
    font-size: 1rem;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.2s;
}

.player-volume-icon:hover {
    opacity: 1;
}

.player-volume input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    height: 3px;
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    max-width: 80px;
}

.player-volume input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    background: #F5B301;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(245, 179, 1, 0.5);
}

/* --- Like Button --- */
.player-like-btn {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.25s ease;
    padding: 0 8px;
    flex-shrink: 0;
}

.player-like-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}

.player-like-btn.liked {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(245, 179, 1, 0.5));
    animation: likePulse 0.4s ease;
}

@keyframes likePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* --- Playing State --- */
.wave-player-card.playing {
    border-color: rgba(245, 179, 1, 0.2);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(245, 179, 1, 0.08);
}

/* --- Empty State --- */
.wave-player-card.empty {
    opacity: 0.6;
}

.wave-player-card.empty .player-progress input,
.wave-player-card.empty .ctrl-btn,
.wave-player-card.empty .player-like-btn {
    pointer-events: none;
    opacity: 0.4;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .wave-player-card {
        border-radius: 32px;
        padding: 16px 20px;
        gap: 16px;
    }

    .player-controls {
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .wave-player-card {
        border-radius: 24px;
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        gap: 16px;
    }

    .player-meta {
        text-align: center;
        align-items: center;
    }

    .player-controls {
        flex-wrap: wrap;
        justify-content: center;
    }

    .player-progress {
        flex-basis: 100%;
        order: 10;
        margin-top: 8px;
    }

    .player-volume {
        min-width: 80px;
    }

    .player-track-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .wave-player-card {
        padding: 16px;
        border-radius: 20px;
    }

    .player-artwork {
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }

    .ctrl-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .ctrl-btn-sm {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .player-progress span {
        font-size: 0.7rem;
        min-width: 32px;
    }

    .player-volume {
        display: none;
    }
}