/* ===== CORE STYLES (UNCHANGED) ===== */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #fdfdfd;
    color: black;
    line-height: 1.6;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #fdfdfd;
    z-index: 1;
}

.no-style {
    color: inherit;
    text-decoration: none;
}

.logo {
    display: flex;
    align-items: center;
}

#font {
    height: 50px;
    margin-right: 7px;
    float: right;
    margin-top: 10px;
}

#cross {
    height: 100px;
}

#logo {
    height: 90px;
    margin-right: 7px;
    position: absolute;
    left: 1.3rem;
    bottom: 0.5rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 5rem;
    margin: 0;
    padding: 0;
}

section {
    padding: 2rem;
    text-align: center;
}
/* ===== PRECISE COVER-HOVER VERSION ===== */
.releases {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.release-item {
    display: flex;
    justify-content: center;
    margin: 0 auto 4rem;
    max-width: 800px;
}

/* Container for cover + info */
.release-container {
    position: relative;
    display: inline-block; /* Contain hover area */
}

.release {
    width: 350px;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.release-info {
    position: absolute;
    left: 100%; /* Starts right of cover */
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    opacity: 0;
    padding-left: 2rem;
    transition: opacity 0.8s ease;
    margin-left: 10px;
    text-align: left; /* Add this line */
    white-space: normal; /* Add this to prevent forced single line */
}
.release-info h2,
.release-info p {
    text-align: left; /* Ensure all text elements align left */
    white-space: normal; /* Allow text to wrap naturally */
    margin-left: 0; /* Remove any default margins */
}

/* Hover only triggers when mouse is over cover */
.release-container:hover .release-info {
    opacity: 1;
}

/* Mobile layout */
@media (max-width: 900px) {
    .release-item {
        flex-direction: column;
        align-items: center;
    }

    .release {
        width: 280px;
        height: 280px;
    }

    .release-info {
        position: static;
        opacity: 1;
        transform: none;
        width: 100%;
        padding: 1rem 0 0 0;
        margin-left: 0;
        text-align: center;
    }
}

video {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

footer {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: transparent;
    color: black;
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    text-align: right;
    z-index: 10;
    line-height: 1.5;
}

    /* ===== MODERN ENHANCEMENTS ===== */
/* 1. Smoother Link Animations */
nav ul li a {
    text-decoration: none;
    color: black;
    font-size: 0.7rem;
    position: relative;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    text-decoration: none;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: black;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* 2. Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    video {
        animation: none;
        transition: none;
    }
}

/* 3. Focus Accessibility */
a:focus-visible {
    outline: 2px solid black;
    outline-offset: 3px;
}

/* 4. Touch Targets */
nav ul li a {
    padding: 0.5rem 0; /* Larger touch area */
}

/* 5. Responsive Video Height */
@media (max-width: 768px) {
    video {
        height: 400px; /* Slightly smaller on mobile */
    }
}

/* 6. Print Styles */
@media print {
    header, footer {
        position: static;
    }
    video {
        display: none;
    }
}

/* 7. Performance Optimization */
.release-info {
    will-change: opacity; /* Browser hint for smoother animation */
}
/* ===== MOBILE OPTIMIZATION ===== */
@media (max-width: 768px) {
    /* 1. Header Adjustments */
    header {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
    }

    #font {
        height: 40px;
        margin-top: 5px;
        margin-right: 0;
    }

    /* 2. Navigation Stack */
    nav ul {
        gap: 1.5rem;
        padding: 0.5rem 0;
        width: 100%;
        justify-content: space-between;
    }

    nav ul li a {
        font-size: 0.65rem;
        white-space: nowrap;
    }

    /* 3. Perfectly Centered Video */
    video {
        height: 55vh;
        min-height: 300px;
        margin: 0 auto;
        display: block;
    }

    /* 4. Footer Grouping (Cross + Text) */
    footer {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        padding: 0.5rem 1rem 1rem;
    }

    #cross {
        height: 60px;
        margin-bottom: 0.5rem;
    }

    footer p {
        font-size: 0.35rem;
        margin: 0.1rem 0;
        text-align: right;
    }

    #logo {
        height: 70px;
        left: 0.5rem;
        bottom: 0.25rem;
    }

    /* 5. Content Padding */
    section {
        padding: 1.5rem 1rem;
        padding-bottom: 120px; /* Space for footer */
    }

    /* 6. Album Covers */

    .release {
        width: 500px;
        height: 500px;
    }
    .release-info {
        font-size: 0.4rem;
        padding-top: 0.3rem; /* Half the original space */
        margin-top: 0; /* Remove any default margins */
        text-align: left; /* Change from 'center' to 'left' */
        white-space: normal; /* Add this */
    }
    .release-info h2,
    .release-info p {
        margin-top: 0; /* Remove h2 top margin */
        text-align: left;
        white-space: normal;
    }

    .release-item {
        margin-bottom: 2rem;
    }

}

/* ===== PHONE-SPECIFIC ENHANCEMENTS ===== */
@media (max-width: 480px) {
    /* Smaller covers for tiny phones */
    .release {
        width: 180px;
        height: 180px;
    }

    /* Adjust footer spacing */
    footer {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }

    /* Smaller cross */
    #cross {
        height: 50px;
    }

    /* Navigation adjustments */
    nav ul {
        gap: 1rem;
    }

    /* Video height */
    video {
        height: 50vh;
    }

    /* Logo size */
    #logo {
        height: 60px;
    }
}
