:root {
  --nasa-mm-bg0: #050507;
  --nasa-mm-bg1: #120007;
  --nasa-mm-bg2: #24000f;
  --nasa-mm-bg3: #3a0018;
  --nasa-mm-accent0: #ff1a3d;
  --nasa-mm-accent1: #b3001b;
  --nasa-mm-accent2: #ff4d4d;
  --nasa-mm-text: rgba(255, 255, 255, 0.92);
  --nasa-mm-muted: rgba(255, 255, 255, 0.72);
  --nasa-mm-card: rgba(0, 0, 0, 0.62);
  --nasa-mm-border: rgba(255, 255, 255, 0.12);
  --nasa-mm-shadow: 0 18px 70px rgba(0, 0, 0, 0.45);
}

.nasa-shell {
  width: 100%;
  min-height: 100vh;
  padding: 24px 18px 64px;
  font-family: "Courier Prime", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: var(--nasa-mm-text);
  background:
    radial-gradient(1100px 780px at 15% 8%, rgba(255, 26, 61, 0.22), transparent 60%),
    radial-gradient(900px 680px at 85% 28%, rgba(179, 0, 27, 0.24), transparent 55%),
    radial-gradient(760px 520px at 55% 95%, rgba(255, 77, 77, 0.16), transparent 55%),
    linear-gradient(135deg, var(--nasa-mm-bg0), var(--nasa-mm-bg1) 35%, var(--nasa-mm-bg2) 70%, var(--nasa-mm-bg3));
}

.nasa-shell button,
.nasa-shell input,
.nasa-shell select,
.nasa-shell textarea {
  font: inherit;
}

.nasa-page,
.nasa-detail-page {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.nasa-hero,
.nasa-filters,
.nasa-card,
.nasa-detail-card,
.nasa-detail-image-wrap,
.nasa-empty-state,
.nasa-pagination {
  border: 1px solid var(--nasa-mm-border);
  border-radius: 18px;
  background: var(--nasa-mm-card);
  box-shadow: var(--nasa-mm-shadow);
  backdrop-filter: blur(10px);
}

.nasa-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, 0.8fr);
  gap: 24px;
  padding: 28px;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at top right, rgba(255, 26, 61, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.38));
  color: var(--nasa-mm-text);
}

