/* =============================================
   NoCap Stream — Theme CSS
   All layout/component styles. Color + font
   CSS variables are injected by the Customizer.
   ============================================= */

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

html { scroll-behavior: smooth; }

body {
  background: var(--ncs-bg);
  color: var(--ncs-text);
  font-family: var(--ncs-font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ncs-bg); }
::-webkit-scrollbar-thumb { background: var(--ncs-accent); border-radius: 3px; }

/* ─── SCREEN-READER TEXT ─── */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal !important;
}


/* =============================================
   LIGHT MODE OVERRIDES
   Applied when <body> has class "ncs-light-mode"
   ============================================= */
html.ncs-light-mode, body.ncs-light-mode {
  --ncs-bg:       #F4F4F5;
  --ncs-surface:  #FFFFFF;
  --ncs-surface2: #EBEBEC;
  --ncs-border:   #D4D4D8;
  --ncs-text:     #111111;
  --ncs-muted:    #52525B;
  --ncs-dim:      #A1A1AA;
}

/* Navbar glass in light mode */
html.ncs-light-mode .ncs-navbar,
body.ncs-light-mode .ncs-navbar {
  background: rgba(244,244,245,0.97);
}

/* Logo text stays readable */
html.ncs-light-mode .ncs-logo-text .ncs-logo-no,
body.ncs-light-mode .ncs-logo-text .ncs-logo-no { color: #111; }
html.ncs-light-mode .ncs-logo-text .ncs-logo-dot,
body.ncs-light-mode .ncs-logo-text .ncs-logo-dot { color: var(--ncs-muted); }

/* Mobile menu bg */
html.ncs-light-mode .ncs-mobile-menu,
body.ncs-light-mode .ncs-mobile-menu {
  background: var(--ncs-surface);
}

/* Article content links */
html.ncs-light-mode .ncs-article-content a,
body.ncs-light-mode .ncs-article-content a { color: var(--ncs-accent); }
html.ncs-light-mode .ncs-article-content blockquote,
body.ncs-light-mode .ncs-article-content blockquote { background: var(--ncs-surface2); }

/* Footer */
html.ncs-light-mode .ncs-footer,
body.ncs-light-mode .ncs-footer { background: var(--ncs-surface); }

/* Ad banner */
html.ncs-light-mode .ncs-ad-banner,
body.ncs-light-mode .ncs-ad-banner {
  background: linear-gradient(135deg, var(--ncs-surface2) 0%, #ffe5e0 100%);
}

/* Scrollbar */
html.ncs-light-mode ::-webkit-scrollbar-track,
body.ncs-light-mode ::-webkit-scrollbar-track { background: var(--ncs-bg); }

/* ── THEME TOGGLE BUTTON ── */
.ncs-theme-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--ncs-surface2);
  border: 1px solid var(--ncs-border);
  border-radius: 20px;
  padding: 0 12px;
  height: 34px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  flex-shrink: 0;
  color: var(--ncs-muted);
}
.ncs-theme-toggle:hover {
  border-color: var(--ncs-accent);
  color: var(--ncs-text);
}
.ncs-theme-toggle-icon {
  font-size: 15px;
  line-height: 1;
  transition: transform .4s ease;
}
.ncs-theme-toggle-label {
  font-family: var(--ncs-font-sub);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Spin icon on mode switch */
html.ncs-light-mode .ncs-theme-toggle-icon,
body.ncs-light-mode .ncs-theme-toggle-icon {
  transform: rotate(180deg);
}

/* On very small screens, hide the label, keep icon */
@media (max-width: 400px) {
  .ncs-theme-toggle-label { display: none; }
  .ncs-theme-toggle { padding: 0 10px; }
}

/* Smooth global transition on mode switch */
body, .ncs-navbar, .ncs-video-card, .ncs-sidebar-widget,
.ncs-footer, .ncs-ad-banner, .ncs-mobile-menu {
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
/* =============================================
   TOP TICKER
   ============================================= */
.ncs-ticker-wrap {
  background: var(--ncs-accent);
  overflow: hidden;
  height: 32px;
  display: flex;
  align-items: center;
  position: relative;
}
.ncs-ticker-label {
  font-family: var(--ncs-font-sub);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: #000;
  color: var(--ncs-accent);
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border-right: 2px solid var(--ncs-accent);
  white-space: nowrap;
  position: relative;
  z-index: 2;
}
.ncs-ticker-track {
  display: flex;
  animation: ncs-ticker var(--ncs-ticker-speed, 35s) linear infinite;
  white-space: nowrap;
}
.ncs-ticker-track span {
  font-family: var(--ncs-font-sub);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0 40px;
  opacity: .95;
}
.ncs-ticker-track span::before {
  content: '● ';
  font-size: 8px;
  opacity: .6;
}
@keyframes ncs-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =============================================
   NAVIGATION
   ============================================= */
.ncs-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,8,8,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ncs-border);
}
.ncs-nav-inner {
  max-width: var(--ncs-max-width, 1400px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 62px;
  padding: 0 20px;
  gap: 0;
}

/* Logo */
.ncs-logo {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-right: 32px;
}
.ncs-logo-text {
  font-family: var(--ncs-font-head);
  font-size: 30px;
  letter-spacing: 2px;
  line-height: 1;
}
.ncs-logo-text .ncs-logo-no     { color: #fff; }
.ncs-logo-text .ncs-logo-cap    { color: var(--ncs-accent); }
.ncs-logo-text .ncs-logo-dot    { color: var(--ncs-muted); font-size: 22px; }
.ncs-logo-text .ncs-logo-stream { color: var(--ncs-accent2); }
.ncs-logo-badge {
  background: var(--ncs-accent);
  color: #fff;
  font-family: var(--ncs-font-sub);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 5px;
  border-radius: 3px;
  align-self: flex-start;
  margin-top: 4px;
}

/* Custom logo image support */
.ncs-logo .custom-logo { width: auto; height: 40px; }

/* Nav links */
.ncs-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  list-style: none;
}
.ncs-nav-links li a {
  font-family: var(--ncs-font-sub);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0 14px;
  height: 62px;
  display: flex;
  align-items: center;
  color: var(--ncs-muted);
  transition: color .2s;
  position: relative;
}
.ncs-nav-links li a:hover,
.ncs-nav-links li.current-menu-item > a,
.ncs-nav-links li.current_page_item > a { color: #fff; }
.ncs-nav-links li.current-menu-item > a::after,
.ncs-nav-links li.current_page_item > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--ncs-accent);
}

