/*
Theme Name: XVP Theme
Theme URI: https://www.xvirtualpornbb.com/
Author: xVirtualPornbb
Author URI: https://www.xvirtualpornbb.com/
Description: Tema oscuro moderno inspirado en POVR/SLR, optimizado para sitios de videos VR. Grid limpio, single enfocado en previews y descargas.
Version: 1.6.2
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: xvp
Tags: grid-layout, custom-menu, featured-images, threaded-comments, translation-ready, blog, entertainment
*/

/* ============================================================
   XVP Theme - Base Styles
   ============================================================ */

:root {
  --xvp-bg: #0b0b0f;
  --xvp-bg-elevated: #14141b;
  --xvp-bg-card: #1a1a24;
  --xvp-border: #2a2a38;
  --xvp-text: #e8e8ed;
  --xvp-text-muted: #9b9ba8;
  --xvp-accent: #7c3aed;
  --xvp-accent-hover: #8b5cf6;
  --xvp-accent-soft: #a78bfa;
  --xvp-radius: 12px;
  --xvp-radius-sm: 8px;
  --xvp-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --xvp-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --xvp-container: 1470px;
  --xvp-header-h: 64px;
  --xvp-grid-cols: 4;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--xvp-bg);
  background-image: var(--xvp-bg-image, none);
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--xvp-text);
  font-family: var(--xvp-font);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

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

a {
  color: var(--xvp-accent-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #c4b5fd;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  font-weight: 650;
  line-height: 1.25;
  color: #f4f4f8;
}

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Layout */
.xvp-container {
  width: 100%;
  max-width: var(--xvp-container, 1470px);
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.xvp-content,
.xvp-home-section,
.xvp-grid {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.xvp-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.xvp-main {
  flex: 1;
  padding: 28px 0 48px;
}

.xvp-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}

.xvp-layout.no-sidebar {
  grid-template-columns: 1fr;
}

/* Header */
.xvp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--xvp-border);
}

.xvp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--xvp-header-h);
}

.xvp-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.xvp-logo a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.xvp-logo .logo-x {
  color: #22d3ee;
}

.xvp-logo .logo-v {
  color: #c026d3;
}

.xvp-logo img {
  max-height: 40px;
  width: auto;
}

/* Navigation */
.xvp-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.xvp-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.xvp-nav a {
  display: block;
  padding: 8px 12px;
  color: var(--xvp-text);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.xvp-nav a:hover,
.xvp-nav .current-menu-item > a,
.xvp-nav .current_page_item > a {
  background: var(--xvp-accent);
  color: #fff;
}

.xvp-menu-toggle {
  display: none;
  background: var(--xvp-bg-card);
  border: 1px solid var(--xvp-border);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

/* Welcome / Hero text */
.xvp-welcome {
  background: var(--xvp-bg-elevated);
  border: 1px solid var(--xvp-border);
  border-radius: var(--xvp-radius);
  padding: 24px 28px;
  margin-bottom: 28px;
  color: var(--xvp-text-muted);
  line-height: 1.7;
}

.xvp-welcome strong {
  color: var(--xvp-accent-soft);
}

/* Section title */
.xvp-section-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 18px;
  color: #f4f4f8;
}
.xvp-section-title span {
  display: inline-block;
  background: linear-gradient(135deg, #1a1a28, #221a33);
  border: 1px solid #3a2a55;
  border-radius: 999px;
  padding: 8px 18px;
  letter-spacing: 0.02em;
}

/* Video Grid — columns from Customizer (--xvp-grid-cols) */
.xvp-grid {
  display: grid;
  grid-template-columns: repeat(var(--xvp-grid-cols, 4), minmax(0, 1fr));
  gap: 18px;
}

.xvp-home-section {
  margin-bottom: 40px;
}

.xvp-card {
  background: var(--xvp-bg-card);
  border: 1px solid var(--xvp-border);
  border-radius: var(--xvp-radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.xvp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(124, 58, 237, 0.2);
  border-color: var(--xvp-accent);
}

.xvp-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a0a0e;
  overflow: hidden;
  display: block;
  flex-shrink: 0;
}

.xvp-card-thumb img,
.xvp-card-thumb .xvp-card-img,
.xvp-card img.xvp-card-img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  transition: transform 0.4s ease;
}

.xvp-card:hover .xvp-card-thumb img {
  transform: scale(1.05);
}

.xvp-card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a5a6e;
  font-size: 13px;
  background: #12121a;
}

