.content-page,
.article-page {
  min-height: 100svh;
  background: var(--black);
}

.content-main,
.article-main {
  position: relative;
  min-height: calc(100svh - 92px);
  overflow: hidden;
  isolation: isolate;
}

.content-main::before,
.article-main::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5,5,6,.95), rgba(5,5,6,.82)),
    url("assets/galactic-body-bg.jpg") center top / cover fixed no-repeat;
  content: "";
  filter: grayscale(.86) contrast(1.1);
  opacity: .42;
}

.content-main::after,
.article-main::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    radial-gradient(circle at 82% 8%, rgba(152,65,255,.14), transparent 27%),
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: auto, 58px 58px, 58px 58px;
  content: "";
}

.content-hero {
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--line);
}

.content-hero h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.content-hero p {
  display: none;
}

.content-feed { padding-block: 48px 78px; }
.listing-status { min-height: 20px; margin: 0 0 20px; color: #77777d; font-size: 8px; letter-spacing: .09em; text-transform: uppercase; }
.listing-status.content-empty { display: grid; gap: 8px; padding: 30px; border: 1px solid var(--line); background: rgba(10,10,13,.78); text-transform: none; }
.listing-status.content-empty strong { color: var(--white); font-size: 17px; }
.listing-status.content-empty span { color: #8d8d92; font-size: 11px; line-height: 1.6; }

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
}

.dense-row { border-bottom: 1px solid var(--line); }
.dense-row a { display: flex; align-items: center; gap: 10px; padding: 10px 0; text-decoration: none; color: var(--text); font-size: 14px; line-height: 1.35; }
.dense-row-btn { flex: none; width: 20px; height: 20px; border-radius: 5px; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.dense-row-btn i { font-size: 11px; color: #fff; }
.article-related .content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }

.content-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(10,10,13,.9);
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  transition: transform .25s ease, border-color .25s ease;
}

.content-card:hover { border-color: rgba(245,180,0,.42); transform: translateY(-5px); }
.content-card-media { display: block; height: 220px; overflow: hidden; border-bottom: 1px solid var(--line); background: #0a0a0d; }
.content-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.content-card:hover .content-card-media img { transform: scale(1.035); }
.content-card-placeholder,
.slide-image-placeholder { display: grid; width: 100%; height: 100%; place-items: center; background: radial-gradient(circle at 70% 35%, rgba(152,65,255,.24), transparent 34%), linear-gradient(145deg,#111116,#08080a); }
.content-card-placeholder span,
.slide-image-placeholder span { color: transparent; font-size: 82px; font-weight: 700; -webkit-text-stroke: 1px rgba(245,180,0,.35); }
.content-card-body { padding: 22px; }
.content-card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.content-card-meta span { padding: 6px 8px; background: var(--gold); color: #090909; font-size: 7px; font-weight: 700; letter-spacing: .1em; }
.content-card-meta small { color: #74747a; font-size: 7px; font-weight: 600; letter-spacing: .09em; }
.content-card h2 { margin: 0 0 12px; font-size: 21px; line-height: 1.18; text-wrap: balance; }
.content-card h2 a:hover { color: var(--gold-soft); }
.content-card p { min-height: 58px; margin: 0 0 17px; color: #929297; font-size: 10px; line-height: 1.65; }
.content-card-link { display: inline-flex; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); color: white; font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.content-card-link span { color: var(--gold); }
.load-more-wrap { display: flex; justify-content: center; margin-top: 34px; }
.load-more-wrap .button { cursor: pointer; }

.radar-loading,
.radar-empty {
  display: grid;
  min-height: 600px;
  align-content: center;
  justify-items: start;
  gap: 12px;
  padding: 54px;
  background: radial-gradient(circle at 70% 40%, rgba(152,65,255,.2), transparent 35%), #0a0a0d;
}
.radar-loading i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 18px rgba(245,180,0,.7); animation: radar-pulse 1.2s ease-in-out infinite alternate; }
.radar-loading strong,
.radar-empty > strong { max-width: 520px; font-size: clamp(25px,3vw,42px); line-height: 1.05; text-transform: uppercase; }
.radar-loading span,
.radar-empty p { max-width: 470px; margin: 0; color: #8e8e93; font-size: 11px; line-height: 1.65; }

.article-shell { width: min(980px, calc(100% - 56px)); margin-inline: auto; padding-block: 74px 96px; }
.article-loading { display: grid; min-height: 50svh; place-content: center; color: #8d8d92; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.article-header { max-width: 900px; margin-inline: auto; }
.article-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 23px; }
.article-kicker span { padding: 7px 9px; background: var(--gold); color: #090909; font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.article-kicker small { color: #85858b; font-size: 8px; font-weight: 600; letter-spacing: .1em; }
.article-header h1 { margin: 0; font-size: clamp(44px,7vw,92px); letter-spacing: -.055em; line-height: .94; text-wrap: balance; }
.article-subtitle { max-width: 780px; margin: 24px 0 0; color: #aaaab0; font-size: clamp(16px,2vw,23px); line-height: 1.55; }
.article-byline { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.article-byline strong { color: var(--gold-soft); }
.article-byline span { color: #77777d; }
.article-cover { margin: 44px 0 0; border: 1px solid var(--line); }
.article-cover img { width: 100%; max-height: 620px; object-fit: cover; }
.article-content { max-width: 760px; margin: 55px auto 0; color: #d1d1d4; font-family: var(--body); font-size: 17px; line-height: 1.85; }
.article-content h2,
.article-content h3 { margin: 2em 0 .65em; color: var(--white); font-family: var(--display); line-height: 1.2; }
.article-content h2 { font-size: 30px; }
.article-content h3 { font-size: 22px; }
.article-content p { margin: 0 0 1.35em; }
.article-content a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }
.article-content blockquote { margin: 2em 0; padding: 18px 22px; border-left: 3px solid var(--gold); background: rgba(245,180,0,.055); color: white; }
.article-content img { width: 100%; margin: 2em 0; border: 1px solid var(--line); }
.article-content iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; margin: 2em 0; border: 1px solid var(--line); }
.article-related { max-width: 980px; margin: 64px auto 0; padding-top: 36px; border-top: 1px solid var(--line); }
.article-related h2 { margin: 0 0 22px; color: var(--gold-soft); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.article-related .content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.article-end { display: flex; justify-content: space-between; gap: 20px; max-width: 760px; margin: 40px auto 0; padding-top: 22px; border-top: 1px solid var(--line); color: #77777d; font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.article-end a { color: var(--white); }
.article-end b { color: var(--gold); }
.article-social { max-width: 760px; margin: 56px auto 0; padding: 30px; border: 1px solid rgba(36,33,42,.14); background: #fff; }
.article-social-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.article-social-heading span { color: #6740bd; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.article-social-heading h2 { margin: 5px 0 0; color: #17141d; font-size: clamp(24px,3vw,34px); }
.article-like-button { min-width: 118px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 14px; border: 1px solid rgba(36,33,42,.18); background: #fff; color: #24212a; cursor: pointer; }
.article-like-button span { color: #6740bd; font-size: 22px; line-height: 1; }
.article-like-button small { min-width: 20px; padding-left: 7px; border-left: 1px solid rgba(36,33,42,.14); }
.article-like-button.is-liked { border-color: #6740bd; background: #f6f2ff; color: #4d288f; }
.article-like-button:disabled { cursor: wait; opacity: .6; }
.article-comment-compose { margin-top: 26px; }
.article-comment-form label { display: block; margin-bottom: 8px; color: #24212a; font-weight: 700; }
.article-comment-form textarea { width: 100%; resize: vertical; min-height: 112px; padding: 14px; border: 1px solid rgba(36,33,42,.2); background: #fff; color: #24212a; font: inherit; }
.article-comment-form textarea:focus { outline: 3px solid rgba(103,64,189,.18); border-color: #6740bd; }
.article-comment-form > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; }
.article-comment-form > div small { color: #6d6675; }
.article-comment-message { min-height: 20px; margin: 8px 0 0; color: #4d288f; font-size: 13px; }
.article-comment-login { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px; background: #f7f5fa; }
.article-comment-login p { margin: 0; color: #4f4858; }
.article-comments { margin-top: 28px; border-top: 1px solid rgba(36,33,42,.12); }
.article-comment { padding: 20px 0; border-bottom: 1px solid rgba(36,33,42,.12); }
.article-comment > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.article-comment strong { color: #17141d; }
.article-comment time { color: #746d7d; font-size: 12px; }
.article-comment p { margin: 8px 0 0; color: #24212a; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.article-comment-actions { display: flex; justify-content: flex-end; gap: 14px; margin-top: 10px; }
.article-comment-actions button { padding: 4px 0; border: 0; background: transparent; color: #6d6675; font: 700 10px/1 var(--body, sans-serif); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.article-comment-actions button:hover, .article-comment-actions button:focus-visible { color: #6740bd; }
.article-comments-more { width: 100%; margin-top: 20px; border-color: rgba(36,33,42,.2); color: #24212a; }
.article-comments-more span { margin-left: auto; color: #6d6675; font-size: 10px; }
.article-social-status { margin: 14px 0 0; color: #4d288f; font-size: 13px; }
.article-comments-empty { margin: 20px 0 0; color: #6d6675; }
.article-not-found { display: grid; min-height: 60svh; align-content: center; justify-items: start; }
.article-not-found h1 { margin: 22px 0 12px; font-size: clamp(44px,8vw,88px); line-height: .95; text-transform: uppercase; }
.article-not-found p { max-width: 560px; margin: 0 0 25px; color: #929297; font-size: 12px; line-height: 1.7; }

@keyframes radar-pulse { to { opacity: .35; transform: scale(.7); } }

@media (max-width: 980px) {
  .content-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .article-related .content-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 680px) {
  .content-main,
  .article-main { min-height: calc(100svh - 78px); }
  .content-hero { padding-top: 18px; }
  .content-grid { grid-template-columns: 1fr; }
  .article-related { margin-top: 48px; }
  .article-related .content-grid { grid-template-columns: 1fr; }
  .content-card-media { height: 230px; }
  .article-shell { width: min(100% - 30px, 760px); padding-block: 50px 72px; }
  .article-content { font-size: 16px; }
  .article-end { flex-direction: column; }
  .article-social { margin-top: 40px; padding: 22px 18px; }
  .article-social-heading, .article-comment-login { align-items: stretch; flex-direction: column; }
  .article-like-button, .article-comment-login .button { width: 100%; }
  .radar-loading,
  .radar-empty { min-height: 520px; padding: 32px; }
}
