/* ==============================
   🎨 GLOBAL DESIGN TOKENS
============================== */
:root {
  --color-bg: #000;
  --color-surface: #111;
  --color-surface-light: #1c1c1c;
  --color-text: #fff;
  --color-text-dim: #ccc;
  --color-accent: #ff69b4;
  --color-accent-strong: #ff00ff;
  --color-accent-hover: #d147b7;

  --font-primary: 'Poppins', sans-serif;
  --font-size-xs: 0.8rem;
  --font-size-sm: 0.95rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.5rem;
  --font-size-xl: 3rem;

  /* ✅ UPDATED SPACING */
  --space-xs: 3px;
  --space-sm: 6px;
  --space-md: 14px;
  --space-lg: 20px;
  --space-xl: 40px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 15px;

  --glow-pink: 0 0 12px rgba(255, 20, 147, 0.6);
  --glow-purple: 0 0 20px rgba(255, 0, 255, 0.5);

  --transition-base: all 0.3s ease-in-out;
}

}


/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
}



/* ==============================
   TOP SECTION
============================== */
.top-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  position: relative;
}

.top-section h1 {
  margin: 0;
  font-size: 2rem;
  color: black;
  text-align: left;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.favicon {
  width: 60px;
  height: 60px;
  vertical-align: middle;
  margin-left: -3px;
  position: relative;
  top: 2px;
}

/* Right Icons */
.right-icons {
  display: flex;
  align-items: center;
}

.icon-box-container {
  display: flex;
  align-items: center;
  border-radius: 8px;
  background-color: black;
}

.icon-box {
  position: relative;
  margin: 0 10px;
  cursor: pointer;
  background-color: black;
  padding: 10px;
  border-radius: 8px;
}

.divider {
  width: 2px;
  background-color: white;
  height: 35px;
}

.icon {
  font-size: 1.8rem;
  color: white;
}

/* Tooltip */
.tooltip {
  visibility: hidden;
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: black;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.icon-box:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

/* Sign-in */
.sign-in {
  font-size: 16px;
  color: white;
  background-color: black;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}
.sign-in:hover { background-color: purple; }









/* ==============================
   HERO SECTION
============================== */
.hero {
  text-align: center;
  padding: 100px 20px;
  background: linear-gradient(135deg,#ff69b4,#800080);
  color: white;
  border-radius: 10px;
  margin: 40px auto;
  max-width: 800px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-size: 48px;
  font-weight: bold;
}

.hero p {
  font-size: 20px;
  margin: 10px 0 20px;
  font-weight: 300;
}

}



/* ==============================
   CRITERIA
============================== */
.criteria-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  color: white;
  box-sizing: border-box;
  overflow-y: auto;
  background: var(--color-bg);
}

.criteria-header {
  font-size: 3rem;
  font-weight: bold;
  text-transform: uppercase;
  border-bottom: 2px solid #ff00ff;
  padding-bottom: 10px;
  margin-top: 60px;
  margin-bottom: 20px;
}

.criteria-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1600px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.criteria-section {
  background: #000;
  padding: 40px;
  border-radius: 15px;
  border: 3px solid #ff00ff;
  box-shadow:
    0 0 15px #ff00ff,
    0 0 30px rgba(255,0,255,0.4),
    inset 0 0 20px rgba(255,0,255,0.15);
}

.criteria-section h1 {
  font-size: 2.8rem;
  text-align: center;
  font-weight: 700;
  color: #fff;
  text-shadow:
    0 0 10px #ff00ff,
    0 0 20px #ff00ff,
    0 0 35px #ff00ff,
    0 0 55px #ff00ff;
  margin-bottom: 15px;
}

.criteria-section h2 {
  font-size: 1.6rem;
  margin-top: 30px;
  margin-bottom: 10px;
  font-weight: 700;
  color: #fff;
  text-shadow:
    0 0 7px #ff69b4,
    0 0 15px #ff00ff;
}

.criteria-section p,
.criteria-section li {
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.45rem;
  text-shadow:
    0 0 4px rgba(255,105,180,0.8),
    0 0 8px rgba(255,0,255,0.4);
}

.criteria-section ul { padding-left: 25px; }
.criteria-section li { margin-bottom: 6px; }



/* ==============================
   RANK SECTION
============================== */
.rank-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  color: white;
  box-sizing: border-box;
  background: var(--color-bg);
  max-width: 1300px;
  margin: auto;
  width: 100%;
}

