: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);
}

html[data-direct-theme='light'] {
  --nasa-mm-bg0: #fff8f5;
  --nasa-mm-bg1: #fff1f2;
  --nasa-mm-bg2: #fef7ed;
  --nasa-mm-bg3: #f8fafc;
  --nasa-mm-accent0: #ef4444;
  --nasa-mm-accent1: #b91c1c;
  --nasa-mm-accent2: #f87171;
  --nasa-mm-text: rgba(15, 23, 42, 0.96);
  --nasa-mm-muted: rgba(51, 65, 85, 0.82);
  --nasa-mm-card: rgba(255, 255, 255, 0.88);
  --nasa-mm-border: rgba(148, 163, 184, 0.34);
  --nasa-mm-shadow: 0 18px 52px rgba(15, 23, 42, 0.12);
}

body.nasa-filter-drawer-open {
  overflow: hidden;
}

.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));
}

html[data-direct-theme='light'] .nasa-shell {
  background:
    radial-gradient(1100px 780px at 15% 8%, rgba(239, 68, 68, 0.12), transparent 60%),
    radial-gradient(900px 680px at 85% 28%, rgba(251, 146, 60, 0.1), transparent 55%),
    radial-gradient(760px 520px at 55% 95%, rgba(248, 113, 113, 0.1), 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-page {
  position: relative;
}

.africa-page {
  max-width: 1320px;
}

.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);
}

html[data-direct-theme='light'] .nasa-hero,
html[data-direct-theme='light'] .nasa-filters,
html[data-direct-theme='light'] .nasa-card,
html[data-direct-theme='light'] .nasa-detail-card,
html[data-direct-theme='light'] .nasa-detail-image-wrap,
html[data-direct-theme='light'] .nasa-empty-state,
html[data-direct-theme='light'] .nasa-pagination {
  background: rgba(255, 255, 255, 0.985);
  backdrop-filter: none;
}

html[data-direct-theme='light'] .nasa-card,
html[data-direct-theme='light'] .nasa-detail-card {
  border-color: rgba(203, 213, 225, 0.5);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

html[data-direct-theme='light'] .nasa-featured-card {
  border-color: rgba(203, 213, 225, 0.5);
  background:
    radial-gradient(circle at top right, rgba(248, 113, 113, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 255, 255, 0.97));
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  backdrop-filter: none;
}

.nasa-filter-drawer-toggle {
  position: relative;
  flex: 0 0 auto;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 46px;
  height: 46px;
  margin: 0;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 26, 61, 0.22), rgba(179, 0, 27, 0.18));
  color: #fff;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

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

html[data-direct-theme='light'] .nasa-filter-drawer-toggle {
  border-color: rgba(239, 68, 68, 0.24);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.14), rgba(255, 255, 255, 0.92));
  color: #991b1b;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

html[data-direct-theme='light'] .nasa-filter-toggle-icon span {
  background: rgba(153, 27, 27, 0.92);
}

html[data-direct-theme='light'] .nasa-filter-drawer-toggle:hover {
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.2), rgba(255, 255, 255, 0.96));
}

.nasa-filter-toggle-icon {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
}

.nasa-filter-toggle-icon span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
}

.nasa-filter-toggle-icon span:nth-child(1) {
  width: 100%;
}

.nasa-filter-toggle-icon span:nth-child(2) {
  width: 70%;
}

.nasa-filter-toggle-icon span:nth-child(3) {
  width: 88%;
}

.nasa-filter-toggle-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff4d4f;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
}

.nasa-screen-reader-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nasa-filter-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(1, 2, 7, 0.62);
  backdrop-filter: blur(3px);
}

.nasa-filter-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1210;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(420px, calc(100vw - 12px));
  max-width: calc(100vw - 12px);
  height: 100vh;
  padding: 22px 18px 20px;
  box-sizing: border-box;
  border-right: 1px solid var(--nasa-mm-border);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(20, 0, 8, 0.96));
  box-shadow: 24px 0 60px rgba(0, 0, 0, 0.45);
  transform: translateX(calc(-100% - 20px));
  transition: transform 0.22s ease;
  overflow-x: hidden;
  overflow-y: auto;
}

.nasa-filter-drawer.is-open {
  transform: translateX(0);
}

.nasa-filter-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.nasa-kicker-panel {
  margin-bottom: 8px;
}

.nasa-filter-drawer-title {
  margin: 0;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1.05;
}

.nasa-filter-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.nasa-filter-drawer-close:hover {
  background: rgba(255, 26, 61, 0.16);
}

.nasa-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, 0.8fr);
  gap: 18px;
  padding: 12px 20px;
  margin-bottom: 12px;
  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-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nasa-brand-logo {
  display: block;
  width: 92px;
  height: auto;
  flex: 0 0 auto;
}

.nasa-brand-link {
  display: inline-flex;
  align-items: center;
  border-radius: 14px;
  text-decoration: none;
}

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

.nasa-brand-copy {
  min-width: 0;
}

.nasa-header-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.88);
  color: #fff;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nasa-header-live-badge:hover,
.nasa-header-live-badge:focus-visible {
  color: #fff;
  background: rgba(153, 27, 27, 0.94);
}

.nasa-header-live-badge.is-upcoming {
  background: rgba(120, 53, 15, 0.92);
  border-color: rgba(253, 186, 116, 0.38);
}

.nasa-header-live-badge.is-upcoming:hover,
.nasa-header-live-badge.is-upcoming:focus-visible {
  background: rgba(146, 64, 14, 0.96);
}

.nasa-header-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fca5a5;
  box-shadow: 0 0 0 4px rgba(252, 165, 165, 0.16);
}

.nasa-header-live-badge.is-upcoming .nasa-header-live-dot {
  background: #fdba74;
  box-shadow: 0 0 0 4px rgba(253, 186, 116, 0.16);
}

.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: 0;
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.02;
  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;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-content: center;
}

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

.nasa-hero-inline-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  line-height: 1.2;
  white-space: nowrap;
}

.nasa-hero-inline-stat strong {
  color: #fff;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

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

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

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

.nasa-filter-drawer .nasa-filters {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

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

.nasa-artemis-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 26, 61, 0.06));
  box-shadow: var(--nasa-mm-shadow);
}

.nasa-artemis-banner-copy-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.nasa-artemis-banner-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.nasa-artemis-banner-label {
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}

.nasa-artemis-banner-label:hover {
  color: #ff9aa5;
}

.nasa-artemis-banner-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  flex: 0 0 auto;
}

.nasa-artemis-banner-toggle:hover {
  background: rgba(255, 26, 61, 0.18);
}

.nasa-artemis-banner-toggle span {
  transition: transform 0.18s ease;
}

.nasa-artemis-banner-anchor {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nasa-artemis-banner-metrics {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.nasa-artemis-metric {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.nasa-artemis-metric strong {
  color: #fff;
  font-size: 1rem;
  line-height: 1;
}

.nasa-artemis-metric em {
  color: rgba(255, 255, 255, 0.66);
  font-style: normal;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.nasa-artemis-banner.is-collapsed {
  padding-top: 8px;
  padding-bottom: 8px;
}

.nasa-artemis-banner.is-collapsed .nasa-artemis-banner-metrics {
  display: none;
}

.nasa-artemis-banner.is-collapsed .nasa-artemis-banner-toggle span {
  transform: rotate(-90deg);
}

.nasa-active-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.nasa-active-filters-search-wrap {
  flex: 0 1 460px;
  min-width: min(100%, 460px);
}

.nasa-active-search-form {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.nasa-active-inline-filter-label {
  flex: 0 1 200px;
  min-width: 160px;
}

.nasa-active-inline-filter-select {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 0 30px 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(242, 183, 5, 0.22);
  background: rgba(7, 7, 7, 0.94);
  color: #fff;
  font: inherit;
  font-size: 0.74rem;
}

html[data-direct-theme='light'] .nasa-active-inline-filter-select,
html[data-direct-theme='light'] .nasa-active-search-input {
  border-color: rgba(148, 163, 184, 0.36);
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
}

.nasa-active-search-field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.nasa-active-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.88rem;
  line-height: 1;
  pointer-events: none;
}

html[data-direct-theme='light'] .nasa-active-search-icon {
  color: rgba(71, 85, 105, 0.62);
}

.nasa-active-search-input {
  width: 100%;
  min-height: 36px;
  padding: 0 12px 0 32px;
  border-radius: 999px;
  border: 1px solid rgba(242, 183, 5, 0.28);
  background: rgba(7, 7, 7, 0.94);
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
}

.nasa-active-search-input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

html[data-direct-theme='light'] .nasa-active-search-input::placeholder {
  color: rgba(71, 85, 105, 0.7);
}

.nasa-active-inline-filter-select:focus,
.nasa-active-search-input:focus {
  outline: none;
  border-color: rgba(31, 138, 67, 0.56);
  box-shadow: 0 0 0 3px rgba(31, 138, 67, 0.12);
}

.nasa-active-search-button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(214, 40, 40, 0.42);
  background: rgba(214, 40, 40, 0.18);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

html[data-direct-theme='light'] .nasa-active-search-button {
  color: #991b1b;
  border-color: rgba(239, 68, 68, 0.34);
  background: rgba(239, 68, 68, 0.1);
}

.nasa-active-search-button:hover,
.nasa-active-search-button:focus-visible {
  background: rgba(31, 138, 67, 0.22);
  border-color: rgba(31, 138, 67, 0.48);
}

.nasa-active-filters-label {
  color: var(--nasa-mm-muted);
  font-size: 0.76rem;
  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 {
  flex: 0 0 auto;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

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

.nasa-active-filters-empty {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.nasa-active-filters-idle {
  padding-right: 4px;
}

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

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

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

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

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

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

.nasa-filter-label {
  display: block;
  width: 100%;
  color: var(--nasa-mm-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  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-filter-dirty-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 214, 102, 0.96);
  font-size: 0.92rem;
  font-weight: 700;
}

.nasa-filter-dirty-indicator-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: rgba(255, 214, 102, 0.18);
  color: rgba(255, 214, 102, 1);
  font-size: 0.82rem;
  line-height: 1;
  flex: 0 0 auto;
}

.nasa-button-primary.is-dirty {
  box-shadow: 0 0 0 1px rgba(255, 214, 102, 0.34), 0 0 24px rgba(255, 214, 102, 0.16);
}

@media (max-width: 720px) {
  .nasa-filter-dirty-indicator {
    width: 100%;
    justify-content: center;
    padding: 10px 12px;
    border: 1px solid rgba(255, 214, 102, 0.28);
    border-radius: 12px;
    background: rgba(255, 214, 102, 0.12);
    text-align: center;
    font-size: 0.95rem;
  }

  .nasa-filter-actions .nasa-button-primary.is-dirty {
    width: 100%;
  }
}

.direct-dub-controls {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.direct-dub-status {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  font-weight: 700;
}

.direct-dub-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.direct-dub-result.hidden {
  display: none;
}

.direct-dub-label {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.direct-dub-toggle {
  min-height: 40px;
}

.direct-dub-select {
  min-height: 40px;
}

.direct-dub-add-button,
.direct-dub-start-button {
  min-height: 40px;
}

@media (max-width: 720px) {
  .direct-dub-controls {
    width: 100%;
    align-items: stretch;
  }

  .direct-dub-label {
    width: 100%;
  }

  .direct-dub-select,
  .direct-dub-add-button,
  .direct-dub-start-button {
    width: 100%;
  }

  .direct-dub-controls .md-dropdown {
    width: 100%;
  }

  .direct-dub-result {
    width: 100%;
  }
}

.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;
}

html[data-direct-theme='light'] .nasa-button-secondary {
  border-color: rgba(148, 163, 184, 0.36);
  background: rgba(255, 255, 255, 0.84);
  color: #0f172a;
}

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

html[data-direct-theme='light'] .nasa-button-secondary:hover,
html[data-direct-theme='light'] .nasa-button-ghost:hover {
  background: rgba(255, 255, 255, 0.96);
}

.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);
}

html[data-direct-theme='light'] .nasa-button-ghost,
html[data-direct-theme='light'] .nasa-button-disabled {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.76);
}

.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);
  min-width: 0;
}

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

.nasa-featured-inner.has-image .nasa-featured-copy {
  padding: 22px 18px 22px 22px;
}

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

.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: #fff;
  text-decoration: none;
}

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

html[data-direct-theme='light'] .nasa-featured-title a {
  color: #111827;
}

html[data-direct-theme='light'] .nasa-featured-title a:hover {
  color: #b91c1c;
}

.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;
}

html[data-direct-theme='light'] .nasa-featured-summary {
  color: #111827;
}

.nasa-translation-control {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
}

.nasa-card-title-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.nasa-card-action-row {
  margin-top: 8px;
  padding-top: 2px;
  justify-content: flex-start;
  gap: 8px;
}

.nasa-card-action-row-featured {
  margin-top: 10px;
}

.nasa-card-action-row .nasa-listen-control-card-inline,
.nasa-card-action-row .nasa-translation-control-card-inline .nasa-translation-label,
.nasa-card-action-row .nasa-embed-control-card-inline,
.nasa-card-action-row .nasa-share-control-card-inline,
.nasa-card-action-row .nasa-download-control-card-inline,
.nasa-card-action-row .nasa-embed-control,
.nasa-card-action-row .nasa-share-control,
.nasa-card-action-row .nasa-download-control {
  min-height: 26px;
  min-width: 32px;
  width: 32px;
}

