/* ═══════════════════════════════════════════════════════════════════
   PornMedium.com — Modern Dark-Light Hybrid Theme v3
   Unique design — not derived from any template
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* ── Core palette ─────────────────────────────────── */
  --pm-red: #e32b2b;
  --pm-red-hover: #cc2424;
  --pm-red-dark: #a81b1b;
  --pm-red-glow: rgba(227, 43, 43, 0.25);
  --pm-red-soft: rgba(227, 43, 43, 0.08);
  --pm-red-bg: #fef2f2;

  /* ── Surfaces ─────────────────────────────────────── */
  --surface-page: #f0f2f6;
  --surface-card: #ffffff;
  --surface-card-hover: #fffafa;
  --surface-raised: #ffffff;
  --surface-header: #111118;
  --surface-sidebar: #fafbfd;
  --surface-footer: #0d0d12;
  --surface-input: #eef0f4;
  --surface-overlay: rgba(0, 0, 0, 0.6);

  /* ── Text ─────────────────────────────────────────── */
  --text-high: #111827;
  --text-mid: #4b5563;
  --text-low: #9ca3af;
  --text-inverse: #f9fafb;
  --text-link: #e32b2b;

  /* ── Borders ──────────────────────────────────────── */
  --border-default: #e5e7eb;
  --border-subtle: #f0f1f3;
  --border-focus: var(--pm-red);

  /* ── Radius ───────────────────────────────────────── */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-full: 9999px;

  /* ── Shadows ──────────────────────────────────────── */
  --sh-xs: 0 1px 2px rgba(0,0,0,0.04);
  --sh-sm: 0 2px 6px rgba(0,0,0,0.06);
  --sh-md: 0 4px 14px rgba(0,0,0,0.08);
  --sh-lg: 0 10px 30px rgba(0,0,0,0.12);
  --sh-red: 0 4px 20px rgba(227,43,43,0.2);
  --sh-card-hover: 0 8px 24px rgba(0,0,0,0.1), 0 0 0 1px rgba(227,43,43,0.12);

  /* ── Timing ───────────────────────────────────────── */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.15s;
  --t-normal: 0.25s;
  --t-slow: 0.4s;

  /* ── Z layers ─────────────────────────────────────── */
  --z-base: 1;
  --z-sticky: 100;
  --z-header: 900;
  --z-drawer-bg: 1000;
  --z-drawer: 1001;
  --z-modal-bg: 2000;
  --z-modal: 2001;
  --z-toast: 3000;
}

/* ── Reset ────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--surface-page);
  color: var(--text-high);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 0.95rem; font-weight: 600; }

a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--pm-red); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

*:focus-visible { outline: 2px solid var(--pm-red); outline-offset: 2px; border-radius: var(--r-xs); }

.container { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 24px; }

/* ═══════════════════════════════════════════════════════════════════
   HEADER — Dark glassmorphism bar
   ═══════════════════════════════════════════════════════════════════ */

.header {
  background: linear-gradient(180deg, #13131a 0%, #1a1a24 100%);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 4px 20px rgba(0,0,0,0.3);
}

.header__inner {
  display: flex;
  align-items: center;
  height: 60px;
  gap: 12px;
}

.header__logo { display: flex; align-items: center; flex-shrink: 0; }
.header__logo svg { height: 38px; width: auto; filter: drop-shadow(0 0 8px rgba(227,43,43,0.3)); }

.header__nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 12px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.header__nav::-webkit-scrollbar { display: none; }

.header__nav a {
  padding: 7px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  border-radius: var(--r-sm);
  transition: all var(--t-fast) var(--ease);
  letter-spacing: 0.01em;
}
.header__nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.header__nav a.active {
  color: #fff;
  background: var(--pm-red);
  box-shadow: 0 2px 12px var(--pm-red-glow);
}

.header__search {
  position: relative;
  width: 260px;
  flex-shrink: 0;
}
.header__search input {
  width: 100%;
  padding: 8px 38px 8px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-full);
  color: #fff;
  font-size: 0.82rem;
  outline: none;
  transition: all var(--t-normal) var(--ease);
}
.header__search input::placeholder { color: rgba(255,255,255,0.35); }
.header__search input:focus {
  background: rgba(255,255,255,0.12);
  border-color: var(--pm-red);
  box-shadow: 0 0 0 3px var(--pm-red-glow);
}
.header__search button {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  padding: 6px 10px; color: rgba(255,255,255,0.5);
  transition: color var(--t-fast);
}
.header__search button:hover { color: var(--pm-red); }

