body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    background: #000;
    min-height: 100vh;
    /* Removed overflow:hidden so you can actually see your list */
}

.background-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('/static/images/Boom-A-Beat_Background.png') no-repeat center center fixed;
    background-size: cover;
    filter: brightness(0.3); 
    z-index: -1;
}

.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6); 
    border-radius: 20px;
    border: 1px solid rgba(82, 133, 163, 0.3);
}

.main-logo {
    width: 280px; 
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
}

header { text-align: center; margin-bottom: 40px; }

.beat-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.beat-title { font-weight: bold; font-size: 1.2rem; color: white; }
.beat-price { color: #5285a3; font-size: 1rem; margin-top: 5px; display: block; }

.play-btn {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    margin-right: 10px;
    transition: 0.3s;
}

.play-btn:hover { background: white; color: black; }

.buy-btn {
    background: #5285a3;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

.buy-btn:hover { background: #3d647a; }

/* --- YOUTUBE OVERLAY STYLING --- */
#video-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Keeps it above everything */
}

.overlay-content {
    background: #111;
    padding: 25px;
    border-radius: 15px;
    width: 90%;
    max-width: 750px;
    border: 1px solid #5285a3;
    position: relative;
    text-align: center;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin-bottom: 20px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 8px;
}

.close-btn {
    position: absolute;
    top: -50px; right: 0;
    background: none; border: none;
    color: white; font-size: 3rem;
    cursor: pointer;
}

.hidden { display: none !important; }