/*
Theme Name: Nexa
Author: Nexa
Description: A dark, modern adult content discovery and search theme. Converted from Next.js v0.app design. Features video grids, creator profiles, category browsing, live streams, partner sites, age gate, affiliate redirect tracking, and a full admin dashboard.
Version: 2.10.1
Requires at least: 6.4
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nexa
Tags: dark, adult, video, affiliate, custom-menu, custom-logo, editor-style, full-width-template, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* ============================================================
   DESIGN TOKENS  (dark charcoal — matches the v0.app theme)
   ============================================================ */
:root {
  --background:      #1f1b22;
  --foreground:      #f6f4f7;
  --card:            #272330;
  --card-foreground: #f6f4f7;
  --popover:         #231f2b;
  --popover-foreground: #f6f4f7;
  --primary:         #db5c8a;
  --primary-foreground: #ffffff;
  --secondary:       #312c3b;
  --secondary-foreground: #f6f4f7;
  --muted:           #2d293a;
  --muted-foreground:#a39cb0;
  --accent:          #3d2f44;
  --accent-foreground: #f6f4f7;
  --destructive:     #e85858;
  --live:            #e85858;
  --live-foreground: #ffffff;
  --border:          rgba(255,255,255,0.09);
  --input:           rgba(255,255,255,0.12);
  --ring:            #db5c8a;
  --radius:          0.75rem;
  --sidebar:         #1d1a26;
  --sidebar-foreground: #f6f4f7;
  --sidebar-primary: #db5c8a;
  --sidebar-accent:  #312c3b;
  --sidebar-border:  rgba(255,255,255,0.09);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }

/* ============================================================
   LAYOUT
   ============================================================ */
.nexa-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .nexa-container { padding: 0 1.5rem; } }

.nexa-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.nexa-main { flex: 1; }

/* ============================================================
   GLOBAL RIGHT SIDEBAR
   ============================================================ */
.nexa-site-shell {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  min-width: 0;
}
.nexa-site-primary { min-width: 0; }
.site-sidebar {
  min-width: 0;
  padding: 1.5rem 1rem 2.5rem;
}
.site-sidebar__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.site-sidebar__area:empty { display: none; }
.nexa-widget {
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow-wrap: anywhere;
}
.nexa-widget + .nexa-widget { margin-top: 1rem; }
.nexa-widget__title,
.nexa-widget .wp-block-heading {
  margin: 0 0 .85rem;
  color: var(--foreground);
  font-size: .93rem;
  line-height: 1.3;
  font-weight: 700;
}
.nexa-widget p,
.nexa-widget li,
.nexa-widget .wp-block-latest-posts__post-excerpt {
  color: var(--muted-foreground);
  font-size: .875rem;
  line-height: 1.6;
}
.nexa-widget ul,
.nexa-widget ol {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.nexa-widget a { color: #ddd8e2; }
.nexa-widget a:hover { color: var(--primary); }
.nexa-widget img { height: auto; border-radius: calc(var(--radius) * .65); }
.nexa-widget select,
.nexa-widget input[type="text"],
.nexa-widget input[type="search"],
.nexa-widget input[type="email"],
.nexa-widget input[type="url"] {
  width: 100%;
  min-height: 2.55rem;
  padding: .55rem .7rem;
  border: 1px solid var(--input);
  border-radius: .55rem;
  background: var(--secondary);
  color: var(--foreground);
}
.nexa-widget button,
.nexa-widget input[type="submit"] {
  margin-top: .55rem;
  min-height: 2.45rem;
  padding: .55rem .85rem;
  border: 0;
  border-radius: .55rem;
  background: var(--primary);
  color: var(--primary-foreground);
  cursor: pointer;
  font-weight: 650;
}
.nexa-widget .wp-block-search__inside-wrapper { gap: .45rem; }
.nexa-widget .wp-block-search__button { margin: 0; }
.nexa-widget .tag-cloud-link {
  display: inline-block;
  margin: 0 .3rem .35rem 0;
  padding: .3rem .5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .75rem !important;
}

@media (min-width: 1280px) {
  .nexa-site-shell.has-site-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.5rem;
    padding: 0 1.5rem;
  }
  .nexa-site-shell.has-site-sidebar > .nexa-site-primary > .nexa-container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  .nexa-site-shell.has-site-sidebar .hero__inner {
    max-width: 100%;
  }
  .site-sidebar {
    padding: 2.5rem 0 3rem;
  }
  .site-sidebar__inner {
    position: sticky;
    top: 5.25rem;
    max-height: calc(100vh - 6.25rem);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
  }
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(31,27,34,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 4rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.site-header__logo svg { width: 28px; height: 28px; }

.site-header__nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.5rem;
}
@media (min-width: 1024px) { .site-header__nav { display: flex; } }

.site-header__nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.625rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.15s, background 0.15s;
}
.site-header__nav a:hover,
.site-header__nav a.active {
  background: var(--muted);
  color: var(--foreground);
}

.site-header__search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  max-width: 28rem;
  margin-left: auto;
}

.search-wrap {
  position: relative;
  width: 100%;
}
.search-wrap svg {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
  pointer-events: none;
}
.search-wrap input {
  width: 100%;
  height: 2.25rem;
  padding: 0 0.75rem 0 2.25rem;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s;
}
.search-wrap input::placeholder { color: var(--muted-foreground); }
.search-wrap input:focus { border-color: var(--ring); }

.btn-live {
  display: none;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius);
  background: var(--secondary);
  color: var(--secondary-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-live:hover { background: var(--accent); color: var(--foreground); }
@media (min-width: 640px) { .btn-live { display: inline-flex; } }

.live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--live);
  animation: pulse 1.5s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Hamburger */
.btn-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: transparent;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
  margin-left: 0.25rem;
}
.btn-menu:hover { background: var(--muted); }
@media (min-width: 1024px) { .btn-menu { display: none; } }

/* Mobile drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--sidebar);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover { background: var(--muted); color: var(--foreground); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.6;
  background:
    radial-gradient(60% 80% at 50% -10%, rgba(219,92,138,0.28), transparent 70%),
    radial-gradient(40% 60% at 90% 10%,  rgba(140,92,200,0.22), transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  margin: 0 auto;
  padding: 4rem 1rem;
  text-align: center;
}
@media (min-width: 640px) { .hero__inner { padding: 6rem 1.5rem; } }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 9999px;
  background: var(--secondary);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
  border: 1px solid var(--border);
}
.hero__badge svg { width: 0.875rem; height: 0.875rem; color: var(--primary); }

.hero h1 {
  margin-top: 1.5rem;
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.hero__sub {
  margin: 1rem auto 0;
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}
.hero__form {
  display: flex;
  gap: 0.5rem;
  max-width: 40rem;
  margin: 2rem auto 0;
}
.hero__form .search-wrap { flex: 1; }
.hero__form .search-wrap input { height: 3rem; font-size: 1rem; padding-left: 2.75rem; }
.hero__form .search-wrap svg { width: 1.25rem; height: 1.25rem; left: 0.875rem; }

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.hero__tags a {
  border-radius: 9999px;
  background: var(--secondary);
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  color: var(--secondary-foreground);
  transition: background 0.15s;
}
.hero__tags a:hover { background: var(--accent); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover { opacity: 0.9; color: var(--primary-foreground); }

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
}
.btn-secondary:hover { background: var(--accent); }

.btn-lg { height: 3rem; padding: 0 1.5rem; font-size: 1rem; }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) { .trust-strip { grid-template-columns: repeat(3, 1fr); } }

.trust-item {
  display: flex;
  gap: 0.75rem;
  border-radius: calc(var(--radius)*1.3);
  background: var(--card);
  padding: 1rem;
  border: 1px solid var(--border);
}
.trust-item svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; color: var(--primary); margin-top: 0.125rem; }
.trust-item__title { font-size: 0.875rem; font-weight: 500; }
.trust-item__body { margin-top: 0.25rem; font-size: 0.75rem; line-height: 1.5; color: var(--muted-foreground); }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.section-header h2 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
.section-header p { font-size: 0.8125rem; color: var(--muted-foreground); margin-top: 0.125rem; }
.section-header__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================================
   CATEGORY CHIPS
   ============================================================ */
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--secondary);
  color: var(--secondary-foreground);
  border: 1px solid var(--border);
  transition: background 0.15s, border-color 0.15s;
}
.category-chip:hover { background: var(--accent); border-color: var(--primary); }

/* ============================================================
   LIVE RAIL
   ============================================================ */