.header__menu-btn {
  display: none;
  padding: 8px;
  color: rgba(255,255,255,0.7);
}
.header__menu-btn:hover { color: var(--pm-red); }

.header__user {
  padding: 8px;
  color: rgba(255,255,255,0.5);
  transition: color var(--t-fast);
}
.header__user:hover { color: var(--pm-red); }

/* ═══════════════════════════════════════════════════════════════════
   LAYOUT — Sidebar + Main
   ═══════════════════════════════════════════════════════════════════ */

.layout {
  display: flex;
  min-height: calc(100vh - 60px);
}

.sidebar {
  width: 230px;
  flex-shrink: 0;
  background: var(--surface-sidebar);
  border-right: 1px solid var(--border-default);
  padding: 20px 0;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-default) transparent;
}

.sidebar__title {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--pm-red);
  padding: 12px 20px 6px;
  margin-top: 4px;
}
.sidebar__title:first-child { margin-top: 0; }

.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  font-size: 0.82rem;
  color: var(--text-mid);
  transition: all var(--t-fast) var(--ease);
  border-left: 2px solid transparent;
  margin: 1px 0;
}
.sidebar a:hover {
  color: var(--pm-red);
  background: var(--pm-red-soft);
  border-left-color: var(--pm-red);
}
.sidebar a.active {
  color: var(--pm-red);
  background: var(--pm-red-bg);
  border-left-color: var(--pm-red);
  font-weight: 600;
}
.sidebar a i { width: 16px; text-align: center; font-size: 0.75rem; opacity: 0.5; }
.sidebar a:hover i, .sidebar a.active i { opacity: 1; color: var(--pm-red); }

.sidebar__divider { height: 1px; background: var(--border-default); margin: 12px 20px; }

/* ═══════════════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════════════ */

.main {
  flex: 1;
  min-width: 0;
  padding: 28px 32px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  position: relative;
}
.section-header h1,
.section-header h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-high);
  white-space: nowrap;
  position: relative;
  padding-left: 14px;
}
.section-header h1::before,
.section-header h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: var(--pm-red);
  border-radius: 2px;
}
.section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-default) 0%, transparent 100%);
}
.section-header .filter-select {
  padding: 7px 32px 7px 12px;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-sm);
  color: var(--text-mid);
  font-size: 0.78rem;
  font-weight: 500;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  outline: none;
  transition: border-color var(--t-fast);
}
.section-header .filter-select:focus { border-color: var(--pm-red); }

/* ═══════════════════════════════════════════════════════════════════
   VIDEO GRID — Modern cards with depth
   ═══════════════════════════════════════════════════════════════════ */

.vgrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}

.vcard {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--sh-xs);
  transition: transform var(--t-normal) var(--ease),
              box-shadow var(--t-normal) var(--ease),
              border-color var(--t-normal) var(--ease);
  opacity: 0;
  transform: translateY(16px);
}
.vcard.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--t-slow) var(--ease),
              transform var(--t-slow) var(--ease),
              box-shadow var(--t-normal) var(--ease),
              border-color var(--t-normal) var(--ease);
}
.vcard:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-card-hover);
  border-color: rgba(227,43,43,0.2);
}

.vcard__link { display: block; color: var(--text-high); }
.vcard__link:hover { color: var(--text-high); }

.vcard__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e4e6ea;
  background: linear-gradient(110deg, #e8eaee 30%, #f2f3f5 50%, #e8eaee 70%);
  background-size: 300% 100%;
  animation: shimmer 1.8s ease infinite;
}
.vcard.visible .vcard__thumb { animation: none; background: #e8eaee; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.vcard__img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow) var(--ease), opacity 0.3s;
}
.vcard:hover .vcard__img { transform: scale(1.06); }

