/* ==========================
   8BITMUSIC.NET MAIN STYLE
   ========================== */

body {
  margin: 0;
  background: #1a1a1a;
  color: #FFD700;
  font-family: 'Press Start 2P', cursive;
  text-align: center;
  overflow: hidden;
  position: relative;
}

main {
  opacity: 0;
  animation: jukeboxFadeIn 1.6s ease-out 2.8s forwards;
  height: calc(100vh - 60px); /* viewport minus navbar */
  display: flex;
  flex-direction: column;
  justify-content: center; /* centers jukebox vertically */
  align-items: center;
  box-sizing: border-box;
}

/* ===== CRT SCANLINE OVERLAY ===== */
body:not(.no-crt)::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.04) 0px,
      rgba(0,0,0,0.04) 2px,
      rgba(0,0,0,0.04) 4px
    ),
    radial-gradient(circle at center, rgba(0,0,0,0) 70%, rgba(0,0,0,0.4) 100%);
  mix-blend-mode: overlay;
  animation: crtFlicker 0.15s infinite alternate;
  z-index: 10000;
}

@keyframes crtFlicker {
  0% { opacity: 0.9; }
  50% { opacity: 1; }
  100% { opacity: 0.85; }
}

/* ===== AUDIO ===== */
audio { display: none !important; }

/* ===== NAVIGATION BAR ===== */
nav {
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
  border-bottom: 2px solid #FFD700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 25px;
  position: relative;
  z-index: 5;
  box-shadow:
    inset 0 -2px 5px rgba(255,215,0,0.2),
    0 2px 15px rgba(255,215,0,0.15),
    0 0 10px rgba(255,215,0,0.05);
}

nav::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(
    90deg,
    rgba(255,215,0,0.2),
    rgba(255,215,0,0.6),
    rgba(255,215,0,0.2)
  );
  filter: blur(1px);
}

.logo {
  font-weight: bold;
  color: #FFD700;
}

/* ===== CENTERED NAV BUTTONS ===== */
.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 18px;
  top: 12px;
}

/* ===== NAV LINKS ===== */
.nav-links {
  display: flex;
  align-items: center;
}

.nav-links > * {
  padding: 0 12px;
  position: relative;
}

.nav-btn,
.nav-links a,
.nav-links span {
  display: inline-block;
  color: #FFD700;
  text-decoration: none;
  font-family: inherit;
  font-size: 10px;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-btn:hover,
.nav-links a:hover {
  color: white;
}

.welcome {
  display: inline;
  margin: 0;
  padding: 0;
  font-weight: bold;
  color: #FFD700;
}

/* ===== CRT & FAVOURITES NAV BUTTONS ===== */
#crtToggle,
#favModalBtn {
  background: none;
  border: 2px solid #FFD700;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 9px;
  font-family: 'Press Start 2P', cursive;
  color: #FFD700;
  transition: all 0.25s ease;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 2px 2px 0 #000;
}

#crtToggle:hover,
#favModalBtn:hover {
  background: #FFD700;
  color: #1a1a1a;
  transform: translateY(-1px);
  box-shadow: 3px 3px 0 #000, 0 0 10px #FFD700, 0 0 20px rgba(255,215,0,0.6);
}

/* ===== JUKEBOX SECTION ===== */
.jukebox {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 60px;
  position: relative;
  z-index: 2;
}

/* Now Playing */
#nowPlaying {
  color: #FFD700;
  font-size: 10px;
  margin-bottom: 20px;
  background: #2b2b2b;
  border: 2px solid #FFD700;
  padding: 8px 15px;
  box-shadow: 0 0 10px rgba(255,215,0,0.3);
  overflow: hidden;
  width: 280px;
  text-align: left;
  white-space: nowrap;
  position: relative;
}

#nowPlaying::before {
  content: "Now Playing: ";
  color: #FFD700;
}

#trackName {
  display: inline-block;
  max-width: 160px;
  overflow: hidden;
  vertical-align: bottom;
}

#trackName span {
  display: inline-block;
  white-space: nowrap;
  animation: scrollText 10s linear infinite;
}

@keyframes scrollText {
  0% { transform: translateX(0%); }
  50% { transform: translateX(-50%); }
  100% { transform: translateX(0%); }
}