.xvp-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(124, 58, 237, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  z-index: 2;
}

.xvp-card-body {
  padding: 12px 14px 14px;
}

.xvp-card-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.xvp-card-title a {
  color: #f0f0f5;
}

.xvp-card-title a:hover {
  color: var(--xvp-accent-soft);
}

.xvp-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: var(--xvp-text-muted);
}

.xvp-card-cat {
  display: inline-block;
  background: var(--xvp-accent);
  color: #fff !important;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.xvp-card-cat:hover {
  background: var(--xvp-accent-hover);
  color: #fff !important;
}

/* Pagination */
.xvp-pagination {
  margin: 36px 0 10px;
  text-align: center;
}

.xvp-pagination .nav-links,
.xvp-pagination .page-numbers {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-items: center;
}

.xvp-pagination a,
.xvp-pagination span.page-numbers {
  display: inline-block;
  min-width: 42px;
  padding: 10px 14px;
  background: var(--xvp-bg-card);
  border: 1px solid var(--xvp-border);
  border-radius: var(--xvp-radius-sm);
  color: var(--xvp-text);
  font-weight: 600;
  transition: all 0.2s ease;
}

.xvp-pagination a:hover {
  background: var(--xvp-accent);
  border-color: var(--xvp-accent);
  color: #fff;
}

.xvp-pagination .current {
  background: var(--xvp-accent);
  border-color: var(--xvp-accent);
  color: #fff;
}

/* Sidebar */
.xvp-sidebar .widget {
  background: var(--xvp-bg-card);
  border: 1px solid var(--xvp-border);
  border-radius: var(--xvp-radius);
  padding: 18px;
  margin-bottom: 18px;
}

.xvp-sidebar .widget-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
  color: #f4f4f8;
}

.xvp-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.xvp-sidebar li {
  margin-bottom: 8px;
}

.xvp-sidebar a {
  color: var(--xvp-text-muted);
}

.xvp-sidebar a:hover {
  color: var(--xvp-accent-soft);
}

/* Search form */
.xvp-search {
  display: flex;
  gap: 8px;
}

.xvp-search input[type="search"] {
  flex: 1;
  background: var(--xvp-bg);
  border: 1px solid var(--xvp-border);
  color: var(--xvp-text);
  padding: 10px 12px;
  border-radius: var(--xvp-radius-sm);
  outline: none;
}

.xvp-search input[type="search"]:focus {
  border-color: var(--xvp-accent);
}

.xvp-search button {
  background: var(--xvp-accent);
  border: none;
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--xvp-radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.xvp-search button:hover {
  background: var(--xvp-accent-hover);
}

/* Single Post */
.xvp-single {
  background: var(--xvp-bg-elevated);
  border: 1px solid var(--xvp-border);
  border-radius: var(--xvp-radius);
  padding: 28px;
  overflow: hidden;
}

.xvp-single-header {
  margin-bottom: 22px;
}

.xvp-single-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.xvp-single-cats a {
  background: var(--xvp-accent);
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 5px;
  text-transform: uppercase;
}

.xvp-single-title {
  font-size: 28px;
  font-weight: 750;
  margin: 0 0 12px;
  line-height: 1.25;
}

.xvp-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--xvp-text-muted);
}

.xvp-single-thumb {
  margin: 0 0 24px;
  border-radius: var(--xvp-radius);
  overflow: hidden;
  background: #000;
  text-align: center;
}

