/*
Theme Name: Nest Media
Theme URI: http://localhost:8080/nestmedia
Author: Nest Media
Description: 3D Camera Fly-Through Cinema News Theme v4
Version: 4.0.0
License: GNU General Public License v2 or later
Text Domain: nestmedia
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,700;0,900;1,700;1,900&family=Noto+Sans+Devanagari:wght@400;700&family=Noto+Sans+Tamil:wght@400;700&display=swap');

/* ═══════════════════════════════════════════════════════
   NEST MEDIA v4 — ROOT DESIGN TOKENS
═══════════════════════════════════════════════════════ */
:root {
  /* Base (light) */
  --bg: #ffffff;
  --bg-2: #f6f7f9;
  --text: #0a0a0a;
  --text-2: #555;
  --accent: #E63946;
  --accent-2: #B02A35;
  --border: rgba(0, 0, 0, 0.08);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  --card-hover: 0 16px 40px rgba(0, 0, 0, 0.13);

  /* Fonts */
  --f-ui: 'Inter', sans-serif;
  --f-display: 'Playfair Display', serif;
}

body.dark-theme {
  --bg: #0f172a;
  --bg-2: #1e293b;
  --text: #f8fafc;
  --text-2: #94a3b8;
  --border: rgba(255, 255, 255, 0.1);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  --card-hover: 0 16px 40px rgba(0, 0, 0, 0.8);
}

/* ── BOLLYWOOD overrides ── */
body.category-bollywood,
.page-bollywood {
  --bg: transparent;
  --bg-2: rgba(20, 10, 10, 0.4);
  --accent: #FF9500;
  --accent-2: #C97000;
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.75);
  --border: rgba(255, 255, 255, 0.1);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* ── TAMIL overrides ── */
body.category-tamil,
.page-tamil {
  --bg: transparent;
  --bg-2: rgba(10, 20, 20, 0.5);
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.75);
  --accent: #FF6B35;
  --accent-2: #cc4a15;
  --border: rgba(255, 255, 255, 0.1);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* ── MALAYALAM overrides ── */
body.category-malayalam,
.page-malayalam {
  --bg: transparent;
  --bg-2: rgba(5, 15, 25, 0.5);
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.75);
  --accent: #22d07a;
  --accent-2: #12a05a;
  --border: rgba(255, 255, 255, 0.1);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* ── COLLAGE BACKGROUND ── */
.nm-industry-collage-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
}

.nm-collage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  width: 100%;
  height: 100%;
}

.nm-collage-item {
  background-size: cover;
  background-position: center top;
  filter: grayscale(40%) contrast(1.05) brightness(0.9);
  opacity: 0.85;
  mix-blend-mode: luminosity;
}

.nm-collage-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 10, 10, 0.85) 0%, rgba(5, 15, 25, 0.95) 100%);
  z-index: 1;
}

.nm-cat-vault {
  background: transparent !important;
}

/* ─── RESET ──────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-ui);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.5s ease, color 0.5s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg-2);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 2px;
}

.container {
  width: 92%;
  max-width: 1380px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════
   NAV BAR
═══════════════════════════════════════════════════════ */
.nm-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 1.2rem 0;
  color: var(--text);
  transition: all 0.4s ease;
}

body.has-dark-hero .nm-nav:not(.is-scrolled) {
  color: var(--text);
}

.nm-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  color: var(--text);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  padding: 0.7rem 0;
}

body.category-bollywood .nm-nav.is-scrolled,
body.category-tamil .nm-nav.is-scrolled,
body.category-malayalam .nm-nav.is-scrolled {
  background: rgba(20, 13, 8, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nm-nav .container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Logo */
.nm-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.nm-logo-mark {
  width: 34px;
  height: 34px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nm-logo-mark svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.nm-logo-name {
  color: inherit;
  font-family: var(--f-ui);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.nm-logo-name span {
  color: var(--accent);
}

/* Nav links */
.nm-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

.nm-nav-links a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.75;
  position: relative;
  padding: 4px 0;
  transition: opacity 0.2s;
}

.nm-nav-links a:hover,
.nm-nav-links a.active {
  opacity: 1;
}

.nm-nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Language Dropdown (Modern Red/White) */
.nm-lang-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nm-lang-trigger {
  appearance: none;
  background-color: #E63946;
  /* Striking Red */
  color: var(--text);
  /* White */
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  font-family: var(--f-base);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 4px rgba(230, 57, 70, 0.3);
  transition: all 0.25s ease;
}

.nm-lang-trigger:hover {
  background-color: #D62828;
  border-color: var(--text);
}

.nm-lang-trigger:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.4);
}

.nm-lang-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.nm-lang-trigger[aria-expanded="true"] .nm-lang-icon {
  transform: rotate(180deg);
}

.nm-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--theme-card-bg);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  min-width: 140px;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  border: 1px solid var(--theme-border);
}

.nm-lang-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nm-lang-menu li {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--theme-text);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.nm-lang-menu li:hover,
.nm-lang-menu li.selected {
  background: rgba(230, 57, 70, 0.1);
  color: var(--theme-accent);
}

/* Hide the top Google banner & fix body pushing */
body {
  top: 0 !important;
}

.skiptranslate iframe,
.goog-te-banner-frame {
  display: none !important;
}

/* Nav buttons */
.nm-nav-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nm-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.nm-btn-ghost {
  background: transparent;
  color: var(--text);
}

.nm-btn-ghost:hover {
  background: var(--bg-2);
}

.nm-btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.25);
}

.nm-btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════
   HERO — SCROLL-JACKING TRAILER SLIDER
═══════════════════════════════════════════════════════ */
.nm-trailer-hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.nm-trailer-pin-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.nm-trailer-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
}

.nm-trailer-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.nm-trailer-video {
  position: absolute;
  top: -10vh;
  left: -10vw;
  width: 120vw;
  height: 120vh;
  pointer-events: none;
}

.nm-trailer-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.nm-trailer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 2;
}

.nm-trailer-content {
  position: absolute;
  bottom: 12vh;
  left: 0;
  right: 0;
  z-index: 3;
  color: var(--text);
}

.nm-trailer-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--text);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.nm-trailer-title {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.nm-trailer-news {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
  color: var(--text-2);
}

/* Modern Glassmorphic Spicy News Button */
.nm-spicy-scroll-btn {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  top: auto;
  z-index: 10;
  color: var(--text);
  cursor: pointer;
  font-family: var(--f-base);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 1rem 1.5rem;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
  line-height: 1.2;
  text-align: right;
  text-shadow: none;
}

.nm-spicy-scroll-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Scroll indicator */
.nm-scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  opacity: 0.6;
  animation: float 2s ease infinite;
}

