/* =========================================================
   PORNGID CUSTOM OVERRIDES (CLEAN NEON, NO CONFLICTS)
   Подключается после style.css.
   Никаких правок ядра WP и PGSI.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* ---------------- TOKENS ---------------- */
:root{
  --pg-pink:#ff2f92;
  --pg-violet:#7b5cff;
  --pg-bg-deep:#050814;

  --pg-glow-soft: 0 0 10px rgba(123,92,255,.45);
  --pg-glow-med:  0 0 18px rgba(123,92,255,.65);
  --pg-glow-pink: 0 0 18px rgba(255,47,146,.55);
}

/* ---------------- GLOBAL FONT ---------------- */
body, button, input, textarea, select{
  font-family:'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ========================================================
   HEADER / TOP NAV (polish)
   ======================================================== */

/* логотип — неоновая капсула */
.pg-logo{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 9px 20px 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, #ff3b9c 0%, #8765ff 40%, #24163f 100%);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 8px 22px rgba(0,0,0,.9), 0 0 24px rgba(123,92,255,.7);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 8px rgba(0,0,0,.7);
}
.pg-logo span{ margin-right:4px; color:#ffd7ff; }

/* капсулы меню */
.pg-nav{
  display:flex;
  align-items:center;
  gap:10px;
}
.pg-nav-link,
.pg-header-bottom .pg-nav a{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(124,140,255,.25);
  background: rgba(6,7,20,.95);
  font-size: 13px;
  font-weight: 500;
  color: #a9b2f0;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .12s ease;
}
.pg-header-bottom .pg-nav a:hover{
  border-color: rgba(124,140,255,.6);
  color:#fff;
  box-shadow: var(--pg-glow-soft);
  transform: translateY(-1px);
}
.pg-header-bottom .pg-nav a.active,
.pg-header-bottom .pg-nav a.current-menu-item,
.pg-header-bottom .pg-nav a.pg-nav-current{
  color:#fff;
  font-weight:600;
  border-color: transparent;
  background: radial-gradient(circle at 0 0, rgba(255,47,146,.30), rgba(123,92,255,.72));
  box-shadow: 0 6px 18px rgba(0,0,0,.85), 0 0 14px rgba(123,92,255,.60), 0 0 18px rgba(255,47,146,.45);
}

/* Random button (по href*="random") */
.pg-header-right a[href*="random"]{
  position: relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid rgba(124,140,255,.5);
  background: radial-gradient(circle at 0 0, rgba(123,92,255,.35), rgba(5,8,20,.98));
  font-size: 12px;
  font-weight: 700;
  color:#d1d5ff;
  text-transform: uppercase;
  letter-spacing: .08em;
  box-shadow: 0 10px 24px rgba(0,0,0,.9), 0 0 18px rgba(123,92,255,.7);
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .12s ease;
}
.pg-header-right a[href*="random"]:hover{
  border-color: rgba(255,47,146,.8);
  color:#fff;
  background: radial-gradient(circle at 0 0, rgba(255,47,146,.36), rgba(10,12,40,.98));
  box-shadow: 0 12px 26px rgba(0,0,0,.95), 0 0 20px rgba(123,92,255,.8);
  transform: translateY(-1px);
}

/* Live Cams — неон без оранжевого */
.pg-header-btn--cams{
  position: relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:32px;
  padding: 0 22px 0 30px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  background: radial-gradient(circle at 0 0, rgba(255,47,146,.95), rgba(123,92,255,.95));
  color:#fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(255,255,255,.24), 0 14px 32px rgba(0,0,0,.95), 0 0 34px rgba(255,47,146,.9);
  transition: background .18s ease, box-shadow .18s ease, transform .12s ease;
}
.pg-header-btn--cams::before{
  content:"";
  position:absolute;
  left:12px;
  width:8px;height:8px;
  border-radius:50%;
  background:#00ff85;
  box-shadow: 0 0 10px rgba(0,255,133,.9);
  animation: pg-live-pulse 1.3s infinite;
}
.pg-header-btn--cams:hover{
  background: radial-gradient(circle at 0 0, rgba(255,120,196,1), rgba(141,112,255,1));
  box-shadow: 0 0 0 1px rgba(255,255,255,.26), 0 18px 40px rgba(0,0,0,.98), 0 0 42px rgba(255,47,146,1);
  transform: translateY(-1px);
}
@keyframes pg-live-pulse{
  0%{ transform:scale(1); opacity:1; }
  70%{ transform:scale(1.8); opacity:0; }
  100%{ transform:scale(1.8); opacity:0; }
}

/* ========================================================
   HOME / ARCHIVE TITLE + SORT
   ======================================================== */

.page-header{ margin: 10px 0 26px; }

.pg-archive-title{
  position: relative;
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: .04em;
  color:#fef6ff;
}
.pg-archive-title::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-7px;
  width:90px;
  height:3px;
  border-radius:999px;
  background: linear-gradient(90deg, var(--pg-pink), var(--pg-violet));
  box-shadow: var(--pg-glow-med);
}

/* на главной скрываем заголовок */
.home .page-header .pg-archive-title{ display:none; }

/* сортировка */
.pg-sort-bar{
  margin-top: 18px;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px 16px;
}
.pg-sort-links{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:3px;
  border-radius:999px;
  background: radial-gradient(circle at 0 0, rgba(10,12,30,.95), rgba(8,9,22,.98));
  box-shadow: 0 10px 24px rgba(0,0,0,.75);
}
.pg-sort-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 86px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color:#c3c7ff;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .12s ease;
}
.pg-sort-link:hover{
  border-color: rgba(124,140,255,.6);
  color:#fff;
  background: radial-gradient(circle at 0 0, rgba(124,140,255,.28), rgba(15,18,40,.98));
  box-shadow: var(--pg-glow-soft);
  transform: translateY(-1px);
}
.pg-sort-link.is-active{
  background: radial-gradient(circle at 0 0, rgba(255,47,146,.42), rgba(123,92,255,.88));
  border-color: rgba(255,47,146,.75);
  color:#fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.85), var(--pg-glow-med), 0 0 14px rgba(255,47,146,.4);
}

/* ========================================================
   VIDEO GRID / CARDS (no duplicates, one truth)
   ======================================================== */