html[data-direct-theme='light'] .nasa-card-action-row .nasa-embed-control-card-inline,
html[data-direct-theme='light'] .nasa-card-action-row .nasa-share-control-card-inline,
html[data-direct-theme='light'] .nasa-card-action-row .nasa-download-control-card-inline,
html[data-direct-theme='light'] .nasa-card-action-row .nasa-embed-control,
html[data-direct-theme='light'] .nasa-card-action-row .nasa-share-control,
html[data-direct-theme='light'] .nasa-card-action-row .nasa-download-control,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-embed-control-card-inline,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-share-control-card-inline,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-download-control-card-inline,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-embed-control,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-share-control,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-download-control {
  border-color: rgba(71, 85, 105, 0.28);
  background: rgba(30, 41, 59, 0.9);
  color: #f8fafc;
}

html[data-direct-theme='light'] .nasa-card-action-row .nasa-embed-control-card-inline:hover,
html[data-direct-theme='light'] .nasa-card-action-row .nasa-share-control-card-inline:hover,
html[data-direct-theme='light'] .nasa-card-action-row .nasa-download-control-card-inline:hover,
html[data-direct-theme='light'] .nasa-card-action-row .nasa-embed-control:hover,
html[data-direct-theme='light'] .nasa-card-action-row .nasa-share-control:hover,
html[data-direct-theme='light'] .nasa-card-action-row .nasa-download-control:hover,
html[data-direct-theme='light'] .nasa-card-action-row .nasa-embed-control-card-inline:focus-visible,
html[data-direct-theme='light'] .nasa-card-action-row .nasa-share-control-card-inline:focus-visible,
html[data-direct-theme='light'] .nasa-card-action-row .nasa-download-control-card-inline:focus-visible,
html[data-direct-theme='light'] .nasa-card-action-row .nasa-embed-control:focus-visible,
html[data-direct-theme='light'] .nasa-card-action-row .nasa-share-control:focus-visible,
html[data-direct-theme='light'] .nasa-card-action-row .nasa-download-control:focus-visible,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-embed-control-card-inline:hover,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-share-control-card-inline:hover,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-download-control-card-inline:hover,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-embed-control:hover,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-share-control:hover,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-download-control:hover,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-embed-control-card-inline:focus-visible,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-share-control-card-inline:focus-visible,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-download-control-card-inline:focus-visible,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-embed-control:focus-visible,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-share-control:focus-visible,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-download-control:focus-visible {
  border-color: rgba(239, 68, 68, 0.42);
  background: rgba(15, 23, 42, 0.96);
  color: #fff;
}

.nasa-card-action-row .nasa-listen-control-card-inline {
  min-width: 32px;
}

.nasa-card-action-row .nasa-listen-control-card-inline:hover,
.nasa-card-action-row .nasa-listen-control-card-inline:focus-visible,
.nasa-card-action-row .nasa-listen-control-card-inline.is-loading,
.nasa-card-action-row .nasa-listen-control-card-inline.is-playing {
  min-width: 82px;
}

.nasa-card-action-row .nasa-translation-control-card-inline .nasa-translation-label {
  width: 32px;
  min-width: 32px;
}

.nasa-card-action-row .nasa-translation-control-card-inline:hover .nasa-translation-label,
.nasa-card-action-row .nasa-translation-control-card-inline:focus-within .nasa-translation-label {
  min-width: 104px;
}

.nasa-card-title-row .nasa-card-title,
.nasa-card-title-row .nasa-featured-title {
  flex: 1 1 auto;
  min-width: 0;
}

.nasa-card-title-row .nasa-translation-control {
  flex: 0 0 auto;
  margin-top: 3px;
}

.nasa-card-title-row .nasa-listen-control {
  flex: 0 0 auto;
  margin-top: 3px;
}

.nasa-card-title-row .nasa-share-control {
  flex: 0 0 auto;
  margin-top: 3px;
}

.nasa-card-title-row .nasa-embed-control {
  flex: 0 0 auto;
  margin-top: 3px;
}

.nasa-card-title-row .nasa-download-control {
  flex: 0 0 auto;
  margin-top: 3px;
}

.nasa-listen-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-size: 0.74rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.nasa-listen-control:hover,
.nasa-listen-control:focus-visible {
  background: rgba(220, 38, 38, 0.18);
  border-color: rgba(248, 113, 113, 0.5);
}

.nasa-listen-control.is-loading,
.nasa-listen-control.is-playing {
  background: rgba(220, 38, 38, 0.22);
  border-color: rgba(248, 113, 113, 0.65);
}

.nasa-listen-control:disabled {
  opacity: 0.72;
  cursor: wait;
}

.nasa-listen-control-card-inline {
  min-width: 34px;
  width: 34px;
  padding: 0 7px;
  overflow: hidden;
}

.nasa-listen-control-card-inline .nasa-listen-text {
  width: 0;
  opacity: 0;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.16s ease, width 0.18s ease;
}

.nasa-listen-control-card-inline:hover,
.nasa-listen-control-card-inline:focus-visible,
.nasa-listen-control-card-inline.is-loading,
.nasa-listen-control-card-inline.is-playing {
  width: auto;
  min-width: 88px;
  justify-content: flex-start;
}

.nasa-listen-control-card-inline:hover .nasa-listen-text,
.nasa-listen-control-card-inline:focus-visible .nasa-listen-text,
.nasa-listen-control-card-inline.is-loading .nasa-listen-text,
.nasa-listen-control-card-inline.is-playing .nasa-listen-text {
  width: auto;
  opacity: 1;
}

.nasa-listen-control-detail {
  min-height: 34px;
  padding: 0 12px;
}

.nasa-embed-control-detail,
.nasa-share-control-detail,
.nasa-download-control-detail {
  min-height: 34px;
  min-width: 38px;
  width: 38px;
}

.nasa-embed-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  min-width: 34px;
  width: 34px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  cursor: pointer;
}

.nasa-embed-control:hover,
.nasa-embed-control:focus-visible {
  background: rgba(255, 166, 0, 0.18);
  border-color: rgba(255, 209, 102, 0.55);
  color: #fff;
}

.nasa-embed-control.is-copied {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(134, 239, 172, 0.58);
  color: #f0fdf4;
}

.nasa-embed-icon {
  font-size: 0.7rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.nasa-download-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  min-width: 34px;
  width: 34px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.nasa-share-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  min-width: 34px;
  width: 34px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  cursor: pointer;
}

.nasa-share-control:hover,
.nasa-share-control:focus-visible {
  background: rgba(255, 166, 0, 0.18);
  border-color: rgba(255, 209, 102, 0.55);
  color: #fff;
}

.nasa-share-control.is-copied {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(134, 239, 172, 0.58);
  color: #f0fdf4;
}

.nasa-share-icon {
  font-size: 0.94rem;
  line-height: 1;
}

@media (hover: hover) {
  .nasa-embed-control[data-tooltip],
  .nasa-share-control[data-tooltip],
  .nasa-download-control[data-tooltip] {
    position: relative;
  }

  .nasa-embed-control[data-tooltip]::after,
  .nasa-share-control[data-tooltip]::after,
  .nasa-download-control[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(4px);
    padding: 6px 9px;
    border-radius: 10px;
    background: rgba(11, 11, 11, 0.96);
    border: 1px solid rgba(255, 209, 102, 0.32);
    color: #fff;
    font-size: 0.7rem;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
    z-index: 20;
  }

  .nasa-embed-control[data-tooltip]:hover::after,
  .nasa-embed-control[data-tooltip]:focus-visible::after,
  .nasa-share-control[data-tooltip]:hover::after,
  .nasa-share-control[data-tooltip]:focus-visible::after,
  .nasa-download-control[data-tooltip]:hover::after,
  .nasa-download-control[data-tooltip]:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.nasa-download-control:hover,
.nasa-download-control:focus-visible {
  background: rgba(255, 166, 0, 0.18);
  border-color: rgba(255, 209, 102, 0.55);
  color: #fff;
}

.nasa-download-control-media {
  background: rgba(185, 28, 28, 0.88);
  border-color: rgba(248, 113, 113, 0.48);
  color: #fff5f5;
}

.nasa-download-control-media:hover,
.nasa-download-control-media:focus-visible {
  background: rgba(153, 27, 27, 0.96);
  border-color: rgba(252, 165, 165, 0.58);
  color: #fff;
}

.nasa-download-control.is-loading {
  background: rgba(255, 209, 102, 0.14);
  border-color: rgba(255, 209, 102, 0.4);
  color: #fff7dd;
  cursor: wait;
}

.nasa-download-control.is-ready {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(134, 239, 172, 0.58);
  color: #f0fdf4;
}

.nasa-download-control.is-error {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(248, 113, 113, 0.5);
  color: #fff1f2;
}

html[data-direct-theme='light'] .nasa-download-control.is-loading {
  background: rgba(254, 240, 138, 0.78);
  border-color: rgba(217, 119, 6, 0.34);
  color: #111827;
}

html[data-direct-theme='light'] .nasa-download-control.is-ready {
  background: rgba(187, 247, 208, 0.92);
  border-color: rgba(34, 197, 94, 0.32);
  color: #14532d;
}

html[data-direct-theme='light'] .nasa-download-control.is-error {
  background: rgba(254, 226, 226, 0.94);
  border-color: rgba(239, 68, 68, 0.28);
  color: #7f1d1d;
}

html[data-direct-theme='light'] .nasa-download-control-media {
  background: rgba(185, 28, 28, 0.92);
  border-color: rgba(153, 27, 27, 0.42);
  color: #fff;
}

html[data-direct-theme='light'] .nasa-card-action-row .nasa-download-control-media,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-download-control-media {
  background: rgba(185, 28, 28, 0.92);
  border-color: rgba(153, 27, 27, 0.42);
  color: #fff;
}

html[data-direct-theme='light'] .nasa-download-control-media:hover,
html[data-direct-theme='light'] .nasa-download-control-media:focus-visible {
  background: rgba(127, 29, 29, 0.96);
  border-color: rgba(153, 27, 27, 0.56);
  color: #fff;
}

html[data-direct-theme='light'] .nasa-card-action-row .nasa-download-control-media:hover,
html[data-direct-theme='light'] .nasa-card-action-row .nasa-download-control-media:focus-visible,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-download-control-media:hover,
html[data-direct-theme='light'] .nasa-card-action-row-featured .nasa-download-control-media:focus-visible {
  background: rgba(127, 29, 29, 0.96);
  border-color: rgba(153, 27, 27, 0.56);
  color: #fff;
}

.nasa-download-icon {
  font-size: 0.94rem;
  line-height: 1;
}

.nasa-translation-control-card-inline .nasa-translation-label {
  min-height: 28px;
  width: 34px;
  padding: 0 7px;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  justify-content: center;
  overflow: hidden;
  transition: width 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.nasa-translation-control-card-inline .nasa-translation-select {
  font-size: 0.74rem;
  width: 0;
  min-width: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.nasa-translation-control-card-inline:hover .nasa-translation-label,
.nasa-translation-control-card-inline:focus-within .nasa-translation-label {
  width: auto;
  min-width: 112px;
  justify-content: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.nasa-translation-control-card-inline:hover .nasa-translation-select,
.nasa-translation-control-card-inline:focus-within .nasa-translation-select {
  width: auto;
  opacity: 1;
  pointer-events: auto;
}

.nasa-translation-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.84);
}

html[data-direct-theme='light'] .nasa-translation-label {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.76);
  color: rgba(15, 23, 42, 0.92);
}

.nasa-translation-select {
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  outline: none;
}

html[data-direct-theme='light'] .nasa-translation-select {
  color: #0f172a;
}

.nasa-translation-select option {
  color: #111827;
}

.nasa-detail-translation-row {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin: 0 0 10px;
}

.nasa-audio-bar {
  position: sticky;
  bottom: 14px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(960px, calc(100% - 24px));
  margin: 18px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(248, 113, 113, 0.26);
  border-radius: 18px;
  background: rgba(8, 8, 10, 0.92);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.nasa-audio-bar.is-inline {
  position: relative;
  bottom: auto;
  z-index: 5;
  width: 100%;
  margin: 0 0 14px;
}

.nasa-audio-bar[hidden] {
  display: none !important;
}

.nasa-audio-bar-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nasa-audio-bar-status {
  color: rgba(248, 250, 252, 0.68);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nasa-audio-bar-title {
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nasa-audio-bar-progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nasa-audio-bar-time {
  color: rgba(248, 250, 252, 0.72);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.nasa-audio-bar-progress {
  flex: 1 1 auto;
  min-width: 120px;
  accent-color: #ef4444;
  cursor: pointer;
}

.nasa-audio-bar-toggle,
.nasa-audio-bar-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.nasa-audio-bar-link {
  color: #fca5a5;
  font-size: 0.78rem;
  text-decoration: none;
  white-space: nowrap;
}

.nasa-audio-bar-next {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  font-size: 0.76rem;
  cursor: pointer;
}

.nasa-audio-bar-auto {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  font-size: 0.76rem;
  cursor: pointer;
}

.nasa-audio-bar-auto.is-active {
  background: rgba(220, 38, 38, 0.18);
  border-color: rgba(248, 113, 113, 0.5);
}

.nasa-audio-bar-next:hover,
.nasa-audio-bar-next:focus-visible,
.nasa-audio-bar-auto:hover,
.nasa-audio-bar-auto:focus-visible {
  background: rgba(220, 38, 38, 0.18);
  border-color: rgba(248, 113, 113, 0.5);
}

.nasa-audio-bar-link:hover,
.nasa-audio-bar-link:focus-visible {
  color: #fff;
}

.nasa-featured-image-link {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  background: #0b1220;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.nasa-featured-media {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 100%;
  background: #020617;
  aspect-ratio: 16 / 9;
  overflow: visible;
}

.direct-audio-card-media {
  position: relative;
  background: #020617;
  overflow: hidden;
}

.direct-audio-poster-link {
  display: block;
  width: 100%;
  height: 100%;
}

.direct-audio-poster-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.direct-audio-poster-fallback {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at top right, rgba(214, 40, 40, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.94));
}

.direct-audio-controls {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  row-gap: 8px;
  column-gap: 10px;
  align-items: center;
  padding: 10px 12px;
  width: auto;
  max-width: calc(100% - 20px);
  box-sizing: border-box;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(12px);
}

.direct-audio-controls audio {
  display: none;
}

.direct-audio-control-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(214, 40, 40, 0.98), rgba(185, 28, 28, 0.92));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(127, 29, 29, 0.35);
}

.direct-audio-control-button:hover,
.direct-audio-control-button:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(127, 29, 29, 0.4);
}

.direct-audio-control-icon {
  font-size: 0.9rem;
  line-height: 1;
}

.direct-audio-time {
  flex: 0 0 auto;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(248, 250, 252, 0.9);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.direct-audio-scrubber {
  grid-column: 1 / -1;
  min-width: 0;
  width: 100%;
  margin: 0;
  accent-color: #d62828;
}

.direct-audio-scrubber::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.36);
}