.nm-scroll-cue span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nm-scroll-cue svg {
  animation: bounce 1.5s ease infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateX(-50%) translateY(0)
  }

  50% {
    transform: translateX(-50%) translateY(-6px)
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(4px)
  }
}

/* ═══════════════════════════════════════════════════════
   NEWS GRID — DENSE LAYOUT
═══════════════════════════════════════════════════════ */
.nm-grid-section {
  padding: 5rem 0;
  background: linear-gradient(135deg,
      hsl(calc(var(--scroll-hue, 0) + 260), 60%, 8%) 0%,
      hsl(calc(var(--scroll-hue, 0) + 320), 70%, 6%) 50%,
      hsl(calc(var(--scroll-hue, 0) + 200), 60%, 8%) 100%);
  transition: background 0.2s ease-out;
  position: relative;
  z-index: 2;
}

/* ── Featured (first) post — Full width ── */
.nm-featured-post {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border);
  margin-bottom: 2.5rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.4s ease, box-shadow 0.4s;
}

.nm-featured-post:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover);
}

.nm-featured-thumb {
  height: 460px;
  overflow: hidden;
}

.nm-featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.nm-featured-post:hover .nm-featured-thumb img {
  transform: scale(1.05);
}

.nm-featured-body {
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nm-industry-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--accent);
  color: #fff;
  padding: 0.3rem 0.85rem;
  border-radius: 4px;
  margin-bottom: 1.25rem;
  width: fit-content;
}

.nm-featured-title {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 1.1rem;
}

.nm-featured-title:hover {
  color: var(--accent);
}

.nm-featured-excerpt {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-2);
  margin-bottom: 1.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nm-post-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-2);
}

.nm-post-meta .dot {
  color: var(--accent);
}

/* ── 3-column row ── */
.nm-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ── 4-column compact row ── */
.nm-row-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

/* ── 5-column mini row ── */
.nm-row-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

/* ── Standard card ── */
.nm-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: perspective(600px) rotateX(0deg) rotateY(0deg);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.nm-card.js-3d-card {
  transform-style: preserve-3d;
}

.nm-card:hover {
  box-shadow: var(--card-hover);
  transform: perspective(600px) translateY(-6px);
}

.nm-card-thumb {
  width: 100%;
  background: var(--bg-2);
  overflow: hidden;
  position: relative;
}

.nm-card-thumb.ratio-16-9 {
  aspect-ratio: 16/9;
}

.nm-card-thumb.ratio-4-3 {
  aspect-ratio: 4/3;
}

.nm-card-thumb.ratio-3-4 {
  aspect-ratio: 3/4;
}

.nm-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.nm-card:hover .nm-card-thumb img {
  transform: scale(1.08);
}

.nm-card-thumb .nm-tag {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 1;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
}

.nm-card-body {
  padding: 1rem 1.1rem 1.3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nm-card-title {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.nm-card:hover .nm-card-title {
  color: var(--accent);
}

.nm-card-title-sm {
  font-size: 0.88rem;
}

.nm-card-meta {
  font-size: 0.72rem;
  color: var(--text-2);
  font-weight: 500;
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  gap: 0.75rem;
}

/* ── Compact horizontal card (list style) ── */
.nm-card-horizontal {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem;
  border-radius: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  transition: all 0.25s;
}

.nm-card-horizontal:hover {
  background: var(--bg);
  box-shadow: var(--card-shadow);
}

.nm-card-horizontal-thumb {
  width: 80px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.nm-card-horizontal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nm-card-horizontal-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── "View All" category link ── */
.nm-cat-viewall {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
  padding-bottom: 2px;
}

.nm-cat-viewall:hover {
  border-color: var(--accent);
}

/* Section header row */
.nm-section-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--text);
}

.nm-section-row h2 {
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nm-section-row h2::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}

/* ═══════════════════════════════════════════════════════
   HOT SECTION — Flame / Fire animation
═══════════════════════════════════════════════════════ */
.nm-hot-section {
  position: relative;
  padding: 5rem 0;
  background: linear-gradient(180deg,
      hsl(calc(var(--scroll-hue, 0) + 10), 40%, 6%) 0%,
      hsl(calc(var(--scroll-hue, 0) - 20), 50%, 4%) 50%,
      hsl(calc(var(--scroll-hue, 0) + 10), 40%, 6%) 100%);
  transition: background 0.2s ease-out;
  position: relative;
  overflow: hidden;
}

/* Animated ember dots background */
.nm-hot-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 69, 0, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(230, 57, 70, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 140, 0, 0.06) 0%, transparent 60%);
  animation: ember-pulse 3s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes ember-pulse {
  from {
    opacity: 0.6;
  }

  to {
    opacity: 1;
  }
}

/* HOT label */
.nm-hot-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text);
  background: linear-gradient(135deg, #ff4500, #E63946, #ff8c00);
  background-size: 200% auto;
  padding: 0.35rem 1rem;
  border-radius: 4px;
  animation: hot-shift 2s linear infinite;
  box-shadow: 0 4px 20px rgba(255, 69, 0, 0.5);
}

@keyframes hot-shift {
  to {
    background-position: 200% center;
  }
}

.nm-hot-label .nm-flame {
  display: inline-block;
  animation: flame-dance 0.6s ease-in-out infinite alternate;
}

@keyframes flame-dance {
  from {
    transform: scale(1) rotate(-5deg);
  }

  to {
    transform: scale(1.3) rotate(5deg);
  }
}

/* HOT section header */
.nm-hot-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.nm-hot-title {
  font-family: var(--f-display);
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(90deg, #ff6b35, #ff4500, #E63946, #ff9500, #ff4500);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fire-text 3s linear infinite;
}

@keyframes fire-text {
  to {
    background-position: 300% center;
  }
}

/* HOT cards horizontal scroller */
.nm-hot-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-bottom: 2rem;
  position: relative;
  z-index: 10;
}

.nm-hot-scroll::-webkit-scrollbar {
  display: none;
}

/* HOT individual card */
.nm-hot-card {
  flex: 0 0 280px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(17, 17, 17, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 69, 0, 0.2);
  position: relative;
  transition: all 0.4s ease;
  cursor: pointer;
}

