/* ==================== COMBINED STYLES ====================
 * All CSS combined into single file for performance
 * Reduces render-blocking requests from 7 to 1
 */

/* ==================== BASE STYLES ====================
 * CSS Variables, Global Resets, and Base Typography
 */

/* ==================== FONTS ==================== */
/* Fonts loaded via preload in index.html for better performance */

/* ==================== CSS VARIABLES ==================== */
:root {
  --gradient-start: #ff69b4;
  --gradient-mid: #ff00ff;
  --gradient-end: #ff1493;
  --header-start: #ff69b4;
  --header-mid: #ff00ff;
  --header-end: #ff1493;
  --range-start: #ff69b4;
  --range-mid: #ff00ff;
  --range-end: #ff1493;
}

/* ==================== GLOBAL RESET & BASE STYLES ==================== */
* {
  box-sizing: border-box;
  font-family: "Roboto Mono", monospace;
  border: 0;
  color: #eee;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: #0b0b0b;
  color: #eee;
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  min-width: 360px;
}

/* ==================== LAYOUT ====================
 * Header, Containers, Grid Layouts, and Structural Elements
 */

/* ==================== HEADER ==================== */
.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #00ffff, #0077ff, #00cccc);
  padding: 28px 0;
  transition: all 0.5s ease;
}

.header-container.today {
  background: linear-gradient(135deg, #ff69b4, #ff00ff, #ff1493);
}

.header-container.week {
  background: linear-gradient(135deg, #00ff7f, #00cccc, #008000);
}

.header-container.month {
  background: linear-gradient(135deg, #ffbf00, #ffaa00, #ff8000);
}

.main-header {
  font-family: 'Orbitron', sans-serif;
  font-size: 52px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--header-start), var(--header-mid), var(--header-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 4px var(--header-mid), 0 0 12px var(--header-mid), 0 0 24px var(--header-end), 0 0 48px var(--header-end);
  text-align: center;
  transition: all 0.5s ease;
}

.header-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  color: var(--header-mid);
  margin-top: 6px;
  text-align: center;
  text-shadow: 0 0 6px var(--header-end);
  transition: all 0.5s ease;
}

/* ==================== ARTIST CARDS CONTAINER ==================== */
.results-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  /* Container width: 4 cards (320px) + 3 gaps (24px) + padding (48px) = 1400px */
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  transition: opacity 0.15s ease-out;
}

.results-container.fading-out {
  opacity: 0;
  transition: opacity 0.1s ease-out;
}

/* ==================== COMPONENTS ====================
 * Artist Cards, Album Cards, Pills, Buttons, Modals, and UI Components
 */

/* ==================== VIEW TOGGLE (Artists/Albums) ==================== */
.view-toggle-container {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 0 24px;
  max-width: 400px;
  margin: 0 auto 24px;
}

.view-toggle-btn {
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  font-size: clamp(11px, 2.5vw, 14px);
  padding: clamp(8px, 2vw, 10px) clamp(16px, 4vw, 24px);
  border: 2px solid rgba(0, 255, 255, 0.3);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.view-toggle-btn:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: rgba(0, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.8);
  transform: scale(1.03);
}

.view-toggle-btn:active {
  transform: scale(0.98);
}

.view-toggle-btn.active {
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 119, 255, 0.2));
  border-color: #00ffff;
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.4), 0 0 24px rgba(0, 119, 255, 0.2);
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

.view-toggle-btn.disabled,
.view-toggle-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

/* ==================== BIRTHDAY RANGE SELECTOR ==================== */
.birthday-today {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 16px;
  width: 100%;
  max-width: 1400px;
  text-align: center;
  padding: 16px 24px;
}

.birthday-today-tag {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 64px;
  line-height: 1.1;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), text-shadow 0.3s ease;
  text-shadow: 0 0 12px var(--range-start), 0 0 16px var(--range-mid), 0 0 24px var(--range-end);
  position: relative;
}

.birthday-today-tag .range-text {
  display: block;
  font-family: 'Orbitron', sans-serif;
}

.range-arrow {
  font-size: 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  opacity: 0.6;
}

.range-arrow:hover {
  opacity: 1;
  transform: scale(1.2);
  text-shadow: 0 0 12px var(--range-start), 0 0 20px var(--range-mid);
}

.range-arrow .arrow-icon {
  display: block;
  pointer-events: none;
}

.birthday-today-tag .tap-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  text-shadow: none;
}

.birthday-today-tag .tap-icon {
  font-size: 16px;
  display: inline-block;
  animation: rotateHint 3s ease-in-out infinite;
}

.birthday-today-tag .tap-hint {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.5px;
}

.birthday-today-tag:hover .tap-indicator {
  opacity: 1;
}

/* ==================== MONTH ORBS (DAY SELECTOR) ==================== */
.month-orbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto 20px;
  box-sizing: border-box;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.month-orbs.hidden {
  display: none;
}