.rank-header {
  font-size: 3rem;
  font-weight: bold;
  text-transform: uppercase;
  border-bottom: 2px solid #ff00ff;
  padding-bottom: 10px;
  margin-top: 60px;
  margin-bottom: 20px;
}

.rank-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  flex-grow: 1;
  padding-top: 20px;
}

.rank-section {
  width: 45%;
  margin: 10px;
  background: rgba(0,0,0,0.192);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px #ff00ff;
  min-width: 300px;
}

.rank-section h1 {
  font-size: 3rem;
  color: white;
  text-align: center;
  margin-bottom: 15px;
}

.rank-section h2 {
  font-size: 1.8rem;
  color: white;
  text-align: center;
  margin-bottom: 15px;
}

.rank-section p,
.rank-section ul {
  font-size: 1.2rem;
  color: white;
  text-align: left;
  margin-bottom: 30px;
}

.rank-section ul { list-style: disc; padding-left: 20px; }
.rank-section ul li { margin-bottom: 10px; }



/* ==============================
   RATINGS SYSTEM
============================== */
.ratings_system-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  color: white;
  box-sizing: border-box;
  overflow-y: auto;
  background: var(--color-bg);
}

.ratings_system-header {
  font-size: 3rem;
  font-weight: bold;
  text-transform: uppercase;
  border-bottom: 2px solid #ff00ff;
  padding-bottom: 10px;
  margin-top: 60px;
  margin-bottom: 20px;
}

.ratings_system-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  flex-grow: 1;
  padding-top: 20px;
}

.ratings_system-section {
  width: 45%;
  margin: 10px;
  background: rgba(0,0,0,0.192);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px #ff00ff;
  min-width: 300px;
}

.ratings_system-section h1 {
  font-size: 3rem;
  color: white;
  text-align: center;
  margin-bottom: 15px;
}

.ratings_system-section h2 {
  font-size: 1.8rem;
  color: white;
  text-align: center;
  margin-bottom: 15px;
}

.ratings_system-section p,
.ratings_system-section ul {
  font-size: 1.2rem;
  color: white;
  text-align: left;
  margin-bottom: 30px;
}

.ratings_system-section ul { list-style: disc; padding-left: 20px; }
.ratings_system-section ul li { margin-bottom: 10px; }



/* ==============================
   SETTINGS PAGE
============================== */
.settings-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-strong));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(255, 105, 180, 0.5);
  margin-bottom: 10px;
  animation: settingsTitleGlow 3s ease-in-out infinite alternate;
}

@keyframes settingsTitleGlow {
  0% { text-shadow: 0 0 15px rgba(255, 105, 180, 0.3); }
  100% { text-shadow: 0 0 25px rgba(255, 105, 180, 0.7); }
}

.settings-subtext {
  text-align: center;
  font-size: 1.2rem;
  color: var(--color-text-dim);
  margin-bottom: 30px;
  opacity: 0.8;
}

.settings-container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px;
  background:
    linear-gradient(135deg, rgba(255,20,147,0.15), rgba(75,0,130,0.15)),
    linear-gradient(45deg, rgba(255,105,180,0.05) 0%, rgba(255,0,255,0.05) 50%, rgba(75,0,130,0.05) 100%);
  border-radius: 20px;
  box-shadow:
    0 0 40px rgba(255,20,147,0.3),
    0 0 80px rgba(255,0,255,0.1),
    inset 0 0 60px rgba(255,105,180,0.05);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,105,180,0.2);
  position: relative;
  overflow: hidden;
}

