body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #1a1a1a;
    color: #fff;
    line-height: 1.6;
}

.main-header {
    background-color: rgba(0, 0, 0, 0.8);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo img {
    height: 50px;
}

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

.nav-item {
    margin-left: 20px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #ff6f61;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.content-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.grid-container {
    display: block;
    width: 100%;
}

.controls-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sort-container {
    display: flex;
    align-items: center;
}

.sort-container label {
    margin-right: 10px;
    font-size: 1rem;
}

.sort-select {
    padding: 8px;
    border: 1px solid #444;
    border-radius: 5px;
    background: #2a2a2a;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

.total-tracks {
    font-size: 1rem;
}

.tracklist-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
}

.tracklist-table th {
    padding: 12px;
    text-align: left;
    font-weight: bold;
    color: #fff;
    background: #2a2a2a;
    border-bottom: 2px solid #ddd;
    white-space: nowrap;
}

.tracklist-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #444;
    vertical-align: middle;
    white-space: normal;
    word-wrap: break-word;
    max-width: 250px;
}

.tracklist-table th:nth-child(1),
.tracklist-table td:nth-child(1) {
    width: 60px;
    min-width: 60px;
}

.tracklist-table th:nth-child(2),
.tracklist-table td:nth-child(2),
.tracklist-table th:nth-child(3),
.tracklist-table td:nth-child(3),
.tracklist-table th:nth-child(4),
.tracklist-table td:nth-child(4) {
    min-width: 120px;
}

.tracklist-table th:nth-child(5),
.tracklist-table td:nth-child(5),
.tracklist-table th:nth-child(6),
.tracklist-table td:nth-child(6),
.tracklist-table th:nth-child(7),
.tracklist-table td:nth-child(7) {
    min-width: 80px;
}

.tracklist-table td.shop-links {
    line-height: 1.2;
    display: flex;
    align-items: center;
}

.tracklist-table tr:hover {
    background: #333;
}

.track-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    vertical-align: middle;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    background: #1db954;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    vertical-align: middle;
}

.btn:hover {
    background: #1ed760;
}

.shop-links {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    min-width: 120px;
    margin-top: 32px; /* Shift down to align with thumbnail center */
}

.shop-links a {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.shop-links a:hover {
    color: #1db954;
}

.shop-icon {
    height: 20px;
    width: 20px;
    vertical-align: middle;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        padding: 20px 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        margin: 10px 0;
        text-align: center;
    }

    .hamburger {
        display: block;
    }

    .tracklist-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .tracklist-table th,
    .tracklist-table td {
        padding: 8px;
        max-width: 150px;
    }

    .tracklist-table th:nth-child(1),
    .tracklist-table td:nth-child(1) {
        width: 50px;
        min-width: 50px;
    }

    .tracklist-table td.shop-links {
        margin-top: 12px; /* Adjusted for smaller thumbnail */
    }

    .track-thumbnail {
        width: 40px;
        height: 40px;
    }

    .btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .shop-links {
        min-width: 100px;
        margin-top: 12px;
    }

    .shop-links a {
        font-size: 1rem;
    }

    .shop-icon {
        height: 16px;
        width: 16px;
    }

    .sort-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .sort-container label {
        margin-bottom: 5px;
    }

    .sort-select {
        font-size: 0.9rem;
        padding: 6px;
    }

    .total-tracks {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .content-section {
        padding: 40px 15px;
    }

    .content-section h2 {
        font-size: 2rem;
    }

    .tracklist-table th,
    .tracklist-table td {
        padding: 6px;
        max-width: 120px;
    }

    .tracklist-table th:nth-child(1),
    .tracklist-table td:nth-child(1) {
        width: 40px;
        min-width: 40px;
    }

    .tracklist-table td.shop-links {
        margin-top: 9px; /* Adjusted for smaller thumbnail */
    }

    .track-thumbnail {
        width: 30px;
        height: 30px;
    }

    .sort-container label {
        font-size: 0.9rem;
    }

    .sort-select {
        font-size: 0.8rem;
    }

    .total-tracks {
        font-size: 0.8rem;
    }

    .btn {
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    .shop-links {
        min-width: 80px;
        margin-top: 9px;
    }

    .shop-links a {
        font-size: 0.9rem;
    }

    .shop-icon {
        height: 14px;
        width: 14px;
    }
}