.direct-audio-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(214, 40, 40, 0.32);
}

.direct-audio-scrubber::-moz-range-track {
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.36);
}

.direct-audio-scrubber::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(214, 40, 40, 0.32);
}

.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.is-narrating,
.nasa-featured-card.is-narrating {
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.45), 0 18px 42px rgba(127, 29, 29, 0.24);
}

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

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

.nasa-card-body.has-image .nasa-card-copy {
  padding: 18px 16px 18px 18px;
}

.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);
}

html[data-direct-theme='light'] .nasa-badge-link.is-active {
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.28), 0 0 0 2px rgba(239, 68, 68, 0.22);
}

.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;
}

html[data-direct-theme='light'] .nasa-badge {
  background: linear-gradient(180deg, rgba(252, 165, 165, 0.34), rgba(254, 226, 226, 0.94));
  color: #111827;
  border: 1px solid rgba(239, 68, 68, 0.34);
}

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

html[data-direct-theme='light'] .nasa-badge-source,
html[data-direct-theme='light'] .nasa-topic,
html[data-direct-theme='light'] .nasa-featured-card .nasa-badge,
html[data-direct-theme='light'] .nasa-featured-card .nasa-topic,
html[data-direct-theme='light'] .nasa-detail-header .nasa-badge,
html[data-direct-theme='light'] .nasa-detail-header .nasa-topic,
html[data-direct-theme='light'] .nasa-featured-card .nasa-badge-source,
html[data-direct-theme='light'] .nasa-detail-header .nasa-badge-source {
  color: #111827;
}

.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;
}

html[data-direct-theme='light'] .nasa-badge-glyph {
  background: rgba(239, 68, 68, 0.28);
  color: #991b1b;
}

.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;
}

html[data-direct-theme='light'] .nasa-topic {
  background: rgba(203, 213, 225, 0.78);
  color: #334155;
  border: 1px solid rgba(148, 163, 184, 0.34);
}

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

html[data-direct-theme='light'] .nasa-card-title,
html[data-direct-theme='light'] .nasa-detail-title {
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: -0.015em;
}

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

html[data-direct-theme='light'] .nasa-card-title a,
html[data-direct-theme='light'] .nasa-back-link,
html[data-direct-theme='light'] .nasa-inline-link {
  color: #0f172a;
}

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

html[data-direct-theme='light'] .nasa-card-title a:hover,
html[data-direct-theme='light'] .nasa-inline-link:hover,
html[data-direct-theme='light'] .nasa-back-link:hover {
  color: #b91c1c;
}

.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;
  min-width: 0;
  overflow-wrap: anywhere;
}

.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;
}

html[data-direct-theme='light'] .nasa-card-summary,
html[data-direct-theme='light'] .nasa-detail-copy p {
  color: rgba(30, 41, 59, 0.94);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.74;
}

.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;
  width: 100%;
  max-width: 100%;
  background: rgba(0, 0, 0, 0.4);
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.nasa-card-media {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: #020617;
  aspect-ratio: 16 / 9;
  overflow: visible;
}

.direct-audio-detail-wrap {
  background: #020617;
}

.direct-audio-video-player {
  background: transparent;
}

.direct-audio-video-player::-webkit-media-controls-panel {
  background: transparent !important;
}

.direct-audio-video-player::-webkit-media-controls-enclosure {
  background: transparent !important;
}

.direct-audio-video-player::-webkit-media-controls-play-button,
.direct-audio-video-player::-webkit-media-controls-mute-button,
.direct-audio-video-player::-webkit-media-controls-volume-slider,
.direct-audio-video-player::-webkit-media-controls-volume-slider-container,
.direct-audio-video-player::-webkit-media-controls-overlay-play-button {
  filter: brightness(0) invert(1);
}

.direct-audio-video-player::-webkit-media-controls-timeline,
.direct-audio-video-player::-webkit-media-controls-current-time-display,
.direct-audio-video-player::-webkit-media-controls-time-remaining-display {
  display: none !important;
}

.direct-audio-duration-label {
  position: absolute;
  left: 12px;
  bottom: 44px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.direct-source-audio-badge {
  top: 50px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.95), rgba(29, 78, 216, 0.88));
  border-color: rgba(191, 219, 254, 0.34);
  color: #eff6ff;
  text-decoration: none;
  cursor: pointer;
}

.direct-source-audio-badge:hover,
.direct-source-audio-badge:focus-visible,
.direct-source-audio-badge.is-active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(191, 219, 254, 0.22), 0 10px 22px rgba(30, 64, 175, 0.22);
}

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

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

.nasa-bundle-stage {
  position: relative;
}

.nasa-sequence-media-link,
.nasa-bundle-media-link {
  display: block;
}

.nasa-bundle-media-link.is-hidden {
  display: none;
}

.nasa-media-credit {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  max-width: min(72%, 280px);
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.66);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.7rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: max-width 0.18s ease, background 0.18s ease;
}

.nasa-media-credit-featured,
.nasa-media-credit-detail {
  font-size: 0.74rem;
}

.nasa-media-credit:hover,
.nasa-media-credit:focus-visible,
.nasa-card:hover .nasa-media-credit,
.nasa-featured-card:hover .nasa-media-credit,
.nasa-detail-image-wrap:hover .nasa-media-credit,
.nasa-bundle-viewer:hover .nasa-media-credit {
  max-width: calc(100% - 20px);
  background: rgba(0, 0, 0, 0.82);
}

@media (hover: none) {
  .nasa-media-credit {
    max-width: calc(100% - 20px);
  }

  .nasa-listen-control-card-inline {
    width: auto;
    min-width: 84px;
    justify-content: flex-start;
  }

  .nasa-listen-control-card-inline .nasa-listen-text {
    width: auto;
    opacity: 1;
  }

  .nasa-translation-control-card-inline .nasa-translation-label {
    width: auto;
    min-width: 112px;
    justify-content: flex-start;
  }

  .nasa-translation-control-card-inline .nasa-translation-select {
    width: auto;
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 640px) {
  .nasa-audio-bar {
    bottom: 10px;
    width: calc(100% - 16px);
    gap: 10px;
    padding: 9px 10px;
  }

  .nasa-audio-bar.is-inline {
    bottom: auto;
    width: 100%;
    margin: 0 0 12px;
  }

  .nasa-audio-bar-progress {
    min-width: 84px;
  }

  .nasa-audio-bar-link {
    display: none;
  }

  .nasa-audio-bar-next {
    padding: 0 10px;
  }

  .nasa-audio-bar-auto {
    padding: 0 10px;
  }
}

.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-bundle-footer {
  position: static;
  right: auto;
  bottom: auto;
  left: auto;
  margin: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}

.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-sequence-caption {
  padding: 12px 14px 14px;
  background: rgba(2, 6, 23, 0.98);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.86rem;
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nasa-sequence-viewer-featured .nasa-sequence-caption,
.nasa-sequence-viewer-detail .nasa-sequence-caption {
  font-size: 0.92rem;
}

.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[hidden] {
  display: none !important;
}

.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-media-badge.nasa-badge-link {
  pointer-events: auto;
  text-decoration: none;
}

.nasa-media-badge-secondary {
  top: 50px;
}

.nasa-media-badge-featured.nasa-media-badge-secondary {
  top: 54px;
}

.nasa-media-badge-live {
  background: rgba(127, 29, 29, 0.9);
  border-color: rgba(252, 165, 165, 0.45);
  color: #fff;
}

.nasa-media-badge-live::before {
  content: "●";
  margin-right: 7px;
  font-size: 0.66rem;
  color: #fca5a5;
}

.nasa-media-badge-upcoming {
  background: rgba(120, 53, 15, 0.92);
  border-color: rgba(253, 186, 116, 0.42);
  color: #fff7ed;
}

.nasa-media-badge-upcoming::before {
  content: "◌";
  margin-right: 7px;
  font-size: 0.72rem;
  color: #fdba74;
}

.direct-item-type-badge-audio::before {
  content: "🔊";
  color: #bfdbfe;
}

.direct-item-type-badge-article::before {
  content: "¶";
  color: #f8fafc;
}

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

.nasa-card-embed,
.nasa-detail-embed {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #020617;
}

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

.nasa-featured-video {
  border-radius: 24px;
}

.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;
}

.direct-related-variants {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.035);
}

html[data-direct-theme='light'] .direct-related-variants {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(248, 250, 252, 0.9);
}

.direct-related-variants-header {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-direct-theme='light'] .direct-related-variants-header {
  color: rgba(127, 29, 29, 0.86);
}

.direct-related-variants-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.direct-related-variant-chip {
  min-height: 38px;
  align-items: center;
  gap: 8px;
}

.direct-related-variant-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  line-height: 1;
  font-size: 0.95rem;
  flex: 0 0 auto;
}

.direct-related-variant-chip-article {
  border-color: rgba(96, 165, 250, 0.28);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.18), rgba(30, 64, 175, 0.12));
}

.direct-related-variant-chip-video {
  border-color: rgba(248, 113, 113, 0.32);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.2), rgba(153, 27, 27, 0.12));
}

.direct-related-variant-chip-photo,
.direct-related-variant-chip-image {
  border-color: rgba(52, 211, 153, 0.28);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.18), rgba(6, 95, 70, 0.12));
}

.direct-related-variant-chip-audio {
  border-color: rgba(250, 204, 21, 0.3);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.18), rgba(146, 64, 14, 0.12));
}

.direct-related-variant-chip.is-active {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.18);
}

.direct-clip-badge {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.22), rgba(153, 27, 27, 0.14));
  border-color: rgba(248, 113, 113, 0.32);
  color: #fff;
}

.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);
}

html[data-direct-theme='light'] .nasa-detail-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  backdrop-filter: none;
}

.nasa-detail-brand-row {
  margin-bottom: 14px;
}

.nasa-detail-brand-logo {
  width: min(156px, 34vw);
}

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

html[data-direct-theme='light'] .nasa-detail-header .nasa-badge,
html[data-direct-theme='light'] .nasa-detail-header .nasa-topic {
  color: #334155;
}

.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;
}

html[data-direct-theme='light'] .nasa-detail-title {
  color: #0f172a;
}

.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;
}

.site-footer-nasa {
  margin: 32px auto 24px;
  padding: 12px 18px;
  max-width: 1100px;
  text-align: center;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
}

.site-footer-nasa a {
  color: #ff6b7d;
  font-weight: 700;
  text-decoration: none;
}

.site-footer-nasa a + a {
  margin-left: 14px;
}

.site-footer-nasa a:hover {
  color: #ff8a97;
  text-decoration: underline;
}