.settings-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,105,180,0.03) 0%, transparent 70%);
  animation: settingsBackgroundFloat 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes settingsBackgroundFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.settings-box-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  padding: 20px 0;
  position: relative;
  z-index: 1;
}

.settings-box {
  background: linear-gradient(135deg, #000 0%, #111 50%, #000 100%);
  padding: 25px;
  border-radius: 16px;
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 0 20px rgba(255,105,180,0.2),
    0 8px 32px rgba(0,0,0,0.3);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  overflow: hidden;
}

.settings-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(255,105,180,0.1) 0%,
    rgba(255,0,255,0.1) 50%,
    rgba(75,0,130,0.1) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: 14px;
}

.settings-box::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #ff69b4, #ff00ff, #4b0082);
  border-radius: 18px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.settings-box:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow:
    0 0 35px rgba(255,105,180,0.35),
    0 15px 45px rgba(0,0,0,0.35),
    0 0 65px rgba(255,0,255,0.15);
}

.settings-box:hover::before {
  opacity: 1;
}

.settings-box:hover::after {
  opacity: 0.7;
}

.settings-box h3 {
  font-size: 1.6rem;
  color: #fff;
  text-shadow: 0 0 10px rgba(255,105,180,0.5);
  margin-bottom: 12px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.settings-box p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

/* Add subtle icon glow effect */
.settings-box:hover h3 {
  text-shadow: 0 0 15px rgba(255,105,180,0.8), 0 0 30px rgba(255,0,255,0.6);
}

/* Responsive improvements */
@media (max-width: 1200px) {
  .settings-container {
    padding: 30px;
    margin: 0 10px;
  }

  .settings-box-container {
    gap: 25px;
  }

  .settings-box {
    padding: 20px;
  }

  .settings-box h3 {
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  .settings-container {
    width: 95%;
    max-width: 100%;
    padding: 20px;
    margin: 0 5px;
  }

  .settings-title {
    font-size: 2rem;
  }

  .settings-subtext {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .settings-box-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .settings-box {
    padding: 18px;
    border-radius: 14px;
  }

  .settings-box h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .settings-box p {
    font-size: 0.95rem;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .settings-container {
    padding: 15px;
  }

  .settings-title {
    font-size: 1.8rem;
  }

  .settings-box {
    padding: 16px;
  }

  .settings-box h3 {
    font-size: 1.2rem;
  }

  .settings-box p {
    font-size: 0.9rem;
  }
}

.save-button {
  background-color: #e91e63;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.save-button:hover { background-color: #d81b60; }



/* ==============================
   FAQ PAGE
============================== */
.faq-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #000000;
  text-shadow: 0 0 10px #ff69b4, 0 0 20px #ff1493;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255,20,147,0.3), rgba(75,0,130,0.3));
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(255,20,147,0.5);
  backdrop-filter: blur(10px);
}

.faq-item {
  padding: 20px;
  margin-bottom: 15px;
  border-left: 5px solid #ff69b4;
  background: #000;
  border-radius: 10px;
  transition: 0.3s ease-in-out;
}

.faq-item:hover {
  background: rgba(255,20,147,0.4);
  transform: translateY(3px);
  box-shadow: 0 0 15px rgba(255,20,147,0.6);
}

.faq-item h2 {
  color: #ff69b4;
  font-size: 1.6rem;
  text-shadow: 0 0 5px #ff69b4;
}

.faq-item p {
  font-size: 1.1rem;
  color: #fff;
}

.faq-link {
  color: #ff69b4;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.faq-link:hover {
  text-decoration: underline;
  color: #ff1493;
}





/* ==============================
   PROFILE DROPDOWN + LOGOUT
============================== */
.user-profile-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-profile {
  display: flex;
  align-items: center;
  background-color: #000;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.user-profile:hover {
  background: rgba(255,20,147,0.3);
  box-shadow: 0 0 10px rgba(255,20,147,0.6);
}

.user-profile-pic {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin-right: 6px;
  object-fit: cover;
  border: 1px solid #fff;
}

.user-username {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.logout-dropdown {
  display: none;
  position: absolute;
  top: 45px;
  right: 0;
  background: #000;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255,20,147,0.4);
  text-align: center;
  z-index: 100;
}

.logout-link {
  color: #ff69b4;
  text-decoration: none;
  display: block;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.2s ease, color 0.2s ease;
}

.logout-link:hover {
  background: #ff69b4;
  color: #000;
}

.user-profile-container:hover .logout-dropdown {
  display: block;
}

.logout {
  color: #ff69b4;
  font-weight: bold;
  text-decoration: none;
}

.logout:hover {
  text-decoration: underline;
  color: #ff00ff;
}






/* ==============================
   FAVORITES PANEL
============================== */
.favorites-container {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.favorites-box {
  flex: 1;
  background: #111;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  color: #fff;
  box-shadow: 0 0 12px rgba(255,105,180,0.2);
}

.favorites-box h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.favorites-box.fav h3 {
  color: #ff69b4;
  text-shadow: 0 0 6px #ff00ff;
}

.favorites-box.hate h3 {
  color: #ff3b3b;
  text-shadow: 0 0 6px #ff0000;
}






/* ==============================
   THEME BUTTONS
============================== */
.theme-btn {
  background: #222;
  color: #ff69b4;
  border: 1px solid #ff69b4;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  margin-right: 10px;
  margin-top: 10px;
  transition: 0.2s;
}

.theme-btn:hover {
  background: #ff69b4;
  color: #000;
}



/* ==============================
   THEME SELECTOR
============================== */
.theme-selector {
  text-align: center;
  margin: 20px 0;
}

.theme-selector button {
  background: #222;
  color: #ff69b4;
  border: 1px solid #ff69b4;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  margin-right: 10px;
  transition: 0.2s;
}

.theme-selector button:hover {
  background: #ff69b4;
  color: black;
}



/* ==============================
   LIGHT / DARK / NEON THEMES
============================== */
body.theme-light {
  --color-bg: #ffffff;
  --color-text: #000000;
  --color-surface: #f2f2f2;
  --color-accent: #ff69b4;
}

body.theme-dark {
  --color-bg: #000000;
  --color-text: #ffffff;
  --color-surface: #111;
  --color-accent: #ff69b4;
}

body.theme-neon {
  --color-bg: #000000;
  --color-text: #ffffff;
  --color-accent: #ff00ff;
  --color-accent-strong: #ff69b4;
  text-shadow: 0 0 8px var(--color-accent), 0 0 10px var(--color-accent-strong);
}

/* Comment body text color - responsive to theme */
.comment-body {
  color: var(--color-text);
}

/* Header behavior per theme */
body.theme-light .top-section h1 {
  color: #000;
  text-shadow: none;
}

body.theme-dark .top-section h1 {
  color: #ff69b4;
  text-shadow: 0 0 8px #ff00ff, 0 0 16px #ff69b4;
}

body.theme-neon .top-section h1 {
  background: linear-gradient(90deg, #ff69b4, #ff00ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: brightness(1.2) contrast(1.1);
  animation: neonPulse 2.5s infinite ease-in-out;
}

/* Neon animation */
@keyframes neonPulse {
  0% {
    text-shadow:
      0 0 8px rgba(255,105,180,0.4),
      0 0 14px rgba(255,0,255,0.35),
      0 0 22px rgba(255,0,255,0.3);
    opacity: 0.95;
  }
  50% {
    text-shadow:
      0 0 12px rgba(255,105,180,0.75),
      0 0 22px rgba(255,0,255,0.65),
      0 0 35px rgba(255,0,255,0.55);
    opacity: 1;
  }
  100% {
    text-shadow:
      0 0 8px rgba(255,105,180,0.4),
      0 0 14px rgba(255,0,255,0.35),
      0 0 22px rgba(255,0,255,0.3);
    opacity: 0.95;
  }
}






/* ==============================
   COLLAPSIBLE SECTIONS
============================== */
.collapsible {
  width: 100%;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(255,105,180,0.2);
  transition: var(--transition-base);
}

.collapsible-header {
  padding: 18px 20px;
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-accent);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-shadow: 0 0 8px var(--color-accent);
}

.collapsible-header:hover {
  background: rgba(255,20,147,0.15);
  box-shadow: 0 0 12px var(--color-accent);
}

.collapsible-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.collapsible.open .collapsible-icon {
  transform: rotate(90deg);
}

/*** FIXED collapsible-content (you had conflicting resets) ***/
.collapsible-content {
  display: block;
  padding: 20px;
  background: var(--color-surface-light);
  border-radius: 10px;
  color: var(--color-text);
  max-width: 900px;
  margin: 0 auto;
}

.collapsible-content h1 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.collapsible-content h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-accent);
  margin: 25px 0 10px 0;
}

.collapsible-content p {
  font-size: 1rem;
  margin-bottom: 10px;
}

.collapsible-content ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.collapsible-content ul li {
  margin-bottom: 5px;
  font-size: 1rem;
  color: var(--color-text);
}

.collapsible-content * {
  text-shadow: none !important;
}



}

.level-popup.show {
  opacity: 1;
}




/* ==============================
   APP STORE BADGES
============================== */
.store-badge {
  height: 50px;
  margin: 10px;
  transition: 0.3s;
  filter: drop-shadow(0 0 10px #ff00ff);
}

.store-badge:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 15px #ff69b4);
}



/* ==============================
   FOOTER
============================== */
.site-footer {
  width: 100%;
  background: #000;
  padding: 40px 0;
  margin-top: 60px;
  text-align: center;
  border-top: 2px solid #ff00ff;
  box-shadow: 0 0 20px #ff00ff;
}

.footer-section {
  margin-bottom: 25px;
}

.footer-section h3 {
  color: #ff69b4;
  font-size: 1.4rem;
  margin-bottom: 10px;
  text-shadow: 0 0 6px #ff00ff;
}

.footer-icons a {
  font-size: 1.8rem;
  margin: 0 10px;
  color: #ff69b4;
  transition: 0.3s;
}

.footer-icons a:hover {
  color: #fff;
  text-shadow: 0 0 10px #ff00ff;
}

.app-btn {
  display: inline-block;
  margin: 5px 10px;
  padding: 10px 20px;
  background: #111;
  border: 1px solid #ff69b4;
  color: #ff69b4;
  border-radius: 8px;
  transition: 0.3s;
  text-decoration: none;
  font-weight: bold;
}

.app-btn:hover {
  background: #ff69b4;
  color: #000;
  box-shadow: 0 0 15px #ff00ff;
}

.footer-bottom {
  margin-top: 25px;
  color: #ff69b4;
  font-size: 0.9rem;
  opacity: 0.8;
}




/* ==============================
   GLOBAL EFFECTS / UTILS
============================== */
html {
  scroll-behavior: smooth;
}

html {
  font-size: 15px;
}

.gradient-text {
  background: linear-gradient(90deg, #ff69b4, #ff00ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Base image style (shared by all Spotify images) */
.artist-img {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.4);
}

/* Artists → circles */
.artist-img.circle {
    border-radius: 50%;
}

/* Tracks & playlists → squares */
.artist-img.square {
    border-radius: 6px;   /* use 0px for perfect squares */
}

.track-img {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  object-fit: cover;
}

.recent-img {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  object-fit: cover;
}

.playlist-img {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.4);
}

a {
    text-decoration: none;
}

/* Pill styling for genre/filter links */
.pill {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 105, 180, 0.1);
    color: var(--color-accent);
    border: 1px solid rgba(255, 105, 180, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pill:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    border-color: var(--color-accent);
    box-shadow: 0 0 8px rgba(255, 105, 180, 0.4);
    transform: translateY(-1px);
}

.settings-card a:hover {
    text-shadow: 0 0 8px #ff4fd8;
}

.settings-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 79, 216, 0.6);
}



/* ==============================
   SONG PAGE – ALBUM ART FIX
============================== */

.song-left-sidebar .cover-box img {
  max-width: 220px;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
}



/* ==============================
   SONG PAGE – RATING SLIDER
============================== */

#ratingSlider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--color-accent) 0%,
    var(--color-accent) 50%,
    #333 50%,
    #333 100%
  );
  outline: none;
  transition: background 0.2s ease;
}