.xvp-single-thumb img {
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.xvp-single-content {
  color: #d4d4dc;
  font-size: 15px;
  line-height: 1.7;
}

/* Related videos / plugin blocks — force readable colors */
.xvp-single-content h1,
.xvp-single-content h2,
.xvp-single-content h3,
.xvp-single-content h4,
.xvp-content h2,
.xvp-content h3,
.related-posts,
.related-posts h2,
.related-posts h3,
.jp-relatedposts,
.jp-relatedposts-headline,
.crp_related,
.crp_related h3,
.yarpp-related,
.yarpp-related h3,
.rp4wp-related-posts,
.rp4wp-related-posts h3,
[class*="related"] h2,
[class*="related"] h3,
[class*="Related"] {
  color: #f4f4f8 !important;
}

.related-posts a,
.jp-relatedposts a,
.crp_related a,
.yarpp-related a,
[class*="related"] a {
  color: #e8e8ed !important;
}

.related-posts a:hover,
[class*="related"] a:hover {
  color: var(--xvp-accent-soft) !important;
}

.xvp-single-tags {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.xvp-below-single {
  margin-top: 24px;
}

.xvp-below-single .widget {
  background: var(--xvp-bg-card);
  border: 1px solid var(--xvp-border);
  border-radius: var(--xvp-radius);
  padding: 18px;
  margin-bottom: 16px;
  color: var(--xvp-text);
}

.xvp-below-single .widget-title {
  color: #f4f4f8;
  font-size: 14px;
  margin: 0 0 12px;
}

.xvp-single-content img {
  border-radius: var(--xvp-radius-sm);
  margin: 12px 0;
}

.xvp-single-content a {
  color: var(--xvp-accent-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Buttons inside content */
.xvp-single-content a[href*="k2s.cc"],
.xvp-single-content a[href*="keep2share"] {
  display: inline-block;
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 8px;
  margin: 8px 6px 8px 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.xvp-single-content a[href*="k2s.cc"]:hover,
.xvp-single-content a[href*="keep2share"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
  color: #fff !important;
}

/* ============================================================
   K2S Preview Player - fixes
   ============================================================ */
.xvp-single-content .k2s-preview,
.entry-content .k2s-preview,
.k2s-preview {
  border-radius: var(--xvp-radius) !important;
  overflow: hidden !important;
  margin: 20px auto !important;
  max-width: 100% !important;
  position: relative !important;
}

.xvp-single-content .k2s-preview .sub-wrap,
.k2s-preview .sub-wrap {
  position: relative !important;
  width: 100% !important;
  height: 0 !important;
  /* padding-bottom is set inline by K2S (56.25%) — do not override */
}

.xvp-single-content .k2s-preview .poster,
.k2s-preview .poster {
  position: absolute !important;
  inset: 0 !important;
  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  width: 100% !important;
  height: 100% !important;
}

.xvp-single-content .k2s-preview video,
.k2s-preview video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.xvp-single-content iframe,
.entry-content iframe {
  max-width: 100%;
  border-radius: var(--xvp-radius);
}

/* Ensure script-injected K2S blocks are visible */
.xvp-single-content script + .k2s-preview,
.xvp-single-content .k2s-preview.wrap {
  display: block !important;
  visibility: visible !important;
}

/* Images inside post content centered */
.xvp-single-content img,
.entry-content img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: auto;
  object-position: center center;
}

.xvp-single-content p {
  text-align: left;
}

.xvp-single-content p img {
  margin-top: 12px;
  margin-bottom: 12px;
}

/* Footer */
.xvp-footer {
  background: var(--xvp-bg-elevated);
  border-top: 1px solid var(--xvp-border);
  padding: 28px 0;
  margin-top: auto;
  color: var(--xvp-text-muted);
  font-size: 13px;
}

.xvp-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.xvp-footer a {
  color: var(--xvp-text-muted);
}

.xvp-footer a:hover {
  color: var(--xvp-accent-soft);
}

/* Empty / 404 */
.xvp-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--xvp-bg-elevated);
  border: 1px solid var(--xvp-border);
  border-radius: var(--xvp-radius);
}

.xvp-empty h1 {
  font-size: 32px;
  margin-bottom: 12px;
}

/* Comments basic */
.comments-area {
  margin-top: 32px;
  background: var(--xvp-bg-elevated);
  border: 1px solid var(--xvp-border);
  border-radius: var(--xvp-radius);
  padding: 24px;
}

/* Responsive */
@media (max-width: 1200px) {
  .xvp-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .xvp-layout {
    grid-template-columns: 1fr;
  }

  .xvp-sidebar {
    order: 2;
  }
}

@media (max-width: 768px) {
  .xvp-menu-toggle {
    display: inline-flex;
  }

  .xvp-nav {
    display: none;
    width: 100%;
  }

  .xvp-nav.is-open {
    display: block;
  }

  .xvp-nav ul {
    flex-direction: column;
    width: 100%;
    padding: 10px 0 16px;
  }

  .xvp-header-inner {
    flex-wrap: wrap;
  }

  .xvp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .xvp-single {
    padding: 18px;
  }

  .xvp-single-title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .xvp-grid {
    grid-template-columns: 1fr;
  }
}

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

/* ============================================================
   Keep2Share Preview (default)
   ============================================================ */
.k2s-preview {
  max-width: 100% !important;
  margin: 0 0 18px !important;
  background: #000 !important;
}
.k2s-preview .poster {
  animation: xvp-k2s-fade 0.25s ease-in;
}
.k2s-preview a.play-btn {
  width: 68px;
  height: 48px;
  margin: -24px 0 0 -34px;
  border: none;
  background: rgba(33, 33, 33, 0.8);
  clip-path: path("M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z");
  opacity: 1;
  pointer-events: none;
  transition: 0.1s ease-in;
}
.k2s-preview a.play-btn i {
  margin: 14px 0 0 26px;
}
.k2s-preview .poster:hover ~ .play-btn {
  background: #f00;
}
.k2s-preview a.download-btn {
  top: 0;
  right: 0;
  width: 88px;
  height: 64px;
  background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2NCIgaGVpZ2h0PSI0OCI+PGRlZnM+PHBhdGggaWQ9ImNsb3VkIiBkPSJNNDguNTM3IDE5LjU5QzQ3LjAwOCAxMS44MjggNDAuMTkgNiAzMiA2Yy02LjUwMyAwLTEyLjE1IDMuNjktMTQuOTYzIDkuMDlDMTAuMjY1IDE1LjgxIDUgMjEuNTQ3IDUgMjguNSA1IDM1Ljk0NyAxMS4wNTMgNDIgMTguNSA0Mkg0Ny43NUM1My45NiA0MiA1OSAzNi45NiA1OSAzMC43NWMwLTUuOTQtNC42MTMtMTAuNzU1LTEwLjQ2My0xMS4xNnoiLz48L2RlZnM+PHVzZSBocmVmPSIjY2xvdWQiIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLXdpZHRoPSIzIiBzdHJva2Utb3BhY2l0eT0iMC4yIiBmaWxsPSJub25lIi8+PHVzZSBocmVmPSIjY2xvdWQiIGZpbGw9IiNmZmYiLz48cGF0aCBkPSJNNDMgMjYgMzIgMzcgMjEgMjZoN1YxN2g4djloN3oiIGZpbGw9IiM0NTQ1NDUiLz48cGF0aCBkPSJNNDAuNSAyNyAzMiAzNS41IDIzLjUgMjdIMjlWMThoNnY5aDUuNXoiIGZpbGw9IiM0ZDRkNGQiLz48L3N2Zz4=") 5px 12px no-repeat !important;
}
@keyframes xvp-k2s-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.k2s-preview .screenlist {
  position: absolute;
  bottom: 0;
  width: 1680px;
  padding-top: 8px;
  background: rgba(23, 23, 23, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: 0.1s ease-in;
}
.k2s-preview:hover .screenlist {
  opacity: 1;
}
.k2s-preview .thumbs {
  position: relative;
  left: 0;
  text-align: left;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s ease-in;
  animation: xvp-k2s-fade 0.4s ease-in, xvp-k2s-slide 20s linear infinite paused;
}
.k2s-preview:hover .thumbs {
  opacity: 1;
  animation-play-state: running;
}
.k2s-preview .thumbs div {
  width: 160px;
  height: 120px;
  margin-right: 8px;
  background: #000 0 / cover;
  display: inline-block;
  vertical-align: top;
}
@keyframes xvp-k2s-slide {
  to { left: -100%; }
}
#k2s-widget {
  overflow: hidden;
}
#k2s-widget .k2s-preview .sub-wrap {
  padding-bottom: 411px !important;
}
.k2s-widget-preview,
.k2s-widget-thumb {
  overflow: hidden;
  animation: xvp-k2s-fade 0.25s ease-in;
}
.k2s-widget-preview {
  width: 100%;
  max-width: 730px;
  height: 411px;
  background: #000;
}
.k2s-widget-thumb {
  position: relative;
  width: calc(50% - 3px);
  max-width: 362px;
  height: 204px;
  margin-top: 6px;
  user-select: none;
  float: left;
}
.k2s-widget-thumb:nth-child(odd) {
  margin-left: 6px;
}
.k2s-widget-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
.k2s-widget-thumb-play,
.k2s-widget-thumb-play-active {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6) url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+PHBhdGggZD0iTTQgMS43VjIyLjNMMjIuNSAxMnoiIGZpbGw9IiNmZmYiLz48L3N2Zz4=") 19px 18px no-repeat;
  pointer-events: none;
}
.k2s-widget-thumb-play-active {
  background-color: rgba(255, 0, 0, 0.6);
}
.k2s-widget-preview-loader {
  position: relative;
  top: 50%;
  left: 50%;
  margin: -8px 0 0 -33px;
}
.k2s-widget-preview:has(.k2s-preview) .k2s-widget-preview-loader {
  display: none;
}
.k2s-widget-preview-loader div {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #aaa;
  opacity: 0;
  transform: scale(0);
  animation: xvp-k2s-loader 1.5s linear 0.25s infinite;
}
.k2s-widget-preview-loader div:nth-child(2) {
  left: 25px;
  animation-delay: 0.4s;
}
.k2s-widget-preview-loader div:nth-child(3) {
  left: 50px;
  animation-delay: 0.55s;
}
@keyframes xvp-k2s-loader {
  10%, 40% { transform: scale(0.75); opacity: 1; }
  20%, 30% { transform: scale(1); }
  50% { transform: scale(0); opacity: 0; }
}


