body {
    font-family: "Poppins", sans-serif;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scroll */
    overflow-y: hidden; /* Prevent vertical scroll */
}
/* start*/
.glowing-text {
    font-weight: bold;
    color: blue;
    animation: thirtytwoshots 2s ease-in-out infinite;
    position: relative;
    z-index: 10;
}
.line {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    height: 1px;
    pointer-events: none;
    z-index: 5;
}
.status {
    color: blue;
     animation: glowingAnimation 4s ease-in-out infinite;
    font-size: 20px;
    margin-top: 10px;
}
.particle {
    position: fixed;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    pointer-events: none;
    animation: twinkling 1.5s infinite alternate;
}

@keyframes twinkling {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0.4;
    }
}
h2 {
    font-size: 1.5em;
    color: blue;
     animation: glowingAnimation 4s ease-in-out infinite;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 12px;
}
.h9 {
    font-size: 1.5em;
    color: var(--primary-color);
    text-align: center;
    margin-top: 10px;
    margin-bottom: 12px;
    font-weight: bold;
}
h6 {
    font-size: 3.7em;
    color: var(--primary-color);
    text-align: center;
    margin-top: 10px;
    margin-bottom: 12px;
    transform: scale(0);
    opacity: 0;
    animation: steadyRise 3s linear forwards;
    will-change: transform, opacity;
    transition: all 0.3s ease;
}
h6:hover {
    color: var(--primary-light);
    transition: color 0.3s ease;
}
@keyframes steadyRise {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: scale(2.2);
        opacity: 1;
    }
}





.word {
    color: blue;
     animation: glowingAnimation 4s ease-in-out infinite;
    /*  background: linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8b00ff);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      color: transparent;*/
    font-size: 2em;
    margin: 20px;
    padding: 10px 20px;
    border: 2px solid #00ffcc;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1); /* Light background for word display */
    transition: transform 0.5s, opacity 0.5s;
}
.button {
    padding: 10px 20px;
    font-size: 1.2em;
    border: none;
    border-radius: 5px;
    background-color: #00ffcc;
    color: black;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #00cc99;
}
/*
@keyframes blink {
    0%, 100% { border-color: transparent; }
    50% { border-color: #fff; }
}
.random-word-generator > .typewriter {
    border-right: 0.06em solid #fff;
    animation: blink 0.7s step-end infinite;
}*/
.random-word-generator {
color: var(--primary-light);
transition: color 0.3s ease;
font-weight: bold;
     /* background: linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8b00ff);*/
   /* background: linear-gradient(45deg, #f39c12, #8e44ad);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      color: transparent;*/
}
/* end*/
.column p {
   font-size: 12px;
   color: var(--text-primary);
   text-align: center;
   text-shadow: 0px 0px 30px rgba(0, 0, 0, 0.5);
   margin-top: 10px;
   margin-bottom: 12px;
}
.column {
    color: white;
    background: orange;
    animation: ga2 4s ease-in-out infinite;
      display: block;
      cursor: pointer;
      position: relative;
      width: 145px;
      padding: 10px;
      margin: 10px;
      border-radius: 15px;
      transition: all 0.3s ease;
      background-clip: padding-box;
      border: 1px solid ghostwhite;
}
.column:hover {
    color: white;
    background-color: blue;
    animation: ga 4s ease-in-out infinite;
 /* color: #000000;
  background-color: #ffffff;*/
  transform: translatey(-4px);
  transition: all 0.3s ease;
    box-shadow: 0 4px 10px var(--shadow-strong);
}
/* --- Buttons --- */
.key-button {
    color: white;
       background: orange;
    animation: ga2 4s ease-in-out infinite;
    border: none;
    padding: 10px 20px;
    border-radius: 25px; /* Pill shape for buttons */
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    margin-top: 10;
}
.key-button:hover {
    background-color: blue;
    color: white;
    animation: ga 4s ease-in-out infinite;
    transform: translateY(-4px); /* Slight lift on hover */
    box-shadow: 0 4px 10px var(--shadow-strong);
}
.proxy-buttons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px;
  justify-content: center;
  overflow-y: auto;
  max-height: 300px;
}
/*.proxy-button {
  position: relative;
  padding: 1rem 2rem;
  border: 2px solid transparent;
  border-radius: 8px;
    background-color: var(--primary-color);
    color: var(--button-text-color);
  cursor: pointer;
  z-index: 1;
  overflow: hidden;
  transition: all 0.3s ease;
}
.proxy-button:hover {
  background-color: var(--primary-light);
  transform: scale(1.1);
  transition: all 0.3s ease;
}*/
.proxy-button {
    color: white;
    background: orange;
    animation: ga2 4s ease-in-out infinite;
  position: relative;
  padding: 1rem 2rem;
  border: 2px solid transparent;
  border-radius: 8px;
/*  background-color: #000000;
  color: #ffffff;*/
  cursor: pointer;
  z-index: 1;
  overflow: hidden;
  transition: all 0.3s ease;
}
.proxy-button:hover {
    color: white;
    background-color: blue;
    animation: ga 4s ease-in-out infinite;
  transform: translatey(-4px);
  transition: all 0.3s ease;
    box-shadow: 0 4px 10px var(--shadow-strong);
}
/*
.column {
    color: var(--button-text-color);
    background: var(--primary-color);
  display: block;
  cursor: pointer;
  position: relative;
  width: 145px;
  padding: 10px;
  margin: 10px;
  border-radius: 15px;
  transition: all 0.3s ease;
  background-clip: padding-box;
    border: 1px solid ghostwhite;
}
.column:hover {
    background-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: 0 4px 10px var(--shadow-strong);
}*/
/*.proxy-button {
  display: block;
  cursor: pointer;
  position: relative;
  width: 145px;
  padding: 10px;
  margin: 10px;
  border-radius: 15px;
  transition: all 0.3s ease;
  border: 2px solid ghostwhite;
  background-clip: padding-box;
}
.proxy-button:hover {
    background-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: 0 4px 10px var(--shadow-strong);
}*/

