/* ---------------- Base ---------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body.dark {
    background: linear-gradient(135deg, #0c0014, #240036, #13001e);
    color: white;
}

.app-container {
    width: 95%;
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
}

/* ---------------- Header ---------------- */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.logo {
    font-size: 4.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(180deg, #c58bff, #8f3cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------------- Drag & Drop ---------------- */
.drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.25);
    padding: 45px;
    border-radius: 22px;
    text-align: center;
    color: #e8d9ff;
    background: rgba(255, 255, 255, 0.05);
    transition: 0.3s ease;
    cursor: pointer;
}

.drop-zone span {
    display: block;
    opacity: 0.7;
    margin: 8px;
}

.drop-zone.dragover {
    border-color: #b36cff;
    background: rgba(179, 108, 255, 0.15);
    box-shadow: 0 0 25px #8d3aff5a;
}

.upload-btn {
    display: inline-block;
    background: linear-gradient(135deg, #a966ff, #6b00ff);
    padding: 12px 28px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    color: white;
    margin-top: 10px;
    font-size: 1.05rem;
    transition: 0.25s ease;
    box-shadow: 0 0 18px #6a00ff7b;
}

.upload-btn:hover {
    transform: scale(1.06);
}

/* ---------------- Playlist ---------------- */
.playlist-container {
    margin-top: 30px;
    max-height: 300px;
    overflow-y: auto;
}

.playlist {
    margin-bottom: 18px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.playlist-header {
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.10);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
}

.tracks {
    display: flex;
    flex-direction: column;
}

.tracks.hidden {
    display: none;
}

.track {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    cursor: pointer;
    transition: 0.25s ease;
    font-size: 1rem;
    position: relative;
}

.track:hover {
    background: rgba(255, 255, 255, 0.15);
}

.track img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    margin-right: 12px;
    object-fit: cover;
}

.track .remove-btn {
    position: absolute;
    right: 10px;
    display: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: #ff6b6b;
}

.track:hover .remove-btn {
    display: block;
}

/* ---------------- Player ---------------- */
.player-area {
    margin-top: 40px;
    padding: 26px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 28px rgba(63, 0, 113, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 18px;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

#progressBar {
    flex: 1;
    height: 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.4);
    outline: none;
    cursor: pointer;
}

#progressBar::-webkit-slider-thumb,
#volumeSlider::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
    background: #c58bff;
    border-radius: 50%;
    cursor: pointer;
}

#progressBar::-moz-range-thumb,
#volumeSlider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #c58bff;
    border-radius: 50%;
    cursor: pointer;
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.big-btn {
    font-size: 2.5rem;
    padding: 16px 24px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #b76dff, #7517ff);
    color: white;
    cursor: pointer;
    box-shadow: 0 0 25px #8a2fff7b;
    transition: 0.25s ease;
}

.big-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 0 35px #9c3cffcc;
}

.small-btn {
    font-size: 1.8rem;
    padding: 10px 16px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #a966ff, #6b00ff);
    color: white;
    cursor: pointer;
    box-shadow: 0 0 18px #6a00ff7b;
    transition: 0.25s ease;
}

.small-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 28px #9c3cffcc;
}

.volume-container {
    display: flex;
    align-items: center;
}

#volumeSlider {
    width: 150px;
    height: 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.4);
    outline: none;
    cursor: pointer;
}

/* -----------------------------------------
   Footer
----------------------------------------- */
.footer {
    margin-top: 50px;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.06));
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 25px rgba(140, 0, 255, 0.15);
}

.footer-title {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(180deg, #c58bff, #8f3cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.footer-sub {
    font-size: 1rem;
    color: #d8c9ff;
    opacity: 0.8;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #caa0ff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.25s ease;
}

.footer-links a:hover {
    color: white;
    text-shadow: 0 0 10px #c58bff;
}

.footer-copy {
    font-size: 0.85rem;
    color: #caa0ff;
    opacity: 0.6;
}
