body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;
    margin: 0;
    background: #fafafa;
    color: #333;
}

header {
    padding: 40px;
    background: #222;
    color: white;
}

.header-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-link {
    position: absolute;
    right: calc(50% + 150px);
    width: 120px;
    height: 120px;
}

.logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    display: block;
}

.header-text {
    text-align: left;
}

.header-text h1 {
    margin: 0;
}

.header-text p {
    margin-top: 10px;
}

.container {
    max-width: 900px;
    margin: auto;
    padding: 30px;
}

#search {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

#tags {
    margin: 25px 0;
}

#songs {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

button {
    padding: 10px 18px;
    margin-right: 10px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    background: #333;
    color: white;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, .1);
    cursor: pointer;
    transition: .2s;
    min-height: 150px;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 5px 15px rgba(0, 0, 0, .15);
}

.card h3 {
    margin-top: 0;
}

.tag {
    display: inline-block;
    background: #eee;
    padding: 5px 10px;
    margin: 3px;
    border-radius: 15px;
    font-size: 13px;
}

.links {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.icon-link img {
    width: 30px;
    height: 30px;
    display: block;
}

.icon-link:hover img {
    transform: scale(1.1);
}

.pdf {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #222;
    color: white;
    text-decoration: none;
    border-radius: 8px;
}

footer {
    display:flex;
    justify-content:center;
    margin-top: 100px;
    padding: 20px;
}

.footer-github {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.github-handle {
    font-size: 10px;
    margin-top: 3px;
    text-decoration: none;
    color: inherit;
}

.affiliate-box {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 240px;
    padding: 14px 16px 14px 16px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
    z-index: 1000;
    box-sizing: border-box;
}

.affiliate-links {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
}

.amazon-link,
.temu-link {
    display: block;
    color: #000;
    text-decoration: none;
}

.amazon-link:hover,
.temu-link:hover {
    text-decoration: underline;
}

.affiliate-note {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #777;
}

.affiliate-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: auto;
    height: auto;
    padding: 0 !important;
    margin: 0 !important;
    border: none;
    border-radius: 0;
    background: none;
    color: #777;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.affiliate-close:hover {
    color: #222;
}