/* --- Main Content Container --- */
.container {
    flex-grow: 1; /* Allows container to take available space */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 20px; /* Adjust padding to account for fixed nav */
    text-align: center;
    position: relative;
    z-index: 1;
}
/* Style the pop-up container only when it's open */
dialog#custom-alert[open] {
    width: 300px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: var(--glass-mid);
    margin: 0;
    position: fixed;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Rest of your CSS */
#alert-message {
    font-size: 1.5em;
    color: blue;
     animation: glowingAnimation 4s ease-in-out infinite;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 12px
}
dialog#custom-alert button {
    color: white;
    background: orange;
    animation: ga2 4s ease-in-out infinite;
  position: relative;
  padding: 1rem 2rem;
  border: 2px solid transparent;
  border-radius: 8px;
/*  background-color: #000000;
  color: #ffffff;*/
  cursor: pointer;
  z-index: 1;
  overflow: hidden;
  transition: all 0.3s ease;
}
dialog#custom-alert button:hover {
    color: white;
    background-color: blue;
    animation: ga 4s ease-in-out infinite;
  transform: translatey(-4px);
  transition: all 0.3s ease;
    box-shadow: 0 4px 10px var(--shadow-strong);
}
dialog#custom-alert::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
}

html:has(dialog[open]) {
    overflow: hidden;
}




.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Adjust transparency */
    z-index: -1;
}

.container-game {
    height: 92vh;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 15px;
    padding: 40px;
    /* box-shadow: 0 10px 30px var(--shadow-strong), 0 10px 30px white; */
    width: 100vw;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
    transition: all 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}
.container-game::-webkit-scrollbar {
    display: none;
}
.container-game:hover {
    animation: _cfg 4s ease-in-out infinite;
    transition: all 0.3s ease;
}
#important {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 5px;
    color: red;
    text-shadow: 0 2px 5px var(--shadow-strong);
}
#music-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
    overflow-y: visible;
}

