body {
    background-color: #121212;
    color: white;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

h1 { font-size: 2.5rem; font-weight: 900; margin-bottom: 20px; }

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
}

#id-input {
    flex: 1;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #333;
    background: #1e1e1e;
    color: white;
    font-size: 1.1rem;
    outline: none;
}

#id-input:focus { border-color: #a855f7; }

#add-btn {
    padding: 0 25px;
    background: #1DB954;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.timeline-item {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    border-left: 5px solid #a855f7;
    animation: slideIn 0.3s ease-out;
}

.year-badge {
    font-size: 1.5rem;
    font-weight: 900;
    color: #a855f7;
    margin-right: 20px;
    min-width: 70px;
    text-align: left;
}

.song-details {
    text-align: left;
}

.song-details strong { display: block; font-size: 1.1rem; }
.song-details span { color: #b3b3b3; font-size: 0.9rem; }

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.back-link {
    display: inline-block;
    margin-top: 40px;
    color: #555;
    text-decoration: none;
}

/* ... Keep your existing styles ... */

.win-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(18, 18, 18, 0.9);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.win-overlay.hidden { display: none; }

.win-content {
    text-align: center;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.win-title {
    font-size: 4rem;
    font-weight: 900;
    color: #a855f7; /* Cool Purple */
    margin: 0;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.win-content p { font-size: 1.5rem; margin-bottom: 30px; }

.win-content button {
    padding: 15px 40px;
    background: #1DB954;
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

/* Pulse animation for the list when winning */
.winner-pulse {
    animation: finalPulse 2s infinite alternate;
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes finalPulse {
    from { box-shadow: 0 0 10px rgba(168, 85, 247, 0.2); }
    to { box-shadow: 0 0 30px rgba(168, 85, 247, 0.6); }
}