.month-orbs.hidden-loading {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.day-orb {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
  flex-shrink: 0;
  opacity: 0.4;
}

.day-orb.today {
  background: radial-gradient(circle at 30% 30%, #ff69b4, #ff1493);
  box-shadow: 0 0 12px #ff69b4, 0 0 24px #ff1493;
}

.day-orb.week {
  background: radial-gradient(circle at 30% 30%, #00ff7f, #008000);
  box-shadow: 0 0 12px #00ff7f, 0 0 24px #008000;
}

.day-orb.month {
  background: radial-gradient(circle at 30% 30%, #ffbf00, #ff8000);
  box-shadow: 0 0 12px #ffbf00, 0 0 24px #ff8000;
}

.day-orb.active {
  transform: scale(1.2);
  box-shadow: 0 0 24px var(--range-mid), 0 0 48px var(--range-end), inset 0 0 12px rgba(0,0,0,0.5);
  opacity: 1;
}

.day-orb:hover {
  transform: scale(1.1);
  box-shadow: 0 0 16px var(--range-mid), 0 0 32px var(--range-end);
  opacity: 1;
}

/* ==================== FETCHED DATE DISPLAY ==================== */
.fetched-date {
  text-align: center;
  color: #00ffff;
  font-family: 'Orbitron', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 16px;
  padding: 12px 24px;
  max-width: 1400px;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.6), 0 0 12px rgba(0, 119, 255, 0.4);
  letter-spacing: 0.5px;
  line-height: 1.4;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.fetched-date.hidden-loading {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

/* ==================== INSTRUCTION TEXT ==================== */
.instruction-container {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.instruction-container.hidden-loading {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.instruction-text {
  text-align: center;
  font-family: 'Roboto Mono', monospace;
  font-size: 16px;
  font-weight: 600;
  color: #00ffff;
  margin: 0 auto 20px;
  padding: 8px 24px;
  max-width: 1400px;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.4), 0 0 12px rgba(0, 119, 255, 0.3);
  letter-spacing: 0.5px;
  animation: subtleGlow 2s ease-in-out infinite;
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

.small-phone-only {
  display: none;
}

/* ==================== CONTROLS & BUTTONS ==================== */
.controls-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  padding: 0 24px 24px;
  /* Container width: 4 cards (320px) + 3 gaps (24px) + padding (48px) = 1400px */
  max-width: 1400px;
  margin: 0 auto;
  transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease;
  max-height: 300px;
}

.controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0;
  margin-bottom: 0;
  transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease;
  max-height: 300px;
  position: relative;
}

.max-cards-container {
  z-index: 102;
}

.sort-container {
  z-index: 101;
}

.controls-row.hidden-loading,
.controls.hidden-loading {
  opacity: 0;
  transform: translateY(-10px);
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Hide old desktop labels - now using dropdown labels */
.desktop-label {
  display: none;
}

/* Dropdown styling for both desktop and mobile */
.mobile-dropdown {
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 240px;
}

.dropdown-label {
  display: flex;
  padding: 10px 20px;
  min-height: 40px;
  height: 40px;
  min-width: 280px;
  width: 280px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--range-start), var(--range-mid), var(--range-end));
  cursor: pointer;
  box-shadow: 0 0 10px var(--range-mid);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  align-items: center;
  justify-content: center;
  user-select: none;
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 4px var(--range-start), 0 0 8px var(--range-end);
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-label:hover {
  transform: scale(1.03);
  box-shadow: 0 0 14px var(--range-mid);
}

.dropdown-label:active {
  transform: scale(0.98);
}

.mobile-dropdown .dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 10, 10, 0.98);
  border-radius: 12px;
  padding: 8px;
  gap: 6px;
  z-index: 1000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 20px var(--range-mid);
  border: 1px solid rgba(255, 255, 255, 0.15);
  min-width: 100%;
}

.mobile-dropdown.open .dropdown-content {
  display: flex;
  flex-direction: column;
}

.max-btn,
.sort-btn {
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  font-size: 12px;
  padding: 10px 16px;
  margin: 0;
  border: 2px solid var(--range-mid);
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
  text-shadow: 0 0 3px var(--range-start), 0 0 6px var(--range-end);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 38px;
  letter-spacing: 0.3px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.max-btn .btn-label,
.sort-btn .btn-label {
  display: block;
  font-size: 12px;
}

.max-btn .btn-current,
.sort-btn .btn-current {
  display: block;
  font-size: 9px;
  opacity: 0.7;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.max-btn:hover,
.sort-btn:hover {
  transform: scale(1.03);
}

.max-btn:active,
.sort-btn:active {
  transform: scale(0.98);
}

.max-btn.today,
.sort-btn.today {
  background: linear-gradient(135deg, #ff69b4, #ff00ff, #ff1493);
  border-color: #ff00ff;
}

.max-btn.week,
.sort-btn.week {
  background: linear-gradient(135deg, #00ff7f, #00cccc, #008000);
  border-color: #00cccc;
}

.max-btn.month,
.sort-btn.month {
  background: linear-gradient(135deg, #ffbf00, #ffaa00, #ff8000);
  border-color: #ffaa00;
}

.max-btn.active,
.sort-btn.active {
  opacity: 1;
  background: transparent !important;
  color: var(--range-mid);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
}

.max-btn.today.active,
.sort-btn.today.active {
  color: #ff00ff;
}

.max-btn.week.active,
.sort-btn.week.active {
  color: #00cccc;
}

.max-btn.month.active,
.sort-btn.month.active {
  color: #ffaa00;
}

/* ==================== ACTIVE FILTER INDICATOR ==================== */
.active-filter-container {
  display: flex;
  justify-content: center;
  padding: 0 24px 16px;
  transition: opacity 0.3s ease;
}

.active-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(255, 105, 180, 0.15), rgba(255, 0, 255, 0.15));
  border: 2px solid rgba(255, 0, 255, 0.4);
  border-radius: 20px;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #ff00ff;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(255, 0, 255, 0.2);
  animation: filterPulse 2s ease-in-out infinite;
}

.filter-text {
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 0, 255, 0.4);
}

.filter-clear-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}

.filter-clear-btn:hover {
  background: rgba(255, 0, 255, 0.3);
  border-color: #ff00ff;
  transform: scale(1.1);
}

.filter-clear-btn:active {
  transform: scale(0.95);
}

/* ==================== DAY LOADER ==================== */
.day-loader {
  position: relative;
  max-width: 400px;
  width: 90%;
  margin: 20px auto;
  padding: 12px 16px;
  text-align: center;
  background: rgba(20, 20, 20, 0.9);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  opacity: 1;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), height 0.4s ease, margin 0.4s ease, padding 0.4s ease;
}

.day-loader.hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  height: 0;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}

.day-loader-bar {
  position: relative;
  width: 100%;
  height: 18px;
  background: linear-gradient(90deg, #111, #000);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: inset 0 0 8px rgba(0, 255, 255, 0.4), 0 0 12px rgba(255, 0, 255, 0.5);
}

.day-loader-fill {
  height: 100%;
  width: 0%;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
  background-size: 200% 100%;
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.3), 0 0 12px rgba(0, 255, 255, 0.4);
  animation: loaderFlow 1.4s linear infinite;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.day-loader.hidden .day-loader-fill {
  opacity: 0;
}

.day-loader-fill.today {
  background: linear-gradient(90deg, #ff69b4, #ff00ff, #ff1493);
  background-size: 200% 100%;
  animation: loaderFlow 1.4s linear infinite;
}

.day-loader-fill.week {
  background: linear-gradient(90deg, #00ff7f, #00cccc, #008000);
  background-size: 200% 100%;
  animation: loaderFlow 1.4s linear infinite;
}

.day-loader-fill.month {
  background: linear-gradient(90deg, #ffbf00, #ffaa00, #ff8000);
  background-size: 200% 100%;
  animation: loaderFlow 1.4s linear infinite;
}

.day-loader-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  color: #fff;
  text-shadow: 0 0 6px var(--gradient-mid), 0 0 12px var(--gradient-end);
  margin-top: 4px;
  font-weight: 700;
}

/* ==================== LOADING SPINNER ==================== */
.loading {
  text-align: center;
  font-size: 24px;
  color: var(--range-mid);
  padding: 60px 0;
  font-family: 'Orbitron', sans-serif;
  text-shadow: 0 0 6px var(--range-start), 0 0 12px var(--range-end);
  animation: pulse 1.4s infinite ease-in-out;
}

/* ==================== ARTIST CARD ==================== */
.artist-card {
  background-color: #1a1a1a;
  border-radius: 16px;
  padding: 22px 22px 16px;
  width: 320px;
  min-width: 320px;
  max-width: 320px;
  flex: 0 0 320px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #333;
  animation: fallIn 0.4s ease-out forwards;
  animation-delay: var(--delay, 0s);
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  cursor: pointer;
  overflow: hidden;
}

.artist-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,255,255,0.4), inset 0 0 8px rgba(255,0,255,0.1);
}

/* ==================== ARTIST CARD - IMAGE WRAPPER ==================== */
.artist-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  min-height: 176px;
  align-items: flex-start;
}

.artist-image-link {
  pointer-events: none;
  cursor: default;
}

.artist-image {
  width: 160px;
  height: 160px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  background-color: #222;
  border: 2px solid rgba(0,255,255,0.1);
  box-shadow: 0 4px 12px rgba(0,255,255,0.2), inset 0 0 2px rgba(255,0,255,0.05);
}

.artist-image[src*="default-artist"] {
  opacity: 0.8;
}

/* ==================== ARTIST CARD - NAME ==================== */
.artist-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(14px, 4vw, 18px);
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
  color: #fff;
  margin: 0 0 8px;
  min-height: 48px;
  max-height: 48px;
  text-shadow: 0 0 4px rgba(255, 0, 255, 0.6), 0 0 8px rgba(0, 255, 255, 0.4);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 6px;
}

.artist-card h3 a {
  color: #fff;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.artist-card h3 a:hover {
  transform: scale(1.03);
}

/* ==================== ARTIST CARD - GENERAL TEXT ==================== */
.artist-card p {
  font-family: 'Roboto Mono', monospace;
  text-align: center;
  font-size: 14px;
  color: #aaa;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.5;
  margin: 4px 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.artist-card p:last-of-type {
  margin-bottom: 0;
}

/* ==================== ARTIST CARD - BIRTH DATE PILL ==================== */
.artist-card .born-date-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1vw, 6px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: clamp(4px, 1vw, 6px) clamp(10px, 2vw, 14px);
  margin: 0 0 10px;
  font-size: clamp(10px, 2.5vw, 12px);
  color: #fff;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
}

.born-date-pill .born-month {
  font-weight: 500;
  opacity: 0.9;
}

.born-date-pill .born-day {
  font-weight: 600;
}

.born-date-pill .born-year {
  font-weight: 500;
  opacity: 0.8;
}

/* ==================== ARTIST CARD - INFO PILLS ==================== */
.artist-info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(4px, 1vw, 6px);
  justify-content: center;
  align-content: center;
  align-items: center;
  min-height: 36px;
  max-height: 80px;
  padding-bottom: 0;
  margin-bottom: 0;
  margin-top: 6px;
  padding: 0 6px;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

.info-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3px, 0.8vw, 5px) clamp(6px, 1.5vw, 8px);
  border-radius: 12px;
  font-size: clamp(8px, 2vw, 9.5px);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #eee;
  cursor: default;
  pointer-events: none;
  line-height: 1;
  flex-shrink: 1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.genre-pill {
  background: linear-gradient(135deg, rgba(255, 105, 180, 0.2), rgba(255, 0, 255, 0.2));
  border-color: rgba(255, 0, 255, 0.3);
  cursor: default;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.occupation-pill {
  background: linear-gradient(135deg, rgba(0, 255, 127, 0.2), rgba(0, 204, 204, 0.2));
  border-color: rgba(0, 204, 204, 0.3);
}

.country-pill {
  background: linear-gradient(135deg, rgba(255, 191, 0, 0.2), rgba(255, 160, 0, 0.2));
  border-color: rgba(255, 160, 0, 0.3);
}

/* ==================== ALBUM CARDS ==================== */
.album-card {
  overflow: hidden;
}

.album-card .album-image-wrapper {
  min-height: 176px;
  width: 100%;
  box-sizing: border-box;
}

.album-card .album-image {
  width: 160px;
  height: 160px;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.album-card .release-date {
  font-size: 11px !important;
  color: #888;
  margin: 0 0 8px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.album-card h3 {
  margin: 0 0 10px;
  padding: 0 8px;
  max-width: 100%;
  box-sizing: border-box;
  min-height: auto;
  max-height: none;
  overflow: visible;
  display: block;
  line-height: 1.3;
}

.album-card .artist-name-pill {
  margin: 0 0 8px;
}

.album-card .release-date-pill {
  margin: 0 0 10px;
}

.album-card .artist-info-pills {
  margin-top: 8px;
  gap: 6px;
}

/* Artist Name Pill (Album View) */
.artist-name-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.15), rgba(0, 119, 255, 0.15));
  border: 1px solid rgba(0, 204, 204, 0.25);
  border-radius: 16px;
  padding: clamp(4px, 1vw, 6px) clamp(10px, 2vw, 14px);
  margin: 4px 0 6px;
  font-size: clamp(10px, 2.5vw, 12px);
  font-weight: 500;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Release Date Pill */
.release-date-pill {
  display: inline-flex;
  align-items: center;
  gap: clamp(4px, 1vw, 6px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: clamp(4px, 1vw, 6px) clamp(10px, 2vw, 14px);
  margin: 4px 0 6px;
  font-size: clamp(10px, 2.5vw, 12px);
  color: #fff;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  justify-content: center;
}

.release-date-pill .release-month {
  font-weight: 500;
  opacity: 0.9;
}

.release-date-pill .release-day {
  font-weight: 600;
}

.release-date-pill .release-year {
  font-weight: 500;
  opacity: 0.8;
}

/* ==================== AGE BADGES ==================== */
.age-badge {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-block;
}

.age-badge.today {
  background: linear-gradient(135deg, #ff69b4, #ff00ff, #ff1493);
  box-shadow: 0 0 12px rgba(255,20,147,0.7), 0 0 20px rgba(255,105,180,0.5);
}

.age-badge.releasing-soon {
  background: linear-gradient(135deg,
    rgba(0, 255, 255, 0.25),
    rgba(0, 204, 204, 0.35));
  color: #00ffff;
  border: 1px solid rgba(0, 255, 255, 0.6);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.4),
              0 0 24px rgba(0, 255, 255, 0.2);
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
  animation: releasingSoonPulse 2s ease-in-out infinite;
}

@keyframes releasingSoonPulse {
  0%, 100% {
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.4),
                0 0 24px rgba(0, 255, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 16px rgba(0, 255, 255, 0.6),
                0 0 32px rgba(0, 255, 255, 0.3);
  }
}

.age-badge.week {
  background: linear-gradient(135deg, #00ff7f, #00cccc, #008000);
  box-shadow: 0 0 8px rgba(0,255,127,0.5), 0 0 12px rgba(0,204,204,0.5);
}

.age-badge.month {
  background: linear-gradient(135deg, #ffbf00, #ffaa00, #ff8000);
  box-shadow: 0 0 8px rgba(255,191,0,0.5), 0 0 12px rgba(255,160,0,0.5);
}

/* ==================== VIEW MORE & SCROLL BUTTONS ==================== */
.view-more-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 40px auto 80px;
  /* Container width: 4 cards (320px) + 3 gaps (24px) + padding (48px) = 1400px */
  max-width: 1400px;
  padding: 0 24px;
  flex-wrap: wrap;
}

#view-more,
#scroll-top {
  cursor: pointer;
  border: none;
  border-radius: 16px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: none;
}

#view-more.show,
#scroll-top.show {
  display: block;
}

#view-more {
  padding: 12px 28px;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
  box-shadow: 0 4px 12px rgba(0,255,255,0.3), 0 0 12px rgba(0,119,255,0.4), 0 0 20px rgba(0,204,204,0.3);
}

