/* =========================================================
   MUSIC SECTION LAYOUT & COMPONENTS
========================================================= */

.music-section {
    padding: 90px 0 100px;
    position: relative;
}

.music-container {
    max-width: 1450px;
    margin: auto;
    padding: 0 20px;
}

.music-header {
    text-align: center;
    margin-bottom: 60px;
}

.music-subtitle {
    display: block;
    color: #8b5cf6;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.music-title {
    color: #ffffff;
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.music-description {
    color: #b7b7b7;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.8;
}

/* Player Card Styles */
.music-player-card {
    flex-direction: column;
    justify-content: center;
    padding: 40px 30px;
}

.player-cover {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8455f0, #ff4d9d);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(132, 85, 240, 0.4);
    transition: transform 0.3s;
}

.player-cover i {
    font-size: 50px;
    color: white;
}

.player-cover.playing {
    animation: spin 5s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.btn-control {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.btn-control.play-btn {
    background: #8455f0;
    width: 65px;
    height: 65px;
    font-size: 20px;
    box-shadow: 0 10px 25px rgba(132, 85, 240, 0.35);
}

.btn-control:hover {
    background: #9468ff;
    transform: translateY(-3px);
}

/* Playlist Wrapper Styles */
.playlist-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.playlist-wrapper::-webkit-scrollbar {
    width: 6px;
}
.playlist-wrapper::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
}
.playlist-wrapper::-webkit-scrollbar-thumb {
    background: #8455f0;
    border-radius: 10px;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 24px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.playlist-item:hover, .playlist-item.active {
    background: rgba(132, 85, 240, 0.15);
    border-color: rgba(132, 85, 240, 0.3);
    transform: translateX(5px);
}

.playlist-num {
    color: #8455f0;
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 30px;
}

.playlist-details {
    flex: 1;
}

.playlist-details h4 {
    color: white;
    font-size: 1.1rem;
    margin: 0 0 6px 0;
    font-weight: 600;
}

.playlist-details span {
    color: #9ca3af;
    font-size: 0.85rem;
}

.playlist-icon {
    color: #c7c7c7;
    font-size: 24px;
    transition: 0.3s;
}

.playlist-item:hover .playlist-icon, .playlist-item.active .playlist-icon {
    color: #8455f0;
}

/* ==============================
   MUSIC SEARCH & EMPTY STATE
============================== */

.music-search-wrapper {
    width: 100%;
}

.music-search {
    position: relative;
}

.music-search input {
    -webkit-appearance: none;
    width: 100%;
    border: none;
    outline: none;
    border-radius: 60px;
    padding: 16px 55px;
    background: rgba(30, 41, 59, 0.75);
    color: white;
    font-size: 15px;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.music-search input:focus {
    border-color: #8455f0;
    box-shadow: 0 0 20px rgba(132, 85, 240, 0.25);
}

.music-search input::placeholder {
    color: #9ca3af;
}

.music-search i {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #8455f0;
    font-size: 16px;
}

.empty-music {
    padding: 40px 20px;
}

.empty-music i {
    font-size: 50px;
    color: rgba(132, 85, 240, 0.5);
}

@media(max-width:768px){
    .music-title { font-size: 2.2rem; }
}