.video-item{
  background: radial-gradient(circle at 0 0, rgba(123,92,255,.16), var(--pg-bg-deep));
  border: 1px solid rgba(124,140,255,.38);
  box-shadow: 0 12px 34px rgba(0,0,0,.88), 0 0 24px rgba(25,20,68,.6);
  opacity: .98;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
.video-item:hover{
  transform: translateY(-4px);
  background: radial-gradient(circle at 0 0, rgba(255,47,146,.20), var(--pg-bg-deep));
  border-color: rgba(255,47,146,.78);
  box-shadow: 0 20px 56px rgba(0,0,0,.95), 0 0 34px rgba(123,92,255,.85), 0 0 46px rgba(255,47,146,.55);
}

/* превью подгоняем под 300×250 карточки (визуально ровнее с ads) */
.video-thumb{
  aspect-ratio: 4 / 3;
  filter: brightness(.92);
  transition: transform .22s ease, filter .22s ease;
}
.video-item:hover .video-thumb{
  transform: scale(1.04);
  filter: brightness(1.05);
}
.video-thumb::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to top, rgba(5,8,20,.85) 0%, rgba(5,8,20,0) 50%);
  opacity:0;
  transition: opacity .22s ease;
  pointer-events:none;
}
.video-item:hover .video-thumb::before{ opacity:1; }

.video-duration{
  padding: 3px 9px;
  border-radius:999px;
  background: rgba(5,8,20,.9);
  border: 1px solid rgba(255,255,255,.25);
  font-size: 11px;
  font-weight: 600;
  color:#fff;
}

.video-title{
  font-size: 15px;
  font-weight: 700;
  color:#f5f5ff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .18s ease;
}
.video-item:hover .video-title{ color:#fff; }

.video-meta{
  font-size: 11px;
  color:#9aa3d4;
  margin-top: auto;
}
.video-meta a{ text-decoration:none; text-transform: lowercase; }
.video-meta a::first-letter{ text-transform: uppercase; }

.video-meta-duration{
  font-size: 12px;
  font-weight: 700;
  color:#cfd5ff;
}
.video-meta-cat{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 3px 10px 4px;
  border-radius:999px;
  background: rgba(16,20,40,.96);
  border: 1px solid rgba(124,140,255,.55);
  color:#d7ddff;
  letter-spacing: .03em;
  font-weight: 700;
}
.video-item:hover .video-meta-cat{
  border-color: rgba(255,47,146,.8);
  background: radial-gradient(circle at 0 0, rgba(255,47,146,.2), rgba(16,20,40,.98));
  color:#fff;
}


/* ========================================================
   PAGINATION
   ======================================================== */
.pg-pagination{
  margin: 28px 0 16px;
  display:flex;
  justify-content:center;
}
.pg-pagination-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.pg-page a,
.pg-page span{
  min-width:36px;
  height:36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(124,140,255,.45);
  background: radial-gradient(circle at 0 0, rgba(10,12,30,.98), rgba(5,8,20,.98));
  color:#c7ccff;
  font-size:13px;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .12s ease;
}
.pg-page a:hover{
  border-color: rgba(255,47,146,.75);
  color:#fff;
  background: radial-gradient(circle at 0 0, rgba(255,47,146,.36), rgba(15,18,40,.98));
  box-shadow: 0 8px 20px rgba(0,0,0,.9), 0 0 18px rgba(123,92,255,.7);
  transform: translateY(-1px);
}
.pg-page.current span{
  border-color: rgba(255,47,146,.9);
  background: radial-gradient(circle at 0 0, rgba(255,47,146,.5), rgba(123,92,255,.9));
  color:#fff;
  box-shadow: 0 10px 26px rgba(0,0,0,.95), 0 0 22px rgba(123,92,255,.9), 0 0 28px rgba(255,47,146,.6);
}
.pg-page.prev a,
.pg-page.next a{
  padding: 0 18px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .14em;
}

/* ========================================================
   SCROLL TO TOP
   ======================================================== */
.pg-scroll-top{
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(124,140,255,.6);
  background: radial-gradient(circle at 0 0, var(--pg-pink), #7040ff);
  box-shadow: 0 14px 32px rgba(0,0,0,.9);
  color:#fff;
  font-size: 20px;
  cursor: pointer;
  display:none;
  align-items:center;
  justify-content:center;
  z-index: 50;
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
  opacity: 0;
}
.pg-scroll-top.is-visible{ display:flex; opacity:1; }
.pg-scroll-top:hover{
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0,0,0,.95), 0 0 30px rgba(123,92,255,.8);
}

/* ========================================================
   SINGLE: PLAYER WRAP (safe, no conflicts)
   ======================================================== */
.pg-player-wrapper{
  margin: 10px 0 22px;
  border-radius: 20px;
  overflow: hidden;
  padding: 2px;
  background: radial-gradient(circle at 0 0, rgba(255,47,146,.5), rgba(123,92,255,.78));
  box-shadow: 0 20px 44px rgba(0,0,0,.96), 0 0 32px rgba(123,92,255,.8);
}
.pg-player{
  border-radius: 18px;
  overflow:hidden;
}

/* ========================================================
   CLEAN IMPORTER TRASH
   ======================================================== */
.single .entry-content > ul:first-of-type{
  display:none !important;
  margin:0 !important;
  padding:0 !important;
}

/* ========================================================
   ADBLOCK BANNER
   ======================================================== */
#pg-adblock-banner{
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 9999;
  display:none;
  align-items:center;
  gap:12px;
  max-width: min(760px, calc(100vw - 24px));
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(6,7,20,.92);
  border: 1px solid rgba(124,140,255,.40);
  box-shadow: 0 18px 40px rgba(0,0,0,.95), var(--pg-glow-soft);
  backdrop-filter: blur(10px);
}
#pg-adblock-banner.is-visible{ display:flex; }
#pg-adblock-banner .pg-adblock-text{
  font-size: 12px;
  line-height: 1.2;
  color: rgba(224,228,255,.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#pg-adblock-banner .pg-adblock-close{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.20);
  background: radial-gradient(circle at 0 0, rgba(255,47,146,.25), rgba(123,92,255,.18));
  color:#fff;
  cursor:pointer;
}

/* ========================================================
   AGE / COOKIES OVERLAY — MATCH REAL HTML (pg-age-dialog)
   ======================================================== */

html.pg-modal-open,
html.pg-modal-open body{
  overflow: hidden;
}

#pg-age-cookie-overlay.pg-age-overlay{
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

#pg-age-cookie-overlay.pg-age-overlay[aria-hidden="false"],
#pg-age-cookie-overlay.pg-age-overlay.is-visible{
  display: flex;
}

/* backdrop из твоего HTML */
#pg-age-cookie-overlay .pg-age-overlay-backdrop{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(255,47,146,.16), transparent 55%),
    radial-gradient(120% 120% at 85% 85%, rgba(123,92,255,.18), transparent 55%),
    rgba(2, 3, 8, .78);
  backdrop-filter: blur(10px);
}