#view-more:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0, 255, 255, 0.4), 0 0 24px var(--range-mid);
}

#view-more:active {
  transform: scale(0.98);
}

#view-more.today {
  background: linear-gradient(135deg, #ff69b4, #ff00ff, #ff1493);
  box-shadow: 0 4px 12px rgba(255,20,147,0.3), 0 0 12px rgba(255,105,180,0.5);
}

#view-more.week {
  background: linear-gradient(135deg, #00ff7f, #00cccc, #008000);
  box-shadow: 0 4px 12px rgba(0,255,127,0.3), 0 0 12px rgba(0,204,204,0.5);
}

#view-more.month {
  background: linear-gradient(135deg, #ffbf00, #ffaa00, #ff8000);
  box-shadow: 0 4px 12px rgba(255,191,0,0.3), 0 0 12px rgba(255,160,0,0.5);
}

#scroll-top {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  background: #333;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,255,255,0.2);
}

#scroll-top:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,255,255,0.3);
}

#scroll-top:active {
  transform: scale(0.98);
}

/* ==================== ERROR & STATUS MESSAGES ==================== */
.error-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  min-height: 200px;
}

.error-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.error-text {
  font-family: 'Roboto Mono', monospace;
  font-size: 16px;
  color: #ff6b6b;
  margin-bottom: 20px;
  max-width: 400px;
}

