* {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body, html {
    margin: 0;
    padding: 0;
    background-color: #fff;
}

.brand-bar {
    background-color: #ffff64;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Black Navbar */
.nav-bar {
    background-color: #000;
    display: flex;
    justify-content: center;
    width: 100%;
}

.nav-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    padding: 11px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    transition: opacity 0.2s;
}

.nav-item:hover {
    opacity: 0.8;
}

.icon {
    display: inline-block;
    background-color: currentColor;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.logo-icon {
    width: 24px;
    height: 24px;
    -webkit-mask-image: url('assets/svg/tool-box.svg');
    mask-image: url('assets/svg/tool-box.svg');
}

.home-icon {
    width: 16px;
    height: 16px;
    -webkit-mask-image: url('assets/svg/home.svg');
    mask-image: url('assets/svg/home.svg');
}

.artwork-icon {
    width: 16px;
    height: 16px;
    -webkit-mask-image: url('assets/svg/image--search.svg');
    mask-image: url('assets/svg/image--search.svg');
}

.search-icon {
    width: 18px;
    height: 18px;
    -webkit-mask-image: url('assets/svg/search.svg');
    mask-image: url('assets/svg/search.svg');
}

.nav-item.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #fff;
}

.container {
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

#iTunesSearch {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

#query, #entity, #country {
    padding: 0 10px;
    border: 1px solid #ccc;
    font-size: 14px;
    height: 40px;
}

#query {
    flex-grow: 1; 
}

.submit {
    background: #000;
    color: #fff;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    transition: background 0.2s;
    flex-shrink: 0;
}

.submit:hover {
    background: #333;
}

#results img {
    max-width: 100%; 
    height: auto;
}

#results a {
    color: #000;
    text-decoration: underline;
}

#results h3 {
    color: #000;
    margin-top: 20px;
    word-wrap: break-word; 
}

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    #iTunesSearch {
        flex-direction: column; 
        align-items: stretch;
    }

    #query, #entity, #country, .submit {
        width: 100% !important; 
    }

    .nav-item {
        padding: 11px 12px; 
    }
}