.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-brand-row {
    align-items: flex-start;
  }

  .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-filter-drawer-toggle {
    width: 44px;
    height: 44px;
  }

  .direct-feed-results.is-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .nasa-active-filters {
    align-items: flex-start;
    gap: 8px;
    padding-bottom: 10px;
  }

  .nasa-active-filters-search-wrap {
    flex-basis: 100%;
    min-width: 100%;
  }

  .nasa-card-title-row {
    flex-wrap: wrap;
  }

  .nasa-card-title-row .nasa-listen-control,
  .nasa-card-title-row .nasa-translation-control,
  .nasa-card-title-row .nasa-embed-control,
  .nasa-card-title-row .nasa-share-control,
  .nasa-card-title-row .nasa-download-control {
    margin-top: -2px;
  }

  .nasa-artemis-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nasa-artemis-banner-copy-wrap {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .nasa-active-filters-search-wrap {
    flex: 1 1 180px;
    min-width: 0;
  }

  .nasa-active-inline-filter-label {
    flex-basis: 160px;
    min-width: 140px;
  }

  .nasa-active-search-form {
    gap: 4px;
  }

  .nasa-active-inline-filter-select {
    width: 100%;
    min-height: 34px;
    font-size: 0.7rem;
  }

  .nasa-active-search-input,
  .nasa-active-search-button {
    min-height: 34px;
  }

  .nasa-active-search-input {
    padding-left: 30px;
    padding-right: 10px;
    font-size: 0.84rem;
  }

  .nasa-active-search-button {
    padding: 0 9px;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
  }

  .africa-hero {
    padding: 12px;
  }

  .africa-mode-row {
    display: grid;
    gap: 10px;
  }

  .africa-brand-row {
    gap: 8px;
  }

  .africa-brand-logo {
    width: min(92px, 30vw);
  }

  .africa-mode-nav {
    display: flex;
    width: 100%;
    margin-top: 0;
    padding: 3px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .africa-mode-actions {
    display: flex;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .africa-mode-nav::-webkit-scrollbar {
    display: none;
  }

  .africa-mode-link {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.74rem;
  }

  .nasa-active-search-input,
  .nasa-active-search-button {
    min-height: 34px;
  }

  .nasa-active-search-button {
    padding: 0 10px;
    font-size: 0.74rem;
  }

  .nasa-shell {
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 42px;
  }

  .africa-hero {
    padding-top: 0;
  }

  .direct-site-header-layout {
    gap: 10px;
  }

  .direct-site-header-main {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
  }

  .direct-site-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    padding-bottom: 10px;
  }

  .direct-site-hero .nasa-hero-copy {
    width: 100%;
  }

  .direct-site-brand-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .direct-site-logo-link {
    min-height: 72px;
    padding: 8px 12px;
  }

  .direct-site-logo-image {
    max-height: 72px;
  }

  .direct-site-brand-summary {
    max-width: none;
    font-size: 0.84rem;
  }

  .direct-site-header-tools {
    width: 100%;
    max-width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .direct-site-header-tools .direct-view-toggle {
    width: auto;
  }

  .direct-site-header-context {
    width: 100%;
  }

  .direct-site-account .login-avatar-label {
    display: none;
  }

  .direct-site-join-button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .africa-brand-row {
    gap: 6px;
  }

  .africa-brand-logo {
    width: min(72px, 23vw);
  }

  .nasa-hero {
    padding: 12px;
  }

  .nasa-brand-row {
    gap: 10px;
  }

  .nasa-brand-logo {
    width: min(150px, 48vw);
  }

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

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

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

  .nasa-detail-brand-logo {
    width: min(138px, 44vw);
  }

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

body.host-africa {
  background:
    radial-gradient(circle at top left, rgba(220, 38, 38, 0.24), transparent 34%),
    radial-gradient(circle at top right, rgba(234, 179, 8, 0.18), transparent 28%),
    linear-gradient(180deg, #030303 0%, #0a0a0a 48%, #050505 100%);
}

.africa-shell {
  --africa-red: #d62828;
  --africa-gold: #f2b705;
  --africa-green: #1f8a43;
  --africa-ink: #050505;
}

body.host-direct,
body.host-focal.host-direct {
  padding-top: 0 !important;
}

.africa-hero {
  padding-top: 0;
}

.direct-site-hero {
  position: sticky;
  top: 0;
  z-index: 950;
  display: block;
  width: 100vw;
  max-width: none;
  margin-top: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-top: 0;
  padding-left: max(18px, env(safe-area-inset-left));
  padding-right: max(18px, env(safe-area-inset-right));
  padding-bottom: 12px;
  border-radius: 0;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.direct-site-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 3, 3, 0.96) 0%, rgba(5, 5, 5, 0.92) 72%, rgba(5, 5, 5, 0.82) 100%);
  border-bottom: 1px solid rgba(242, 183, 5, 0.14);
  border-radius: inherit;
  pointer-events: none;
}

html[data-direct-theme='light'] .direct-site-hero::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 251, 249, 0.94) 72%, rgba(255, 248, 245, 0.88) 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.direct-site-hero > * {
  position: relative;
  z-index: 1;
}

.direct-site-hero .nasa-hero-copy {
  display: block;
  width: min(1320px, 100%);
  margin: 0 auto;
  min-width: 0;
}

body.host-direct .nasa-page.africa-page {
  padding-top: 0;
}

.africa-brand-row {
  align-items: center;
}

.africa-mode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.africa-mode-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.direct-site-header-layout {
  display: grid;
  gap: 14px;
  width: 100%;
}

.direct-site-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(14, 23, 42, 0.94), rgba(10, 15, 28, 0.9));
  border: 1px solid rgba(242, 183, 5, 0.16);
  box-shadow: 0 16px 38px rgba(2, 6, 23, 0.28);
}

.direct-site-brand-block {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1 1 auto;
}

.direct-site-logo-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.direct-site-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 10px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.direct-site-logo-image {
  display: block;
  height: 100%;
  max-height: 84px;
  width: auto;
  object-fit: contain;
}

.direct-site-brand-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.direct-site-brand-kicker,
.direct-site-brand-summary {
  margin: 0;
}

.direct-site-brand-kicker {
  color: #fbbf24;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.direct-site-brand-summary {
  max-width: 48ch;
  color: rgba(248, 250, 252, 0.74);
  font-size: 0.92rem;
  line-height: 1.45;
}

.direct-site-brand-language {
  margin-top: 8px;
}

.direct-site-brand-language .nasa-translation-label {
  min-height: 34px;
  width: auto;
  min-width: 172px;
  padding: 0 12px;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
  border-color: rgba(242, 183, 5, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 248, 232, 0.9);
}

.direct-site-brand-language .nasa-translation-select {
  width: auto;
  min-width: 116px;
  opacity: 1;
  pointer-events: auto;
  color: #fff;
}

.direct-site-brand-language:hover .nasa-translation-label,
.direct-site-brand-language:focus-within .nasa-translation-label {
  background: rgba(255, 209, 102, 0.12);
  border-color: rgba(242, 183, 5, 0.28);
}

.direct-site-brand-language .nasa-translation-select option {
  color: #111827;
}

.direct-site-header-row {
  width: 100%;
  justify-content: center;
}

.direct-site-header-nav {
  justify-content: center;
}

.africa-mode-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  padding: 5px;
  border-radius: 999px;
  background: rgba(8, 15, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.africa-mode-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
  padding: 5px;
  border-radius: 18px;
  background: rgba(8, 15, 28, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  max-width: 100%;
}

.direct-site-header-tools {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
  max-width: min(100%, 460px);
}

.direct-site-notifications {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.direct-site-notifications .notification-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.direct-site-notifications .notification-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(242, 183, 5, 0.16);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.2);
  cursor: pointer;
}

.direct-site-notifications .notification-bell:hover,
.direct-site-notifications .notification-bell:focus-visible {
  background: rgba(255, 209, 102, 0.12);
  border-color: rgba(242, 183, 5, 0.28);
  outline: none;
}

.direct-site-notifications .notification-bell img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  filter: brightness(0) saturate(100%) invert(16%) sepia(93%) saturate(2952%) hue-rotate(349deg) brightness(82%) contrast(101%);
}

.direct-site-notifications .notification-bell .badge {
  position: absolute;
  top: 2px;
  right: 1px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 6px 14px rgba(127, 29, 29, 0.32);
}

.direct-site-notifications .modal-notifications {
  right: 0;
  top: calc(100% + 10px);
  min-width: 320px;
  max-width: min(92vw, 380px);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(8, 15, 28, 0.98);
  border: 1px solid rgba(242, 183, 5, 0.18);
  box-shadow: 0 20px 42px rgba(2, 6, 23, 0.34);
}

.direct-site-notifications .modal-notifications .modal-header {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.direct-site-notifications .modal-notifications .modal-header h4 {
  margin: 0;
  color: #fff;
  font-size: 0.92rem;
}

.direct-site-notifications .modal-notifications .modal-body {
  max-height: min(60vh, 420px);
  overflow-y: auto;
  padding: 10px 12px 12px;
}

.direct-site-notifications .modal-notifications .notification-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.direct-site-notifications .modal-notifications li {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.direct-site-notifications .modal-notifications li.unread {
  background: rgba(255, 209, 102, 0.12);
  border-color: rgba(242, 183, 5, 0.22);
}

.direct-site-notifications .modal-notifications .notification-message {
  color: rgba(248, 250, 252, 0.94);
  font-size: 0.84rem;
  line-height: 1.5;
}

.direct-site-notifications .modal-notifications .timestamp,
.direct-site-notifications .modal-notifications .empty {
  color: rgba(226, 232, 240, 0.72);
}

html[data-direct-theme='light'] .direct-site-notifications .notification-bell {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(148, 163, 184, 0.34);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

html[data-direct-theme='light'] .direct-site-notifications .notification-bell:hover,
html[data-direct-theme='light'] .direct-site-notifications .notification-bell:focus-visible {
  background: rgba(255, 241, 242, 0.98);
  border-color: rgba(239, 68, 68, 0.28);
}

html[data-direct-theme='light'] .direct-site-notifications .notification-bell img {
  filter: brightness(0) saturate(100%) invert(16%) sepia(93%) saturate(2952%) hue-rotate(349deg) brightness(82%) contrast(101%);
}

html[data-direct-theme='light'] .direct-site-notifications .modal-notifications {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(203, 213, 225, 0.78);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.16);
}

html[data-direct-theme='light'] .direct-site-notifications .modal-notifications .modal-header {
  border-bottom-color: rgba(226, 232, 240, 0.9);
  background: rgba(248, 250, 252, 0.9);
}

html[data-direct-theme='light'] .direct-site-notifications .modal-notifications .modal-header h4,
html[data-direct-theme='light'] .direct-site-notifications .modal-notifications .notification-message {
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-site-notifications .modal-notifications li {
  background: rgba(248, 250, 252, 0.92);
  border-color: rgba(226, 232, 240, 0.9);
}

html[data-direct-theme='light'] .direct-site-notifications .modal-notifications li.unread {
  background: rgba(254, 240, 138, 0.5);
  border-color: rgba(245, 158, 11, 0.22);
}

html[data-direct-theme='light'] .direct-site-notifications .modal-notifications .timestamp,
html[data-direct-theme='light'] .direct-site-notifications .modal-notifications .empty {
  color: #475569;
}

.direct-site-header-tools .direct-view-toggle {
  flex: 0 0 auto;
}

.direct-site-header-context {
  display: flex;
  width: 100%;
}

.direct-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 40px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff8e8;
}

.direct-theme-toggle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 248, 232, 0.72);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.direct-theme-toggle-button:hover,
.direct-theme-toggle-button:focus-visible {
  background: rgba(255, 209, 102, 0.12);
  color: #fff;
}

.direct-theme-toggle-button:focus-visible {
  outline: 2px solid rgba(255, 77, 77, 0.7);
  outline-offset: 2px;
}

.direct-theme-toggle-button.is-active {
  background: linear-gradient(180deg, rgba(255, 176, 32, 0.3), rgba(202, 138, 4, 0.2));
  color: #fffdf3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.direct-theme-toggle-icon {
  font-size: 0.96rem;
  line-height: 1;
}

.direct-site-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0;
  flex: 0 0 auto;
}

.direct-site-join-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(214, 40, 40, 0.52);
  border-radius: 999px;
  background: linear-gradient(135deg, #d62828 0%, #b91c1c 100%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(127, 29, 29, 0.22);
}

.direct-site-join-button:hover,
.direct-site-join-button:focus-visible {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: rgba(239, 68, 68, 0.72);
}

.direct-site-account .avatar-dropdown,
.direct-site-account .login-dropdown {
  margin-left: 0;
}

.direct-site-account .avatar-trigger,
.direct-site-account .login-avatar-trigger {
  min-height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(242, 183, 5, 0.28);
  color: #fff8e8;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.22);
}

.direct-site-account .avatar-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
}

.direct-site-account .avatar-dropdown .avatar {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(242, 183, 5, 0.52);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.direct-site-account .login-avatar-trigger {
  padding: 3px 14px 3px 5px;
}

.direct-site-account .login-avatar-circle {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #d62828 0%, #ef4444 100%);
}

.direct-site-account .login-avatar-label {
  color: #fff8e8;
}

html[data-direct-theme='light'] .direct-site-logo-link,
html[data-direct-theme='light'] .direct-site-header-main,
html[data-direct-theme='light'] .africa-mode-nav,
html[data-direct-theme='light'] .africa-mode-actions,
html[data-direct-theme='light'] .direct-theme-toggle,
html[data-direct-theme='light'] .direct-site-account .avatar-trigger,
html[data-direct-theme='light'] .direct-site-account .login-avatar-trigger {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(148, 163, 184, 0.34);
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-site-account .avatar-trigger,
html[data-direct-theme='light'] .direct-site-account .login-avatar-trigger {
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.16);
}

html[data-direct-theme='light'] .direct-site-account .avatar-dropdown .avatar {
  border-color: rgba(185, 28, 28, 0.34);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95);
}

html[data-direct-theme='light'] .direct-site-header-main {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  box-shadow: 0 16px 36px rgba(148, 163, 184, 0.16);
}

html[data-direct-theme='light'] .direct-site-brand-kicker {
  color: #b91c1c;
}

html[data-direct-theme='light'] .direct-site-brand-summary {
  color: rgba(15, 23, 42, 0.72);
}

html[data-direct-theme='light'] .direct-site-brand-language .nasa-translation-label {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(15, 23, 42, 0.92);
}

