body {
    background-color: rgb(16 16 16);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

textarea:focus,
input:focus {
    outline: none;
}

label {
    color: white;
    width: 20%;
    cursor: pointer;
}

input {
    width: 80%;
}

.centralElmt {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: fixed;
    top: 0px;
    left: 0px;
}

.btn {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    width: 40px;
    height: 40px;
    position: fixed;
    border-radius: 20px;
    border: 3px solid aquamarine;
    background-color: rgba(0, 0, 0, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0px 0px 10px rgba(127, 255, 212, 0.5);
    z-index: 5;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    top: 50%;
}

.btn:hover {
    box-shadow: 0px 0px 20px rgba(127, 255, 212, 0.8);
}

.triangle-play {
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-left: 12px solid;
    border-bottom: 6px solid transparent;
    margin: 6px 7px;
}

#bg {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 60%);

}

#glcanvas {
    background-image: url('imgs/chromatobg.png');
    background-repeat: no-repeat;
    background-position: center center;
    opacity: 0.8;
}

#lay_top {
    background-image: url('imgs/chromatoverlay.png');
    background-repeat: no-repeat;
    background-position: center center;
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

/*////////////////////////////////////////////////////////////////////////////////////////////*/

td {
    width: 20%;
    text-align: center;
    color: white;
}

#bottom_player_controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 0px 0px 10px black;
    border-radius: 30px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 150;
}

#player_list {
    /* background-color: rgb(52 106 88 / 32%); */
    padding: 9px;
    /* height: 100%; */
}

.playlist_item,
.player_listItem {
    background-color: rgb(2 20 20 / 51%);
    border: 1px solid #1d5b46;
    height: 50px;
    padding: 6px 12px;
    cursor: pointer;
    margin-bottom: 7px;
    text-align: left;
    padding-left: 66px;
    text-shadow: 0px 0px 4px rgba(0, 0, 0, 0.9);
    border-radius: 12px;
    transition: all 0.3s;
    position: relative;
    display: flex;
    overflow: hidden;
    color: #3b705e;
}

.playlist_item:hover,
.player_listItem:hover {
    background: linear-gradient(135deg, rgba(25, 25, 25, 0.98) 0%, rgba(40, 40, 40, 0.98) 100%);
    border-color: rgba(127, 255, 212, 0.3);
    transform: translateX(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

.playlist_item_selected,
.playlist_item.plItem_select,
.player_listItem.plItem_select {
    background: linear-gradient(135deg, rgba(127, 255, 212, 0.2) 0%, rgba(100, 200, 255, 0.2) 100%);
    border-color: aquamarine;
    box-shadow: 0 0 15px rgb(127 208 255 / 30%);
    /* color: #f98f01; */
}

#cont_player_info {
    color: white;
    text-align: center;
    padding: 8px;
    font-family: monospace;
}


#btn_back,
#btn_forward,
#btn_PlayPause {
    background-repeat: no-repeat;
    background-position: center center;
    cursor: pointer;
    background-size: 21px;
    width: 32px;
    height: 32px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

#btn_back:hover,
#btn_forward:hover,
#btn_PlayPause:hover {
    opacity: 1;
}

.control_btn {
    cursor: pointer;
    font-size: 18px;
    opacity: 0.7;
    transition: all 0.3s;
    user-select: none;
}

.control_btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

#btn_volume {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#btn_back {
    background-image: url('imgs/backw.png');
}

#btn_forward {
    background-image: url('imgs/forw.png');
}

#btn_PlayPause {
    background-image: url('imgs/play.png');
}

#lab_currTime,
#lab_lengthTime {
    font-family: monospace;
    cursor: default;
    font-size: 14px;
}

#lab_currTime {
    color: #cf7e00;
}

#lab_lengthTime {
    color: #666666;
}

#volm {
    width: 20px;
    height: 20px;
    border: 1px solid #d2d2d2f2;
    border-radius: 50%;
    cursor: pointer;
    background-image: radial-gradient(circle, rgb(255, 255, 255) 60%, rgba(0, 0, 0, 0) 72%);
}