/* ============================================================
   v1.3 – Home intro, filters, CTA, footer 4-col, categories
   ============================================================ */

.xvp-home-intro {
  max-width: var(--xvp-container, 1470px);
  margin: 0 auto 22px;
  padding: 0 24px;
}

.xvp-home-intro .xvp-home-widget,
.xvp-home-intro .widget,
.xvp-home-intro .textwidget,
.xvp-home-intro p {
  text-align: center;
  color: #d4d4dc;
  line-height: 1.75;
  font-size: 15px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.xvp-home-intro h1,
.xvp-home-intro h2,
.xvp-home-intro .widget-title {
  text-align: center;
  color: #f8f8fc;
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 14px;
}

/* Filters like POVR */
.xvp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  align-items: center;
  max-width: var(--xvp-container, 1470px);
  margin: 0 auto 24px;
  padding: 0 24px;
}

.xvp-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #3a3a48;
  background: #12121a;
  color: #e8e8ed !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.xvp-filter-btn:hover {
  border-color: #7c3aed;
  color: #fff !important;
}

.xvp-filter-btn.is-active {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff !important;
}

/* Layout: sidebar aligned with cards */
.xvp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.xvp-layout.no-sidebar {
  grid-template-columns: 1fr;
}

/* Categories widget */
.widget_categories ul,
.widget_categories .wp-block-categories {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget_categories li {
  margin: 0 0 6px;
  padding: 0;
  border-bottom: 1px solid #2a2a38;
}

.widget_categories li:last-child {
  border-bottom: 0;
}

.widget_categories a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 4px;
  color: #d4d4dc !important;
  text-decoration: none !important;
  font-size: 13px;
}