html[data-direct-theme='light'] .direct-site-brand-language .nasa-translation-select {
  color: #111827;
}

html[data-direct-theme='light'] .direct-theme-toggle-button {
  color: rgba(15, 23, 42, 0.72);
}

html[data-direct-theme='light'] .direct-theme-toggle-button:hover,
html[data-direct-theme='light'] .direct-theme-toggle-button:focus-visible {
  background: rgba(239, 68, 68, 0.08);
  color: #111827;
}

html[data-direct-theme='light'] .direct-theme-toggle-button.is-active {
  color: #fff;
  background: linear-gradient(135deg, #1f2937 0%, #0f172a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-direct-theme='light'] .direct-site-account .login-avatar-label,
html[data-direct-theme='light'] .direct-site-account .avatar-trigger {
  color: #0f172a;
}

.direct-site-account .dropdown-menu,
.direct-site-account .login-menu {
  margin-top: 6px;
}

.direct-site-account .dropdown-menu a,
.direct-site-account .login-menu a,
.direct-site-account .avatar-menu-profile strong,
.direct-site-account .avatar-menu-profile span {
  color: #111827;
}

.africa-mode-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(255, 248, 232, 0.82);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.direct-site-nav-button {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  gap: 6px;
  white-space: nowrap;
}

.direct-site-nav-button:disabled {
  cursor: default;
  opacity: 0.55;
}

.direct-site-nav-button .nasa-listen-icon {
  font-size: 0.88rem;
  line-height: 1;
}

.direct-site-nav-button-label {
  line-height: 1;
}

html[data-direct-theme='light'] .africa-mode-link {
  color: rgba(30, 41, 59, 0.86);
}

.africa-mode-link:hover,
.africa-mode-link:focus-visible {
  color: #fff;
  background: rgba(255, 209, 102, 0.12);
}

.africa-mode-link.is-active {
  color: #fffdf3;
  background: linear-gradient(180deg, rgba(255, 176, 32, 0.3), rgba(202, 138, 4, 0.2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-direct-theme='light'] .africa-mode-link:hover,
html[data-direct-theme='light'] .africa-mode-link:focus-visible {
  background: rgba(239, 68, 68, 0.08);
  color: #111827;
}

html[data-direct-theme='light'] .africa-mode-link.is-active {
  color: #7f1d1d;
  background: linear-gradient(180deg, rgba(254, 226, 226, 0.96), rgba(254, 242, 242, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.africa-mode-nav::-webkit-scrollbar,
.africa-mode-actions::-webkit-scrollbar {
  display: none;
}

.africa-mode-translate-control {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  align-self: center;
}

.africa-mode-listen-control {
  min-width: 88px;
  min-height: 30px;
  width: auto;
  align-self: center;
  box-sizing: border-box;
  justify-content: flex-start;
  padding-top: 0;
  padding-bottom: 0;
  background: rgba(214, 40, 40, 0.9);
  border-color: rgba(214, 40, 40, 0.95);
  color: #fff8f8;
}

.africa-mode-listen-control:hover,
.africa-mode-listen-control:focus-visible,
.africa-mode-listen-control.is-loading,
.africa-mode-listen-control.is-playing {
  background: #d62828;
  border-color: #ef4444;
  color: #fff;
}

.africa-mode-listen-control .nasa-listen-text {
  width: auto;
  opacity: 1;
}

.africa-mode-actions .africa-mode-translate-control .nasa-translation-label {
  min-height: 30px;
  width: auto;
  min-width: 112px;
  padding: 0 10px;
  padding-top: 0;
  padding-bottom: 0;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
  border-color: rgba(242, 183, 5, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 248, 232, 0.82);
}

html[data-direct-theme='light'] .africa-mode-actions .africa-mode-translate-control .nasa-translation-label {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.82);
  color: rgba(15, 23, 42, 0.9);
}

.africa-mode-actions .africa-mode-translate-control .nasa-translation-select {
  width: auto;
  min-width: 78px;
  opacity: 1;
  pointer-events: auto;
}

.africa-mode-actions .africa-mode-translate-control:hover .nasa-translation-label,
.africa-mode-actions .africa-mode-translate-control:focus-within .nasa-translation-label {
  background: rgba(255, 209, 102, 0.12);
  border-color: rgba(242, 183, 5, 0.28);
}

.africa-mode-actions .africa-mode-translate-control .nasa-translation-select {
  color: #fff;
}

html[data-direct-theme='light'] .africa-mode-actions .africa-mode-translate-control .nasa-translation-select {
  color: #111827;
}

.africa-mode-actions .africa-mode-translate-control .nasa-translation-select option {
  color: #111827;
}

.direct-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(242, 183, 5, 0.16);
}

html[data-direct-theme='light'] .direct-view-toggle {
  background: rgba(226, 232, 240, 0.96);
  border-color: rgba(148, 163, 184, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.direct-view-toggle-button {
  appearance: none;
  border: 0;
  min-height: 32px;
  min-width: 32px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 248, 232, 0.82);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

html[data-direct-theme='light'] .direct-view-toggle-button {
  color: #334155;
}

.direct-view-toggle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.direct-view-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  line-height: 1;
}

.direct-view-toggle-icon svg {
  display: block;
  width: 14px;
  height: 14px;
}

.direct-view-toggle-button:hover,
.direct-view-toggle-button:focus-visible {
  color: #fff;
  background: rgba(255, 209, 102, 0.12);
}

html[data-direct-theme='light'] .direct-view-toggle-button:hover,
html[data-direct-theme='light'] .direct-view-toggle-button:focus-visible {
  color: #111827;
  background: rgba(239, 68, 68, 0.08);
}

.direct-view-toggle-button.is-active {
  color: #fffdf3;
  background: linear-gradient(180deg, rgba(255, 176, 32, 0.3), rgba(202, 138, 4, 0.2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-direct-theme='light'] .direct-view-toggle-button.is-active {
  color: #fff;
  background: linear-gradient(180deg, rgba(51, 65, 85, 0.96), rgba(15, 23, 42, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.direct-feed-results.is-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 275px), 1fr));
  align-items: start;
}

@media (max-width: 1180px) {
  .direct-feed-results.is-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr));
  }
}

@media (max-width: 900px) {
  .direct-feed-results.is-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
  }
}

.direct-feed-results.is-grid .nasa-card,
.direct-feed-results.is-grid .nasa-featured-card {
  min-width: 0;
  height: 100%;
}

.direct-feed-results.is-grid .nasa-card-body.has-image,
.direct-feed-results.is-grid .nasa-featured-inner.has-image {
  grid-template-columns: 1fr;
}

.direct-feed-results.is-grid .nasa-card-image-link,
.direct-feed-results.is-grid .nasa-featured-image-link {
  order: -1;
  max-height: 220px;
}

.direct-feed-results.is-grid .nasa-card-media,
.direct-feed-results.is-grid .nasa-featured-media,
.direct-feed-results.is-grid .nasa-card-embed-wrap,
.direct-feed-results.is-grid .nasa-featured-embed-wrap {
  order: -1;
}

.direct-feed-results.is-grid .nasa-card-copy,
.direct-feed-results.is-grid .nasa-featured-copy {
  padding: 18px;
}

.direct-feed-results.is-grid .nasa-featured-kicker-row {
  gap: 8px;
  margin-bottom: 10px;
}

.direct-feed-results.is-grid .nasa-card-title,
.direct-feed-results.is-grid .nasa-featured-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 1.02rem;
  line-height: 1.22;
}

.direct-feed-results.is-grid .nasa-card-summary,
.direct-feed-results.is-grid .nasa-featured-summary {
  display: none;
}

.direct-feed-results.is-grid .nasa-card-action-row,
.direct-feed-results.is-grid .nasa-card-action-row-featured {
  flex-wrap: wrap;
  gap: 8px;
}

.direct-feed-results.is-grid .nasa-card-video,
.direct-feed-results.is-grid .nasa-featured-video,
.direct-feed-results.is-grid .nasa-card-embed,
.direct-feed-results.is-grid .direct-audio-video-player {
  min-height: 220px;
}

.direct-feed-results.is-grid .direct-audio-card-media,
.direct-feed-results.is-grid .direct-audio-featured-media {
  min-height: 248px;
}

.direct-feed-results.is-grid .direct-audio-controls {
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 8px 10px;
  gap: 8px;
}

.direct-feed-results.is-grid .nasa-media-credit {
  font-size: 0.72rem;
}

.africa-brand-logo {
  width: 92px;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.28));
}

.africa-title {
  color: #fff;
  font-size: clamp(1.45rem, 2.65vw, 2.05rem);
  letter-spacing: 0.02em;
}

.africa-title em {
  color: #f2b705;
}

.nasa-shell.africa-shell .nasa-filter-drawer,
.nasa-shell.africa-shell .nasa-detail-card,
.nasa-shell.africa-shell .nasa-card,
.nasa-shell.africa-shell .nasa-featured-card,
.nasa-shell.africa-shell .nasa-empty-state,
.nasa-shell.africa-shell .nasa-audio-bar {
  border-color: rgba(242, 183, 5, 0.22);
  background: rgba(7, 7, 7, 0.94);
}

html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-filter-drawer,
html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-detail-card,
html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-card,
html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-empty-state,
html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-audio-bar {
  border-color: rgba(203, 213, 225, 0.5);
  background: rgba(255, 255, 255, 0.985);
}

html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-featured-card {
  border-color: rgba(203, 213, 225, 0.5);
  background:
    radial-gradient(circle at top right, rgba(248, 113, 113, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 255, 255, 0.97));
}

.nasa-shell.africa-shell .nasa-badge,
.nasa-shell.africa-shell .nasa-chip,
.nasa-shell.africa-shell .nasa-media-badge,
.nasa-shell.africa-shell .nasa-button-primary,
.nasa-shell.africa-shell .nasa-filter-toggle-count,
.nasa-shell.africa-shell .nasa-chip-active {
  background: rgba(214, 40, 40, 0.18);
  border-color: rgba(214, 40, 40, 0.42);
  color: #fff;
}

.nasa-shell.africa-shell .nasa-button-primary:hover,
.nasa-shell.africa-shell .nasa-button-primary:focus-visible,
.nasa-shell.africa-shell .nasa-chip:hover,
.nasa-shell.africa-shell .nasa-chip:focus-visible,
.nasa-shell.africa-shell .nasa-badge-link:hover,
.nasa-shell.africa-shell .nasa-badge-link:focus-visible {
  background: rgba(31, 138, 67, 0.22);
  border-color: rgba(31, 138, 67, 0.48);
}

.nasa-shell.africa-shell .nasa-active-search-input {
  border-color: rgba(242, 183, 5, 0.22);
  background: rgba(7, 7, 7, 0.94);
  color: #fff;
}

html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-active-inline-filter-select,
html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-active-search-input {
  border-color: rgba(203, 213, 225, 0.5);
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
}

.nasa-shell.africa-shell .nasa-topic {
  background: rgba(242, 183, 5, 0.12);
  border-color: rgba(242, 183, 5, 0.3);
  color: #fff0b3;
}

.nasa-shell.africa-shell .nasa-active-filters-clear,
.nasa-shell.africa-shell .nasa-back-link,
.nasa-shell.africa-shell .nasa-detail-download-link,
.nasa-shell.africa-shell .nasa-audio-bar-link {
  color: #f2b705;
}

.nasa-shell.africa-shell .nasa-active-filters-clear:hover,
.nasa-shell.africa-shell .nasa-back-link:hover,
.nasa-shell.africa-shell .nasa-detail-download-link:hover,
.nasa-shell.africa-shell .nasa-audio-bar-link:hover {
  color: #fff;
}

html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-chip,
html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-chip-active,
html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-chip:hover,
html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-chip.is-active {
  color: #111827;
}

html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-chip-dismiss {
  color: #111827;
  background: rgba(255, 255, 255, 0.42);
}

.nasa-shell.africa-shell .nasa-card.is-narrating,
.nasa-shell.africa-shell .nasa-featured-card.is-narrating {
  box-shadow: 0 0 0 1px rgba(242, 183, 5, 0.4), 0 0 0 6px rgba(214, 40, 40, 0.08);
}

.africa-mode-button {
  font: inherit;
  cursor: pointer;
  background: #d62828;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.africa-mode-button[disabled] {
  opacity: 0.52;
  cursor: not-allowed;
}

.direct-clips-watch-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(242, 183, 5, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
}


.direct-clips-watch-playing {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid rgba(242, 183, 5, 0.24);
  border-radius: 999px;
  background: rgba(242, 183, 5, 0.1);
  color: #fff0b3;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.direct-clips-watch-counter {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.direct-clips-watch-stop {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(248, 113, 113, 0.32);
  border-radius: 999px;
  background: rgba(214, 40, 40, 0.18);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.direct-clips-watch-stop[disabled] {
  opacity: 0.65;
  cursor: wait;
}

.direct-clips-watch-stop:hover,
.direct-clips-watch-stop:focus-visible {
  background: rgba(214, 40, 40, 0.28);
  border-color: rgba(248, 113, 113, 0.48);
}
.direct-clips-watch-status.is-success {
  border-color: rgba(52, 211, 153, 0.35);
  color: #d1fae5;
}

.direct-clips-watch-status.is-error {
  border-color: rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.nasa-shell.africa-shell .nasa-card.is-watch-dubbing,
.nasa-shell.africa-shell .nasa-featured-card.is-watch-dubbing {
  box-shadow: 0 0 0 1px rgba(242, 183, 5, 0.4), 0 0 0 6px rgba(214, 40, 40, 0.08);
}

.direct-headline-language-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(242, 183, 5, 0.22);
  border-radius: 999px;
  background: rgba(242, 183, 5, 0.10);
  color: #fff0b3;
  font-size: 0.92rem;
  font-weight: 700;
}

.direct-headline-language-note-icon {
  flex: 0 0 auto;
}

.direct-headline-language-note-clear {
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.direct-headline-language-note-clear:hover,
.direct-headline-language-note-clear:focus-visible {
  color: #fca5a5;
}

.direct-headline-listen-modal-backdrop[hidden] {
  display: none !important;
}

.direct-clip-dub-modal-backdrop[hidden] {
  display: none !important;
}

.direct-clip-dub-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px);
}