.vcard__overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px 8px 7px;
  display: flex; justify-content: space-between; align-items: flex-end;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  pointer-events: none;
}

.vcard__duration,
.vcard__views {
  background: rgba(0,0,0,0.65);
  padding: 2px 8px;
  border-radius: var(--r-xs);
  font-weight: 700;
  font-size: 0.68rem;
  color: #f0f0f0;
  backdrop-filter: blur(4px);
  letter-spacing: 0.01em;
}
.vcard__duration i, .vcard__views i { margin-right: 3px; font-size: 0.58rem; }

.vcard__quality {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0,0,0,0.7);
  color: #fff; padding: 2px 7px;
  border-radius: var(--r-xs);
  font-size: 0.65rem; font-weight: 800;
  backdrop-filter: blur(4px);
  letter-spacing: 0.02em;
}

.vcard__badge {
  position: absolute; top: 8px; right: 8px;
  padding: 2px 9px;
  border-radius: var(--r-xs);
  font-size: 0.6rem; font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.vcard__badge--hd { background: var(--pm-red); color: #fff; }
.vcard__badge--4k {
  background: linear-gradient(135deg, var(--pm-red) 0%, #ff4444 100%);
  color: #fff;
  box-shadow: 0 2px 8px var(--pm-red-glow);
}

.vcard__title {
  padding: 10px 12px 6px;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-mid);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--t-fast);
}
.vcard:hover .vcard__title { color: var(--pm-red); }

.vcard__meta {
  padding: 0 12px 10px;
  font-size: 0.68rem;
  color: var(--text-low);
  display: flex; gap: 10px;
}
.vcard__meta i { color: var(--pm-red); margin-right: 2px; font-size: 0.58rem; }

/* ═══════════════════════════════════════════════════════════════════
   PAGINATION — Pill style
   ═══════════════════════════════════════════════════════════════════ */

.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 5px; margin: 32px 0; flex-wrap: wrap;
}
.pagination__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 14px;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-full);
  color: var(--text-mid);
  font-size: 0.82rem; font-weight: 600;
  transition: all var(--t-fast) var(--ease);
  box-shadow: var(--sh-xs);
}
.pagination__btn:hover {
  background: var(--pm-red-bg); border-color: var(--pm-red);
  color: var(--pm-red); transform: translateY(-2px);
  box-shadow: var(--sh-sm);
}
.pagination__btn--active {
  background: var(--pm-red); border-color: var(--pm-red);
  color: #fff; box-shadow: var(--sh-red); font-weight: 700;
}
.pagination__btn--active:hover { background: var(--pm-red-hover); color: #fff; }
.pagination__dots { color: var(--text-low); padding: 0 4px; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════
   BREADCRUMBS
   ═══════════════════════════════════════════════════════════════════ */

.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: var(--text-low);
  margin-bottom: 16px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-low); }
.breadcrumb a:hover { color: var(--pm-red); }
.breadcrumb__sep { color: var(--border-default); font-size: 0.65rem; }
.breadcrumb__current { color: var(--text-mid); font-weight: 500; }

/* ═══════════════════════════════════════════════════════════════════
   VIDEO PLAYER PAGE
   ═══════════════════════════════════════════════════════════════════ */

.player-page { max-width: 1400px; margin: 0 auto; padding: 24px 0; }

.player-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}
.player-sidebar { display: flex; flex-direction: column; gap: 16px; }
.player-sidebar .ad-slot { margin-bottom: 0; }

@media (max-width: 1024px) {
  .player-layout { grid-template-columns: 1fr; }
  .player-sidebar { display: none; }
}