.retry-btn {
  background: linear-gradient(135deg, #00ffff, #00cccc);
  color: #0a0a0a;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.retry-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 0 16px rgba(0, 255, 255, 0.5);
}

.retry-btn:active {
  transform: scale(0.98);
}

.no-results {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  font-family: 'Roboto Mono', monospace;
  font-size: 16px;
  color: #888;
  min-height: 200px;
}

.no-results-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  min-height: 300px;
  animation: fadeIn 0.5s ease;
}

.no-results-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #00ffff;
  margin-bottom: 16px;
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.4);
}

.no-results-text {
  font-family: 'Roboto Mono', monospace;
  font-size: 16px;
  color: #aaa;
  margin-bottom: 12px;
  max-width: 400px;
  line-height: 1.5;
}

.no-results-subtext {
  font-family: 'Roboto Mono', monospace;
  font-size: 14px;
  color: #666;
  max-width: 400px;
  line-height: 1.5;
  font-style: italic;
}

/* ==================== MY BIRTHDAY FEATURE ==================== */
.my-birthday-container {
  display: flex;
  justify-content: center;
  padding: 8px 24px 20px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.my-birthday-container.hidden-loading {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.my-birthday-btn {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(11px, 2.5vw, 13px);
  font-weight: 600;
  padding: clamp(8px, 2vw, 10px) clamp(16px, 4vw, 24px);
  border: 2px solid rgba(0, 255, 255, 0.3);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

.my-birthday-btn:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: rgba(0, 255, 255, 0.6);
  color: #00ffff;
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0, 255, 255, 0.2);
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.5);
}

.my-birthday-btn:active {
  transform: scale(0.98);
}

/* Disabled state for my birthday button during loading */
.my-birthday-btn:disabled,
.my-birthday-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Birthday Modal */
.birthday-modal,
.preview-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.birthday-modal.active,
.preview-modal.active {
  display: flex;
  opacity: 1;
}

.birthday-modal-content,
.preview-modal-content {
  background: #141420;
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 16px;
  padding: 40px 48px;
  max-width: 90%;
  width: 460px;
  position: relative;
  transform: scale(0.95) translateY(10px);
  opacity: 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}

.birthday-modal.active .birthday-modal-content,
.preview-modal.active .preview-modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.preview-modal-content {
  width: 520px;
  max-width: 95%;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 24px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1;
}

.modal-close:hover {
  color: #00ffff;
  transform: scale(1.03);
}

.modal-close:active {
  transform: scale(0.98);
}

.modal-title,
.preview-modal-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 700;
  color: #00ffff;
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.4);
  text-align: center;
  margin-bottom: 12px;
}

.modal-subtitle {
  font-size: clamp(12px, 2.5vw, 14px);
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  margin-bottom: 32px;
  line-height: 1.6;
}

.date-picker-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 32px;
}

.date-select-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.date-select-group label {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.date-select {
  font-family: 'Roboto Mono', monospace;
  font-size: 14px;
  padding: 12px 32px 12px 16px;
  border: 1px solid rgba(0, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-width: 110px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300ffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px;
}

select.date-select {
  padding-right: 36px;
}

.date-select:focus {
  outline: none;
  border-color: #00ffff;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.25);
}

.year-input {
  width: 100px;
  text-align: center;
  background-image: none;
  padding: 12px 16px;
}

.year-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.optional-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

/* Remove spinner from number input */
.year-input::-webkit-outer-spin-button,
.year-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.year-input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.find-birthday-btn {
  display: block;
  width: 100%;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(12px, 2.5vw, 15px);
  font-weight: 600;
  padding: 14px 24px;
  border: 1px solid rgba(0, 255, 255, 0.4);
  border-radius: 10px;
  background: rgba(0, 255, 255, 0.1);
  color: #00ffff;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
  margin-top: 8px;
}

.find-birthday-btn:hover {
  background: rgba(0, 255, 255, 0.2);
  border-color: rgba(0, 255, 255, 0.7);
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 255, 255, 0.25);
}

.find-birthday-btn:active {
  transform: scale(0.98);
  box-shadow: none;
}

/* ==================== ALBUM PREVIEW BUTTON ==================== */
.album-preview-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1DB954, #1ed760);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  box-shadow: 0 4px 15px rgba(29, 185, 84, 0.4);
}

.album-preview-btn svg {
  width: 16px;
  height: 16px;
  fill: #fff;
  margin-left: 2px;
}

.album-card:hover .album-preview-btn,
.album-card:focus .album-preview-btn {
  opacity: 1;
  transform: scale(1);
}

.album-preview-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(29, 185, 84, 0.6);
}

.album-preview-btn:active {
  transform: scale(0.98);
}

