/* ========================================
   XUFOS – CLEANED & ORGANIZED STYLES (Feb 2026)
   All original visual appearance preserved
   Duplicates removed, structure improved
======================================== */

/* 1. Root Variables & Fonts */
: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;
}

/* 2. Base & Global */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  /*background: #0077b6262633;*/
  background: #262633;
  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: rgba(0, 0, 0, 0.6);   /* adjust opacity 0.2–0.6 */
    z-index: -5;                      /* between video and content */
    pointer-events: none;
}
.page-container {
  min-height: 100vh;
  position: relative;
}

.content-wrapper {
  min-height: 820px;
  background: rgba(255, 255, 255, 0.02);
  position: relative;
  padding-bottom: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 1px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-color);
}

/* 3. Header & Navigation */
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 rgba(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: transparent;
}
.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;
}

/* 4. Main Layout & Typography */
main {
  margin-top: 40px;
}

.content-container {
  max-width: 940px;
  margin: 0 auto;
  padding: 10px 20px 50px;
}

hr {
  height: 1px;
  border: none;
  background: white;
  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: black;
  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;
}

/* Thumbnail container */
.article-thumbnail {
  flex-shrink: 0;
  width: 150px;
  height: 195px;
  overflow: hidden;
  border: 1px solid black;
  border-radius: 0;
  transition: all 0.3s;
  margin: 0px;
}

.article-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-div:hover .article-thumbnail {
  border-color: black;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}

/* Optional: darken/overlay if video is too bright */
/* Doors reveal container – full viewport */
.doors-reveal {
    position: fixed;
    inset: 0;
    z-index: -5;                  /* above video, below content */
    pointer-events: none;
    overflow: hidden;
}

/* Individual doors – now top and bottom */
.door {
    position: absolute;
    left: 0;
    right: 0;
    height: 50%;
    background: #000;             /* solid black */
    transform-origin: center;
    will-change: transform;
}

/* Top door hinges/pivots from top edge */
.top-door {
    top: 0;
    transform-origin: top center;
}

/* Bottom door hinges/pivots from bottom edge */
.bottom-door {
    bottom: 0;
    transform-origin: bottom center;
}

/* Animation: doors open vertically over 4 seconds */
@keyframes openVerticalDoors {
    0% {
        transform: rotateX(0deg);   /* closed – flat */
    }
    100% {
        transform: rotateX(90deg);  /* fully open – swung up/down */
    }
}

/* Apply to both doors */
.top-door, .bottom-door {
    animation: openVerticalDoors 4s forwards ease-in-out;
    animation-delay: 0.5s;        /* slight start delay */
}

/* Optional: fade doors out at the end for clean reveal */
@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;
}

/* Ensure video is behind */
.bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -10;
    pointer-events: none;
}
/* Article Cards */
.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 rgba(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: black;
  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 rgba(0, 212, 255, 0.08);
  transition: box-shadow 0.4s ease;
  display: none;
}

.random-quotes:hover {
  box-shadow: 0 0 35px rgba(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: rgba(0, 212, 255, 0.03);
  border-left: 4px solid var(--accent-color);
  transition: all 0.3s ease;
}

.random-quotes blockquote:hover {
  background: rgba(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: rgba(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 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 5px 0 5px;
  padding: 20px 10px;
  background: black;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  text-transform: uppercase;
}

.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: transparent;
}

.pagination a:hover,
.pagination a:focus {
  background: white;
  color: #000;
  border-color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.pagination a.active {
  background: white;
  color: #000;
  border-color: white;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 212, 255, 0.25);
}

.pagination span.disabled {
  color: #999;
  background: black;
  border-color: #333;
  cursor: not-allowed;
}

.ellipsis {
  color: #777;
  border: none;
  background: transparent;
  pointer-events: none;
}
/* Original alternating thumbnail positions on desktop */
@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;                   /* space between text and optional icon */
    padding: 8px 30px 5px 30px;
    background: white;
    color: black;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    border: 1px solid #ccc;     /* subtle border for definition */
    border-radius: none;         /* slight rounding to match modern nav feel */
    transition: all 0.3s ease;
    white-space: nowrap;
}

.youtubelink:hover,
.youtubelink:focus {
    background: red;
    color: black;
    border-color: red;
    transform: translateY(-1px); /* subtle lift on hover */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Optional: if you want to add a small YouTube icon */
.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%;               /* never overflow container */
        box-sizing: border-box;
    }
}
/* Visually hidden text for screen readers if icon-only version is used later */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
/* Mobile: stack vertically, center elements */
@media (max-width: 768px) {
  header {
    height: 50px;
  }

  .burger-menu {
    display: block;
  }

  .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: #ffffff;
  background: #000000;
  border: 1px solid #555;
  border-radius: 0;
  transition: all 0.35s ease;
  box-shadow: 0 2px 8px rgba(0, 212, 255, 0.12);
}