.player-container {
  background: #000;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}
.player-container .spinner-wrapper { position: relative; }
.player-container video, .player-container iframe { display: block; width: 100%; }
.player-container .plyr,
.player-container .plyr--video,
.player-container .plyr__video-wrapper { min-height: 500px; background: #000; }

.video-info {
  background: var(--surface-card);
  border-radius: var(--r-lg);
  padding: 22px 26px;
  margin-bottom: 14px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--sh-sm);
}
.video-info h1 {
  font-size: 1.2rem; font-weight: 800;
  margin-bottom: 14px; line-height: 1.35;
  letter-spacing: -0.01em;
}
.video-meta {
  display: flex; align-items: center; gap: 20px;
  color: var(--text-low); font-size: 0.82rem; flex-wrap: wrap;
}
.video-meta span { display: flex; align-items: center; gap: 5px; }
.video-meta i { color: var(--pm-red); font-size: 0.75rem; }

/* ── Actions Bar ─────────────────────────────────────────────────── */

.video-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 10px 20px;
  margin-bottom: 14px;
  box-shadow: var(--sh-xs);
  flex-wrap: wrap;
}
.video-actions__left, .video-actions__right { display: flex; align-items: center; gap: 6px; }

.action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r-full);
  font-size: 0.78rem; font-weight: 600;
  color: var(--text-mid);
  background: var(--surface-page);
  border: 1px solid var(--border-default);
  transition: all var(--t-fast) var(--ease);
}
.action-btn:hover {
  background: var(--pm-red-bg); border-color: var(--pm-red);
  color: var(--pm-red);
}
.action-btn:active { transform: scale(0.96); }
.action-btn i { font-size: 0.82rem; }

.action-btn--like:hover, .action-btn--like.active {
  background: rgba(34,197,94,0.08); border-color: #22c55e; color: #16a34a;
}
.action-btn--dislike:hover, .action-btn--dislike.active {
  background: rgba(239,68,68,0.08); border-color: #ef4444; color: #dc2626;
}

/* ── Pornstar Card ───────────────────────────────────────────────── */

.pornstar-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 16px 22px;
  margin-bottom: 14px;
  box-shadow: var(--sh-xs);
  transition: border-color var(--t-fast);
}
.pornstar-card:hover { border-color: var(--pm-red); }
.pornstar-card__avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pm-red-bg) 0%, #fff 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--pm-red); font-size: 1.3rem; flex-shrink: 0;
  border: 2px solid var(--pm-red);
  box-shadow: 0 0 0 4px var(--pm-red-soft);
}
.pornstar-card__info { flex: 1; min-width: 0; }
.pornstar-card__name { font-size: 0.92rem; font-weight: 700; margin-bottom: 2px; }
.pornstar-card__name a:hover { color: var(--pm-red); }
.pornstar-card__stats { font-size: 0.75rem; color: var(--text-low); }
.pornstar-card__btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 18px;
  background: var(--pm-red); color: #fff;
  border-radius: var(--r-full);
  font-size: 0.78rem; font-weight: 700;
  transition: all var(--t-fast); white-space: nowrap;
}
.pornstar-card__btn:hover { background: var(--pm-red-hover); color: #fff; box-shadow: var(--sh-red); }

/* ── Video Tags ──────────────────────────────────────────────────── */

.video-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.video-tags a {
  padding: 5px 14px;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-full);
  font-size: 0.75rem; font-weight: 500;
  color: var(--text-mid);
  transition: all var(--t-fast);
}
.video-tags a:hover {
  background: var(--pm-red-bg); border-color: var(--pm-red);
  color: var(--pm-red); transform: translateY(-1px);
}
.video-tags a.tag--pornstar {
  background: var(--pm-red); border-color: var(--pm-red);
  color: #fff; font-weight: 700;
}
.video-tags a.tag--pornstar:hover {
  background: var(--pm-red-hover); color: #fff;
  box-shadow: var(--sh-red);
}