/* Glowing border on hover */
.nm-hot-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff4500, #E63946, #ff8c00, #ff4500);
  background-size: 300% auto;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
  animation: border-fire 2s linear infinite;
}

@keyframes border-fire {
  to {
    background-position: 300% center;
  }
}

.nm-hot-card:hover::before {
  opacity: 1;
}

.nm-hot-card:hover {
  transform: scale(1.1) translateY(-10px);
  box-shadow: 0 20px 60px rgba(255, 69, 0, 0.5);
  z-index: 10;
}

/* Pulsing number badge */
.nm-hot-card .nm-hot-num {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4500, #E63946);
  color: var(--text);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(255, 69, 0, 0.6);
  animation: pulse-glow 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 8px rgba(255, 69, 0, 0.5);
  }

  50% {
    box-shadow: 0 0 24px rgba(255, 69, 0, 0.9);
  }
}

.nm-hot-card-thumb {
  height: 180px;
  overflow: hidden;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  transform: translateZ(0);
}

.nm-hot-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: saturate(1.2);
}

.nm-hot-card:hover .nm-hot-card-thumb img {
  transform: scale(1.2);
}

.nm-hot-card-body {
  padding: 1rem 1.1rem 1.2rem;
}

.nm-hot-card-body h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nm-hot-card-body h3:hover {
  color: #ff6b35;
}

.nm-hot-card-meta {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  color: var(--text-2);
}

/* ─── Category Vault (3D card fan hero) ─── */
.nm-cat-vault {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 9rem 0 5rem;
}

/* ── Animated floating multi-color background ── */
.nm-cat-vault-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: 300% 300%;
  animation: bgFloat 15s ease infinite;
}

@keyframes bgFloat {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Bollywood: warm orange, gold, magenta floating */
.page-bollywood .nm-cat-vault-bg {
  background-image:
    radial-gradient(ellipse at center, rgba(255, 80, 0, 0.3) 0%, transparent 60%),
    linear-gradient(120deg, #1a0800 0%, #3a001a 25%, #4a2000 50%, #1a002a 75%, #1a0800 100%);
}

/* Tamil: teal, amber, deep red floating */
.page-tamil .nm-cat-vault-bg {
  background-image:
    radial-gradient(ellipse at top right, rgba(0, 255, 200, 0.2) 0%, transparent 60%),
    linear-gradient(120deg, #081f21 0%, #2a0010 25%, #053b3e 50%, #200020 75%, #081f21 100%);
}

/* Malayalam: emerald, navy, deep purple floating */
.page-malayalam .nm-cat-vault-bg {
  background-image:
    radial-gradient(ellipse at bottom left, rgba(0, 255, 100, 0.2) 0%, transparent 60%),
    linear-gradient(120deg, #050e1c 0%, #002211 25%, #110033 50%, #0a2a1a 75%, #050e1c 100%);
}

.nm-cat-hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nm-cat-hero-eyebrow::before {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.nm-cat-hero-title {
  font-family: var(--f-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1.0;
  color: var(--text);
  margin-bottom: 1rem;
}

.nm-cat-hero-desc {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 500px;
  margin-bottom: 2rem;
}

/* 3D vault stage — cards fanned in perspective */
.nm-vault-stage {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  height: 440px;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.nm-vault-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  display: block;
  transform-origin: bottom center;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  /* Stagger position using CSS var --i (1-5) */
  transform:
    translateZ(calc((var(--i) - 3) * -40px)) rotateY(calc((var(--i) - 3) * 8deg)) translateX(calc((var(--i) - 3) * 16px));
}

.nm-vault-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nm-vault-card:hover {
  transform: translateZ(60px) scale(1.05) !important;
  z-index: 10;
}

.nm-vault-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.25rem 1.25rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: var(--text);
  font-family: var(--f-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

/* Scroll cue inside vault */
.nm-vault-scroll-cue {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-top: 1rem;
  animation: float 2s ease infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.nm-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  color: var(--text);
  padding: 4rem 0 2rem;
}

.nm-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.nm-footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.nm-footer-col ul li {
  margin-bottom: 0.6rem;
}

.nm-footer-col ul li a {
  color: var(--text-2);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nm-footer-col ul li a:hover {
  color: var(--accent);
}

.nm-footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-2);
}


/* ═══════════════════════════════════════════════════════
   SINGLE ARTICLE — Complete layout
═══════════════════════════════════════════════════════ */

/* ── Article header bar (animated multi-color bg) ── */
/* ── Single Post Full-Page Animated Background ── */
body.single-post {
  background: linear-gradient(135deg, #0b071a 0%, #15050f 25%, #05161a 50%, #15050f 75%, #0b071a 100%);
  background-size: 300% 300%;
  animation: bgFloat 15s ease infinite;
  color: var(--text-2);
  position: relative;
}

/* Subtle glowing orb inside body */
body.single-post::before {
  content: '';
  position: fixed;
  top: 10%;
  left: 15%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.06) 0%, transparent 65%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

body.single-post::after {
  content: '';
  position: fixed;
  bottom: 10%;
  right: 10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(0, 255, 200, 0.04) 0%, transparent 65%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

/* ── Article header bar (transparent glass) ── */
.nm-single-header {
  padding: 8rem 0 3rem;
  position: relative;
  z-index: 2;
  text-align: center;
}

.nm-single-header .container {
  max-width: 900px;
  margin: 0 auto;
}

/* Industry tag on single page */
.nm-article-industry-tag {
  display: inline-block;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  background: var(--accent);
  color: #ffffff;
}

.nm-article-industry-tag.bollywood {
  background: #c07000;
}

.nm-article-industry-tag.kollywood {
  background: #0a6a6e;
}

.nm-article-industry-tag.mollywood {
  background: #0a4a28;
}

/* Post title */
.nm-single-title {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  color: var(--text);
}

/* Meta row: author · date · time · comments */
.nm-single-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--text-2);
}

.nm-single-meta .dot {
  opacity: 0.4;
}

/* ── Single column article layout ── */
.nm-article-layout {
  display: block;
  max-width: 1000px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* Main article column (Glass card) */
.nm-article-main {
  min-width: 0;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

@media (max-width: 600px) {
  .nm-article-main {
    padding: 1.5rem;
  }
}

/* Sidebar (Glass card) */
.nm-sidebar {
  min-width: 0;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 2rem;
  height: fit-content;
}

/* ── Featured image: capped, no full-viewport zoom ── */
.nm-single-featured {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  max-height: 460px;
}

.nm-single-featured img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Article body text */
.nm-article-content {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-2);
}

.nm-article-content p {
  margin-bottom: 1.5rem;
}

.nm-article-content h2,
.nm-article-content h3 {
  font-family: var(--f-display);
  color: var(--text);
  margin: 2.5rem 0 1.2rem;
}

.nm-article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--text);
  font-style: italic;
  font-size: 1.1rem;
}

.nm-article-content a {
  color: var(--accent);
  text-decoration: underline;
}

.nm-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
  display: block;
}

.nm-article-inline-image {
  margin: 2rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nm-article-inline-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  margin: 0;
}

/* Legacy class alias */
.nm-article-body {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-2);
}

.nm-article-body p {
  margin-bottom: 1.5rem;
}

.nm-article-body h2,
.nm-article-body h3 {
  font-family: var(--f-display);
  color: var(--text);
  margin: 2.5rem 0 1.2rem;
}

.nm-article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--text);
  font-style: italic;
}

.nm-article-body a {
  color: var(--accent);
  text-decoration: underline;
}

/* ── Share bar ── */
.nm-share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: 2.5rem 0;
  padding: 1.2rem;
  background: var(--bg-2);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.nm-share-bar>span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-2);
  margin-right: 0.4rem;
}