.nasa-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 26, 61, 0.22), rgba(179, 0, 27, 0.14));
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nasa-title {
  margin: 14px 0 10px;
  color: #fff;
  font-size: clamp(2.2rem, 4.8vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.nasa-intro {
  margin: 0;
  max-width: 60ch;
  color: var(--nasa-mm-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.nasa-hero-meta {
  display: grid;
  gap: 14px;
  align-content: start;
}

.nasa-hero-stat {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.nasa-hero-label,
.nasa-hero-value {
  display: block;
  color: var(--nasa-mm-muted);
  font-size: 0.9rem;
}

.nasa-hero-stat strong {
  display: block;
  margin: 2px 0;
  color: #fff;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.nasa-filters {
  padding: 18px;
  margin-bottom: 18px;
}

.nasa-active-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 16px;
  align-items: center;
  padding: 0 4px 18px;
}

.nasa-active-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.nasa-active-filters-label {
  color: var(--nasa-mm-muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nasa-chip-active {
  border-color: #f87171;
  background: #f87171;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.18);
}

.nasa-chip-active:hover {
  border-color: #ef4444;
  background: #ef4444;
  color: #ffffff;
}

.nasa-chip-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  margin-left: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.nasa-active-filters-clear {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.nasa-active-filters-clear:hover {
  color: #ffd4d9;
}

.nasa-filter-form {
  display: grid;
  gap: 14px;
}

.nasa-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.nasa-filter-field {
  display: grid;
  gap: 6px;
}

.nasa-filter-field-compact {
  max-width: 140px;
}

.nasa-filter-label {
  color: var(--nasa-mm-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nasa-select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
}

.nasa-select option {
  color: #fff;
  background: #1a0b10;
}

.nasa-select:focus,
.nasa-button:focus,
.nasa-chip:focus,
.nasa-inline-link:focus,
.nasa-card-title a:focus,
.nasa-back-link:focus {
  outline: 2px solid rgba(255, 77, 77, 0.9);
  outline-offset: 2px;
}

.nasa-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nasa-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.nasa-chip:hover,
.nasa-chip.is-active {
  border-color: rgba(255, 77, 77, 0.28);
  background: linear-gradient(180deg, rgba(255, 26, 61, 0.22), rgba(179, 0, 27, 0.14));
  color: #fff;
}

.nasa-filter-actions,
.nasa-card-actions,
.nasa-detail-actions,
.nasa-pagination-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.nasa-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.nasa-button:hover {
  transform: translateY(-1px);
}

.nasa-button-primary {
  border-color: rgba(255, 77, 77, 0.28);
  background: linear-gradient(180deg, var(--nasa-mm-accent0), var(--nasa-mm-accent1));
  color: #fff;
  box-shadow: 0 12px 28px rgba(179, 0, 27, 0.3);
}

.nasa-button-primary:hover {
  background: linear-gradient(180deg, var(--nasa-mm-accent2), var(--nasa-mm-accent1));
}

.nasa-button-secondary {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nasa-button-secondary:hover,
.nasa-button-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nasa-button-ghost,
.nasa-button-disabled {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--nasa-mm-muted);
}

.nasa-button-disabled {
  cursor: default;
}

.nasa-stream {
  display: grid;
  gap: 16px;
}

.nasa-stream-list {
  display: grid;
  gap: 16px;
}

.nasa-featured-card {
  overflow: hidden;
  border: 1px solid var(--nasa-mm-border);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 26, 61, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.58));
  box-shadow: var(--nasa-mm-shadow);
  backdrop-filter: blur(10px);
}

.nasa-featured-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.nasa-featured-inner.has-image {
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.92fr);
}

.nasa-featured-copy {
  padding: 26px;
}

.nasa-featured-kicker-row {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.nasa-featured-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 26, 61, 0.22), rgba(179, 0, 27, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nasa-card-meta-row-compact {
  margin-bottom: 0;
}

.nasa-featured-card .nasa-badge,
.nasa-featured-card .nasa-topic {
  background: rgba(255, 255, 255, 0.1);
  color: #e5eef9;
}

.nasa-featured-card .nasa-badge-source.is-apod,
.nasa-featured-card .nasa-badge-source.is-image-of-the-day,
.nasa-featured-card .nasa-badge-source.is-epic,
.nasa-featured-card .nasa-badge-source.is-epic-natural,
.nasa-featured-card .nasa-badge-source.is-epic-enhanced {
  background: rgba(196, 181, 253, 0.2);
  color: #ddd6fe;
}

.nasa-featured-card .nasa-badge-source.is-artemis {
  background: rgba(134, 239, 172, 0.16);
  color: #bbf7d0;
}

.nasa-featured-card .nasa-badge-source.is-space-station {
  background: rgba(125, 211, 252, 0.16);
  color: #bae6fd;
}

.nasa-featured-card .nasa-badge-source.is-donki {
  background: rgba(252, 165, 165, 0.16);
  color: #fecaca;
}

.nasa-featured-card .nasa-badge-source.is-jpl-news {
  background: rgba(96, 165, 250, 0.16);
  color: #bfdbfe;
}

.nasa-featured-card .nasa-badge-source.is-kennedy {
  background: rgba(45, 212, 191, 0.16);
  color: #99f6e4;
}

.nasa-featured-card .nasa-badge-source.is-mars-rover,
.nasa-featured-card .nasa-badge-source.is-mars-rover-curiosity,
.nasa-featured-card .nasa-badge-source.is-mars-rover-perseverance,
.nasa-featured-card .nasa-badge-source.is-mars-rover-unknown {
  background: rgba(253, 186, 116, 0.16);
  color: #fdba74;
}

.nasa-featured-card .nasa-badge-source.is-neows {
  background: rgba(252, 211, 77, 0.16);
  color: #fde68a;
}

.nasa-featured-card .nasa-badge-source.is-news-releases,
.nasa-featured-card .nasa-badge-source.is-recently-published-content {
  background: rgba(226, 232, 240, 0.12);
  color: #e2e8f0;
}

.nasa-featured-card .nasa-badge-source.is-nasa-image-library,
.nasa-featured-card .nasa-badge-source.is-nasa-image-library-artemis,
.nasa-featured-card .nasa-badge-source.is-nasa-image-library-mars {
  background: rgba(147, 197, 253, 0.16);
  color: #bfdbfe;
}

.nasa-featured-title {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 3.7vw, 2.75rem);
  line-height: 1.07;
  letter-spacing: -0.045em;
}

.nasa-featured-title a {
  color: #f8fafc;
  text-decoration: none;
}

.nasa-featured-title a:hover {
  color: #ffd4d9;
}

.nasa-featured-submeta {
  color: var(--nasa-mm-muted);
}

.nasa-featured-submeta span + span::before {
  color: rgba(255, 255, 255, 0.32);
}

.nasa-featured-summary {
  margin: 0 0 18px;
  color: #dbe7f3;
  font-size: 1.02rem;
  line-height: 1.72;
}

.nasa-featured-image-link {
  display: block;
  min-height: 100%;
  background: #0b1220;
}

.nasa-featured-media {
  position: relative;
  min-height: 100%;
  background: #020617;
}

.nasa-featured-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nasa-featured-video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #020617;
}

.nasa-card {
  overflow: hidden;
}

.nasa-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.nasa-card-body.has-image {
  grid-template-columns: minmax(0, 1fr) 248px;
}

.nasa-card-copy {
  padding: 22px 22px 20px;
  min-width: 0;
}

.nasa-card-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.nasa-badge,
.nasa-topic {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nasa-badge-link {
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.nasa-badge-link:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.nasa-badge-link.is-active {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 0 2px rgba(255, 77, 77, 0.22);
  filter: saturate(1.08);
}

.nasa-badge-link:focus {
  outline: 2px solid rgba(255, 77, 77, 0.9);
  outline-offset: 2px;
}

.nasa-badge {
  background: linear-gradient(180deg, rgba(255, 26, 61, 0.22), rgba(179, 0, 27, 0.14));
  color: #fff;
}

.nasa-badge-source {
  color: #fff;
}

.nasa-badge-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.68rem;
  line-height: 1;
  flex: 0 0 auto;
}

.nasa-badge-source.is-apod,
.nasa-badge-source.is-image-of-the-day,
.nasa-badge-source.is-epic,
.nasa-badge-source.is-epic-natural,
.nasa-badge-source.is-epic-enhanced {
  background: rgba(196, 181, 253, 0.14);
  color: #f5f3ff;
}

.nasa-badge-source.is-artemis {
  background: rgba(134, 239, 172, 0.14);
  color: #dcfce7;
}

.nasa-badge-source.is-space-station {
  background: rgba(125, 211, 252, 0.14);
  color: #e0f2fe;
}

.nasa-badge-source.is-donki {
  background: rgba(252, 165, 165, 0.14);
  color: #fee2e2;
}

.nasa-badge-source.is-jpl-news {
  background: rgba(96, 165, 250, 0.14);
  color: #dbeafe;
}

.nasa-badge-source.is-kennedy {
  background: rgba(45, 212, 191, 0.14);
  color: #ccfbf1;
}

.nasa-badge-source.is-mars-rover,
.nasa-badge-source.is-mars-rover-curiosity,
.nasa-badge-source.is-mars-rover-perseverance,
.nasa-badge-source.is-mars-rover-unknown {
  background: rgba(253, 186, 116, 0.14);
  color: #ffedd5;
}

.nasa-badge-source.is-neows {
  background: rgba(252, 211, 77, 0.14);
  color: #fef3c7;
}

.nasa-badge-source.is-news-releases,
.nasa-badge-source.is-recently-published-content {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
}

.nasa-badge-source.is-nasa-image-library,
.nasa-badge-source.is-nasa-image-library-artemis,
.nasa-badge-source.is-nasa-image-library-mars {
  background: rgba(147, 197, 253, 0.14);
  color: #dbeafe;
}

.nasa-topic {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nasa-card-title {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.nasa-card-title a,
.nasa-back-link,
.nasa-inline-link {
  color: #fff;
  text-decoration: none;
}

.nasa-card-title a:hover,
.nasa-inline-link:hover,
.nasa-back-link:hover {
  color: #ffd4d9;
}

.nasa-card-submeta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 12px;
  color: var(--nasa-mm-muted);
  font-size: 0.9rem;
}

.nasa-card-submeta span {
  position: relative;
}

.nasa-card-submeta span + span::before {
  content: "•";
  margin-right: 16px;
  color: rgba(255, 255, 255, 0.3);
}

.nasa-bundle-submeta-control-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nasa-card-submeta .nasa-bundle-submeta-control-wrap::before {
  display: none;
}

.nasa-bundle-submeta-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.nasa-bundle-submeta-control:hover {
  color: #fff;
}

.nasa-card-helper {
  margin: -4px 0 14px;
  color: #ffb4be;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
}

.nasa-card-helper-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 180, 190, 0.35);
}

.nasa-card-helper-link:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.55);
}

.nasa-featured-helper {
  font-size: 0.92rem;
}

.nasa-card-summary,
.nasa-detail-copy p {
  margin: 0 0 16px;
  color: var(--nasa-mm-text);
  font-size: 1rem;
  line-height: 1.68;
}

.nasa-card-summary,
.nasa-featured-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nasa-card-summary {
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

.nasa-featured-summary {
  -webkit-line-clamp: 5;
  line-clamp: 5;
}

.nasa-inline-link {
  font-weight: 700;
}

.nasa-card-image-link {
  display: block;
  background: rgba(0, 0, 0, 0.4);
}

.nasa-card-media {
  position: relative;
  background: #020617;
}

.nasa-sequence-viewer {
  position: relative;
  overflow: hidden;
  background: #020617;
}

.nasa-bundle-viewer {
  position: relative;
  overflow: hidden;
  background: #020617;
}

.nasa-sequence-viewer-card,
.nasa-sequence-viewer-featured,
.nasa-bundle-viewer-card,
.nasa-bundle-viewer-featured {
  min-height: 100%;
}

.nasa-sequence-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020617;
}

.nasa-bundle-image,
.nasa-bundle-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020617;
}

.nasa-bundle-image.is-hidden,
.nasa-bundle-video.is-hidden {
  display: none;
}

.nasa-bundle-link {
  text-decoration: none;
}

.nasa-sequence-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.44);
  color: #fff;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.12s ease;
}