/* Playlist panel */
#playlist_panel {
    position: fixed;
    right: 20px;
    top: 80px;
    width: 350px;
    max-height: calc(100vh - 240px);
    overflow-y: auto;
    border-radius: 12px;
    padding: 20px;
    z-index: 140;
    background: linear-gradient(145deg, rgba(15, 15, 15, 0.98) 0%, rgba(25, 25, 25, 0.98) 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(127, 255, 212, 0.1);
    border: 1px solid rgba(127, 255, 212, 0.2);
    backdrop-filter: blur(15px);
    display: none;
}

#playlist_panel::-webkit-scrollbar {
    width: 6px;
}

#playlist_panel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 3px;
}

#playlist_panel::-webkit-scrollbar-thumb {
    background: rgba(127, 255, 212, 0.4);
    border-radius: 3px;
}

#playlist_panel::-webkit-scrollbar-thumb:hover {
    background: rgba(127, 255, 212, 0.6);
}

/* Mobile playlist dropup */
@media (max-width: 768px) {
    #playlist_panel {
        right: auto;
        left: 50%;
        top: auto;
        bottom: 180px;
        transform: translateX(-50%);
        width: 90%;
        max-width: 400px;
        max-height: 50vh;
    }
}

/* Top controls container */
#top_controls_container {
    position: fixed;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 150;
    padding: 3px;
    border-radius: 40px;
    /* border: 1px solid #00000033; */
}

/* Feature controls panel */
#feature_controls {
    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: 0px 0px 15px black;
    border-radius: 30px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Side control buttons (options and playlist) */
.side_control_btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgb(15 26 25);
    border: 1px solid #1d5b46;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
    box-shadow: 0px 0px 24px rgba(0, 0, 0, 1.0);
    color: #999;
}

.side_control_btn:hover {
    background-color: rgba(60, 60, 60, 0.9);
    border-color: aquamarine;
    color: #ccc;
    transform: scale(1.05);
}

.side_control_btn.active {
    background-color: rgb(45 70 74);
    border-color: aquamarine;
    color: #000000;
    box-shadow: 0 0 15px rgba(127, 255, 212, 0.6);
}

.feature_btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #666;
    background-color: rgba(50, 50, 50, 0.8);
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
    transition: all 0.3s;
    opacity: 0.7;
}

.feature_btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.feature_btn.active {
    border-color: aquamarine;
    background-color: rgba(127, 255, 212, 0.2);
    opacity: 1;
    box-shadow: 0 0 10px rgba(127, 255, 212, 0.5);
}

/* Lyrics display */
#lyrics_display {
    position: fixed;
    bottom: 165px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    padding: 16px 32px;
    border-radius: 10px;
    max-width: 80%;
    text-align: center;
    z-index: 130;
    display: none;
}

#lyrics_line1,
#lyrics_line2 {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(127, 255, 212, 0.8);
    margin: 4px 0;
    transition: color 0.3s;
}

#lyrics_line1.highlight,
#lyrics_line2.highlight {
    color: aquamarine;
    font-size: 28px;
}

/* 3D Character container */
#character_container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    display: none;
}

/* Audio visualizer background */
#audio_visualizer_bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: none;
}



/* Right Panel */

#right_Panel {
    position: fixed;
    right: 20px;
    top: 50%;
    width: 480px;
    height: 530px;
    transform: translateY(-56%);
    /* max-height: calc(100vh - 33px); */
    /* background: linear-gradient(145deg, rgba(15, 15, 15, 0.98) 0%, rgba(25, 25, 25, 0.98) 100%); */
    /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(127, 255, 212, 0.1); */
    /* border: 1px solid rgba(127, 255, 212, 0.2); */
    /* border-radius: 12px 12px 12px 12px; */
    padding: 9px 9px 9px 9px;
    z-index: 145;
    /* display: none; */
    /* overflow-y: hidden; */
    /* backdrop-filter: blur(15px); */
    /* direction: rtl; */
}