/* ===== CONTROLS ===== */
.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  position: relative;
}

.ctrl {
  width: 55px;
  height: 55px;
  background: #FFD700;
  border: 3px solid #000;
  box-shadow: 3px 3px 0px #000;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  position: relative;
}

.ctrl::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
}

.prev::before { content: '⏮'; }
.play::before { content: '▶'; }
.pause::before { content: '⏸'; }
.next::before { content: '⏭'; }
.shuffle::before { content: '🔀'; }
.fav::before { content: '⭐'; }

.ctrl:hover {
  transform: translateY(-2px);
  background: white;
  color: black;
  box-shadow: 4px 4px 0px #000;
}

.ctrl:active {
  transform: translateY(2px);
  box-shadow: 1px 1px 0px #000 inset;
}

.ctrl.shuffle.active {
  background: #FFD700;
  color: #000;
  box-shadow: 0 0 15px #FFD700, 0 0 5px #FFD700 inset;
}

/* ===== SEARCH BOX ===== */
.search-box {
  margin-top: 30px;
  margin-bottom: 10px;
}

#trackSearch {
  width: 250px;
  background: #2b2b2b;
  border: 2px solid #FFD700;
  color: #FFD700;
  padding: 8px;
  font-family: 'Press Start 2P', cursive;
  font-size: 9px;
  border-radius: 3px;
  box-shadow: 2px 2px 0px #000;
  text-align: center;
}

#trackSearch:focus {
  outline: none;
  border-color: white;
}

/* ===== TRACK LIST ===== */
.track-section {
  display: flex;
  justify-content: center;
  margin-top: 25px;
}

.track-container {
  width: 70%;
  background: #2b2b2b;
  border: 2px solid #FFD700;
  border-radius: 6px;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  scrollbar-color: #FFD700 #2b2b2b;
  scrollbar-width: thin;
}

/* Retro Pixel Scrollbars */
.track-container::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.track-container::-webkit-scrollbar-track {
  background: #2b2b2b;
  border: 1px solid #000;
}
.track-container::-webkit-scrollbar-thumb {
  background: #FFD700;
  border: 1px solid #000;
  box-shadow: 1px 1px 0 #000 inset;
}
.track-container::-webkit-scrollbar-thumb:hover {
  background: #fff;
  box-shadow: 0 0 3px #FFD700;
}

#trackList {
  list-style: none;
  margin: 0;
  padding: 8px;
  white-space: nowrap;
}

#trackList li {
  padding: 8px 10px;
  border-bottom: 1px solid #444;
  cursor: pointer;
  text-align: left;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#trackList li:hover {
  background: #3b3b3b;
  color: #fff;
  box-shadow: 0 0 6px rgba(255,215,0,0.2);
}

/* Active track pulsing glow */
#trackList li.active {
  background: #555;
  box-shadow: 0 0 8px rgba(255,215,0,0.4) inset, 0 0 4px rgba(255,215,0,0.2);
  animation: activePulse 2.2s ease-in-out infinite;
}

@keyframes activePulse {
  0%   { box-shadow: 0 0 6px rgba(255,215,0,0.2) inset, 0 0 2px rgba(255,215,0,0.2); }
  50%  { box-shadow: 0 0 14px rgba(255,215,0,0.6) inset, 0 0 8px rgba(255,215,0,0.3); }
  100% { box-shadow: 0 0 6px rgba(255,215,0,0.2) inset, 0 0 2px rgba(255,215,0,0.2); }
}

/* Favourite star icon */
.track-star {
  color: #FFD700;
  text-shadow: 0 0 4px #FFD700;
  font-size: 10px;
  user-select: none;
  display: none;
}

#trackList li.is-fav .track-star {
  display: inline-block;
}

/* ===== VISUALIZER ===== */
#visualizer {
  position: absolute;
  top: 60px;          /* tweak to match your navbar height */
  left: 0;
  width: 100%;
  height: 180px;      /* matches the JS canvas.height */
  background: #1a1a1a;
  z-index: 2;
  pointer-events: none;  /* so clicks go through to the page */
}