.nm-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.nm-share-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* ── Comments section ── */
.nm-comments-section {
  margin-top: 3rem;
}

.nm-comment-login-notice {
  padding: 1.5rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  margin-bottom: 2rem;
}

.nm-comment-login-notice p {
  margin-bottom: 1rem;
  color: var(--text-2);
}

/* WP comment form styling */
#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--f-body);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

#commentform input[type="submit"] {
  background: var(--accent);
  color: #fff;
  padding: 0.65rem 1.6rem;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
}

#commentform input[type="submit"]:hover {
  background: var(--accent-2);
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment {
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.comment-author .fn {
  font-weight: 700;
  color: var(--text);
}

.comment-meta {
  font-size: 0.75rem;
  color: var(--text-2);
}

.comment-content p {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ── Related posts ── */
.nm-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nm-related-title {
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.nm-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

@media (max-width: 640px) {
  .nm-related-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.nm-related-grid .nm-card-link {
  text-decoration: none;
}

.nm-related-grid .nm-card-thumb {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
}

.nm-related-grid .nm-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.nm-related-grid .nm-card:hover .nm-card-thumb img {
  transform: scale(1.05);
}

.nm-related-grid .nm-card-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
}

.nm-related-grid .nm-card-body {
  padding: 0.6rem 0;
}

.nm-related-grid .nm-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

/* ── Sidebar ── */
.nm-sidebar {
  min-width: 0;
}

.nm-sidebar .nm-ad-inner {
  min-height: 250px;
}

@media (max-width: 900px) {
  .nm-sidebar {
    display: none;
  }
}


/* ═══════════════════════════════════════════════════════
   AD ZONES
═══════════════════════════════════════════════════════ */
.nm-ad-band {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.nm-ad-inner {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-2);
}

/* ═══════════════════════════════════════════════════════
   UTILS & ANIMATIONS
═══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Admin bar offset */
.admin-bar .nm-nav {
  top: 32px;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .nm-row-5 {
    grid-template-columns: repeat(3, 1fr);
  }

  .nm-row-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .nm-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 900px) {
  .nm-featured-post {
    grid-template-columns: 1fr;
  }

  .nm-featured-thumb {
    height: 260px;
  }

  .nm-row-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nm-nav-links {
    display: none;
  }

  .nm-row-3,
  .nm-row-4,
  .nm-row-5 {
    grid-template-columns: 1fr;
  }

  .nm-footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════
   ██████╗ ██████╗  ██████╗     ███╗   ███╗ █████╗ ██╗  ██╗
   ██╔══██╗██╔══██╗██╔═══██╗    ████╗ ████║██╔══██╗╚██╗██╔╝
   ██████╔╝██████╔╝██║   ██║    ██╔████╔██║███████║ ╚███╔╝ 
   ██╔═══╝ ██╔══██╗██║   ██║    ██║╚██╔╝██║██╔══██║ ██╔██╗ 
   ██║     ██║  ██║╚██████╔╝    ██║ ╚═╝ ██║██║  ██║██╔╝ ██╗
   ╚═╝     ╚═╝  ╚═╝ ╚═════╝     ╚═╝     ╚═╝╚═╝  ╚═╝╚═╝  ╚═╝
   UI/UX PRO MAX UPGRADE — NEST MEDIA CINEMATIC EDITION
═══════════════════════════════════════════════════════ */

/* ── 1. READING PROGRESS BAR ─────────────────────────── */
#nm-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #ff9500, var(--accent));
  background-size: 200% auto;
  animation: gradient-slide 2s linear infinite;
  z-index: 10000;
  box-shadow: 0 0 12px var(--accent), 0 0 24px rgba(230, 57, 70, 0.5);
  transition: width 0.1s linear;
}

@keyframes gradient-slide {
  to {
    background-position: 200% center;
  }
}

/* ── 2. PREMIUM GLASS NAVIGATION ───────────────────────── */
.nm-nav {
  background: transparent;
}

.nm-nav.is-scrolled {
  background: rgba(8, 8, 12, 0.75) !important;
  backdrop-filter: blur(24px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.4) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

body:not(.has-dark-hero) .nm-nav.is-scrolled {
  background: rgb(33 38 44) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

/* ── 3. ANIMATED ACCENT / LOGO MARK ───────────────────── */
.nm-logo-mark {
  background: linear-gradient(135deg, var(--accent), #ff6b35, var(--accent));
  background-size: 200% auto;
  animation: logo-pulse 3s ease infinite;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.5);
  border-radius: 10px;
}

@keyframes logo-pulse {

  0%,
  100% {
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.5);
    background-position: 0% center;
  }

  50% {
    box-shadow: 0 4px 25px rgba(230, 57, 70, 0.85);
    background-position: 100% center;
  }
}

/* ── 4. NAV LINK HOVER — ELECTRIC UNDERLINE ─────────────── */
.nm-nav-links a {
  position: relative;
  transition: color 0.25s, opacity 0.25s;
}

.nm-nav-links a::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #ff9500);
  border-radius: 2px;
  transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1), right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px var(--accent);
}

.nm-nav-links a:hover::before,
.nm-nav-links a.active::before {
  left: 0;
  right: 0;
}

.nm-nav-links a.active::after {
  display: none;
}

/* ── 5. ULTRA-PREMIUM CARDS — GLASSMORPHISM ─────────────── */
.nm-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.nm-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.nm-card:hover {
  border-color: rgba(230, 57, 70, 0.3);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(230, 57, 70, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-8px) scale(1.01);
}

.nm-card * {
  position: relative;
  z-index: 1;
}

/* ── 6. FEATURED POST — CINEMATIC MAGAZINE STYLE ──────── */
.nm-featured-post {
  position: relative;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
}

.nm-featured-post::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #ff9500, #ff6b35, var(--accent));
  background-size: 200% auto;
  animation: gradient-slide 3s linear infinite;
}

.nm-featured-post:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(230, 57, 70, 0.2);
}