/* Thumb */
#ratingSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff69b4, #ff00ff);
  box-shadow:
    0 0 6px rgba(255,105,180,0.9),
    0 0 14px rgba(255,0,255,0.6);
  cursor: pointer;
}

#ratingSlider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff69b4, #ff00ff);
  border: none;
  box-shadow:
    0 0 6px rgba(255,105,180,0.9),
    0 0 14px rgba(255,0,255,0.6);
  cursor: pointer;
}



/* ==============================
   LIGHT THEME FIXES
============================== */

body.theme-light {
  background: #ffffff;
  color: #000000;
}

/* Footer fixes */
body.theme-light .site-footer {
  background: #f2f2f2;
  border-top: 2px solid #ff69b4;
  box-shadow: none;
}

body.theme-light .footer-section h3,
body.theme-light .footer-section p,
body.theme-light .footer-bottom {
  color: #000000;
  text-shadow: none;
}

/* Theme buttons in footer */
body.theme-light .theme-footer .theme-label {
  color: #000;
}

body.theme-light .theme-footer .theme-btn {
  background: #fff;
  color: #000;
  border: 1px solid #ff69b4;
}

body.theme-light .theme-footer .theme-btn:hover {
  background: #ff69b4;
  color: #fff;
}

body.theme-light * {
  text-shadow: none !important;
}