/* ===== MODALS ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  background: repeating-linear-gradient(45deg, #2b2b2b, #2b2b2b 10px, #282828 10px, #282828 20px);
  border: 4px solid #FFD700;
  box-shadow: 0 0 12px rgba(255,215,0,0.3), inset 0 0 0 2px #000;
  padding: 20px;
  width: 90%;
  max-width: 320px;
  box-sizing: border-box;
  animation: flicker 1.8s infinite alternate;
}

.modal-content::before {
  content: "";
  position: absolute;
  top: 6px; left: 6px; right: 6px; bottom: 6px;
  border: 2px solid #FFD700;
  pointer-events: none;
}

@keyframes flicker {
  0% { box-shadow: 0 0 5px rgba(255,215,0,0.2); }
  50% { box-shadow: 0 0 12px rgba(255,215,0,0.6); }
  100% { box-shadow: 0 0 7px rgba(255,215,0,0.3); }
}

.modal-content h3 {
  text-align: center;
  margin-bottom: 15px;
  font-size: 12px;
  color: #FFD700;
  text-shadow: 2px 2px 0 #000;
}

.close {
  position: absolute;
  top: 8px;
  right: 10px;
  cursor: pointer;
  color: #FFD700;
  font-size: 18px;
}

/* ===== FORMS ===== */
form {
  display: flex;
  flex-direction: column;
}

form input, form button {
  width: 100%;
  margin: 8px 0;
  padding: 8px;
  font-family: 'Press Start 2P', cursive;
  font-size: 10px;
  box-sizing: border-box;
}

form input {
  background: #333;
  color: #FFD700;
  border: 2px solid #555;
}
form input:focus { outline: none; border-color: #FFD700; }

form button {
  background: #FFD700;
  border: 2px solid #000;
  cursor: pointer;
  box-shadow: 2px 2px 0px #000;
  transition: all 0.1s;
}
form button:hover {
  background: white;
  color: black;
  transform: translateY(-2px);
  box-shadow: 3px 3px 0px #000;
}

/* ===== FLOATING FAVOURITES WINDOW ===== */
.fav-window {
  position: fixed;
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 320px;              /* minimum size for shorter names */
  max-width: 90vw;               /* prevent it from overflowing screen */
  width: fit-content;            /* dynamic width based on content */
  max-height: 400px;
  background: #111;
  border: 2px solid #ffcc00;
  color: #ffcc00;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.4);
  font-family: 'Press Start 2P', monospace;
  font-size: 0.9rem;
  z-index: 10000;
  border-radius: 4px;
  padding-bottom: 5px;
}

.fav-window.hidden { display: none; }

.fav-header {
  display: flex;
  justify-content: center;       /* centers the title */
  align-items: center;
  position: relative;
  padding: 8px 10px;
  background: #333;
  color: #ffcc00;
  border-bottom: 2px solid #ffcc00;
  font-size: 0.9rem;
  text-align: center;
}

/* keeps the close button in the top right corner */
.fav-close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #ffcc00;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.fav-close:hover {
  transform: translateY(-50%) scale(1.2);
  color: #ff5555;
}

.fav-header button {
  background: none;
  border: none;
  color: #FFD700;
  font-size: 10px;
  cursor: pointer;
  padding: 0;
}
.fav-header button:hover { color: white; }

/* Scrollable favourites list */
#favList {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: calc(5 * 26px);
  overflow-y: auto;
  scrollbar-color: #FFD700 #2b2b2b;
  scrollbar-width: thin;
}
#favList::-webkit-scrollbar { width: 10px; }
#favList::-webkit-scrollbar-thumb {
  background: #FFD700;
  border: 1px solid #000;
}
#favList::-webkit-scrollbar-thumb:hover {
  background: #fff;
  box-shadow: 0 0 3px #FFD700;
}

#favList li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: 1px solid #444;   /* divider between tracks */
  white-space: nowrap;
  cursor: pointer;
}

#favList li:hover {
  background: rgba(255, 204, 0, 0.1);
}

.fav-remove-btn {
  color: #ff5555;
  font-size: 1rem;
  cursor: pointer;
  padding-left: 8px;
  transition: transform 0.2s ease;
}

.fav-remove-btn:hover {
  transform: scale(1.2);
}