#lyrics_container {
    text-align: center;
    color: white;
    font-family: system-ui;
}


/* Options panel */
#options_panel {
    position: fixed;
    left: 20px;
    top: 50%;
    width: 480px;
    height: 530px;
    transform: translateY(-56%);
    /* max-height: calc(100vh - 33px); */
    /* background: linear-gradient(145deg, rgba(15, 15, 15, 0.98) 0%, rgba(25, 25, 25, 0.98) 100%); */
    /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(127, 255, 212, 0.1); */
    /* border: 1px solid rgba(127, 255, 212, 0.2); */
    /* border-radius: 12px 12px 12px 12px; */
    padding: 9px 9px 9px 9px;
    z-index: 145;
    display: none;
    /* overflow-y: hidden; */
    /* backdrop-filter: blur(15px); */
    direction: rtl;
}


.tab-pane::-webkit-scrollbar,
.Rtab-pane::-webkit-scrollbar {
    width: 6px;
}

.tab-pane::-webkit-scrollbar-track,
.Rtab-pane::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 3px;
}

.tab-pane::-webkit-scrollbar-thumb,
.Rtab-pane::-webkit-scrollbar-thumb {
    background: rgba(127, 255, 212, 0.4);
    border-radius: 3px;
}

.tab-pane::-webkit-scrollbar-thumb:hover,
.Rtab-pane::-webkit-scrollbar-thumb:hover {
    background: rgba(127, 255, 212, 0.6);
}


.tab-content {
    border: 1px solid rgba(127, 255, 212, 0.2);
    border-radius: 0px 0px 12px 12px;
    backdrop-filter: blur(15px);
    /* overflow-y: scroll; */
    padding: 9px;
    background-color: rgb(17 32 27 / 33%);
    border-top: 0px;
    /* border-top-right-radius: 0px; */
}

.tab-content::-webkit-scrollbar {
    width: 6px;
}

.tab-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 3px;
}

.tab-content::-webkit-scrollbar-thumb {
    background: rgba(127, 255, 212, 0.4);
    border-radius: 3px;
}

.tab-content::-webkit-scrollbar-thumb:hover {
    background: rgba(127, 255, 212, 0.6);
}

.tab-buttons {
    display: flex;
    /* gap: 8px; */
    /* margin-bottom: 20px; */
    border-bottom: 2px solid LinearGradient(26%);
    /* padding-bottom: 10px; */
    /* place-content: center; */
}

.tab-btn,
.Rtab-btn {
    background-color: rgb(156 255 214 / 23%);
    border: 1px solid #66666673;
    /* border-right: 0; */
    color: #1a1a1a;
    padding: 8px 32px;
    border-radius: 12px 12px 0px 0px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    backdrop-filter: blur(15px);
    border-bottom: none;
    font-style: oblique;
    text-shadow: 0px 0px 2px #00000063;
}

.tab-btn:hover,
.Rtab-btn:hover {
    background-color: rgb(57 71 57 / 70%);
    color: #ccc;
}

.tab-btn.active,
.Rtab-btn.active {
    background-color: rgb(17 32 27 / 33%);
    border-color: #425f4994;
    color: aquamarine;
    box-shadow: 0 0 10px rgba(127, 255, 212, 0.3);
    border: 1px solid #2c5348;
    border-bottom: 0;
    /* font-style: oblique; */
    /* font-weight: 900; */
    /* border-top-right-radius: 11px; */
}

.tab-pane,
.Rtab-pane {
    display: none;
    /* color: white; */
    overflow-y: auto;
    height: 100%;
    /* box-shadow: 0 8px 8px 0px black; */
    /* padding-bottom: 44px; */
    /* overflow-x: hidden; */
}

.tab-pane.active,
.Rtab-pane.active {
    display: block;
}

.option-group {
    margin-bottom: 20px;
}

.option-label {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.option-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #444;
    outline: none;
    -webkit-appearance: none;
}

