/*
Theme Name: NoonanFilms v10
Theme URI:  https://noonanfilms.com
Author:     Matthew Noonan
Version:    1.1.81
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: noonanfilms-v9
Description: Media-first theme with podcast, audio, movie, and more.
*/

/* ==================================================
   TABLE OF CONTENTS
   00 Vars & Base
   01 Global Frame & Links
   02 Accessibility
   03 Layout: Main Overlay
   04 Carousel
   05 Archive: Grid & Tiles
   06 Archive: Pagination & “Load More”
   07 Page Header
   08 Single: General Typography
   09 Single: Video
   10 Single: Podcast / Audio
   11 Share Icons
   12 Navigation
       12A WP Core Post/Paging Nav (blue arrows)
       12B Generic Nav Buttons (legacy)
       12C Video Nav (gold “Load-More” style + icons)
       12D Audio Nav (legacy)
   13 Footer
   14 Utilities & Animations (spinner, fade-in, back-to-top)
===================================================== */


/* ==================================================
   00 VARS & BASE
   ================================================== */
:root {
  --nf-gold: #d0a35c;
  --nf-dark: #1f1f1f;
  --nf-gold-glow: rgba(208,163,92,.35);
  --nf-white: #fff;
  --nf-blue: #0066cc;
  --nf-blue-dk: #0055aa;
  --nf-gray-900: #111;
  --nf-gray-800: #181818;
  --nf-gray-700: #2a2a2a;
  --nf-gray-600: #333;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  padding: 10px; /* frame so background shows around everything */
  background-image: url('images/bg.jpg');
  background-repeat: repeat;
  background-size: auto;
/*  color: var(--nf-white); */
  font-family: "Open Sans Condensed", Helvetica, Arial, sans-serif;
}

/* Links */
a { text-decoration: none; color: inherit; }
a:hover { text-decoration: none; }

/* Utilities */
.hidden { opacity: 0; pointer-events: none; visibility: hidden; display: none; } /* one source of truth */


/* ==================================================
   02 ACCESSIBILITY
   ================================================== */
.skip-link {
  position: absolute;
  top: -40px; left: 0;
  background: #000; color: #fff;
  padding: 8px; z-index: 200;
  transition: top .3s;
}
.skip-link:focus { top: 0; }


/* ==================================================
   03 LAYOUT: MAIN OVERLAY
   ================================================== */
.site-main { background-color: var(--nf-main-bg, rgba(0, 0, 0, 0.5)); }

@media (min-width: 0) {
  body.single-post .site-main,
  body.page .site-main {
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--nf-main-bg, rgba(0, 0, 0, 0.5));
  }
}


/* ==================================================
   04 CAROUSEL
   ================================================== */
.welcome-carousel { position: relative; }
.welcome-carousel .slide {
  height: 400px; background-size: cover; background-position: center; position: relative;
}
.welcome-carousel .slide h2 {
  position: absolute; bottom: 20px; right: 50px; margin: 0;
  color: #fff; background: rgba(0,0,0,0.5); padding: 10px; border-radius: 4px;
}
.slick-prev, .slick-next {
  background: rgba(0,0,0,0.5); border: 0; color: #fff;
  font-size: 24px; width: 36px; height: 36px; border-radius: 50%;
}


/* ==================================================
   05 ARCHIVE: GRID & TILES
   ================================================== */
.archive-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem; padding: 1rem 0;
}
.archive-item { position: relative; overflow: hidden; }
.archive-item img { width: 100%; height: auto; display: block; }

.archive-item .entry-thumbnail {
  width: 100%; padding-bottom: 100%; position: relative; overflow: hidden;
}
.archive-item .entry-thumbnail img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease;
}
.archive-item .entry-thumbnail:hover img { transform: scale(1.1); }