.read-more-btn:hover,
.read-more-btn:focus {
  color: #000000;
  background: #ffffff;
  border-color: #000000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

/* Featured Stories */
.featured-stories {
  margin: 5px 0;
  padding: 10px 10px 0;
  background: black;
  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;  /* smooth easing + longer fade */
    opacity: 1;
    will-change: opacity, transform;  /* hint to browser for smoother animation */
}

.featured-thumbnail,
.featured-item h3 {
    transition: opacity 1.2s ease;  /* optional: children fade too */
	font-size:0.9em;
	font-weight:400;
}

/* Optional subtle lift on hover */
.featured-item:hover {
    transform: translateY(-6px);
}
/* Search */
.search-container {
  position: relative;
  margin: 5px 0;
  max-width: 940px;
  width: 100%;
  padding: 5px;
  box-sizing: border-box;
  background: black;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(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 rgba(0, 212, 255, 0.25);
}

#live-search-input {
  flex: 1;
  padding: 10px;
  font-size: 0.9em;
  background: rgba(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: black;
  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: rgba(20, 20, 28, 0.98);
  border: 1px solid #333;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 12px 30px rgba(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: rgba(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;
}

/* Centered Image Wrapper */
.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 */
.random-posts {
  margin: 5px 0;
  padding: 0 0 10px 0;
  background: black;
  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: rgba(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 rgba(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: black;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  text-shadow: 3px 2px 2px rgba(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 */
.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 */
.friends-links-section {
  margin: 0 0 5px;
  padding: 10px;
  background: black;
}

.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: 10px 12px;
  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: rgba(0, 212, 255, 0.12);
  color: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateX(4px);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.25);
}

/* Notices & Footer */
.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: rgba(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;
  }
}



/* Story Page Content */
.xufos-story {
  max-width: 940px;
  margin: 5px 0;
  padding: 10px;
  background: black;
  border: 1px solid black;
  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: rgba(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 */
.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 */
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 */
.mobile-notice {
  text-align: center;
  padding: 20px 15px;
  margin: 5px 0;
  max-width: 100%;
  background: black;
  border-radius: 0;
  color: white;
  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 */
.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 rgba(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);
}

/* Animations */
@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 */
.light-mode {
  --bg-color: #ffffff;
  --text-color: #000000;
  --border-color: #000000;
}

.light-mode body {
  background: #f8f9fa;
}

.light-mode .page-container {
  background: #666666;
}
.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 rgba(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 rgba(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: rgba(0,0,0,0.4);
    transition: background 0.3s;
}

.video-facade:hover .play-overlay {
    background: rgba(0,0,0,0.3);
}

.play-button {
    color: white;
    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: white;
    font-size: 1.1rem;
    margin-top: 15px;
    text-shadow: 0 2px 6px black;
    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;      /* or 8px / 10px if 5px feels too tight */
    padding-top: 0;
}
.story-hero-image {
    margin: 5px 0 5px 0;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    border: 10px solid black;
    border-radius: none;
    box-shadow: none;
	background: black;
}

.story-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 768px) {
    .story-hero-image {
        margin: 5px 0 5px;
    }
}