* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-image: url("../images/SpaceBackground.gif");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: aqua;
}

/* =========================
   PAGE LAYOUT
========================= */

.page-container {
    width: 100%;
    max-width: 1400px;
    margin: auto;
    padding: 20px;
}

.banner,
.dragonfly {
    text-align: center;
    margin-bottom: 30px;
}

.banner img {
    width: 100%;
    max-width: 1000px;
    height: auto;
}

.dragonfly img {
    width: 100%;
    max-width: 600px;
    height: auto;
}

/* =========================
   TITLES
========================= */

h1 {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
    text-shadow: 0 0 12px aqua;
}

/* =========================
   GRID
========================= */

.release-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    justify-items: center;
}

/* =========================
   ALBUM CARD
========================= */

.album-card {
    position: relative;
    width: 100%;
    max-width: 420px;
}

.promo-card {
    width: 100%;
    display: block;
    border-radius: 12px;
    overflow: hidden;

    box-shadow:
        0 0 10px rgba(0,255,255,0.25),
        0 0 30px rgba(0,255,255,0.15);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.album-card:hover .promo-card {
    transform: scale(1.02);

    box-shadow:
        0 0 20px rgba(0,255,255,0.45),
        0 0 40px rgba(0,255,255,0.25);
}

/* =========================
   OVERLAY BUTTON
========================= */

.album-overlay-button {
    position: absolute;
    bottom: 20px;
    right: 20px;

    background: rgba(0,0,0,0.8);
    border: 1px solid aqua;

    color: aqua;

    padding: 10px 16px;

    border-radius: 8px;

    cursor: pointer;

    backdrop-filter: blur(5px);

    transition: all 0.2s ease;
}

.album-overlay-button:hover {
    background: rgba(0,255,255,0.15);
    box-shadow: 0 0 12px rgba(0,255,255,0.5);
}

/* =========================
   POPUP PANEL
========================= */

.popup-panel {
    position: fixed;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%) scale(0.9);

    width: 95%;
    max-width: 650px;

    max-height: 85vh;
    overflow-y: auto;

    background: rgba(5, 5, 15, 0.96);

    border: 1px solid aqua;

    border-radius: 16px;

    padding: 25px;

    z-index: 1000;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;

    box-shadow:
        0 0 25px rgba(0,255,255,0.25),
        0 0 60px rgba(0,255,255,0.15);

    backdrop-filter: blur(10px);
}

.popup-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* =========================
   BACKDROP
========================= */

.popup-backdrop {
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.7);

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.25s ease;

    z-index: 900;
}

.popup-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* =========================
   CLOSE BUTTON
========================= */

.close-button {
    float: right;

    font-size: 1.5rem;

    cursor: pointer;

    color: aqua;
}

/* =========================
   MENU BUTTONS
========================= */

.popup-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;

    margin-top: 20px;
    margin-bottom: 25px;
}

.popup-menu button {
    background: rgba(0,255,255,0.08);

    border: 1px solid aqua;

    color: aqua;

    padding: 12px 20px;

    border-radius: 10px;

    cursor: pointer;

    transition: all 0.2s ease;
}

.popup-menu button:hover {
    background: rgba(0,255,255,0.2);

    box-shadow: 0 0 10px rgba(0,255,255,0.4);
}

/* =========================
   CONTENT PANELS
========================= */

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.track-list,
.listen-list {
    margin-top: 20px;
}

.track-item,
.listen-item {
    padding: 12px;
    margin-bottom: 10px;

    border: 1px solid rgba(0,255,255,0.2);

    border-radius: 8px;

    background: rgba(255,255,255,0.03);
}

.listen-item a {
    color: aqua;
    text-decoration: none;
}

/* =========================
   FOOTER
========================= */

.footer {
    margin-top: 60px;
    text-align: center;
    padding-bottom: 30px;
}

.footer img {
    width: 100%;
    max-width: 300px;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .popup-menu {
        flex-direction: column;
    }

    .popup-menu button {
        width: 100%;
    }

}