.container-game h1 {
    font-size: 3.5em;
    font-weight: bold;
    margin-bottom: 5px;
    color: blue;
    animation: glowingAnimation 4s ease-in-out infinite;
    text-shadow: 0 2px 5px var(--shadow-strong);
}
.container-game h2 {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 0;
    color: blue;
    animation: glowingAnimation 4s ease-in-out infinite;
    opacity: 0.9;
}
.container-inner {
    background-color: transparent;
    border-radius: 15px;
    padding: 40px;
     box-shadow: 0 10px 30px var(--shadow-strong), 0 10px 30px white;
    width: 1167px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
    transition: all 0.3s ease;
}
.container-inner:hover {
    animation: _cfg 4s ease-in-out infinite;
    transition: all 0.3s ease;
}
.container-outer {
    background-color: transparent; /* Semi-transparent dark background for content block */
    border-radius: 15px;
    padding: 40px;
     box-shadow: 0 10px 30px var(--shadow-strong), 0 10px 30px white;
    width: 100%;
    max-width: 700px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 25px; /* Space between elements within the container */
    align-items: center;
    transition: all 0.3s ease;
}
.container-outer:hover {
    animation: _cfg 4s ease-in-out infinite;
    transition: all 0.3s ease;
}
.container-outer h1 {
    font-size: 3.5em;
    font-weight: bold;
    margin-bottom: 5px;
    color: blue;
    animation: glowingAnimation 4s ease-in-out infinite;
    text-shadow: 0 2px 5px var(--shadow-strong);
}

.container-outer h2 {
    font-size: 1.5em;
    margin-top: 0;
    color: blue;
    animation: glowingAnimation 4s ease-in-out infinite;
    opacity: 0.9;
    font-weight: bold;
}
.container-inner h1 {
    font-size: 3.5em;
    font-weight: bold;
    margin-bottom: 5px;
    color: blue;
    animation: glowingAnimation 4s ease-in-out infinite;
    text-shadow: 0 2px 5px var(--shadow-strong);
}

.container-inner h2 {
    font-size: 1.5em;
    margin-top: 0;
    color: blue;
    animation: glowingAnimation 4s ease-in-out infinite;
    opacity: 0.9;
    font-weight: bold;
}
.container-inner h3 {
    font-weight: bold;
    font-size: 1.5em;
    margin-top: 0;
    color: blue;
    animation: glowingAnimation 4s ease-in-out infinite;
    opacity: 0.9;
}
.container-outer h3 {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 0;
    color: blue;
    animation: glowingAnimation 4s ease-in-out infinite;
    opacity: 0.9;
}
.container-max h3 {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 0;
    color: blue;
    animation: glowingAnimation 4s ease-in-out infinite;
    opacity: 0.9;
}
/* --- Search Container --- */
.search-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.search-box {
    display: flex;
    width: 900px; /* Limit search box width */
    background-color: var(--input-bg);
    border-radius: 30px; /* More rounded search box */
    overflow: hidden;
    box-shadow: inset 0 2px 5px var(--shadow-light); /* Inner shadow for depth */
    border: 1px solid var(--glass-border);
}

.search-box form {
    width: 900px;
    display: flex;
}

.search-box .input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 15px 20px;
    font-size: 1.1em;
    color: var(--text-color);
    outline: none;
}

.search-box .input::placeholder {
    color: var(--primary-color);
}

.search-box .input:focus {
    color: blue;
    animation: glowingAnimation 4s ease-in-out infinite; /* Slight change on focus */
}

.search-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    border: none;
    padding: 0 25px;
    color: var(--button-text-color);
    font-size: 1.2em;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: linear-gradient(45deg, var(--primary-light), var(--primary-color));
    transform: scale(1.1) translatey(-2px); /* Slight enlargement on hover */
    transition: background 0.3s ease, transform 0.2s ease;

}