/* ── 7. SECTION HEADERS — 3D DEPTH TYPOGRAPHY ─────────── */
.nm-section-row {
  border-bottom: none;
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 2.5rem;
}

.nm-section-row::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(255, 255, 255, 0.08) 60%, transparent 100%);
}

.nm-section-row h2 {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 20px rgba(230, 57, 70, 0.3);
}

.nm-section-row h2::before {
  width: 4px;
  height: 1.2em;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), #ff6b35);
  box-shadow: 0 0 12px var(--accent);
}

/* ── 8. HOT CARDS — NEON GLOW UPGRADE ─────────────────── */
.nm-hot-card {
  background: linear-gradient(145deg, #141010, #0d0808);
  border: 1px solid rgba(255, 80, 0, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nm-hot-card:hover {
  border-color: transparent;
  box-shadow:
    0 30px 80px rgba(255, 69, 0, 0.5),
    0 0 0 1px rgba(255, 69, 0, 0.6),
    inset 0 0 30px rgba(255, 69, 0, 0.05);
  transform: scale(1.05) translateY(-12px);
}

.nm-hot-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(255, 69, 0, 0.15) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* ── 9. INDUSTRY TAGS — PREMIUM GRADIENT PILLS ──────────── */
.nm-industry-tag,
.nm-tag,
.nm-hot-label,
.nm-trailer-badge {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  border-radius: 999px !important;
  padding: 0.3rem 0.9rem !important;
  font-weight: 800;
}

.nm-industry-tag,
.nm-tag {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.35);
}

/* ── 10. SCROLL BAR — BRANDED ──────────────────────────── */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), #ff9500);
  border-radius: 10px;
}

/* ── 11. CATEGORY SECTION — PREMIUM GRADIENT BORDER ────── */
.nm-cat-section {
  position: relative;
}

.nm-cat-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

/* ── 12. CARD STAGGER ANIMATION ─────────────────────────── */
.nm-card:nth-child(1) {
  animation-delay: 0ms;
}

.nm-card:nth-child(2) {
  animation-delay: 60ms;
}

.nm-card:nth-child(3) {
  animation-delay: 120ms;
}

.nm-card:nth-child(4) {
  animation-delay: 180ms;
}

.nm-card:nth-child(5) {
  animation-delay: 240ms;
}

.reveal.is-in {
  transition: opacity 0.6s ease calc(var(--stagger, 0) * 60ms),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--stagger, 0) * 60ms) !important;
}

/* ── 13. MOBILE NAV HAMBURGER ───────────────────────────── */
.nm-mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s;
}

.nm-mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nm-mobile-menu-btn span {
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
}

@media (max-width: 640px) {
  .nm-mobile-menu-btn {
    display: flex;
  }

  .nm-nav-links {
    display: flex;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(5, 5, 10, 0.97);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transform: translateY(-120%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 998;
  }

  .nm-nav-links.is-open {
    transform: translateY(0);
  }

  .nm-nav-links a {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    opacity: 1;
  }
}

/* ── 14. HERO OVERLAY UPGRADE ───────────────────────────── */
.nm-trailer-overlay {
  background: linear-gradient(0deg,
      rgba(0, 0, 0, 0.97) 0%,
      rgba(0, 0, 0, 0.3) 45%,
      rgba(0, 0, 0, 0.6) 100%) !important;
}

/* ── 15. HOT SCROLL DRAG INDICATOR ─────────────────────── */
.nm-hot-scroll::after {
  content: '→ Drag';
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  padding: 0 2rem;
}

/* ── 16. FOOTER PREMIUM UPGRADE ─────────────────────────── */
.nm-footer {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(5, 5, 10, 0.97) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  position: relative;
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.7);
}

.nm-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* ── 17. ARTICLE SOURCE LINK CHIP ───────────────────────── */
.nm-source-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-2);
  text-decoration: none !important;
  transition: all 0.25s;
  margin-top: 1.5rem;
  display: inline-flex;
}

.nm-source-chip:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.35);
}

.nm-source-chip svg {
  width: 12px;
  height: 12px;
}

/* ── 18. SPICY STICKY BADGE ─────────────────────────────── */
.nm-sticky-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff4500, #E63946);
  color: var(--text);
  box-shadow: 0 0 12px rgba(255, 69, 0, 0.6);
  animation: sticky-pulse 2s ease infinite;
  margin-left: 0.4rem;
  vertical-align: middle;
}

@keyframes sticky-pulse {

  0%,
  100% {
    box-shadow: 0 0 8px rgba(255, 69, 0, 0.5);
  }

  50% {
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.9);
  }
}

/* ── 18.5 FIFA SECTION — FOOTBALL THEMED ────────────────── */
.nm-fifa-section {
  position: relative;
  background: linear-gradient(135deg, #0f1f11, #081109);
  padding: 4rem 0 5rem;
  border-top: 1px solid rgba(0, 255, 100, 0.1);
  border-bottom: 1px solid rgba(0, 255, 100, 0.1);
  margin: 3rem 0;
}

.nm-fifa-header {
  margin-bottom: 2.5rem;
  text-align: left;
}

.nm-fifa-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 255, 100, 0.1);
  border: 1px solid rgba(0, 255, 100, 0.2);
  color: #00ff64;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.nm-football {
  font-size: 1rem;
}

.nm-fifa-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0;
}