/* сам диалог из твоего HTML */
#pg-age-cookie-overlay .pg-age-dialog{
  position: relative;
  width: min(560px, calc(100vw - 32px));
  padding: 22px 22px 18px;
  border-radius: 18px;
  border: 1px solid rgba(168,92,255,.35);
  background:
    radial-gradient(120% 140% at 18% 10%, rgba(168,92,255,.20), transparent 52%),
    radial-gradient(120% 140% at 85% 80%, rgba(255,47,146,.16), transparent 55%),
    linear-gradient(180deg, rgba(8,10,18,.92), rgba(6,7,14,.92));
  box-shadow: 0 18px 60px rgba(0,0,0,.65), 0 0 26px rgba(168,92,255,.12);
}

#pg-age-cookie-overlay .pg-age-dialog h2{
  margin: 0 0 10px;
  background: linear-gradient(90deg, #b35cff, #ff4dd2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  letter-spacing: .6px;
  text-transform: uppercase;
  font-weight: 900;
}

#pg-age-cookie-overlay .pg-age-dialog p{
  margin: 0 0 14px;
  color: rgba(228,231,255,.88);
  font-size: 13px;
  line-height: 1.45;
}

#pg-age-cookie-overlay .pg-age-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* кнопки (твои классы pg-age-btn...) */
#pg-age-cookie-overlay .pg-age-btn{
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: #fff;
  text-decoration: none;
}

#pg-age-cookie-overlay .pg-age-btn--primary{
  background: linear-gradient(90deg, rgba(255,77,210,.96), rgba(168,92,255,.96)) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  box-shadow: 0 10px 26px rgba(0,0,0,.55), 0 0 26px rgba(255,77,210,.18), 0 0 22px rgba(168,92,255,.14) !important;
}

#pg-age-cookie-overlay .pg-age-btn--secondary{
  border: 1px solid rgba(168,92,255,.32) !important;
  background: rgba(255,255,255,.04) !important;
}
/* ========================================================
   SIDEBAR — TARGET REAL MARKUP (.pg-sidebar-nav a, etc.)
   ======================================================== */

aside.pg-sidebar{
  background: radial-gradient(circle at 0 0, #221538 0%, #050814 60%);
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 18px 34px rgba(0,0,0,.90), 0 0 26px rgba(20,12,48,.70);
  padding: 22px 20px 24px;
}

/* жёстко убираем маркеры/отступы (если это именно list-style) */
aside.pg-sidebar ul,
aside.pg-sidebar ol{
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
aside.pg-sidebar li{
  margin: 0 !important;
  padding: 0 !important;
}

/* меню */
aside.pg-sidebar .pg-sidebar-nav ul{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ссылки меню (без необходимости класса pg-sidebar-link) */
aside.pg-sidebar .pg-sidebar-nav a{
  position: relative;
  display: flex;
  align-items: center;
  padding: 9px 16px 9px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #dfe2ff;
  text-decoration: none;
  background: rgba(9,11,28,.95);
  border: 1px solid rgba(124,140,255,.18);
  transition: background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .12s ease;
}
aside.pg-sidebar .pg-sidebar-nav a::before{
  content:"";
  position:absolute;
  left:10px;
  width:5px;height:5px;
  border-radius:999px;
  background: rgba(192,198,255,.70);
}
aside.pg-sidebar .pg-sidebar-nav a:hover{
  background: radial-gradient(circle at 0 0, rgba(124,140,255,.35), rgba(8,10,26,.98));
  border-color: rgba(124,140,255,.70);
  color:#fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.85);
  transform: translateY(-1px);
}

/* активный пункт (WordPress-классы) */
aside.pg-sidebar .pg-sidebar-nav .current-menu-item > a,
aside.pg-sidebar .pg-sidebar-nav a[aria-current="page"]{
  background: radial-gradient(circle at 0 0, rgba(255,47,146,.35), rgba(123,92,255,.85));
  border-color: rgba(255,47,146,.90);
  color:#fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.95), 0 0 20px rgba(123,92,255,.75);
}

/* top categories: сеткой */
aside.pg-sidebar .pg-sidebar-topcats-list{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

aside.pg-sidebar .pg-sidebar-topcats-list a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, rgba(123,92,255,.22), rgba(9,11,28,.95));
  border: 1px solid rgba(124,140,255,.32);
  color: rgba(236,238,255,.95);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0,0,0,.65);
  transition: transform .12s ease, border-color .16s ease, box-shadow .16s ease, filter .16s ease;
}
aside.pg-sidebar .pg-sidebar-topcats-list a:hover{
  transform: translateY(-1px);
  border-color: rgba(255,47,146,.70);
  box-shadow: 0 14px 34px rgba(0,0,0,.80), 0 0 18px rgba(123,92,255,.55), 0 0 18px rgba(255,47,146,.35);
  filter: saturate(1.1);
}

@media (max-width: 1280px){
  aside.pg-sidebar .pg-sidebar-topcats-list{ grid-template-columns: 1fr; }
}

aside.pg-sidebar .pg-sidebar-topcats{ margin-top: 18px; }
aside.pg-sidebar .pg-sidebar-topcats-list{ margin-top: 10px; }

/* ========================================================
   HEADER — FORCE SINGLE ROW (REAL MARKUP)
   ======================================================== */

@media (min-width: 901px){

  /* 1 строка: left / center / right */
  .pg-header-top .pg-header-inner{
    display:flex !important;
    align-items:center !important;
    gap:14px;
    flex-wrap:nowrap !important;
  }

  /* LEFT: logo + nav в одну линию */
  .pg-header-top .pg-header-left{
    display:flex !important;
    align-items:center !important;
    gap:12px;
    flex-wrap:nowrap !important;
    flex:0 0 auto;
    min-width:0;
  }

  .pg-header-top .pg-header-left .pg-nav.pg-primary-nav{
    display:flex !important;
    align-items:center !important;
    gap:10px;
    flex-wrap:nowrap !important;
    white-space:nowrap !important;
    margin:0 !important;
    padding:0 !important;
  }

  .pg-header-top .pg-header-left .pg-nav-link{
    white-space:nowrap !important;
  }

  /* CENTER: поиск должен сжиматься/растягиваться */
  .pg-header-top .pg-header-center{
    flex:1 1 auto !important;
    min-width:240px;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
  }

  /* подстрахуем что бы там ни было (form/div) */
  .pg-header-top .pg-header-center > *{
    flex:1 1 auto;
    min-width:0;
  }

  .pg-header-top .pg-header-center form,
  .pg-header-top .pg-header-center .pg-search,
  .pg-header-top .pg-header-center .search-form{
    width:100% !important;
    max-width:640px;
    min-width:240px;
    margin:0 auto !important;
  }

  /* RIGHT: кнопки не переносим */
  .pg-header-top .pg-header-right{
    display:flex !important;
    align-items:center !important;
    gap:10px;
    flex:0 0 auto !important;
    flex-wrap:nowrap !important;
    white-space:nowrap !important;
  }
}

/* Ужим на более узких десктопах (чтобы не провоцировать перенос) */
@media (max-width: 1200px) and (min-width: 901px){
  .pg-logo{ letter-spacing:.12em; padding:8px 16px 9px; font-size:18px; }
  .pg-nav-link{ padding:6px 12px; font-size:12.5px; }
}
/* ========================================================
   HEADER NAV — ACTIVE STATE (REAL CLASSES)
   ======================================================== */

.pg-nav-link{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(124,140,255,.25);
  background: rgba(6,7,20,.95);
  font-size: 13px;
  font-weight: 500;
  color: #a9b2f0;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .12s ease;
}

.pg-nav-link:hover{
  border-color: rgba(124,140,255,.6);
  color:#fff;
  box-shadow: var(--pg-glow-soft);
  transform: translateY(-1px);
}

/* ВАЖНО: у тебя активная = is-current */
.pg-nav-link.is-current,
.pg-nav-link[aria-current="page"]{
  color:#fff;
  font-weight:600;
  border-color: transparent;
  background: radial-gradient(circle at 0 0, rgba(255,47,146,.30), rgba(123,92,255,.72));
  box-shadow: 0 6px 18px rgba(0,0,0,.85), 0 0 14px rgba(123,92,255,.60), 0 0 18px rgba(255,47,146,.45);
}
/* ========================================================
   VIDEO CARD — STRUCTURE FIX (NO PHP CHANGES)
   ======================================================== */

.video-item > a{
  display:flex;
  flex-direction:column;
  height:100%;
  text-decoration:none;
}

.video-thumb{
  position:relative;            /* чтобы ::before и duration жили правильно */
  border-radius: 18px;
  overflow:hidden;
  background-size: cover;
  background-position: center;
}

.video-title{
  padding: 10px 12px 0;
}

.video-meta{
  padding: 8px 12px 12px;
  margin-top:auto;              /* теперь реально прижмётся вниз */
}
/* ===== Footer buttons polish ===== */
.site-footer{
  margin-top: 34px;
}

.site-footer .footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}

