/* NexusXXX Premium v2 — Feed + Desktop grid + ads + play pulse */
:root {
  --bg: #000;
  --bg-card: #1b1b1b;
  --bg-elevated: #212121;
  --bg-hover: #2a2a2a;
  --text: #fff;
  --text-muted: #aaa;
  --text-dim: #777;
  --accent: #ffa31a;
  --accent-hover: #ffb84d;
  --border: #2a2a2a;
  --radius: 8px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --header-h: 52px;
  --max-w-mobile: 720px;
  --max-w-desk: 1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.4;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }

/* Age gate */
.age-gate {
  position: fixed; inset: 0; background: rgba(0,0,0,.96); z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.age-gate.hidden { display: none; }
.age-gate-box {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 12px; padding: 32px 28px; max-width: 400px; text-align: center;
}
.age-gate-box h1, .age-gate-box h2 { font-size: 1.5rem; margin-bottom: 12px; color: var(--accent); }
.age-gate-box p { color: var(--text-muted); margin-bottom: 10px; font-size: .9rem; }
.age-gate-buttons { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 6px; font-weight: 700; font-size: .9rem; transition: .15s;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { border: 1px solid var(--border); color: var(--text-muted); }
.btn-secondary:hover { color: var(--text); border-color: #555; }

/* Header */
.site-header {
  background: #000; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 300;
}
.header-inner {
  max-width: var(--max-w-desk); margin: 0 auto;
  display: flex; align-items: center; height: var(--header-h);
  padding: 0 12px; gap: 10px;
}
.menu-btn, .header-icon {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; border-radius: 50%; flex-shrink: 0;
}
.menu-btn:hover, .header-icon:hover { background: var(--bg-hover); }
.logo { font-size: 1.35rem; font-weight: 800; letter-spacing: -.5px; flex-shrink: 0; }
.logo span { color: var(--accent); }
.header-spacer { flex: 1; }

/* Side menu */
.side-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 400;
  opacity: 0; visibility: hidden; transition: .2s;
}
.side-menu-overlay.open { opacity: 1; visibility: visible; }
.side-menu {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(300px, 85vw);
  background: #111; z-index: 401; transform: translateX(-100%);
  transition: transform .22s ease; display: flex; flex-direction: column; overflow: hidden;
}
.side-menu.open { transform: translateX(0); }
.side-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.side-menu-close {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; border-radius: 50%; color: var(--text-muted);
}
.side-menu-close:hover { background: var(--bg-hover); color: var(--text); }
.side-menu-search { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.side-menu-search input {
  width: 100%; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 10px 14px; color: var(--text); font-size: .9rem; outline: none;
}
.side-menu-search input:focus { border-color: var(--accent); }
.side-menu-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.side-menu-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; color: var(--text); font-size: .95rem; font-weight: 500;
}
.side-menu-nav a:hover, .side-menu-nav a.active { background: var(--bg-hover); color: var(--accent); }
.side-menu-nav .nav-section {
  padding: 14px 18px 6px; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px; color: var(--text-dim);
}
.side-menu-footer {
  border-top: 1px solid var(--border); padding: 12px 16px;
  font-size: .78rem; color: var(--text-dim);
}

/* Search bar */
.search-bar-wrap {
  max-width: var(--max-w-desk); margin: 0 auto; padding: 10px 12px 0; display: none;
}
.search-bar-wrap.open { display: block; }
.search-bar-wrap form {
  display: flex; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 24px; overflow: hidden;
}
.search-bar-wrap input {
  flex: 1; background: transparent; border: none; color: var(--text);
  padding: 11px 16px; font-size: .95rem; outline: none;
}
.search-bar-wrap button { padding: 0 16px; color: var(--text-muted); }

/* Trend chips */
.trend-row {
  max-width: var(--max-w-desk); margin: 0 auto; padding: 12px 12px 4px;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
}
.trend-row::-webkit-scrollbar { display: none; }
.trend-chip {
  flex-shrink: 0; background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); padding: 7px 14px; border-radius: 20px;
  font-size: .84rem; font-weight: 600; white-space: nowrap; transition: .15s;
}
.trend-chip:hover, .trend-chip.active {
  background: var(--accent); border-color: var(--accent); color: #000;
}

.feed-label {
  max-width: var(--max-w-desk); margin: 0 auto;
  padding: 14px 14px 8px; font-size: 1rem; font-weight: 700;
}
.feed-label span { color: var(--accent); }
.feed-region-note { margin-left: 8px; color: var(--text-muted); font-size: .72rem; font-weight: 500; }

/* ===== FEED / GRID ===== */
.feed {
  max-width: var(--max-w-mobile);
  margin: 0 auto;
  padding: 0 0 80px;
}

/* Mobile: vertical feed */
.feed-item {
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .12s;
}
.feed-item:hover { background: #0d0d0d; }

.feed-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #111;
  overflow: hidden;
}
.feed-thumb img {
  position: relative; z-index: 2;
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity .2s;
}
.thumb-shimmer {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(110deg, #111 8%, #1d1d1d 18%, #111 33%);
  background-size: 220% 100%;
  animation: thumbnail-shimmer 1.35s linear infinite;
}
[data-thumb-state="loaded"] .thumb-shimmer,
[data-thumb-state="error"] .thumb-shimmer { opacity: 0; visibility: hidden; }
.thumb-fallback {
  display: none; position: absolute; inset: 0; z-index: 3;
  align-items: center; justify-content: center; text-align: center;
  padding: 12px; color: var(--text-dim); background: #111; font-size: .75rem;
}
[data-thumb-state="error"] img { opacity: 0; }
[data-thumb-state="error"] .thumb-fallback { display: flex; }
.feed-thumb-provider-preview {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%; border: 0; background: #000;
  opacity: 1;
}
[data-thumb-state="provider-preview"] img,
[data-thumb-state="provider-preview"] .thumb-shimmer,
[data-thumb-state="provider-preview"] .thumb-fallback { opacity: 0; visibility: hidden; }
.feed-thumb.previewing img { opacity: 1; }
.feed-thumb.previewing .feed-preview { z-index: 3; opacity: 0; }
.feed-thumb.previewing.preview-ready img { opacity: 0; }
.feed-thumb.previewing.preview-ready .feed-preview { opacity: 1; }
.feed-thumb.previewing:not(.preview-ready)::after {
  content: "";
  position: absolute; top: 50%; left: 50%; z-index: 6;
  width: 28px; height: 28px; margin: -14px;
  border: 3px solid rgba(255,255,255,.35);
  border-top-color: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  animation: nx-spin .75s linear infinite;
}
@keyframes thumbnail-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .thumb-shimmer, .skeleton-block, .skeleton-line, .player-spinner, .load-more-wrap .btn-primary.is-loading::after, .feed-thumb.previewing:not(.preview-ready)::after { animation: none; }
  .feed-thumb.previewing:not(.preview-ready)::after { display: none; }
}

/* Preview iframe (scroll autoplay) */
.feed-preview {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s;
}
.feed-thumb.previewing.preview-ready .feed-preview { opacity: 1; }

/* Center play button + pulse */
.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  border: 2px solid rgba(255,255,255,.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
  pointer-events: none;
  transition: transform .15s, background .15s, opacity .2s;
}
.play-btn::after {
  content: "";
  width: 0; height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}
.feed-item:hover .play-btn {
  background: var(--accent);
  border-color: var(--accent);
  transform: translate(-50%, -50%) scale(1.08);
}
.feed-item:hover .play-btn::after {
  border-color: transparent transparent transparent #000;
}
.feed-thumb.previewing .play-btn { opacity: 0; }

/* Pulse ring */
.play-btn::before {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255,163,26,.7);
  animation: pulse-ring 1.6s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(.85); opacity: .9; }
  100% { transform: scale(1.35); opacity: 0; }
}

