/* ===============================
   🔧 GLOBAL CONTROL (TUNED)
=============================== */

:root {
    --controls-offset: 320px;     /* timeline DOWN */
    --wave-offset: 210px;         /* wave position */

    --player-bg: #136692;
    --player-dark: #0a3d5a;
    --accent: #ffd800;
    --text: #ffffff;

    --player-width: 1400px;

    /* 🔥 WIDTH CONTROL */
    --player-stretch: 640px;
}


/* ===============================
   RESET (SAFE)
=============================== */

.player-container,
.player-container * {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}


/* ===============================
   PLAYER CONTAINER
=============================== */

.player-container {
    width: 100%;
    max-width: var(--player-width);
    margin: 100px auto 40px;

    padding: 30px 20px 100px;
    border-radius: 10px;

    background: var(--player-bg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);

    overflow: visible;
}


/* ===============================
   PLAYER BOX
=============================== */

.player-box {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
    width: 100%;
}


/* ===============================
    PLAYER WRAP (STRETCH CONTROL)
=============================== */

.player-ui-wrap {
    position: relative;
    width: calc(100% + var(--player-stretch));
    left: calc(var(--player-stretch) / -2);
}


/* ===============================
   🔥 TITLE CONTROL (FIXED + FORCED)
=============================== */

.player-container .player-title {
    margin: 0 !important;
    padding: 0 !important;

    position: relative !important;

    top: 40px !important;  /* 🔥 CHANGE THIS NUMBER ONLY */

    text-align: center !important;
    color: var(--text) !important;
}


/* ===============================
   CONTROLS BAR
=============================== */

.controls {
    display: flex;
    align-items: center;
    gap: 12px;

    width: 100%;
    height: 36px;
    padding: 6px 12px;

    background: rgba(0,0,0,0.1);
    border-radius: 6px;

    position: relative;
    top: var(--controls-offset);
    z-index: 2;
}


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

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-buttons button {
    background: none;
    border: none;
    color: var(--text);
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.nav-buttons button:hover {
    transform: scale(1.15);
}


/* ===============================
   PROGRESS BAR
=============================== */

.progress-container {
    flex-grow: 1;
    height: 3px;
    border-radius: 2px;
    background: var(--player-dark);
    cursor: pointer;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.1s linear;
}


/* ===============================
   TIME DISPLAY
=============================== */

.time-display {
    font-size: 11px;
    color: var(--text);
    min-width: 60px;
    text-align: center;
}


/* ===============================
   VOLUME
=============================== */

.volume-container {
    display: flex;
    align-items: center;
    width: 70px;
}

#volumeSlider {
    width: 100%;
    cursor: pointer;
}


/* ===============================
   🔊 WAVE VISUALIZER
=============================== */

#terrainVisualizer {
    position: absolute;
    top: var(--wave-offset);
    left: 0;
    width: 100%;
    height: 110px;

    z-index: 3;
    pointer-events: none;
    opacity: 0.9;
}


/* ===============================
   LIVE DOT
=============================== */

.live-dot {
    height: 8px;
    width: 8px;
    background-color: red;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    box-shadow: 0 0 6px red;
}


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

@media (max-width: 600px) {

    .player-container {
        padding: 20px 10px 80px;
        margin: 60px auto;
    }

    .controls {
        gap: 6px;
        height: 32px;
        padding: 4px 8px;
    }

    .nav-buttons button {
        font-size: 14px;
    }

    .volume-container {
        width: 40px;
    }

    .time-display {
        font-size: 10px;
    }

    #terrainVisualizer {
        height: 80px;
    }

    .player-ui-wrap {
        width: 100%;
        left: 0;
    }
}