.site-footer .footer-links{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content:flex-end;
}

.site-footer .footer-links a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(124,140,255,.38);
  background: rgba(6,7,20,.55);
  color: rgba(224,228,255,.90);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration:none;
  transition: transform .12s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease, background .16s ease;
}

.site-footer .footer-links a:hover{
  transform: translateY(-1px);
  border-color: rgba(255,47,146,.70);
  color:#fff;
  background: radial-gradient(circle at 0 0, rgba(255,47,146,.22), rgba(6,7,20,.65));
  box-shadow: 0 12px 26px rgba(0,0,0,.70), 0 0 18px rgba(123,92,255,.45);
}
/* ========================================================
   GRID ADS 300×250 — CARD LIKE VIDEO (WITH BOTTOM "TEXT ZONE")
   ======================================================== */

.pg-ad-label{ display:none !important; }

/* Карточка рекламы как video-item, но колонкой */
.pg-ad-shell--grid{
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at 0 0, rgba(123,92,255,.16), var(--pg-bg-deep));
  border: 1px solid rgba(124,140,255,.38);
  box-shadow: 0 12px 34px rgba(0,0,0,.88), 0 0 24px rgba(25,20,68,.6);
  display:flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

.pg-ad-shell--grid:hover{
  transform: translateY(-4px);
  background: radial-gradient(circle at 0 0, rgba(255,47,146,.20), var(--pg-bg-deep));
  border-color: rgba(255,47,146,.78);
  box-shadow: 0 20px 56px rgba(0,0,0,.95), 0 0 34px rgba(123,92,255,.85), 0 0 46px rgba(255,47,146,.55);
}

/* Слот без "второй рамки": баннер как часть карточки */
.pg-ad-shell--grid .pg-ad-slot--300x250{
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 18px 18px 0 0; /* в тон карточке */
  overflow: hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* фиксируем реальный размер баннера, но без обводок/подложек */
.pg-ad-shell--grid .pg-adsterra,
.pg-ad-shell--grid .pg-adsterra iframe,
.pg-ad-shell--grid .pg-ad-slot--300x250 iframe,
.pg-ad-shell--grid .pg-ad-slot--300x250 img{
  width: 300px !important;
  height: 250px !important;
  border: 0 !important;
  display:block !important;
}


/* Нижняя "текстовая зона" как у карточек */
.pg-ad-body{
  padding: 10px 12px 12px;
  display:flex;
  flex-direction: column;
  gap: 6px;
}

.pg-ad-title{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(224,228,255,.92);
}

.pg-ad-meta{
  display:flex;
  justify-content:flex-start;
}

.pg-ad-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 3px 10px 4px;
  border-radius:999px;
  background: rgba(16,20,40,.96);
  border: 1px solid rgba(124,140,255,.55);
  color:#d7ddff;
  letter-spacing: .08em;
  font-weight: 900;
  font-size: 11px;
}

/* На узких экранах скрываем grid-ads */
@media (max-width: 720px){
  .pg-ad-shell--grid{ display:none !important; }
}

/* ========================================================
   SIDEBAR ADS (MID + SKY) — add bottom "AD"
   ======================================================== */

.pg-ad-shell--sidebar{
  border-radius: 0px;
  overflow: hidden;
  background: radial-gradient(circle at 0 0, rgba(123,92,255,.16), var(--pg-bg-deep));
  border: 1px solid rgba(124,140,255,.38);
  box-shadow: 0 12px 34px rgba(0,0,0,.70), 0 0 24px rgba(25,20,68,.45);
}

.pg-ad-shell--sidebar .pg-ad-slot{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 10px;
}

.pg-ad-shell--sidebar .pg-ad-slot--300x250{
  padding: 10px;
}

.pg-ad-shell--sidebar .pg-ad-body{
  padding: 0 12px 12px;
}
/* ========================================================
   VIDEO META — compact, 2 rows, star + eye icons
   ======================================================== */

.video-meta{
  padding: 10px 12px 12px;
  margin-top: auto;
  display:flex;
  flex-direction: column;
  gap: 8px;
}

.video-meta-row{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items:center;
}

/* pills */
.video-meta-cat,
.video-meta-duration,
.video-meta-rating,
.video-meta-views{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 4px 10px 5px;
  border-radius:999px;
  background: rgba(16,20,40,.96);
  border: 1px solid rgba(124,140,255,.40);
  color:#d7ddff;
  font-weight: 800;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .02em;
}

.video-meta-duration{
  border-color: rgba(124,140,255,.30);
  color:#cfd5ff;
}

/* rating */
.video-meta-rating{
  border-color: rgba(255,47,146,.36);
  gap: 6px;
}
.video-meta-rating::before{
  content:"★";
  font-size: 12px;
  line-height: 1;
  opacity: .95;
}
.video-meta-rating .video-meta-score{
  font-weight: 900;
  color:#f3f2ff;
}
.video-meta-rating .video-meta-votes{
  font-weight: 700;
  opacity: .82;
}

