/* ---------- Reset & Variables ---------- */
:root {
  --purple:   #7c3aed;
  --violet:   #a855f7;
  --glow:     #c084fc;
  --stardust: #f5f3ff;
  --white:    #f5f3ff;
  --muted:    #8b7aa8;
  --border:   rgba(124, 58, 237, 0.25);
  --glass:    rgba(124, 58, 237, 0.08);
  --glass2:   rgba(255, 255, 255, 0.04);
  --font:     'Inter', -apple-system, sans-serif;
  --radius:   14px;
  --tr:       0.22s cubic-bezier(.4, 0, .2, 1);
}

[v-cloak] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; background: #07061a; }
body {
  background: #050410;
  color: var(--white);
  font-family: var(--font);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- Background ---------- */
.aurora-wrap { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: hidden; }
.aurora-base {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 120% 65% at 18% 0%, #0e2a4a 0%, transparent 62%),
              radial-gradient(ellipse 95% 55% at 85% 8%, #2a0f3d 0%, transparent 60%),
              radial-gradient(ellipse 80% 60% at 50% 100%, #1a0e30 0%, transparent 65%),
              linear-gradient(180deg, #060816 0%, #050410 55%, #03020a 100%);
}
.aurora-1 { position: absolute; top: -10%; left: -22%; width: 85%; height: 75%; background: radial-gradient(ellipse 100% 100% at 50% 0%, rgba(20,210,200,0.16) 0%, rgba(10,150,210,0.08) 45%, transparent 75%); filter: blur(60px); animation: aShift1 14s ease-in-out infinite; }
.aurora-2 { position: absolute; top: -15%; right: -18%; width: 75%; height: 85%; background: radial-gradient(ellipse 100% 100% at 50% 0%, rgba(230,60,170,0.16) 0%, rgba(140,20,180,0.09) 50%, transparent 75%); filter: blur(70px); animation: aShift2 18s ease-in-out infinite; }
.aurora-3 { position: absolute; top: 8%; left: 22%; width: 60%; height: 60%; background: radial-gradient(ellipse 100% 100% at 50% 0%, rgba(120,90,255,0.12) 0%, transparent 80%); filter: blur(80px); animation: aShift3 22s ease-in-out infinite; }
@keyframes aShift1 { 0%,100% { transform: scaleX(1) skewY(0deg) } 40% { transform: scaleX(1.18) skewY(-2deg) } 70% { transform: scaleX(0.9) skewY(1.5deg) } }
@keyframes aShift2 { 0%,100% { transform: scaleX(1) skewY(0deg) } 30% { transform: scaleX(0.85) skewY(2deg) } 65% { transform: scaleX(1.12) skewY(-1.5deg) } }
@keyframes aShift3 { 0%,100% { transform: scale(1) } 50% { transform: scale(1.25) } }

#star-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; opacity: 0.6; }
.page-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(168,85,247,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(168,85,247,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 0%, transparent 75%);
}

/* ---------- Nav ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; padding: 0 2.5rem; height: 60px;
  background: rgba(18, 16, 42, 0.7);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(124,58,237,0.2);
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.04);
  transition: height 0.35s cubic-bezier(.4,0,.2,1), background 0.35s ease, box-shadow 0.35s ease;
}
nav.scrolled { border-bottom-color: rgba(124,58,237,0.28); box-shadow: 0 1px 0 0 rgba(124,58,237,0.1), 0 4px 24px rgba(0,0,0,0.4); }
.nav-logo {
  font-size: 1.15rem; font-weight: 800; letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--violet), var(--glow));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  display: flex; align-items: center; gap: 0.5rem; text-decoration: none; justify-self: start;
}
.nav-links { display: flex; align-items: center; gap: 0.35rem; list-style: none; justify-self: center; }
.nav-links a {
  color: rgba(255,255,255,0.72); text-decoration: none; font-size: 0.875rem;
  font-weight: 500; padding: 0.38rem 1rem; border-radius: 6px;
  transition: color var(--tr), background var(--tr); letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--white); background: rgba(124,58,237,0.15); }
.nav-links a.active-link { color: var(--white); background: rgba(124,58,237,0.22); }
.nav-right { display: flex; align-items: center; gap: 0.6rem; justify-self: end; }
.lang-wrap { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 0.4rem;
  background: var(--glass); border: 1px solid var(--border);
  color: rgba(255,255,255,0.78); font-family: var(--font); font-size: 0.78rem; font-weight: 600;
  padding: 0.38rem 0.9rem; border-radius: 28px; cursor: pointer; transition: all var(--tr);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); letter-spacing: 0.02em;
}
.lang-btn svg { color: var(--glow); }
.lang-btn:hover { background: rgba(124,58,237,0.16); border-color: var(--violet); color: var(--white); box-shadow: 0 0 16px rgba(124,58,237,0.3), inset 0 1px 0 rgba(255,255,255,0.06); transform: translateY(-1px); }
.lang-dropdown { position: absolute; top: calc(100% + 8px); right: 0; background: #0d0b1e; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; min-width: 148px; z-index: 200; box-shadow: 0 16px 40px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.04); }
.lang-dropdown button { display: block; width: 100%; background: none; border: none; color: var(--muted); font-family: var(--font); font-size: 0.82rem; text-align: left; padding: 0.55rem 1rem; cursor: pointer; transition: all var(--tr); }
.lang-dropdown button:hover { background: var(--glass); color: var(--white); }
.lang-dropdown button.active { color: var(--violet); font-weight: 700; background: rgba(124,58,237,0.16); }
.nav-menu-btn { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 38px; height: 38px; flex-shrink: 0; background: var(--glass2); border: 1px solid var(--border); border-radius: 9px; cursor: pointer; transition: border-color var(--tr), background var(--tr); }
.nav-menu-btn:hover { border-color: var(--violet); background: rgba(124,58,237,0.16); }
.nav-menu-btn span { display: block; width: 17px; height: 2px; border-radius: 2px; background: var(--stardust); transition: transform 0.25s cubic-bezier(.4,0,.2,1), opacity 0.2s ease; }
.nav-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-menu-btn.active span:nth-child(2) { opacity: 0; }
.nav-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media(max-width:900px) {
  nav { padding: 0 1.5rem; grid-template-columns: 1fr auto; }
  .nav-menu-btn { display: flex; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0.1rem; background: rgba(12,10,28,0.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(124,58,237,0.28); box-shadow: 0 16px 40px rgba(0,0,0,0.5); padding: 0.6rem 1.5rem calc(0.8rem + env(safe-area-inset-bottom)); }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 0.8rem 0.5rem; font-size: 1rem; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-links li:last-child a { border-bottom: none; }
}

/* ---------- Shell ---------- */
#object-app { position: relative; z-index: 2; min-height: 100vh; display: flex; flex-direction: column; }

.content {
  max-width: 1240px; width: 100%;
  margin: 0 auto;
  padding: 90px 24px 72px;
  flex: 1;
}

/* ---------- Section headers ---------- */
.section { margin-bottom: 32px; }
.section-eyebrow-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.section-label {
  font-size: 14px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--violet); flex-shrink: 0;
  opacity: 0.9;
}
.section-rule { flex: 1; height: 1px; background: var(--border); min-width: 24px; }
.section-link { font-size: 12px; color: var(--violet); cursor: pointer; flex-shrink: 0; transition: opacity var(--tr); text-decoration: none; }
.section-link:hover { opacity: 0.75; }
.neo-date-range { font-size: 15px; font-weight: 600; color: var(--stardust); flex-shrink: 0; }

/* ---------- Tab section gradient titles (match main page h2 treatment) ---------- */
.tab-section-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0;
  background: linear-gradient(135deg, #a855f7 0%, #e879f9 55%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  flex-shrink: 0;
}

/* ---------- Chip row (top-level tabs) ---------- */
.chip-row {
  display: flex; gap: 26px; overflow-x: auto;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  position: relative;
  flex-shrink: 0; padding: 14px 2px 13px;
  border: none; border-radius: 0;
  background: none;
  font-size: 14px; font-weight: 500;
  color: var(--muted); cursor: pointer;
  transition: color var(--tr);
  white-space: nowrap; user-select: none;
  letter-spacing: 0.01em;
}
.chip::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; border-radius: 2px;
  background: transparent;
  transition: background var(--tr), box-shadow var(--tr);
}
.chip:hover { color: var(--stardust); }
.chip.active {
  color: var(--stardust);
  font-weight: 700;
}
.chip.active::after {
  background: linear-gradient(90deg, var(--purple), var(--violet));
  box-shadow: 0 0 14px rgba(168,85,247,0.55);
}

/* ---------- Search bar ---------- */
.search-bar { display: flex; gap: 10px; margin-bottom: 22px; }
.search-bar input {
  flex: 1;
  background: rgba(124,58,237,0.07);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--stardust);
  font-family: var(--font); font-size: 15px;
  outline: none;
  transition: border-color var(--tr), box-shadow var(--tr);
}
.search-bar input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}
.search-bar input::placeholder { color: var(--muted); }
.search-btn, .btn-secondary {
  background: linear-gradient(135deg, var(--purple) 0%, var(--violet) 100%);
  border: none; border-radius: var(--radius); color: #fff;
  font-family: var(--font); font-size: 14px; font-weight: 600;
  padding: 14px 24px; cursor: pointer;
  transition: transform var(--tr), box-shadow var(--tr);
  white-space: nowrap; letter-spacing: 0.01em;
}
.btn-secondary {
  background: var(--glass); border: 1px solid var(--border); color: var(--stardust);
}
.search-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(124,58,237,0.4); }
.btn-secondary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(124,58,237,0.25); border-color: var(--violet); }
.btn-secondary:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- Image grid ---------- */
.object-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}
.object-card {
  background: rgba(124,58,237,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  transition: border-color var(--tr), transform var(--tr), box-shadow var(--tr);
}
.object-card:hover {
  border-color: rgba(168,85,247,0.55);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(124,58,237,0.2);
}
.object-thumb {
  width: 100%; aspect-ratio: 4/3;
  background: rgba(255,255,255,0.03);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.object-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.object-card:hover .object-thumb img { transform: scale(1.04); }
.object-thumb-fallback { font-size: 36px; opacity: 0.4; }
.object-card-body { padding: 13px 15px 15px; }
.object-card-title {
  font-size: 13px; font-weight: 600; color: var(--stardust); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.object-card-meta { font-size: 11.5px; color: var(--muted); margin-top: 5px; }

.load-more-row { display: flex; justify-content: center; margin-top: 24px; }

/* ---------- States ---------- */
.loading-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  padding: 80px 20px;
  text-align: center;
  min-height: 220px;
}
.loading-row .spinner { width: 28px; height: 28px; border-width: 2.5px; }
.error-row {
  color: #fca5a5; font-size: 14px;
  padding: 18px 20px;
  background: rgba(239,68,68,0.07);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius);
  line-height: 1.5;
}
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(168,85,247,0.2); border-top-color: var(--violet);
  animation: spin 0.75s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state { text-align: center; padding: 64px 20px; color: var(--muted); }
.empty-state svg { margin-bottom: 16px; opacity: 0.35; }
.empty-state p { font-size: 14px; }
.empty-sub { font-size: 12.5px; margin-top: 7px; opacity: 0.65; }

/* ---------- APOD ---------- */
.apod-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.apod-controls input[type="date"],
.apod-year-scope,
.apod-random-btn {
  height: 44px;
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font); font-size: 14px;
  border-radius: var(--radius);
  outline: none;
}
.apod-controls input[type="date"] {
  background: rgba(124,58,237,0.07); border: 1px solid var(--border);
  padding: 0 14px; color: var(--stardust);
  transition: border-color var(--tr); color-scheme: dark;
}
.apod-controls input[type="date"]:focus { border-color: var(--violet); }
.apod-year-scope {
  background: rgba(124,58,237,0.07); border: 1px solid var(--border);
  padding: 0 32px 0 14px; color: var(--stardust);
  cursor: pointer; transition: border-color var(--tr);
  color-scheme: dark; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a855f7' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  white-space: nowrap;
}
.apod-year-scope:focus { border-color: var(--violet); }
.apod-year-scope option { background: #0d0b1e; color: var(--stardust); }
.apod-random-btn {
  white-space: nowrap; padding: 0 20px;
  display: flex; align-items: center; justify-content: center;
}
.apod-card {
  background: rgba(124,58,237,0.06);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 40px rgba(0,0,0,0.3);
}
/* Shimmer wrapper for APOD image */
.apod-media-wrap {
  position: relative;
  min-height: 240px;
  background: #050310;
  overflow: hidden;
}
.apod-media-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, #07050f 35%, #1a1235 50%, #07050f 65%);
  background-size: 200% 100%;
  animation: apodShimmer 1.4s ease-in-out infinite;
  z-index: 1;
}
@keyframes apodShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.apod-media {
  width: 100%; max-height: 560px; object-fit: contain; background: #000; display: block;
  opacity: 0; transition: opacity 0.4s ease;
  position: relative; z-index: 2;
}
.apod-media.loaded { opacity: 1; }
.apod-video-wrap { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; }
.apod-video-wrap iframe { width: 100%; height: 100%; border: 0; }
.apod-body { padding: 24px 28px 28px; }
/* Title + date on the same line */
.apod-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.apod-title { font-size: 20px; font-weight: 700; color: var(--stardust); line-height: 1.3; flex: 1; min-width: 0; }
.apod-date { font-size: 12px; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.apod-explanation { font-size: 14.5px; line-height: 1.72; color: #d8d0ec; margin-bottom: 20px; }
/* Full resolution CTA row */
.apod-hd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 0 4px;
  border-top: 1px solid rgba(168,85,247,0.15);
}
.apod-hd-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, rgba(124,58,237,0.18) 0%, rgba(168,85,247,0.22) 100%);
  border: 1px solid rgba(168,85,247,0.4);
  border-radius: 10px;
  color: #d8b4fe;
  font-size: 14px; font-weight: 600;
  padding: 12px 20px;
  text-decoration: none;
  transition: background var(--tr), border-color var(--tr), transform var(--tr), box-shadow var(--tr);
  flex-shrink: 0;
}
.apod-hd-btn:hover {
  background: linear-gradient(135deg, rgba(124,58,237,0.3) 0%, rgba(168,85,247,0.36) 100%);
  border-color: var(--violet);
  box-shadow: 0 4px 20px rgba(168,85,247,0.3);
  transform: translateY(-1px);
}
.apod-hd-url {
  font-size: 11.5px; color: var(--muted);
  text-align: right;
  word-break: break-all;
  line-height: 1.4;
  text-decoration: none;
  transition: color var(--tr);
  flex: 1; min-width: 0;
}
.apod-hd-url:hover { color: var(--violet); }