.live-rail {
  display: flex;
  gap: 0.875rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.live-rail::-webkit-scrollbar { display: none; }

.live-card {
  flex-shrink: 0;
  width: 9rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media (min-width: 640px) { .live-card { width: 10rem; } }

.live-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.live-card__badge {
  position: absolute;
  top: 0.375rem;
  left: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background: var(--live);
  color: var(--live-foreground);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.live-card__viewers {
  position: absolute;
  bottom: 0.375rem;
  right: 0.375rem;
  padding: 0.125rem 0.375rem;
  border-radius: 0.375rem;
  background: rgba(0,0,0,0.75);
  font-size: 0.625rem;
  font-family: monospace;
}
.live-card__name {
  font-size: 0.75rem;
  font-weight: 500;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.live-card__meta { font-size: 0.6875rem; color: var(--muted-foreground); }

/* ============================================================
   CONTENT GRID
   ============================================================ */
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px)  { .content-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .content-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .content-grid { grid-template-columns: repeat(5, 1fr); } }

/* ============================================================
   CONTENT CARD
   ============================================================ */
.content-card { display: flex; flex-direction: column; }
.content-card:hover .content-card__thumb img { transform: scale(1.05); }

.content-card__thumb {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius)*1.3);
  border: 1px solid rgba(255,255,255,0.07);
}
.content-card__media-link {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0b0910;
  cursor: pointer;
}
.content-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity .18s ease;
}

.badge-tl {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  display: flex;
  gap: 0.375rem;
  pointer-events: none;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.badge-live { background: var(--live); color: var(--live-foreground); }
.badge-4k   { background: rgba(0,0,0,0.75); color: #a78bfa; border: 1px solid rgba(167,139,250,0.4); }
.badge-hd   { background: rgba(0,0,0,0.75); color: #60a5fa; border: 1px solid rgba(96,165,250,0.4); }
.badge-sd   { background: rgba(0,0,0,0.75); color: var(--muted-foreground); }
.badge-unknown { background: rgba(0,0,0,0.75); color: var(--muted-foreground); border: 1px solid rgba(255,255,255,0.14); }

.content-card__duration {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  padding: 0.125rem 0.375rem;
  border-radius: 0.375rem;
  background: rgba(0,0,0,0.75);
  font-size: 0.6875rem;
  font-family: monospace;
  font-weight: 500;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.content-card__ext {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
  background: rgba(0,0,0,0.75);
  color: var(--foreground);
  opacity: 0;
  transition: opacity 0.2s;
  backdrop-filter: blur(4px);
  text-decoration: none;
  z-index: 3;
}
.content-card:hover .content-card__ext { opacity: 1; }
.content-card__ext { pointer-events:none !important; display:none !important; }
.content-card__ext svg { width: 1rem; height: 1rem; }

.content-card__info { margin-top: 0.625rem; display: flex; flex-direction: column; gap: 0.25rem; }
.content-card__title {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.content-card__title a:hover { color: var(--primary); }
.content-card__meta { display: flex; align-items: center; gap: 0.375rem; font-size: 0.6875rem; color: var(--muted-foreground); }

/* ============================================================
   CREATOR CARD
   ============================================================ */
.creator-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: calc(var(--radius)*1.3);
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.07);
  transition: border-color 0.2s;
}
.creator-card:hover { border-color: rgba(219,92,138,0.5); }

.creator-card__thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.creator-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.creator-card:hover .creator-card__thumb img { transform: scale(1.05); }

.creator-card__body {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
}
.creator-card__avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.creator-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.creator-card__name { font-size: 0.875rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creator-card:hover .creator-card__name { color: var(--primary); }
.creator-card__sub { font-size: 0.6875rem; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Creator grid */
.creator-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px)  { .creator-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .creator-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .creator-grid { grid-template-columns: repeat(5, 1fr); } }

/* ============================================================
   PROVIDER CARD
   ============================================================ */
.provider-card {
  display: flex;
  flex-direction: column;
  border-radius: calc(var(--radius)*1.6);
  background: var(--card);
  padding: 1.25rem;
  border: 1px solid rgba(255,255,255,0.07);
  transition: transform 0.2s, border-color 0.2s;
}
.provider-card:hover { transform: translateY(-2px); border-color: rgba(219,92,138,0.5); }

.provider-card__head { display: flex; align-items: center; gap: 0.75rem; }
.provider-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: calc(var(--radius)*1.3);
  font-weight: 600;
  font-size: 0.875rem;
  color: white;
  flex-shrink: 0;
}
.provider-card__name { font-weight: 600; letter-spacing: -0.01em; }
.provider-card__feed { font-size: 0.75rem; color: var(--muted-foreground); }
.provider-card__desc { margin-top: 1rem; font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.provider-card__tags { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 1rem; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 500;
  background: var(--secondary);
  color: var(--secondary-foreground);
  text-transform: capitalize;
}

.provider-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.provider-stat dt { font-size: 0.6875rem; color: var(--muted-foreground); }
.provider-stat dd { font-size: 0.875rem; font-weight: 600; margin-top: 0.125rem; }

.provider-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}
.provider-card__cta svg { width: 1rem; height: 1rem; transition: transform 0.2s; }
.provider-card:hover .provider-card__cta svg { transform: translateX(2px); }

.provider-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .provider-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .provider-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.filter-bar select {
  height: 2.25rem;
  padding: 0 2rem 0 0.75rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 0.875rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a39cb0' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.625rem center;
  cursor: pointer;
  outline: none;
}
.filter-bar select:focus { border-color: var(--ring); }

/* ============================================================
   AGE GATE
   ============================================================ */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(31,27,34,0.97);
  backdrop-filter: blur(12px);
}
.age-gate__box {
  width: 100%;
  max-width: 28rem;
  border-radius: calc(var(--radius)*2);
  background: var(--card);
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border);
}
@media (min-width: 640px) { .age-gate__box { padding: 2.5rem; } }
.age-gate__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(219,92,138,0.15);
  color: var(--primary);
  margin: 0 auto 1.25rem;
}
.age-gate__icon svg { width: 1.5rem; height: 1.5rem; }
.age-gate h1, .age-gate h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; }
.age-gate p { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); }
.age-gate__actions { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.5rem; }
.age-gate__actions .btn { width: 100%; }
.age-gate__note { margin-top: 1.25rem; font-size: 0.75rem; color: var(--muted-foreground); }

/* ============================================================
   PLACEHOLDER THUMBNAIL (gradient stand-in)
   ============================================================ */
.placeholder-thumb {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================================
   SITE FOOTER — v1.9 trust, discovery & safety experience
   ============================================================ */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 12% -10%, rgba(219,92,138,.13), transparent 32rem),
    radial-gradient(circle at 90% 22%, rgba(98,76,188,.10), transparent 28rem),
    linear-gradient(180deg, #211d27 0%, #18151d 100%);
}
.site-footer__glow {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .55;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 72%);
}
.site-footer__inner {
  width: min(100% - 2rem, 1280px);
  margin: 0 auto;
  padding: 3.25rem 0 1.5rem;
}