.nm-fifa-card {
  background: linear-gradient(145deg, #0a1a0c, #050d06) !important;
  border: 1px solid rgba(0, 255, 100, 0.15) !important;
}

.nm-fifa-card:hover {
  border-color: rgba(0, 255, 100, 0.5) !important;
  box-shadow: 0 30px 80px rgba(0, 255, 100, 0.15), 0 0 0 1px rgba(0, 255, 100, 0.3) !important;
}

/* ── 19. SECTION BACKGROUND NOISE TEXTURE ───────────────── */
.nm-grid-section,
.nm-hot-section,
.nm-fifa-section {
  isolation: isolate;
}

.nm-grid-section::before,
.nm-hot-section::before,
.nm-fifa-section::before {
  z-index: -1;
}

/* ── 20. POSTER SKELETON LOADER ─────────────────────────── */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.nm-skeleton {
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.03) 25%,
      rgba(255, 255, 255, 0.07) 50%,
      rgba(255, 255, 255, 0.03) 75%);
  background-size: 200% auto;
  animation: shimmer 1.5s linear infinite;
  border-radius: 8px;
}

/* ── 21. INDUSTRY NAV PILL INDICATOR ───────────────────── */
.nm-nav-links a[href*="kollywood"] {
  --ind-color: #FF6B35;
}

.nm-nav-links a[href*="mollywood"] {
  --ind-color: #22d07a;
}

.nm-nav-links a[href*="bollywood"] {
  --ind-color: #FF9500;
}

.nm-nav-links a[href*="kollywood"]::before {
  background: var(--ind-color);
  box-shadow: 0 0 8px var(--ind-color);
}

.nm-nav-links a[href*="mollywood"]::before {
  background: var(--ind-color);
  box-shadow: 0 0 8px var(--ind-color);
}

.nm-nav-links a[href*="bollywood"]::before {
  background: var(--ind-color);
  box-shadow: 0 0 8px var(--ind-color);
}

/* ── 22. SMOOTH CARD IMAGE TILT ─────────────────────────── */
@media (hover: hover) {
  .nm-card.js-3d-card:hover {
    transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-8px) scale(1.01);
  }
}

/* ── 23. LOADING SPINNER FOR RSS ────────────────────────── */
.nm-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  flex-direction: column;
  gap: 1rem;
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nm-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ════════════════════════════════════════════════════
   3D CINEMATIC HERO (MAGIC MCP GENERATED)
════════════════════════════════════════════════════ */
:root {
  --cinema-bg-from: #020617;
  /* slate-950 */
  --cinema-bg-via: #0f172a;
  /* slate-900 */
  --cinema-glow: rgba(239, 68, 68, 0.15);
  /* red-500/15 */
}

.has-dark-hero {
  --text: #f8fafc;
  --text-2: #cbd5e1;
  --bg: var(--cinema-bg-from);
  --bg-2: var(--cinema-bg-via);
  --border: rgba(255, 255, 255, 0.1);
  background-color: var(--cinema-bg-from) !important;
  color: var(--text) !important;
}

.nm-cinematic-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(to bottom right, var(--cinema-bg-from), var(--cinema-bg-via), var(--cinema-bg-from));
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
  z-index: 1;
}

/* Film Grain Overlay */
.nm-film-grain {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  pointer-events: none;
  z-index: 10;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  mix-blend-mode: overlay;
}

/* Radial Glows */
.nm-hero-glow-1 {
  position: absolute;
  top: 25%;
  left: 25%;
  width: 24rem;
  height: 24rem;
  background: rgba(239, 68, 68, 0.2);
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 2;
}

.nm-hero-glow-2 {
  position: absolute;
  bottom: 25%;
  right: 25%;
  width: 24rem;
  height: 24rem;
  background: rgba(249, 115, 22, 0.2);
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 2;
}

.nm-mouse-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  transition: background 0.1s ease;
}

.nm-hero-content {
  position: relative;
  z-index: 20;
  width: 100%;
}

.nm-hero-header {
  text-align: center;
  margin-bottom: 4rem;
}

.nm-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  background: linear-gradient(to right, rgba(239, 68, 68, 0.2), rgba(249, 115, 22, 0.2));
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #f87171;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease forwards;
}

.nm-hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.nm-text-gradient-silver {
  background: linear-gradient(to right, #ffffff, #e5e7eb, #9ca3af);
  -webkit-background-clip: text;
  color: transparent;
}

.nm-text-gradient-fire {
  background: linear-gradient(to right, #ef4444, #f97316, #ec4899);
  -webkit-background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
}

.nm-text-glow {
  position: absolute;
  inset: 0;
  filter: blur(24px);
  background: linear-gradient(to right, #ef4444, #f97316, #ec4899);
  opacity: 0.5;
  z-index: -1;
}

.nm-hero-desc {
  font-size: 1.25rem;
  color: #9ca3af;
  max-width: 42rem;
  margin: 1.5rem auto 0;
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

/* Vintage Camera Animation */
.nm-vintage-camera {
  display: inline-block;
  margin: 10px 15px;
  vertical-align: middle;
}

.camera-body {
  width: 60px;
  height: 40px;
  background: #e2e8f0;
  border-radius: 8px;
  position: relative;
  border: 3px solid #94a3b8;
}

.camera-lens {
  width: 24px;
  height: 24px;
  background: #0f172a;
  border: 4px solid #cbd5e1;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.camera-flash {
  width: 12px;
  height: 8px;
  background: #f8fafc;
  border-radius: 2px;
  position: absolute;
  top: -12px;
  right: 8px;
  border: 2px solid #94a3b8;
  animation: flashGlow 3s infinite;
}

.camera-reel {
  width: 20px;
  height: 20px;
  background: transparent;
  border: 3px solid #cbd5e1;
  border-radius: 50%;
  position: absolute;
  top: -15px;
  animation: reelSpin 2s linear infinite;
}

.camera-reel::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #cbd5e1;
  transform: translate(-50%, -50%);
}

.camera-reel::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  height: 100%;
  width: 2px;
  background: #cbd5e1;
  transform: translate(-50%, -50%);
}

.reel-left {
  left: 4px;
}

.reel-right {
  right: 4px;
}

@keyframes reelSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes flashGlow {

  0%,
  90% {
    background: #f8fafc;
    box-shadow: none;
  }

  95% {
    background: #fff;
    box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.8);
  }

  100% {
    background: #f8fafc;
    box-shadow: none;
  }
}

/* 3D Cards Grid */
.nm-3d-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  max-width: 80rem;
  margin: 0 auto;
  perspective: 1000px;
  position: relative;
  z-index: 10;
}

