/* ==========================================
XUFOS – CLEANED & ORGANIZED STYLES (Feb 2026)
========================================== */

:root {
  --bg-color: #000;
  --text-color: #eee;
  --border-color: #fff;
  --accent-color: #00d4ff;
  --accent-hover: #ff007a;
}
@font-face {
  font-family: "Poppins";
  src: url(poppins-regular-webfont.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+000-5FF;
}
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  background: #000 url("/images/xufos-machine.avif") fixed center;
  background-size: 100% 100%;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  color: var(--text-color);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
#body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 0.6);
  z-index: -5;
  pointer-events: none;
}
.page-container {
  min-height: 100vh;
  position: relative;
}
.content-wrapper {
  min-height: 820px;
  background: rgb(255 255 255 / 0.02);
  position: relative;
  padding-bottom: none;
}
::-webkit-scrollbar {
  width: 1px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-color);
}
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 40px;
  background: var(--bg-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  box-shadow: 0 5px 5px rgb(0 0 0 / 0.3);
  line-height: 38px;
}
.logo {
  font-size: 1.5em;
  padding-left: 10px;
  margin-top: 3px;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  display: flex;
  align-items: center;
  gap: 3px;
}
#percent {
  display: inline-block;
  line-height: 1.2em;
  padding: 0;
  visibility: hidden;
  font-size: 1em;
  font-weight: 600;
  margin: 2px 0 0 0;
}
#percent.show {
  opacity: 1;
  visibility: visible;
}
.percent-text {
  display: inline-block;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
#percent,
.credits span {
  color: var(--text-color);
  background: linear-gradient(#eee, #333);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: #fff0;
}
.burger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 11;
}
.burger-menu span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--text-color);
  margin: 5px 0;
  transition: transform 0.3s ease-in-out;
}
.burger-menu[aria-expanded="true"] span:first-child {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger-menu[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger-menu[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}
.nav-menu {
  margin-right: 10px;
  margin-top: -8px;
}
.nav-menu ul {
  list-style: none;
  display: flex;
  margin: 7px 0 0;
  padding: 0;
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 600;
}
.nav-menu li {
  margin-left: 20px;
}
.nav-menu a {
  color: var(--text-color);
  text-decoration: none;
  padding: 5px 10px;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.nav-menu a:hover,
.nav-menu a:focus {
  background: var(--text-color);
  color: var(--bg-color);
  outline: 1px solid var(--text-color);
  outline-offset: 2px;
}
main {
  margin-top: 40px;
}
.content-container {
  max-width: 940px;
  margin: 0 auto;
  padding: 10px 20px 50px;
}
hr {
  height: 1px;
  border: none;
  background: #fff;
  margin: 0 0 -2px;
  opacity: 0.4;
}
.headimage,
.headimage-story {
  margin: 0 auto 5px;
  border: 10px solid var(--bg-color);
  position: relative;
  overflow: hidden;
  background: #000;
  text-align: center;
  max-width: 100%;
  max-height: 238px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.headimage img,
.headimage-story img {
  width: 920px;
  height: 240px;
  object-fit: contain;
}
.article-thumbnail {
  flex-shrink: 0;
  width: 150px;
  height: 195px;
  overflow: hidden;
  border: 1px solid #000;
  border-radius: 0;
  transition: all 0.3s;
  margin: 0;
}
.article-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-div:hover .article-thumbnail {
  border-color: #000;
  box-shadow: 0 0 12px rgb(255 255 255 / 0.15);
}
.doors-reveal {
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  overflow: hidden;
}
.door {
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  background: #000;
  transform-origin: center;
  will-change: transform;
}
.top-door {
  top: 0;
  transform-origin: top center;
}
.bottom-door {
  bottom: 0;
  transform-origin: bottom center;
}
@keyframes openVerticalDoors {
  0% {
    transform: rotateX(0deg);
  }
  100% {
    transform: rotateX(90deg);
  }
}
.top-door,
.bottom-door {
  animation: openVerticalDoors 4s forwards ease-in-out;
  animation-delay: 0.5s;
}
@keyframes fadeDoors {
  0% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.top-door,
.bottom-door {
  animation: openVerticalDoors 4s forwards ease-in-out, fadeDoors 4.5s forwards;
}
.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -10;
  pointer-events: none;
}
.bg-video-overlay {
    position: fixed;
    inset: 0;
    background: 
        linear-gradient(
            to bottom,
            transparent 50%,
            rgba(0, 0, 0, 0.08) 50%
        );
    background-size: 100% 6px;          /* 1px black + 1px transparent = 2px repeat */
    pointer-events: none;
    z-index: -1;
    mix-blend-mode: multiply;           /* blends naturally with video for darker feel */
}

.article-div {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 15px;
  background: var(--bg-color);
  padding: 9px 10px 8px 9px;
  margin-bottom: 5px;
  min-height: 197px;
  transition: all 0.3s ease;
}
.article-div:hover {
  border-color: var(--text-color);
  box-shadow: 0 4px 15px rgb(0 0 0 / 0.4);
}
.article-div:not(:has(.article-thumbnail)) .article-content {
  margin-left: 0 !important;
  margin-right: 50px;
}
.article-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.article-content h1 {
  margin: 0 0 7px;
  font-size: 1.1em;
  text-transform: uppercase;
}
.article-content h2 {
  margin: 0 0 0.6rem;
  font-size: 1.05em;
  text-transform: uppercase;
}
.article-content p {
  margin: 0.5rem 0 1rem;
  line-height: 1.45;
  font-size: 0.9em;
  text-align: justify;
  text-justify: inter-word;
}
.random-quotes {
  margin: 5px 0 5px;
  padding: 10px;
  background: #000;
  font-size: 0.92em;
  color: #999;
  border-radius: 0;
  border: none;
  text-align: center;
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 0 20px rgb(0 212 255 / 0.08);
  transition: box-shadow 0.4s ease;
  display: none;
}
.random-quotes:hover {
  box-shadow: 0 0 35px rgb(0 212 255 / 0.18);
}
.random-quotes h2 {
  font-size: 1.1em;
  margin: 0 0 18px;
  color: #777;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
}
.random-quotes blockquote {
  margin: 0;
  padding: 0 20px;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.6;
  color: #ddd;
  position: relative;
  background: rgb(0 212 255 / 0.03);
  border-left: 4px solid var(--accent-color);
  transition: all 0.3s ease;
}
.random-quotes blockquote:hover {
  background: rgb(0 212 255 / 0.06);
  border-left-color: var(--accent-hover);
}
.random-quotes blockquote::before,
.random-quotes blockquote::after {
  position: absolute;
  font-size: 3rem;
  color: rgb(0 212 255 / 0.15);
  font-family: Georgia, serif;
}
.random-quotes blockquote::before {
  content: "“";
  top: -10px;
  left: 0;
}
.random-quotes blockquote::after {
  content: "”";
  bottom: -20px;
  right: 0;
}
.random-quotes cite {
  display: block;
  margin-top: 12px;
  font-size: 0.95rem;
  color: #888;
  font-style: normal;
  font-weight: 500;
}
.credits {
  padding: 10px;
  font-size: 0.9em;
  background: var(--bg-color);
  margin: 5px auto 0;
  width: 100%;
  max-width: 920px;
  height: 22px;
  font-weight: 600;
  text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 5px 0 5px;
  padding: 20px 10px;
  background: #000;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.pagination a,
.pagination span.disabled,
.pagination .ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #444;
  border-radius: 0;
  transition: all 0.25s ease;
}
.pagination a {
  color: var(--text-color);
  background: #fff0;
}
.pagination a:hover,
.pagination a:focus {
  background: #fff;
  color: #000;
  border-color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgb(0 212 255 / 0.3);
}
.pagination a.active {
  background: #fff;
  color: #000;
  border-color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 10px rgb(0 212 255 / 0.25);
}
.pagination span.disabled {
  color: #999;
  background: #000;
  border-color: #333;
  cursor: not-allowed;
}
.ellipsis {
  color: #777;
  border: none;
  background: #fff0;
  pointer-events: none;
}
@media (min-width: 769px) {
  .article-div:nth-child(odd) {
    flex-direction: row;
  }
  .article-div:nth-child(even) {
    flex-direction: row-reverse;
  }
  .article-div:nth-child(odd) .date-published,
  .article-div:nth-child(odd) .read-more-fullwidth {
    text-align: left;
  }
  .article-div:nth-child(even) .date-published,
  .article-div:nth-child(even) .read-more-fullwidth {
    text-align: right;
  }
}
.youtubelink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 30px 5px 30px;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.youtubelink:hover,
.youtubelink:focus {
  background: red;
  color: #000;
  border-color: red;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.25);
}
.youtubelink::before {
  content: "▶";
  font-size: 1.1rem;
  margin-right: 4px;
}
@media (max-width: 480px) {
  .youtubelink {
    padding: 8px 14px 5px 14px;
    font-size: 0.88rem;
    white-space: normal;
    line-height: 1.4;
    text-align: center;
    min-width: 120px;
    max-width: 100%;
    box-sizing: border-box;
  }
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
@media (max-width: 768px) {
  header {
    height: 50px;
  }
  .burger-menu {
    display: block;
  }
  .bg-video {
    display: none;
  }
  .nav-menu {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    background: var(--bg-color);
    visibility: hidden;
    opacity: 0;
    max-height: 0;
    transition: 0.2s;
  }
  .nav-menu.active {
    visibility: visible;
    opacity: 1;
    max-height: 400px;
  }
  .nav-menu ul {
    flex-direction: column;
    padding: 10px;
  }
  .nav-menu li {
    margin: 10px 0;
  }
  .logo {
    font-size: 1.2em;
    gap: 2px;
  }
  .article-div {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    max-width: 100%;
  }
  .article-thumbnail {
    display: none;
  }
  .article-div,
  .article-content {
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .article-content h1,
  .article-content h2 {
    margin-bottom: 8px;
    font-size: 1.1em;
  }
  .date-published,
  .read-more-fullwidth {
    text-align: center !important;
  }
  body,
  html,
  .page-container,
  main,
  .content-container {
    overflow-x: hidden;
  }
  .content-container {
    max-width: 100%;
    margin-top: 10px;
    padding: 10px;
  }
  .content-container h2 {
    font-size: 0.9em;
  }
  .content-container p {
    font-size: 0.8em;
  }
  .featured-stories {
    margin: 0;
    padding: 0;
    max-width: 100%;
    display: none;
  }
  .disclaimer,
  .credits,
  .word-cloud-section,
  .random-quotes,
  .centered-image-wrapper,
  .friends-links-section,
  .link-list-container,
  .random-posts {
    display: none;
  }
}
.date-published {
  display: block;
  margin: 8px 0 0;
  font-size: 0.8em;
  color: #777;
}
.read-more-fullwidth {
  margin: -10px 0 0;
  text-align: center;
}
.read-more-btn {
  display: inline-block;
  width: 100%;
  max-width: 133px;
  margin: 0 auto;
  padding: 9px 10px 8px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: #000;
  border: 1px solid #555;
  border-radius: 0;
  transition: all 0.35s ease;
  box-shadow: 0 2px 8px rgb(0 212 255 / 0.12);
}
.read-more-btn:hover,
.read-more-btn:focus {
  color: #000;
  background: #fff;
  border-color: #000;
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.25);
  transform: translateY(-1px);
}
.featured-stories {
  margin: 5px 0;
  padding: 10px 10px 0;
  background: #000;
  text-align: center;
  width: 920px;
  max-width: 100%;
  height: 191px;
}
.featured-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.featured-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.featured-item:hover {
  transform: translateY(0);
}
.featured-thumbnail {
  width: 100%;
  height: 150px;
  overflow: hidden;
  border: none;
}
.featured-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.featured-item:hover .featured-thumbnail img {
  transform: scale(1.5);
}
.featured-item h1 {
  margin: 5px;
  font-size: 0.8em;
  text-align: center;
  line-height: 1.3;
  font-weight: 400;
  text-transform: uppercase;
}
.featured-item.hidden-initial {
  display: none;
  opacity: 0;
}
.featured-fade-wrapper {
  position: relative;
  min-height: 150px;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}
.featured-fade-wrapper.fade-out {
  opacity: 0;
}
.featured-fade-wrapper.fade-in {
  opacity: 1;
}
.featured-item {
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s ease;
  opacity: 1;
  will-change: opacity, transform;
}
.featured-thumbnail,
.featured-item h3 {
  transition: opacity 1.2s ease;
  font-size: 0.9em;
  font-weight: 400;
}
.featured-item:hover {
  transform: translateY(-6px);
}
.search-container {
  position: relative;
  margin: 5px 0;
  max-width: 940px;
  width: 100%;
  padding: 5px;
  box-sizing: border-box;
  background: #000;
}
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgb(35 35 45 / 0.85);
  border: 1px solid #000;
  border-radius: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}
.search-wrapper:hover,
.search-wrapper:focus-within {
  border-color: var(--accent-color);
  box-shadow: 0 0 18px rgb(0 212 255 / 0.25);
}
.disclaimer span{color:#00d4ff;}
#live-search-input {
  flex: 1;
  padding: 10px;
  font-size: 0.9em;
  background: rgb(35 35 45 / 0.85);
  border: none;
  color: var(--text-color);
  outline: none;
  text-transform: uppercase;
}
#live-search-input::placeholder {
  color: #777;
  opacity: 0.75;
}
.search-wrapper button {
  background: #000;
  border: none;
  padding: 5px 40px 10px;
  cursor: pointer;
  color: var(--accent-color);
  font-size: 1.35rem;
  transition: color 0.3s ease, transform 0.2s ease;
}
.search-wrapper button:hover,
.search-wrapper button:focus {
  color: var(--accent-hover);
  transform: scale(1.15);
}
.search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 400px;
  overflow-y: auto;
  background: rgb(20 20 28 / 1.00);
  border: 1px solid #333;
  border-top: none;
  border-radius: none;
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.6);
  z-index: 100;
  display: none;
  margin-top: 2px;
}
.search-results-dropdown.visible {
  display: block;
}
.search-result {
  display: block;
  padding: 10px;
  color: #ddd;
  text-decoration: none;
  border-bottom: 1px solid #222;
  transition: background 0.25s ease;
}
.search-result:hover,
.search-result:focus {
  background: rgb(0 212 255 / 0.14);
  color: var(--accent-color);
}
.search-result-title {
  margin: 0 0 5px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #eee;
}
.search-result-snippet {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #aaa;
  opacity: 0.9;
}
.search-result-item {
	background: black;
	color: white;
	font-size: 1em;
	padding: 10px 10px 20px 10px;
	margin-bottom:5px;
	}