.site-footer__intro {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(320px,.8fr);
  align-items: end;
  gap: 2rem;
  padding: 1.4rem;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: calc(var(--radius) * 1.4);
  background: linear-gradient(145deg, rgba(49,44,59,.72), rgba(28,25,34,.76));
  box-shadow: 0 24px 70px rgba(0,0,0,.16);
}
.site-footer__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .45rem;
  color: #efa1be;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.site-footer__eyebrow::before {
  content: "";
  width: .45rem;
  height: .45rem;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(219,92,138,.09);
}
.site-footer__intro h2 {
  margin: 0;
  font-size: clamp(1.5rem,3vw,2.25rem);
  letter-spacing: -.035em;
}
.site-footer__intro-copy > p {
  max-width: 760px;
  margin-top: .7rem;
  color: var(--muted-foreground);
  font-size: .875rem;
  line-height: 1.75;
}
.site-footer__search {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: .7rem;
  min-height: 3.2rem;
  padding: .35rem .35rem .35rem .85rem;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: .9rem;
  background: rgba(10,9,12,.36);
  color: var(--muted-foreground);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.site-footer__search:focus-within {
  border-color: rgba(219,92,138,.62);
  background: rgba(10,9,12,.48);
  box-shadow: 0 0 0 3px rgba(219,92,138,.08);
}
.site-footer__search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--foreground);
  font: inherit;
  font-size: .82rem;
}
.site-footer__search input::placeholder { color: #817a8d; }
.site-footer__search button {
  min-height: 2.45rem;
  padding: 0 .9rem;
  border: 0;
  border-radius: .68rem;
  background: linear-gradient(135deg, var(--primary), #bd3d76);
  color: #fff;
  font: inherit;
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
}
.site-footer__search button:hover { transform: translateY(-1px); filter: brightness(1.08); }

.site-footer__trust-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: .85rem;
  margin-top: 1rem;
}
.site-footer__trust-card {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: start;
  gap: .8rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: calc(var(--radius) * 1.08);
  background: rgba(255,255,255,.026);
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.site-footer__trust-card:hover {
  transform: translateY(-2px);
  border-color: rgba(219,92,138,.32);
  background: rgba(219,92,138,.035);
}
.site-footer__trust-icon {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: .72rem;
  color: #f2a2c1;
  background: linear-gradient(145deg, rgba(219,92,138,.17), rgba(219,92,138,.065));
  border: 1px solid rgba(219,92,138,.17);
}
.site-footer__trust-card h3 {
  margin: .05rem 0 .3rem;
  font-size: .82rem;
  font-weight: 700;
}
.site-footer__trust-card p {
  color: var(--muted-foreground);
  font-size: .73rem;
  line-height: 1.6;
}
.site-footer__trust-card a {
  display: inline-flex;
  margin-top: .45rem;
  color: #efa1be;
  font-size: .7rem;
  font-weight: 700;
}
.site-footer__trust-card a:hover { color: #fff; }

.site-footer__notice {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: start;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(244,171,72,.16);
  border-radius: calc(var(--radius) * 1.08);
  background: linear-gradient(135deg, rgba(244,171,72,.055), rgba(219,92,138,.035));
}
.site-footer__notice-badge {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: .8rem;
  border: 1px solid rgba(244,171,72,.22);
  background: rgba(244,171,72,.09);
  color: #f6c17a;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .04em;
}
.site-footer__notice-copy h3 { margin: 0 0 .4rem; font-size: .86rem; }
.site-footer__notice-copy p {
  color: var(--muted-foreground);
  font-size: .735rem;
  line-height: 1.65;
}
.site-footer__notice-copy p + p { margin-top: .45rem; }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.45fr repeat(3, minmax(0,1fr));
  gap: 2rem;
  margin-top: 2rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.site-footer__brand-block { min-width: 0; }
.site-footer__brand-name {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 750;
}
.site-footer__brand-desc {
  max-width: 28rem;
  margin-top: .85rem;
  color: var(--muted-foreground);
  font-size: .79rem;
  line-height: 1.72;
}
.site-footer__mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}
.site-footer__mini-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 .72rem;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: #ddd8e3;
  font-size: .68rem;
  font-weight: 700;
}
.site-footer__mini-actions a:hover { border-color: rgba(219,92,138,.4); color: #fff; background: rgba(219,92,138,.07); }
.footer-col h2 {
  margin: 0;
  color: #f2eef4;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.footer-col ul {
  margin-top: .9rem;
  display: flex;
  flex-direction: column;
  gap: .58rem;
}
.footer-col a {
  color: var(--muted-foreground);
  font-size: .78rem;
  transition: color .15s ease, transform .15s ease;
}
.footer-col a:hover { color: #fff; }

.site-footer__safety-tips {
  display: grid;
  grid-template-columns: minmax(160px,.28fr) minmax(0,1fr);
  gap: 1rem;
  align-items: start;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.site-footer__safety-tips h2 {
  margin: 0;
  color: #e6e1e9;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .03em;
}
.site-footer__safety-tips ul {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: .8rem;
}
.site-footer__safety-tips li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted-foreground);
  font-size: .7rem;
  line-height: 1.6;
}
.site-footer__safety-tips li::before {
  content: "";
  position: absolute;
  top: .47rem;
  left: 0;
  width: .38rem;
  height: .38rem;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(219,92,138,.07);
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  color: #827b8d;
  font-size: .68rem;
  line-height: 1.55;
}
.site-footer__bottom-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .55rem;
  text-align: right;
}
.site-footer__status-dot {
  width: .38rem;
  height: .38rem;
  border-radius: 999px;
  background: #4ccc88;
  box-shadow: 0 0 0 4px rgba(76,204,136,.08);
}
.rta-badge {
  display: inline-flex;
  align-items: center;
  padding: .15rem .42rem;
  border-radius: .3rem;
  background: rgba(255,255,255,.055);
  color: #c9c3cf;
  font-family: monospace;
  font-size: .62rem;
  font-weight: 700;
}

@media (max-width: 980px) {
  .site-footer__intro { grid-template-columns: 1fr; align-items: start; }
  .site-footer__trust-grid { grid-template-columns: 1fr 1fr; }
  .site-footer__trust-card:last-child { grid-column: 1 / -1; }
  .site-footer__grid { grid-template-columns: 1.35fr 1fr 1fr; }
  .site-footer__brand-block { grid-column: 1 / -1; }
  .site-footer__safety-tips { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .site-footer { margin-top: 3.5rem; }
  .site-footer__inner { width: min(100% - 1.25rem, 1280px); padding-top: 2rem; }
  .site-footer__intro { padding: 1rem; }
  .site-footer__search { grid-template-columns: auto minmax(0,1fr); }
  .site-footer__search button { grid-column: 1 / -1; width: 100%; }
  .site-footer__trust-grid { grid-template-columns: 1fr; }
  .site-footer__trust-card:last-child { grid-column: auto; }
  .site-footer__notice { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 1.6rem 1rem; }
  .site-footer__brand-block { grid-column: 1 / -1; }
  .site-footer__safety-tips ul { grid-template-columns: 1fr; }
  .site-footer__bottom { align-items: flex-start; flex-direction: column; }
  .site-footer__bottom-meta { justify-content: flex-start; text-align: left; }
}
@media (max-width: 430px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SINGLE VIDEO PAGE
   ============================================================ */
.video-page { padding: 2rem 0; }
.video-page__header { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .video-page__header { flex-direction: row; align-items: flex-start; justify-content: space-between; } }
.video-page h1 { font-size: clamp(1.125rem, 3vw, 1.5rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }

.video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: calc(var(--radius)*1.3);
  overflow: hidden;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.video-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: var(--secondary);
  font-size: 0.75rem;
}

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-page { padding: 2rem 0; }
.search-page h1 { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; }
.search-info { font-size: 0.875rem; color: var(--muted-foreground); margin-bottom: 1.5rem; }

/* ============================================================
   CATEGORIES PAGE
   ============================================================ */
.categories-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px)  { .categories-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .categories-grid { grid-template-columns: repeat(4, 1fr); } }

.category-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  border-radius: calc(var(--radius)*1.2);
  background: var(--card);
  border: 1px solid var(--border);
  transition: border-color 0.15s, background 0.15s;
}
.category-card:hover { border-color: rgba(219,92,138,0.5); background: var(--accent); }
.category-card__name { font-size: 0.875rem; font-weight: 500; }
.category-card__count { font-size: 0.75rem; color: var(--muted-foreground); }

/* ============================================================
   PAGINATION
   Horizontal on every archive / search / video listing.
   WordPress paginate_links( type => list ) wraps links in
   <ul class="page-numbers"><li>…</li></ul>, so both wrapper
   formats are normalised here.
   ============================================================ */
.nexa-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 2.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.25rem 0 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* paginate_links() list output */
.nexa-pagination > ul.page-numbers,
.nexa-pagination ul.page-numbers {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap !important;
  gap: 0.5rem;
  width: max-content;
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nexa-pagination ul.page-numbers > li {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Plain paginate_links() output and links inside list output */
.nexa-pagination > a,
.nexa-pagination > span,
.nexa-pagination ul.page-numbers a,
.nexa-pagination ul.page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: var(--secondary);
  color: var(--secondary-foreground);
  font-size: 0.875rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.nexa-pagination > a:hover,
.nexa-pagination ul.page-numbers a:hover {
  background: var(--accent);
  border-color: rgba(219,92,138,0.55);
  transform: translateY(-1px);
}
.nexa-pagination .current {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--primary-foreground) !important;
}
.nexa-pagination .dots {
  min-width: 2rem;
  padding-inline: 0.4rem;
  background: transparent !important;
  border-color: transparent !important;
}
.nexa-pagination .prev,
.nexa-pagination .next {
  min-width: auto;
  padding-inline: 0.9rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .nexa-pagination {
    justify-content: flex-start;
    margin-inline: -0.25rem;
    width: calc(100% + 0.5rem);
    padding-inline: 0.25rem;
  }
  .nexa-pagination > ul.page-numbers,
  .nexa-pagination ul.page-numbers {
    justify-content: flex-start;
  }
}

/* ============================================================
   TAKEDOWN FORM
   ============================================================ */
.takedown-form { max-width: 42rem; }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; }
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.form-input:focus,
.form-textarea:focus { border-color: var(--ring); }
.form-textarea { min-height: 8rem; resize: vertical; }
.form-hint { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.25rem; }

/* ============================================================
   LEGAL / ABOUT PAGES
   ============================================================ */
.prose-page { max-width: 56rem; padding: 3rem 0; }
.prose-page h1 { font-size: 1.75rem; font-weight: 600; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.prose-page h2 { font-size: 1.125rem; font-weight: 600; margin-top: 2rem; margin-bottom: 0.75rem; }
.prose-page p, .prose-page li { font-size: 0.9375rem; line-height: 1.75; color: var(--muted-foreground); }
.prose-page ul { padding-left: 1.25rem; list-style: disc; margin-bottom: 1rem; }
.prose-page li { margin-bottom: 0.375rem; }
.prose-page a { color: var(--primary); }
.prose-page a:hover { text-decoration: underline; }

/* ============================================================
   ADMIN SIDEBAR (wp-admin complement)
   ============================================================ */
.nexa-admin-notice {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(219,92,138,0.12);
  border: 1px solid rgba(219,92,138,0.3);
  font-size: 0.875rem;
  color: var(--foreground);
  margin-bottom: 1.25rem;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.mt-0  { margin-top: 0; }
.mt-4  { margin-top: 1rem; }
.mt-8  { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-14 { margin-top: 3.5rem; }
.mb-4  { margin-bottom: 1rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.text-muted { color: var(--muted-foreground); }
.text-primary { color: var(--primary); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }


/* ============================================================
   ARTICLE / EDITORIAL EXPERIENCE
   ============================================================ */
.site-header__logo .custom-logo-link,
.site-header__logo-mark,
.site-header__brand-name {
  display: inline-flex;
  align-items: center;
}
.site-header__logo .custom-logo { max-height: 34px; width: auto; }
.site-header__brand-name { white-space: nowrap; }

.article-page { padding-top: 2.5rem; padding-bottom: 2rem; }
.article-card {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.6);
  background: rgba(39,35,48,.45);
  overflow: hidden;
}
.article-header {
  max-width: 62rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 1.25rem 1.5rem;
}
.article-kicker {
  display: inline-flex;
  padding: .25rem .625rem;
  border-radius: 999px;
  background: rgba(219,92,138,.12);
  border: 1px solid rgba(219,92,138,.25);
  color: var(--primary);
  font-size: .75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.article-header h1 {
  max-width: 56rem;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 700;
}
.article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin-top: 1.25rem;
  color: var(--muted-foreground);
  font-size: .875rem;
}
.article-author-mini { display: inline-flex; align-items: center; gap: .55rem; color: var(--foreground); }
.article-author-mini__avatar { width: 40px; height: 40px; border-radius: 50%; }
.article-featured-image {
  margin-top: 1.75rem;
  border-radius: calc(var(--radius) * 1.25);
  overflow: hidden;
  border: 1px solid var(--border);
}
.article-featured-image img { width: 100%; height: auto; }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  max-width: 70rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}
@media (min-width: 980px) {
  .article-layout { grid-template-columns: 15rem minmax(0, 1fr); gap: 3rem; }
  .article-sidebar { align-self: start; position: sticky; top: 5.5rem; }
}
.article-toc {
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
}
.article-toc__title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .7rem;
}
.article-toc ol { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.article-toc li { font-size: .78rem; line-height: 1.35; color: var(--muted-foreground); }
.article-toc li.toc-level-3 { padding-left: .75rem; }
.article-toc a:hover { color: var(--primary); }
.article-main { min-width: 0; }
.article-content { max-width: 48rem; }
.article-content > :first-child { margin-top: 0; }
.article-content h2,
.article-content h3 { scroll-margin-top: 6rem; }
.article-content h2 {
  margin-top: 2.25rem;
  margin-bottom: .8rem;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  line-height: 1.25;
  letter-spacing: -.018em;
}
.article-content h3 {
  margin-top: 1.6rem;
  margin-bottom: .55rem;
  font-size: 1.08rem;
  line-height: 1.35;
}
.article-content p,
.article-content li {
  color: #c8c2cf;
  font-size: 1rem;
  line-height: 1.85;
}
.article-content p { margin: 0 0 1.1rem; }
.article-content ul,
.article-content ol { margin: 0 0 1.25rem 1.35rem; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: .45rem; padding-left: .15rem; }
.article-content a { color: #f07fb0; text-decoration: underline; text-underline-offset: 3px; }
.article-content blockquote {
  margin: 1.5rem 0;
  padding: .8rem 1rem;
  border-left: 3px solid var(--primary);
  background: var(--muted);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9rem; }
.article-content th,
.article-content td { padding: .7rem; border: 1px solid var(--border); text-align: left; }
.article-content th { background: var(--secondary); }

.article-share { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.article-share p,
.article-share > span { font-size: .75rem; font-weight: 700; color: var(--muted-foreground); width: 100%; }
.article-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: .4rem .65rem;
  border: 1px solid var(--border);
  border-radius: .55rem;
  background: var(--secondary);
  font-size: .75rem;
  font-weight: 600;
}
.article-share a:hover { background: var(--accent); color: var(--foreground); border-color: rgba(219,92,138,.35); }
.article-share--side { margin-top: 1rem; }
.article-share--side a { width: 100%; }
.article-share--bottom {
  max-width: 48rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.author-box {
  max-width: 48rem;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.2);
}
.author-box__avatar { width: 64px; height: 64px; border-radius: 50%; }
.author-box__eyebrow { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-foreground); }
.author-box h2 { font-size: 1rem; margin-top: .15rem; }
.author-box p:last-child { margin-top: .45rem; color: var(--muted-foreground); line-height: 1.65; font-size: .86rem; }

.related-guides {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  background: rgba(39,35,48,.35);
}
.related-guides__grid,
.guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 680px) {
  .related-guides__grid,
  .guide-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 1024px) {
  .related-guides__grid,
  .guide-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
.related-guide-card,
.guide-card {
  overflow: hidden;
  border-radius: calc(var(--radius) * 1.1);
  background: var(--card);
  border: 1px solid var(--border);
  transition: transform .18s, border-color .18s;
}
.related-guide-card:hover,
.guide-card:hover { transform: translateY(-2px); border-color: rgba(219,92,138,.45); }
.related-guide-card__link,
.guide-card__link { display: block; height: 100%; }
.related-guide-card__thumb,
.guide-card__thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--muted); }
.related-guide-card__thumb img,
.guide-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-guide-card__body,
.guide-card__body { padding: 1rem; }
.related-guide-card__meta,
.guide-card__meta { color: var(--muted-foreground); font-size: .72rem; }
.related-guide-card h3,
.guide-card h2,
.guide-card h3 { margin-top: .45rem; font-size: 1rem; line-height: 1.35; }
.related-guide-card__body > p:last-child,
.guide-card__body > p:last-child { margin-top: .5rem; color: var(--muted-foreground); font-size: .84rem; line-height: 1.55; }
.guide-archive__header { max-width: 48rem; margin-bottom: 1.5rem; }
.guide-archive__header h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.guide-archive__header p { margin-top: .65rem; color: var(--muted-foreground); line-height: 1.65; }

/* ============================================================
   RESPONSIVE VIDEO EMBEDS
   ============================================================ */
.nexa-video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  margin: 0 0 1.5rem;
  border-radius: calc(var(--radius) * 1.2);
  background: #0d0b10;
  border: 1px solid var(--border);
}
.nexa-video-embed iframe,
.nexa-video-embed video,
.nexa-video-embed embed,
.nexa-video-embed object {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  border: 0;
}
.wp-block-embed__wrapper { position: relative; }
.wp-block-embed iframe { max-width: 100%; }