/* --- Open Blank Button --- */
.open-blank-btn {
    background-color: var(--primary-color);
    border: none;
    padding: 15px 30px;
    border-radius: 30px; /* Pill shape for the button */
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    margin-top: 10px;
    display: inline-flex; /* Align icon and text */
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px var(--shadow-strong);
    font-weight: 600;
}

.open-blank-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px); /* Lift effect */
    box-shadow: 0 8px 20px var(--shadow-strong);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .container-inner {
        padding: 30px;
        margin-top: 80px; /* More space from top on smaller screens */
    }

    .container-inner h1 {
        font-size: 2.5em;
    }

    .container-inner h2 {
        font-size: 1.2em;
    }


}

@media (max-width: 480px) {


    .search-box .input {
        padding: 12px 15px;
        font-size: 1em;
    }

    .search-btn {
        padding: 0 15px;
        font-size: 1em;
    }

    .open-blank-btn {
        padding: 12px 20px;
        font-size: 1em;
    }
}
/*#live-clock {
    border: 1px solid ghostwhite;
    font-size: 1.8em;
    font-weight: 600;
    color: blue;
    animation: glowingAnimation 4s ease-in-out infinite;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    margin-bottom: 25px; 
    border-radius: 10px;
    padding: 10px 20px;
    display: inline-block;
    background: none;
}
*/
.live-clock-button {
    color: blue;
    animation: glowingAnimation 4s ease-in-out infinite;
    display: block;
    cursor: pointer;
    position: relative;
    width: 670px;
    padding: 10px;
    margin: 10px;
    border-radius: 15px;
    transition: all 0.3s ease;
    background-clip: padding-box;
    border: 1px solid ghostwhite;
}
/* Time and Battery Section */
.time,
.battery {
    font-size: 2em;
    margin: 10px 0;
    color: blue;
    animation: glowingAnimation 4s ease-in-out infinite;
}
.battery {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.battery-icon {
    width: 50px; /* Increased width for better visibility */
    height: 20px;
    border: 2px solid #fff;
    border-radius: 3px;
    margin-right: 5px;
    position: relative;
}

.battery-icon::after {
    content: "";
    width: 6px; /* Increased size for better visibility */
    height: 10px;
    background-color: #fff;
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
}

.battery-fill {
    height: 100%;
    background-color: #4caf50;
    width: 0%; /* Dynamic width will be set with JavaScript */
    transition: width 0.3s ease;
    border-radius: 3px; /* Rounded corners for battery fill */
}
.music-description {
    font-size: 1.1em;
    color: blue;
    animation: glowingAnimation 4s ease-in-out infinite;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}
.music-description-important {
    font-size: 1.1em;
    color: red;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}
.highlight {
    color: var(--primary-light);
}

#music-search { /* Specific ID for music search input */
    width: calc(100% - 30px); /* Account for padding */
    padding: 15px 20px;
    border: 1px solid var(--glass-border);
    border-radius: 30px; /* Rounded search input */
    background-color: var(--input-bg);
    color: blue;
    animation: glowingAnimation 4s ease-in-out infinite;
    font-size: 1.1em;
    outline: none;
    box-shadow: inset 0 2px 5px var(--shadow-light);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

#music-search::placeholder {
   color: var(--primary-color);
}

#music-search:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(123, 104, 238, 0.3), inset 0 2px 5px var(--shadow-light);
}


/* --- Music Player Controls --- */
#music-player-controls {
    width: 100%;
    background-color: var(--player-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: 0 5px 15px var(--shadow-strong);
    border: 1px solid var(--glass-border);
}

#audio-player {
    width: 100%;
    max-width: 500px; /* Limit width of the audio player itself */
    height: 45px;
    background-color: var(--input-bg);
    border-radius: 25px;
    outline: none;
}

/* Customizing audio player controls (browser-dependent, limited) */
#audio-player::-webkit-media-controls-panel {
    background-color: var(--input-bg);
    border-radius: 25px;
}
#audio-player::-webkit-media-controls-play-button,
#audio-player::-webkit-media-controls-current-time-display,
#audio-player::-webkit-media-controls-time-remaining-display,
#audio-player::-webkit-media-controls-timeline,
#audio-player::-webkit-media-controls-volume-slider {
    color: blue;
    animation: glowingAnimation 4s ease-in-out infinite;
}