/* Light mode sidebar navigation text fix */
body.theme-light .sidebar-links a {
  color: #000;
}

body.theme-light .sidebar-links a:hover {
  color: #ff69b4;
}

body.theme-light .brand-title {
  color: #000;
  background: linear-gradient(90deg, #ff69b4, #bf5fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}






/* ===============================
   FIX SONG PAGE INTERACTION
=============================== */

/* Make sure nothing blocks interaction */
.song-layout,
.song-main,
.song-left-sidebar {
  pointer-events: auto;
}

/* Force rating UI to be clickable */
.song-main input,
.song-main button {
  pointer-events: auto !important;
  position: relative;
  z-index: 50;
}

/* Kill invisible overlays if present */
.song-main::before,
.song-main::after {
  pointer-events: none !important;
}



/* ==============================





/* ==============================
   RATINGS LIST (NEON)
============================== */

.ratings-list {
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
}

/* Header */
.ratings-list-header {
  display: grid;
  grid-template-columns: 1fr 80px 80px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #ff69b4;
  border-bottom: 1px solid rgba(255,105,180,0.25);
  text-transform: uppercase;
}

/* Rows */
.ratings-list-row {
  display: grid;
  grid-template-columns: 1fr 80px 80px;
  padding: 12px 16px;
  align-items: center;
  text-decoration: none;
  color: #fff;
  background: transparent;
  transition: 0.2s ease;
}

.ratings-list-row:not(:last-child) {
  border-bottom: 1px solid rgba(255,105,180,0.12);
}

.ratings-list-row:hover {
  background: rgba(255,105,180,0.08);
  box-shadow: inset 0 0 12px rgba(255,105,180,0.15);
}

/* Song cell */
.song-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.song-cell img {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 0 8px rgba(255,105,180,0.4);
}

.song-text strong {
  display: block;
  font-size: 0.95rem;
  color: #fff;
}

.song-text span {
  font-size: 0.8rem;
  color: #aaa;
}

/* Score */
.score-cell {
  text-align: center;
  font-weight: 600;
  color: #ff69b4;
}

/* Status */
.status-cell {
  text-align: center;
  font-size: 0.8rem;
  color: #aaa;
}

.no-cover {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: #222;
  color: #ff69b4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Sidebar ratings list: force consistent columns */
.left-column .ratings-list-header,
.left-column .ratings-list-row {
  display: grid;
  grid-template-columns: 1fr 72px; /* song | score */
  align-items: center;
}

/* Score column: anchor it */
.left-column .score-cell {
  text-align: right;
  padding-right: 6px;
  white-space: nowrap;
}



/* ==============================
   PROFILE TABS (NEON)
============================== */
.profile-tabs {
  margin-top: 18px;
}

.tab-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px;
  background: #0b0b0b;
  border: 1px solid rgba(255,105,180,0.35);
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(255,105,180,0.12);
}

.tab-btn {
  background: transparent;
  color: #ff69b4;
  border: 1px solid rgba(255,105,180,0.45);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s ease;
  opacity: 0.8;
}

.tab-btn:hover {
  opacity: 1;
  box-shadow: 0 0 10px rgba(255,0,255,0.35);
  transform: translateY(1px);
}

.tab-btn.active {
  opacity: 1;
  color: #fff;
  border-color: #ff00ff;
  box-shadow: 0 0 14px rgba(255,0,255,0.55), 0 0 22px rgba(255,105,180,0.35);
  position: relative;
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff69b4, #ff00ff);
}

.tab-panels {
  margin-top: 14px;
}

.tab-panel {
  display: none;
  background: #111;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 0 12px rgba(255,105,180,0.12);
  border: 1px solid rgba(255,105,180,0.18);
  animation: tabFade 0.18s ease;
}

.tab-panel.active {
  display: block;
}

.tab-title {
  color: #ff69b4;
  margin-bottom: 12px;
  text-shadow: 0 0 10px rgba(255,0,255,0.35);
}

@keyframes tabFade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Optional: keep tabs visible while scrolling the middle column */
.profile-container .tab-bar{
  position: sticky;
  top: 10px;   /* if your navbar overlaps, change to 70px */
  z-index: 20;
}

/* Optional: more contrast between inactive vs active */
.tab-btn { opacity: 0.55; }
.tab-btn.active { opacity: 1; }



/* ==============================
   PROFILE: STATISTICS TAB
============================== */
.music-stats {
  background: #0f0f0f;
  border: 1px solid rgba(255,105,180,0.2);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 0 12px rgba(255,105,180,0.12);
}

.music-stats-bar {
  height: 10px;
  background: #222;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  margin-bottom: 14px;
}

.music-stats-bar .seg.listened {
  background: linear-gradient(90deg, #ff69b4, #ff00ff);
  box-shadow: 0 0 10px rgba(255,0,255,0.25);
}

.music-stats-bar .seg.plan {
  background: rgba(77,210,255,0.9);
  box-shadow: 0 0 10px rgba(77,210,255,0.2);
}

.music-stats-bar .seg {
  flex: var(--flex-val, 0);
  transition: flex 1s ease-in-out;
}


.music-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.music-stat {
  background: #111;
  border-radius: 10px;
  padding: 12px;
  border: 1px solid rgba(255,105,180,0.12);
}

.music-stat .label {
  color: #aaa;
  font-size: 0.85rem;
}

.music-stat .value {
  color: #ff69b4;
  font-weight: 700;
  font-size: 1.3rem;
  margin-top: 4px;
  text-shadow: 0 0 8px rgba(255,0,255,0.25);
}

/* Save rating button */
.save-rating-btn {
  background: #ff69b4;
  color: #000;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

/* Plan button */
.plan-btn {
  background: transparent;
  color: #ff69b4;
  padding: 10px 18px;
  border: 1px solid #ff69b4;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
}

.plan-btn:hover:not(.is-disabled) {
  background: #ff69b4;
  color: #000;
  box-shadow: 0 0 12px rgba(255,105,180,0.7);
}

.plan-btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}


  padding: 0 20px;
}

.content-container {
  width: 100%;
}

.site-title {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.beta-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  border-radius: 999px;

  color: #000;
  background: #ff4fd8;

  box-shadow:
    0 0 8px rgba(255, 79, 216, 0.8),
    0 0 16px rgba(255, 79, 216, 0.6);

  line-height: 1;
}

/* ✅ FORCE HEADER LAYOUT (FINAL OVERRIDE) */
.top-section {
  display: flex !important;
  align-items: center;
  justify-content: space-between !important;
}

/* ✅ FORCE RIGHT ICONS TO THE FAR RIGHT */
.right-icons {
  margin-left: auto !important;
}

/* ✅ FIX BETA BADGE TEXT VISIBILITY */
.beta-badge {
  color: #000 !important;
  background: #ff4fd8;

  -webkit-text-fill-color: #000 !important;
  background-clip: initial !important;
  -webkit-background-clip: initial !important;

  text-shadow: none !important;
}

body.theme-neon .beta-badge {
  color: #000 !important;
  background: #ff7be5;
  box-shadow: 0 0 10px rgba(255,123,229,0.9);
}

.profile-actions form.inline-action {
  display: inline-block;
  margin: 0;
}

/* NAV DROPDOWN GLOW FIX — add at end of last-loaded CSS (style.bundle.css or style.css) */

/* Allow shadows to render outside header containers if previously clamped */
nav, .top-section, .nav-links {
  overflow: visible !important;
}

/* Ensure triggers are above other layers so their glow isn't masked */
nav .nav-links .dropbtn {
  position: relative !important;
  z-index: 80 !important;
}

/* Force the glow/underline for dropdown triggers (high specificity) */
nav .nav-links .dropdown:hover > .dropbtn,
nav .nav-links .dropdown.open > .dropbtn,
nav .nav-links .dropbtn:hover,
nav .nav-links .dropbtn:focus,
nav .nav-links .dropbtn:focus-visible,
nav .nav-links .dropbtn[aria-expanded="true"] {
  background-color: rgba(255,20,147,0.22) !important;
  color: #fff !important;
  text-shadow: 0 0 10px #ff69b4 !important;
  box-shadow: 0 0 18px rgba(255,105,180,0.9) !important;
}

/* Ensure the neon underline animates while dropdown is open/hovered */
nav .nav-links .dropdown:hover > .dropbtn::after,
nav .nav-links .dropdown.open > .dropbtn::after,
nav .nav-links .dropbtn:focus::after {
  width: 100% !important;
}

/* Star rating display on take cards. Rendered by window.scoreStars()
   in base.html and the {% from '_stars_macro.html' import stars %} macro.
   Small, pink, sits below the score pill. */
.take-stars {
  display: inline-flex;
  gap: 1px;
  font-size: 10px;
  color: #ff2d78;
  line-height: 1;
}
.take-stars .fa-star,
.take-stars .fa-star-half-stroke {
  text-shadow: 0 0 6px rgba(255, 45, 120, 0.55);
}

/* Right-aligned column wrapper so the score badge and stars stack vertically
   in feed cards. Sibling badges (e.g. QT/FT) align with the top of the stack. */
.feed-score-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}
/* Photo-overlay variant: extra breathing room because the busy image
   background makes tight stacking unreadable. */
.feed-score-stack.feed-overlay-score {
  gap: 16px;
}