.option-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: aquamarine;
    cursor: pointer;
}

.option-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: aquamarine;
    cursor: pointer;
    border: none;
}

/* Character timeline (above progress bar) */
#character_timeline {
    position: fixed;
    bottom: 89px;
    left: 0;
    right: 0;
    width: 100%;
    height: 56px;
    background-color: rgb(0 0 0 / 90%);
    z-index: 151;
    display: none;
    overflow: hidden;
    box-shadow: 1px 3px 9px #000000bd;
}

#character_timeline_seeker {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    height: 9px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    cursor: pointer;
    border-bottom: 1px solid rgba(127, 255, 212, 0.2);
    z-index: 12;
}

#character_timeline_seeker:hover {
    border-bottom: 1px solid rgba(151, 10, 69, 0.2);
}

#timeline_seeker_progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(127, 255, 212, 0.4) 0%, rgba(127, 255, 212, 0.6) 100%);
    pointer-events: none;
    border-right: 1px solid #ff6a00;
}

.timeline-btn {
    width: 22px;
    height: 22px;
    background: black;
    position: absolute;
    /* left: 50%; */
    top: 0;
    cursor: pointer;
    border-radius: 50%;
}

.timeline_btn.active {
    background-color: #666666;
}

/*
#timeline_controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    z-index: 10;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(127, 255, 212, 0.2);
}

.timeline_btn {
    background-color: rgba(50, 50, 50, 0.8);
    border: 1px solid #666;
    color: aquamarine;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.timeline_btn:hover {
    background-color: rgba(80, 80, 80, 0.9);
    border-color: aquamarine;
}

#timeline_zoom_label {
    color: #999;
    font-size: 11px;
    padding: 4px 8px;
}*/

#character_timeline_bar {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
}

#character_timeline_bar::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

#timeline_content {
    position: relative;
    height: 100%;
    /* bottom: 0; */
    /* top: 0; */
    min-width: 100%;
    background: linear-gradient(to bottom, rgba(127, 255, 212, 0.05) 0%, rgba(127, 255, 212, 0.15) 100%);
    border-top: 2px solid rgba(127, 255, 212, 0.3);
    /* opacity: 0.6; */
}

#timeline_markers {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 25px;
    border-bottom: 1px solid rgba(127, 255, 212, 0.2);
}

.time_marker {
    position: absolute;
    top: 0;
    height: 100%;
    border-left: 1px solid rgba(127, 255, 212, 0.3);
    color: #235365;
    font-size: 9px;
    padding-left: 3px;
    padding-top: 2px;
}

.time_marker.major {
    border-left-color: rgba(127, 255, 212, 0.5);
    border-left-width: 2px;
    color: aquamarine;
    font-size: 10px;
}

#timeline_drop_line {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: red;
    display: none;
    pointer-events: none;
    z-index: 100;
}

#timeline_playhead {
    position: absolute;
    top: 0;
    width: 3px;
    height: 100%;
    background-color: #ff7f7f;
    box-shadow: 0 0 10px rgba(127, 255, 212, 0.8);
    pointer-events: none;
    z-index: 99;
    display: none;
}

.anim_segment {
    position: absolute;
    /* height: 100%; */
    top: 0;
    bottom: 0;
    /* padding-bottom: 2px; */
    background: linear-gradient(135deg, rgba(127, 255, 212, 0.4) 0%, rgba(100, 200, 255, 0.4) 100%);
    border-right: 2px solid rgba(127, 255, 212, 0.8);
    cursor: move;
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    justify-content: center;
    transition: background 0.2s;
    /* overflow: visible; */
}

.anim_segment.selected,
.anim_segment.selected:hover {
    background: linear-gradient(135deg, rgb(109 54 22 / 40%) 0%, rgb(255 129 100 / 40%) 100%);
    border-right: 2px solid rgb(255 127 127 / 80%);
}