@media(min-width: 768px) {
  .nm-3d-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(min-width: 1024px) {
  .nm-3d-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.nm-tilt-card-wrapper {
  perspective: 1000px;
  transform-style: preserve-3d;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 0.6s ease forwards;
}

.nm-tilt-card-wrapper:nth-child(1) {
  animation-delay: 0.6s;
}

.nm-tilt-card-wrapper:nth-child(2) {
  animation-delay: 0.8s;
}

.nm-tilt-card-wrapper:nth-child(3) {
  animation-delay: 1.0s;
}

.nm-tilt-card {
  background: rgba(15, 23, 42, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.1s ease-out, border-color 0.3s ease;
  transform-style: preserve-3d;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
}

.nm-tilt-card:hover {
  border-color: rgba(239, 68, 68, 0.5);
}

.nm-tilt-card-img {
  height: 16rem;
  position: relative;
  overflow: hidden;
}

.nm-tilt-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.nm-tilt-card:hover .nm-tilt-card-img img {
  transform: scale(1.1);
}

.nm-tilt-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 1), rgba(2, 6, 23, 0.5), transparent);
}

.nm-tilt-card-cat {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #e2e8f0;
  z-index: 2;
}

.nm-tilt-card-hot {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(to right, #f97316, #ef4444, #ec4899);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.39);
  animation: pulseGlow 2s infinite;
}

.nm-tilt-card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.nm-tilt-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  color: #f8fafc;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.nm-tilt-card:hover .nm-tilt-card-title {
  color: #ef4444;
}

.nm-tilt-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #9ca3af;
  margin-top: auto;
}

/* Card Hover Glow */
.nm-tilt-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(239, 68, 68, 0.1), rgba(249, 115, 22, 0.1), rgba(236, 72, 153, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 3;
}

.nm-tilt-card::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 60px rgba(239, 68, 68, 0);
  transition: box-shadow 0.3s ease;
  pointer-events: none;
  z-index: 3;
}

.nm-tilt-card:hover::before {
  opacity: 1;
}

.nm-tilt-card:hover::after {
  box-shadow: inset 0 0 60px rgba(239, 68, 68, 0.2);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* Glassmorphism Header overrides */
body.has-dark-hero .nm-nav {
  background: rgba(2, 6, 23, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.has-dark-hero .nm-logo-name {
  color: #f8fafc;
}

body.has-dark-hero .nm-nav-links a {
  color: #cbd5e1;
}

body.has-dark-hero .nm-nav-links a:hover,
body.has-dark-hero .nm-nav-links a.active {
  color: #ef4444;
}

body.has-dark-hero .nm-logo svg {
  stroke: #ef4444;
}

body.has-dark-hero .nm-lang-trigger {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* ── END UI/UX PRO MAX ──────────────────────────────────── */

/* ── 9. PAPARAZZI ANIMATION ────────────────────────────── */
.nm-paparazzi {
  position: absolute;
  left: -457px;
  top: -82px;
  width: 280px;
  height: auto;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 5;
  transform: rotate3d(1, 1, 1, 45deg);
}

.nm-paparazzi.is-active {
  transform: translateX(244px);
}

.nm-paparazzi img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
  transition: opacity 0.3s ease;
}

.nm-papa-side {
  transform: scaleX(-1);
  opacity: 1;
}

.nm-papa-front {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.nm-paparazzi:hover .nm-papa-side {
  opacity: 0;
}

.nm-paparazzi:hover .nm-papa-front {
  opacity: 1;
}

.nm-papa-flash {
  position: absolute;
  top: 25%;
  right: 15%;
  width: 10px;
  height: 10px;
}

.nm-papa-flash-hover {
  position: absolute;
  top: 15%;
  left: 45%;
  width: 10px;
  height: 10px;
}

.nm-papa-flash::after,
.nm-papa-flash-hover::after {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 210px;
  height: 210px;
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 60%);
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
}

.nm-paparazzi.is-active:not(:hover) .nm-papa-flash::after {
  animation: papaFlash 0.3s ease-out 0.8s 3;
}

.nm-paparazzi:hover .nm-papa-flash-hover::after {
  animation: papaFlashHover 0.3s ease-out 0.1s 2;
}

@keyframes papaFlashHover {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(3);
  }
}

@keyframes papaFlash {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(3);
  }
}

/* ── 10. HERO ANIMATIONS ────────────────────────────── */
.nm-hero-animations {
  position: absolute;
  left: 0;
  top: 50px;
  width: 300px;
  height: 400px;
  z-index: 5;
  pointer-events: none;
}

.nm-hero-actress {
  position: absolute;
  bottom: 0;
  left: 58px;
  width: 250px;
  height: auto;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
  pointer-events: auto;
  cursor: pointer;
}

.nm-hero-actress img {
  width: 100%;
  height: auto;
  transition: opacity 0.3s ease;
}

.nm-actress-pose1 {
  opacity: 1;
}

.nm-actress-pose2 {
  position: absolute;
  bottom: 0;
  left: 0;
  opacity: 0;
}

.nm-hero-animations.is-active .nm-actress-pose1 {
  opacity: 0;
}

.nm-hero-animations.is-active .nm-actress-pose2 {
  opacity: 1;
}

.nm-hero-paparazzi {
  position: absolute;
  bottom: -41px;
  left: 300px;
  width: 200px;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.nm-hero-flash {
  position: absolute;
  bottom: 120px;
  left: 340px;
  width: 10px;
  height: 10px;
}

.nm-hero-flash::after {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 210px;
  height: 210px;
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 60%);
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
}

.nm-hero-animations.is-active .nm-hero-flash::after {
  animation: papaFlash 0.3s ease-out 0s 2;
}

/* ==============================================================
   UNIVERSAL THEME SWITCHER
   ============================================================== */
:root {
  --theme-bg: #ffffff;
  --theme-text: #111827;
  --theme-card-bg: rgba(255, 255, 255, 0.85);
  --theme-card-text: #111827;
  --theme-border: #e5e7eb;
  --theme-nav-bg: rgba(255, 255, 255, 0.95);
  --theme-nav-text: #111827;
  --theme-hero-text: #111827;
  --theme-meta-text: #6b7280;
  --theme-single-bg: #ffffff;
  --theme-accent: #E63946;
  --theme-hero-overlay: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(240, 245, 255, 0.95) 100%);
}

body.dark-theme {
  --theme-bg: #0b0f19;
  --theme-text: #f3f4f6;
  --theme-card-bg: rgba(20, 25, 35, 0.8);
  --theme-card-text: #f3f4f6;
  --theme-border: rgba(255, 255, 255, 0.1);
  --theme-nav-bg: rgba(11, 15, 25, 0.95);
  --theme-nav-text: #f3f4f6;
  --theme-hero-text: #ffffff;
  --theme-meta-text: #9ca3af;
  --theme-single-bg: #0b0f19;
  --theme-hero-overlay: linear-gradient(135deg, rgba(15, 10, 10, 0.85) 0%, rgba(5, 15, 25, 0.95) 100%);
}