.direct-clips-dub-modal-subtitle {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.45;
}

.direct-clips-dub-modal-body {
  display: grid;
  gap: 16px;
}

.direct-clips-dub-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.direct-dubbed-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.direct-dubbed-filter-label {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.direct-dubbed-filter-select {
  width: min(280px, 100%);
}

.direct-headline-listen-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px);
}

.direct-headline-listen-modal {
  display: grid;
  gap: 16px;
  width: min(560px, 100%);
  padding: 18px;
  border: 1px solid rgba(242, 183, 5, 0.22);
  border-radius: 22px;
  background: rgba(7, 7, 7, 0.97);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.36);
}

.direct-clips-player-modal {
  width: min(980px, 100%);
}

.direct-clips-player-header-actions {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.direct-network-logo-badge-player {
  position: static;
  min-height: 42px;
  max-width: 100px;
  padding: 6px 10px;
}

.direct-network-logo-badge-player .direct-network-logo-image {
  max-height: 32px;
}

.direct-clips-player-subtitle {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.direct-clips-player-wrap {
  border-radius: 18px;
  overflow: hidden;
  background: #000;
}

.direct-clips-player-video {
  display: block;
  width: 100%;
  max-height: min(72vh, 760px);
  background: #000;
}

.direct-headline-listen-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.direct-headline-listen-title {
  margin: 4px 0 0;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.2;
}

.direct-headline-listen-close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  font-size: 1.25rem;
  cursor: pointer;
}

.direct-headline-listen-modal-body {
  display: grid;
  gap: 10px;
}

.direct-headline-listen-label {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 700;
}

.direct-headline-listen-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.direct-headline-listen-select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: #fff;
  color: #111;
  font: inherit;
}

.direct-headline-listen-select option {
  color: #111;
  background: #fff;
}

.direct-headline-listen-close:hover,
.direct-headline-listen-close:focus-visible {
  background: rgba(214, 40, 40, 0.18);
  border-color: rgba(214, 40, 40, 0.42);
}

@media (max-width: 640px) {
  .direct-dubbed-filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .direct-dubbed-filter-select {
    width: 100%;
  }

  .direct-dubbed-filter-bar .nasa-button {
    width: 100%;
  }

  .direct-clips-watch-status {
    align-items: stretch;
    flex-direction: column;
  }

  .direct-clips-watch-counter {
    width: 100%;
    text-align: center;
  }

  .direct-clips-watch-playing {
    width: 100%;
    text-align: center;
  }

  .direct-clips-watch-stop {
    width: 100%;
  }

  .direct-headline-listen-modal-backdrop {
    padding: 12px;
  }

  .direct-headline-listen-modal {
    padding: 16px;
  }

  .direct-clips-player-video {
    max-height: 56vh;
  }

  .direct-clips-player-header-actions {
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }

  .direct-headline-listen-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .direct-headline-listen-row .nasa-button {
    width: 100%;
  }
}

.nasa-shell.africa-shell .nasa-badge-source.is-allafrica-latest,
.nasa-shell.africa-shell .nasa-badge-source.is-allafrica-africa,
.nasa-shell.africa-shell .nasa-badge-source.is-allafrica-business {
  background: rgba(31, 138, 67, 0.18);
  border-color: rgba(31, 138, 67, 0.48);
}

.nasa-shell.africa-shell .nasa-badge-source.is-africanews,
.nasa-shell.africa-shell .nasa-badge-source.is-africanews-news,
.nasa-shell.africa-shell .nasa-badge-source.is-bbc-africa,
.nasa-shell.africa-shell .nasa-badge-source.is-france24-africa {
  background: rgba(214, 40, 40, 0.18);
  border-color: rgba(214, 40, 40, 0.48);
}

.nasa-shell.africa-shell .nasa-badge-source.is-reliefweb-reports,
.nasa-shell.africa-shell .nasa-badge-source.is-guardian-search,
.nasa-shell.africa-shell .nasa-badge-source.is-globalvoices-full,
.nasa-shell.africa-shell .nasa-badge-source.is-globalvoices-ssa,
.nasa-shell.africa-shell .nasa-badge-source.is-globalvoices-south-africa {
  background: rgba(242, 183, 5, 0.14);
  border-color: rgba(242, 183, 5, 0.42);
  color: #fff8d6;
}

.nasa-shell.africa-shell .nasa-badge-source.is-voa-africa,
.nasa-shell.africa-shell .nasa-badge-source.is-voa-africa-54,
.nasa-shell.africa-shell .nasa-badge-source.is-voa-africa-news-tonight,
.nasa-shell.africa-shell .nasa-badge-source.is-voa-daybreak-africa,
.nasa-shell.africa-shell .nasa-badge-source.is-voa-straight-talk-africa,
.nasa-shell.africa-shell .nasa-badge-source.is-voa-south-sudan-in-focus,
.nasa-shell.africa-shell .nasa-badge-source.is-voa-documentaries,
.nasa-shell.africa-shell .nasa-badge-source.is-voa-highlights,
.nasa-shell.africa-shell .nasa-badge-source.is-voa-startup-africa,
.nasa-shell.africa-shell .nasa-badge-source.is-voa-african-beat {
  background: rgba(214, 40, 40, 0.22);
  border-color: rgba(242, 183, 5, 0.55);
  color: #fff6cf;
  box-shadow: 0 0 0 1px rgba(214, 40, 40, 0.12);
}

.nasa-shell.africa-shell .nasa-badge-source.is-voa-africa-54,
.nasa-shell.africa-shell .nasa-badge-source.is-voa-straight-talk-africa,
.nasa-shell.africa-shell .nasa-badge-source.is-voa-documentaries,
.nasa-shell.africa-shell .nasa-badge-source.is-voa-highlights,
.nasa-shell.africa-shell .nasa-badge-source.is-voa-startup-africa {
  background: linear-gradient(135deg, rgba(214, 40, 40, 0.24), rgba(31, 138, 67, 0.18));
  border-color: rgba(242, 183, 5, 0.62);
}

.nasa-shell.africa-shell .nasa-badge-source.is-cgtn-video,
.nasa-shell.africa-shell .nasa-badge-source.is-cgtn-live,
.nasa-shell.africa-shell .nasa-badge-source.is-cgtn-documentary,
.nasa-shell.africa-shell .nasa-badge-source.is-cgtn-china-africa-talk {
  background: rgba(242, 183, 5, 0.18);
  border-color: rgba(242, 183, 5, 0.55);
  color: #fff9dc;
  box-shadow: 0 0 0 1px rgba(242, 183, 5, 0.08);
}

.nasa-shell.africa-shell .nasa-badge-source.is-dw-africalink,
.nasa-shell.africa-shell .nasa-badge-source.is-dw-african-roots {
  background: rgba(31, 138, 67, 0.2);
  border-color: rgba(31, 138, 67, 0.55);
  color: #edfff1;
}

html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-badge,
html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-topic,
html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-badge-source {
  color: #111827;
}

html[data-direct-theme='light'] .nasa-shell.africa-shell .nasa-media-badge {
  color: #f8fafc;
}

.africa-card-micro-label {
  margin: 2px 0 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 244, 209, 0.72);
}

.africa-card-micro-label-featured {
  margin-top: 4px;
}

.africa-card-micro-label.is-tv {
  color: #ffd879;
}

.africa-card-micro-label.is-audio {
  color: #94efac;
}

.africa-card-micro-label.is-video {
  color: #ffe3e3;
}

.africa-card-micro-label.is-gallery {
  color: #ffe19a;
}

.site-footer-africa {
  margin: 24px auto 20px;
  padding: 12px 18px;
  max-width: 1100px;
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

.site-footer-africa a {
  color: #f2b705;
  font-weight: 700;
  text-decoration: none;
  margin-right: 14px;
}

.site-footer-africa a:last-child {
  margin-right: 0;
}

.site-footer-africa a:hover,
.site-footer-africa a:focus-visible {
  color: #ffffff;
}

.direct-feeds-page {
  padding-bottom: 40px;
}

.direct-feeds-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 20px 0 24px;
}

.direct-network-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.direct-network-logo-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(242, 183, 5, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.direct-network-logo-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.direct-network-logo-card-head h3 {
  margin: 0;
  color: #fff7dd;
  font-size: 1rem;
}

.direct-network-logo-card-head p {
  margin: 6px 0 0;
  color: rgba(255, 244, 209, 0.68);
  font-size: 13px;
}

.direct-network-logo-preview-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 52px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
}

.direct-network-logo-preview {
  display: block;
  max-width: 96px;
  max-height: 38px;
  width: auto;
  height: auto;
}

.direct-network-logo-form,
.direct-network-logo-delete {
  display: grid;
  gap: 12px;
}

.direct-network-logo-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  max-width: 88px;
  padding: 6px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.direct-network-logo-badge.is-featured {
  top: 22px;
  right: 22px;
  min-height: 46px;
  max-width: 110px;
}

.direct-network-logo-image {
  display: block;
  max-width: 100%;
  max-height: 32px;
  width: auto;
  height: auto;
}

.direct-network-logo-badge-inline {
  position: static;
  flex: 0 0 auto;
  min-width: 54px;
  min-height: 30px;
  max-width: 54px;
  padding: 3px 6px;
  border-radius: 10px;
  box-shadow: none;
  margin-right: -2px;
}

.direct-network-logo-badge-inline .direct-network-logo-image {
  max-height: 32px;
  margin: 0 auto;
}

.nasa-detail-header .nasa-card-meta-row {
  gap: 6px;
  align-items: center;
}

.nasa-detail-header .direct-network-logo-badge-inline {
  min-width: 50px;
  max-width: 50px;
  min-height: 28px;
  padding: 2px 4px;
  border-radius: 8px;
  margin-right: -3px;
}




.direct-feed-admin-card {
  margin-bottom: 22px;
  border-radius: 22px;
  padding: 20px;
  border: 1px solid rgba(242, 183, 5, 0.18);
  background: linear-gradient(180deg, rgba(10, 17, 32, 0.94), rgba(7, 13, 26, 0.98));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.direct-feed-exclusions-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
}

.direct-feed-exclusions-modal-backdrop[hidden] {
  display: none;
}

.direct-feed-exclusions-modal {
  width: min(460px, 100%);
  border-radius: 18px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 24px 64px rgba(2, 6, 23, 0.48);
}

.direct-feed-exclusions-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.direct-feed-exclusions-modal-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.direct-feed-exclusions-modal-sub {
  margin: 6px 0 0;
  color: rgba(191, 219, 254, 0.92);
  font-size: 0.9rem;
}

.direct-feed-exclusions-close {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.direct-feed-exclusions-form {
  display: grid;
  gap: 16px;
}

.direct-feed-exclusions-section {
  display: grid;
  gap: 10px;
}

.direct-feed-exclusions-label,
.direct-feed-exclusions-text-label {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
}

.direct-feed-exclusions-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.direct-feed-exclusions-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.direct-feed-exclusions-form textarea {
  width: 100%;
  min-height: 110px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  resize: vertical;
}

.direct-feed-exclusions-help {
  margin: 0;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.84rem;
  line-height: 1.45;
}

.direct-feed-exclusions-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

@media (max-width: 640px) {
  .direct-feed-exclusions-modal {
    padding: 18px;
  }

  .direct-feed-exclusions-type-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .direct-feed-exclusions-actions .nasa-button {
    width: 100%;
  }
}

.direct-feed-admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.direct-feed-admin-card-head h2 {
  margin: 4px 0 0;
  color: #fff7dd;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.direct-feed-admin-help,
.direct-feed-group-note {
  margin: 6px 0 0;
  color: rgba(255, 244, 209, 0.68);
  font-size: 13px;
}

.direct-feeds-summary-card,
.direct-feed-group,
.direct-feed-card {
  border: 1px solid rgba(242, 183, 5, 0.18);
  background: linear-gradient(180deg, rgba(10, 17, 32, 0.94), rgba(7, 13, 26, 0.98));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.direct-feeds-summary-card {
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.direct-feeds-summary-card strong {
  font-size: 28px;
  line-height: 1.1;
  color: #fff7dd;
}

.direct-feeds-summary-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 244, 209, 0.68);
}

.direct-feed-groups {
  display: grid;
  gap: 20px;
}

.direct-feed-group {
  border-radius: 22px;
  padding: 20px;
}

.direct-feed-group-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.direct-feed-group-header h2 {
  margin: 4px 0 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  color: #fff7dd;
}

.direct-feed-group-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 244, 209, 0.72);
  font-size: 13px;
}