/* ===== RETRO TOAST ===== */
#toast {
  position: fixed;
  background: #FFD700;
  color: #000;
  font-family: 'Press Start 2P', cursive;
  font-size: 10px;
  padding: 8px 14px;
  border: 2px solid #000;
  box-shadow: 2px 2px 0 #000;
  border-radius: 2px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px) scale(0.95);
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 99999;
}
#toast.show {
  animation: toastPop 1.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards;
}
@keyframes toastPop {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(0.9); }
  25% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  75% { opacity: 1; transform: translate(-50%, -2px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -10px) scale(0.95); }
}

#bootScreen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100000;
  animation: bootFadeOut 2.6s forwards ease-in-out;
}

.bootLogo {
  font-family: 'Press Start 2P', cursive;
  color: #FFD700;
  font-size: 34px; /* Bigger logo text */
  letter-spacing: 2px;
  text-shadow: 3px 3px 0 #000, 0 0 10px rgba(255,215,0,0.5);
  opacity: 0;
  transform: scale(1);
  animation:
    bootFlicker 1.2s ease-in-out 0.3s forwards,
    bootGlow 2s infinite ease-in-out 1.5s,
    bootZoom 2.6s ease-in-out 0.3s forwards;
}

@keyframes bootFlicker {
  0%, 20%, 40% { opacity: 0; }
  10%, 30%, 50%, 70%, 100% { opacity: 1; transform: scale(1); }
  80% { transform: scale(1.05); }
}

@keyframes bootGlow {
  0%, 100% {
    text-shadow: 3px 3px 0 #000, 0 0 8px rgba(255,215,0,0.3);
  }
  50% {
    text-shadow: 3px 3px 0 #000, 0 0 15px rgba(255,215,0,0.9);
  }
}

@keyframes bootZoom {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1.1);
  }
}

@keyframes jukeboxFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.97);
    filter: brightness(0.8);
  }
  60% {
    opacity: 0.8;
    transform: scale(1.02);
    filter: brightness(1.2);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1);
  }
}

@keyframes eqStartup {
  0%, 100% { height: 8px; }
  25% { height: 28px; }
  50% { height: 18px; }
  75% { height: 24px; }
}


@keyframes bootFadeOut {
  0%, 75% { opacity: 1; filter: brightness(1); }
  90% { filter: brightness(1.8) saturate(1.5); }
  100% { opacity: 0; visibility: hidden; filter: brightness(1); }
}

/* ==========================
   GLOBAL FONT SIZE UPGRADE (LARGE)
   ========================== */

/* Base text scaling */
body, input, button, .nav-btn, #trackList li, #favList li, #nowPlaying, #toast {
  font-size: 14px !important;
  line-height: 1.7;
}

/* Logo */
.logo {
  font-size: 18px !important;
}

/* Navbar buttons */
.nav-btn {
  font-size: 13px !important;
  padding: 6px 10px;
}

/* Now Playing section */
#nowPlaying {
  font-size: 13px !important;
  padding: 10px 18px;
}

/* Track list and favourites list */
#trackList li,
#favList li {
  font-size: 13px !important;
  padding: 10px 12px;
}

/* Search box */
#trackSearch {
  font-size: 13px !important;
  padding: 10px;
}

/* Modals */
.modal-content h3 {
  font-size: 16px !important;
}

form input,
form button {
  font-size: 13px !important;
  padding: 10px;
}

/* ===== FAVOURITE SIGN-UP HINT ===== */
.favourite-hint {
  font-family: 'Press Start 2P', cursive;
  font-size: 1.2rem;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 0 8px #ffcc00, 0 0 16px #ffcc00;
  animation: pulse 2s infinite ease-in-out;
}

/* subtle pulsing glow animation */
@keyframes pulse {
  0%, 100% {
    text-shadow: 0 0 8px #ffcc00, 0 0 16px #ffcc00;
    color: #ffffff;
  }
  50% {
    text-shadow: 0 0 4px #ff9900, 0 0 12px #ffcc00, 0 0 24px #ffcc00;
    color: #fff6b3;
  }
}

@keyframes flickerHint {
  0% { opacity: 0.7; text-shadow: 0 0 2px #FFD700; }
  100% { opacity: 1; text-shadow: 0 0 6px #FFD700; }
}

/* Toast messages */
#toast {
  font-size: 13px !important;
  padding: 10px 16px;
}

@media (max-width: 800px) {
  body, button, input, .nav-btn, #trackList li {
    font-size: 10px !important;
  }
}