/* Nav right controls */
.ncs-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.ncs-search-box {
  display: flex;
  align-items: center;
  background: var(--ncs-surface2);
  border: 1px solid var(--ncs-border);
  border-radius: 6px;
  padding: 0 12px;
  height: 36px;
  gap: 8px;
  transition: border-color .2s;
}
.ncs-search-box:focus-within { border-color: var(--ncs-accent); }
.ncs-search-box input[type="search"] {
  background: none;
  border: none;
  outline: none;
  color: var(--ncs-text);
  font-family: var(--ncs-font-body);
  font-size: 13px;
  width: 160px;
}
.ncs-search-box input[type="search"]::placeholder { color: var(--ncs-dim); }
.ncs-search-icon { color: var(--ncs-muted); font-size: 14px; }

/* Hamburger */
.ncs-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ncs-border);
  border-radius: 6px;
  color: var(--ncs-muted);
  cursor: pointer;
  padding: 6px 10px;
  font-size: 20px;
  line-height: 1;
}

/* Mobile menu: always hidden on desktop, toggled by JS on mobile */
.ncs-mobile-menu { display: none; }
/* Mobile search only visible inside the mobile menu (i.e. on mobile) */
.ncs-mobile-search { display: none; }

/* =============================================
   BUTTONS
   ============================================= */