.player-info {
    font-size: 1.2em;
    font-weight: 600;
    color: blue;
    animation: glowingAnimation 4s ease-in-out infinite;
    text-align: center;
    min-height: 1.5em; /* Prevent layout shift */
}

.player-buttons {
    display: flex;
    gap: 20px;
}



.player-buttons button {
    background-color: rgba(255, 255, 255, 0.05);
    color: blue;
    animation: glowingAnimation 4s ease-in-out infinite;
    border: none;
    padding: 12px 20px;
    border-radius: 50%; /* Circular buttons */
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    cursor: pointer;
    box-shadow: 0 3px 10px var(--shadow-strong);
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.player-buttons button:hover {
    background-color: blue;
    color: white;
    animation: ga 4s ease-in-out infinite;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px var(--shadow-strong);
}

.player-buttons button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* --- Music List --- */


.no-music-message {
    text-align: center;
    color: blue;
    animation: glowingAnimation 4s ease-in-out infinite;
    font-style: italic;
    padding: 20px;
    background-color: var(--input-bg);
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.music-item {
    background-color: var(--card-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 12px 18px;
    display: flex;
    flex-wrap: wrap; /* Allow content to wrap on smaller screens */
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px var(--shadow-strong);
    border: 1px solid var(--glass-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
    position: relative; /* For absolute positioning of analysis output if needed */
}

.music-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-strong);
    background-color: rgba(0, 0, 0, 0.4); /* Slightly darker on hover */
}

.music-item.active {
    background-color: blue;
    animation: ga 4s ease-in-out infinite; /* Highlight active song */
    box-shadow: 0 4px 15px rgba(123, 104, 238, 0.5);
    transform: scale(1.02);
}

.music-item.active .music-info span,
.music-item.active .music-info i {
    color: black;
}

.music-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1; /* Allows it to take available space */
    color: blue;
    animation: glowingAnimation 4s ease-in-out infinite;
    font-weight: 500;
    font-size: 1em;
}

.music-info i {
    color: blue;
    animation: glowingAnimation 4s ease-in-out infinite;
    font-size: 1.1em;
}

.item-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0; /* Prevent buttons from shrinking */
}

.play-song-btn, .ai-analyze-btn {
    background-color: transparent;
    border: none;
    color: blue;
    animation: glowingAnimation 4s ease-in-out infinite;
    cursor: pointer;
    font-size: 1.1em;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 5px;
    border-radius: 50%;
    width: 35px; /* Fixed size for consistency */
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.play-song-btn:hover, .ai-analyze-btn:hover {
    color: blue;
    animation: glowingAnimation 4s ease-in-out infinite;
    transform: scale(1.1);
}

.play-song-btn:disabled, .ai-analyze-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Hide the play button for the active song */
.music-item.active .play-song-btn {
    display: none;
}

/* --- AI Analysis Output --- */
.ai-analysis-output {
    width: 100%; /* Take full width of the music item */
    background-color: var(--ai-analysis-bg);
    border-radius: 8px;
    padding: 10px 15px;
    margin-top: 10px; /* Space from buttons/info */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
    color: blue;
    animation: glowingAnimation 4s ease-in-out infinite;
    font-size: 0.9em;
    line-height: 1.4;
    transition: all 0.3s ease-out;
    max-height: 150px; /* Limit height for long responses */
    overflow-y: auto;
}

.ai-analysis-output.hidden {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    overflow: hidden;
}

.loading-analysis {
    text-align: center;
    font-style: italic;
    color: blue;
    animation: glowingAnimation 4s ease-in-out infinite;
    margin: 0;
}


/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .container-inner {
        padding: 30px;
        margin-top: 80px;
    }

    .container-inner h1 {
        font-size: 2.5em;
    }

    .music-description {
        font-size: 1em;
    }

    #music-player-controls {
        padding: 15px;
    }

    .player-info {
        font-size: 1em;
    }

    .player-buttons {
        gap: 15px;
    }

    .player-buttons button {
        width: 45px;
        height: 45px;
        font-size: 1em;
    }

    .music-item {
        flex-direction: column; /* Stack elements vertically */
        align-items: flex-start;
        padding: 15px;
        gap: 10px;
    }

    .music-info {
        width: 100%;
        justify-content: space-between; /* Push icon to left, name to right */
    }

    .item-actions {
        width: 100%; /* Take full width */
        justify-content: flex-end; /* Push buttons to the right */
        margin-top: -10px; /* Adjust vertical position */
    }

    .ai-analysis-output {
        margin-top: 5px; /* Adjust margin for stacked layout */
    }




}