/* ==========================
   FAVOURITES BUTTON REPOSITION + FONT SIZE BOOST
   ========================== */

/* --- FAVOURITES ABOVE SEARCH --- */
.search-fav-row {
  display: flex;
  flex-direction: column;      /* stack vertically */
  align-items: center;         /* center horizontally */
  gap: 10px;                   /* space between button and search */
  margin-top: 35px;
  margin-bottom: 25px;
}

/* Big FAVOURITES button */
.fav-btn {
  background: none;
  border: 3px solid #FFD700;
  border-radius: 4px;
  font-family: 'Press Start 2P', cursive;
  font-size: 16px;
  letter-spacing: 1px;
  color: #FFD700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 3px 3px 0 #000;
  width: 280px;                /* SAME width as search */
  padding: 12px 14px;
}

.fav-btn:hover {
  background: #FFD700;
  color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 #000, 0 0 15px #FFD700;
}

/* Search box – same width & feel as favourites */
#trackSearch {
  width: 280px;
  font-size: 14px;
  padding: 12px 14px;
  background: #2b2b2b;
  border: 3px solid #FFD700;
  color: #FFD700;
  font-family: 'Press Start 2P', cursive;
  text-align: center;
  border-radius: 4px;
  box-shadow: 3px 3px 0 #000;
}

/* ==========================
   FAVOURITES BUTTON SIZE + NAV LINK STYLING
   ========================== */

/* Match FAVOURITES button width with search box */
.search-fav-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 15px;
}

.fav-btn {
  background: none;
  border: 3px solid #FFD700;
  border-radius: 4px;
  font-family: 'Press Start 2P', cursive;
  font-size: 16px;
  letter-spacing: 1px;
  color: #FFD700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 3px 3px 0 #000;
  width: 260px;              /* same width as search bar */
  padding: 12px 14px;        /* same padding */
}

.fav-btn:hover {
  background: #FFD700;
  color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 #000, 0 0 15px #FFD700;
}

/* Style the search bar to align perfectly */
#trackSearch {
  width: 260px;
  font-size: 14px !important;
  padding: 12px 14px;
  background: #2b2b2b;
  border: 3px solid #FFD700;
  color: #FFD700;
  font-family: 'Press Start 2P', cursive;
  text-align: center;
  border-radius: 4px;
  box-shadow: 3px 3px 0 #000;
}

/* NAV LOGIN / REGISTER DIVIDER + WHITE TEXT */
.nav-links a {
  color: white !important;
  text-decoration: none;
  position: relative;
  font-size: 11px;
}

/* Add vertical divider between links */
.nav-links a + a::before {
  content: "|";
  color: white;
  position: absolute;
  left: -10px;
  top: 0;
}

/* ==========================
   HEADER POLISH + LAYOUT FIXES
   ========================== */

/* --- NAV LOGIN / REGISTER --- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  color: white !important;
  text-decoration: none;
  font-size: 12px;
  position: relative;
  transition: all 0.25s ease;
}

/* Centered divider between Login | Register */
.nav-links a + a::before {
  content: "|";
  color: white;
  position: absolute;
  left: -11px;
  top: 50%;
  transform: translateY(-50%);
}

/* Glowing hover effect */
.nav-links a:hover {
  color: #FFD700 !important;
  text-shadow: 0 0 8px #FFD700, 0 0 15px rgba(255, 215, 0, 0.6);
}

/* --- SEARCH + FAVOURITES ROW --- */
.search-fav-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 25px;
}

.fav-btn {
  background: none;
  border: 3px solid #FFD700;
  border-radius: 4px;
  font-family: 'Press Start 2P', cursive;
  font-size: 16px;
  letter-spacing: 1px;
  color: #FFD700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 3px 3px 0 #000;
  width: 280px; /* exact same as search */
  padding: 12px 14px;
}

.fav-btn:hover {
  background: #FFD700;
  color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 #000, 0 0 15px #FFD700;
}

/* Search box matches button width */
#trackSearch {
  width: 280px;
  font-size: 14px !important;
  padding: 12px 14px;
  background: #2b2b2b;
  border: 3px solid #FFD700;
  color: #FFD700;
  font-family: 'Press Start 2P', cursive;
  text-align: center;
  border-radius: 4px;
  box-shadow: 3px 3px 0 #000;
}