/* Preview Embed Container */
.preview-embed-container {
  margin-top: 16px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  min-height: 152px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-embed-container iframe {
  width: 100%;
  border: none;
  border-radius: 12px;
}

.preview-loading {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* Share Date Button */
.share-date-container {
  display: flex;
  justify-content: center;
  padding: 0 24px 16px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.share-date-container.hidden-loading {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.share-date-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border: 2px solid rgba(0, 255, 255, 0.4);
  border-radius: 25px;
  background: rgba(0, 255, 255, 0.1);
  color: #00ffff;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

.share-date-btn svg {
  width: 16px;
  height: 16px;
}

.share-date-btn:hover {
  background: rgba(0, 255, 255, 0.2);
  border-color: rgba(0, 255, 255, 0.7);
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0, 255, 255, 0.2);
}

.share-date-btn:active {
  transform: scale(0.98);
}

/* Share Modal */
.share-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.share-modal.active {
  display: flex;
  opacity: 1;
}

.share-modal-content {
  background: #141420;
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 16px;
  padding: 40px 48px;
  max-width: 90%;
  width: 500px;
  position: relative;
  transform: scale(0.95) translateY(10px);
  opacity: 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}

.share-modal.active .share-modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.share-link-container {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.share-link-input {
  flex: 1;
  font-family: 'Roboto Mono', monospace;
  font-size: 13px;
  padding: 12px 16px;
  border: 1px solid rgba(0, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  outline: none;
}

.share-link-input:focus {
  border-color: #00ffff;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.25);
}

.copy-link-btn {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 24px;
  border: 1px solid rgba(0, 255, 255, 0.4);
  border-radius: 8px;
  background: rgba(0, 255, 255, 0.1);
  color: #00ffff;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.copy-link-btn:hover {
  background: rgba(0, 255, 255, 0.2);
  border-color: rgba(0, 255, 255, 0.7);
  transform: scale(1.03);
}

.copy-link-btn:active {
  transform: scale(0.98);
}

.copy-success {
  display: none;
  text-align: center;
  margin-top: 12px;
  color: #00ff7f;
  font-size: 14px;
  font-weight: 600;
}

/* New Releases Section */
.new-releases-section {
  max-width: 1400px;
  margin: 0 auto 32px;
  padding: 0 24px;
}

.new-releases-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  color: #00ffff;
  margin-bottom: 24px;
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.6), 0 0 24px rgba(0, 119, 255, 0.4);
  animation: subtleGlow 2s ease-in-out infinite;
}

.new-releases-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.new-release-card {
  position: relative;
  overflow: hidden;
}

.new-release-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(0, 119, 255, 0.1));
  pointer-events: none;
  z-index: 0;
  border-radius: 16px;
}

.new-release-card > * {
  position: relative;
  z-index: 1;
}

.age-badge.new-release {
  background: linear-gradient(135deg, #00ffff, #00cccc, #0077ff) !important;
  box-shadow: 0 0 16px rgba(0, 255, 255, 0.8), 0 0 24px rgba(0, 119, 255, 0.6) !important;
  animation: newReleasePulse 2s ease-in-out infinite;
}

/* Show birthday button on all screen sizes */
.mobile-only-birthday {
  display: flex;
}

/* Hide new releases section during loading */
.new-releases-section.hidden-loading {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease;
}

/* ==================== IMAGE LOADING STATE ==================== */
.artist-image,
.album-image {
  background: linear-gradient(
    90deg,
    #1a1a2e 0%,
    #3a3a6e 25%,
    #1a1a2e 50%,
    #3a3a6e 75%,
    #1a1a2e 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite linear;
  transition: opacity 0.5s ease-in-out, transform 0.3s ease;
}

.artist-image.loaded,
.album-image.loaded {
  animation: none;
  background: transparent;
  opacity: 1;
}

/* Skeleton loading cards for explore by */
.skeleton-card {
  pointer-events: none;
  opacity: 0.6;
}

.skeleton-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-line {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
}

/* ==================== TIMELINE ====================
 * Decade Timeline Related Styles
 */

/* Enhanced Decade Timeline Container */
.decade-timeline-container {
  width: 100%;
  padding: 40px 20px 60px;
  position: relative;
  min-height: 120px;
  background: linear-gradient(135deg,
    rgba(77, 208, 225, 0.03) 0%,
    rgba(128, 0, 255, 0.03) 100%);
  border-radius: 12px;
  overflow-x: auto;
  overflow-y: visible;
}

.decade-timeline-container.has-scroll {
  position: relative;
}

.decade-timeline-container::-webkit-scrollbar {
  height: 8px;
}

.decade-timeline-container::-webkit-scrollbar-track {
  background: rgba(77, 208, 225, 0.1);
  border-radius: 4px;
}

.decade-timeline-container::-webkit-scrollbar-thumb {
  background: rgba(77, 208, 225, 0.4);
  border-radius: 4px;
}

.decade-timeline-container::-webkit-scrollbar-thumb:hover {
  background: rgba(77, 208, 225, 0.6);
}

/* Markers Container */
.decade-timeline-markers {
  position: relative;
  width: 100%;
  min-width: 100%; /* Can expand via inline style */
  height: 100%;
  display: flex;
  align-items: center;
}

/* Individual Marker Wrapper (for positioning) */
.decade-marker-wrapper {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 0;
}

/* Enhanced Decade Marker with glassmorphism */
.decade-marker {
  background: rgba(77, 208, 225, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(77, 208, 225, 0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  padding: 0;
  outline: none;
  box-shadow: 0 4px 12px rgba(77, 208, 225, 0.3),
              inset 0 2px 4px rgba(255, 255, 255, 0.1);
  isolation: isolate;
  min-width: 12px;
  min-height: 12px;
  width: 20px;
  height: 20px;
}

.decade-marker::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg,
    rgba(77, 208, 225, 0.4),
    rgba(128, 0, 255, 0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
  filter: blur(8px);
  pointer-events: none;
}

.decade-marker:hover::before {
  opacity: 1;
}

.decade-marker:hover {
  background: rgba(77, 208, 225, 0.3);
  border-color: #80deea;
  transform: scale(1.3);
  box-shadow: 0 0 30px rgba(77, 208, 225, 0.8),
              0 0 60px rgba(77, 208, 225, 0.4),
              inset 0 2px 8px rgba(255, 255, 255, 0.2);
}

.decade-marker.active {
  background: linear-gradient(135deg, #4dd0e1, #80deea);
  border-color: #80deea;
  box-shadow: 0 0 40px rgba(77, 208, 225, 1),
              0 0 80px rgba(77, 208, 225, 0.6),
              inset 0 2px 8px rgba(255, 255, 255, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

/* Enhanced Decade Label */
.decade-label {
  font-size: 13px;
  font-weight: 700;
  color: #e0e0e0;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.5px;
  margin-top: 12px;
  text-align: center;
  min-width: max-content;  /* Prevent label from shrinking below content width */
  width: max-content;      /* Let width fit content exactly */
}

/* Enhanced Count Badge */
.decade-count-badge {
  font-size: 11px;
  font-weight: 600;
  color: #4dd0e1;
  background: linear-gradient(135deg,
    rgba(77, 208, 225, 0.2),
    rgba(128, 0, 255, 0.1));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(77, 208, 225, 0.5);
  border-radius: 12px;
  padding: 3px 8px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(77, 208, 225, 0.3);
  margin-bottom: 10px;
  text-align: center;
}

/* Show timeline on desktop, hide pills */
.decade-pills-mobile {
  display: none;
}

/* ==================== EXPLORE ====================
 * Explore Section Styles (Explore by Genre, Country, Decade)
 */

/* ==================== UNIFIED EXPLORE BY SECTION ==================== */
.explore-by-container {
  /* Match card grid width: 4 cards (320px) + 3 gaps (24px) = 1352px */
  max-width: 1352px;
  margin: 60px auto 0;
  padding: 0 24px;
}

.explore-by-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.explore-by-tag {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 64px;
  line-height: 1.1;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              text-shadow 0.3s ease;
  text-shadow: 0 0 12px var(--range-start),
               0 0 16px var(--range-mid),
               0 0 24px var(--range-end);
  color: #fff;
  position: relative;
  user-select: none;
}

.explore-arrow {
  font-size: 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  opacity: 0.6;
}

.explore-arrow:hover {
  opacity: 1;
  transform: scale(1.2);
  text-shadow: 0 0 12px var(--range-start), 0 0 20px var(--range-mid);
}

.explore-arrow:active {
  transform: scale(0.9);
}

.explore-text {
  display: block;
  font-family: 'Orbitron', sans-serif;
  transition: opacity 0.3s ease;
}

/* Pills row - simple layout without animations */
.explore-pills-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  padding: 0 24px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Genre pills use grid layout for alphabetical columns */
.explore-pills-row.genre-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Fixed 3 columns on desktop */
  gap: 12px; /* Increased gap for better spacing */
  max-width: 600px; /* Narrower container for better centering */
  justify-items: stretch;
}

.explore-pills-row.genre-columns .explore-pill {
  width: 100%;
  min-width: unset;
}

/* Unified pill styling */
.explore-pill {
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 20px;
  letter-spacing: 0.5px;
  border: 1.5px solid rgba(0, 255, 255, 0.3);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  user-select: none;
  min-width: 60px;
  min-height: 36px;
  text-align: center;
  opacity: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


.explore-pill:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: rgba(0, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.8);
  transform: scale(1.03);
}

.explore-pill.active {
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 119, 255, 0.2));
  border-color: #00ffff;
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.4), 0 0 24px rgba(0, 119, 255, 0.2);
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

.explore-pill:active {
  transform: scale(0.98);
}

/* Back button for letter-range navigation */
.explore-pill.back-pill {
  background: rgba(255, 100, 100, 0.1);
  border-color: rgba(255, 100, 100, 0.3);
  color: rgba(255, 150, 150, 0.8);
  font-weight: 700;
  grid-column: 1 / -1; /* Span full width in grid */
  margin-bottom: 8px;
}

.explore-pill.back-pill:hover {
  background: rgba(255, 100, 100, 0.2);
  border-color: rgba(255, 100, 100, 0.5);
  color: #fff;
  transform: scale(1.03);
}

.explore-pill.back-pill:active {
  transform: scale(0.98);
}

/* All pills now use consistent styling - no hierarchy differences */

/* Override pointer-events for interactive explore pills */
.explore-pills-row .explore-pill.genre-pill,
.explore-pills-row .explore-pill.country-pill {
  pointer-events: auto;
  cursor: pointer;
}

/* Cards container with smooth open/close animations */
.explore-cards-container {
  /* Match card grid width: 4 cards (320px) + 3 gaps (24px) = 1352px */
  max-width: 1352px;
  margin: 0 auto 30px;
  padding: 0 24px;
  opacity: 1;
  transform: scaleY(1);
  transform-origin: top;
  transition: opacity 0.4s ease, transform 0.4s ease, max-height 0.4s ease;
  overflow: hidden;
}

.explore-cards-container.opening {
  animation: slideDown 150ms ease forwards;
}

.explore-cards-container.closing {
  animation: slideUp 150ms ease forwards;
  pointer-events: none;
}

.explore-cards-wrapper {
  padding: 30px 0;
}

.explore-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.explore-close-btn {
  display: block;
  margin: 20px auto 0;
  padding: 12px 32px;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(0, 255, 255, 0.3);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.explore-close-btn:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: rgba(0, 255, 255, 0.5);
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.3);
}

.explore-close-btn:active {
  transform: scale(0.98);
}

.explore-scroll-top-container {
  display: none;
}

/* ==================== ANIMATIONS ====================
 * All @keyframes and Animation-Related Styles
 */

@keyframes rotateHint {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(20deg); }
  75% { transform: rotate(-20deg); }
}

@keyframes filterPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(255, 0, 255, 0.2); }
  50% { box-shadow: 0 4px 20px rgba(255, 0, 255, 0.4); }
}

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

@keyframes pulse {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

@keyframes fallIn {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradient-slide {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes loaderFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes birthdayPulseSubtle {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.04);
    filter: brightness(1.15);
  }
}

@keyframes subtleGlow {
  0%, 100% {
    opacity: 0.8;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4), 0 0 12px rgba(0, 119, 255, 0.3);
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 12px rgba(0, 255, 255, 0.6), 0 0 16px rgba(0, 119, 255, 0.5);
  }
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: scaleY(0.95);
    transform-origin: top;
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: scaleY(1);
  }
  to {
    opacity: 0;
    transform: scaleY(0.95);
    transform-origin: top;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes newReleasePulse {
  0%, 100% {
    box-shadow: 0 0 16px rgba(0, 255, 255, 0.8), 0 0 24px rgba(0, 119, 255, 0.6);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 255, 255, 1), 0 0 32px rgba(0, 119, 255, 0.8);
  }
}

/* ==================== RESPONSIVE ====================
 * All Media Queries and Responsive Styles
 */

/* ==================== MOBILE: Active state ==================== */
@media (hover: none) {
  .range-arrow {
    opacity: 1;
  }

  .range-arrow:active {
    transform: scale(0.9);
  }

  .explore-arrow {
    opacity: 1;
  }

  .my-birthday-btn {
    background: rgba(0, 255, 255, 0.08);
    border-color: rgba(0, 255, 255, 0.5);
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
    box-shadow: 0 2px 12px rgba(0, 255, 255, 0.15);
  }

  .my-birthday-btn:active {
    background: rgba(0, 255, 255, 0.15);
    border-color: rgba(0, 255, 255, 0.7);
    transform: scale(0.98);
  }

  .album-preview-btn {
    opacity: 0.9;
    transform: scale(1);
  }
}

/* ==================== ACTIVE FILTER INDICATOR - Mobile ==================== */
@media (max-width: 768px) {
  .active-filter-container {
    padding: 0 16px 12px;
  }

  .active-filter-pill {
    font-size: 12px;
    padding: 8px 14px;
    gap: 8px;
  }

  .filter-clear-btn {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }
}

/* ==================== DECADE PILLS - Mobile ==================== */
@media (max-width: 768px) {
  .decade-timeline-container {
    display: none !important;
  }

  .decade-pills-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 20px 10px;
  }
}

