/* ═══════════════════════════════════════════════════════════════════
   PornAmmo.com — Gold & White Professional Theme v2
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f4f5f7;
  --bg-card: #ffffff;
  --bg-card-hover: #fdfaf3;
  --bg-sidebar: #f4f5f7;
  --bg-header: #ffffff;
  --bg-footer: #1c1709;
  --bg-input: #f0f2f5;
  --border-color: #d8dbe2;
  --border-light: #eaecf2;
  --text-primary: #1a1a2e;
  --text-secondary: #3d3d56;
  --text-muted: #7a7a94;
  --text-light: #b0b0c4;
  --text-on-dark: #e8e8f0;
  --text-on-dark-muted: #9a9ab0;
  --accent: #c1942e;
  --accent-hover: #a87d22;
  --accent-dark: #8a6518;
  --accent-light: rgba(193, 148, 46, 0.1);
  --accent-lighter: rgba(193, 148, 46, 0.05);
  --accent-bg: #fdf8ee;
  --accent-gold: #d4a846;
  --badge-hd: #c1942e;
  --badge-4k: #a87d22;
  --radius: 8px;
  --radius-sm: 5px;
  --radius-lg: 12px;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.02);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-gold: 0 4px 16px rgba(193, 148, 46, 0.15);
  --transition: 0.2s ease;
  --transition-slow: 0.35s ease;
  --z-dropdown: 100;
  --z-sticky: 500;
  --z-header: 1000;
  --z-modal-bg: 2000;
  --z-modal: 2001;
  --z-nav-overlay: 2500;
  --z-nav: 2501;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 { font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
h2 { font-size: 1.2rem; font-weight: 700; line-height: 1.35; }
h3 { font-size: 1rem; font-weight: 600; line-height: 1.4; }

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

a { color: var(--text-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

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; }

/* Focus accessibility */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

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

/* ── Header (Light with Gold Accent) ──────────────────────────────── */

.header {
  background: #ffffff;
  border-bottom: 2px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  height: 62px;
  gap: 16px;
}

.header__logo svg { height: 42px; width: auto; }

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

.header__nav a {
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.header__nav a:hover { color: var(--accent); background: var(--accent-light); }
.header__nav a.active {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(193, 148, 46, 0.3);
}

.header__search {
  position: relative;
  width: 280px;
  flex-shrink: 0;
}

.header__search input {
  width: 100%;
  padding: 9px 40px 9px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: all var(--transition);
}
.header__search input:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(193, 148, 46, 0.1);
}
.header__search input::placeholder { color: var(--text-muted); }

.header__search button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 12px;
  color: var(--accent);
  transition: color var(--transition);
}
.header__search button:hover { color: var(--accent-dark); }

.header__menu-btn {
  display: none;
  padding: 8px;
  color: var(--accent);
  transition: color var(--transition);
}
.header__menu-btn:hover { color: var(--accent-dark); }

.header__user {
  padding: 8px;
  color: var(--accent);
  position: relative;
  transition: color var(--transition);
}
.header__user:hover { color: var(--accent-dark); }

/* ── Layout ──────────────────────────────────────────────────────── */

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

.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--bg-primary);
  border-right: 1px solid var(--border-color);
  padding: 16px 0;
  overflow-y: auto;
  position: sticky;
  top: 65px;
  height: calc(100vh - 65px);
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

.sidebar__title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding: 10px 20px 6px;
  margin-top: 8px;
}
.sidebar__title:first-child { margin-top: 0; }

.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 20px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  border-left: 3px solid transparent;
}
.sidebar a:hover {
  color: var(--accent);
  background: var(--accent-light);
  border-left-color: var(--accent);
}
.sidebar a.active {
  color: var(--accent);
  background: var(--accent-bg);
  border-left-color: var(--accent);
  font-weight: 600;
}
.sidebar a i { width: 16px; text-align: center; font-size: 0.78rem; color: var(--text-muted); }
.sidebar a:hover i, .sidebar a.active i { color: var(--accent); }

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

/* ── Main Content ────────────────────────────────────────────────── */

.main {
  flex: 1;
  min-width: 0;
  padding: 24px 28px;
  background: var(--bg-secondary);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.section-header h1,
.section-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text-primary);
  border-left: 3px solid var(--accent);
  padding-left: 10px;
}

.section-header::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
}

.section-header .filter-select {
  padding: 7px 30px 7px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 0.82rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%234a4a68' 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;
  box-shadow: var(--shadow-xs);
}
.section-header .filter-select:focus { border-color: var(--accent); }