.ncs-btn {
  font-family: var(--ncs-font-sub);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0 18px;
  height: 36px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ncs-btn-accent { background: var(--ncs-accent); color: #fff; }
.ncs-btn-accent:hover { background: #e02000; }
.ncs-btn-outline {
  background: transparent;
  border: 1px solid var(--ncs-border);
  color: var(--ncs-muted);
}
.ncs-btn-outline:hover { border-color: var(--ncs-muted); color: #fff; }

/* =============================================
   HERO SECTION
   ============================================= */
.ncs-hero {
  max-width: var(--ncs-max-width, 1400px);
  margin: 0 auto;
  padding: 24px 20px 0;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
}

.ncs-hero-main {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16/9;
  background: #111;
}
.ncs-hero-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform .4s ease;
}
.ncs-hero-main:hover .ncs-hero-thumb { transform: scale(1.03); }
.ncs-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.3) 50%, transparent 100%);
}
.ncs-hero-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--ncs-accent);
  color: #fff;
  font-family: var(--ncs-font-sub);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
}
.ncs-hero-views {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(0,0,0,.7);
  color: var(--ncs-muted);
  font-family: var(--ncs-font-sub);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ncs-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  background: rgba(255,45,0,.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, background .2s;
  box-shadow: 0 0 40px rgba(255,45,0,.4);
}
.ncs-hero-main:hover .ncs-play-btn { transform: translate(-50%, -50%) scale(1.1); background: var(--ncs-accent); }
.ncs-play-icon {
  width: 0; height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid #fff;
  margin-left: 5px;
}
.ncs-hero-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 24px;
}
.ncs-hero-cat {
  font-family: var(--ncs-font-sub);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ncs-accent2);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ncs-hero-cat::before { content: ''; display: block; width: 20px; height: 2px; background: var(--ncs-accent2); }
.ncs-hero-title {
  font-family: var(--ncs-font-head);
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.ncs-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--ncs-font-sub);
  font-size: 12px;
  font-weight: 600;
  color: var(--ncs-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ncs-hero-meta .ncs-dot { color: var(--ncs-dim); }

/* Hero sidebar (UP NEXT) */
.ncs-hero-sidebar { display: flex; flex-direction: column; gap: 8px; }
.ncs-sidebar-label {
  font-family: var(--ncs-font-sub);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ncs-muted);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ncs-sidebar-label::after { content: ''; flex: 1; height: 1px; background: var(--ncs-border); }

.ncs-side-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 10px;
  background: var(--ncs-surface);
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.ncs-side-card:hover { border-color: var(--ncs-border); background: var(--ncs-surface2); }
.ncs-side-thumb {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.ncs-side-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ncs-side-dur {
  position: absolute;
  bottom: 4px; right: 4px;
  background: rgba(0,0,0,.85);
  font-family: var(--ncs-font-sub);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
}
.ncs-side-info { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.ncs-side-cat {
  font-family: var(--ncs-font-sub);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ncs-accent);
}
.ncs-side-title {
  font-family: var(--ncs-font-sub);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
  color: var(--ncs-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ncs-side-meta {
  font-family: var(--ncs-font-body);
  font-size: 11px;
  color: var(--ncs-muted);
}

/* =============================================
   CATEGORY FILTER BAR
   ============================================= */
.ncs-section-wrap {
  max-width: var(--ncs-max-width, 1400px);
  margin: 0 auto;
  padding: 0 20px;
}
.ncs-cat-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ncs-cat-filter::-webkit-scrollbar { display: none; }
.ncs-cat-btn {
  font-family: var(--ncs-font-sub);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 20px;
  border: 1px solid var(--ncs-border);
  background: transparent;
  color: var(--ncs-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
}
.ncs-cat-btn:hover { color: #fff; border-color: var(--ncs-dim); }
.ncs-cat-btn.active, .ncs-cat-btn.current-cat {
  background: var(--ncs-accent);
  border-color: var(--ncs-accent);
  color: #fff;
}

/* =============================================
   SECTION HEADERS
   ============================================= */
.ncs-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ncs-border);
}
.ncs-section-title {
  font-family: var(--ncs-font-head);
  font-size: 28px;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ncs-section-title .ncs-accent { color: var(--ncs-accent); }
.ncs-section-title .ncs-line {
  display: block;
  width: 4px;
  height: 26px;
  background: var(--ncs-accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.ncs-see-all {
  font-family: var(--ncs-font-sub);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ncs-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .2s;
}
.ncs-see-all:hover { color: var(--ncs-accent); }
.ncs-see-all::after { content: '→'; }

/* =============================================
   MAIN CONTENT + RIGHT SIDEBAR LAYOUT
   ============================================= */
.ncs-content-layout {
  max-width: var(--ncs-max-width, 1400px);
  margin: 0 auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}
.ncs-main-content { min-width: 0; }
.ncs-secondary-section { margin-top: 40px; }

/* =============================================
   VIDEO GRID
   ============================================= */
.ncs-video-grid {
  display: grid;
  grid-template-columns: repeat(var(--ncs-grid-cols, 3), 1fr);
  gap: 16px;
}

.ncs-video-card {
  background: var(--ncs-surface);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.ncs-video-card:hover {
  border-color: var(--ncs-border);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,45,0,.12);
}
.ncs-video-card.featured { grid-column: span 2; }

.ncs-card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.ncs-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.ncs-video-card:hover .ncs-card-thumb img { transform: scale(1.05); }

/* play overlay — only on cards that have a video attached */
.ncs-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background .25s;
}
.ncs-video-card.has-video:hover .ncs-card-thumb::after { background: rgba(0,0,0,.3); }

.ncs-card-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(0);
  width: 48px; height: 48px;
  background: rgba(255,45,0,.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s;
  z-index: 2;
}
.ncs-video-card.has-video:hover .ncs-card-play { transform: translate(-50%,-50%) scale(1); }
.ncs-card-play-icon {
  width: 0; height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid #fff;
  margin-left: 3px;
}

.ncs-card-dur {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(0,0,0,.85);
  font-family: var(--ncs-font-sub);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  z-index: 2;
}
.ncs-card-cat-tag {
  position: absolute;
  top: 8px; left: 8px;
  font-family: var(--ncs-font-sub);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  z-index: 2;
  background: rgba(0,0,0,.75);
  color: #fff;
  border-left: 3px solid var(--ncs-accent);
}

.ncs-card-body { padding: 12px 14px 14px; }
.ncs-card-title {
  font-family: var(--ncs-font-sub);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--ncs-text);
  transition: color .2s;
}
.ncs-video-card:hover .ncs-card-title { color: var(--ncs-accent2); }

.ncs-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ncs-card-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ncs-font-body);
  font-size: 11px;
  color: var(--ncs-muted);
}
.ncs-card-stats span { display: flex; align-items: center; gap: 4px; }
.ncs-card-ago {
  font-family: var(--ncs-font-body);
  font-size: 11px;
  color: var(--ncs-dim);
}
.ncs-card-author {
  font-family: var(--ncs-font-sub);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ncs-muted);
  margin-bottom: 4px;
}

/* Hot tag */
.ncs-hot-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,45,0,.15);
  color: var(--ncs-accent);
  font-family: var(--ncs-font-sub);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  border: 1px solid rgba(255,45,0,.3);
}
.ncs-hot-tag::before { content: '🔥'; font-size: 9px; }