.video-description {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 18px 22px;
  color: var(--text-mid);
  font-size: 0.84rem; line-height: 1.7;
  margin-bottom: 20px;
  box-shadow: var(--sh-xs);
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER — Dark gradient
   ═══════════════════════════════════════════════════════════════════ */

.footer {
  background: var(--surface-footer);
  border-top: 2px solid var(--pm-red);
  padding: 40px 0 28px;
  margin-top: 50px;
}
.footer__inner {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.footer__links { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.footer__links a {
  font-size: 0.8rem; color: rgba(255,255,255,0.35);
  transition: color var(--t-fast); font-weight: 500;
}
.footer__links a:hover { color: var(--pm-red); }
.footer__copy { font-size: 0.72rem; color: rgba(255,255,255,0.2); }

/* ═══════════════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════════════ */

.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  z-index: var(--z-modal-bg);
  display: none; align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-xl);
  padding: 40px;
  width: 100%; max-width: 400px;
  position: relative;
  box-shadow: var(--sh-lg);
  z-index: var(--z-modal);
  animation: modalSlideUp 0.3s var(--ease);
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal__close {
  position: absolute; top: 14px; right: 14px;
  font-size: 1.1rem; color: var(--text-low); padding: 6px;
  border-radius: 50%; transition: all var(--t-fast);
}
.modal__close:hover { color: var(--text-high); background: var(--surface-page); }
.modal h3 { font-size: 1.15rem; margin-bottom: 6px; text-align: center; }
.modal p { font-size: 0.83rem; color: var(--text-low); text-align: center; margin-bottom: 22px; }

.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-size: 0.78rem; color: var(--text-mid);
  margin-bottom: 6px; font-weight: 600;
}
.form-group input {
  width: 100%; padding: 11px 14px;
  background: var(--surface-input);
  border: 1px solid var(--border-default);
  border-radius: var(--r-sm);
  outline: none; transition: all var(--t-fast);
}
.form-group input:focus {
  border-color: var(--pm-red);
  box-shadow: 0 0 0 3px var(--pm-red-soft);
  background: #fff;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px;
  border-radius: var(--r-sm);
  font-size: 0.85rem; font-weight: 700;
  transition: all var(--t-fast); cursor: pointer;
}
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: var(--pm-red); color: #fff; width: 100%;
  box-shadow: 0 2px 10px var(--pm-red-glow);
}
.btn--primary:hover { background: var(--pm-red-hover); color: #fff; box-shadow: var(--sh-red); }

/* ═══════════════════════════════════════════════════════════════════
   AD SLOTS
   ═══════════════════════════════════════════════════════════════════ */

.ad-slot { text-align: center; margin: 20px 0; min-height: 90px; overflow: visible; }
.ad-slot ins, ins.adsbyexoclick { display: block; }

/* ═══════════════════════════════════════════════════════════════════
   SPINNER
   ═══════════════════════════════════════════════════════════════════ */

.spinner-wrapper { position: relative; }
.spinner-placeholder {
  position: absolute; top: 0; left: 0;
  width: 100%; height: calc(100% - 36px);
  display: none; align-items: center; justify-content: center;
  z-index: 1; background: rgba(0,0,0,0.4);
}
.spinner-bar {
  display: inline-block; width: 4px; height: 36px;
  background: var(--pm-red); margin: 0 2px;
  border-radius: 2px;
  animation: stretch 1.2s infinite ease-in-out;
}
.spinner-bar:nth-child(2) { animation-delay: -1.1s; }
.spinner-bar:nth-child(3) { animation-delay: -1.0s; }
.spinner-bar:nth-child(4) { animation-delay: -0.9s; }
.spinner-bar:nth-child(5) { animation-delay: -0.8s; }

@keyframes stretch {
  0%, 40%, 100% { transform: scaleY(0.35); }
  20% { transform: scaleY(1.0); }
}

/* Overlay Ads */
.player_overlay_ads { position: relative; z-index: 2; }
#leftoverlayad { float: left; margin-top: -360px; margin-left: 186px; }
#rightoverlayad { float: right; margin-top: -360px; margin-right: 185px; }

/* Plyr */
.plyr { --plyr-color-main: #e32b2b; }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 1280px) {
  .vgrid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1024px) {
  .sidebar { display: none; }
  .vgrid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .header__search { width: 200px; }
  .main { padding: 20px 18px; }
  .player-container .plyr,
  .player-container .plyr--video,
  .player-container .plyr__video-wrapper { min-height: 400px; }
}

@media (max-width: 768px) {
  .vgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .header__nav { display: none; }
  .header__menu-btn { display: flex; }
  .header__search { width: auto; flex: 1; }
  .main { padding: 14px 10px; }
  .section-header h1, .section-header h2 { font-size: 0.95rem; }
  .vcard__title { font-size: 0.76rem; padding: 8px 8px 4px; }

  #leftoverlayad { margin-top: -196px; margin-left: 12px; }
  #rightoverlayad { display: none; }

  .player-page { padding: 10px 0; }
  .video-info { padding: 14px 16px; }
  .video-info h1 { font-size: 1rem; }
  .player-container .plyr,
  .player-container .plyr--video,
  .player-container .plyr__video-wrapper { min-height: 260px; }

  .video-actions { padding: 8px 14px; gap: 6px; }
  .action-btn { padding: 6px 10px; font-size: 0.73rem; }
  .pornstar-card { padding: 12px 14px; gap: 10px; }
  .pornstar-card__avatar { width: 42px; height: 42px; font-size: 1.1rem; }
  .breadcrumb { font-size: 0.72rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 10px; }
  .header__inner { height: 52px; gap: 8px; }
  .header__logo svg { height: 30px; }
  .vgrid { gap: 8px; }
  .vcard { border-radius: var(--r-sm); }
  .vcard__title { font-size: 0.72rem; padding: 6px 6px 3px; }
  .vcard__overlay { padding: 4px 5px; }
  .vcard__duration, .vcard__views { font-size: 0.6rem; padding: 1px 5px; }
  .section-header { margin-bottom: 14px; }
  .player-container .plyr,
  .player-container .plyr--video,
  .player-container .plyr__video-wrapper { min-height: 200px; }
  .video-actions__left { flex-wrap: wrap; }
  .action-btn span { display: none; }
}

@media (max-width: 360px) {
  .vcard__meta { display: none; }
  .vcard__title { -webkit-line-clamp: 1; }
  .header__logo svg { height: 26px; }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE NAV DRAWER
   ═══════════════════════════════════════════════════════════════════ */

.mobile-nav {
  position: fixed; top: 0; left: -290px;
  width: 290px; height: 100vh;
  background: #fff;
  border-right: 1px solid var(--border-default);
  z-index: var(--z-drawer);
  transition: left 0.3s var(--ease);
  overflow-y: auto; padding: 24px 0;
  box-shadow: var(--sh-lg);
}
.mobile-nav.open { left: 0; }

.mobile-nav-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(3px);
  z-index: var(--z-drawer-bg);
  display: none;
}
.mobile-nav-overlay.open { display: block; }

.mobile-nav__close {
  position: absolute; top: 14px; right: 14px;
  font-size: 1.2rem; color: var(--text-low);
  padding: 8px; border-radius: 50%;
  transition: all var(--t-fast);
}
.mobile-nav__close:hover { color: var(--pm-red); background: var(--pm-red-soft); }

.mobile-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 22px;
  font-size: 0.86rem; color: var(--text-mid);
  transition: all var(--t-fast);
  border-left: 3px solid transparent;
}
.mobile-nav a:hover, .mobile-nav a.active {
  color: var(--pm-red);
  background: var(--pm-red-soft);
  border-left-color: var(--pm-red);
}

/* ═══════════════════════════════════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════════════════════════════════ */

.lazyload { opacity: 0; transition: opacity var(--t-slow) var(--ease); }
.lazyloaded { opacity: 1; }

.go-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 46px; height: 46px;
  background: var(--pm-red); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  opacity: 0; visibility: hidden;
  transition: all 0.3s var(--ease);
  z-index: var(--z-sticky);
  box-shadow: var(--sh-red);
}
.go-top.visible { opacity: 1; visibility: visible; }
.go-top:hover {
  background: var(--pm-red-hover); color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--pm-red-glow);
}

.page-info {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 16px 22px;
  margin-bottom: 20px;
  box-shadow: var(--sh-xs);
}
.page-info__title { font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; }
.page-info__count { font-size: 0.8rem; color: var(--text-low); }

.toast {
  position: fixed; bottom: 80px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--surface-header); color: #fff;
  padding: 10px 26px;
  border-radius: var(--r-full);
  font-size: 0.83rem; font-weight: 600;
  opacity: 0; visibility: hidden;
  transition: all 0.3s var(--ease);
  z-index: var(--z-toast);
  box-shadow: var(--sh-lg);
}
.toast.visible {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