.anim_segment:hover {
    background: linear-gradient(135deg, rgba(127, 255, 212, 0.6) 0%, rgba(100, 200, 255, 0.6) 100%);
    z-index: 10;
}

.anim_segment_icon {
    font-size: 32px;
    margin-bottom: 4px;
}

.anim_segment_info {
    position: absolute;
    bottom: 2px;
    left: 4px;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.9);
    background-color: rgba(0, 0, 0, 0.6);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
    line-height: 1.2;
    text-align: left;
    pointer-events: none;
}

.anim_segment_speed {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 11px;
    color: white;
    min-width: 60px;
}

.speed_display {
    font-weight: bold;
    color: aquamarine;
    font-size: 12px;
    margin-bottom: 2px;
}

.speed_slider_container {
    width: 100%;
    position: relative;
}

.speed_slider {
    width: 100%;
    height: 4px;
    background: #444;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.speed_slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: aquamarine;
    cursor: pointer;
}

.speed_slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: aquamarine;
    cursor: pointer;
    border: none;
}

/* Animation timeline editor (in options panel) */
#anim_timeline {
    /* background-color: rgba(30, 30, 30, 0.9); */
    /* border-radius: 8px; */
    padding: 15px;
    /* height: 94%; */
    /* margin-top: 15px; */
    /* overflow: scroll; */
}

.anim_folder_tabs {
    display: flex;
    gap: 8px;
    /* margin-bottom: 15px; */
    justify-content: center;
    /* position: sticky; */
    /* top: 0; */
    /* left: 0; */
    /* right: 0; */
    /* padding: 12px; */
    /* flex-wrap: wrap; */
    /* align-items: center; */
    /* align-content: center; */
}

.folder_tab_btn,
.anim_folder_tab {
    background-color: rgba(50, 50, 50, 0.5);
    border: 1px solid #666;
    color: #999;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 12px;
}

.folder_tab_btn:hover,
.anim_folder_tab:hover {
    background-color: rgba(80, 80, 80, 0.7);
    color: #ccc;
}

.folder_tab_btn.active,
.anim_folder_tab.active {
    background-color: rgba(127, 255, 212, 0.2);
    border-color: aquamarine;
    color: aquamarine;
}

.anim_folder_content {
    display: none;
}

.anim_folder_content.active {
    display: block;
}

#anim_palette,
.anim_palette_folder {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
    padding: 3px;
}

.anim_btn_wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.anim_btn {
    width: 100%;
    aspect-ratio: 1;
    background-color: rgba(50, 50, 50, 0.8);
    border: 2px solid #666;
    border-radius: 10px;
    cursor: grab;
    font-size: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    position: relative;
}

.anim_btn_active {
    border-color: aquamarine;
}

.anim_btn:active {
    cursor: grabbing;
}

.anim_btn:hover {
    border-color: aquamarine;
    background-color: rgba(80, 80, 80, 0.9);
    transform: scale(1.05);
}

.anim_btn.glowing {
    animation: glowPulse 0.6s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        border-color: aquamarine;
        box-shadow: 0 0 5px rgba(127, 255, 212, 0.5);
    }

    50% {
        border-color: rgba(127, 255, 212, 1);
        box-shadow: 0 0 20px rgba(127, 255, 212, 1);
    }
}

.anim_btn_label {
    font-size: 9px;
    color: #999;
    margin-top: 2px;
}

.anim_btn_speed {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #ccc;
}

.anim_btn_speed input {
    width: 100%;
    height: 3px;
    background: #444;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.anim_btn_speed input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: aquamarine;
    cursor: pointer;
}

.anim_btn_speed input::-moz-range-thumb {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: aquamarine;
    cursor: pointer;
    border: none;
}

.timeline_toggle_container {
    /* margin-top: 20px; */
    /* margin-bottom: 10px; */
    padding: 15px;
    background-color: rgb(16 16 16);
    /* border-radius: 8px 8px 0px 0px; */
    /* border: 1px solid rgba(127, 255, 212, 0.2); */
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
}