/* =============================================
   RIGHT SIDEBAR WIDGETS
   ============================================= */
.ncs-right-sidebar { display: flex; flex-direction: column; gap: 24px; }

.ncs-sidebar-widget {
  background: var(--ncs-surface);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--ncs-border);
}
.ncs-widget-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--ncs-border);
  background: var(--ncs-surface2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ncs-widget-title {
  font-family: var(--ncs-font-head);
  font-size: 18px;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ncs-widget-title-icon { font-size: 16px; }

/* Trending list */
.ncs-trending-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ncs-border);
  cursor: pointer;
  transition: background .2s;
}
.ncs-trending-item:last-child { border-bottom: none; }
.ncs-trending-item:hover { background: var(--ncs-surface2); }
.ncs-trend-rank {
  font-family: var(--ncs-font-head);
  font-size: 28px;
  color: var(--ncs-border);
  line-height: 1;
  min-width: 28px;
  text-align: center;
  transition: color .2s;
}
.ncs-trending-item:hover .ncs-trend-rank { color: var(--ncs-accent); }
.ncs-trend-thumb {
  width: 72px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.ncs-trend-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ncs-trend-info { flex: 1; min-width: 0; }
.ncs-trend-title {
  font-family: var(--ncs-font-sub);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ncs-trend-meta {
  font-family: var(--ncs-font-body);
  font-size: 10px;
  color: var(--ncs-muted);
  display: flex;
  gap: 8px;
}

/* Live dot */
.ncs-live-dot {
  width: 8px; height: 8px;
  background: #f00;
  border-radius: 50%;
  display: inline-block;
  animation: ncs-pulse 1.5s infinite;
}
@keyframes ncs-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,0,0,.4); }
  50% { opacity: .8; box-shadow: 0 0 0 6px rgba(255,0,0,0); }
}