.direct-feed-group-stats span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(242, 183, 5, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.direct-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.direct-feed-editor-form {
  display: grid;
  gap: 14px;
}

.direct-feed-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.direct-feed-field {
  display: grid;
  gap: 6px;
}

.direct-feed-field span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 244, 209, 0.56);
}

.direct-feed-field input,
.direct-feed-field select {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(242, 183, 5, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: #fff7dd;
  padding: 0 12px;
}

.direct-feed-field input::placeholder {
  color: rgba(255, 244, 209, 0.38);
}

.direct-date-wrapper {
  position: relative;
}

.direct-date-wrapper input[data-direct-date-input] {
  padding-right: 48px;
  cursor: pointer;
}

.direct-date-trigger {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: rgba(242, 183, 5, 0.14);
  color: #fff7dd;
  cursor: pointer;
}

.direct-date-popup {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  width: min(320px, calc(100vw - 32px));
  border-radius: 18px;
  border: 1px solid rgba(242, 183, 5, 0.24);
  background: linear-gradient(180deg, rgba(10, 17, 32, 0.98), rgba(7, 13, 26, 1));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
  padding: 14px;
}

.direct-date-popup-head,
.direct-date-popup-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.direct-date-popup-head {
  margin-bottom: 10px;
}

.direct-date-title {
  flex: 1;
  text-align: center;
  color: #fff7dd;
  font-weight: 700;
}

.direct-date-nav,
.direct-date-action {
  border: 1px solid rgba(242, 183, 5, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #fff7dd;
  border-radius: 10px;
  min-height: 36px;
  padding: 0 12px;
  cursor: pointer;
}

.direct-date-weekdays,
.direct-date-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.direct-date-weekdays {
  margin-bottom: 8px;
}

.direct-date-weekdays span {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 244, 209, 0.56);
}

.direct-date-cell {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff7dd;
  cursor: pointer;
}

.direct-date-cell.is-empty {
  background: transparent;
  cursor: default;
}

.direct-date-cell.is-today {
  border-color: rgba(242, 183, 5, 0.4);
}

.direct-date-cell.is-selected {
  background: #f2b705;
  color: #0a1120;
  font-weight: 700;
}

.direct-date-cell.is-focused,
.direct-date-cell:focus-visible {
  outline: 2px solid rgba(255, 247, 221, 0.92);
  outline-offset: 1px;
}

.direct-date-popup-actions {
  margin-top: 12px;
}

.direct-feed-field-wide {
  grid-column: 1 / -1;
}

.direct-feed-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.direct-feed-feedback {
  min-height: 20px;
  margin: 0;
  color: rgba(255, 244, 209, 0.72);
  font-size: 13px;
}

.direct-feed-feedback.is-good {
  color: #b7f5c7;
}

.direct-feed-feedback.is-bad {
  color: #ffb4b4;
}

.direct-feed-card {
  border-radius: 18px;
  padding: 16px;
}

.direct-feed-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.direct-feed-card-head h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #fff7dd;
}

.direct-feed-source-key {
  margin: 6px 0 0;
  word-break: break-word;
  color: rgba(255, 244, 209, 0.58);
  font-size: 12px;
}

.direct-feed-tag-row,
.direct-feed-aggregation-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.direct-feed-tag-row {
  margin-top: 8px;
}

.direct-feed-tag,
.direct-feed-aggregation-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(242, 183, 5, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 248, 230, 0.92);
  font-size: 12px;
}

.direct-feed-aggregation-chip {
  text-decoration: none;
}

.direct-feed-aggregation-chip.is-active {
  background: rgba(242, 183, 5, 0.16);
  border-color: rgba(242, 183, 5, 0.45);
  color: #fff7dd;
}

.direct-feed-aggregations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.direct-feed-aggregation-block {
  display: grid;
  gap: 10px;
}

.direct-feed-aggregation-block h3 {
  margin: 0;
  color: #fff7dd;
  font-size: 1rem;
}

.direct-feed-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.direct-feed-status.is-configured {
  background: rgba(31, 138, 67, 0.16);
  color: #b7f5c7;
  border: 1px solid rgba(31, 138, 67, 0.36);
}

.direct-feed-status.is-discovered {
  background: rgba(242, 183, 5, 0.12);
  color: #ffe7a0;
  border: 1px solid rgba(242, 183, 5, 0.36);
}

.direct-feed-meta {
  display: grid;
  gap: 12px;
  margin: 0;
}

.direct-feed-meta div {
  display: grid;
  gap: 4px;
}

.direct-feed-meta dt {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 244, 209, 0.56);
}

.direct-feed-meta dd {
  margin: 0;
  color: rgba(255, 248, 230, 0.92);
  word-break: break-word;
}

.direct-feed-url {
  color: #f2b705;
  text-decoration: none;
}

.direct-feed-url:hover,
.direct-feed-url:focus-visible {
  color: #fff7dd;
}

.direct-feed-empty {
  color: rgba(255, 244, 209, 0.56);
}

.direct-download-analytics-card {
  display: grid;
  gap: 16px;
}

.direct-download-analytics-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.direct-download-analytics-summary-card {
  margin: 0;
}