.timeline_toggle_label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.timeline_toggle_label input[type="checkbox"] {
    display: none;
}

.toggle_slider {
    width: 50px;
    height: 26px;
    background-color: rgba(200, 50, 50, 0.5);
    border-radius: 13px;
    position: relative;
    transition: all 0.3s;
    margin-right: 12px;
    border: 2px solid rgba(200, 50, 50, 0.8);
}

.toggle_slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: white;
    top: 2px;
    left: 3px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.timeline_toggle_label input[type="checkbox"]:checked+.toggle_slider {
    background-color: rgba(127, 255, 212, 0.3);
    border-color: aquamarine;
}

.timeline_toggle_label input[type="checkbox"]:checked+.toggle_slider::before {
    left: 25px;
    background-color: aquamarine;
}

.toggle_text {
    color: #ccc;
    font-size: 14px;
    font-weight: bold;
}

.timeline_toggle_label input[type="checkbox"]:checked~.toggle_text {
    color: aquamarine;
}

.save-btn {
    background-color: rgba(127, 255, 212, 0.2);
    border: 2px solid aquamarine;
    color: aquamarine;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
    font-size: 14px;
}

.save-btn:hover {
    background-color: rgba(127, 255, 212, 0.3);
    box-shadow: 0 0 15px rgba(127, 255, 212, 0.5);
}

#progress_bg {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 6px;
    background-color: #b9b9b952;
    border-radius: 3px;
    overflow: hidden;
    z-index: 150;
}

#progress_currentTime {
    height: 6px;
    background: aquamarine;
    position: absolute;
    top: 0;
    left: 0;
}

#progress_buffered {
    height: 6px;
    background: #676767;
    position: absolute;
    top: 0;
    left: 0;
}

.blurbg {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/*////////////////////////////////////////////////////////////////////////////////////////////*/

.lds-dual-ring {
    display: none;
    width: 32px;
    height: 32px;
    position: fixed;
}

.lds-dual-ring:after {
    content: " ";
    display: block;
    width: 32px;
    height: 32px;
    margin: 6px;
    border-radius: 50%;
    border: 6px solid #fff;
    border-color: #fff transparent #fff transparent;
    animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*////////////////////////////*/

.lds-ripple {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
    /* pointer-events Specifies under what circumstances a given element can be the target element for a pointer event. Widely available across major browsers (Baseline since January 2018) Learn more Don't show: none;';
    pointer-events Specifies under what circumstances a given element can be the target element for a pointer event. Widely available across major browsers (Baseline since January 2018) Learn more Don't show: none;';
*/
}

.lds-ripple div {
    position: absolute;
    border: 4px solid #fff;
    opacity: 1;
    border-radius: 50%;
    animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.lds-ripple div:nth-child(2) {
    animation-delay: -0.5s;
}

@keyframes lds-ripple {
    0% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 72px;
        height: 72px;
        opacity: 0;
    }
}


/*///////////////////////////////////////////////////////////////////////////////////////////*/

#btn-cont {
    padding: 16px;
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.8);
    cursor: pointer;
    position: fixed;
    right: 16px;
    top: 16px;
    overflow: hidden;
    color: aquamarine;
    z-index: 4;
    transition: all 0.3s ease-out;

}

#buttons {
    border-top: 1px solid rgba(255, 255, 255, 0.4);

    position: absolute;
    display: none;

    width: 100%;
    height: 100%;
}

#controlPanel {
    background: black;
}


a:hover {
    color: white;
    cursor: pointer;
}

.favPoly polygon {
    fill: rgb(0 0 0 / 90%);
    stroke-width: 1px;
    cursor: pointer;
}

.favPoly {
    position: absolute;
    z-index: 7;
    background-image: url(imgs/pattern.png);
    background-origin: center center;
    background-position: center center;
    background-repeat: no-repeat;
}

#flyingDiv {
    text-shadow: 0px 0px 3px black;
    color: white;
    display: none;
    position: relative;
    left: 34%;
    top: 15%;
    z-index: 4;
    width: 370px;
    pointer-events: none;
}

