body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    position: relative;
    background: linear-gradient(to bottom, #1DB954, #191414);
    min-height: 100vh;
}

.float-right {
    float: right;
    margin-right: 15px;
}

h1 {
    margin: 20px 0 15px 10px;
    color: #fff;
}

.container {
    max-width: 600px;
    margin: auto;
    padding: 10px;
    margin-bottom: 60px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.card {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-decoration: none;
    color: black;
    transition: transform 0.2s ease-in-out;
    overflow: hidden;
}

.card:hover, .card:focus {
    transform: scale(1.05);
}

.card-image {
    width: 100%;
    padding-top: 100%; /* Aspect ratio 1:1 */
    position: relative;
    overflow: hidden;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 10px;
    text-align: center;
    word-wrap: break-word;
    background-color: #1c673c;
    color: #fff;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 60px; /* Default height for Most played and All sections */
    box-sizing: border-box; /* Ensures padding is included in the height */
}

/* Specific height for Latest section */
.container .section:first-child .card-content {
    min-height: 78px; /* Increased height for Latest section */
}

@media (min-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.lowbar {
    position: fixed;
    bottom: 0;
    background-color: #282928;
    width: 100%;
    padding: 10px;
    display: flex;
    justify-content: space-between;
}

.lowbar .icons {
    margin-left: 10px;
}

.menu-btn {
    margin-left: 40px;
    color: #fff;
    text-decoration: none;
    background-color: transparent;
    border: none;
}

.bi-plus-lg {
    width: 25px;
    height: 25px;
}
.upload-modal {
    width: min(520px, calc(100% - 32px));
    padding: 24px;
    border: 1px solid #777;
    border-radius: 12px;
    background: #24252b;
    color: #fff;
}

.upload-modal::backdrop { background: #000a; }
.upload-modal button { padding: 10px 16px; cursor: pointer; }
.upload-modal__close {
    float: right;
    padding: 2px 8px !important;
    border: 0;
    background: none;
    color: #fff;
    font-size: 24px;
}

.upload-progress { display: none; align-items: center; gap: 10px; margin-top: 16px; }
.upload-progress.is-active { display: flex; }
.upload-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid #aaa;
    border-top-color: #fff;
    border-radius: 50%;
    animation: upload-spin .8s linear infinite;
}

@keyframes upload-spin { to { transform: rotate(360deg); } }