.feed-duration {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,.85); color: #fff;
  font-size: .75rem; font-weight: 700;
  padding: 2px 6px; border-radius: 3px; z-index: 4;
}
.feed-body { padding: 10px 14px 14px; }
.feed-title {
  font-size: .95rem; font-weight: 600; line-height: 1.35; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.feed-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--text-muted); flex-wrap: wrap;
}
.feed-meta .channel { font-weight: 600; }
.feed-meta .dot { color: #444; }

/* In-feed ad banner */
.feed-ad {
  border-bottom: 1px solid var(--border);
  padding: 12px 14px;
  background: #0a0a0a;
}
.feed-ad-label {
  font-size: .65rem; color: #555; text-transform: uppercase;
  letter-spacing: .8px; margin-bottom: 6px;
}
.ad-clickable { cursor: pointer; }
.ad-clickable:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.feed-ad-slot {
  min-height: 90px;
  background: var(--bg-card);
  border: 1px dashed #333;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-size: .85rem;
}

/* Desktop: multi-column grid like Pornhub */
@media (min-width: 768px) {
  :root { --header-h: 56px; }
  .feed {
    max-width: var(--max-w-desk);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 14px;
    padding: 8px 16px 80px;
  }
  .feed-item {
    border-bottom: none;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
  }
  .feed-item:hover { background: var(--bg-elevated); }
  .feed-body { padding: 8px 10px 12px; }
  .feed-title { font-size: .88rem; }
  .feed-ad {
    grid-column: 1 / -1;
    border-bottom: none;
    border-radius: var(--radius);
  }
  .play-btn { width: 48px; height: 48px; }
  .play-btn::after { border-width: 8px 0 8px 14px; }
}
@media (min-width: 1100px) {
  .feed { grid-template-columns: repeat(4, 1fr); }
}

.load-more-wrap { text-align: center; padding: 24px 16px calc(24px + var(--nx-sticky-clearance, 104px)); grid-column: 1 / -1; scroll-margin-bottom: var(--nx-sticky-clearance, 104px); position: relative; z-index: 1; }
.load-more-wrap[hidden] { display: none !important; }
.load-more-wrap .btn-primary { min-width: 180px; }
.load-more-wrap .btn-primary.is-loading { opacity: .7; pointer-events: none; }
.load-more-wrap .btn-primary.is-loading::after { content: ""; display: inline-block; width: 13px; height: 13px; margin-left: 9px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: nx-spin .7s linear infinite; }

.feed-skeleton {
  min-width: 0; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.skeleton-block, .skeleton-line {
  background: linear-gradient(110deg, #111 8%, #202020 18%, #111 33%);
  background-size: 220% 100%; animation: thumbnail-shimmer 1.35s linear infinite;
}
.skeleton-thumb { width: 100%; aspect-ratio: 16/9; border-radius: 6px; }
.skeleton-line { height: 12px; border-radius: 999px; margin-top: 11px; }
.skeleton-title { width: 82%; height: 15px; }
.skeleton-meta { width: 55%; height: 10px; margin-top: 9px; }
.feed-status-card {
  grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 48px 20px; margin: 8px 0 16px; text-align: center;
  color: var(--text-dim); background: #0d0d0d; border: 1px solid var(--border); border-radius: 10px;
}
.feed-status-card strong { color: var(--text); font-size: 1rem; }
.feed-status-card span { font-size: .85rem; }

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

/* Interstitial ad overlay */
.interstitial {
  position: fixed; inset: 0; z-index: 8000;
  background: rgba(0,0,0,.92);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.interstitial.open { display: flex; }
.interstitial-box {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px; max-width: 400px; width: 100%;
  text-align: center; position: relative;
}
.interstitial-box .ad-label {
  font-size: .7rem; color: #666; text-transform: uppercase; margin-bottom: 10px;
}
.interstitial-slot {
  min-height: 250px;
  background: var(--bg-card);
  border: 1px dashed #333;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); margin-bottom: 16px;
}
.interstitial-close {
  background: var(--accent); color: #000; font-weight: 700;
  padding: 10px 24px; border-radius: 6px; width: 100%;
}
.interstitial-skip {
  margin-top: 10px; font-size: .8rem; color: var(--text-dim);
}

/* Sticky bottom banner */
.sticky-ad {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: #0a0a0a; border-top: 1px solid var(--border);
  padding: 6px 12px; text-align: center;
}
.sticky-ad.ad-ready { display: block; }
.sticky-ad .ad-label { font-size: .6rem; color: #555; }
.sticky-ad-slot {
  min-height: 50px;
  background: var(--bg-card);
  border: 1px dashed #333;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-size: .8rem;
}
[data-ad="sticky-banner"] .ad-provider-host { min-height: 50px; }
.sticky-ad-close {
  position: absolute; top: 4px; right: 10px;
  color: #666; font-size: .9rem; padding: 4px;
}

/* Player */
.player-page { max-width: 1100px; margin: 0 auto; padding: 12px 12px calc(100px + var(--nx-sticky-clearance, 104px)); }
.player-wrap {
  background: #000; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16/9; position: relative;
}
.player-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: none;
}
.embed-frame-shell { position: absolute; inset: 0; background: #000; }
.player-loading, .player-error {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 20px; color: var(--text-dim);
  background: radial-gradient(circle at 50% 40%, #171717 0%, #050505 58%, #000 100%); font-size: .9rem;
}
.player-loading { flex-direction: column; gap: 12px; }
.player-loading span:last-child { color: #bdbdbd; }
.player-spinner {
  display: block; width: 28px; height: 28px; border: 3px solid rgba(255,163,26,.25);
  border-top-color: var(--accent); border-radius: 50%; animation: nx-spin .8s linear infinite;
}
.player-error { display: none; flex-direction: column; gap: 10px; }
.player-error strong { color: var(--text); font-size: .98rem; }
.player-error span { color: var(--text-dim); font-size: .8rem; }
.player-unavailable {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; padding: 24px; text-align: center;
  color: var(--text-dim); background: radial-gradient(circle at 50% 40%, #171717 0%, #050505 58%, #000 100%);
}
.player-unavailable strong { color: var(--text); font-size: 1rem; }
.player-status-icon {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  color: #000; background: var(--accent); font-weight: 800;
}
.player-unavailable .player-retry { margin-top: 5px; }

.embed-frame-shell[data-player-state="loaded"] .player-loading,
.embed-frame-shell[data-player-state="error"] .player-loading { display: none; }
.embed-frame-shell[data-player-state="error"] .player-error { display: flex; }
.embed-frame-shell[data-player-state="error"] iframe { opacity: 0; pointer-events: none; }
.player-retry {
  border: 1px solid var(--accent); border-radius: 6px; padding: 8px 14px;
  color: var(--accent); background: rgba(255,163,26,.1); cursor: pointer;
}
.player-info { padding: 14px 4px 0; }
.player-info h1 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.player-meta {
  display: flex; flex-wrap: wrap; gap: 10px; font-size: .85rem;
  color: var(--text-muted); margin-bottom: 12px; align-items: center;
}
.player-meta .cat-pill {
  background: rgba(255,163,26,.15); color: var(--accent);
  padding: 3px 10px; border-radius: 12px; font-weight: 700; font-size: .78rem;
}
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.btn-share {
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
  padding: 8px 12px; border-radius: 6px; font-size: .82rem; font-weight: 600;
}
.btn-share:hover { border-color: var(--accent); color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag {
  background: var(--bg-elevated); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 14px; font-size: .76rem; color: var(--text-muted);
}
.tag:hover { border-color: var(--accent); color: var(--accent); }
.video-details {
  margin: 12px 0 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.video-details summary {
  cursor: pointer;
  padding: 11px 4px;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 700;
  list-style-position: inside;
}
.video-details summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.video-details[open] summary { border-bottom: 1px solid var(--border); }
.video-details-body { padding: 12px 4px 14px; color: var(--text-muted); }
.video-details-body h2 { margin: 0 0 10px; color: var(--text); font-size: 1rem; line-height: 1.35; }
.video-details-body p { margin: 8px 0; line-height: 1.55; }
.video-details-body .seo-watch-copy { color: var(--text-muted); }
.video-details-body .seo-watch-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.related-section { margin-top: 28px; }
.related-section h3 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; padding: 0 4px; }
.related-list { display: flex; flex-direction: column; }
.related-item {
  display: flex; gap: 10px; padding: 10px 4px;
  border-bottom: 1px solid var(--border); cursor: pointer;
}
.related-item:hover { background: #0d0d0d; }
.related-thumb-wrap {
  position: relative; width: 140px; aspect-ratio: 16/9;
  flex-shrink: 0; overflow: hidden; border-radius: 4px; background: #111;
}
.related-thumb {
  position: relative; z-index: 2;
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 4px; background: #111;
}
.related-info { min-width: 0; padding-top: 2px; }
.related-info h4 {
  font-size: .85rem; font-weight: 600; line-height: 1.3; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.related-info span { font-size: .75rem; color: var(--text-dim); }

/* Categories page */
.page-wrap { max-width: 900px; margin: 0 auto; padding: 16px 12px 100px; }
.page-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 16px; padding: 0 4px; }
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px;
}
.cat-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 14px; text-align: center; font-weight: 700; font-size: .9rem; transition: .15s;
}
.cat-card:hover { border-color: var(--accent); color: var(--accent); background: var(--bg-hover); }

.site-footer {
  border-top: 1px solid var(--border); padding: 24px 16px 80px;
  text-align: center; max-width: 900px; margin: 0 auto;
}
.site-footer a { color: var(--text-dim); font-size: .8rem; margin: 0 8px; }
.site-footer a:hover { color: var(--accent); }
.site-footer p { color: #555; font-size: .72rem; margin-top: 12px; }

.hidden { display: none !important; }
/* Page ad slots (video player + general) */
.page-ad {
  margin: 12px 0;
  padding: 8px 0;
}
.page-ad-label {
  font-size: 0.62rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
  text-align: center;
}
.page-ad-slot {
  min-height: 70px;
  background: #1b1b1b;
  border: 1px dashed #333;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 0.85rem;
}
.page-ad[data-ad="player-mid"] .page-ad-slot { min-height: 120px; }
.page-ad[data-ad="player-related"] .page-ad-slot { min-height: 90px; }
@media (min-width: 768px) {
  .page-ad-slot { min-height: 90px; }
  .page-ad[data-ad="player-mid"] .page-ad-slot { min-height: 250px; max-width: 300px; margin: 0 auto; }
  [data-ad="recommendation"] .ad-provider-host,
  [data-ad="recommendation"] ins { min-height: 250px; max-width: 360px; }
}
@media (max-width: 767px) {
  .ad-provider-surface.ad-instant-message { right: 8px; bottom: 64px; width: min(340px, calc(100vw - 16px)); }
}


/* Related list in-feed ads (every 3 videos) */
.related-ad {
  padding: 12px 4px;
  border-bottom: 1px solid var(--border, #2a2a2a);
  background: #0a0a0a;
}
.related-ad-label {
  font-size: 0.62rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}
.related-ad-slot {
  min-height: 80px;
  background: #1b1b1b;
  border: 1px dashed #333;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #666; font-size: 0.85rem;
}

/* Ad lifecycle: do not reserve or paint fake widgets before a real ad is ready. */
[data-ad]:not([data-ad-state="provider"]):not([data-ad-state="link"]),
[data-ad][data-ad-state="pending"],
[data-ad][data-ad-state="deferred"],
[data-ad][data-ad-state="loading"],
[data-ad][data-ad-state="waiting"],
[data-ad][data-ad-state="error"] { display: none !important; }
[data-ad].ad-provider-slot { overflow: hidden; }
[data-ad].ad-provider-slot > .ad-provider-host,
[data-ad].ad-provider-slot .ad-provider-host {
  width: 100%; min-height: inherit; display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: transparent;
}
[data-ad][data-ad-state="loading"] .ad-provider-host::before,
[data-ad][data-ad-state="error"] .ad-provider-host::before { content: none; }
[data-ad] ins { max-width: 100%; }
[data-ad="recommendation"] .ad-provider-host { min-height: 180px; max-width: 100%; margin: 0 auto; }
[data-ad="recommendation"] ins { min-height: 180px; }
.ad-provider-surface.ad-instant-message {
  position: fixed; right: 12px; bottom: 72px; z-index: 320;
  width: min(360px, calc(100vw - 24px)); min-height: 1px;
  pointer-events: none; background: transparent; border: 0; padding: 0;
}
.ad-provider-surface.ad-instant-message .ad-label { display: none; }
.ad-provider-surface.ad-instant-message .ad-provider-host { pointer-events: auto; min-height: 1px; }
.ad-provider-surface.ad-instant-message[data-ad-state="loading"] .ad-provider-host::before,
.ad-provider-surface.ad-instant-message[data-ad-state="error"] .ad-provider-host::before { display: none; }
.page-ad[data-ad="player-mid"] .ad-provider-host { min-height: 120px; }
@media (min-width: 768px) {
  .page-ad[data-ad="player-mid"] .ad-provider-host { min-height: 250px; max-width: 300px; margin: 0 auto; }
}


/* SEO category landing pages */
.seo-category {
  min-height: 100vh;
  background: #0b0b0b;
  color: #f4f4f4;
}
.seo-category-header {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #252525;
}
.seo-category-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.seo-category-header nav a {
  color: #bdbdbd;
  text-decoration: none;
  font-size: 0.9rem;
}
.seo-category-header nav a:hover,
.seo-category-header nav a:focus-visible {
  color: #ffa31a;
}
.seo-category-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 72px;
}
.seo-eyebrow {
  color: #ffa31a;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  margin: 0 0 10px;
}
.seo-category-main h1 {
  max-width: 820px;
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.05;
}
.seo-category-intro {
  max-width: 760px;
  color: #b9b9b9;
  line-height: 1.7;
  margin: 0 0 24px;
}
.seo-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.seo-video-card {
  background: #151515;
  border: 1px solid #252525;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease;
}
.seo-video-card:hover {
  border-color: #ffa31a;
  transform: translateY(-2px);
}
.seo-video-card a {
  color: inherit;
  text-decoration: none;
}
.seo-video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  background: #222;
}
.seo-video-card h2 {
  font-size: 0.98rem;
  line-height: 1.35;
  margin: 12px 14px 6px;
}
.seo-video-card p {
  color: #888;
  font-size: 0.78rem;
  margin: 0 14px 14px;
}
@media (max-width: 640px) {
  .load-more-wrap { padding-bottom: calc(32px + var(--nx-sticky-clearance, 104px)); }

  .seo-category-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .seo-category-main {
    padding-top: 34px;
  }
}
.static-category-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.static-category-links .cat-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.static-category-links .cat-card small {
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 500;
}


/* Crawlable SEO copy and breadcrumbs for clean video, tag, and performer pages */
.seo-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 16px;
  color: #8f8f8f;
  font-size: .78rem;
  line-height: 1.5;
}
.seo-breadcrumbs a { color: #c5c5c5; text-decoration: none; }
.seo-breadcrumbs a:hover, .seo-breadcrumbs a:focus-visible { color: #ffa31a; text-decoration: underline; }
.seo-breadcrumbs span[aria-current="page"] { color: #dedede; }
.seo-video-copy {
  margin: 28px 0 0;
  padding: 18px 4px 2px;
  border-top: 1px solid var(--border);
  color: #b7b7b7;
  line-height: 1.65;
}
.seo-video-copy h2 { margin: 0 0 10px; color: #f4f4f4; font-size: 1.15rem; }
.seo-video-copy p { margin: 8px 0; }
.seo-video-copy a { color: #ffa31a; }
.seo-index-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 24px; margin: 30px 0 0; padding-left: 20px; }
.seo-index-list a { color: #dedede; }
.seo-discovery-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.seo-discovery-links a { color: #ffa31a; }

/* Reference-style age confirmation */
.age-gate {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  padding: 22px; background: rgba(10, 10, 10, .88); backdrop-filter: blur(12px); overflow-y: auto;
}
.age-gate.hidden { display: none; }
html.age-verified #age-gate { display: none !important; }
.age-gate-box {
  width: min(100%, 510px); max-height: calc(100vh - 36px); overflow-y: auto;
  background: #050505; border: 3px solid #ff9f00; border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 159, 0, .25), 0 16px 70px rgba(0,0,0,.72);
  padding: 18px 24px 28px; text-align: center; color: #f5f5f5;
}
.age-language { display: inline-flex; gap: 6px; align-items: center; padding: 7px 10px; margin: 0 auto 26px; background: #363636; border-radius: 4px; color: #f5f5f5; font-weight: 700; font-size: .9rem; }
.age-language span { color: #ccc; }
.age-brand { font-size: 2rem; font-weight: 900; letter-spacing: -1.2px; margin-bottom: 24px; }
.age-brand span { color: #ff9f00; }
.age-notice-label { font-size: 1.6rem; line-height: 1.15; font-weight: 800; margin: 0 0 22px; }
.age-gate-box h1 { display: inline-block; margin: 0 0 22px; padding: 12px 24px; border: 2px solid #ff9f00; border-radius: 8px; color: #fff; font-size: 1.28rem; line-height: 1.1; }
.age-gate-copy { color: #eee; font-size: 1.04rem; line-height: 1.55; margin: 0 auto 18px; max-width: 430px; }
.age-law-link, .age-terms-link { display: block; color: #ff9f00; font-weight: 800; text-decoration: none; }
.age-law-link { margin-bottom: 26px; }
.age-terms-link { margin-top: 8px; }
.age-gate-buttons { display: grid; gap: 14px; margin: 0 auto 32px; max-width: 440px; }
.age-gate-buttons .btn { min-height: 58px; border: 2px solid #ff9f00; border-radius: 7px; font-size: 1.05rem; font-weight: 800; }
.age-gate-buttons .btn-primary { background: #333; color: #fff; }
.age-gate-buttons .btn-primary:hover, .age-gate-buttons .btn-secondary:hover { background: #ff9f00; color: #080808; }
.age-gate-buttons .btn-secondary { border-color: #ff9f00; color: #fff; }
.age-controls-copy { max-width: 400px; margin: 0 auto 6px; color: #eee; font-size: .98rem; line-height: 1.45; }
.age-controls-copy a { color: #ff9f00; }


@media (max-width: 560px) {
  .age-gate { padding: 14px 10px; align-items: flex-start; }
  .age-gate-box { min-height: calc(100vh - 28px); padding: 14px 18px 24px; }
  .age-brand { font-size: 1.9rem; margin-bottom: 22px; }
  .age-notice-label { font-size: 1.4rem; }
  .age-gate-copy { font-size: .98rem; line-height: 1.5; }
  .age-gate-buttons .btn { min-height: 56px; font-size: .98rem; }
}


/* Homepage crawlable discovery block */
.home-seo-discovery {
  max-width: var(--max-w-desk);
  margin: 0 auto;
  padding: 22px 14px 30px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}
.home-seo-eyebrow {
  margin-bottom: 4px;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.home-seo-discovery h2 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1.15rem;
}
.home-seo-discovery > p:not(.home-seo-eyebrow) {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: .86rem;
  line-height: 1.55;
}
.home-seo-link-list {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 6px 18px;
  list-style: none;
}
.home-seo-link-list a {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: .82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-seo-link-list a:hover,
.home-seo-link-list a:focus-visible { color: var(--accent); text-decoration: underline; }
@media (min-width: 640px) {
  .home-seo-link-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .home-seo-link-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.browse-intro {
  max-width: var(--max-w-desk);
  margin: -10px auto 18px;
  padding: 0 14px;
  color: var(--text-muted);
  font-size: .86rem;
  line-height: 1.55;
  text-align: center;
}