#flyState {
    position: absolute;
    left: 37px;
    top: 31px;
}

#flyTitle {
    font-weight: bold;
    position: absolute;
    left: 36px;
    top: 30px;
}

#flyArtist {
    position: absolute;
    left: 66px;
    top: 36px;
    font-size: smaller;
    color: #b5b5b5;
}

.chromatocode {
    position: absolute;
    height: 42px;
    width: 42px;
    left: 12px;
    top: 50%;
    transform: translateY(-21px);
    border-radius: 6px;
    box-shadow: 0 0 10px #000000;
    opacity: 0.9;
}

#Title {
    height: 50%;
    font-weight: bold;
    /* color: #cecece; */
}

#Artists {
    height: 50%;
    color: darkgray;
    font-size: smaller;
    font-family: sans-serif;
}

.plItem_select {
    background: #2f2f2f;
    margin-top: 12px;
    margin-bottom: 12px;
    border-width: 1px;
    /* color: cyan; */
}

.plItem_select #Title {
    color: #fdfdfd;
}

#leftPanel {
    position: fixed;
    width: 33%;
    height: 100%;
    position: fixed;
    background-color: black;
    display: none;
}

#vidFrame {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* z-index: -1; */
    opacity: 0;
}

#vidFrame iframe {
    pointer-events: none;
    width: 100%;
    height: 100%;
}
/* ========== NEW GRID CONFIGURATION PANEL STYLES ========== */

/* Config Sections */
.config-section {
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(127, 255, 212, 0.15);
}

.section-title {
    color: aquamarine;
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(127, 255, 212, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Grid Layout */
.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.config-item .option-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.value-display {
    color: aquamarine;
    font-weight: bold;
    font-size: 13px;
    margin-left: auto;
}

/* Select Elements */
.config-select {
    width: 100%;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.6);
    color: aquamarine;
    border: 1px solid rgba(127, 255, 212, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
}

.config-select:hover {
    border-color: aquamarine;
    background: rgba(0, 0, 0, 0.8);
}

.config-select:focus {
    outline: none;
    border-color: aquamarine;
    box-shadow: 0 0 10px rgba(127, 255, 212, 0.3);
}

/* Small Buttons */
.btn-small {
    padding: 6px 12px;
    background: rgba(127, 255, 212, 0.1);
    color: aquamarine;
    border: 1px solid rgba(127, 255, 212, 0.3);
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-small:hover {
    background: rgba(127, 255, 212, 0.2);
    border-color: aquamarine;
    box-shadow: 0 0 10px rgba(127, 255, 212, 0.3);
}

.full-width {
    width: 100%;
}

/* ========== ENVIRONMENT GALLERY STYLES ========== */

.env-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.env-item {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(127, 255, 212, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.env-item:hover {
    border-color: aquamarine;
    box-shadow: 0 0 15px rgba(127, 255, 212, 0.5);
    transform: translateY(-2px);
}

.env-item.active {
    border-color: aquamarine;
    box-shadow: 0 0 20px rgba(127, 255, 212, 0.8);
}

.env-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.env-item span {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 8px;
    border-radius: 4px;
    bottom: -30px;
    transition: bottom 0.3s ease;
}

.env-item:hover span {
    bottom: 8px;
}

/* Upload and Custom Environment Items */
.env-upload,
.env-custom {
    background: linear-gradient(135deg, rgba(127, 255, 212, 0.1), rgba(0, 0, 0, 0.6));
}

.env-upload svg,
.env-custom svg {
    width: 32px;
    height: 32px;
    color: aquamarine;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.env-upload:hover svg,
.env-custom:hover svg {
    transform: scale(1.2);
}

.env-upload span,
.env-custom span {
    position: static;
    bottom: auto;
}

/* URL Input Container */
.env-url-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

.env-url-input input {
    flex: 1;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.5);
    color: aquamarine;
    border: 1px solid rgba(127, 255, 212, 0.3);
    border-radius: 4px;
    font-size: 13px;
}

.env-url-input input:focus {
    outline: none;
    border-color: aquamarine;
    box-shadow: 0 0 10px rgba(127, 255, 212, 0.3);
}

.env-url-input input::placeholder {
    color: rgba(127, 255, 212, 0.5);
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */

@media (max-width: 768px) {
    .config-grid {
        grid-template-columns: 1fr;
    }
    
    .env-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .env-gallery {
        grid-template-columns: 1fr;
    }
}

/* ========== SCROLLBAR FOR CONFIG SECTIONS ========== */

.config-section::-webkit-scrollbar {
    width: 4px;
}

.config-section::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.4);
}

.config-section::-webkit-scrollbar-thumb {
    background: rgba(127, 255, 212, 0.4);
    border-radius: 2px;
}

.config-section::-webkit-scrollbar-thumb:hover {
    background: rgba(127, 255, 212, 0.6);
}

/* ========== LYRICS TIMELINE STYLES ========== */

/* Lyrics segment on timeline */
.lyrics_segment {
    position: absolute;
    top: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.4) 0%, rgba(255, 140, 0, 0.4) 100%);
    border-right: 2px solid rgba(255, 215, 0, 0.8);
    border-left: 2px solid rgba(255, 215, 0, 0.8);
    cursor: move;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background 0.2s;
    overflow: hidden;
    padding: 2px 4px;
}

.lyrics_segment:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.6) 0%, rgba(255, 140, 0, 0.6) 100%);
    z-index: 10;
}

