/* General Styles */
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #181a20; /* Dark background */
    color: #f5f5f7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    position: relative;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    background: #23262f;
    color: #f5f5f7;
}

/* Hamburger Menu Styles */
#hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 40px;
    width: 40px;
    padding: 0;
    z-index: 1001;
}
#hamburger .bar {
    width: 28px;
    height: 4px;
    background: #f5f5f7;
    margin: 3px 0;
    border-radius: 2px;
    transition: 0.4s;
}

/* Side Menu Styles */
#side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100vh;
    background: #23262f;
    box-shadow: 2px 0 12px rgba(0,0,0,0.2);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(.77,0,.18,1);
    z-index: 1000;
    padding-top: 60px;
    color: #f5f5f7;
}
#side-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#side-menu li {
    margin: 1.5rem 0;
    text-align: left;
}
#side-menu a {
    color: #f5f5f7;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1.5rem;
    display: block;
    transition: background 0.2s;
}
#side-menu a:hover {
    background: #353945;
    border-radius: 4px;
}
#side-menu.show {
    transform: translateX(0);
}
#side-menu.hidden {
    transform: translateX(-100%);
}

/* Hamburger Animation (X) */
#hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
#hamburger.active .bar:nth-child(2) {
    opacity: 0;
}
#hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Main Content Styles */
main {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    width: 100vw;
    box-sizing: border-box;
}
#lastfm {
    background: #23262f;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.30);
    padding: 2rem 2.5rem;
    max-width: 900px;
    width: 100%;
    text-align: center;
    color: #f5f5f7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#lastfm h1 {
    margin-top: 0;
    font-size: 2rem;
    letter-spacing: 1px;
    color: #ffe800;
}
#lastfm-tracks {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.2rem;
    max-width: 900px;
    width: 100%;
    justify-content: center;
}
.lastfm-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #23262f;
    border-radius: 8px;
    padding: 0.5rem 0.5rem 0.7rem 0.5rem;
    gap: 0.4rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    min-width: 0;
    min-height: 0;
    height: 100%;
    color: #f5f5f7;
}
.lastfm-track img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    background: #353945;
}
.lastfm-track-info {
    flex: 1;
    text-align: center;
    width: 100%;
    min-width: 0;
}
.lastfm-track-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.1rem;
    color: #ffe800;
    letter-spacing: 0.2px;
    word-break: break-word;
}
.lastfm-track-artist {
    font-size: 0.93rem;
    color: #bdbdbd;
    word-break: break-word;
}
.lastfm-track-album {
    font-size: 0.85rem;
    color: #888;
    word-break: break-word;
}
.lastfm-track-time {
    font-size: 0.80rem;
    color: #757575;
    margin-top: 0.1rem;
}

#lastfm-instructions {
    margin-top: 1.5rem;
    color: #bdbdbd;
    font-size: 0.95rem;
}

/* Footer Social Icons */
footer {
    width: 100%;
    padding: 1.2rem 0 0.7rem 0;
    background: none;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
.social-icons {
    display: flex;
    gap: 2.5rem;
}
.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #23262f;
    transition: background 0.2s, transform 0.2s;
}
.social-icons a:hover {
    background: #616161;
    transform: scale(1.10);
}
.social-icons img {
    width: 36px;
    height: 36px;
    filter: none;
}

.dock-box {
    margin: 2.5rem auto 0 auto;
    background: #181a20;
    border-radius: 2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.30);
    padding: 0.7rem 2.5rem 0.7rem 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 320px;
    max-width: 90vw;
}
.dock-box .social-icons {
    gap: 2.5rem;
}
.dock-box .social-icons a {
    width: 56px;
    height: 56px;
    border-radius: 1.2rem;
    background: #23262f;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    transition: background 0.2s, transform 0.2s;
}
.dock-box .social-icons a:hover {
    background: #353945;
    transform: scale(1.10);
}
.dock-box .social-icons img {
    width: 32px;
    height: 32px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    #lastfm {
        max-width: 98vw;
        padding: 1.2rem 0.5rem;
    }
    #lastfm-tracks {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }
}
@media (max-width: 900px) {
    #lastfm {
        max-width: 99vw;
        padding: 1rem 0.2rem;
    }
    #lastfm-tracks {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(5, 1fr);
    }
    .dock-box {
        padding: 0.7rem 0.5rem;
        min-width: 0;
    }
}
@media (max-width: 600px) {
    #lastfm {
        max-width: 100vw;
        padding: 0.5rem 0.1rem;
    }
    #lastfm-tracks {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(10, 1fr);
    }
}