/* Applying Variables Universally */
body {
    background: var(--theme-bg) !important;
    color: var(--theme-text) !important;
}

/* Nav Overrides */
.nm-nav, .nm-nav.is-scrolled {
    background: var(--theme-nav-bg) !important;
    border-bottom: 1px solid var(--theme-border) !important;
}
.nm-nav .nm-nav-links a,
.nm-nav .nm-logo-name,
body.has-dark-hero .nm-nav .nm-nav-links a,
body.has-dark-hero .nm-nav .nm-logo-name {
    color: var(--theme-nav-text) !important;
}
.nm-nav .nm-logo svg,
body.has-dark-hero .nm-nav .nm-logo svg {
    stroke: var(--theme-nav-text) !important;
}
.nm-lang-trigger,
body.has-dark-hero .nm-lang-trigger {
    color: var(--theme-nav-text) !important;
    border-color: var(--theme-border) !important;
    background: transparent !important;
}

/* Text overrides */
h1, h2, h3, h4, h5, h6, 
.nm-hero-desc, 
.nm-parallax-desc,
.nm-hot-title, 
.nm-featured-body h2,
.nm-section-title,
.nm-single-header h1,
.nm-single-title {
    color: var(--theme-hero-text) !important;
}

.nm-hot-card-meta, .nm-card-meta, .nm-post-meta, .nm-article-meta, .nm-single-meta {
    color: var(--theme-meta-text) !important;
}

.nm-article-body,
.nm-article-body p, 
.nm-article-body li,
.nm-article-body h2,
.nm-article-body h3,
.nm-article-body a {
    color: var(--theme-text) !important;
}

/* Base Anchors (not buttons) */
a {
    color: var(--theme-text);
}
a:hover {
    color: var(--theme-accent);
}

/* Cards overrides */
.nm-hot-card, .nm-card, .nm-tilt-card, .nm-featured-card {
    background: var(--theme-card-bg) !important;
    border-color: var(--theme-border) !important;
}
.nm-hot-card-body h3, .nm-card-body h3, .nm-featured-body h2 {
    color: var(--theme-card-text) !important;
}

/* Single Post Specific overrides */
body.single-post, body.single-post::before, body.single-post::after {
    background: var(--theme-single-bg) !important;
}

/* Footer overrides */
.nm-footer {
    --text: var(--theme-text) !important;
    --text-2: var(--theme-meta-text) !important;
    background: var(--theme-card-bg) !important;
    border-top: 1px solid var(--theme-border) !important;
    color: var(--theme-text) !important;
}
.nm-footer h4 {
    color: var(--theme-hero-text) !important;
}
.nm-footer a {
    color: var(--theme-text) !important;
}
.nm-footer a:hover {
    color: var(--theme-accent) !important;
}

/* Hero Overlay overrides */
.nm-collage-overlay {
    background: var(--theme-hero-overlay) !important;
}

/* Cinematic Hero Day Mode override */
body:not(.dark-theme) .nm-cinematic-hero {
    background: linear-gradient(to bottom right, #f4f4f4, #3d434f, var(--cinema-bg-from)) !important;
}

/* Force Hot Header to always be white */
.nm-hot-header,
.nm-hot-header h2,
.nm-hot-header p,
.nm-hot-header span {
    color: #ffffff !important;
}

/* ════════════════════════════════════════════════════
   STAR SPOTLIGHT SLIDER
════════════════════════════════════════════════════ */
.nm-stars-section {
    padding: 4rem 0 3rem;
    background: var(--theme-bg);
    overflow: hidden;
}
.nm-section-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.nm-section-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}
.nm-stars-swiper {
    padding: 1rem 2rem 2.5rem;
    /* Start flush with container left edge */
    padding-left: calc((100vw - 1200px) / 2);
    overflow: visible;
}
@media (max-width: 1220px) {
    .nm-stars-swiper { padding-left: 1.5rem; }
}

/* Each slide has a fixed card width */
.nm-star-slide {
    width: 220px !important;
    flex-shrink: 0;
}

/* The card itself */
.nm-star-card {
    background: var(--theme-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}
.nm-star-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 50px color-mix(in srgb, var(--star-color) 35%, transparent);
    border-color: var(--star-color);
}

/* Photo area — portrait 3:4 ratio */
.nm-star-photo-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #1a0a2e;
}
.nm-star-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
    display: block;
}
.nm-star-card:hover .nm-star-photo {
    transform: scale(1.07);
}
/* Gradient overlay at bottom of photo */
.nm-star-photo-wrap::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(to top, var(--theme-card), transparent);
}

/* Glow ring on hover */
.nm-star-glow {
    position: absolute;
    inset: 0;
    border-radius: 0;
    box-shadow: inset 0 0 0 0 var(--star-color);
    transition: box-shadow 0.3s ease;
    pointer-events: none;
}
.nm-star-card:hover .nm-star-glow {
    box-shadow: inset 0 0 20px color-mix(in srgb, var(--star-color) 25%, transparent);
}

/* Info section */
.nm-star-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.nm-star-industry {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--star-color);
    background: color-mix(in srgb, var(--star-color) 15%, transparent);
    border-radius: 4px;
    padding: 2px 6px;
    width: fit-content;
}
.nm-star-name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0.25rem 0 0;
    color: var(--theme-text);
    line-height: 1.2;
}
.nm-star-handle {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}
.nm-star-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 0.75rem;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #e1306c, #833ab4);
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
    width: fit-content;
}
.nm-star-btn:hover {
    opacity: 0.85;
    transform: scale(1.05);
}

/* Navigation arrows */
.nm-stars-next,
.nm-stars-prev {
    color: var(--theme-accent);
}

@keyframes blink {
    0%, 100% { opacity: 1; box-shadow: 0 0 12px #00ff64; }
    50% { opacity: 0.4; box-shadow: 0 0 2px #00ff64; }
}

/* ── Ad Zones Styling ────────────────────────────────────── */
.nm-ad-zone {
    width: 100%;
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    clear: both;
    text-align: center;
}
.nm-ad-zone-inner {
    max-width: 100%;
    overflow: hidden;
    display: inline-block;
    min-height: 90px;
}
.nm-ad-zone-inner span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-2, #888);
    margin-bottom: 0.5rem;
}