.lyrics_segment.selected,
.lyrics_segment.selected:hover {
    background: linear-gradient(135deg, rgba(255, 100, 100, 0.5) 0%, rgba(255, 50, 50, 0.5) 100%);
    border-right: 2px solid rgba(255, 100, 100, 0.9);
    border-left: 2px solid rgba(255, 100, 100, 0.9);
}

.lyrics_segment_text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.95);
    background-color: rgba(0, 0, 0, 0.6);
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Resize cursor on segment edges */
.lyrics_segment:hover {
    cursor: ew-resize;
}

/* Container for draggable lyrics labels in the karaoke tab */
.lyrics_labels_container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    background-color: rgba(20, 20, 20, 0.8);
    border-radius: 6px;
    margin-top: 15px;
    max-height: 400px;
    overflow-y: auto;
}

/* Individual lyric label */
.lyric_label {
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: white;
    background-color: rgba(40, 40, 40, 0.9);
    border: 1px solid rgba(127, 255, 212, 0.3);
    transition: all 0.2s;
    user-select: none;
}

/* Draggable lyric label */
.lyric_label_draggable {
    cursor: grab;
    background: linear-gradient(135deg, rgba(127, 255, 212, 0.2) 0%, rgba(100, 200, 255, 0.2) 100%);
    border: 1px solid rgba(127, 255, 212, 0.5);
}

.lyric_label_draggable:hover {
    background: linear-gradient(135deg, rgba(127, 255, 212, 0.3) 0%, rgba(100, 200, 255, 0.3) 100%);
    border: 1px solid rgba(127, 255, 212, 0.8);
    transform: translateX(5px);
}

.lyric_label_draggable:active,
.lyric_label_draggable.dragging {
    cursor: grabbing;
    opacity: 0.6;
    transform: scale(0.95);
}

/* Non-draggable lyric label (for bracketed text) */
.lyric_label_nondraggable {
    cursor: default;
    background-color: rgba(60, 60, 60, 0.6);
    border: 1px solid rgba(150, 150, 150, 0.4);
    font-style: italic;
    color: rgba(200, 200, 200, 0.8);
}

/* Scrollbar for lyrics labels container */
.lyrics_labels_container::-webkit-scrollbar {
    width: 6px;
}

.lyrics_labels_container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.4);
}

.lyrics_labels_container::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.5);
    border-radius: 3px;
}

.lyrics_labels_container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.7);
}