/* ============================================================
   HOMEPAGE LONG-FORM GUIDE
   ============================================================ */
.home-guide {
  max-width: 62rem;
  margin: 4rem auto 0;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border-radius: calc(var(--radius) * 1.7);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(39,35,48,.72), rgba(39,35,48,.4));
}
.home-guide__header { max-width: 52rem; margin-bottom: 2rem; }
.home-guide__eyebrow { color: var(--primary); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.home-guide__header h2 { margin-top: .5rem; font-size: clamp(1.7rem, 4vw, 2.55rem); line-height: 1.16; letter-spacing: -.025em; }
.home-guide__lede { margin-top: .75rem; color: var(--muted-foreground); font-size: 1rem; line-height: 1.7; }
.home-guide__content { max-width: 50rem; }
.home-guide__content h2 { margin-top: 2rem; margin-bottom: .7rem; font-size: 1.35rem; line-height: 1.3; scroll-margin-top: 6rem; }
.home-guide__content h3 { margin-top: 1.35rem; margin-bottom: .45rem; font-size: 1.03rem; line-height: 1.35; }
.home-guide__content p,
.home-guide__content li { color: #c8c2cf; line-height: 1.82; font-size: .96rem; }
.home-guide__content p { margin-bottom: 1rem; }
.home-guide__content ol,
.home-guide__content ul { margin: .4rem 0 1.2rem 1.35rem; }
.home-guide__content ol { list-style: decimal; }
.home-guide__content ul { list-style: disc; }
.home-guide__content li { margin-bottom: .45rem; }
.home-guide__content a { color: #f07fb0; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 700px) {
  .article-card { border-left: 0; border-right: 0; border-radius: 0; }
  .article-page { padding-left: 0; padding-right: 0; }
  .article-header,
  .article-layout { padding-left: 1rem; padding-right: 1rem; }
  .author-box { grid-template-columns: 48px 1fr; }
  .author-box__avatar { width: 48px; height: 48px; }
}

/* ============================================================
   v1.4 HOMEPAGE PARTNER LIVE RAILS
   ============================================================ */
.live-provider-section { min-width: 0; }
.live-provider-section .section-header { align-items: end; }
.live-provider-section .section-header h2 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); }
.live-provider-section .section-header p { margin-top: .3rem; color: var(--muted-foreground); font-size: .86rem; }
.live-rail--provider {
  display: flex;
  gap: .9rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  padding: .2rem .05rem .55rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.live-rail--provider::-webkit-scrollbar { display: none; }
.live-rail--provider > [role="listitem"] { flex: 0 0 auto; scroll-snap-align: start; }
.live-card--provider {
  width: clamp(13.25rem, 20vw, 14.75rem);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.2);
  background: #18151d;
  box-shadow: 0 9px 24px rgba(0,0,0,.12);
}
.live-card--provider .live-card__thumb {
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 0;
  background: #100d13;
}
.live-card--provider .live-card__thumb > a,
.live-card--provider .live-card__placeholder-link,
.live-card--provider .live-card__image,
.live-card--provider .placeholder-thumb {
  display: block;
  width: 100%;
  height: 100%;
}
.live-card--provider .live-card__image { object-fit: cover; }
.live-card--provider .live-card__badge {
  top: .55rem;
  left: .55rem;
  z-index: 4;
  padding: .2rem .5rem;
  background: #ff2358;
  box-shadow: 0 2px 8px rgba(0,0,0,.26);
}
.live-card--provider .live-card__viewers {
  top: .55rem;
  right: auto;
  bottom: auto;
  left: 4.45rem;
  z-index: 4;
  padding: .18rem .42rem;
  border-radius: 999px;
  background: rgba(9,8,11,.88);
  color: #fff;
  line-height: 1.2;
}
.live-card__body {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 3.75rem;
  padding: .72rem .78rem;
}
.live-card__avatar {
  flex: 0 0 2.25rem;
  width: 2.25rem;
  height: 2.25rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--muted);
  border: 1px solid rgba(255,255,255,.08);
}
.live-card__avatar img,
.live-card__avatar .placeholder-thumb { width: 100%; height: 100%; object-fit: cover; }
.live-card__details { min-width: 0; }
.live-card--provider .live-card__name {
  display: block;
  max-width: 100%;
  color: var(--foreground);
  font-size: .79rem;
  font-weight: 700;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-card--provider .live-card__meta {
  margin: .12rem 0 0;
  color: var(--muted-foreground);
  font-size: .7rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-card__inline-player,
.live-card__inline-player > .nexa-video-embed {
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
}
.live-card__inline-player > .nexa-video-embed { aspect-ratio: auto; }
.live-card__inline-player iframe,
.live-card__inline-player video,
.live-card__inline-player embed,
.live-card__inline-player object { width: 100% !important; height: 100% !important; }
.nexa-partner-widget {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin: 0 0 1rem;
  border-radius: calc(var(--radius) * 1.1);
}
.nexa-partner-widget iframe,
.nexa-partner-widget video,
.nexa-partner-widget embed,
.nexa-partner-widget object { max-width: 100%; }
.nexa-live-admin-hint {
  padding: .85rem 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted-foreground);
  background: rgba(255,255,255,.025);
  font-size: .82rem;
}
.category-chip.is-active { border-color: var(--primary); color: var(--foreground); background: rgba(219,92,138,.13); }

@media (max-width: 640px) {
  .live-card--provider { width: 12.7rem; }
  .live-provider-section .section-header { align-items: flex-start; }
}


/* ============================================================
   v1.5 EMBED-FIRST LIVE GRIDS + FIVE-COLUMN TRENDING
   ============================================================ */
/* Keep five live cards visible across a desktop content area even when the
   global sidebar is enabled. Smaller breakpoints remain readable. */
.live-rail--provider {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  overflow: visible;
  padding: .2rem 0 .45rem;
}
.live-rail--provider > [role="listitem"] { min-width: 0; width: 100%; }
.live-card--provider { width: 100%; min-width: 0; }

@media (min-width: 700px) {
  .live-rail--provider { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .live-rail--provider { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Inline live players load immediately; there is no thumbnail-preview click. */
.live-card__inline-player,
.content-card__inline-player,
.live-card__inline-player .nexa-video-embed,
.content-card__inline-player .nexa-video-embed {
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
}
.live-card__inline-player iframe,
.live-card__inline-player video,
.live-card__inline-player object,
.live-card__inline-player embed,
.content-card__inline-player iframe,
.content-card__inline-player video,
.content-card__inline-player object,
.content-card__inline-player embed {
  display: block;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}
.content-card__thumb--live-player { aspect-ratio: 16 / 9; background: #100d13; }
.content-card__thumb--live-player .content-card__inline-player,
.content-card__thumb--live-player .nexa-video-embed { aspect-ratio: auto; height: 100%; }

/* Trending is explicitly a five-card row on normal desktop widths, including
   when the 320px global sidebar is present. */
.content-grid--trending-five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) {
  .content-grid--trending-five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .content-grid--trending-five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* A partner-supplied widget is a live source, not a preview panel. Make the
   supplied iframe/player occupy the available homepage width immediately. */
.nexa-partner-widget { min-height: 0; background: transparent; }
.nexa-partner-widget > iframe:only-child,
.nexa-partner-widget > video:only-child,
.nexa-partner-widget > object:only-child,
.nexa-partner-widget > embed:only-child {
  display: block;
  width: 100% !important;
  min-height: 320px;
  border: 0;
}

@media (max-width: 520px) {
  .live-rail--provider,
  .content-grid--trending-five { grid-template-columns: 1fr 1fr; gap: .65rem; }
  .live-card--provider .live-card__body { padding: .58rem; gap: .5rem; }
  .live-card__avatar { width: 1.9rem; height: 1.9rem; flex-basis: 1.9rem; }
}

/* ============================================================
   v1.6 FULL-WIDTH PARTNER FEEDS + LIVE TRENDING MIRROR
   ============================================================ */
/* A partner catalogue is already a grid. Never crop it like a thumbnail. */
.nexa-partner-widget,
.nexa-live-feed-source,
.nexa-live-feed-mirror {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.nexa-partner-widget,
.nexa-live-feed-source {
  position: relative;
  margin: .35rem 0 .75rem;
  overflow-x: auto;
  overflow-y: visible;
  border-radius: calc(var(--radius) * .85);
  background: #100d13;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

/* Full feeds must not inherit the aspect-ratio rules used by one video. */
.nexa-live-feed-source > .nexa-video-embed,
.nexa-partner-widget > .nexa-video-embed,
.nexa-live-feed-clone > .nexa-video-embed {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  margin: 0;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.nexa-live-feed-source iframe,
.nexa-partner-widget iframe,
.nexa-live-feed-clone iframe {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 280px;
  border: 0;
}

.nexa-live-feed-source video,
.nexa-partner-widget video,
.nexa-live-feed-clone video,
.nexa-live-feed-source object,
.nexa-partner-widget object,
.nexa-live-feed-clone object,
.nexa-live-feed-source embed,
.nexa-partner-widget embed,
.nexa-live-feed-clone embed {
  display: block;
  max-width: 100%;
}

/* Do not let a vendor's fixed-width five-model grid get clipped. If it is
   wider than the current content column it can scroll horizontally instead. */
.nexa-live-feed-source > *,
.nexa-partner-widget > * {
  max-width: none;
}

/* Trending mirrors the already-rendered live partner feed. Native cards stay
   visible until the live widget has actually produced content, then disappear. */
.nexa-live-feed-mirror {
  display: none;
  margin: .2rem 0 .75rem;
}
.nexa-live-feed-mirror.is-ready { display: block; }
.nexa-live-feed-mirror .nexa-live-feed-clone {
  width: 100%;
  max-width: 100%;
  margin: 0;
}
.nexa-trending-native-fallback.is-feed-mirrored { display: none; }

/* Keep native single-performer entries at five columns. */
@media (min-width: 1000px) {
  .live-provider-section .live-rail--provider,
  .nexa-trending-live-section .content-grid--trending-five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 699px) {
  .nexa-live-feed-source iframe,
  .nexa-partner-widget iframe,
  .nexa-live-feed-clone iframe {
    min-height: 240px;
  }
}

/* ============================================================
   v1.7 AUTOMATIC MEDIA / EMBED SIZING
   ============================================================
   JavaScript reads natural image/video dimensions and width/height supplied
   by iframe/object/embed code, then writes --nexa-media-ratio. This prevents
   portrait, square and extra-wide media from being cropped into a fixed 16:9
   or 4:3 box. Cross-origin iframes cannot expose their internal document size,
   so their own width/height attributes are used when available. */
.content-grid,
.creator-grid,
.live-rail--provider,
.related-guides__grid,
.guide-grid {
  align-items: start;
}

/* A wrapper receives this class only after a trustworthy ratio or explicit
   height has been detected, so old/fallback media keeps a safe default size. */
.nexa-adaptive-media {
  width: 100%;
  min-width: 0;
  height: auto !important;
  aspect-ratio: var(--nexa-media-ratio) !important;
}
.nexa-adaptive-media > a,
.nexa-adaptive-media > .live-card__inline-player,
.nexa-adaptive-media > .content-card__inline-player {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto !important;
}
.nexa-adaptive-media img,
.nexa-adaptive-media iframe,
.nexa-adaptive-media video,
.nexa-adaptive-media object,
.nexa-adaptive-media embed {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
}
.nexa-adaptive-media img,
.nexa-adaptive-media video {
  object-fit: cover;
}

/* If an embed specifies only an explicit height, honour that instead of
   inventing a ratio. This is common in affiliate widgets with width:100%. */
.nexa-adaptive-media.nexa-adaptive-height {
  aspect-ratio: auto !important;
  height: var(--nexa-media-height) !important;
  min-height: 0;
}

/* Inside adaptive card media, the nested generic embed wrapper should simply
   fill the parent; the parent owns the detected aspect ratio. */
.live-card__thumb.nexa-adaptive-media .nexa-video-embed,
.content-card__thumb.nexa-adaptive-media .nexa-video-embed {
  width: 100%;
  height: 100% !important;
  aspect-ratio: auto !important;
  margin: 0;
  border: 0;
  border-radius: 0;
}

/* Preserve each featured/guide/creator thumbnail's source aspect ratio. The
   PHP templates now request uncropped WordPress image sizes so portrait or
   square source images are not converted to a hard 16:9 crop first. */
.creator-card__thumb.nexa-adaptive-media,
.related-guide-card__thumb.nexa-adaptive-media,
.guide-card__thumb.nexa-adaptive-media,
.video-placeholder.nexa-adaptive-media,
.article-featured-image.nexa-adaptive-media {
  overflow: hidden;
}
.creator-card__image,
.nexa-natural-featured-image {
  display: block;
  width: 100%;
  height: auto;
}
.video-placeholder.nexa-adaptive-media .nexa-natural-featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Full partner-feed iframes are scaled from the dimensions supplied by the
   partner code instead of receiving the old 240/280/320px minimum height. */
.nexa-live-feed-source iframe.nexa-embed-dimensioned,
.nexa-partner-widget iframe.nexa-embed-dimensioned,
.nexa-live-feed-clone iframe.nexa-embed-dimensioned,
.nexa-live-feed-mirror iframe.nexa-embed-dimensioned {
  display: block;
  width: 100% !important;
  height: var(--nexa-embed-height) !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: var(--nexa-embed-ratio) !important;
}
.nexa-live-feed-source iframe.nexa-embed-fixed-height,
.nexa-partner-widget iframe.nexa-embed-fixed-height,
.nexa-live-feed-clone iframe.nexa-embed-fixed-height,
.nexa-live-feed-mirror iframe.nexa-embed-fixed-height {
  height: var(--nexa-embed-height) !important;
  min-height: 0 !important;
}

/* Native HTML5 video should always preserve its own stream dimensions. */
.nexa-live-feed-source video,
.nexa-partner-widget video,
.nexa-live-feed-clone video,
.nexa-live-feed-mirror video {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain;
}

/* ============================================================
   v1.8 LIVE HUB + DISCOVERY EXPERIENCE
   ============================================================ */
.nexa-live-page { position: relative; }
.nexa-live-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  overflow: hidden;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  border: 1px solid rgba(219,92,138,.22);
  border-radius: calc(var(--radius) * 1.4);
  background:
    radial-gradient(circle at 85% 0%, rgba(219,92,138,.18), transparent 36%),
    radial-gradient(circle at 0% 100%, rgba(98,76,188,.13), transparent 40%),
    linear-gradient(145deg, rgba(49,44,59,.94), rgba(25,22,30,.96));
  box-shadow: 0 22px 60px rgba(0,0,0,.18);
}
.nexa-live-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 52%, rgba(255,255,255,.025) 52% 53%, transparent 53% 100%);
}
.nexa-live-hero__copy,
.nexa-live-hero__actions { position: relative; z-index: 1; }
.nexa-live-hero__copy { max-width: 760px; }
.nexa-live-hero__copy h1 { margin: .45rem 0 .45rem; font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.02; letter-spacing: -.035em; }
.nexa-live-hero__copy p { max-width: 700px; color: var(--muted-foreground); font-size: .95rem; }
.nexa-live-hero__eyebrow,
.nexa-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #f3a2c2;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.nexa-live-hero__actions { display: flex; flex-direction: column; align-items: flex-end; gap: .7rem; }
.nexa-live-status-pill,
.nexa-live-refresh {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.45rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(15,13,18,.56);
  color: var(--foreground);
  padding: .58rem .85rem;
  font: inherit;
  font-size: .78rem;
}
.nexa-live-refresh { cursor: pointer; transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.nexa-live-refresh:hover { border-color: rgba(219,92,138,.55); background: rgba(219,92,138,.08); transform: translateY(-1px); }
.nexa-live-refresh.is-refreshing svg { animation: nexaSpin .75s linear infinite; }
@keyframes nexaSpin { to { transform: rotate(360deg); } }

.nexa-live-hub {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.15);
  background: rgba(31,27,34,.72);
}
.nexa-live-hub__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: .85rem; }
.nexa-live-hub__top h2 { font-size: 1rem; }
.nexa-live-hub__top p { margin-top: .2rem; color: var(--muted-foreground); font-size: .76rem; }
.nexa-live-hub__all { flex: 0 0 auto; padding: .42rem .68rem; border: 1px solid var(--border); border-radius: 999px; color: var(--muted-foreground); font-size: .74rem; }
.nexa-live-hub__all:hover,
.nexa-live-hub__all.is-selected { color: #fff; border-color: rgba(219,92,138,.58); background: rgba(219,92,138,.12); }
.nexa-live-network-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .75rem; }
.nexa-live-network-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .7rem;
  min-width: 0;
  padding: .85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(49,44,59,.66), rgba(34,30,40,.72));
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.nexa-live-network-card:hover { transform: translateY(-2px); border-color: rgba(219,92,138,.45); box-shadow: 0 12px 28px rgba(0,0,0,.16); }
.nexa-live-network-card.is-selected { border-color: rgba(219,92,138,.75); box-shadow: inset 0 0 0 1px rgba(219,92,138,.18); }
.nexa-live-network-card.is-offline { opacity: .58; }
.nexa-live-network-card__icon { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: .72rem; background: rgba(219,92,138,.12); }
.nexa-live-network-card__copy { min-width: 0; }
.nexa-live-network-card__copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; }
.nexa-live-network-card__copy small { display: block; margin-top: .12rem; color: var(--muted-foreground); font-size: .68rem; }
.nexa-live-network-card__arrow { color: var(--primary); font-size: 1rem; }
.nexa-live-provider-detail { min-width: 0; }
.nexa-live-feed-source--detail { border: 1px solid rgba(255,255,255,.07); box-shadow: 0 18px 45px rgba(0,0,0,.15); }
.nexa-live-empty-state {
  margin: 2rem 0;
  padding: 2rem;
  text-align: center;
  border: 1px dashed rgba(255,255,255,.14);
  border-radius: calc(var(--radius) * 1.1);
  background: rgba(255,255,255,.022);
}
.nexa-live-empty-state h2 { font-size: 1.15rem; }
.nexa-live-empty-state p { max-width: 680px; margin: .55rem auto 1rem; color: var(--muted-foreground); font-size: .86rem; }
.content-grid--live-page { align-items: start; }

/* Homepage quick-discovery strip. */
.nexa-discovery-strip {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.2);
  background: linear-gradient(145deg, rgba(39,35,48,.82), rgba(26,23,31,.82));
}
.nexa-discovery-strip__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.nexa-discovery-strip__heading h2 { margin-top: .2rem; font-size: 1.15rem; }
.nexa-discovery-strip__heading > p { max-width: 520px; color: var(--muted-foreground); font-size: .78rem; text-align: right; }
.nexa-discovery-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: .65rem; }
.nexa-discovery-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .6rem;
  min-width: 0;
  padding: .78rem;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: .85rem;
  background: rgba(255,255,255,.025);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.nexa-discovery-card:hover { transform: translateY(-2px); border-color: rgba(219,92,138,.38); background: rgba(219,92,138,.055); }