.nasa-sequence-control:hover {
  background: rgba(255, 26, 61, 0.34);
}

.nasa-sequence-control.is-prev {
  left: 12px;
}

.nasa-sequence-control.is-next {
  right: 12px;
}

.nasa-sequence-footer {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.58));
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

.nasa-sequence-footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.nasa-sequence-count,
.nasa-sequence-meta {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nasa-sequence-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 26, 61, 0.24), rgba(179, 0, 27, 0.18));
  color: #fff;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.nasa-sequence-toggle:hover {
  background: linear-gradient(180deg, rgba(255, 77, 77, 0.28), rgba(179, 0, 27, 0.22));
}

.nasa-media-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.28);
  pointer-events: none;
}

.nasa-media-badge::before {
  content: "▶";
  margin-right: 6px;
  font-size: 0.72rem;
  line-height: 1;
  color: #93c5fd;
}

.nasa-media-badge-bundle::before {
  content: none;
}

.nasa-media-badge-featured {
  top: 16px;
  left: 16px;
}

.nasa-card-image {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
}

.nasa-card-video {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #020617;
}

.nasa-empty-state {
  padding: 38px 24px;
  text-align: center;
}

.nasa-empty-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255, 26, 61, 0.22), rgba(179, 0, 27, 0.14));
  color: #fff;
  font-size: 1.5rem;
}