/* views */
.video-meta-views{
  border-color: rgba(124,140,255,.48);
  gap: 6px;
}
.video-meta-views::before{
  content:"👁";
  font-size: 12px;
  line-height: 1;
  opacity: .85;
}
.video-meta-views .video-meta-views-num{
  font-weight: 900;
  color:#f3f2ff;
}

/* hover */
.video-item:hover .video-meta-cat,
.video-item:hover .video-meta-duration,
.video-item:hover .video-meta-rating,
.video-item:hover .video-meta-views{
  border-color: rgba(255,47,146,.70);
  background: radial-gradient(circle at 0 0, rgba(255,47,146,.18), rgba(16,20,40,.98));
  color:#fff;
  box-shadow: 0 10px 22px rgba(0,0,0,.70);
}
/* =========================================================
   PATCH (cards + ads) — add to the END of custom.css
   - Fix ad slot cropping (160x600 + 300x250)
   - Compact meta + stronger title contrast
   - Keep views as views, add eye icon; keep star for rating
   - Hide any play overlays / badges if they exist
   ========================================================= */

/* ---------------- VIDEO CARD: title + compact meta ---------------- */

.video-item .video-title{
  color:#f2f4ff;
  font-weight:650;
  text-shadow:0 1px 0 rgba(0,0,0,.35);
}

.video-item .video-meta{
  margin-top:8px;
  gap:6px;
}

.video-item .video-meta-tag,
.video-item .video-meta-rating,
.video-item .video-meta-views{
  font-size:12px;
  line-height:1;
  padding:4px 8px;
  border-radius:999px;
}

.video-item .video-meta-star{
  margin-right:5px;
  font-size:12px;
  line-height:1;
  opacity:.95;
}

.video-item .video-meta-votes{
  font-size:11px;
  opacity:.75;
  margin-left:4px;
}

/* eye icon before views — numbers unchanged */
.video-item .video-meta-views::before{
  content:"";
  display:inline-block;
  width:14px;
  height:14px;
  margin-right:6px;
  vertical-align:-2px;
  background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5c-5.2 0-9.6 3.1-11 7 1.4 3.9 5.8 7 11 7s9.6-3.1 11-7c-1.4-3.9-5.8-7-11-7Zm0 11a4 4 0 1 1 0-8 4 4 0 0 1 0 8Z'/%3E%3Cpath d='M12 10a2 2 0 1 0 0 4 2 2 0 0 0 0-4Z'/%3E%3C/svg%3E") no-repeat center/contain;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5c-5.2 0-9.6 3.1-11 7 1.4 3.9 5.8 7 11 7s9.6-3.1 11-7c-1.4-3.9-5.8-7-11-7Zm0 11a4 4 0 1 1 0-8 4 4 0 0 1 0 8Z'/%3E%3Cpath d='M12 10a2 2 0 1 0 0 4 2 2 0 0 0 0-4Z'/%3E%3C/svg%3E") no-repeat center/contain;
  opacity:.9;
}

/* ---------------- Hide overlays/badges if present ---------------- */

.video-item .pg-play,
.video-item .pg-play-btn,
.video-item .video-play,
.video-item .video-badge,
.video-item .badge-new,
.video-item .badge-hd{
  display:none !important;
}

/* ---------------- ADS: stop cropping + size-correct slots ---------------- */

.pg-ad-shell{
  overflow:visible;
}

.pg-ad-shell--sidebar-sky{
  padding:10px;
  display:flex;
  justify-content:center;
}

.pg-ad-shell--sidebar-sky .pg-ad-slot--160x600{
  padding:0 !important;
  width:160px;
  aspect-ratio:160 / 600;
  height:auto;
  display:flex;
  align-items:center;
  justify-content:center;
}

.pg-ad-shell--grid .pg-ad-slot--300x250{
  padding:0 !important;
  width:min(300px, 100%);
  aspect-ratio:300 / 250;
  height:auto;
  display:flex;
  align-items:center;
  justify-content:center;
}

.pg-ad-shell .pg-ad-slot iframe,
.pg-ad-shell .pg-ad-slot img,
.pg-ad-shell .pg-ad-slot object,
.pg-ad-shell .pg-ad-slot embed{
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  display:block;
  border:0;
}
/* =========================================================
   ADS — FINAL (NO CROPPING + CLEAN AD CARDS)
   УДАЛИ ВСЁ НИЖЕ ПЕРВОГО "AD SLOTS — NO CROPPING" И ВСТАВЬ ЭТО.
   ========================================================= */

/* 0) Убираем любые подписи/нижние блоки, если они существуют в разметке */
.pg-ad-label,
.pg-ad-label *,
.pg-ad-body,
.pg-ad-title,
.pg-ad-meta,
.pg-ad-badge{
  display: none !important;
}

/* 1) Единый “card” вид для рекламы (как видео-карточки) */
.pg-ad-shell--grid,
.pg-ad-shell--sidebar{
  position: relative;
  border-radius: 18px;
  overflow: hidden !important;
  background: radial-gradient(circle at 0 0, rgba(123,92,255,.16), var(--pg-bg-deep));
  border: 1px solid rgba(124,140,255,.38);
  box-shadow: 0 12px 34px rgba(0,0,0,.88), 0 0 24px rgba(25,20,68,.6);
}