.nexa-discovery-card--live { background: linear-gradient(145deg, rgba(219,92,138,.10), rgba(255,255,255,.018)); }
.nexa-discovery-card__icon { display: grid; place-items: center; width: 1.85rem; height: 1.85rem; border-radius: .62rem; background: rgba(219,92,138,.12); color: #f2a5c1; font-size: .72rem; font-weight: 800; }
.nexa-discovery-card strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .76rem; }
.nexa-discovery-card small { display: block; margin-top: .08rem; color: var(--muted-foreground); font-size: .62rem; }
.nexa-discovery-card__arrow { color: var(--primary); }

/* Make live sections feel intentional instead of loose blocks. */
.live-provider-section { padding-top: .15rem; }
.live-provider-section > .section-header { padding-bottom: .45rem; border-bottom: 1px solid rgba(255,255,255,.055); }
.live-provider-section > .section-header h2 { letter-spacing: -.015em; }
.live-provider-section .nexa-partner-widget { box-shadow: 0 16px 42px rgba(0,0,0,.15); }

/* Article progress + copy action. */
.nexa-reading-progress {
  position: fixed;
  z-index: 1100;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  pointer-events: none;
  background: transparent;
}
.admin-bar .nexa-reading-progress { top: 32px; }
.nexa-reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--primary), #ff9cc3);
  box-shadow: 0 0 16px rgba(219,92,138,.5);
}
.article-copy-link {
  appearance: none;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.article-copy-link:hover,
.article-copy-link.is-copied { color: var(--primary); }

/* Persistent back-to-top affordance. */
.nexa-back-to-top {
  position: fixed;
  z-index: 900;
  right: 1.1rem;
  bottom: 1.1rem;
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(35,31,43,.88);
  color: #fff;
  box-shadow: 0 12px 34px rgba(0,0,0,.28);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, border-color .2s ease;
}
.nexa-back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nexa-back-to-top:hover { border-color: rgba(219,92,138,.7); color: var(--primary); }

/* Slightly richer sidebar treatment without overriding widget/plugin content. */
.site-sidebar__inner { gap: 1.15rem; }
.nexa-widget { box-shadow: 0 14px 36px rgba(0,0,0,.10); }
.nexa-widget:hover { border-color: rgba(255,255,255,.13); }

@media (max-width: 1100px) {
  .nexa-discovery-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .nexa-live-hero { align-items: flex-start; flex-direction: column; }
  .nexa-live-hero__actions { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .nexa-live-network-grid { grid-template-columns: 1fr; }
  .nexa-live-hub__top,
  .nexa-discovery-strip__heading { align-items: flex-start; flex-direction: column; }
  .nexa-discovery-strip__heading > p { text-align: left; }
  .nexa-discovery-grid { grid-template-columns: 1fr 1fr; }
  .admin-bar .nexa-reading-progress { top: 46px; }
}
@media (max-width: 480px) {
  .nexa-discovery-grid { grid-template-columns: 1fr; }
  .nexa-live-hero__actions { width: 100%; }
  .nexa-live-status-pill,
  .nexa-live-refresh { justify-content: center; flex: 1 1 auto; }
}

/* ============================================================
   v2.0 VIDEO DISCOVERY + LIVE FEED EXPERIENCE
   ============================================================ */
.nexa-videos-page { position: relative; }
.nexa-videos-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1.45fr) minmax(260px,.55fr);
  gap: 1.25rem;
  align-items: center;
  overflow: hidden;
  margin-bottom: 1.25rem;
  padding: clamp(1.35rem,3vw,2.2rem);
  border: 1px solid rgba(219,92,138,.24);
  border-radius: calc(var(--radius) * 1.45);
  background:
    radial-gradient(circle at 92% 12%, rgba(219,92,138,.22), transparent 32%),
    radial-gradient(circle at 6% 95%, rgba(105,76,210,.14), transparent 36%),
    linear-gradient(145deg, rgba(49,44,59,.96), rgba(24,21,29,.98));
  box-shadow: 0 24px 65px rgba(0,0,0,.2);
}
.nexa-videos-hero::before {
  content:"";
  position:absolute;
  width:260px;
  height:260px;
  right:-110px;
  top:-120px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.055);
  box-shadow: 0 0 0 28px rgba(255,255,255,.018), 0 0 0 62px rgba(255,255,255,.012);
  pointer-events:none;
}
.nexa-videos-hero__copy { position:relative; z-index:1; max-width:780px; }
.nexa-videos-hero h1 { margin:.42rem 0 .52rem; font-size:clamp(2.05rem,4vw,3.3rem); line-height:1; letter-spacing:-.045em; }
.nexa-videos-hero p { max-width:760px; color:var(--muted-foreground); font-size:.94rem; line-height:1.7; }
.nexa-videos-hero__actions { display:flex; flex-wrap:wrap; gap:.65rem; margin-top:1rem; }
.nexa-videos-pulse {
  position:relative;
  z-index:1;
  display:grid;
  gap:.55rem;
  padding:.75rem;
  border:1px solid rgba(255,255,255,.075);
  border-radius:calc(var(--radius) * 1.1);
  background:rgba(13,11,16,.36);
  backdrop-filter:blur(10px);
}
.nexa-videos-pulse > div { display:flex; align-items:center; justify-content:space-between; gap:.8rem; min-height:3rem; padding:.65rem .72rem; border-radius:.72rem; background:rgba(255,255,255,.035); }
.nexa-videos-pulse strong { font-size:1.15rem; color:#fff; }
.nexa-videos-pulse span { color:var(--muted-foreground); font-size:.72rem; text-align:right; }

.nexa-videos-live-stage,
.nexa-videos-browse {
  margin-top:1rem;
  padding:1rem;
  border:1px solid var(--border);
  border-radius:calc(var(--radius) * 1.25);
  background:linear-gradient(145deg, rgba(39,35,48,.72), rgba(27,24,32,.82));
}
.nexa-videos-live-stage { box-shadow:0 18px 50px rgba(0,0,0,.14); }
.nexa-videos-section-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:1rem; margin-bottom:.95rem; }
.nexa-videos-section-heading h2 { margin:.2rem 0 .2rem; font-size:clamp(1.25rem,2vw,1.65rem); letter-spacing:-.025em; }
.nexa-videos-section-heading p { color:var(--muted-foreground); font-size:.78rem; }
.nexa-videos-live-stage__tools { display:flex; align-items:center; gap:.55rem; flex-wrap:wrap; justify-content:flex-end; }
.nexa-videos-live-all { display:inline-flex; align-items:center; min-height:2.45rem; padding:.56rem .78rem; border:1px solid var(--border); border-radius:999px; color:#f2a5c1; font-size:.75rem; font-weight:700; }
.nexa-videos-live-all:hover { border-color:rgba(219,92,138,.5); background:rgba(219,92,138,.08); }

.nexa-video-network-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.65rem; margin-bottom:.8rem; }
.nexa-video-network-tab {
  display:grid;
  grid-template-columns:auto 1fr;
  align-items:center;
  gap:.6rem;
  min-width:0;
  padding:.72rem .78rem;
  border:1px solid rgba(255,255,255,.075);
  border-radius:.85rem;
  background:rgba(255,255,255,.025);
  transition:transform .2s ease,border-color .2s ease,background .2s ease,box-shadow .2s ease;
}
.nexa-video-network-tab:hover { transform:translateY(-2px); border-color:rgba(219,92,138,.4); background:rgba(219,92,138,.055); }
.nexa-video-network-tab.is-active { border-color:rgba(219,92,138,.72); background:linear-gradient(145deg,rgba(219,92,138,.13),rgba(255,255,255,.025)); box-shadow:inset 0 0 0 1px rgba(219,92,138,.09); }
.nexa-video-network-tab > span:last-child { min-width:0; }
.nexa-video-network-tab strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.8rem; }
.nexa-video-network-tab small { display:block; margin-top:.12rem; color:var(--muted-foreground); font-size:.64rem; }