/* ── Video Grid ──────────────────────────────────────────────────── */

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

/* Stagger fade-in animation */
.vcard {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  opacity: 0;
  transform: translateY(12px);
}
.vcard.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow var(--transition), border-color var(--transition);
}
.vcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.vcard:active {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

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

.vcard__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #e8e8ee 25%, #f0f0f4 50%, #e8e8ee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.vcard__thumb .vcard__img.lazyloaded ~ * { }
.vcard.visible .vcard__thumb {
  animation: none;
  background: #e8e8ee;
}

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

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

.vcard__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 8px 6px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  font-size: 0.72rem;
  color: #eee;
}

.vcard__duration,
.vcard__views {
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.7rem;
  backdrop-filter: blur(4px);
}
.vcard__duration i,
.vcard__views i { margin-right: 3px; font-size: 0.6rem; }

.vcard__quality {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.vcard__badge {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.vcard__badge--hd { background: var(--badge-hd); color: #fff; }
.vcard__badge--4k { background: var(--badge-4k); color: #fff; box-shadow: 0 0 8px rgba(168, 125, 34, 0.4); }

.vcard__title {
  padding: 10px 10px 4px;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}
.vcard:hover .vcard__title { color: var(--accent); }

.vcard__meta {
  padding: 2px 10px 10px;
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
}
.vcard__meta i { color: var(--accent); margin-right: 2px; font-size: 0.6rem; }

/* ── Pagination ──────────────────────────────────────────────────── */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 28px 0;
  flex-wrap: wrap;
}

.pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}
.pagination__btn:hover {
  background: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.pagination__btn:active { transform: translateY(0); }
.pagination__btn--active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-gold);
  font-weight: 700;
}
.pagination__btn--active:hover {
  background: var(--accent-hover);
  color: #fff;
}

.pagination__dots {
  color: var(--text-muted);
  padding: 0 4px;
}

/* ── Breadcrumbs ─────────────────────────────────────────────────── */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep { color: var(--text-light); font-size: 0.7rem; }
.breadcrumb__current { color: var(--text-secondary); font-weight: 500; }

/* ── Video Player Page ───────────────────────────────────────────── */

.player-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 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(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}

/* Force player to maintain full height before video loads */
.player-container .spinner-wrapper {
  position: relative;
}
.player-container video,
.player-container iframe {
  display: block;
  width: 100%;
}
.player-container .plyr {
  min-height: 500px;
}
.player-container .plyr--video {
  min-height: 500px;
}
.player-container .plyr__video-wrapper {
  min-height: 500px;
  background: #000;
}

.video-info {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.video-info h1 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
  color: var(--text-primary);
}

.video-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.84rem;
  flex-wrap: wrap;
}
.video-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.video-meta i { color: var(--accent); font-size: 0.8rem; }

/* ── Share & Rating Bar ──────────────────────────────────────────── */

.video-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 12px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
  flex-wrap: wrap;
}

.video-actions__left,
.video-actions__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  transition: all var(--transition);
  cursor: pointer;
}
.action-btn:hover {
  background: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent);
}
.action-btn:active { transform: scale(0.97); }
.action-btn i { font-size: 0.85rem; }

.action-btn--like:hover,
.action-btn--like.active {
  background: rgba(46, 204, 113, 0.1);
  border-color: #2ecc71;
  color: #27ae60;
}
.action-btn--dislike:hover,
.action-btn--dislike.active {
  background: rgba(231, 76, 60, 0.1);
  border-color: #e74c3c;
  color: #c0392b;
}

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

.pornstar-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition);
}
.pornstar-card:hover { border-color: var(--accent); }

.pornstar-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.5rem;
  flex-shrink: 0;
  border: 2px solid var(--accent);
}

.pornstar-card__info { flex: 1; min-width: 0; }

.pornstar-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.pornstar-card__name a { color: inherit; }
.pornstar-card__name a:hover { color: var(--accent); }

.pornstar-card__stats {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.pornstar-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.pornstar-card__btn:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: var(--shadow-gold);
}
.pornstar-card__btn:active { transform: scale(0.97); }

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