.widget_categories a:hover {
  color: #c4b5fd !important;
}

.widget_categories .count,
.widget_categories .cat-count {
  background: #2a2a38;
  color: #a1a1aa;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
}

/* Cover CTA banner */
.xvp-cover-cta {
  width: 100%;
  margin: 0 auto 22px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(90deg, #1a1028, #221433 50%, #1a1028);
  border: 1px solid #3b2a55;
}

.xvp-cover-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  min-height: inherit;
}

.xvp-cover-cta-text {
  color: #f0e9ff;
  font-size: 14px;
  font-weight: 600;
  flex: 1 1 auto;
}

.xvp-cover-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--xvp-cta-btn, #e11d48) !important;
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none !important;
  padding: 8px 16px;
  border-radius: 6px;
  white-space: nowrap;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.xvp-cover-cta-btn:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  color: #fff !important;
}

.xvp-cover-cta-img {
  display: block;
  line-height: 0;
}

/* Footer 4 columns */
.xvp-footer-widgets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 32px 24px 12px;
  border-bottom: 1px solid #2a2a38;
  margin-bottom: 16px;
}

.xvp-footer-col .widget {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0 0 16px;
}

.xvp-footer-col .widget-title {
  color: #f4f4f8;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 12px;
}

.xvp-footer-col a {
  color: #a1a1aa !important;
}