@media (max-width: 480px) {


    #music-player-controls {
        gap: 10px;
    }

    .player-buttons button {
        width: 40px;
        height: 40px;
        font-size: 0.9em;
    }

    .music-item {
        padding: 8px 12px;
    }

    .music-info {
        font-size: 0.9em;
    }
}

/* --- Settings Cards --- */
.settings-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 25px; /* Space between cards */
    margin-top: 20px;
}

.settings-card {
    background-color: var(--card-bg); /* Slightly darker glass for cards */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px var(--shadow-strong);
    border: 1px solid var(--glass-border);
    text-align: left; /* Align text within cards to left */
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between elements in card */
}

.settings-card h3 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 10px;
    color: blue;
    animation: glowingAnimation 4s ease-in-out infinite;
}

.settings-card p {
    color: blue;
    animation: glowingAnimation 4s ease-in-out infinite;
}
#warn {
    font-size: 0.95em;
    color: red;
}
/* --- Input Fields (Key Forms) --- */
.key-form,
#background-input,
#eventKeyInput,
#linkInput {
    padding: 12px 15px;
    border: 1px solid var(--glass-border);
    border-radius: 20px; /* Slightly rounded corners */
    background-color: var(--input-bg);
    color: blue;
    animation: glowingAnimation 4s ease-in-out infinite;
    font-size: 1em;
    outline: none;
    box-shadow: inset 0 1px 3px var(--shadow-light);
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box; /* Include padding in width */
}

.key-form::placeholder {
    color: var(--primary-color);
}

.key-form:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(123, 104, 238, 0.3), inset 0 1px 3px var(--shadow-light);
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    background-color: rgba(255, 255, 255, 0.15); /* Slight change on focus */
}
input {
  font-family: 'Poppins', sans-serif;
    padding: 12px 15px;
  color: white;
  border: none;
  outline: none;
  font-size: 16px;
  margin-bottom: 20px;
   box-shadow: 0 0 15px 2px rgba(0, 0, 0, 0.2);
   border-radius: 30px;
   background: rgba(255, 255, 255, 0.05);
   text-align: center;
    transition: all 0.3s ease;
}
input:hover {
background-color: rgba(0, 0, 0, 0.55);
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.select {
  width: 100%;
  padding: 10px 15px;
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text, #fff);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.select:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.select:focus {
    background-color: black;
  outline: none;
  border-color: var(--accent, #7f5af0);
  box-shadow: 0 0 0 2px rgba(127, 90, 240, 0.3);
}
.apps {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: 2.3em;
   flex-direction: row;
   margin-top: 30px;
}

.pinned {
   margin-top: 20px;
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: 2.3em;
}
select {
   padding: 20px;
   border-radius: 5px;
   background: var(--background-column);
   color: var(--text-primary);
   font-size: 20px;
   border: 0px;
   outline: none;
   cursor: pointer;
}

.input-c {
    width: 100%;
    max-width: 600px; /* Limit width of the search input */
    margin-bottom: 20px; /* Space below search input */
  position: relative;
  margin-top: 150px;
  display: flex;
  flex-direction: column; /* Stack items vertically */
  align-items: center;     /* Center items horizontally */
  gap: 20px;               /* Space between h1 and input */
}