.direct-download-analytics-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.direct-download-analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.direct-download-analytics-block {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(242, 183, 5, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.direct-download-analytics-block-wide {
  margin-top: 2px;
}

.direct-download-analytics-block h3 {
  margin: 0;
  color: #fff7dd;
  font-size: 1rem;
}

.direct-download-analytics-list {
  display: grid;
  gap: 10px;
}

.direct-download-analytics-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.direct-download-analytics-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.direct-download-analytics-row strong {
  color: #fff7dd;
}

.direct-download-analytics-row p {
  margin: 4px 0 0;
  color: rgba(255, 244, 209, 0.68);
  font-size: 0.84rem;
  line-height: 1.45;
}

.direct-download-analytics-row-meta {
  display: grid;
  gap: 4px;
  min-width: 118px;
  text-align: right;
}

.direct-download-analytics-row-meta span {
  color: rgba(255, 244, 209, 0.62);
  font-size: 0.8rem;
  line-height: 1.35;
}

html[data-direct-theme='light'] .direct-download-analytics-block {
  border-color: rgba(203, 213, 225, 0.62);
  background: rgba(248, 250, 252, 0.96);
}

html[data-direct-theme='light'] .direct-download-analytics-block h3,
html[data-direct-theme='light'] .direct-download-analytics-row strong {
  color: #111827;
}

html[data-direct-theme='light'] .direct-download-analytics-row {
  border-top-color: rgba(203, 213, 225, 0.8);
}

html[data-direct-theme='light'] .direct-download-analytics-row p,
html[data-direct-theme='light'] .direct-download-analytics-row-meta span {
  color: rgba(15, 23, 42, 0.72);
}

.direct-feed-actions {
  margin-top: 16px;
}

@media (max-width: 720px) {
  .direct-feed-admin-card,
  .direct-feed-group {
    padding: 16px;
  }

  .direct-feed-admin-card-head,
  .direct-feed-group-header,
  .direct-feed-card-head {
    flex-direction: column;
  }

  .direct-download-analytics-row {
    flex-direction: column;
  }

  .direct-download-analytics-row-meta {
    min-width: 0;
    text-align: left;
  }

  .direct-feed-form-grid {
    grid-template-columns: 1fr;
  }

  .direct-network-logo-card-head {
    align-items: flex-start;
    flex-direction: column;
  }


  .direct-network-logo-badge,
  .direct-network-logo-badge.is-featured {
    top: 18px;
    right: 18px;
    max-width: 88px;
  }


  .direct-feed-field-wide {
    grid-column: auto;
  }
}


@media (max-width: 640px) {
  .direct-feed-results.is-grid {
    grid-template-columns: 1fr;
  }

  .direct-view-toggle {
    width: 100%;
    justify-content: center;
  }

  .direct-view-toggle-button {
    flex: 0 0 auto;
    justify-content: center;
    min-width: 36px;
  }
}


.direct-feed-group-stats {
  align-items: center;
}

.direct-feed-group-visibility-button {
  min-height: 34px;
  white-space: nowrap;
  border-color: rgba(214, 40, 40, 0.5);
  background: linear-gradient(180deg, rgba(214, 40, 40, 0.96), rgba(185, 28, 28, 0.92));
  color: #fff;
  box-shadow: 0 10px 24px rgba(127, 29, 29, 0.28);
}

.direct-feed-group-visibility-button:hover,
.direct-feed-group-visibility-button:focus-visible {
  border-color: rgba(248, 113, 113, 0.72);
  background: linear-gradient(180deg, rgba(220, 38, 38, 1), rgba(185, 28, 28, 0.96));
  color: #fff;
}

.direct-feed-card[hidden] {
  display: none !important;
}

.direct-site-logo-card {
  border-color: rgba(214, 40, 40, 0.28);
}

.direct-site-logo-preview-wrap {
  min-width: 88px;
}

.direct-site-logo-preview {
  max-height: 40px;
  object-fit: contain;
}

.direct-auth-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2200;
  padding: 24px;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html[data-direct-theme='light'] .direct-auth-modal {
  background: rgba(226, 232, 240, 0.64);
}

.direct-auth-dialog {
  position: relative;
  width: min(100%, 560px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(242, 183, 5, 0.18);
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(214, 40, 40, 0.22), transparent 34%),
    radial-gradient(circle at top right, rgba(242, 183, 5, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(8, 8, 8, 0.98) 0%, rgba(12, 12, 12, 0.98) 100%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  color: #fff8e8;
}

html[data-direct-theme='light'] .direct-auth-dialog {
  border-color: rgba(148, 163, 184, 0.24);
  background:
    radial-gradient(circle at top left, rgba(239, 68, 68, 0.14), transparent 34%),
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
  color: #0f172a;
}

.direct-auth-dialog-compact {
  width: min(100%, 480px);
}

.direct-auth-shell {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.direct-auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(242, 183, 5, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff8e8;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

html[data-direct-theme='light'] .direct-auth-close {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.86);
  color: #0f172a;
}

.direct-auth-branding {
  display: grid;
  gap: 10px;
  padding-right: 44px;
}

.direct-auth-logo {
  max-width: 180px;
  max-height: 52px;
  width: auto;
  height: auto;
}

.direct-auth-kicker {
  color: rgba(242, 183, 5, 0.88);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

html[data-direct-theme='light'] .direct-auth-kicker {
  color: rgba(185, 28, 28, 0.82);
}

.direct-auth-title {
  margin: 0;
  color: #fff8e8;
  font-size: 2rem;
  line-height: 1.05;
}

html[data-direct-theme='light'] .direct-auth-title {
  color: #0f172a;
}

.direct-auth-subtitle {
  margin: 0;
  color: rgba(255, 248, 232, 0.72);
  font-size: 0.98rem;
  line-height: 1.55;
}

html[data-direct-theme='light'] .direct-auth-subtitle,
html[data-direct-theme='light'] .direct-auth-field > span,
html[data-direct-theme='light'] .direct-auth-links a {
  color: rgba(51, 65, 85, 0.88);
}

.direct-auth-flashes {
  display: grid;
  gap: 10px;
}

.direct-auth-flash {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.92rem;
}

.direct-auth-flash.error,
.direct-auth-flash.danger {
  background: rgba(220, 38, 38, 0.16);
  color: #fecaca;
  border: 1px solid rgba(220, 38, 38, 0.24);
}

.direct-auth-flash.success {
  background: rgba(22, 163, 74, 0.14);
  color: #dcfce7;
  border: 1px solid rgba(22, 163, 74, 0.22);
}

.direct-auth-body {
  margin: 0;
}

.direct-auth-form {
  display: grid;
  gap: 14px;
}

.direct-auth-field {
  display: grid;
  gap: 7px;
}

.direct-auth-field > span {
  color: rgba(255, 248, 232, 0.84);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.direct-auth-field input {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid rgba(242, 183, 5, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff8e8;
  font-size: 0.98rem;
}

html[data-direct-theme='light'] .direct-auth-field input {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.86);
  color: #0f172a;
}

.direct-auth-field input::placeholder {
  color: rgba(255, 248, 232, 0.36);
}

html[data-direct-theme='light'] .direct-auth-field input::placeholder {
  color: rgba(100, 116, 139, 0.76);
}

.direct-auth-field input:focus {
  outline: none;
  border-color: rgba(242, 183, 5, 0.48);
  box-shadow: 0 0 0 4px rgba(242, 183, 5, 0.12);
}

.direct-auth-field-password {
  position: relative;
}

.direct-auth-field-password input {
  padding-right: 48px;
}

.direct-auth-password-toggle {
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: rgba(255, 248, 232, 0.6);
  cursor: pointer;
  padding: 0;
}

html[data-direct-theme='light'] .direct-auth-password-toggle {
  color: rgba(71, 85, 105, 0.68);
}

.direct-auth-password-toggle svg {
  width: 20px;
  height: 20px;
}

.direct-auth-submit,
.direct-auth-oauth {
  min-height: 50px;
  border-radius: 14px;
  font-size: 0.96rem;
  font-weight: 800;
}

.direct-auth-submit {
  border: 1px solid rgba(214, 40, 40, 0.52);
  background: linear-gradient(135deg, #d62828 0%, #b91c1c 100%);
  color: #fff;
  cursor: pointer;
}

.direct-auth-oauth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(242, 183, 5, 0.16);
  background: rgba(255, 255, 255, 0.045);
  color: #fff8e8;
  text-decoration: none;
}

html[data-direct-theme='light'] .direct-auth-oauth {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.84);
  color: #0f172a;
}

.direct-auth-oauth-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-weight: 800;
}

.direct-auth-divider {
  position: relative;
  text-align: center;
  color: rgba(255, 248, 232, 0.44);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 2px 0;
}

.direct-auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(242, 183, 5, 0.12);
}

.direct-auth-divider span {
  position: relative;
  padding: 0 12px;
  background: rgba(10, 10, 10, 0.98);
}

.direct-auth-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.direct-auth-links-centered {
  justify-content: center;
}

.direct-auth-links a {
  color: rgba(242, 183, 5, 0.9);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.direct-auth-recaptcha {
  overflow-x: auto;
}

@media (max-width: 720px) {
  .direct-auth-modal {
    padding: 14px;
  }

  .direct-auth-dialog,
  .direct-auth-dialog-compact {
    width: 100%;
    border-radius: 20px;
  }

  .direct-auth-shell {
    padding: 22px 18px 18px;
  }

  .direct-auth-title {
    font-size: 1.6rem;
  }

  .direct-auth-links {
    flex-direction: column;
    align-items: flex-start;
  }
}

.direct-detail-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.direct-detail-modal {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1360px, 100%);
  height: min(92vh, 960px);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(242, 183, 5, 0.18);
  background:
    radial-gradient(circle at top left, rgba(214, 40, 40, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(242, 183, 5, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(8, 8, 8, 0.99) 0%, rgba(12, 12, 12, 0.99) 100%);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.55);
}

.direct-detail-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(242, 183, 5, 0.14);
}

.direct-detail-modal-heading {
  min-width: 0;
}

.direct-detail-modal-title {
  margin: 4px 0 0;
  color: #fff8e8;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
}

.direct-detail-modal-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.direct-detail-modal-close {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(242, 183, 5, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff8e8;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.direct-detail-modal-nav {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(242, 183, 5, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff8e8;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.direct-detail-modal-nav[disabled] {
  opacity: 0.4;
  cursor: default;
}

.direct-detail-modal-body {
  min-height: 0;
  background: #050505;
}

.direct-detail-modal-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #050505;
}

body.direct-detail-modal-open {
  overflow: hidden;
}

body.direct-embedded .direct-site-hero,
body.direct-embedded .nasa-back-link {
  display: none;
}

body.direct-embedded .nasa-shell.africa-shell,
body.direct-embedded .nasa-page.africa-page {
  padding-top: 0 !important;
}

body.direct-embedded .nasa-detail-page {
  margin-top: 0;
  border-radius: 0;
  box-shadow: none;
}

body.direct-embedded .nasa-detail-header,
body.direct-embedded .nasa-detail-card {
  padding: 18px;
}

body.direct-embedded .nasa-detail-image {
  max-height: min(26vh, 220px);
}

body.direct-embedded .nasa-detail-video {
  max-height: min(30vh, 260px);
}

@media (max-width: 900px) {
  .direct-detail-modal-backdrop {
    padding: 12px;
  }

  .direct-detail-modal {
    width: 100%;
    height: 94vh;
    border-radius: 18px;
  }

  .direct-detail-modal-header {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 14px 16px;
  }

  .direct-detail-modal-actions {
    width: 100%;
    justify-content: space-between;
  }
}

.direct-detail-modal-backdrop[hidden] {
  display: none !important;
}

.direct-photo-gallery-backdrop[hidden] {
  display: none !important;
}

.direct-photo-gallery-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html[data-direct-theme='light'] .direct-photo-gallery-backdrop {
  background: rgba(226, 232, 240, 0.72);
}

.direct-photo-gallery-modal {
  width: min(1280px, 100%);
  max-height: 92vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(242, 183, 5, 0.18);
  background:
    radial-gradient(circle at top left, rgba(214, 40, 40, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(242, 183, 5, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(8, 8, 8, 0.99) 0%, rgba(12, 12, 12, 0.99) 100%);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.58);
}

html[data-direct-theme='light'] .direct-photo-gallery-modal {
  border-color: rgba(203, 213, 225, 0.5);
  background:
    radial-gradient(circle at top left, rgba(248, 113, 113, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.995) 0%, rgba(248, 250, 252, 0.985) 100%);
  box-shadow: 0 28px 72px rgba(15, 23, 42, 0.18);
}

.direct-photo-gallery-header,
.direct-photo-gallery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}

.direct-photo-gallery-header {
  border-bottom: 1px solid rgba(242, 183, 5, 0.14);
}

html[data-direct-theme='light'] .direct-photo-gallery-header {
  border-bottom-color: rgba(203, 213, 225, 0.5);
}

.direct-photo-gallery-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: stretch;
  border-top: 1px solid rgba(242, 183, 5, 0.14);
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

html[data-direct-theme='light'] .direct-photo-gallery-footer {
  border-top-color: rgba(203, 213, 225, 0.5);
}

.direct-photo-gallery-title {
  margin: 4px 0 0;
  color: #fff8e8;
  font-size: 1.28rem;
  font-weight: 800;
}

html[data-direct-theme='light'] .direct-photo-gallery-title {
  color: #111827;
}

.direct-photo-gallery-subtitle {
  margin: 6px 0 0;
  color: rgba(255, 248, 232, 0.72);
  font-size: 0.92rem;
}

html[data-direct-theme='light'] .direct-photo-gallery-subtitle {
  color: rgba(51, 65, 85, 0.82);
}

.direct-photo-gallery-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.direct-photo-gallery-close,
.direct-photo-gallery-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(242, 183, 5, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #fff8e8;
  cursor: pointer;
}

html[data-direct-theme='light'] .direct-photo-gallery-close,
html[data-direct-theme='light'] .direct-photo-gallery-nav {
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

html[data-direct-theme='light'] .direct-photo-gallery-close:hover,
html[data-direct-theme='light'] .direct-photo-gallery-close:focus-visible,
html[data-direct-theme='light'] .direct-photo-gallery-nav:hover,
html[data-direct-theme='light'] .direct-photo-gallery-nav:focus-visible {
  border-color: rgba(239, 68, 68, 0.38);
  background: rgba(254, 242, 242, 0.96);
}

.direct-photo-gallery-close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 24px;
  line-height: 1;
}

.direct-photo-gallery-stage {
  min-height: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
}

.direct-photo-gallery-nav {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  font-size: 34px;
  line-height: 1;
}

.direct-photo-gallery-figure {
  margin: 0;
  min-height: 0;
  min-width: 0;
  display: grid;
  gap: 14px;
}

.direct-photo-gallery-image {
  display: block;
  width: 100%;
  max-height: 66vh;
  min-height: 320px;
  object-fit: contain;
  border-radius: 18px;
  background: #050505;
}

html[data-direct-theme='light'] .direct-photo-gallery-image {
  background: rgba(241, 245, 249, 0.96);
}

.direct-photo-gallery-caption {
  display: none !important;
  gap: 6px;
  color: #fff8e8;
}

html[data-direct-theme='light'] .direct-photo-gallery-caption {
  color: #111827;
}

.direct-photo-gallery-caption-title {
  font-size: 1rem;
  line-height: 1.35;
}

.direct-photo-gallery-caption-meta {
  color: rgba(255, 248, 232, 0.7);
  font-size: 0.9rem;
}

html[data-direct-theme='light'] .direct-photo-gallery-caption-meta {
  color: rgba(51, 65, 85, 0.8);
}

body.direct-photo-gallery-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .direct-photo-gallery-backdrop {
    padding: 12px;
  }

  .direct-photo-gallery-modal {
    width: 100%;
    max-height: 94vh;
    border-radius: 18px;
  }

  .direct-photo-gallery-header,
  .direct-photo-gallery-footer {
    padding: 14px 16px;
  }

  .direct-photo-gallery-stage {
    grid-template-columns: 1fr;
    padding: 14px 16px;
  }

  .direct-photo-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
  }

  .direct-photo-gallery-stage {
    position: relative;
  }

  .direct-photo-gallery-nav-prev {
    left: 22px;
  }

  .direct-photo-gallery-nav-next {
    right: 22px;
  }

  .direct-photo-gallery-image {
    min-height: 240px;
    max-height: 58vh;
  }
}

.direct-photo-gallery-thumbnails {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  flex: 1 1 auto;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
}

.direct-photo-gallery-thumbnail {
  flex: 0 0 auto;
  width: 72px;
  height: 48px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.74;
  transition: opacity 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

html[data-direct-theme='light'] .direct-photo-gallery-thumbnail {
  background: rgba(226, 232, 240, 0.9);
  opacity: 0.84;
}

.direct-photo-gallery-thumbnail:hover,
.direct-photo-gallery-thumbnail:focus-visible,
.direct-photo-gallery-thumbnail.is-active {
  opacity: 1;
  border-color: rgba(242, 183, 5, 0.82);
  transform: translateY(-1px);
}

html[data-direct-theme='light'] .direct-photo-gallery-thumbnail:hover,
html[data-direct-theme='light'] .direct-photo-gallery-thumbnail:focus-visible,
html[data-direct-theme='light'] .direct-photo-gallery-thumbnail.is-active {
  border-color: rgba(239, 68, 68, 0.52);
}

.direct-photo-gallery-thumbnail-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .direct-photo-gallery-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .direct-photo-gallery-thumbnails {
    width: 100%;
    max-width: 100%;
  }
}

.direct-card-watch-button,
.direct-card-original-button {
  min-height: 28px;
  padding-top: 0;
  padding-bottom: 0;
  white-space: nowrap;
}

.direct-card-dub-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.direct-card-dub-variant-select {
  min-width: 118px;
  max-width: 168px;
  min-height: 32px;
  padding: 0 28px 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 0.66rem;
}

html[data-direct-theme='light'] .direct-card-dub-variant-select {
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(255, 255, 255, 0.84);
  color: #0f172a;
}

.direct-card-dub-variant-select:hover,
.direct-card-dub-variant-select:focus {
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

html[data-direct-theme='light'] .direct-card-dub-variant-select:hover,
html[data-direct-theme='light'] .direct-card-dub-variant-select:focus {
  background: rgba(255, 255, 255, 0.96);
}

.direct-card-dub-variant-select option {
  background: #fff;
  color: #111;
  font-size: 0.66rem;
}

.direct-card-watch-button {
  background: #c1121f;
  border-color: #c1121f;
  color: #fff;
}

.direct-card-watch-button:hover,
.direct-card-watch-button:focus-visible {
  background: #a30f1a;
  border-color: #a30f1a;
  color: #fff;
}

html[data-direct-theme='light'] .direct-card-watch-button {
  background: #c1121f;
  border-color: #c1121f;
  color: #fff;
}

html[data-direct-theme='light'] .direct-card-watch-button:hover,
html[data-direct-theme='light'] .direct-card-watch-button:focus-visible {
  background: #a30f1a;
  border-color: #a30f1a;
  color: #fff;
}

.direct-feed-results.is-grid .direct-card-watch-button,
.direct-feed-results.is-grid .direct-card-original-button {
  width: auto;
  flex: 0 1 auto;
  min-height: 28px;
  padding: 0 10px;
  font-size: 0.72rem;
  line-height: 1;
  justify-content: center;
}

.direct-feed-results.is-grid .direct-card-dub-actions {
  display: flex;
  width: 100%;
  flex: 1 0 100%;
  flex-basis: 100%;
  order: 99;
  margin-top: 6px;
  align-items: center;
  justify-content: flex-start;
}

.direct-feed-results.is-grid .direct-card-dub-variant-select {
  flex: 0 1 150px;
  max-width: 100%;
}

.direct-card-dub-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.direct-card-dub-status[hidden] {
  display: none !important;
}

.direct-card-dub-status.is-active {
  background: rgba(255, 184, 77, 0.16);
  border-color: rgba(255, 184, 77, 0.32);
  color: #ffe0a8;
}

.direct-card-dub-status.is-success {
  background: rgba(54, 179, 126, 0.16);
  border-color: rgba(54, 179, 126, 0.34);
  color: #bdf3d7;
}

.direct-card-dub-status.is-error {
  background: rgba(255, 107, 107, 0.16);
  border-color: rgba(255, 107, 107, 0.34);
  color: #ffd1d1;
}

html[data-direct-theme='light'] .direct-card-dub-status {
  background: rgba(226, 232, 240, 0.9);
  border-color: rgba(148, 163, 184, 0.36);
  color: #0f172a;
}

html[data-direct-theme='light'] .direct-card-dub-status.is-active {
  background: rgba(254, 240, 138, 0.92);
  border-color: rgba(245, 158, 11, 0.4);
  color: #78350f;
}

html[data-direct-theme='light'] .direct-card-dub-status.is-success {
  background: rgba(187, 247, 208, 0.92);
  border-color: rgba(34, 197, 94, 0.32);
  color: #14532d;
}

html[data-direct-theme='light'] .direct-card-dub-status.is-error {
  background: rgba(254, 226, 226, 0.94);
  border-color: rgba(239, 68, 68, 0.28);
  color: #7f1d1d;
}

.direct-card-watch-button.is-loading {
  opacity: 0.88;
}

.direct-card-original-button {
  min-width: 0;
}

.direct-feed-results.is-grid .direct-card-dub-status {
  width: 100%;
  justify-content: center;
}