.xvp-footer-col a:hover {
  color: #c4b5fd !important;
}

.xvp-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.xvp-footer-col li {
  margin-bottom: 6px;
  font-size: 13px;
}

@media (max-width: 980px) {
  .xvp-footer-widgets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .xvp-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .xvp-footer-widgets {
    grid-template-columns: 1fr;
  }
  .xvp-cover-cta-inner {
    flex-direction: column;
    text-align: center;
  }
}


/* ============================================================
   v1.4 – Header search, layout align, related, CTA under image
   ============================================================ */

.xvp-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.xvp-header-search {
  flex: 1 1 auto;
  min-width: 180px;
  max-width: 520px;
}

.xvp-header-search form {
  display: flex;
  align-items: center;
  background: #12121a;
  border: 1px solid #2a2a38;
  border-radius: 999px;
  overflow: hidden;
  height: 42px;
}

.xvp-header-search input[type="search"] {
  flex: 1;
  border: 0;
  background: transparent;
  color: #e8e8ed;
  padding: 0 16px;
  outline: none;
  font-size: 14px;
  min-width: 0;
}

.xvp-header-search input::placeholder {
  color: #7a7a8a;
}

.xvp-header-search button {
  border: 0;
  background: transparent;
  color: #c4b5fd;
  padding: 0 14px;
  height: 100%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.xvp-header-search button:hover {
  color: #fff;
}

.xvp-nav {
  flex: 0 0 auto;
}

/* Align content + sidebar tops */
.xvp-layout {
  align-items: start;
}

.xvp-sidebar {
  padding-top: 0;
  margin-top: 0;
}

.xvp-sidebar .widget:first-child {
  margin-top: 0;
}

.xvp-content > .xvp-home-section:first-child {
  margin-top: 0;
}

/* CTA always under cover image */
.xvp-single-thumb + .xvp-cover-cta {
  margin-top: 12px;
}

.xvp-single-content > .xvp-cover-cta:first-child,
.xvp-single-content img + .xvp-cover-cta {
  margin-top: 12px;
  margin-bottom: 20px;
}

/* Related videos */
.xvp-related {
  margin-top: 36px;
}

.xvp-related .xvp-grid {
  margin-top: 4px;
}

@media (max-width: 900px) {
  .xvp-header-inner {
    flex-wrap: wrap;
  }
  .xvp-header-search {
    order: 3;
    max-width: 100%;
    width: 100%;
    flex: 1 1 100%;
  }
}


/* ============================================================
   v1.5 – Menu fix, bottom CTA, pagination POVR-style
   ============================================================ */

/* Keep header/menu inside layout */
.xvp-header {
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

.xvp-header-inner {
  max-width: var(--xvp-container, 1470px);
  margin: 0 auto;
  overflow: visible;
}

.xvp-nav {
  max-width: 100%;
}

.xvp-nav ul {
  flex-wrap: wrap;
  max-width: 100%;
}

/* Cover CTA: text never looks like a link */
.xvp-cover-cta,
.xvp-cover-cta-text {
  color: #f0e9ff !important;
  text-decoration: none !important;
  pointer-events: auto;
}

.xvp-cover-cta-text {
  cursor: default;
}

.xvp-cover-cta a.xvp-cover-cta-btn {
  pointer-events: auto;
}

/* Pagination POVR-like */
.xvp-pagination,
.navigation.pagination {
  margin: 36px 0 28px !important;
  text-align: center !important;
}

.xvp-pagination .nav-links,
.navigation.pagination .nav-links {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  justify-content: center !important;
  align-items: center !important;
}

.xvp-pagination a,
.xvp-pagination span.page-numbers,
.navigation.pagination a,
.navigation.pagination span.page-numbers {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 44px !important;
  height: 42px !important;
  padding: 0 14px !important;
  background: var(--xvp-page-bg, #1a1a24) !important;
  border: 1px solid #2a2a38 !important;
  border-radius: 8px !important;
  color: #e8e8ed !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.xvp-pagination a:hover,
.navigation.pagination a:hover {
  background: var(--xvp-page-active, #7c3aed) !important;
  border-color: var(--xvp-page-active, #7c3aed) !important;
  color: #fff !important;
}

.xvp-pagination .current,
.navigation.pagination .current {
  background: var(--xvp-page-active, #7c3aed) !important;
  border-color: var(--xvp-page-active, #7c3aed) !important;
  color: #fff !important;
}

/* Full-width bottom CTA above footer columns */
.xvp-bottom-cta {
  width: 100%;
  background: #0a0a0a;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  padding: 36px 20px;
  text-align: center;
}

.xvp-bottom-cta-inner {
  max-width: 900px;
  margin: 0 auto;
}

.xvp-bottom-cta-title {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 18px;
  line-height: 1.3;
}

.xvp-bottom-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--xvp-bottom-btn, #22c55e) !important;
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 36px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.xvp-bottom-cta-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  color: #fff !important;
}

.xvp-bottom-cta-sub {
  margin-top: 14px;
  color: #888;
  font-size: 13px;
}

@media (max-width: 600px) {
  .xvp-bottom-cta-title {
    font-size: 16px;
  }
}


/* AJAX pagination loading */
.xvp-content.is-ajax-loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.xvp-content.is-ajax-loading .xvp-pagination {
  opacity: 0.7;
}


/* Footer full-width strip above 4 columns */
.xvp-footer-full {
  width: 100%;
  background: #0d0d12;
  border-top: 1px solid #2a2a38;
  border-bottom: 1px solid #2a2a38;
  padding: 28px 20px;
}
.xvp-footer-full-inner {
  max-width: var(--xvp-container, 1470px);
  margin: 0 auto;
  width: 100%;
}
.xvp-footer-full .widget {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0 0 12px;
  color: #d4d4dc;
}
.xvp-footer-full .widget:last-child {
  margin-bottom: 0;
}
.xvp-footer-full .widget-title {
  color: #f4f4f8;
  margin: 0 0 10px;
}
.xvp-footer-full img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