.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.video-tags a {
  padding: 5px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.video-tags a:hover {
  background: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.video-tags a.tag--pornstar {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.video-tags a.tag--pornstar:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: var(--shadow-gold);
}

.video-description {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.65;
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
}

/* ── Footer (Dark Gold) ────────────────────────────────────────────── */

.footer {
  background: linear-gradient(135deg, #2a1f0a 0%, #1c1709 50%, #2a1f0a 100%);
  border-top: 3px solid var(--accent);
  padding: 36px 0 24px;
  margin-top: 40px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__links a {
  font-size: 0.82rem;
  color: rgba(193, 148, 46, 0.6);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--accent); }

.footer__copy {
  font-size: 0.75rem;
  color: rgba(193, 148, 46, 0.4);
}

/* ── Modal ───────────────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: var(--z-modal-bg);
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}
.modal-overlay.active { display: flex; }

.modal {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 100%;
  max-width: 400px;
  position: relative;
  box-shadow: var(--shadow-lg);
  z-index: var(--z-modal);
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.2rem;
  color: var(--text-muted);
  padding: 6px;
  border-radius: 50%;
  transition: all var(--transition);
}
.modal__close:hover { color: var(--text-primary); background: var(--bg-secondary); }

.modal h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  text-align: center;
  color: var(--text-primary);
}

.modal p {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-group input {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition);
}
.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(193,148,46,0.1);
  background: var(--bg-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}
.btn:active { transform: scale(0.98); }
.btn--primary {
  background: var(--accent);
  color: #fff;
  width: 100%;
  box-shadow: 0 2px 8px rgba(193, 148, 46, 0.25);
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: var(--shadow-gold);
}
.btn--secondary {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}
.btn--secondary:hover {
  background: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent);
}

/* ── 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.3);
}
.spinner-bar {
  display: inline-block;
  width: 5px; height: 40px;
  background: var(--accent);
  margin: 0 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.4); }
  20% { transform: scaleY(1.0); }
}

/* ── Overlay Ads on Player ───────────────────────────────────────── */

.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 Customization ──────────────────────────────────────────── */

.plyr { --plyr-color-main: #c1942e; }

/* ── 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 16px; }
  .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: 16px 12px; }
  .section-header h2 { font-size: 1rem; }
  .vcard__title { font-size: 0.78rem; padding: 8px 8px 3px; }

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

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

  .video-actions { padding: 10px 14px; gap: 8px; }
  .action-btn { padding: 6px 10px; font-size: 0.75rem; }
  .pornstar-card { padding: 12px 14px; gap: 12px; }
  .pornstar-card__avatar { width: 44px; height: 44px; font-size: 1.2rem; }
  .breadcrumb { font-size: 0.75rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 10px; }
  .header__inner { height: 52px; gap: 8px; }
  .header__logo svg { height: 32px; }
  .vgrid { gap: 8px; }
  .vcard { border-radius: var(--radius-sm); }
  .vcard__title { font-size: 0.75rem; padding: 6px 6px 3px; }
  .vcard__overlay { font-size: 0.63rem; padding: 4px 5px; }
  .section-header { margin-bottom: 14px; }
  .section-header h2 { font-size: 0.92rem; }
  .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: 28px; }
}

/* ── Mobile Nav Drawer ───────────────────────────────────────────── */

.mobile-nav {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: var(--bg-primary);
  border-right: 2px solid var(--accent);
  z-index: var(--z-nav);
  transition: left 0.3s ease;
  overflow-y: auto;
  padding: 20px 0;
  box-shadow: var(--shadow-lg);
}
.mobile-nav.open { left: 0; }

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

.mobile-nav__close {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.3rem;
  color: var(--text-muted);
  padding: 8px;
  border-radius: 50%;
  transition: all var(--transition);
}
.mobile-nav__close:hover { color: var(--accent); background: var(--accent-light); }

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  border-left: 3px solid transparent;
}
.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--accent);
  background: var(--accent-light);
  border-left-color: var(--accent);
}

/* ── Lazy Load ───────────────────────────────────────────────────── */

.lazyload {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.lazyloaded {
  opacity: 1;
}

/* ── Go to Top ───────────────────────────────────────────────────── */

.go-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: var(--z-dropdown);
  box-shadow: var(--shadow-gold);
}
.go-top.visible { opacity: 1; visibility: visible; }
.go-top:hover { background: var(--accent-hover); color: #fff; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(193, 148, 46, 0.4); }
.go-top:active { transform: translateY(-1px); }

/* ── Page Info Header (for listing pages) ────────────────────────── */

.page-info {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
}
.page-info__title { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.page-info__count { font-size: 0.82rem; color: var(--text-muted); }

/* ── Copy Toast Notification ─────────────────────────────────────── */

.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text-primary);
  color: #fff;
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: var(--z-modal);
  box-shadow: var(--shadow-lg);
}
.toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