.search-title {font-size:1.2em;background:black;padding:10px;text-transform:uppercase;}
.search-result-item a {
color: white;
text-decoration: none;
}
.search-result-item h2 {font-size:1em;}
.search-result-item p { font-size:0.95em;}
.centered-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding: 0 0 10px;
  box-sizing: border-box;
}
.centered-image {
  max-width: 100%;
  height: auto;
  display: block;
}
.random-posts {
  margin: 5px 0;
  padding: 0 0 10px 0;
  background: #000;
  width: 100%;
  max-width: 950px;
  box-sizing: border-box;
}
.random-posts h2 {
  font-size: 1em;
  margin: 0 0 10px;
  text-align: center;
  text-transform: uppercase;
  font-weight: 600;
  color: #aaa;
}
#random-posts-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px 20px;
  padding: 0 10px;
  margin-bottom: 20px;
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 769px) {
  #random-posts-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 24px;
  }
}
.random-post-card {
  display: flex;
  flex-direction: column;
  background: rgb(35 35 45 / 0.85);
  border: 1px solid #222;
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  color: #ddd;
  transition: all 0.25s ease;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeIn 0.6s ease-out forwards;
}
.random-post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgb(0 212 255 / 0.18);
}
.random-thumbnail {
  width: 100%;
  height: 150px;
  overflow: hidden;
  background: #111;
}
.random-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.random-post-card:hover .random-thumbnail img {
  transform: scale(1.08);
}
.no-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e, #0f0f1f);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 0.8rem;
}
.random-title {
  font-size: 0.8rem;
  font-weight: 600;
  margin: 10px 12px 4px;
  line-height: 1.3;
  color: #eee;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}
.random-posts button {
  margin-top: -10px;
  padding: 10px 12px;
  border: none;
  background: #e81123;
  color: #000;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  text-shadow: 3px 2px 2px rgb(0 0 0 / 0.2);
  border-radius: 0;
  cursor: pointer;
  display: block;
  margin-left: auto;
  margin-right: auto;
  height: 38px;
}
.random-posts button:hover,
.random-posts button:focus {
  background: var(--bg-color);
  color: var(--text-color);
  transform: scale(1);
  outline: 0;
}
.word-cloud-section {
  margin: 5px 0;
  padding: 10px;
  background: var(--bg-color);
  width: 100%;
  max-width: 920px;
  padding-bottom: 0;
  text-transform: uppercase;
  font-weight: 600;
}
.word-cloud-section h2 {
  font-size: 1em;
  margin: 0 0 10px;
  text-align: center;
  text-transform: uppercase;
  font-weight: 600;
}
#word-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 10px;
  margin-bottom: 0;
  background: var(--bg-color);
}
.word-cloud-item {
  color: var(--text-color);
  cursor: pointer;
  padding: 5px 10px;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeIn 0.5s ease-out forwards;
  animation-delay: calc(0.1s * var(--word-index));
}
#word-cloud a {
  text-decoration: none;
}
.friends-links-section {
  margin: 0 0 5px;
  padding: 10px;
  background: #000;
}
.friends-title {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 25px;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.link-list-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 940px;
  margin: 0 auto;
  list-style: none;
}
.link-list-column {
  list-style: none;
  padding: 0;
  margin: 0;
}
.link-list-column li {
  margin-bottom: 8px;
}
.link-list-column a {
  display: block;
  padding: 20px;
  color: #ddd;
  text-decoration: none;
  border: 1px solid #333;
  border-radius: 0;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}
