@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&family=Varela+Round&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: antiquewhite;
    font-family: 'Ubuntu', sans-serif;
    min-height: 100vh;
}

nav {
    background-color: black;
    color: white;
    height: 65px;
    padding: 0 15px;
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    height: 100%;
    gap: 20px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1.4rem;
}

.brand img {
    width: 50px;
    margin-right: 10px;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 20px auto;
    padding: 25px;
    background-color: black;
    color: white;
    border-radius: 12px;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    min-height: calc(100vh - 65px - 160px);
    display: flex;
    flex-direction: column;
    font-family: 'Varela Round', sans-serif;
}

.songlist {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.songlist h1 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
}

.search-container {
    margin: 0 auto 25px;
    max-width: 500px;
    width: 100%;
    position: relative;
}

#searchInput {
    width: 100%;
    padding: 12px 16px 12px 45px;
    font-size: 1.05rem;
    border: none;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    outline: none;
    transition: all 0.25s;
}

#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#searchInput:focus {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 3px rgba(29,185,84,0.4);
}

.search-container::before {
    content: "\f002";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.7);
    pointer-events: none;
}

.songItemscontainer {
    flex: 1;
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    scrollbar-width: thin;
}

.songItemscontainer::-webkit-scrollbar {
    width: 6px;
}

.songItemscontainer::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.songItemscontainer::-webkit-scrollbar-thumb {
    background: #1db954;
    border-radius: 10px;
}

.songItemscontainer::-webkit-scrollbar-thumb:hover {
    background: #1ed760;
}

.songItems {
    height: 68px;
    background-color: rgba(255, 255, 255, 0.95);
    color: black;
    margin: 10px 0;
    border-radius: 34px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    transition: all 0.2s;
}

.songItems:hover {
    transform: scale(1.015);
    background-color: rgba(240, 255, 240, 0.98);
}

.songItems img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 18px;
    flex-shrink: 0;
}

.songItems > span {
    flex: 2.5;
    font-size: 1.05rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 12px;
}

.timestamp {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 130px;
    justify-content: flex-end;
}

.timestamp span {
    min-width: 80px;
    text-align: right;
    font-size: 0.9rem;
    color: #444;
}

.timestamp i, .download-icon {
    font-size: 1.25rem;
    cursor: pointer;
    color: #333;
}

.download-icon {
    text-decoration: none;
}

.download-icon:hover {
    color: #1db954;
}

.bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: black;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 15px;
    z-index: 10;
}

#MyProgressBar {
    width: 90%;
    max-width: 900px;
    height: 5px;
    cursor: pointer;
    margin-bottom: 10px;
}

.icons {
    display: flex;
    align-items: center;
    gap: 25px;
}

.icons i {
    font-size: 2.2rem;
    cursor: pointer;
}

.songinfo {
    position: absolute;
    left: 15px;
    bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 45%;
}

.songinfo img {
    width: 40px;
    opacity: 0;
    transition: opacity 0.4s;
    border-radius: 6px;
}

.songinfo span {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .container {
        width: 96%;
        padding: 15px;
        margin: 10px auto;
    }
    .songItemscontainer {
        max-height: 50vh;
    }
    .songItems {
        height: 62px;
        padding: 0 14px;
    }
    .songItems img {
        width: 44px;
        height: 44px;
        margin-right: 14px;
    }
    .songItems > span {
        font-size: 0.98rem;
        flex: 2;
    }
    .timestamp {
        min-width: 110px;
    }
    .timestamp span {
        font-size: 0.82rem;
        min-width: 70px;
    }
}

@media (max-width: 480px) {
    .icons i {
        font-size: 1.9rem;
    }
    .bottom {
        height: 130px;
    }
}