.nasa-empty-state h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.45rem;
}

.nasa-empty-state p {
  max-width: 42ch;
  margin: 0 auto 18px;
  color: var(--nasa-mm-muted);
  line-height: 1.6;
}

.nasa-pagination {
  margin-top: 18px;
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.4));
}

.nasa-pagination-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nasa-pagination-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--nasa-mm-muted);
  font-size: 0.92rem;
}

.nasa-pagination-summary strong {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
}

.nasa-pagination-kicker,
.nasa-pagination-count {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nasa-detail-page {
  display: grid;
  gap: 16px;
}

.nasa-back-link {
  width: fit-content;
  color: var(--nasa-mm-muted);
  font-weight: 700;
}

.nasa-detail-header,
.nasa-detail-card {
  padding: 28px;
}

.nasa-detail-header {
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.58));
  border: 1px solid var(--nasa-mm-border);
  box-shadow: var(--nasa-mm-shadow);
  backdrop-filter: blur(10px);
}

.nasa-detail-header .nasa-badge,
.nasa-detail-header .nasa-topic {
  background: rgba(255, 255, 255, 0.1);
  color: #e5eef9;
}

.nasa-detail-header .nasa-badge-source.is-apod,
.nasa-detail-header .nasa-badge-source.is-image-of-the-day,
.nasa-detail-header .nasa-badge-source.is-epic,
.nasa-detail-header .nasa-badge-source.is-epic-natural,
.nasa-detail-header .nasa-badge-source.is-epic-enhanced {
  background: rgba(196, 181, 253, 0.2);
  color: #ddd6fe;
}