/* ---------- Search meta row (filter chips + result count) ---------- */
.search-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.search-filters {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.filter-chip {
  background: rgba(124,58,237,0.07);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font); font-size: 12px; font-weight: 600;
  padding: 5px 14px; cursor: pointer;
  transition: border-color var(--tr), background var(--tr), color var(--tr);
  white-space: nowrap;
}
.filter-chip:hover { border-color: rgba(168,85,247,0.4); color: var(--stardust); }
.filter-chip.active {
  background: rgba(168,85,247,0.15);
  border-color: rgba(168,85,247,0.5);
  color: #d8b4fe;
}
.filter-checkbox {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(124,58,237,0.07);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font); font-size: 12px; font-weight: 600;
  padding: 5px 14px 5px 9px; cursor: pointer;
  transition: border-color var(--tr), background var(--tr), color var(--tr);
  white-space: nowrap; user-select: none;
}
.filter-checkbox input[type="checkbox"] {
  position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none;
}
.filter-checkbox-box {
  width: 14px; height: 14px; flex-shrink: 0;
  border-radius: 4px;
  border: 1.5px solid rgba(139,122,168,0.45);
  background: rgba(255,255,255,0.03);
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--tr), background var(--tr);
}
.filter-checkbox-box::after {
  content: '';
  width: 6px; height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(0.5px, -1px);
  opacity: 0;
  transition: opacity var(--tr);
}
.filter-checkbox:hover { border-color: rgba(168,85,247,0.4); color: var(--stardust); }
.filter-checkbox:hover .filter-checkbox-box { border-color: rgba(168,85,247,0.6); }
.filter-checkbox.active {
  background: rgba(168,85,247,0.15);
  border-color: rgba(168,85,247,0.5);
  color: #d8b4fe;
}
.filter-checkbox.active .filter-checkbox-box {
  background: var(--violet);
  border-color: var(--violet);
}
.filter-checkbox.active .filter-checkbox-box::after { opacity: 1; }
.filter-hint {
  font-size: 11px; color: var(--muted); opacity: 0.7;
  font-style: italic;
}