.nexa-videos-live-panel { overflow:hidden; border:1px solid rgba(255,255,255,.075); border-radius:calc(var(--radius) * 1.05); background:#100d13; }
.nexa-videos-live-panel__bar { display:flex; align-items:center; justify-content:space-between; gap:.7rem; min-height:3.15rem; padding:.65rem .78rem; border-bottom:1px solid rgba(255,255,255,.07); background:linear-gradient(90deg,rgba(219,92,138,.10),rgba(255,255,255,.018)); }
.nexa-videos-live-panel__bar > div { display:flex; align-items:center; gap:.55rem; }
.nexa-videos-live-panel__bar strong { font-size:.82rem; }
.nexa-videos-live-panel__bar > a { color:#f2a5c1; font-size:.72rem; font-weight:700; }
.nexa-videos-partner-feed { margin:0; border-radius:0; background:#0e0b10; }
.nexa-videos-native-live-grid { padding:.75rem; }

.nexa-videos-section-heading--browse { align-items:center; margin-bottom:.8rem; }
.nexa-video-type-chips { display:flex; flex-wrap:wrap; gap:.45rem; justify-content:flex-end; }
.nexa-video-type-chip { display:inline-flex; align-items:center; min-height:2.15rem; padding:.4rem .68rem; border:1px solid var(--border); border-radius:999px; color:var(--muted-foreground); background:rgba(255,255,255,.02); font-size:.7rem; font-weight:700; }
.nexa-video-type-chip:hover,.nexa-video-type-chip.is-active { color:#fff; border-color:rgba(219,92,138,.55); background:rgba(219,92,138,.11); }
.nexa-video-filter-bar { margin:.25rem 0 .7rem; padding:.7rem; border:1px solid rgba(255,255,255,.065); border-radius:.85rem; background:rgba(9,8,11,.24); }
.nexa-video-category-row { display:flex; align-items:center; gap:.45rem; overflow-x:auto; margin-bottom:1rem; padding:.1rem 0 .35rem; scrollbar-width:thin; }
.nexa-video-category-row > span { flex:0 0 auto; color:var(--muted-foreground); font-size:.68rem; font-weight:700; }
.nexa-video-category-row a { flex:0 0 auto; display:inline-flex; align-items:center; gap:.38rem; min-height:2rem; padding:.36rem .58rem; border:1px solid rgba(255,255,255,.065); border-radius:999px; background:rgba(255,255,255,.025); font-size:.68rem; }
.nexa-video-category-row a:hover { border-color:rgba(219,92,138,.42); background:rgba(219,92,138,.07); }
.nexa-video-category-row small { display:inline-grid; place-items:center; min-width:1.25rem; height:1.25rem; padding:0 .25rem; border-radius:999px; background:rgba(255,255,255,.07); color:var(--muted-foreground); font-size:.58rem; }

.nexa-videos-content-grid .content-card { padding:.45rem; border:1px solid transparent; border-radius:calc(var(--radius) * 1.05); transition:transform .22s ease,border-color .22s ease,background .22s ease,box-shadow .22s ease; }
.nexa-videos-content-grid .content-card:hover { transform:translateY(-4px); border-color:rgba(219,92,138,.22); background:rgba(255,255,255,.018); box-shadow:0 16px 35px rgba(0,0,0,.16); }
.nexa-videos-content-grid .content-card__thumb { box-shadow:0 10px 25px rgba(0,0,0,.16); }
.nexa-videos-content-grid .content-card__title { font-weight:700; }
.nexa-videos-content-grid .badge-live { box-shadow:0 0 0 3px rgba(232,88,88,.12); }
.nexa-video-empty-state { display:grid; justify-items:center; gap:.6rem; padding:2.5rem 1rem; text-align:center; border:1px dashed rgba(255,255,255,.13); border-radius:var(--radius); background:rgba(255,255,255,.018); }
.nexa-video-empty-state__icon { display:grid; place-items:center; width:3rem; height:3rem; border-radius:50%; background:rgba(219,92,138,.12); color:#f2a5c1; }
.nexa-video-empty-state h3 { font-size:1rem; }
.nexa-video-empty-state p { max-width:560px; color:var(--muted-foreground); font-size:.8rem; }

@media (max-width:900px) {
  .nexa-videos-hero { grid-template-columns:1fr; }
  .nexa-videos-pulse { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .nexa-videos-pulse > div { flex-direction:column; align-items:flex-start; justify-content:center; }
  .nexa-videos-pulse span { text-align:left; }
}
@media (max-width:680px) {
  .nexa-videos-hero { padding:1.15rem; }
  .nexa-videos-pulse { grid-template-columns:1fr; }
  .nexa-videos-pulse > div { flex-direction:row; align-items:center; }
  .nexa-videos-pulse span { text-align:right; }
  .nexa-videos-section-heading { align-items:flex-start; flex-direction:column; }
  .nexa-videos-live-stage__tools,.nexa-video-type-chips { justify-content:flex-start; }
  .nexa-video-network-tabs { grid-template-columns:1fr; }
  .nexa-video-network-tab { grid-template-columns:auto 1fr; }
}

/* ============================================================
   v2.3 PARTNER MEDIA REPAIR
   ============================================================ */
/* Thumbnail click is the local permalink; there is intentionally no Play overlay. */
.nexa-card-preview {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0b0910;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
}
.content-card__media-link.is-preview-playing .nexa-card-preview {
  opacity: 1;
  visibility: visible;
}
.content-card__media-link.is-preview-playing > img,
.content-card__media-link.is-preview-playing > .placeholder-thumb:not(video) {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .nexa-card-preview { display: none; }
}

.video-placeholder--fallback {
  position: relative;
}
.video-placeholder--fallback .nexa-natural-featured-image,
.video-placeholder--fallback .placeholder-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-placeholder__action {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(10,8,13,.04), rgba(10,8,13,.68));
}
.video-placeholder__action .btn {
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.nexa-preview-note {
  margin: -0.7rem 0 1.25rem;
  color: var(--muted-foreground);
  font-size: .78rem;
  line-height: 1.55;
}

/* If the importer has a genuine player, let it occupy the video area instead
   of inheriting a blank gradient placeholder. */
.video-page > .nexa-video-embed {
  min-height: 0;
  background: #08070a;
}


/* ============================================================
   v2.6.4 CARD ACTIONS
   ============================================================ */
/* The affiliate/source action lives below the media and never covers the thumbnail. */
.content-card__actions { margin-top:.35rem; }
.content-card__source {
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  min-height:1.9rem;
  padding:.28rem .52rem;
  border:1px solid rgba(255,255,255,.1);
  border-radius:.5rem;
  background:rgba(255,255,255,.025);
  color:var(--muted-foreground);
  font-size:.66rem;
  font-weight:650;
  line-height:1.15;
  text-decoration:none;
}
.content-card__source:hover { color:#fff; border-color:rgba(219,92,138,.45); background:rgba(219,92,138,.08); }
.content-card__source svg { flex:0 0 auto; }
.content-card__thumb .content-card__source { display:none !important; }
.nexa-video-player-anchor { scroll-margin-top:6rem; }


/* v2.9.4 — sidebar iframe/ad compatibility. Keep common 300px creatives
   usable inside the 320px desktop rail without clipping their viewport. */
.site-sidebar .widget_custom_html,
.site-sidebar .widget_text,
.site-sidebar .nexa-sidebar-embed-widget {
  padding: .5rem;
}
.site-sidebar .custom-html-widget,
.site-sidebar .textwidget,
.nexa-sidebar-embed {
  max-width: 100%;
  overflow-x: auto;
  text-align: center;
}
.site-sidebar .custom-html-widget iframe,
.site-sidebar .textwidget iframe,
.nexa-sidebar-embed iframe {
  display: block;
  margin: 0 auto;
  border: 0;
  max-width: 100%;
}


/* v2.9.5 — dynamic sidebar ad-frame loading. */
.nexa-sidebar-embed iframe[data-nexa-ad-frame="adtng"],
.site-sidebar iframe[data-nexa-ad-frame="adtng"] {
  background: transparent !important;
  min-height: 100px;
}