.ncs-live-card {
  padding: 12px 16px;
  border-bottom: 1px solid var(--ncs-border);
  cursor: pointer;
  transition: background .2s;
}
.ncs-live-card:last-child { border-bottom: none; }
.ncs-live-card:hover { background: var(--ncs-surface2); }
.ncs-live-thumb {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16/9;
  margin-bottom: 8px;
}
.ncs-live-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ncs-live-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
}
.ncs-live-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: #f00;
  color: #fff;
  font-family: var(--ncs-font-sub);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ncs-live-viewers {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-family: var(--ncs-font-sub);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}
.ncs-live-title {
  font-family: var(--ncs-font-sub);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
  margin-bottom: 4px;
}
.ncs-live-host {
  font-family: var(--ncs-font-body);
  font-size: 11px;
  color: var(--ncs-muted);
}

/* Ad banner */
.ncs-ad-banner {
  background: linear-gradient(135deg, var(--ncs-surface2) 0%, #1a0505 100%);
  border: 1px solid rgba(255,45,0,.2);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
}
.ncs-ad-label {
  font-family: var(--ncs-font-sub);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ncs-dim);
  margin-bottom: 12px;
}
.ncs-ad-title {
  font-family: var(--ncs-font-head);
  font-size: 26px;
  letter-spacing: 1px;
  line-height: 1.1;
  margin-bottom: 10px;
}
.ncs-ad-sub {
  font-family: var(--ncs-font-body);
  font-size: 12px;
  color: var(--ncs-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Tags */
.ncs-tags-wrap {
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ncs-tag-pill {
  font-family: var(--ncs-font-sub);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--ncs-border);
  color: var(--ncs-muted);
  cursor: pointer;
  transition: all .2s;
}
.ncs-tag-pill:hover {
  border-color: var(--ncs-accent);
  color: var(--ncs-accent);
}

/* WordPress widget area */
.ncs-widget-area .widget {
  background: var(--ncs-surface);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--ncs-border);
  margin-bottom: 24px;
  padding: 16px;
}
.ncs-widget-area .widget-title {
  font-family: var(--ncs-font-head);
  font-size: 18px;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ncs-border);
}
.ncs-widget-area .widget ul { list-style: none; }
.ncs-widget-area .widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--ncs-border);
  font-family: var(--ncs-font-sub);
  font-size: 13px;
  color: var(--ncs-muted);
}
.ncs-widget-area .widget ul li:last-child { border-bottom: none; }
.ncs-widget-area .widget ul li a:hover { color: var(--ncs-accent); }

/* =============================================
   SINGLE POST / ARTICLE
   ============================================= */
.ncs-single-layout {
  max-width: var(--ncs-max-width, 1400px);
  margin: 0 auto;
  padding: 32px 20px 60px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
.ncs-article { min-width: 0; }
.ncs-article-header { margin-bottom: 24px; }
.ncs-article-cat {
  font-family: var(--ncs-font-sub);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ncs-accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ncs-article-cat::before { content: ''; display: block; width: 20px; height: 2px; background: var(--ncs-accent); }
.ncs-article-title {
  font-family: var(--ncs-font-head);
  font-size: 52px;
  line-height: 1;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.ncs-article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--ncs-font-sub);
  font-size: 12px;
  font-weight: 600;
  color: var(--ncs-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ncs-border);
}
.ncs-article-thumb {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16/9;
  margin-bottom: 32px;
}
.ncs-article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ncs-article-content {
  font-family: var(--ncs-font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ncs-text);
}
.ncs-article-content h2, .ncs-article-content h3 {
  font-family: var(--ncs-font-head);
  letter-spacing: 1px;
  margin: 32px 0 16px;
}
.ncs-article-content h2 { font-size: 32px; }
.ncs-article-content h3 { font-size: 24px; }
.ncs-article-content p { margin-bottom: 20px; }
.ncs-article-content a { color: var(--ncs-accent2); text-decoration: underline; }
.ncs-article-content blockquote {
  border-left: 4px solid var(--ncs-accent);
  padding: 16px 24px;
  background: var(--ncs-surface);
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-family: var(--ncs-font-sub);
  font-size: 18px;
  font-weight: 700;
}
.ncs-article-content img {
  border-radius: 8px;
  margin: 24px 0;
}
.ncs-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--ncs-border);
}