/* ---------- Solar System Object Catalog ---------- */
.object-list { display: flex; flex-direction: column; gap: 10px; }
.neo-item {
  background: rgba(124,58,237,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  cursor: pointer;
  transition: border-color var(--tr), box-shadow var(--tr);
}
.neo-item:hover {
  border-color: rgba(168,85,247,0.45);
  box-shadow: 0 4px 20px rgba(124,58,237,0.12);
}
.neo-row { display: flex; align-items: center; gap: 14px; }
.neo-icon { font-size: 22px; flex-shrink: 0; filter: grayscale(0.2); }
.neo-info { flex: 1; min-width: 0; }
.neo-name { font-size: 15px; font-weight: 600; color: var(--stardust); }
.neo-parent { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.neo-meta { font-size: 12px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.closest-tag { font-size: 10px; font-weight: 700; color: #facc15; background: rgba(250,204,21,0.12); padding: 2px 8px; border-radius: 8px; letter-spacing: 0.04em; }
.neo-chevron { color: var(--muted); transition: transform var(--tr); flex-shrink: 0; font-size: 18px; }
.neo-chevron.open { transform: rotate(180deg); }
.neo-detail { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.neo-note { font-size: 13px; line-height: 1.65; color: #d8d0ec; }
.neo-approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; color: var(--stardust); }
.neo-approach-grid .lbl { display: block; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
.neo-discovered { font-size: 11.5px; color: var(--muted); }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(3,2,10,0.82); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-card {
  position: relative; width: 100%; max-width: 700px; max-height: 90vh; overflow-y: auto;
  background: #0a0818; border: 1px solid rgba(124,58,237,0.3); border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(168,85,247,0.05);
}
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  width: 34px; height: 34px; border-radius: 9px;
  background: rgba(0,0,0,0.6); border: 1px solid var(--border); color: var(--stardust);
  cursor: pointer; font-size: 14px; transition: border-color var(--tr), background var(--tr);
}
.modal-close:hover { border-color: var(--violet); background: rgba(124,58,237,0.2); }
.modal-image { width: 100%; max-height: 400px; object-fit: cover; display: block; }
.modal-body { padding: 22px 26px 30px; }
.modal-body h2 { font-size: 19px; font-weight: 700; color: var(--stardust); margin-bottom: 8px; line-height: 1.35; }
.modal-meta-row { font-size: 12px; color: var(--muted); margin-bottom: 16px; display: flex; gap: 4px; flex-wrap: wrap; }
.modal-description { font-size: 14px; line-height: 1.7; color: #d8d0ec; white-space: pre-line; }
.keyword-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.keyword-chip { font-size: 11px; padding: 5px 11px; border-radius: 10px; background: var(--glass); border: 1px solid var(--border); color: var(--muted); }

/* ---------- Audio item modal ---------- */
.audio-card {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
}
.audio-card-icon {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: 14px; overflow: hidden;
  background: rgba(168,85,247,0.12);
  border: 1px solid rgba(168,85,247,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.audio-card-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.audio-card-info { flex: 1; min-width: 0; }
.audio-card-info h2 { margin-bottom: 6px; }
.audio-card-info .modal-meta-row { margin-bottom: 0; }
.audio-player {
  width: 100%;
  margin: 2px 0 18px;
  border-radius: 10px;
  background: rgba(124,58,237,0.07);
}
.audio-player-missing {
  font-size: 13px; color: var(--muted);
  padding: 12px 14px; margin-bottom: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px dashed var(--border); border-radius: 10px;
}
.read-full-btn {
  display: inline-block; margin-top: 10px;
  background: none; border: none; padding: 0;
  font-family: var(--font); font-size: 13px; font-weight: 600;
  color: #d8b4fe; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
  transition: color var(--tr);
}
.read-full-btn:hover { color: var(--violet); }

/* ---------- Transitions ---------- */
.fade-enter-active, .fade-leave-active { transition: opacity 0.2s ease; }
.fade-enter-from, .fade-leave-to { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .content { padding: 80px 16px 60px; }
  .object-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .neo-approach-grid { grid-template-columns: 1fr; }
  .apod-controls { grid-template-columns: 1fr; }
  .apod-body { padding: 18px 18px 22px; }
  .apod-title-row { flex-direction: column; gap: 4px; }
  .apod-date { white-space: normal; }
  .apod-hd-row { flex-direction: column; align-items: flex-start; }
  .apod-hd-url { text-align: left; }
}

/* ---------- Result count display ---------- */
/* Badge in the section eyebrow row */
.result-count-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--violet);
  flex-shrink: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Filter chip count badge ---------- */
.filter-chip { display: inline-flex; align-items: center; gap: 6px; }
.filter-chip-count {
  font-size: 10px; font-weight: 800;
  background: rgba(124,58,237,0.18);
  border: 1px solid rgba(124,58,237,0.3);
  color: var(--muted);
  border-radius: 999px;
  padding: 1px 6px;
  letter-spacing: 0.03em;
  transition: background var(--tr), color var(--tr), border-color var(--tr);
}
.filter-chip.active .filter-chip-count {
  background: rgba(168,85,247,0.22);
  border-color: rgba(168,85,247,0.45);
  color: #d8b4fe;
}

/* ---------- Object type badge on neo-name ---------- */
.neo-type-badge {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  background: rgba(124,58,237,0.14);
  border: 1px solid rgba(124,58,237,0.3);
  color: var(--glow);
  border-radius: 6px;
  padding: 2px 7px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Result count row (below search bar) ---------- */
.result-count-row {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px; margin-bottom: 4px;
}

/* ---------- Learn more links on catalog objects ---------- */
.neo-links {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.neo-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600;
  padding: 5px 13px;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all var(--tr);
  letter-spacing: 0.01em;
}
.neo-link svg { flex-shrink: 0; opacity: 0.7; }
.neo-link-wiki {
  background: rgba(255,255,255,0.04);
  color: var(--muted);
}
.neo-link-wiki:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(200,200,200,0.3);
  color: var(--stardust);
}
.neo-link-nasa {
  background: rgba(168,85,247,0.08);
  color: var(--violet);
  border-color: rgba(168,85,247,0.28);
}
.neo-link-nasa:hover {
  background: rgba(168,85,247,0.18);
  border-color: var(--violet);
  color: var(--glow);
  box-shadow: 0 0 14px rgba(168,85,247,0.2);
}
