body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background: #0f0f0f;
    color: white;
}

h1 {
    margin-bottom: 20px;
}

a {
    all: unset;
    cursor: pointer;
}

/* GRID */
#songs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

/* CARD */
.card {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.title {
    font-weight: bold;
    font-size: 1rem;
}

.artist {
    color: white;
    font-size: 0.9rem;
}

/* CAROUSEL */
.carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #111;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    font-size: 20px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    border-radius: 50%;
}

.arrow:hover {
    background: rgba(255,255,255,0.2);
}

.left {
    left: 8px;
}

.right {
    right: 8px;
}

.counter {
    position: absolute;
    bottom: 6px;
    right: 8px;
    font-size: 12px;
    background: rgba(0,0,0,0.5);
    padding: 2px 6px;
    border-radius: 6px;
}

.audio {
    width: 100%;
}

.genre {
    margin-top: 0px;
    margin-bottom: 0px;
    font-weight: bold;
}

.header {
    cursor: pointer;
    user-select: none;
}

.version-filter-label {
    user-select: none;
}

.genre-filter-label {
    user-select: none;
}

div[data-genre="101"] {
    background-color: #ff972a;
}

div[data-genre="102"] {
    background-color: #02c8d3;
}

div[data-genre="103"] {
    background-color: #ad59ee;
}

div[data-genre="104"] {
    background-color: #4be070;
}

div[data-genre="105"] {
    background-color: #f64849;
}

div[data-genre="106"] {
    background-color: #3584fe;
}

div[data-genre="107"] {
    background-color: #dc39b8;
}

div[data-closed="false"] {
    display: block;
}

div[data-closed="true"] {
    display: none;
}

#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    font-size: 1rem;
    cursor: pointer;
    display: none;
    z-index: 1000;
}

#song-player {
    position: fixed; /* overlay the whole screen */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.8); /* semi-transparent black */
    display: flex; /* center content */
    justify-content: center;
    align-items: center;
    z-index: 9999; /* make sure it's on top */
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto; /* scroll if content is tall */
    display: none; /* hide by default */
  }
  
  #song-player .modal-content {
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    text-align: center;
  }
  
  #song-player img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    user-select: none;
  }
  
  #song-player .title {
    display: block;
    font-size: 1.5rem;
    margin: 15px 0 5px;
  }
  
  #song-player .artist,
  #song-player .genre {
    font-size: 1rem;
    margin-bottom: 5px;
  }
  
  #song-player audio {
    width: 100%;
    margin-top: 15px;
  }