/* Comments */
.ncs-comments {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--ncs-border);
}
.ncs-comments-title {
  font-family: var(--ncs-font-head);
  font-size: 28px;
  letter-spacing: 2px;
  margin-bottom: 24px;
}
.ncs-comment-list { list-style: none; }
.ncs-comment-list .comment {
  padding: 20px 0;
  border-bottom: 1px solid var(--ncs-border);
}
.ncs-comment-list .comment-author { font-family: var(--ncs-font-sub); font-weight: 700; }
.ncs-comment-list .comment-content { margin-top: 8px; font-size: 14px; color: var(--ncs-muted); }

.comment-respond {
  background: var(--ncs-surface);
  border-radius: 10px;
  padding: 24px;
  margin-top: 32px;
  border: 1px solid var(--ncs-border);
}
.comment-respond .comment-reply-title {
  font-family: var(--ncs-font-head);
  font-size: 24px;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.comment-respond input,
.comment-respond textarea {
  width: 100%;
  background: var(--ncs-surface2);
  border: 1px solid var(--ncs-border);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--ncs-text);
  font-family: var(--ncs-font-body);
  font-size: 14px;
  margin-bottom: 14px;
  outline: none;
  transition: border-color .2s;
}
.comment-respond input:focus,
.comment-respond textarea:focus { border-color: var(--ncs-accent); }
.comment-respond textarea { min-height: 120px; resize: vertical; }
.comment-respond .submit {
  background: var(--ncs-accent);
  color: #fff;
  font-family: var(--ncs-font-sub);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0 24px;
  height: 40px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.comment-respond .submit:hover { background: #e02000; }

/* =============================================
   ARCHIVE / SEARCH RESULTS
   ============================================= */
.ncs-archive-layout {
  max-width: var(--ncs-max-width, 1400px);
  margin: 0 auto;
  padding: 32px 20px 60px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
.ncs-archive-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ncs-border);
}
.ncs-archive-title {
  font-family: var(--ncs-font-head);
  font-size: 42px;
  letter-spacing: 2px;
}
.ncs-archive-desc {
  font-family: var(--ncs-font-sub);
  font-size: 13px;
  color: var(--ncs-muted);
  margin-top: 8px;
}

/* Pagination */
.ncs-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--ncs-border);
}
.ncs-pagination .page-numbers {
  font-family: var(--ncs-font-sub);
  font-weight: 700;
  font-size: 13px;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--ncs-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ncs-muted);
  transition: all .2s;
}
.ncs-pagination .page-numbers:hover { border-color: var(--ncs-accent); color: var(--ncs-accent); }
.ncs-pagination .page-numbers.current {
  background: var(--ncs-accent);
  border-color: var(--ncs-accent);
  color: #fff;
}

/* =============================================
   404 PAGE
   ============================================= */