/* ==================== EXPLORE BY - Mobile ==================== */
@media (max-width: 768px) {
  .explore-by-container {
    padding: 0 16px;
    margin-top: 40px;
  }

  .explore-by-tag {
    font-size: 48px;
    gap: 16px;
  }

  .explore-arrow {
    font-size: 28px;
    padding: 0 8px;
  }

  .explore-pills-row {
    gap: 6px;
    padding: 0 16px 16px;
    min-height: 200px;
    flex-wrap: wrap;
  }

  .explore-pills-row.genre-columns {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
    gap: 8px;
    padding: 0 16px 16px;
  }

  .explore-pills-row.genre-columns .explore-pill {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .explore-pill {
    font-size: 11px;
    padding: 10px 12px;
    min-width: auto;
    min-height: 44px;
    flex-shrink: 1;
  }

  .explore-cards-wrapper {
    padding: 20px 0;
  }

  .explore-cards {
    gap: 12px !important;
  }

  .explore-cards .artist-card {
    width: calc(50% - 6px) !important;
    min-width: 150px !important;
    max-width: calc(50% - 6px) !important;
    flex: 0 0 calc(50% - 6px) !important;
  }

  .explore-close-btn {
    padding: 10px 24px;
    font-size: 13px;
  }
}

/* ==================== RESPONSIVE: MEDIUM SCREENS (769px - 1024px) ==================== */
@media (min-width: 769px) and (max-width: 1024px) {
  .birthday-today-tag {
    font-size: 52px;
  }

  .results-container {
    padding: 0 20px;
    gap: 20px;
  }

  /* Match padding for alignment */
  .controls-row,
  .view-more-container,
  .explore-by-container,
  .explore-cards-container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ==================== RESPONSIVE: MEDIUM SCREENS (≤1024px) ==================== */
@media (max-width: 1024px) {
  .controls-row {
    gap: 16px;
  }

  .dropdown-label {
    font-size: 12px;
    padding: 8px 16px;
    min-height: 36px;
    height: 40px;
    min-width: 260px;
    width: 260px;
    white-space: nowrap;
  }

  .max-btn,
  .sort-btn {
    font-size: 11px;
    padding: 8px 12px;
    min-height: 34px;
  }
}

/* ==================== RESPONSIVE: TABLETS (≤768px) ==================== */
@media (max-width: 768px) {
  /* View Toggle */
  .view-toggle-container {
    padding: 0 16px;
    margin-bottom: 12px;
    gap: 10px;
  }

  .view-toggle-btn {
    font-size: 12px;
    padding: 8px 18px;
  }

  /* Header */
  .main-header {
    font-size: 44px;
  }

  /* Birthday Range Selector */
  .birthday-today {
    margin-bottom: 6px;
  }

  .birthday-today-tag {
    font-size: 48px;
    line-height: 1.1;
    padding: 10px 8px;
    gap: 12px;
  }

  .range-arrow {
    font-size: 24px;
    padding: 0 8px;
  }

  .birthday-today-tag .tap-indicator {
    font-size: 12px;
    gap: 5px;
  }

  .birthday-today-tag .tap-icon {
    font-size: 14px;
  }

  /* Fetched Date */
  .fetched-date {
    font-size: 16px;
    padding: 6px 16px;
    margin-bottom: 6px;
  }

  /* Instruction Text */
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .instruction-text {
    font-size: 14px;
    padding: 4px 16px;
    margin-bottom: 8px;
  }

  /* Controls - Mobile layout adjustments */
  .controls-row {
    flex-direction: column;
    gap: 8px;
    padding: 0 10px 12px;
  }

  .controls {
    width: 100%;
    padding: 0;
  }

  .mobile-dropdown {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }

  .dropdown-label {
    width: 100%;
    padding: 13px 12px;
    min-height: 44px;
    height: 44px;
    font-size: 14px;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-dropdown .dropdown-content {
    left: 0;
    transform: none;
    width: 100%;
  }

  .mobile-dropdown .max-btn,
  .mobile-dropdown .sort-btn {
    width: 100%;
    min-height: 42px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Results Container */
  .results-container {
    padding: 0 10px;
    gap: 10px;
    justify-content: center;
  }

  /* Match padding for alignment */
  .view-more-container,
  .explore-by-container,
  .explore-cards-container {
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Artist Cards */
  .artist-card {
    width: calc(50% - 5px);
    min-width: 165px;
    max-width: calc(50% - 5px);
    flex: 0 0 calc(50% - 5px);
    padding: 16px;
    box-sizing: border-box;
    cursor: pointer;
  }

  .artist-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  .artist-card h3 {
    font-size: clamp(13px, 3.5vw, 15px);
    line-height: 1.2;
    margin: 0 0 6px;
    min-height: 40px;
    max-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0 4px;
  }

  .artist-card p {
    font-size: clamp(11px, 3vw, 13px);
    line-height: 1.4;
    margin: 3px 0;
  }

  /* Birth Date Pill on Mobile */
  .artist-card .born-date-pill {
    padding: 4px 10px;
    font-size: 10px;
    gap: 4px;
    margin: 0 0 8px;
  }

  /* Artist Name Pill on Mobile */
  .artist-name-pill {
    padding: 4px 10px;
    font-size: 10px;
    margin: 3px 0 4px;
  }

  /* Artist Info Pills */
  .artist-info-pills {
    flex-wrap: wrap;
    gap: 3px;
    padding: 0 4px;
    min-height: 40px;
    max-height: 60px;
    overflow: hidden;
    align-items: center;
    align-content: center;
    margin-top: 6px;
    width: 100%;
  }

  .info-pill {
    font-size: clamp(7.5px, 2vw, 8.5px);
    padding: 3px 6px;
    line-height: 1;
    border-radius: 10px;
  }

  /* Artist Image */
  .artist-image-link {
    pointer-events: auto;
    cursor: pointer;
  }

  .artist-image {
    width: 140px;
    height: 140px;
  }

  .artist-image-wrapper {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 162px;
    margin-bottom: 10px;
  }

  /* Age Badges */
  .age-badge.today,
  .age-badge.week,
  .age-badge.month {
    position: static;
    transform: none;
    bottom: auto;
    left: auto;
    font-size: 11px;
    margin: 0;
    white-space: nowrap;
    text-align: center;
    padding: 6px 10px;
  }

  /* Album Cards on Mobile */
  .album-card {
    padding: 14px;
  }

  .album-card .album-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    aspect-ratio: 1 / 1;
  }

  .album-card .album-image-wrapper {
    min-height: 142px;
    margin-bottom: 8px;
  }

  .album-card h3 {
    margin: 0 0 8px;
    min-height: auto;
    max-height: none;
    font-size: clamp(13px, 3.5vw, 15px);
    line-height: 1.25;
    overflow: visible;
  }

  .album-card .release-date {
    font-size: 9px !important;
  }

  .album-card .artist-name-pill {
    margin: 0 0 6px;
    font-size: 10px;
  }

  /* Release Date Pill on Mobile */
  .release-date-pill {
    padding: 4px 10px;
    font-size: 10px;
    gap: 4px;
    margin: 0 0 8px;
  }

  .album-card .artist-info-pills {
    margin-top: 6px;
    gap: 4px;
    min-height: 32px;
  }

  .share-date-btn {
    font-size: 11px;
    padding: 8px 16px;
  }

  .share-date-btn svg {
    width: 14px;
    height: 14px;
  }

  .share-modal-content {
    padding: 28px 24px;
    margin: 16px;
    width: calc(100% - 32px);
  }

  .share-link-container {
    flex-direction: column;
    gap: 8px;
  }

  .copy-link-btn {
    width: 100%;
  }

  .new-releases-title {
    font-size: 24px;
  }

  .new-releases-container {
    gap: 10px;
  }
}

/* ==================== RESPONSIVE: SMALL TABLETS (481px - 640px) ==================== */
@media (max-width: 640px) and (min-width: 481px) {
  .results-container {
    padding: 0 10px;
    gap: 10px;
  }
}

/* ==================== RESPONSIVE: PHONES (≤480px) ==================== */
@media (max-width: 480px) {
  /* View Toggle */
  .view-toggle-container {
    padding: 10px 12px 4px;
    gap: 8px;
  }

  .view-toggle-btn {
    font-size: 11px;
    padding: 8px 14px;
    letter-spacing: 0.5px;
  }

  /* Header */
  .main-header {
    font-size: 36px;
  }

  .header-text {
    font-size: 14px;
  }

  /* Birthday Range Selector */
  .birthday-today-tag {
    font-size: 36px;
    line-height: 1.1;
    padding: 8px 12px;
    gap: 10px;
  }

  .range-arrow {
    font-size: 20px;
    padding: 0 6px;
  }

  .birthday-today-tag .tap-indicator {
    font-size: 11px;
    gap: 4px;
  }

  .birthday-today-tag .tap-icon {
    font-size: 12px;
  }

  /* Fetched Date */
  .fetched-date {
    font-size: 14px;
    padding: 8px 12px;
  }

  /* Instruction Text */
  .instruction-text {
    font-size: 13px;
    padding: 6px 12px;
    margin-bottom: 12px;
  }

  /* Results Container */
  .results-container {
    padding: 0 10px;
    gap: 10px;
  }

  /* Controls */
  .controls,
  .sort-controls {
    flex-direction: column;
    gap: 6px;
    overflow: visible;
  }

  .max-btn,
  .sort-btn {
    padding: 5px 12px;
    font-size: 11px;
    margin: 3px 2px;
    min-height: 36px;
  }

  /* View More Button */
  #view-more {
    padding: 8px 16px;
    font-size: 13px;
  }

  /* Month Orbs */
  .month-orbs {
    gap: 6px;
    padding: 12px;
  }

  .day-orb {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  /* Day Loader */
  .day-loader-bar {
    height: 14px;
  }

  /* Mobile Dropdowns */
  .dropdown-label {
    font-size: 12px;
    padding: 10px 12px;
    letter-spacing: 0.3px;
    height: 44px;
    white-space: nowrap;
  }

  .mobile-dropdown .max-btn,
  .mobile-dropdown .sort-btn {
    font-size: 11px;
    padding: 8px 0;
    min-height: 38px;
  }

  /* Pills on small phones */
  .artist-card .born-date-pill,
  .artist-name-pill,
  .release-date-pill {
    padding: 3px 8px;
    font-size: 9px;
    gap: 3px;
  }

  .info-pill {
    font-size: 7px;
    padding: 2px 5px;
  }

  .explore-by-container {
    padding: 0 12px;
    margin-top: 30px;
  }

  .explore-by-tag {
    font-size: 36px;
    gap: 12px;
  }

  .explore-arrow {
    font-size: 24px;
    padding: 0 6px;
  }

  .explore-pills-row {
    gap: 5px;
    padding: 0 12px 12px;
    min-height: 80px;
    flex-wrap: wrap;
  }

  .explore-pills-row.genre-columns {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
    gap: 5px;
  }

  .explore-pill {
    font-size: 11px;
    padding: 8px 10px;
    min-width: auto;
    min-height: 40px;
    flex-shrink: 1;
  }

  .explore-cards .artist-card {
    width: calc(50% - 3px);
    max-width: calc(50% - 3px);
    flex: 0 0 calc(50% - 3px);
  }

  .new-releases-title {
    font-size: 20px;
  }
}

/* ==================== RESPONSIVE: SMALL PHONES (≤400px) ==================== */
@media (max-width: 400px) {
  .small-phone-only {
    display: flex;
  }
}

/* ==================== RESPONSIVE: EXTRA SMALL PHONES (≤360px) ==================== */
@media (max-width: 360px) {
  /* Header */
  .main-header {
    font-size: 28px;
  }

  /* Birthday Range Selector */
  .birthday-today-tag {
    font-size: 28px;
    padding: 6px 8px;
    gap: 8px;
  }

  .range-arrow {
    font-size: 18px;
    padding: 0 4px;
  }

  .birthday-today-tag .tap-indicator {
    font-size: 10px;
    gap: 3px;
  }

  .birthday-today-tag .tap-icon {
    font-size: 11px;
  }

  /* Fetched Date */
  .fetched-date {
    font-size: 14px;
    padding: 8px 12px;
    letter-spacing: 0.2px;
  }

  /* Results Container */
  .results-container {
    padding: 0 10px;
    gap: 10px;
  }

  /* Age Badges */
  .age-badge {
    font-size: 8px;
  }

  .explore-cards .artist-card {
    width: calc(50% - 3px);
    max-width: calc(50% - 3px);
    flex: 0 0 calc(50% - 3px);
  }
}

/* ==================== TOUCH DEVICE ADJUSTMENTS ==================== */
@media (hover: none) {
  .artist-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  .max-btn:hover,
  .sort-btn:hover,
  .birthday-today-tag:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ==================== MOBILE ADJUSTMENTS ==================== */
@media (max-width: 600px) {
  .my-birthday-btn {
    padding: 8px 14px;
    font-size: 11px;
  }

  .birthday-modal-content,
  .preview-modal-content {
    padding: 28px 24px;
    margin: 16px;
    width: calc(100% - 32px);
  }

  .modal-subtitle {
    margin-bottom: 24px;
  }

  .date-picker-container {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
  }

  .date-select {
    width: 100%;
  }

  .find-birthday-btn {
    margin-top: 4px;
  }

  .album-preview-btn {
    opacity: 0.9;
    transform: scale(1);
    width: 32px;
    height: 32px;
  }

  .album-preview-btn svg {
    width: 14px;
    height: 14px;
  }
}

/* ==================== EXPLORE BY DECADES TIMELINE ==================== */
/* Desktop-only number line appearance for decade pills */
@media (min-width: 769px) {
  .explore-pills-row {
    position: relative;
    flex-wrap: nowrap;          /* Prevent wrapping to multiple lines */
    gap: 8px;                    /* Tighter spacing for compact look */
    max-width: 100%;             /* Allow full width usage */
    overflow-x: auto;            /* Horizontal scroll fallback for narrow desktops */
    overflow-y: hidden;
    padding: 20px 24px 28px;     /* Extra bottom padding for tick marks */
    justify-content: flex-start; /* Left-align for natural scroll behavior */
  }

  /* Styled scrollbar for horizontal overflow */
  .explore-pills-row::-webkit-scrollbar {
    height: 4px;
  }

  .explore-pills-row::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
  }

  .explore-pills-row::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.3);
    border-radius: 2px;
  }

  .explore-pills-row::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.5);
  }

  /* Horizontal line connecting all decade pills */
  .explore-pills-row::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 2px;
    background: rgba(0, 255, 255, 0.3);
    z-index: 0;
    pointer-events: none;
  }

  /* Ensure pills appear above the line and don't shrink */
  .explore-pill {
    position: relative;
    z-index: 1;
    flex-shrink: 0;              /* Prevent pills from compressing */
    min-width: 70px;             /* Slightly wider for decade text readability */
  }

  /* Vertical tick marks below decade pills (number line style) */
  .explore-pill::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    width: 2px;
    height: 8px;
    background: rgba(0, 255, 255, 0.4);
  }

  /* Increase tick brightness for active/hovered pills */
  .explore-pill.active::after,
  .explore-pill:hover::after {
    background: rgba(0, 255, 255, 0.9);
    box-shadow: 0 0 4px rgba(0, 255, 255, 0.6);
    height: 10px;
  }

  /* Don't show line/ticks for genre pills (they use grid layout) */
  .explore-pills-row.genre-columns::before {
    display: none;
  }

  .explore-pills-row.genre-columns .explore-pill::after {
    display: none;
  }

  /* Genre and country pills keep their grid layout and wrapping behavior */
  .explore-pills-row.genre-columns {
    flex-wrap: wrap;             /* Allow wrapping for genre pills */
    overflow-x: visible;         /* No horizontal scroll for genres */
    overflow-y: visible;         /* No vertical scroll */
    justify-content: center;     /* Center the grid */
  }
}

/* Extra-wide desktops: Center pills if they all fit comfortably */
@media (min-width: 1400px) {
  .explore-pills-row {
    justify-content: center;     /* Center when plenty of horizontal space */
  }
}
