* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.player-container {
    background: url('../images/album.jpg') center center/cover no-repeat;
    backdrop-filter: blur(10px);
    border-radius: 40px;
    padding: 30px 30px 15px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 10px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 380px;
    max-height: 400px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Ensure background image respects border-radius */
    background-clip: padding-box;
}
.track-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 0;
}
.player-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 40px;
    background-size: 300% 300%;
    animation: gradientShift 4s ease infinite;
}

#artist {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1px;
}

#img-artist {
    width: 50px;
    height: 50px;
    border-radius: 25px;
    object-fit: cover;
}
.like-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.like-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.like-btn.liked {
    background: rgba(255, 59, 92, 0.8);
    border-color: rgba(255, 59, 92, 0.6);
}

.heart-icon {
    color: white;
    font-size: 18px;
    transition: color 0.3s ease;
}

.liked .heart-icon {
    color: #ff3b5c;
}
@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.file-input-container {
    margin-bottom: 30px;
    text-align: center;
}

.file-input-label {
    display: inline-block;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
    font-weight: 500;
}

.file-input-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

#audioFile {
    display: none;
}

.track-info {
    text-align: center;
    width: 60%;
    margin-bottom: auto;
    display: flex;
    flex-direction: row;
    border: solid 1px rgba(197, 170, 170, 0.952);
    border-radius: 50px;
    height: 54px;
    background-color: #888;
}


.track-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    font-size: 14px;
    color: #888;
}

.progress-container {
    margin-bottom: 5px;
    margin-top: 5px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(128, 122, 122, 0.76);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: rgb(189, 177, 177);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
    position: relative;
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: #888;
    margin-top: 8px;
    margin-bottom: 5px;
}

.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 0;
    margin-top: 1px;
}

.control-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #888;
}

.control-btn:hover {
    background: rgba(255, 253, 253, 0.877);
    transform: scale(1.1);
}

.play-pause {
    width: 60px;
    height: 60px;
    font-size: 30px;
}

.play-pause:hover {
    transform: scale(1.05);
}

.secondary-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-slider {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    cursor: pointer;
    border: none;
}

.volume-icon {
    font-size: 18px;
    color: #888;
}

@media (max-width: 480px) {
    .player-container {
        padding: 20px;
        margin: 10px;
    }

    .controls {
        gap: 20px;
    }

    .play-pause {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .secondary-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}
.player-container {
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 380px;
    max-height: 380px;
}

@media (max-width: 480px) {
    .player-container {
        max-width: 320px;
        max-height: 320px;
    }
}