/* --------------------------------------------------
   BASE
-------------------------------------------------- */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #000000;
    color: #fff;
}

/* --------------------------------------------------
   BACKGROUND CANVAS (visualizer)
-------------------------------------------------- */
#visualization-canvas {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none; /* ✅ fixes click issues */
}

/* --------------------------------------------------
   MAIN CENTER PANEL (GLASS UI)
-------------------------------------------------- */
#controls {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;

 
    padding: 2.5rem;
    border-radius: 20px;

    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);

    width: 90%;
    max-width: 700px;

    box-shadow:
        0 0 40px rgba(219, 150, 2, 0.15),
        inset 0 0 20px rgba(255, 255, 255, 0.03);

    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* hidden state */
#controls.hidden {
    opacity: 0;
    transform: translate(-50%, -60%);
    pointer-events: none;
}

/* --------------------------------------------------
   RADIO INFO (ART + NAME)
-------------------------------------------------- */
#radio-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

#radio-art {
    width: 110px;
    height: 110px;
    object-fit: cover;

    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.2);

    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 25px rgba(63, 38, 1, 0.25);
}

#radio-name {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    color: #e5e7eb;
}

/* --------------------------------------------------
   STATION GRID
-------------------------------------------------- */
.station-buttons {
  display: flex;
  gap: 14px;                    /* Space between buttons */
  justify-content: center;      /* Center the group */
  align-items: center;
  flex-wrap: nowrap;            /* ← This keeps them always on one line */
  overflow-x: auto;             /* Allows horizontal scroll on very small screens */
  padding: 24px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;        /* Hide scrollbar */
}

.load-container::-webkit-scrollbar {
  display: none;
}


/* --------------------------------------------------
   BUTTONS
-------------------------------------------------- */
button {
    cursor: pointer;
    border: none;
    outline: none;

    padding: 10px 18px;
    border-radius: 10px;

    font-weight: 400;
    color: #fff;

    background: linear-gradient(135deg, #05050585, #000000e5);

    transition: all 0.2s ease;
}

button:hover {
    transform: scale(1.07);
    box-shadow: 0 0 20px rgba(30, 61, 1, 0.5);
}

button:active {
    transform: scale(0.95);
}

/* --------------------------------------------------
   FLOATING CONTROLS
-------------------------------------------------- */
#floating-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 5;

    display: flex;
    gap: 12px;

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.4s ease;
}

#floating-controls.visible {
    opacity: 1;
    pointer-events: auto;
}

.control-btn {
    background: rgba(20, 20, 20, 0.226);
    border: 1px solid rgba(255, 255, 255, 0.15);

    backdrop-filter: blur(10px);

    border-radius: 50%;
    width: 50px;
    height: 50px;

    display: fu;
    justify-content: center;
    align-items: center;

    cursor: pointer;
    transition: all 0.2s ease;
}

.control-btn:hover {
    background: rgba(88, 82, 82, 0.13);
    transform: scale(1.1);
}

.control-btn svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

/* --------------------------------------------------
   AUDIO PLAYER (MINIMAL)
-------------------------------------------------- */
#audio-player {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;

    width: 80%;
    max-width: 500px;

   
}

/* --------------------------------------------------
   TEXT STYLES
-------------------------------------------------- */
h1 {
    text-align: center;
    font-weight: 700;
}
 
/* Individual Button */
.load-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  
  padding: 14px 12px;
  height: 38px;                 /* Consistent height */
  min-width: 120px;             /* Prevents buttons from shrinking too much */
  font-size: 1rem;
  font-weight: 100;
  color: white;
  white-space: nowrap;          /* Text never wraps inside button */
  
  /* Glassmorphic + Vision Pro style */
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;          /* Rounded square look */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  
  position: relative;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;               /* ← Crucial: prevents shrinking */
}

/* Shine effect */
.load-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: 0.7s ease;
}

.load-btn:hover::before {
  left: 150%;
}

/* Hover */
.load-btn:hover {
  background: rgba(27, 26, 26, 0.171);
  border-color: #3a3b398c;
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 18px 45px rgba(41, 77, 17, 0);
}

/* Active */
.load-btn:active {
  transform: scale(0.95);
}