.archive-item .entry-header {
  position: absolute; bottom: 0; left: 0; width: 100%;
  background: rgba(255,255,255,0.7); padding: .5rem;
  border-radius: 0;
}
.archive-item .entry-header .entry-title { margin: 0; font-size: 1.1rem; line-height: 1.2; color: #333; }
.archive-item .entry-header .entry-title a { color: #333; transition: color .3s; }
.archive-item .entry-header .entry-title a:hover { color: #0066cc; }
.archive-item .entry-header .entry-meta,
.archive-item .entry-header .entry-meta a,
.archive-item .entry-header .archive-date,
.archive-item .entry-header .archive-date a {
  color: #333;
}

/* Blur-up placeholders for tiles */
.image-wrapper {
  position: relative; width: 100%; padding-bottom: 100%;
  background-size: cover; background-position: center;
  filter: blur(5px); transition: filter .5s ease-out;
}
.image-wrapper img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .5s ease-out;
}
.image-wrapper.loaded { filter: none; }
.image-wrapper img.loaded { opacity: 1; filter: none; }


/* ==================================================
   06 ARCHIVE: PAGINATION & “LOAD MORE”
   ================================================== */
.pagination-wrapper {
  text-align: center; margin: 0; padding: 10px 0;
}
.pagination {
  display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.page-numbers {
  display: inline-block; padding: .75rem 1.5rem; font-size: 1rem; font-weight: 600;
  text-transform: uppercase; background: var(--nf-gray-900); color: #fff; border-radius: 4px;
  cursor: pointer; transition: all .3s ease; opacity: 0; animation: fadeIn .6s ease forwards;
}
.page-numbers:hover, .page-numbers.current {
  background: #333; color: var(--nf-gold); box-shadow: 0 0 8px rgba(0, 123, 255, .6);
}
.page-numbers.prev, .page-numbers.next { background: #2c2c2c; }
.page-numbers.dots { background: transparent; color: #aaa; pointer-events: none; box-shadow: none; }

/* Animated “load more” button (archive) */
.animated-button.full-width {
  display: block; width: 100%; margin: 1rem auto .5rem; padding: 1rem 1.5rem;
  border: 2px solid var(--nf-gold); background: #222; color: var(--nf-gold); font-weight: 700; font-size: 1.1rem;
  text-align: center; border-radius: 8px; position: relative; overflow: hidden;
  animation: pulse-glow 2.5s infinite ease-in-out; transition: background .3s, color .3s;
}
.animated-button.full-width:hover { background: #333; color: #fff; border-color: var(--nf-gold); }
.animated-button.full-width .pulsing-text { display: inline-block; animation: pulse-text 2s infinite ease-in-out; }


/* ==================================================
   07 PAGE HEADER
   ================================================== */
.page-header { background: #151515; margin-top: 0; padding: 1rem; }
.page-header .page-title {
  color: #f0f0f0; margin: 0; font-size: 2rem;
}
.page-header .taxonomy-description { color: #ccc; margin-top: .5rem; }
@media (max-width: 768px) { .page-header .page-title { max-width: 300ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
@media (max-width: 480px) { .page-header .page-title { max-width: 26ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }


/* ==================================================
   08 SINGLE: GENERAL TYPOGRAPHY
   ================================================== */
body.single-post .entry-header .entry-title,
body.page .page-header .page-title {
  font-size: 24px; font-weight: 700; text-transform: uppercase; color: #fff;
  margin-bottom: 1rem; line-height: 1.2;
}

body.single-post .entry-content,
body.page .page-content { font-size: 16px; line-height: 1.6; color: #eee; }
body.single-post .entry-content a,
body.page .page-content a { color: var(--nf-blue); text-decoration: underline; transition: color .3s; }
body.single-post .entry-content a:hover,
body.page .page-content a:hover { color: #63b3ed; }


/* ==================================================
   09 SINGLE: VIDEO
   ================================================== */
.video-meta-grid { display: flex; gap: 1rem; margin-bottom: 2rem; }
.video-image { flex: 0 0 36%; }
.video-image img { display: block; width: 100%; height: auto; border-radius: 4px; }
.video-details { flex: 2; }
@media (max-width: 768px) { .video-meta-grid { flex-direction: column; } }

.video-title { margin: 0 0 .25em; font-size: 2rem; color: #fff; }
.video-date { font-size: .9rem; color: #ddd; margin-bottom: 1rem; }

.video-entry-content { color: #eee; line-height: 1.6; }
.video-info,
.video-infobox { list-style: none; padding: 0; margin: 1rem 0; }
.video-info li,
.video-infobox li { margin-bottom: .5rem; color: #fff; }
.video-info-icon { height: 30px; }

.video-job-title { margin-bottom: .5em; color: #fff; transition: transform .5s; }
.video-job-title a { color: #1e90ff; text-decoration: none; padding: 5px; display: inline-block; }
.video-job-title a:hover { background: #fff; border-radius: 4px; }

/* Word Matrix links inside video details: high-visibility interactive style */
.video-info a.nf-word-matrix-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  margin: 2px 4px 2px 0;
  border: 1px solid rgba(133, 198, 255, 0.62);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(26, 61, 97, 0.74) 0%, rgba(12, 36, 62, 0.74) 100%);
  color: #84cfff;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 0 0 0 rgba(132, 207, 255, 0);
  transform: translateY(0) scale(1);
  transition: transform .16s ease, box-shadow .22s ease, color .2s ease, border-color .2s ease, background .2s ease;
  position: relative;
  overflow: hidden;
}

.video-info a.nf-word-matrix-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.22) 48%, transparent 100%);
  transform: translateX(-120%);
  transition: transform .38s ease;
  pointer-events: none;
}

.video-info a.nf-word-matrix-link:hover,
.video-info a.nf-word-matrix-link:focus-visible {
  color: #dff3ff;
  border-color: #8fd9ff;
  background: linear-gradient(180deg, rgba(42, 89, 132, 0.88) 0%, rgba(16, 53, 88, 0.88) 100%);
  box-shadow: 0 0 0 2px rgba(143, 217, 255, 0.2), 0 8px 18px rgba(7, 20, 35, 0.35);
  transform: translateY(-1px) scale(1.03);
}

.video-info a.nf-word-matrix-link:hover::after,
.video-info a.nf-word-matrix-link:focus-visible::after {
  transform: translateX(120%);
}

.video-info a.nf-word-matrix-link:active {
  transform: scale(0.95);
  box-shadow: 0 0 0 1px rgba(143, 217, 255, 0.16), 0 3px 8px rgba(7, 20, 35, 0.34);
}

.video-scraped { list-style: none; margin: 1rem 0 0; padding: 0; }
.video-scraped li { margin-bottom: .5em; font-size: .95em; }


/* ==================================================
   10 SINGLE: PODCAST / AUDIO
   ================================================== */
.nf-podcast-player-wrap { width: 100%; margin-bottom: 1rem; }
.nf-podcast-player { width: 100%; appearance: none; background: #222; accent-color: var(--nf-blue); border-radius: 8px; height: 48px; }

.nf-podcast-meta-grid { display: grid; grid-template-columns: 36% 64%; gap: 1rem; align-items: start; margin-bottom: 1.5rem; }
@media (max-width: 768px) { .nf-podcast-meta-grid { grid-template-columns: 1fr; } }

.nf-podcast-image img { width: 100%; height: auto; border-radius: 8px; display: block; }
.nf-podcast-details { text-align: left; }
.nf-podcast-details .entry-title { font-size: 2rem; margin: 0 0 .5rem; }
.podcast-author, .podcast-date { margin: .25rem 0; color: #666; }

.podcast-player-container { width: 100%; margin-bottom: 2rem; }
.podcast-player { width: 100%; height: auto; max-width: 100%; }
.podcast-coming-soon { text-align: center; font-style: italic; color: #ccc; margin-bottom: 2rem; }

.podcast-meta-grid { display: flex; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap; }
.podcast-image { flex: 0 0 36%; }
.podcast-image img { display: block; width: 100%; height: auto; border-radius: 4px; }
.podcast-image-placeholder { width: 100%; padding: 2rem; background: #333; color: #fff; text-align: center; border-radius: 4px; }
.podcast-details { flex: 1 1 60%; }
.podcast-title { margin-top: 0; font-size: 2rem; line-height: 1.2; }
.podcast-share-row { margin: 0.6rem 0 0.9rem; }
.podcast-share-row .nf-share-icons { justify-content: flex-start; margin: 0; }
@media (max-width: 768px) { .podcast-meta-grid { flex-direction: column; } }
.podcast-entry-content { margin-bottom: 2rem; line-height: 1.6; }

/* Podcast bottom feed (single audio) */
.podcast-past {
  background: #222;
  color: #fff;
  padding: 48px 0;
}

.podcast-past__inner {
  width: min(1320px, 96%);
  margin: 0 auto;
}

.nf-podcast-feed {
  width: 100%;
}

.nf-podcast-feed-title {
  margin: 0 0 0.7rem;
  font-size: clamp(1.25rem, 2.1vw, 1.7rem);
  line-height: 1.05;
  color: #f2f5fb;
}

.nf-podcast-feed-list {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.nf-podcast-feed-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nf-podcast-feed-item {
  display: grid;
  grid-template-columns: 124px 1fr auto;
  gap: 14px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 10px;
  text-decoration: none;
  color: #e6ebf4;
  border-radius: 10px;
  transition: background-color .2s ease, transform .2s ease;
}

.nf-podcast-feed-item:hover,
.nf-podcast-feed-item:focus {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(2px);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.06), 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nf-podcast-feed-thumbwrap {
  position: relative;
  width: 124px;
  height: 124px;
  border-radius: 8px;
  overflow: hidden;
  background: #2a313d;
}

.nf-podcast-feed-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nf-podcast-feed-thumb--ph {
  display: block;
  width: 100%;
  height: 100%;
}

.nf-podcast-feed-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.78);
  color: #fff;
  font-size: 1.2rem;
  line-height: 48px;
  text-align: center;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
}

.nf-podcast-feed-item:hover .nf-podcast-feed-play,
.nf-podcast-feed-item:focus .nf-podcast-feed-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.nf-podcast-feed-content {
  min-width: 0;
}

.nf-podcast-feed-date {
  margin: 0 0 0.2rem;
  color: #a7b0c0;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nf-podcast-feed-episode {
  margin: 0;
  color: #f6f8fb;
  font-size: clamp(1.18rem, 2vw, 1.85rem);
  line-height: 1.15;
}

.nf-podcast-feed-summary {
  margin: 0.32rem 0 0;
  color: #c3cad7;
  font-size: 1.02rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nf-podcast-feed-runtime {
  margin-top: 0.3rem;
  color: #d7ddeb;
  font-size: 0.95rem;
  align-self: center;
  white-space: nowrap;
}

.nf-podcast-feed-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.4rem;
}

.nf-podcast-feed-recent {
  color: #d4b6ff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-height: 1em;
}

.nf-podcast-feed-seeall {
  margin-top: 0.8rem;
}

.nf-podcast-feed-seeall a {
  color: #aa7bff;
  font-size: 1.2rem;
  line-height: 1;
  text-decoration: none;
}

@media (max-width: 900px) {
  .nf-podcast-feed-item {
    grid-template-columns: 92px 1fr;
    gap: 10px;
    padding: 10px 6px;
  }

  .nf-podcast-feed-thumbwrap {
    width: 92px;
    height: 92px;
  }

  .nf-podcast-feed-episode {
    font-size: clamp(1rem, 4.5vw, 1.3rem);
  }

  .nf-podcast-feed-summary {
    font-size: 0.94rem;
    -webkit-line-clamp: 2;
  }

  .nf-podcast-feed-runtime {
    align-self: auto;
  }

  .nf-podcast-feed-side {
    align-items: flex-start;
    gap: 0.2rem;
  }

  .nf-podcast-feed-recent {
    font-size: 0.72rem;
  }

  .nf-podcast-feed-play {
    opacity: 1;
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 1rem;
  }

  .nf-podcast-feed-seeall a {
    font-size: 1rem;
  }
}

/* Single-page color normalization */
.single-post .site-main,
.single-post .podcast-player-container,
.single-post .podcast-meta-grid,
.single-post .podcast-details,
.single-post .podcast-title,
.single-post .entry-content { color: #fff; }


/* ==================================================
   11 SHARE ICONS
   ================================================== */
.nf-share-icons {
  display: flex; list-style: none; margin: 1rem 0; padding: 0; justify-content: center;
}
.nf-share-icons li { margin: 0 10px; }
.nf-share-icons li a {
  width: 80px; height: 80px; background: #fff; text-align: center; line-height: 80px;
  font-size: 35px; display: block; border-radius: 50%; overflow: hidden; border: 3px solid #fff; z-index: 1; position: relative;
  transition: color .5s ease;
}
.nf-share-icons li a .icon { position: relative; color: #262626; transition: color .5s, transform .5s; z-index: 3; }
.nf-share-icons li a:hover .icon { color: #fff; transform: rotateY(360deg); }
.nf-share-icon-image {
  position: relative;
  z-index: 3;
  width: 56%;
  height: 56%;
  object-fit: contain;
  vertical-align: middle;
  transition: transform .5s;
}
.nf-share-icons li a:hover .nf-share-icon-image { transform: rotateY(360deg); }
.nf-share-icons li a::before {
  content: ""; position: absolute; top: 100%; left: 0; width: 100%; height: 100%;
  background: #f00; transition: top .5s ease; z-index: 2;
}
.nf-share-icons li a:hover::before { top: 0; }
.nf-share-icons li:nth-child(1) a::before { background: #dd4b39; }
.nf-share-icons li:nth-child(2) a::before { background: #3b5999; }
.nf-share-icons li:nth-child(3) a::before { background: #55acee; }
.nf-share-icons li:nth-child(4) a::before { background: #444; }
.nf-share-icons li:nth-child(5) a::before { background: #25D366; }

.nf-share-icons.nf-share-icons--dynamic li { margin: 0 6px; }
.nf-share-icons.nf-share-icons--dynamic li a {
  width: var(--nf-share-size, 44px);
  height: var(--nf-share-size, 44px);
  line-height: var(--nf-share-size, 44px);
  font-size: clamp(16px, calc(var(--nf-share-size, 44px) * 0.42), 38px);
  background: var(--nf-share-bg, #ffffff);
  border-color: var(--nf-share-bg, #ffffff);
  border-radius: 50%;
  transition: transform .25s ease, box-shadow .25s ease, color .5s ease;
}
.nf-share-icons.nf-share-icons--dynamic li a:hover,
.nf-share-icons.nf-share-icons--dynamic li a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}
.nf-share-icons.nf-share-icons--dynamic li a .icon {
  color: var(--nf-share-icon, #262626);
}
.nf-share-icons.nf-share-icons--dynamic li a::before {
  background: var(--nf-share-item-hover, var(--nf-share-hover, #2f84ff));
}


/* ==================================================
   12 NAVIGATION
   ================================================== */

/* 12A) WP Core Post/Paging Nav (blue arrows) */
.site-main .post-navigation,
.site-main .paging-navigation {
  background: #444; font-weight: bold; margin: 0; clear: both; text-transform: uppercase;
}
.site-main .post-navigation .nav-links,
.site-main .paging-navigation .nav-links { margin: 0 auto; max-width: 100%; }
@media (max-width: 1180px), (max-width: 885px) {
  .site-main .post-navigation .nav-links,
  .site-main .paging-navigation .nav-links { width: 100%; }
}
.site-main .post-navigation .nav-previous a,
.site-main .paging-navigation .nav-previous a {
  background: #07a1f2; color: rgba(255,255,255,.5); float: left; padding: 15px 15px 15px 65px; position: relative; text-align: center; width: 50%;
}
.site-main .post-navigation .nav-next a,
.site-main .paging-navigation .nav-next a {
  background: #07a1f2; color: rgba(255,255,255,.5); float: right; padding: 15px 65px 15px 15px; position: relative; text-align: center; width: 45%;
}
.site-main .post-navigation .nav-previous a:hover,
.site-main .paging-navigation .nav-previous a:hover,
.site-main .post-navigation .nav-next a:hover,
.site-main .paging-navigation .nav-next a:hover { color: #fff; }
.site-main .post-navigation .meta-nav:before,
.site-main .paging-navigation .meta-nav:before {
  content: "<"; background: #0691d9; display: block; font-size: 32px; line-height: 60px;
  position: absolute; left: 0; top: 0; width: 60px; height: 60px;
}
.site-main .post-navigation .nav-next .meta-nav:after,
.site-main .paging-navigation .nav-next .meta-nav:after {
  content: ">"; background: #0691d9; display: block; font-size: 32px; line-height: 60px;
  position: absolute; right: 0; top: 0; width: 60px; height: 60px;
}

/* 12B) Generic Nav Buttons (legacy—kept for non-video uses) */
.nav-buttons { display: flex; gap: 1rem; margin-top: 2rem; }
.nav-button {
  flex: 1; display: block; padding: 1rem; text-align: center;
  background: #333; color: #fff; text-decoration: none; font-size: 1.2rem; border-radius: 0;
  transition: transform .3s, background .3s; position: relative; overflow: hidden;
}
.nav-button:active { transform: scale(.98); }
.nav-button.next { background: var(--nf-blue-dk); }
.nav-button.next:hover,
.nav-button.prev:hover { background: var(--nf-blue); }

/* 12C) VIDEO NAV — gold “Load-More” style + end icons */
.video-nav-buttons.nav-like-loadmore {
  display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 1.25rem;
}
.video-nav-buttons.nav-like-loadmore .nav-button {
  position: relative; display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 18px 22px; text-align: center; font-weight: 800; line-height: 1.2; text-decoration: none;
  color: var(--nf-gold); background: var(--nf-dark); border: 3px solid var(--nf-gold); border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 2px 8px rgba(0,0,0,.35);
  transition: transform .08s ease-out, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.video-nav-buttons.nav-like-loadmore .nav-button::after {
  content: ""; position: absolute; inset: 2px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); pointer-events: none;
}
.video-nav-buttons.nav-like-loadmore .nav-button::before {
  content: ""; position: absolute; inset: -2px; border-radius: 16px; box-shadow: 0 0 0 0 transparent; transition: box-shadow .25s ease; pointer-events: none;
}
.video-nav-buttons.nav-like-loadmore .nav-button:hover,
.video-nav-buttons.nav-like-loadmore .nav-button:focus {
  background: var(--nf-gray-800); transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.09), 0 6px 16px rgba(0,0,0,.45);
  outline: none;
}
.video-nav-buttons.nav-like-loadmore .nav-button:hover::before,
.video-nav-buttons.nav-like-loadmore .nav-button:focus::before {
  box-shadow: 0 0 0 1px rgba(255,255,255,.10), 0 0 18px var(--nf-gold-glow), 0 0 36px rgba(208,163,92,.20);
}
.video-nav-buttons.nav-like-loadmore .pulsing-text { display: inline-block; animation: nf-pulse 1.6s ease-in-out infinite; }
.video-nav-buttons.nav-like-loadmore .btn-icon {
  display: inline-flex; width: 24px; height: 24px; flex: 0 0 auto; transform: translateX(0); transition: transform .18s ease;
}
.video-nav-buttons.nav-like-loadmore .nav-button.next:hover .btn-icon,
.video-nav-buttons.nav-like-loadmore .nav-button.prev:hover .btn-icon { transform: translateX(3px); }

/* 12D) AUDIO NAV (legacy) */
.audio-nav-buttons { display: flex; margin: -1rem 0; gap: 1px; }
.audio-nav-buttons .nav-button {
  flex: 1; display: flex; align-items: center; text-decoration: none; color: #fff; overflow: hidden; height: 40px;
}
.audio-nav-buttons .nav-button .btn-icon { flex: 0 0 40px; display: flex; align-items: center; justify-content: center; }
.audio-nav-buttons .nav-button .btn-text {
  flex: 1; background: var(--nf-blue); padding: 0;
  font-size: 1rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.audio-nav-buttons .nav-button.next { flex-direction: row-reverse; }
.audio-nav-buttons .nav-button:hover .btn-icon,
.audio-nav-buttons .nav-button:hover .btn-text { background: #0077ee; }
.audio-nav-buttons .nav-button .btn-icon svg { width: 40px; height: 50px; fill: #fff; }


/* ==================================================
   13 FOOTER
   ================================================== */
.site-footer { background: #222; color: var(--nf-gold); min-height: 58px; margin: 0; padding: 0; text-align: center; }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px 0 0;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo img { display: block; height: 58px; width: auto; transition: transform .3s, filter .3s; }
.footer-logo img:hover { transform: translateX(10px); filter: invert(50%); }

.footer-navigation .footer-menu {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  margin: 0; padding: 0; list-style: none;
}
.footer-menu li { position: relative; white-space: nowrap; margin: 0 8px; }
.footer-menu li + li::before { content: none; }

.footer-menu .site-info-item,
.footer-menu a {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px; font-weight: 700; text-transform: uppercase;
  color: var(--nf-gold); text-decoration: none; transition: color .3s, transform .2s;
}
.footer-menu a:hover { animation: footerLinkColorShift .5s ease forwards; transform: translateY(-2px); }


/* ==================================================
   14 UTILITIES & ANIMATIONS
   ================================================== */

/* Fade-in (tiles & misc) */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.post-item { transition: opacity .6s ease, transform .6s ease; opacity: 1; }
.post-item.fade-in { animation: fadeIn .6s ease both; }

/* Pulse (archive button text) */
@keyframes pulse-text { 0%,100% { text-shadow: 0 0 0px var(--nf-gold); opacity: 1; } 50% { text-shadow: 0 0 8px var(--nf-gold); opacity: .8; } }
@keyframes pulse-glow { 0% { box-shadow: 0 0 0 0 rgba(208,163,92,.5); } 70% { box-shadow: 0 0 0 12px rgba(208,163,92,0); } 100% { box-shadow: 0 0 0 0 rgba(208,163,92,0); } }
@keyframes nf-pulse { 0% { text-shadow: 0 0 0 rgba(208,163,92,0);} 50% { text-shadow: 0 0 10px rgba(208,163,92,.45);} 100% { text-shadow: 0 0 0 rgba(208,163,92,0);} }

/* Spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  display: inline-block; width: 24px; height: 24px;
  border: 3px solid rgba(0,0,0,0.1); border-top-color: var(--nf-blue);
  border-radius: 50%; animation: spin 1s linear infinite; vertical-align: middle; margin-right: 8px;
}
#infinite-loading { text-align: center; padding: 1rem 0; font-size: 1rem; color: #333; }

/* Back to Top */
#back-to-top {
  position: fixed; top: .45rem; right: 4rem; z-index: 9999;
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem; background: #fff; border: 1px solid #ccc; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  font-size: .9rem; font-weight: 600; color: #222;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
@media (min-width: 768px) { #back-to-top { left: 50%; top: 3.5rem; transform: translateX(-50%); right: auto; } }
#back-to-top:hover { background: #F5F5F5; color: #119; font-weight: 600; opacity: 1; }
#back-to-top svg { width: 20px; height: 20px; fill: #222; animation: float-up-fade 1.8s ease-in-out infinite; }
#back-to-top.show { opacity: 1; pointer-events: auto; }
@keyframes float-up-fade { 0% { transform: translateY(30%); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-30%); opacity: 0; } }

/* Footer link color shift */
@keyframes footerLinkColorShift {
  0% { color: var(--nf-gold); }
  50% { color: #e318e5; }
  100% { color: #2a64c5; }
}



/* =========================================
   Archive "Loading..." — Gold Load-More Style
   ========================================= */

/* Wrapper keeps the bar full-width & centered */
#load-more-wrapper {
  width: 100%;
}

/* Match the gold bar look (like your category Load More) */
#infinite-scroll-loader {
  /* layout */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  width: 100%;
  padding: 18px 22px;
  text-align: center;
  font-weight: 800;
  line-height: 1.2;

  /* colors */
  color: var(--nf-gold, #d0a35c);
  background: var(--nf-dark, #1f1f1f);
  border: 3px solid var(--nf-gold, #d0a35c);
  border-radius: 14px;

  /* effects */
  position: relative;           /* for pseudo borders */
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.06),
    0 2px 8px rgba(0,0,0,.35);
  transition:
    background .2s ease,
    box-shadow .2s ease,
    transform .08s ease-out;
}

/* Inner keyline (subtle second border) */
#infinite-scroll-loader::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  pointer-events: none;
}

/* Outer glow ring (appears when visible) */
#infinite-scroll-loader:not(.hidden)::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.10),
    0 0 18px rgba(208,163,92,.35),
    0 0 36px rgba(208,163,92,.20);
  pointer-events: none;
  transition: box-shadow .25s ease;
}

/* Pulse the text like your gold bar */
#infinite-scroll-loader:not(.hidden) {
  animation: nf-pulse 1.6s ease-in-out infinite;
}

/* Animated dots after "Loading" */
#infinite-scroll-loader .dot {
  display: inline-block;
  width: .45em;
  text-align: center;
  animation: nf-ellipsis 1.2s ease-in-out infinite;
  opacity: .25;
}
#infinite-scroll-loader .dot.one   { animation-delay: 0s;   }
#infinite-scroll-loader .dot.two   { animation-delay: .2s;  }
#infinite-scroll-loader .dot.three { animation-delay: .4s;  }

@keyframes nf-ellipsis {
  0%, 20%   { opacity: .25; transform: translateY(0);   }
  50%       { opacity: 1;    transform: translateY(-1px); }
  100%      { opacity: .25; transform: translateY(0);   }
}

/* Hover (if you ever make it clickable for manual load) */
#infinite-scroll-loader:hover {
  background: #181818;
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.09),
    0 6px 16px rgba(0,0,0,.45);
}

/* --- Optional: retire older loader styles if present --- */
#infinite-loading { all: unset; }

/* ==================================================
   32 Standard Hero
   ================================================== */
.nf-standard-hero-wrap {
  width: 100%;
  margin: 0 0 0rem;
  background: var(--nf-standard-hero-bg, #111);
}

.nf-standard-hero-inner {
  max-width: 1260px;
  margin: 0 auto;
}

.nf-standard-hero-image {
  width: 100%;
  height: auto;
  display: block;
  max-height: var(--nf-standard-hero-max-h, 900px);
  object-fit: contain;
}

.standard-meta-grid {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 18px;
  align-items: start;
}

.standard-meta-grid .standard-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

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

/* ==================================================
   33 Visibility Toggles
   ================================================== */
body.nf-hide-title .standard-title,
body.nf-hide-title .podcast-title,
body.nf-hide-title .video-title,
body.nf-hide-title .the-page-title,
body.nf-hide-title .entry-header .entry-title,
body.nf-hide-title .entry-header h1 {
  display: none !important;
}

body.nf-hide-author .standard-author,
body.nf-hide-author .podcast-author,
body.nf-hide-author .video-author,
body.nf-hide-author .entry-meta .byline,
body.nf-hide-author .author,
body.nf-hide-author .byline {
  display: none !important;
}

body.nf-hide-date .standard-date,
body.nf-hide-date .podcast-date,
body.nf-hide-date .video-info-release-date,
body.nf-hide-date .entry-meta .posted-on,
body.nf-hide-date time.entry-date,
body.nf-hide-date .posted-on {
  display: none !important;
}

/* ==================================================
   15 Single: Game Splash (Aside format)
   ================================================== */
.nf-game-splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  padding: 24px;
  box-sizing: border-box;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity .55s ease, visibility .55s ease;
}

.nf-game-splash.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.nf-game-splash-media {
  width: auto;
  height: auto;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
}

.nf-game-splash-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.nf-game-splash-title-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9vh;
  display: flex;
  justify-content: center;
  padding: 0 16px;
}

.nf-game-splash-title {
  margin: 0;
  color: #fff;
  text-align: center;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.06;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.65);
}

.nf-game-splash.is-title-hidden .nf-game-splash-title-wrap {
  display: none !important;
}

.nf-game-splash.nf-game-splash-title-top-center .nf-game-splash-title-wrap {
  top: 6vh;
  bottom: auto;
}

.nf-game-splash.nf-game-splash-title-center .nf-game-splash-title-wrap {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}

.nf-game-splash.nf-game-splash-title-bottom-left .nf-game-splash-title-wrap {
  left: 0;
  right: auto;
  justify-content: flex-start;
  bottom: 6vh;
  width: auto;
}

.nf-game-splash.nf-game-splash-title-bottom-right .nf-game-splash-title-wrap {
  left: auto;
  right: 0;
  justify-content: flex-end;
  bottom: 6vh;
  width: auto;
}

body.nf-game-remove-space #page-content.site-main {
  margin: 0;
  max-width: none;
}

body.nf-game-remove-space #page-content.site-main .post,
body.nf-game-remove-space #page-content.site-main article,
body.nf-game-remove-space #page-content.site-main .entry-content,
body.nf-game-remove-space #page-content.site-main .entry-header {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}
