body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(4px);
    width: 95%;
    max-width: 1000px;
}

h1 {
    font-family: 'Pacifico', cursive;
    text-align: center;
    color: #ff6b6b;
    margin-right: 300px;
    margin-bottom: 50px;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.main-content {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.right-panel {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-container {
    display: flex;
    margin-bottom: 1rem;
}

#searchInput {
    flex-grow: 1;
    padding: 0.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 5px 0 0 5px;
}

#searchButton {
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    padding: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#searchButton:hover {
    background-color: #ff8787;
}

.search-results {
    background-color: #fff;
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 1rem;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #f0f0f0;
}

.search-result-item .song-info {
    display: flex;
    align-items: center;
}

.search-result-item .album-thumbnail {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 4px;
}

/* ================================================= */

.search-result-item .song-details {
    display: flex;
    flex-direction: column;
}

.search-result-item .song-name {
    font-weight: bold;
}

.search-result-item .song-artist {
    font-size: 0.8em;
    color: #666;
}

.search-result-item .add-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 0.3rem 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-result-item .add-button:hover {
    background-color: #45a049;
}

#playlist {
    list-style-type: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
}

#playlist li {
    background-color: #f8e9a1;
    margin-bottom: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    transition: all 0.3s ease;
}

#playlist li:hover {
    background-color: #ffd166;
    transform: translateX(5px);
}

#playlist li button {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    transition: color 0.3s ease;
}

#playlist li button:hover {
    color: #ff4757;
}

.vinyl-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 2rem;
}

.vinyl {
    width: 100%;
    height: 100%;
    background: repeating-radial-gradient(circle, #333 0, #333 5px, #555 5px, #555 10px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.vinyl.playing {
    animation: spin 5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.vinyl-center {
    width: 50px;
    height: 50px;
    background-color: #f8e9a1;
    border-radius: 50%;
}

.vinyl-arm {
    position: absolute;
    top: 50%;
    right: -20px;
    width: 100px;
    height: 4px;
    background-color: #333;
    transform-origin: left center;
    transform: rotate(-30deg);
    transition: transform 0.5s ease;
}

.vinyl-arm::after {
    content: '';
    position: absolute;
    right: -5px;
    top: -3px;
    width: 10px;
    height: 10px;
    background-color: #555;
    border-radius: 50%;
}

.vinyl.playing + .vinyl-arm {
    transform: rotate(0deg);
}

.player {
    width: 100%;
    text-align: center;
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.player-controls button {
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.player-controls button:hover {
    background-color: #ff8787;
    transform: scale(1.1);
}

.volume-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

#volumeSlider {
    width: 100%;
    max-width: 150px;
}

.progress-bar {
    width: 100%;
    height: 5px;
    background-color: #ddd;
    border-radius: 5px;
    margin-top: 1rem;
    overflow: hidden;
}

#progress {
    width: 0;
    height: 100%;
    background-color: #ff6b6b;
    transition: width 0.1s linear;
}

.now-playing {
    margin-top: 1rem;
    font-style: italic;
    color: #555;
}

.feather {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}