.link-list-column a:hover,
.link-list-column a:focus {
  background: rgb(0 212 255 / 0.12);
  color: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateX(4px);
  box-shadow: 0 0 12px rgb(0 212 255 / 0.25);
}
.disclaimer {
  background: var(--bg-color);
  color: var(--text-color);
  padding: 10px;
  margin: 5px 0;
  text-align: center;
  font-size: 0.95rem;
  text-transform: uppercase;
  font-weight: 600;
}
.copyright-notice {
  margin: 5px 0;
  max-width: 940px;
  padding: 10px;
  background: rgb(15 15 22 / 1.75);
  border: none;
  border-radius: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #888;
  text-align: center;
}
.copyright-notice p {
  margin: 0;
}
.copyright-notice a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s;
}
.copyright-notice a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}
@media (max-width: 768px) {
  .copyright-notice {
    margin: 0 auto 40px;
    padding: 15px 18px;
    font-size: 0.84rem;
  }
}
.xufos-story {
  max-width: 940px;
  margin: 5px 0;
  padding: 10px;
  background: #000;
  border: 1px solid #000;
  border-radius: 0;
}
.xufos-story h2 {
  font-size: 1rem;
  margin: 35px 0 0;
  color: #f5f5f5;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}
.xufos-story p {
  margin: 0 0 15px;
  font-size: 0.9em;
  line-height: 1.68;
  color: #f5f5f5;
  text-align: justify;
  text-justify: inter-word;
}
.xufos-story blockquote {
  margin: 35px 0;
  padding: 20px 25px;
  background: rgb(0 212 255 / 0.05);
  border-left: 5px solid var(--accent-color);
  font-style: italic;
  color: #fff;
  line-height: 1.6;
}
.xufos-story blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: 0.95rem;
  color: #888;
  font-style: normal;
}
.xufos-story hr {
  height: 1px;
  background: #fff;
  border: none;
  margin: 10px 0;
}
.xufos-story ul,
.xufos-story ol {
  margin: 5px 10px;
  padding-left: 0;
  list-style-type: none;
}
.xufos-story li {
  margin-bottom: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #ccc;
}
@media (max-width: 768px) {
  .xufos-story {
    padding: 10px;
    margin-bottom: 5px;
  }
  .xufos-story h2 {
    font-size: 0.9rem;
  }
}
.header-title-wrapper {
  height: 36px;
  background: var(--bg-color);
  margin: 0 0 5px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-title-wrapper h1 {
  margin: 0;
  padding-top: 3px;
  font-size: 1.2em;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1;
}
@media (max-width: 768px) {
  .header-title-wrapper {
    height: 40px;
    margin: 0;
    background: #000;
    padding: 0;
  }
  .header-title-wrapper h1 {
    font-size: 1.2em;
    padding-top: 0;
    line-height: 2.15;
  }
}
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  background: var(--bg-color);
  z-index: 1001;
  padding-left: 15px;
  box-sizing: border-box;
}
.footer-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}
.voice-search {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent-color);
  font-size: 1.4em;
  margin: 0;
  padding: 0;
}
.footertxt {
  margin-left: auto;
  padding-right: 20px;
  font-size: 0.9em;
  line-height: 40px;
  text-align: right;
  color: var(--text-color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 769px) {
  .footertxt {
    font-size: 0.8em;
  }
}
.mobile-notice {
  text-align: center;
  padding: 20px 15px;
  margin: 5px 0;
  max-width: 100%;
  background: #000;
  border-radius: 0;
  color: #fff;
  font-weight: 500;
}
.mobile-notice h2 {
  margin: 0;
  font-size: 1em;
  line-height: 1.45;
}
@media (min-width: 769px) {
  .mobile-notice {
    display: none;
  }
}
.hidden-svg {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
.scroll-buttons {
  position: fixed;
  bottom: 60px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
}
.scroll-btn {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--bg-color), #111);
  border: 1px solid var(--bg-color);
  border-radius: 0;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  display: none;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.4);
  transition: all 0.2s ease;
}
.scroll-btn.show {
  display: flex;
}
.scroll-btn:hover,
.scroll-btn:focus {
  background: var(--accent-hover);
  transform: scale(1.1);
  border-color: var(--accent-hover);
}
.scroll-btn .chevron-svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-color);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.scroll-btn-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slamIn {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(1.1);
  }
  80% {
    opacity: 1;
    transform: translateY(5px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.light-mode {
  --bg-color: #ffffff;
  --text-color: #000000;
  --border-color: #000000;
}
.light-mode body {
  background: #f8f9fa;
}
.light-mode .page-container {
  background: #666;
}
.xufos-story pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-x: auto;
  max-width: 100%;
  padding: 5px;
  border-radius: none;
  background: #1e1e1e;
  color: #d4d4d4;
  font-family: monospace;
  font-size: 0.95em;
  line-height: 1.5;
  margin: 10px 0 10px 0;
  box-sizing: border-box;
}
.story-videos {
  margin: 10px 0;
  padding: 20px 0 20px 0;
}
.video-wrapper {
  margin: 10px 0;
  text-align: center;
  width: 100%;
}
.video-wrapper h3 {
  margin-bottom: 12px;
  font-size: 1.1em;
  color: var(--accent-color);
}
.video-wrapper iframe {
  width: 100%;
  max-width: 920px;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--accent-color);
  box-shadow: 0 0 24px rgb(0 212 255 / 0.35);
  border-radius: none;
}
.video-facade {
  position: relative;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border: none solid var(--accent-color);
  border-radius: none;
  box-shadow: 0 0 20px rgb(0 212 255 / 0.2);
  margin: 10px 0;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.video-facade:hover img {
  transform: scale(1.03);
}
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgb(0 0 0 / 0.4);
  transition: background 0.3s;
}
.video-facade:hover .play-overlay {
  background: rgb(0 0 0 / 0.3);
}
.play-button {
  color: #fff;
  font-size: 4.5rem;
  opacity: 0.9;
  transition: all 0.3s ease;
}
.video-facade:hover .play-button {
  opacity: 1;
  transform: scale(1.1);
}
.video-title {
  color: #fff;
  font-size: 1.1rem;
  margin-top: 15px;
  text-shadow: 0 2px 6px #000;
  text-align: center;
  padding: 0 15px;
}
.activated-video {
  width: 100%;
  height: 100%;
}
.lead {
  font-size: 1.15em;
  line-height: 1.6;
  font-style: italic;
  margin: 20px 0 30px;
  color: #ccc;
}
.xufos-story h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
}
.story-hero-image {
  margin: 5px 0 5px 0;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  border: 10px solid #000;
  border-radius: none;
  box-shadow: none;
  background: #000;
}
.story-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
@media (max-width: 768px) {
  .story-hero-image {
    margin: 5px 0 5px;
  }
  .pagination {
    gap: 8px;                     /* Slightly smaller gap */
    padding: 16px 8px;            /* Less padding */
    flex-wrap: wrap;
    justify-content: center;
	max-width:100%;
  }

  .pagination a,
  .pagination span {
    min-width: 44px;              /* Touch-friendly size */
    min-height: 44px;
    padding: 8px 10px;
    font-size: 0.9rem;
    border-radius: none;           /* Softer corners on mobile */
  }

  /* Make Previous/Next wider and more tappable */
  .pagination a[rel="prev"],
  .pagination a[rel="next"] {
    min-width: 80px;
    flex: 1 1 auto;
  }

  /* Optional: hide non-essential page numbers on very small screens */
  .pagination span:not(.active):not([rel="prev"]):not([rel="next"]) {
    display: none;
  }

  .pagination span.active {
    display: inline-flex;
  }
}
@media (max-width: 768px) {     /* 768px is common tablet/mobile breakpoint – adjust if needed */
    body {
        background: #000000 !important;  /* solid pure black – overrides any gradients/images */
        background-image: none !important;  /* remove any background images/patterns */
    }

    /* Optional: make sure content area doesn't have a different background */
    .page-container,
    .content-container {
        background: transparent !important;
    }

    /* Optional: darken text/background contrasts if needed for readability */
    .xufos-story,
    .disclaimer,
    .credits {
        background: rgba(0, 0, 0, 0.95) !important;  /* semi-transparent black overlay */
    }
}
@media (max-width: 480px) {
  .headimage img {
   width:370px;
   max-width:100%;
	height: 158px;
  display: flex;
  justify-content: center;
  align-items: center;
  }
}
/* Improve Firefox font rendering to be closer to Chromium */
@-moz-document url-prefix() {
    body {
        -moz-osx-font-smoothing: grayscale; /* sharper fonts */
        text-rendering: optimizeLegibility;
        font-smooth: always; /* experimental but helps */
    }

    h1, h2, h3, h4, h5, h6, .random-title, .article-div h1 {
        letter-spacing: -0.01em; /* subtle adjustment for Firefox boldness */
        font-weight: 600; /* or 600 — experiment */
		font-size: 1em;
    }
}

.go-home-bottom {
    display: block;
    max-width: 100%;
    padding: 20px;
    margin: 20px 0 20px;
    background-color: #ffffff;
    color: #000000;
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    border: 2px solid #000000;
    transition: all 0.3s ease;
}

.go-home-bottom:hover {
    background-color: red;
    color: black;
}

/* Fix any tiny flex/grid differences */
.pagination,
.random-posts,
.featured-list {
    gap: clamp(8px, 2vw, 12px); /* more flexible gap */
}

/* Soften filter effects if they look off */
.bg-video {
    filter: brightness(0.35) contrast(1.1) saturate(1.2) hue-rotate(240deg) !important;
}
@supports (-moz-appearance: none) {
    /* Firefox-specific tweaks */
    .random-title,
    h1 {
        font-weight: 600; /* lighter weight to match Chromium boldness */
        letter-spacing: -0.015em;
    }

    .pagination a,
    .pagination span {
        min-width: 42px; /* slight adjustment */
    }
}