/* --- SIGN UP / LOG IN HINT --- */
.favourite-hint {
  color: white !important;
  font-size: 13px !important;
  font-family: 'Press Start 2P', cursive;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.6);
  margin-top: 25px; /* pushes it away from track list */
  margin-bottom: 40px;
  display: inline-block;
  animation: hintGlow 2s ease-in-out infinite alternate;
}

@keyframes hintGlow {
  0% { text-shadow: 0 0 4px rgba(255,255,255,0.3); }
  100% { text-shadow: 0 0 10px rgba(255,255,255,0.9); }
}


/* ==========================
   MODAL FADE IN ANIMATION
   ========================== */

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal.show {
  display: block;
  opacity: 1;
}

.modal-content {
  animation: fadeInUp 0.45s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  margin: 10px 0 15px;
  color: #FFD700;
  font-family: 'Press Start 2P', cursive;
}

.remember-me input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #FFD700;
  cursor: pointer;
}

/* ===== FORGOT PASSWORD MODAL ===== */
#forgotPasswordModal .modal-content {
  background: repeating-linear-gradient(45deg, #2b2b2b, #2b2b2b 10px, #282828 10px, #282828 20px);
  border: 4px solid #FFD700;
  box-shadow:
    0 0 12px rgba(255,215,0,0.4),
    inset 0 0 0 2px #000,
    0 0 25px rgba(255,215,0,0.25);
  padding: 20px;
  max-width: 340px;
  width: 90%;
  animation: flicker 2s infinite alternate;
  position: relative;
}

#forgotPasswordModal h3 {
  font-size: 12px;
  color: #FFD700;
  text-align: center;
  text-shadow: 2px 2px 0 #000;
  margin-bottom: 15px;
}

#forgotPasswordModal input {
  background: #333;
  border: 2px solid #FFD700;
  color: #FFD700;
  font-family: 'Press Start 2P', cursive;
  font-size: 9px;
  padding: 8px;
  width: 100%;
  margin-bottom: 12px;
  box-shadow: 2px 2px 0 #000;
}

#forgotPasswordModal button {
  background: #FFD700;
  border: 2px solid #000;
  color: #000;
  font-family: 'Press Start 2P', cursive;
  font-size: 10px;
  cursor: pointer;
  padding: 8px;
  width: 100%;
  transition: all 0.15s ease;
  box-shadow: 2px 2px 0 #000;
}

#forgotPasswordModal button:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 #000, 0 0 10px #FFD700;
}

/* Fade animation for all modals */
.modal {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.modal.show {
  opacity: 1;
}

/* ===== FORGOT PASSWORD LINK ===== */
#forgotPasswordLink {
  display: block;
  text-align: center;
  margin-top: 10px;
  color: #FFD700; /* same as site text */
  text-decoration: none;
  font-size: 9px;
  font-family: 'Press Start 2P', cursive;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

#forgotPasswordLink:hover {
  color: #fff;
  text-shadow: 0 0 6px #FFD700;
}

#forgotPasswordLink:visited {
  color: #FFD700; /* prevent purple visited color */
}

/* === FAVOURITES BUTTON (Main one above Search) === */
#favModalBtn {
  display: inline-block;
  background: #ffcc00; /* bright yellow solid */
  color: #000; /* black text for contrast */
  border: 2px solid #ffcc00;
  font-family: 'Press Start 2P', cursive;
  font-size: 1.2rem;
  padding: 14px 24px;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 0 12px #ffcc00, inset 0 0 6px #fff;
  transition: all 0.2s ease-in-out;
  margin-bottom: 12px;
}

/* Hover + active states */
#favModalBtn:hover {
  background: #fff000;
  box-shadow: 0 0 20px #ffcc00, 0 0 40px #ffcc00;
  transform: scale(1.05);
}

#favModalBtn:active {
  background: #ffaa00;
  box-shadow: 0 0 10px #ffaa00;
  transform: scale(0.98);
}

.hidden {
  display: none !important;
}

.main-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 25px; /* reduced spacing between each section */
  margin-top: 30px;
}