.ncs-404-wrap {
  max-width: 600px;
  margin: 80px auto;
  padding: 0 20px;
  text-align: center;
}
.ncs-404-code {
  font-family: var(--ncs-font-head);
  font-size: 120px;
  letter-spacing: 4px;
  line-height: 1;
  color: var(--ncs-accent);
  opacity: .3;
}
.ncs-404-title {
  font-family: var(--ncs-font-head);
  font-size: 36px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.ncs-404-text {
  font-family: var(--ncs-font-body);
  color: var(--ncs-muted);
  margin-bottom: 32px;
}

/* =============================================
   FOOTER
   ============================================= */
.ncs-footer {
  background: var(--ncs-surface);
  border-top: 1px solid var(--ncs-border);
  padding: 48px 0 0;
}
.ncs-footer-inner {
  max-width: var(--ncs-max-width, 1400px);
  margin: 0 auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.ncs-footer-brand {}
.ncs-footer-logo {
  margin-bottom: 16px;
}
.ncs-footer-tagline {
  font-family: var(--ncs-font-body);
  font-size: 13px;
  color: var(--ncs-muted);
  line-height: 1.6;
  max-width: 300px;
  margin-bottom: 20px;
}
.ncs-footer-social {
  display: flex;
  gap: 8px;
}
.ncs-social-btn {
  width: 36px; height: 36px;
  background: var(--ncs-surface2);
  border-radius: 6px;
  border: 1px solid var(--ncs-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: border-color .2s, background .2s;
}
.ncs-social-btn:hover { border-color: var(--ncs-accent); background: rgba(255,45,0,.1); }

.ncs-footer-col-title {
  font-family: var(--ncs-font-sub);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ncs-muted);
  margin-bottom: 16px;
}
.ncs-footer-links { list-style: none; }
.ncs-footer-links li { margin-bottom: 10px; }
.ncs-footer-links li a {
  font-family: var(--ncs-font-body);
  font-size: 13px;
  color: var(--ncs-dim);
  transition: color .2s;
}
.ncs-footer-links li a:hover { color: var(--ncs-text); }

.ncs-footer-bottom {
  border-top: 1px solid var(--ncs-border);
  padding: 16px 20px;
  max-width: var(--ncs-max-width, 1400px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--ncs-font-sub);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ncs-dim);
}
.ncs-footer-bottom-links { display: flex; gap: 20px; }
.ncs-footer-bottom-links a { transition: color .2s; }
.ncs-footer-bottom-links a:hover { color: var(--ncs-text); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .ncs-hero { grid-template-columns: 1fr; }
  .ncs-hero-sidebar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .ncs-sidebar-label { grid-column: 1 / -1; }
  .ncs-content-layout,
  .ncs-single-layout,
  .ncs-archive-layout { grid-template-columns: 1fr; }
  .ncs-right-sidebar { display: none; }
  .ncs-video-grid { grid-template-columns: repeat(2, 1fr); }
  .ncs-video-card.featured { grid-column: span 1; }
  .ncs-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  /* Hide desktop nav elements */
  .ncs-nav-links,
  .ncs-search-box { display: none !important; }

  /* Nav inner: logo left, hamburger right */
  .ncs-nav-inner { justify-content: space-between; }

  /* Push nav-right to far right */
  .ncs-nav-right { margin-left: auto; }

  /* Show hamburger */
  .ncs-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    font-size: 22px; padding: 0;
  }

  /* Dropdown panel */
  .ncs-navbar { position: sticky; }
  .ncs-mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    z-index: 99;
    background: var(--ncs-surface);
    border-top: 2px solid var(--ncs-accent);
    border-bottom: 1px solid var(--ncs-border);
    padding: 8px 0 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.5);
  }
  .ncs-mobile-menu.open { display: block; }

  /* Menu items */
  .ncs-mobile-menu ul { list-style: none; padding: 0; margin: 0; }
  .ncs-mobile-menu ul li { border-bottom: 1px solid var(--ncs-border); }
  .ncs-mobile-menu ul li:last-child { border-bottom: none; }
  .ncs-mobile-menu ul li a {
    display: block;
    padding: 14px 20px;
    font-family: var(--ncs-font-sub);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ncs-muted);
    transition: color .2s, background .2s;
  }
  .ncs-mobile-menu ul li a:hover,
  .ncs-mobile-menu ul li.current-menu-item > a {
    color: var(--ncs-accent);
    background: rgba(255,45,0,.06);
  }

  /* Fallback links */
  .ncs-mobile-menu .ncs-mobile-fallback-links { padding: 0; }
  .ncs-mobile-menu .ncs-mobile-fallback-links a {
    display: block;
    padding: 14px 20px;
    font-family: var(--ncs-font-sub);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ncs-muted);
    border-bottom: 1px solid var(--ncs-border);
    transition: color .2s;
  }
  .ncs-mobile-menu .ncs-mobile-fallback-links a:hover { color: var(--ncs-accent); }

  /* Search row in mobile menu — re-enable inside mobile breakpoint */
  .ncs-mobile-search {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid var(--ncs-border);
  }
  .ncs-mobile-search .ncs-search-box { display: flex !important; width: 100%; }
  .ncs-mobile-search .ncs-search-box input { width: 100%; }

  /* Content adjustments */
  .ncs-hero-title { font-size: 26px; }
  .ncs-article-title { font-size: 32px; }
  .ncs-archive-title { font-size: 28px; }
  .ncs-video-grid { grid-template-columns: 1fr; }
  .ncs-hero-sidebar { grid-template-columns: 1fr; }
  .ncs-footer-inner { grid-template-columns: 1fr; }
  .ncs-footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .ncs-section-title { font-size: 22px; }
  .ncs-nav-right .ncs-btn { display: none; }
}