/* 2) GRID AD: центрируем баннер в растянутой grid-ячейке (убираем “пустой низ”) */
.pg-ad-shell--grid{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

.pg-ad-shell--grid:hover{
  transform: translateY(-4px);
  background: radial-gradient(circle at 0 0, rgba(255,47,146,.20), var(--pg-bg-deep));
  border-color: rgba(255,47,146,.78);
  box-shadow: 0 20px 56px rgba(0,0,0,.95), 0 0 34px rgba(123,92,255,.85), 0 0 46px rgba(255,47,146,.55);
}

/* аккуратный бейдж “AD”, не мешает кликам */
.pg-ad-shell--grid::after{
  content: "AD";
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px 4px;
  border-radius: 999px;
  background: rgba(16,20,40,.92);
  border: 1px solid rgba(124,140,255,.45);
  color: rgba(236,238,255,.92);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  pointer-events: none;
}

/* 3) 300x250 GRID SLOT: держим “родной” размер и масштабируем без кропа */
.pg-ad-shell--grid .pg-ad-slot--300x250{
  position: relative !important;
  width: min(300px, 100%) !important;
  aspect-ratio: 300 / 250;
  height: auto !important;
  border-radius: 14px;
  overflow: hidden !important;
  display: block !important;
  line-height: 0;
  container-type: inline-size; /* даёт cqw */
}

/* на случай лишних обёрток от инжектора */
.pg-ad-shell--grid .pg-ad-slot--300x250 > *{
  max-width: none !important;
}

.pg-ad-shell--grid .pg-ad-slot--300x250 iframe,
.pg-ad-shell--grid .pg-ad-slot--300x250 img,
.pg-ad-shell--grid .pg-ad-slot--300x250 object,
.pg-ad-shell--grid .pg-ad-slot--300x250 embed{
  width: 300px !important;
  height: 250px !important;
  border: 0 !important;
  display: block !important;

  position: absolute !important;
  top: 0 !important;
  left: 50% !important;

  transform-origin: top center !important;
  transform: translateX(-50%) scale(calc(100cqw / 300px)) !important;
}

/* 4) SIDEBAR SKY: убираем тот самый padding:10px и центрируем */
.pg-ad-shell--sidebar-sky{
  padding: 0 !important;   /* важно: убирает “лишний квадрат” */
  margin: 0 !important;
  display: flex !important;
  justify-content: center !important;
}

/* 5) 160x600 SIDEBAR SLOT: “родной” размер + масштабирование без кропа */
.pg-ad-shell--sidebar-sky .pg-ad-slot--160x600{
  position: relative !important;
  width: min(160px, 100%) !important;
  max-width: 160px !important;
  aspect-ratio: 160 / 600;
  height: auto !important;

  border-radius: 14px;
  overflow: hidden !important;
  display: block !important;
  line-height: 0;
  container-type: inline-size;
}

.pg-ad-shell--sidebar-sky .pg-ad-slot--160x600 > *{
  max-width: none !important;
}

.pg-ad-shell--sidebar-sky .pg-ad-slot--160x600 iframe,
.pg-ad-shell--sidebar-sky .pg-ad-slot--160x600 img,
.pg-ad-shell--sidebar-sky .pg-ad-slot--160x600 object,
.pg-ad-shell--sidebar-sky .pg-ad-slot--160x600 embed{
  width: 160px !important;
  height: 600px !important;
  border: 0 !important;
  display: block !important;

  position: absolute !important;
  top: 0 !important;
  left: 50% !important;

  transform-origin: top center !important;
  transform: translateX(-50%) scale(calc(100cqw / 160px)) !important;
}

/* 6) Если в сайдбаре есть 300x250 — делаем так же (без кропа) */
.pg-ad-shell--sidebar .pg-ad-slot--300x250{
  position: relative !important;
  width: min(300px, 100%) !important;
  aspect-ratio: 300 / 250;
  height: auto !important;

  border-radius: 14px;
  overflow: hidden !important;
  display: block !important;
  line-height: 0;
  container-type: inline-size;
}

.pg-ad-shell--sidebar .pg-ad-slot--300x250 iframe,
.pg-ad-shell--sidebar .pg-ad-slot--300x250 img,
.pg-ad-shell--sidebar .pg-ad-slot--300x250 object,
.pg-ad-shell--sidebar .pg-ad-slot--300x250 embed{
  width: 300px !important;
  height: 250px !important;
  border: 0 !important;
  display: block !important;

  position: absolute !important;
  top: 0 !important;
  left: 50% !important;

  transform-origin: top center !important;
  transform: translateX(-50%) scale(calc(100cqw / 300px)) !important;
}

/* 7) На мобилке grid-ads можно скрывать (как было) */
@media (max-width: 720px){
  .pg-ad-shell--grid{ display:none !important; }
}
/* =========================================================
   SIDEBAR SKY — REMOVE CARD AROUND 160x600 (only this placement)
   Paste at the very END of custom.css
   ========================================================= */

.pg-ad-shell--sidebar.pg-ad-shell--sidebar-sky{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.pg-ad-shell--sidebar.pg-ad-shell--sidebar-sky .pg-ad-slot{
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* опционально: если не хочешь скругление у самого баннера */
.pg-ad-shell--sidebar.pg-ad-shell--sidebar-sky .pg-ad-slot--160x600{
  border-radius: 0 !important;
}
/* опустить ТОЛЬКО sidebar-sky (160x600) на N пикселей */
.pg-ad-shell--sidebar.pg-ad-shell--sidebar-sky{
  padding-top: 12px !important; /* <-- меняй 12px на сколько надо */
}

.pg-ad-shell--sidebar.pg-ad-shell--sidebar-sky .pg-ad-slot--160x600{
  margin-top: 0 !important;
}
/* =========================================================
   SINGLE LAYOUT FIX (main + right aside)
   paste at END of custom.css
   ========================================================= */

.single .pg-single-layout{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

/* на планшете/мобилке складываем вниз */
@media (max-width: 1100px){
  .single .pg-single-layout{
    grid-template-columns: 1fr;
  }
}

/* ===== Right aside container ===== */
.single .pg-single-aside{
  position: sticky;
  top: 14px;
  align-self: start;
}

/* ===== 300x250 справа (у тебя класс --aside, а стили в основном под --sidebar/--grid) ===== */
.pg-ad-shell--aside{
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at 0 0, rgba(123,92,255,.16), var(--pg-bg-deep));
  border: 1px solid rgba(124,140,255,.38);
  box-shadow: 0 12px 34px rgba(0,0,0,.70), 0 0 24px rgba(25,20,68,.45);
}
.pg-ad-shell--aside .pg-ad-slot{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 12px;
}

/* ===== Top videos list (убираем буллеты + делаем компактные карточки) ===== */
.single .pg-single-top-list{
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.single .pg-single-top-link{
  display: flex;
  gap: 10px;
  text-decoration: none;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(124,140,255,.22);
  background: rgba(6,7,20,.55);
  transition: transform .12s ease, border-color .16s ease, box-shadow .16s ease;
}

.single .pg-single-top-link:hover{
  transform: translateY(-1px);
  border-color: rgba(255,47,146,.55);
  box-shadow: 0 12px 26px rgba(0,0,0,.60);
}

.single .pg-single-top-thumb img{
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  display:block;
}

.single .pg-single-top-title{
  font-weight: 800;
  color: rgba(236,238,255,.95);
  font-size: 12.5px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.single .pg-single-top-duration{
  margin-top: 6px;
  display: inline-flex;
  padding: 4px 10px 5px;
  border-radius: 999px;
  background: rgba(16,20,40,.96);
  border: 1px solid rgba(124,140,255,.40);
  color:#d7ddff;
  font-weight: 800;
  font-size: 11px;
}

/* ===== Taxonomy pills (Category/Tags/Models) ===== */
.single .pg-video-tax-row{
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(124,140,255,.12);
}
@media (max-width: 640px){
  .single .pg-video-tax-row{ grid-template-columns: 1fr; }
}

.single .pg-video-tax-label{
  color: rgba(200,206,255,.78);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.single .pg-video-tax-list{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.single .pg-tax-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 10px 7px;
  border-radius: 999px;
  background: rgba(16,20,40,.96);
  border: 1px solid rgba(124,140,255,.40);
  color:#d7ddff;
  font-weight: 800;
  font-size: 12px;
  text-decoration:none;
}

.single .pg-tax-pill:hover{
  border-color: rgba(255,47,146,.60);
  background: radial-gradient(circle at 0 0, rgba(255,47,146,.18), rgba(16,20,40,.98));
  color:#fff;
}

/* ===== Bottom strip ad (728x90) чтобы не “усыхал” ===== */
.single .pg-single-bottom-ad .pg-ad-shell--strip{
  display:flex;
  justify-content:center;
  padding: 14px 0 6px;
}

.single .pg-ad-slot--728x90{
  width: min(728px, 100%);
  aspect-ratio: 728 / 90;
  height: auto;
  position: relative;
  overflow: hidden;
  container-type: inline-size;
}

.single .pg-ad-slot--728x90 iframe,
.single .pg-ad-slot--728x90 img{
  width: 728px !important;
  height: 90px !important;
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  transform-origin: top center !important;
  transform: translateX(-50%) scale(calc(100cqw / 728px)) !important;
  border: 0 !important;
  display:block !important;
}

/* мобилка: показывай 320x50, прячь 728x90 */
@media (max-width: 720px){
  .single .pg-ad-desktop{ display:none !important; }
  .single .pg-ad-mobile{ display:flex !important; justify-content:center; }
}
/* Single: never show tags on page (tags still exist for related queries) */
.single .pg-tax-pill--tag{ display:none !important; }

@supports(selector(:has(*))){
  .single .pg-video-tax-row:has(.pg-tax-pill--tag){ display:none !important; }
}
/* ===== PLAYER polish (buttons were default/ugly) ===== */
.pg-player { position: relative; background: #000; border-radius: 18px; overflow: hidden; }
.pg-player video,
.pg-player .pg-player-video { width: 100%; height: auto; display: block; background: #000; }

.pg-player-ui{
  position:absolute; left:0; right:0; bottom:0;
  padding:10px 12px;
  display:flex; align-items:center; gap:10px;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));
}

.pg-player-btn{
  appearance:none;
  width:36px; height:36px;
  border-radius:12px;
  border:1px solid rgba(124,146,255,.35);
  background: rgba(255,255,255,.08);
  color: rgba(234,240,255,.95);
  display:inline-flex; align-items:center; justify-content:center;
  cursor:pointer;
}
.pg-player-btn:hover{ background: rgba(255,255,255,.12); }
.pg-player-btn:active{ transform: translateY(1px); }

.pg-player-time{
  font-size:12px;
  color: rgba(234,240,255,.85);
  min-width: 92px;
  text-align:center;
  user-select:none;
}

.pg-player-range{
  -webkit-appearance:none; appearance:none;
  width:100%; height:6px;
  border-radius:999px;
  background: rgba(255,255,255,.18);
  outline:none;
}
.pg-player-range::-webkit-slider-thumb{
  -webkit-appearance:none; appearance:none;
  width:14px; height:14px; border-radius:50%;
  background: var(--pg-violet, #8b5cff);
  border: 2px solid rgba(0,0,0,.35);
}
.pg-player-range::-moz-range-thumb{
  width:14px; height:14px; border-radius:50%;
  background: var(--pg-violet, #8b5cff);
  border: 2px solid rgba(0,0,0,.35);
}

/* убираем мусорные “Imported from …” если мешает */
.import-note{ display:none !important; }

/* ===== More like this: нормальная кнопка ===== */
.pg-related-more{
  display:block;
  margin:16px auto 0;
  padding:10px 16px;
  border-radius:999px;
  border:1px solid rgba(124,146,255,.35);
  background: rgba(124,146,255,.14);
  color: rgba(234,240,255,.95);
  font-weight:700;
  letter-spacing:.02em;
  cursor:pointer;
}
.pg-related-more:hover{ background: rgba(124,146,255,.20); }

/* На всякий случай: не показывать WP-теги нигде в UI */
a[rel="tag"], .post-tags, .entry-tags, .tagcloud{ display:none !important; }

/* Ад-сетки: не обрезать */
.pg-ad-shell, .pg-ad-slot, .pg-single-bottom-ad, .pg-single-aside-ad{ overflow: visible !important; }
/* ==== SINGLE: right block header polish ==== */
.single .pg-single-aside-block--top{
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(124,140,255,.22);
  background: rgba(6,7,20,.55);
  box-shadow: 0 12px 26px rgba(0,0,0,.55);
}

.single .pg-top-videos-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  margin: 0 0 10px;
}

.single .pg-single-aside-title{
  margin:0;
  font-size:13px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  color: rgba(236,238,255,.95);
}

.single .pg-top-videos-view-all{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(124,140,255,.38);
  background: rgba(6,7,20,.55);
  color: rgba(224,228,255,.92);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-decoration:none;
  white-space: nowrap;
}
.single .pg-top-videos-view-all:hover{
  border-color: rgba(255,47,146,.70);
  color:#fff;
  background: radial-gradient(circle at 0 0, rgba(255,47,146,.18), rgba(6,7,20,.65));
  box-shadow: 0 12px 26px rgba(0,0,0,.60);
}
/* ==== SINGLE: top list title wrap (2 lines) ==== */
.single .pg-single-top-meta{ flex:1 1 auto; min-width:0; }

.single .pg-single-top-title{
  white-space: normal !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  line-height: 1.25 !important;
}
/* ==== PG PLAYER UI (matches pg-player.js classes) ==== */
.pg-player{ position:relative; background:#000; border-radius:18px; overflow:hidden; }
.pg-player video{ width:100%; height:auto; display:block; background:#000; }

.pg-player-ui{
  position:absolute;
  left:0; right:0; bottom:0;
  padding:10px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));
}

.pg-player-btn{
  appearance:none;
  width:36px; height:36px;
  border-radius:12px;
  border:1px solid rgba(124,140,255,.35);
  background: rgba(255,255,255,.08);
  color: rgba(234,240,255,.95);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.pg-player-btn:hover{ background: rgba(255,255,255,.12); }
.pg-player-btn:active{ transform: translateY(1px); }

.pg-player-time{
  font-size:12px;
  color: rgba(234,240,255,.85);
  min-width: 92px;
  text-align:center;
  user-select:none;
}

/* progress + volume ranges */
.pg-player-progress,
.pg-player-volume{
  -webkit-appearance:none;
  appearance:none;
  height:6px;
  border-radius:999px;
  background: rgba(255,255,255,.18);
  outline:none;
}

.pg-player-progress{ width:100%; }
.pg-player-volume{ width:110px; }

.pg-player-progress::-webkit-slider-thumb,
.pg-player-volume::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:14px; height:14px;
  border-radius:50%;
  background: var(--pg-violet, #7b5cff);
  border:2px solid rgba(0,0,0,.35);
}
.pg-player-progress::-moz-range-thumb,
.pg-player-volume::-moz-range-thumb{
  width:14px; height:14px;
  border-radius:50%;
  background: var(--pg-violet, #7b5cff);
  border:2px solid rgba(0,0,0,.35);
}
.pg-static-page{ padding:24px 16px; }
.pg-static-page__inner{ max-width: 980px; margin:0 auto; }
.pg-static-page__title{ margin:0 0 14px; }
.pg-static-page__content{ line-height:1.65; }
/* =========================================================
   PORNGID — STATIC / LEGAL PAGES (FULL REPLACEMENT)
   Цель: единый вид для Privacy/Cookies/Legal/Contact/Imprint/DMCA/Ads/Links
   ВАЖНО: CSS НЕ МОЖЕТ "показать" контент, если страница рендерится как грид/архив.
   ========================================================= */

:root{
  --pg-static-max: 980px;
  --pg-static-pad-y: 28px;
  --pg-static-pad-x: 18px;

  --pg-text: rgba(228,231,255,.88);
  --pg-text-dim: rgba(228,231,255,.74);
  --pg-title: #f7f4ff;

  --pg-link: #8eaaff;
  --pg-link-hover: #c4d8ff;

  --pg-card-bg: rgba(18,16,38,.55);
  --pg-card-brd: rgba(146,120,255,.18);
  --pg-card-brd-strong: rgba(146,120,255,.28);
  --pg-card-shadow: 0 12px 40px rgba(0,0,0,.35);
}

/* ---------- Универсальный контейнер для страниц ---------- */
/* Подхватываем максимум типовых WP контейнеров, не ломая остальную тему */
body.page .entry-header,
body.page .entry-content,
body.page .page-content,
body.page article.page,
.pg-static-page,
.pg-legal{
  box-sizing: border-box;
}

body.page .entry-header,
body.page article.page{
  max-width: var(--pg-static-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pg-static-pad-x);
  padding-right: var(--pg-static-pad-x);
}

/* Основной контент */
body.page .entry-content,
body.page .page-content,
.pg-static-page__content,
.pg-legal{
  max-width: var(--pg-static-max);
  margin-left: auto;
  margin-right: auto;
  padding: var(--pg-static-pad-y) var(--pg-static-pad-x);
  color: var(--pg-text);
  line-height: 1.7;

  background: radial-gradient(1200px 700px at 20% 0%, rgba(120,90,255,.10), transparent 55%),
              radial-gradient(1200px 700px at 80% 20%, rgba(255,90,205,.08), transparent 60%),
              var(--pg-card-bg);
  border: 1px solid var(--pg-card-brd);
  border-radius: 18px;
  box-shadow: var(--pg-card-shadow);
}

/* Если тема уже дает внутренний враппер — не даем ему ломать ширину */
.pg-static-page__inner{
  max-width: var(--pg-static-max);
  margin: 0 auto;
}

/* ---------- Заголовки ---------- */
body.page .entry-title,
.pg-static-page__content h1,
.pg-legal h1{
  color: var(--pg-title);
  letter-spacing: .2px;
}

body.page .entry-title{
  margin: 22px auto 12px;
  padding-top: 6px;
  font-size: 44px;
  line-height: 1.1;
}

/* У тебя местами H1 дублируется (title + H1 в контенте) — убираем H1 внутри контента, если он первый */
body.page .entry-content > h1:first-child,
body.page .page-content > h1:first-child,
.pg-static-page__content > h1:first-child,
.pg-legal > h1:first-child{
  display: none;
}

body.page .entry-content h2,
body.page .page-content h2,
.pg-static-page__content h2,
.pg-legal h2{
  margin: 18px 0 10px;
  font-size: 20px;
  color: var(--pg-title);
}

body.page .entry-content h3,
body.page .page-content h3,
.pg-static-page__content h3,
.pg-legal h3{
  margin: 16px 0 8px;
  font-size: 17px;
  color: rgba(247,244,255,.92);
}

body.page .entry-content h4,
body.page .page-content h4,
.pg-static-page__content h4,
.pg-legal h4{
  margin: 14px 0 8px;
  font-size: 15px;
  color: rgba(247,244,255,.90);
}

/* ---------- Текст / списки / ссылки ---------- */
body.page .entry-content p,
body.page .page-content p,
.pg-static-page__content p,
.pg-legal p{
  margin: 0 0 12px;
  color: var(--pg-text);
}

body.page .entry-content small,
body.page .page-content small,
.pg-static-page__content small,
.pg-legal small{
  color: var(--pg-text-dim);
}

body.page .entry-content ul,
body.page .page-content ul,
body.page .entry-content ol,
body.page .page-content ol,
.pg-static-page__content ul,
.pg-static-page__content ol,
.pg-legal ul,
.pg-legal ol{
  margin: 0 0 14px;
  padding-left: 1.15em;
}

body.page .entry-content li,
body.page .page-content li,
.pg-static-page__content li,
.pg-legal li{
  margin: 6px 0;
  color: var(--pg-text);
}

body.page .entry-content a,
body.page .page-content a,
.pg-static-page__content a,
.pg-legal a{
  color: var(--pg-link);
  text-decoration: none;
  border-bottom: 1px solid rgba(142,170,255,.28);
}

body.page .entry-content a:hover,
body.page .page-content a:hover,
.pg-static-page__content a:hover,
.pg-legal a:hover{
  color: var(--pg-link-hover);
  border-bottom-color: rgba(196,216,255,.45);
}

body.page .entry-content em,
body.page .page-content em,
.pg-static-page__content em,
.pg-legal em{
  color: rgba(154,163,208,.90);
}

body.page .entry-content hr,
body.page .page-content hr,
.pg-static-page__content hr,
.pg-legal hr{
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(146,120,255,.35), transparent);
  margin: 18px 0;
}

/* ---------- На всякий: если эти страницы показываются как "архив/грид" после починки слуга ---------- */
/* НЕ трогаем глобально, только когда это реально страница (body.page). */
body.page .pg-sort,
body.page .pg-grid .pg-card--video,
body.page .pg-grid .pg-video-card{
  /* если на page.php вдруг подтягивается грид — не даем ему доминировать */
  max-width: 100%;
}

/* Мобильная типографика */
@media (max-width: 680px){
  body.page .entry-title{
    font-size: 32px;
  }
  body.page .entry-content,
  body.page .page-content,
  .pg-static-page__content,
  .pg-legal{
    padding: 18px 14px;
    border-radius: 16px;
  }
}

/* Term cards: make name big like a “category/pornstar title” */
.pg-term-card .video-title{
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .2px;
}