@font-face {
    font-family: 'homevideo';
    src: url('homevideo.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html {
    perspective: 1000px;
}

body {
    margin: 0;
    padding: 0;
    background: #000;
    color: #fff;
    font-family: 'homevideo', sans-serif;
    min-height: 100vh; /* Ensure body spans viewport height */
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Background Image Container - removed fade animation */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--background-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 1;
}

/* Glass Overlay - positioned behind album art */
.glass-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s ease;
}

.glass-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.glass-links {
    position: absolute;
    bottom: 400px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 266px;
    z-index: 61;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s ease;
}

.glass-links.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Player Links - Hovers in album art wrapper */
.player-links {
    position: absolute;
    top: 100%; /* Below the album art */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 266px;
    z-index: 65;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s ease;
}

.player-links.visible {
    opacity: 1;
    pointer-events: auto;
}

.player-links a {
    margin: 10px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 5px;
    color: white;
    text-decoration: none;
    font-size: 18px;
    width: 100%;
    text-align: center;
    font-family: 'homevideo', sans-serif;
    transition: background 0.3s;
    box-sizing: border-box;
}

.player-links a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Album Art Wrapper */
.album-art-wrapper {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 33px 30px; /* Reduced padding to close gap */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    z-index: 70;
    position: relative;
    min-height: 300; /* Ensure space for player-links */
}

.main-album-art {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.2s;
}

.main-album-art:hover {
    transform: scale(1.05);
}

/* Ensure content appears above the background but below glass */
.top-nav {
    position: relative;
    z-index: 100;
    background: transparent;
}

/* Top Navigation */
.top-nav {
    width: 100%;
    background: #0088FF;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-nav .nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-nav .nav-links a {
    text-decoration: none;
    color: #19f0ff;
    font-size: 14px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.top-nav .nav-links a:hover {
    color: #fff;
}

.header-logo {
    height: 20px;
    width: auto;
    margin: 0 10px;
}

/* Main Content */
.main-content {
    flex: 1; /* Allow main content to grow and push footer to bottom */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    padding: 10px; /* Reduced padding to close gap */
    padding-bottom: 20px; /* Reduced padding-bottom */
    text-align: center;
    z-index: 40;
}

.main-content h1, .main-content h2 {
    font-family: 'homevideo', sans-serif;
    color: #fff;
    font-size: 20px;
    margin-bottom: 2px;
}

.main-content p {
    font-family: 'homevideo', sans-serif;
    font-size: 12px;
    line-height: 1;
    max-width: 333px;
    color: #ffffff;
    z-index: 40;
}

.main-content a {
    color: #00ffbd;
    text-decoration: none;
}

.main-content a:hover {
    text-decoration: underline;
}

.sample-button {
    font-family: 'homevideo', sans-serif;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    padding: 10px 20px;
    background: #19f0ff;
    color: #000;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
    text-decoration: none;
    margin-top: 20px;
}

.sample-button:hover {
    transform: scale(1.05);
    background: #fff;
    color: #000;
}

/* Accessibility Focus Styles */
a:focus, button:focus {
    outline: 2px solid #19f0ff;
}

/* Player Bar */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    transition: opacity 0.3s ease;
    border-top: 1px solid cyan;
    z-index: 80;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.footer.hidden {
    opacity: 0;
    pointer-events: none;
}

.footer.visible {
    opacity: 1;
    pointer-events: auto;
}

.mini-album-art {
    width: 50px;
    height: 50px;
    margin-right: 5px;
    max-height: 100%;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 100%;
    max-height: 65px;
}

.player-controls button {
    background: none;
    border: none;
    color: cyan;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
    line-height: 65px;
}

/* Media Query for Desktop */
@media (min-width: 601px) {
    .footer {
        height: 65px;
        max-height: 65px;
    }
    .player-controls {
        max-height: 65px;
    }
    .mini-album-art {
        max-height: 50px;
    }
    .player-controls button {
        line-height: 65px;
    }
}

/* Media Query for Mobile */
@media (max-width: 600px) {
    .main-content h1 {
        font-size: 28px;
    }
    .main-content h2 {
        font-size: 20px;
    }
    .main-content p {
        font-size: 16px;
    }
    .sample-button {
        font-size: 12px;
        padding: 8px 16px;
    }
    .glass-links {
        bottom: 300px;
        width: 85%;
    }
    .player-links {
        bottom: 300px;
        width: 85%;
    }
    .footer {
        position: fixed; /* Reinforce stickiness on mobile */
        height: 65px;
        max-height: 65px;
    }
    .player-controls {
        max-height: 65px;
    }
    .mini-album-art {
        max-height: 40px; /* Adjust for smaller screens */
    }
    .player-controls button {
        line-height: 65px;
    }
}