.nasa-detail-header .nasa-badge-source.is-artemis {
  background: rgba(134, 239, 172, 0.16);
  color: #bbf7d0;
}

.nasa-detail-header .nasa-badge-source.is-space-station {
  background: rgba(125, 211, 252, 0.16);
  color: #bae6fd;
}

.nasa-detail-header .nasa-badge-source.is-donki {
  background: rgba(252, 165, 165, 0.16);
  color: #fecaca;
}

.nasa-detail-header .nasa-badge-source.is-jpl-news {
  background: rgba(96, 165, 250, 0.16);
  color: #bfdbfe;
}

.nasa-detail-header .nasa-badge-source.is-kennedy {
  background: rgba(45, 212, 191, 0.16);
  color: #99f6e4;
}

.nasa-detail-header .nasa-badge-source.is-mars-rover,
.nasa-detail-header .nasa-badge-source.is-mars-rover-curiosity,
.nasa-detail-header .nasa-badge-source.is-mars-rover-perseverance,
.nasa-detail-header .nasa-badge-source.is-mars-rover-unknown {
  background: rgba(253, 186, 116, 0.16);
  color: #fdba74;
}

.nasa-detail-header .nasa-badge-source.is-neows {
  background: rgba(252, 211, 77, 0.16);
  color: #fde68a;
}

.nasa-detail-header .nasa-badge-source.is-news-releases,
.nasa-detail-header .nasa-badge-source.is-recently-published-content {
  background: rgba(226, 232, 240, 0.12);
  color: #e2e8f0;
}

.nasa-detail-header .nasa-badge-source.is-nasa-image-library,
.nasa-detail-header .nasa-badge-source.is-nasa-image-library-artemis,
.nasa-detail-header .nasa-badge-source.is-nasa-image-library-mars {
  background: rgba(147, 197, 253, 0.16);
  color: #bfdbfe;
}

.nasa-detail-title {
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 4.6vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.nasa-detail-submeta {
  margin-top: 14px;
  margin-bottom: 0;
  color: var(--nasa-mm-muted);
}

.nasa-detail-submeta span + span::before {
  color: rgba(255,255,255,0.32);
}

.nasa-detail-image-wrap {
  overflow: hidden;
  background: rgba(0, 0, 0, 0.5);
}

.nasa-detail-video-wrap {
  position: relative;
  background: #020617;
}

.nasa-detail-image {
  display: block;
  width: 100%;
  max-height: 540px;
  object-fit: cover;
}

.nasa-detail-video {
  display: block;
  width: 100%;
  max-height: min(72vh, 760px);
  background: #020617;
}

.nasa-detail-downloads {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nasa-detail-downloads-title {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nasa-detail-download-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nasa-detail-download-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-decoration: none;
}

.nasa-detail-download-link:hover {
  background: rgba(255, 26, 61, 0.16);
}

.nasa-media-badge-detail {
  top: 16px;
  left: 16px;
}

.nasa-featured-card .nasa-badge-glyph,
.nasa-detail-header .nasa-badge-glyph {
  background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 900px) {
  .nasa-hero {
    grid-template-columns: 1fr;
  }

  .nasa-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nasa-featured-inner.has-image {
    grid-template-columns: 1fr;
  }

  .nasa-featured-image-link {
    order: -1;
    max-height: 300px;
  }

  .nasa-card-body.has-image {
    grid-template-columns: 1fr;
  }

  .nasa-card-image-link {
    order: -1;
    max-height: 260px;
  }

  .nasa-pagination {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .nasa-shell {
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 42px;
  }

  .nasa-hero,
  .nasa-filters,
  .nasa-card-copy,
  .nasa-detail-header,
  .nasa-detail-card,
  .nasa-empty-state,
  .nasa-pagination {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nasa-filter-grid {
    grid-template-columns: 1fr;
  }

  .nasa-filter-field-compact {
    max-width: none;
  }

  .nasa-title,
  .nasa-detail-title {
    letter-spacing: -0.03em;
  }

  .nasa-card-title {
    font-size: 1.25rem;
  }
}
