/* =======================
   Base Body Styling
======================= */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: 'Press Start 2P', cursive;
    background: url('loungewallpaper.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #dfcc6c;
    text-align: center;
}

    /* Dark Overlay to Enhance Neon Colors */
    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }

/* =======================
   Font Import
======================= */
@import url('https://fonts.googleapis.com/css2?family=Lexend+Giga&display=swap');

/* ========================================================================== 
   Font Import for Window Bar
========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Lexend+Giga&display=swap');

/* ========================================================================== 
   2. Window Bar � Balanced Program-Style
========================================================================== */

.window-top-bar {
    font-family: 'Lexend Giga', sans-serif;
    background-color: #1e1e1e;
    display: flex;
    align-items: center;
    padding: 6px 16px;
    color: #d6cb72;
    border-bottom: 2px solid #d6cb72;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    height: 42px;
    box-sizing: border-box;
}

.window-title {
    font-size: 16px;
    margin-right: auto; /* Pushes controls to the right */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.window-controls button {
    background-color: #1e1e1e;
    color: #d6cb72;
    border: none;
    font-size: 16px;
    padding: 0;
    cursor: pointer;
    height: 30px;
    width: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 3px;
}

.window-controls button:hover {
    background-color: #c67cf4;
    color: #fff;
}

.window-controls button.mute {
    background-color: transparent;
    color: #04ef04;
    font-size: 16px;
}

.window-controls button.mute:hover {
    color: #FF4500;
}

.window-controls .volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 120px;
    height: 6px;
    border-radius: 10px;
    background: linear-gradient(90deg, #dfcc6c, #c67cf4);
    box-shadow: inset 0 1px 4px rgba(255, 255, 255, 0.2), 0 0 5px rgba(198, 124, 244, 0.4);
    outline: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    margin-top: 12px;
}

.window-controls .volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #d6cb72;
    box-shadow: 0 0 5px #d6cb72, 0 0 2px #fff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.window-controls .volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 8px #d6cb72, 0 0 4px #fff;
}

.window-controls .volume-slider::-moz-range-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #d6cb72;
    box-shadow: 0 0 5px #d6cb72, 0 0 2px #fff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.window-controls .volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 8px #d6cb72, 0 0 4px #fff;
}

/* =======================
   Main Container Styling
======================= */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    padding: 100px 20px 20px 20px; /* Increased top padding */
    box-sizing: border-box;
    min-height: calc(100vh - 100px);
}

/* =======================
   Iframe Wrapper Styling
======================= */
.iframe-wrapper {
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    margin: auto;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: inset 0 0 20px rgba(198, 124, 244, 0.2), 0 0 20px rgba(223, 204, 108, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: float 5s ease-in-out infinite;
}

/* Float Animation for Iframe */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}


iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Glowing Border Effect */
.iframe-wrapper::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 15px;
    border: 2px solid transparent;
    background: linear-gradient(45deg, #c67cf4, #dfcc6c, #c67cf4);
    background-size: 400% 400%;
    animation: neonGlow 6s linear infinite;
    z-index: -1;
}

/* Neon Glow Animation */
@keyframes neonGlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* =======================
   Footer Styling
======================= */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: #d6cb72;
    padding: 10px 0;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    text-shadow: 0 0 5px #dfcc6c;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 600px) {
    body {
        font-family: sans-serif;
        font-size: 12px;
    }

    .window-title {
        font-size: 12px;
    }

    footer {
        font-size: 10px;
    }
}

@media (max-width: 600px) {
    .iframe-wrapper {
        width: 100%;
        height: calc(100vh - 100px);
        aspect-ratio: unset;
    }
}

/* Music tooltip styles */
.music-tooltip {
    position: fixed;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-family: 'Lexend Giga', sans-serif;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    pointer-events: none;
    max-width: 250px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.tooltip-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    color: #dfcc6c;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.tooltip-artist {
    font-size: 12px;
    color: #c67cf4;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
