/* ═══════════════════════════════════════════════════════════════════
   PornMedium.com — Premium v5
   Outfit typeface · White editorial header · Warm content canvas
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* Brand */
  --red:          #e32b2b;
  --red-hover:    #c82020;
  --red-deep:     #9d1a1a;
  --red-glow:     rgba(227, 43, 43, 0.20);
  --red-tint:     rgba(227, 43, 43, 0.07);
  --red-pale:     #fff4f4;

  /* Surfaces */
  --canvas:       #f4f5f8;
  --white:        #ffffff;
  --sidebar-bg:   #ffffff;
  --header-bg:    #ffffff;
  --footer-bg:    #0d0e13;
  --input-bg:     #eef0f4;

  /* Text */
  --t1:  #0f172a;
  --t2:  #334155;
  --t3:  #64748b;
  --t4:  #94a3b8;
  --ti:  #f1f5f9;

  /* Borders */
  --line:    #e2e8f0;
  --line-2:  #f1f3f6;

  /* Radius */
  --r1:  6px;
  --r2:  10px;
  --r3:  14px;
  --r4:  20px;
  --rp:  9999px;

  /* Shadows — tuned for warm neutral tones */
  --s0:  0 1px 2px rgba(15,23,42,0.04);
  --s1:  0 1px 4px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --s2:  0 4px 12px rgba(15,23,42,0.08), 0 1px 3px rgba(15,23,42,0.05);
  --s3:  0 12px 32px rgba(15,23,42,0.10), 0 2px 6px rgba(15,23,42,0.06);
  --sr:  0 4px 20px rgba(227,43,43,0.26);
  --sc:  0 6px 24px rgba(15,23,42,0.10), 0 0 0 1px rgba(227,43,43,0.14);

  /* Motion */
  --ease: cubic-bezier(0.33, 1, 0.68, 1);
  --fast: 0.14s;
  --mid:  0.24s;
  --slow: 0.36s;

  /* Z-index ladder */
  --z1:  100;   /* sticky elements */
  --z2:  500;   /* header */
  --z3: 1000;   /* drawer overlay */
  --z4: 1001;   /* drawer */
  --z5: 2000;   /* modal overlay */
  --z6: 2001;   /* modal */
  --z7: 3000;   /* toast */
}

/* ── 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: 'Outfit', system-ui, -apple-system, sans-serif;
  background: var(--canvas);
  color: var(--t2);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 { font-size: 1.5rem;  font-weight: 800; letter-spacing: -0.03em; color: var(--t1); line-height: 1.2; }
h2 { font-size: 1.1rem;  font-weight: 700; letter-spacing: -0.02em; color: var(--t1); }
h3 { font-size: 0.875rem; font-weight: 600; color: var(--t1); }

a { color: inherit; text-decoration: none; transition: color var(--fast) var(--ease); }
a:hover { color: var(--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(--red); outline-offset: 2px; border-radius: 3px; }

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


/* ═══════════════════════════════════════════════════════════════════
   HEADER — Premium white, logo left, uppercase nav
   ═══════════════════════════════════════════════════════════════════ */

.header {
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: var(--z2);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 28px rgba(15,23,42,0.08);
}

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
  gap: 12px;
}

.header__left {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.header__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-right: 16px;
  border-right: 1px solid var(--line);
  margin-right: 4px;
}
.header__logo svg { height: 52px; width: auto; }
.header__logo:hover { opacity: 0.82; }

/* Primary Navigation */
.header__nav {
  display: flex;
  align-items: stretch;
  height: 72px;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.header__nav::-webkit-scrollbar { display: none; }

.header__nav a {
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--t3);
  white-space: nowrap;
  position: relative;
  transition: color var(--fast) var(--ease);
}
.header__nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 10px; right: 10px;
  height: 3px;
  background: var(--red);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--mid) var(--ease);
}
.header__nav a:hover { color: var(--t1); }
.header__nav a:hover::after { transform: scaleX(0.55); opacity: 0.5; }
.header__nav a.active {
  color: var(--t1);
  font-weight: 800;
}
.header__nav a.active::after { transform: scaleX(1); opacity: 1; }

/* Search — center column */
.header__search {
  position: relative;
  width: 360px;
  flex-shrink: 0;
}
.header__search input {
  width: 100%;
  padding: 9px 48px 9px 16px;
  background: var(--input-bg);
  border: 1.5px solid var(--line);
  border-radius: var(--r2);
  color: var(--t1);
  font-size: 0.82rem;
  font-family: inherit;
  font-weight: 500;
  outline: none;
  transition: all var(--mid) var(--ease);
}
.header__search input::placeholder { color: var(--t4); font-weight: 400; }
.header__search input:focus {
  border-color: var(--red);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--red-glow);
}
.header__search__btn {
  position: absolute;
  right: 7px; top: 50%;
  transform: translateY(-50%);
  width: 33px; height: 33px;
  display: flex; align-items: center; justify-content: center;
  background: var(--red);
  color: #fff;
  border-radius: var(--r1);
  font-size: 0.73rem;
  transition: background var(--fast), transform var(--fast);
  border: none;
  cursor: pointer;
}
.header__search__btn:hover { background: var(--red-hover); transform: translateY(-50%) scale(1.04); }

/* Mobile hamburger */
.header__menu-btn {
  display: none;
  padding: 9px;
  color: var(--t3);
  border-radius: var(--r1);
  transition: all var(--fast);
  flex-shrink: 0;
}
.header__menu-btn:hover { color: var(--red); background: var(--red-tint); }

/* User button */
.header__user {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--r2);
  border: 1.5px solid var(--line);
  color: var(--t3);
  transition: all var(--fast);
  flex-shrink: 0;
  font-size: 1rem;
}
.header__user:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-pale);
}


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

.layout {
  display: flex;
  min-height: calc(100vh - 72px);
  align-items: flex-start;
}

/* ═══════════════════════════════════════════════════════════════════
   SIDEBAR — Dark premium panel
   ═══════════════════════════════════════════════════════════════════ */

.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--line);
  padding: 10px 0 0;
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }

/* Section label */
.sidebar__title {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  padding: 16px 16px 6px;
}
.sidebar__title:first-child { padding-top: 12px; }

/* ── Browse nav (Latest / Most Viewed / Best Rated) ──────────────── */
.sidebar__primary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--t2);
  transition: color var(--fast) var(--ease), background var(--fast) var(--ease), border-left-color var(--fast) var(--ease);
  border-left: 3px solid transparent;
  line-height: 1.3;
}
.sidebar__primary:hover {
  color: var(--red);
  background: var(--red-tint);
  border-left-color: var(--red);
}
.sidebar__primary.active {
  color: var(--red);
  background: var(--red-tint);
  border-left-color: var(--red);
  font-weight: 700;
}

/* Icon */
.sidebar__primary i {
  width: 18px;
  font-size: 0.78rem;
  color: var(--t3);
  flex-shrink: 0;
  text-align: center;
  transition: color var(--fast) var(--ease);
}
.sidebar__primary:hover i,
.sidebar__primary.active i {
  color: var(--red);
}

/* ── Category links ──────────────────────────────────────────────── */
.sidebar__cat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 16px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--t3);
  transition: color var(--fast) var(--ease), background var(--fast) var(--ease), border-left-color var(--fast) var(--ease);
  border-left: 2px solid transparent;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar__cat::before {
  content: '';
  width: 3px;
  height: 3px;
  min-width: 3px;
  border-radius: 50%;
  background: var(--t4);
  transition: background var(--fast) var(--ease), transform var(--fast) var(--ease);
  flex-shrink: 0;
}
.sidebar__cat:hover {
  color: var(--red);
  background: var(--red-tint);
}
.sidebar__cat:hover::before {
  background: var(--red);
  transform: scale(1.5);
}
.sidebar__cat.active {
  color: var(--red);
  font-weight: 600;
  background: var(--red-tint);
  border-left-color: var(--red);
}
.sidebar__cat.active::before { background: var(--red); }

/* Divider */
.sidebar__divider {
  height: 1px;
  background: var(--line);
  margin: 12px 14px 6px;
}

/* ── Main content ─────────────────────────────────────────────────── */

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


/* ═══════════════════════════════════════════════════════════════════
   SECTION HEADER — Editorial style
   ═══════════════════════════════════════════════════════════════════ */

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

.section-header h1,
.section-header h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--t1);
  white-space: nowrap;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 9px;
}

.section-header h1::before,
.section-header h2::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 18px;
  background: var(--red);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
  min-width: 20px;
}

.section-header .filter-select {
  padding: 6px 30px 6px 11px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r1);
  color: var(--t2);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2394a3b8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  outline: none;
  transition: border-color var(--fast);
}
.section-header .filter-select:focus { border-color: var(--red); }


/* ═══════════════════════════════════════════════════════════════════
   VIDEO GRID
   ═══════════════════════════════════════════════════════════════════ */

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


/* ═══════════════════════════════════════════════════════════════════
   VIDEO CARD — premium feel, strong typography hierarchy
   ═══════════════════════════════════════════════════════════════════ */

.vcard {
  border-radius: var(--r2);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line-2);
  box-shadow: var(--s1);
  transition:
    transform var(--mid) var(--ease),
    box-shadow var(--mid) var(--ease),
    border-color var(--mid) var(--ease);
}
.vcard.visible {
  transition:
    transform var(--slow) var(--ease),
    box-shadow var(--mid) var(--ease),
    border-color var(--mid) var(--ease);
}
.vcard:hover {
  transform: translateY(-5px);
  box-shadow: var(--sc);
  border-color: rgba(227, 43, 43, 0.16);
}

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

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

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

.vcard__img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--slow) var(--ease);
}
.vcard:hover .vcard__img { transform: scale(1.04); }

/* Overlay gradient + badges */
.vcard__overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 32px 7px 6px;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0) 100%);
  display: flex; justify-content: space-between; align-items: flex-end;
  pointer-events: none;
}

.vcard__duration,
.vcard__views {
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  padding: 2px 7px;
  background: rgba(0,0,0,0.48);
  border-radius: 4px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  letter-spacing: 0.01em;
  display: flex; align-items: center; gap: 3px;
}
.vcard__duration i,
.vcard__views i { font-size: 0.58rem; opacity: 0.85; }

.vcard__quality {
  position: absolute; top: 7px; left: 7px;
  font-size: 0.62rem; font-weight: 800;
  color: #fff;
  background: rgba(0,0,0,0.58);
  padding: 1px 7px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  letter-spacing: 0.03em;
}

.vcard__badge {
  position: absolute; top: 7px; right: 7px;
  font-size: 0.58rem; font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
}
.vcard__badge--hd { background: var(--red); color: #fff; }
.vcard__badge--4k {
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 8px var(--red-glow);
}

/* Card body — strong title */
.vcard__body { padding: 9px 11px 10px; }

.vcard__title {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--t1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 5px;
  transition: color var(--fast);
}
.vcard:hover .vcard__title { color: var(--red); }

.vcard__meta {
  font-size: 0.67rem;
  font-weight: 500;
  color: var(--t4);
  display: flex;
  gap: 10px;
  align-items: center;
}
.vcard__meta i { color: var(--red); font-size: 0.6rem; }


/* ═══════════════════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════════════════ */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 32px 0 16px;
  flex-wrap: wrap;
}

.pagination__btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  min-width: 38px; height: 38px;
  padding: 0 13px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r1);
  color: var(--t3);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  transition: all var(--fast) var(--ease);
  box-shadow: var(--s0);
}
.pagination__btn:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-pale);
}
.pagination__btn--active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: var(--sr);
  font-weight: 700;
}
.pagination__btn--active:hover { background: var(--red-hover); color: #fff; }
.pagination__dots {
  color: var(--t4);
  padding: 0 3px;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 38px;
}


/* ═══════════════════════════════════════════════════════════════════
   BREADCRUMB
   ═══════════════════════════════════════════════════════════════════ */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.77rem;
  font-weight: 500;
  color: var(--t4);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--t3); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb__sep { color: var(--line); font-size: 0.65rem; }
.breadcrumb__current { color: var(--t2); }


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

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

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

.player-container {
  background: #000;
  border-radius: var(--r3);
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
  box-shadow: var(--s2);
}
.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 card */
.video-info {
  background: var(--white);
  border-radius: var(--r2);
  padding: 20px 22px;
  margin-bottom: 12px;
  border: 1px solid var(--line-2);
  box-shadow: var(--s1);
}
.video-info h1 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--t1);
}
.video-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--t4);
  font-size: 0.8rem;
  font-weight: 500;
  flex-wrap: wrap;
}
.video-meta span { display: flex; align-items: center; gap: 5px; }
.video-meta i { color: var(--red); font-size: 0.72rem; }

/* Actions */
.video-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r2);
  padding: 10px 16px;
  margin-bottom: 12px;
  box-shadow: var(--s1);
  gap: 8px;
  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(--r1);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--t3);
  background: var(--canvas);
  border: 1.5px solid var(--line);
  transition: all var(--fast) var(--ease);
}
.action-btn:hover { background: var(--red-pale); border-color: var(--red); color: var(--red); }
.action-btn:active { transform: scale(0.96); }
.action-btn i { font-size: 0.8rem; }
.action-btn--like:hover, .action-btn--like.active {
  background: rgba(34,197,94,0.07); border-color: #22c55e; color: #16a34a;
}
.action-btn--dislike:hover, .action-btn--dislike.active {
  background: rgba(239,68,68,0.07); border-color: #ef4444; color: #dc2626;
}

/* Pornstar card */
.pornstar-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r2);
  padding: 14px 18px;
  margin-bottom: 12px;
  box-shadow: var(--s1);
  transition: box-shadow var(--fast), border-color var(--fast);
}
.pornstar-card:hover { border-color: var(--red); box-shadow: var(--s2); }
.pornstar-card__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--red-pale);
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
  font-size: 1.1rem;
  flex-shrink: 0;
  border: 2px solid var(--red);
}
.pornstar-card__info { flex: 1; min-width: 0; }
.pornstar-card__name { font-size: 0.88rem; font-weight: 700; margin-bottom: 2px; color: var(--t1); }
.pornstar-card__name a:hover { color: var(--red); }
.pornstar-card__stats { font-size: 0.73rem; color: var(--t4); }
.pornstar-card__btn {
  display: inline-flex;
  align-items: center; gap: 5px;
  padding: 8px 16px;
  background: var(--red); color: #fff;
  border-radius: var(--r1);
  font-size: 0.77rem; font-weight: 700;
  font-family: inherit;
  white-space: nowrap;
  transition: background var(--fast), box-shadow var(--fast);
  box-shadow: 0 2px 8px var(--red-glow);
}
.pornstar-card__btn:hover { background: var(--red-hover); color: #fff; box-shadow: var(--sr); }

/* Video tags */
.video-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.video-tags a {
  padding: 4px 13px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r1);
  font-size: 0.74rem; font-weight: 600;
  color: var(--t3);
  transition: all var(--fast);
}
.video-tags a:hover { background: var(--red-pale); border-color: var(--red); color: var(--red); }
.video-tags a.tag--pornstar {
  background: var(--red); border-color: var(--red);
  color: #fff;
}
.video-tags a.tag--pornstar:hover { background: var(--red-hover); color: #fff; box-shadow: var(--sr); }

/* Video description */
.video-description {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r2);
  padding: 16px 20px;
  color: var(--t3);
  font-size: 0.83rem;
  line-height: 1.75;
  margin-bottom: 18px;
  box-shadow: var(--s1);
}


/* ═══════════════════════════════════════════════════════════════════
   FOOTER — Structured dark footer with brand identity
   ═══════════════════════════════════════════════════════════════════ */

.footer {
  background: var(--footer-bg);
  border-top: 2px solid var(--red);
  padding: 38px 0 26px;
  margin-top: 60px;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer__links {
  display: flex; gap: 24px; flex-wrap: wrap; justify-content: center;
}
.footer__links a {
  font-size: 0.79rem; font-weight: 500;
  color: rgba(255,255,255,0.36);
  transition: color var(--fast);
}
.footer__links a:hover { color: var(--red); }
.footer__copy {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.16);
  letter-spacing: 0.01em;
}


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

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

.modal {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r4);
  padding: 40px;
  width: 100%; max-width: 400px;
  position: relative;
  box-shadow: var(--s3);
  z-index: var(--z6);
  animation: modalIn 0.26s var(--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: 14px; right: 14px;
  font-size: 1rem; color: var(--t4); padding: 7px;
  border-radius: 50%;
  transition: all var(--fast);
}
.modal__close:hover { color: var(--t1); background: var(--canvas); }
.modal h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; text-align: center; color: var(--t1); }
.modal p  { font-size: 0.82rem; color: var(--t4); text-align: center; margin-bottom: 22px; }

.form-group { margin-bottom: 13px; }
.form-group label {
  display: block; font-size: 0.77rem; font-weight: 600;
  color: var(--t2); margin-bottom: 5px;
}
.form-group input {
  width: 100%; padding: 10px 14px;
  background: var(--input-bg);
  border: 1.5px solid var(--line);
  border-radius: var(--r2);
  outline: none;
  transition: all var(--fast);
}
.form-group input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
  background: var(--white);
}

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


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

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


/* ═══════════════════════════════════════════════════════════════════
   VIDEO PLAYER 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: 2; background: rgba(0,0,0,0.4);
  border-radius: var(--r3);
}
.spinner-bar {
  display: inline-block;
  width: 4px; height: 32px;
  background: var(--red); margin: 0 2px;
  border-radius: 2px;
  animation: barstretch 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 barstretch {
  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; }


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

/* Go-to-top */
.go-top {
  position: fixed; bottom: 22px; right: 22px;
  width: 42px; height: 42px;
  background: var(--red); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  opacity: 0; visibility: hidden;
  transition: all 0.3s var(--ease);
  z-index: var(--z1);
  box-shadow: var(--sr);
}
.go-top.visible { opacity: 1; visibility: visible; }
.go-top:hover { background: var(--red-hover); color: #fff; transform: translateY(-3px); }

/* Toast */
.toast {
  position: fixed; bottom: 78px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--t1); color: var(--ti);
  padding: 10px 22px;
  border-radius: var(--rp);
  font-size: 0.82rem; font-weight: 600;
  opacity: 0; visibility: hidden;
  transition: all 0.28s var(--ease);
  z-index: var(--z7);
  box-shadow: var(--s3);
}
.toast.visible {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Page info block */
.page-info {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r2);
  padding: 14px 18px;
  margin-bottom: 18px;
  box-shadow: var(--s1);
}
.page-info__title { font-size: 1rem; font-weight: 800; color: var(--t1); margin-bottom: 3px; letter-spacing: -0.02em; }
.page-info__count { font-size: 0.77rem; color: var(--t4); }

/* Lazy load */
.lazyload { transition: opacity var(--slow) var(--ease); }
.lazyloaded { opacity: 1; }


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

.mobile-nav {
  position: fixed; top: 0; left: -300px;
  width: 280px; height: 100vh;
  background: var(--white);
  border-right: 1px solid var(--line);
  z-index: var(--z4);
  transition: left 0.3s var(--ease);
  overflow-y: auto;
  padding: 20px 0;
  box-shadow: 4px 0 24px rgba(0,0,0,0.12);
}
.mobile-nav.open { left: 0; }

.mobile-nav-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: var(--z3);
  display: none;
}
.mobile-nav-overlay.open { display: block; }

.mobile-nav__close {
  position: absolute; top: 14px; right: 14px;
  font-size: 1rem; color: var(--t3);
  padding: 8px; border-radius: var(--r1);
  transition: all var(--fast);
  background: var(--canvas);
}
.mobile-nav__close:hover { color: var(--red); background: var(--red-tint); }

/* Mobile nav inherits sidebar classes */
.mobile-nav .sidebar__primary { }
.mobile-nav .sidebar__cat { }


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

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

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

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

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

@media (max-width: 768px) {
  .vgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .header__nav { display: none; }
  .header__menu-btn { display: flex; }
  .header__inner { grid-template-columns: auto 1fr auto; gap: 8px; height: 60px; }
  .header__search { width: auto; }
  .header__logo svg { height: 44px; }
  .main { padding: 14px 12px 28px; }
  .section-header h1,
  .section-header h2 { font-size: 0.9rem; }
  .vcard__body { padding: 7px 9px 8px; }
  .vcard__title { font-size: 0.76rem; }

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

  .player-page { padding: 10px 0 24px; }
  .video-info { padding: 12px 14px; }
  .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 12px; }
  .action-btn { padding: 6px 10px; font-size: 0.73rem; }
  .pornstar-card { padding: 10px 14px; gap: 10px; }
  .pornstar-card__avatar { width: 40px; height: 40px; font-size: 1rem; }
  .breadcrumb { font-size: 0.72rem; }
  .footer { padding: 28px 0 20px; margin-top: 40px; }
}

@media (max-width: 480px) {
  .container { padding: 0 10px; }
  .header__inner { height: 52px; gap: 6px; }
  .header__logo svg { height: 34px; }
  .header__logo { padding-right: 8px; }
  .vgrid { gap: 8px; }
  .vcard { border-radius: var(--r1); }
  .vcard__body { padding: 6px 7px 7px; }
  .vcard__title { font-size: 0.73rem; }
  .vcard__overlay { padding: 24px 5px 5px; }
  .vcard__duration,
  .vcard__views { font-size: 0.6rem; padding: 1px 5px; }
  .section-header { margin-bottom: 12px; }
  .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; }
  .video-meta { gap: 10px; }
  .pagination__btn { min-width: 34px; height: 34px; font-size: 0.78rem; }
}

@media (max-width: 360px) {
  .vcard__meta { display: none; }
  .vcard__quality { display: none; }
  .header__logo svg { height: 28px; }
}

/* ── Breadcrumb ─────────────────────────────────────────────────────── */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--t3);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.breadcrumb-nav a { color: var(--t3); transition: color var(--fast); }
.breadcrumb-nav a:hover { color: var(--red); }
.breadcrumb-nav i { font-size: 0.6rem; color: var(--t4); }
.breadcrumb-nav span { color: var(--t1); font-weight: 600; }

/* ── Listing Hero Card ──────────────────────────────────────────────── */
.listing-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r3);
  padding: 20px 24px;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: var(--s1);
}
.listing-hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(to left, rgba(227,43,43,0.07) 0%, transparent 100%);
  pointer-events: none;
}
.listing-hero__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(227,43,43,0.30);
  color: #fff;
  font-size: 1.4rem;
}
.listing-hero__info { min-width: 0; }
.listing-hero__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--t1);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.listing-hero__meta {
  font-size: 0.82rem;
  color: var(--t3);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.listing-hero__meta .dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--t4);
  display: inline-block;
}

@media (max-width: 600px) {
  .listing-hero { padding: 14px 16px; gap: 14px; }
  .listing-hero__icon { width: 50px; height: 50px; font-size: 1.1rem; }
  .listing-hero__title { font-size: 1.15rem; }
}

/* ── Go to Top ──────────────────────────────────────────────────────── */
.go-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s;
  z-index: 900;
  box-shadow: 0 4px 14px rgba(227,43,43,0.4);
}
.go-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.go-top:hover { background: #c42020; }

/* ── Header Shrink ──────────────────────────────────────────────────── */
.header { transition: padding 0.25s, box-shadow 0.25s; }
.header--shrink { box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.header--shrink .header__inner { height: 56px; }
.header--shrink .header__logo svg { height: 36px; }

/* ── Search Autocomplete Dropdown ───────────────────────────────────── */
.search-drop {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  width: min(500px, 96vw);
  background: #1a1f2e;
  border: 1px solid rgba(255,255,255,0.1);
  border-top: none;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  z-index: 2000;
  display: none;
  overflow: hidden;
}
.search-drop.open { display: block; }
.search-drop__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  font-size: 0.72rem;
  color: #8b949e;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.search-drop__clear {
  background: none;
  border: none;
  color: #e32b2b;
  cursor: pointer;
  font-size: 0.72rem;
  padding: 0;
}
.search-drop__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: #e0e0e0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s;
}
.search-drop__item:hover,
.search-drop__item:focus { background: rgba(255,255,255,0.06); outline: none; }
.search-drop__item i { color: #8b949e; width: 16px; flex-shrink: 0; }
.search-drop__count {
  margin-left: auto;
  font-size: 0.75rem;
  color: #8b949e;
}

/* ── Share Modal ────────────────────────────────────────────────────── */
.share-modal h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 1.1rem; }
.share-modal__btns { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: opacity 0.2s;
}
.share-btn:hover { opacity: 0.85; }
.share-btn--twitter  { background: #000; color: #fff; }
.share-btn--reddit   { background: #ff4500; color: #fff; }
.share-btn--whatsapp { background: #25d366; color: #fff; }
.share-btn--copy     { background: var(--accent, #e32b2b); color: #fff; }
.share-modal__copy {
  display: flex;
  gap: 8px;
  align-items: center;
}
.share-modal__copy input {
  flex: 1;
  padding: 9px 12px;
  border-radius: 7px;
  border: 1px solid var(--line, rgba(255,255,255,0.1));
  background: var(--surface2, rgba(255,255,255,0.04));
  color: var(--text, #e0e0e0);
  font-size: 0.83rem;
  min-width: 0;
}

/* ── Filter Bar (duration / quality) ───────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  align-items: center;
}
.filter-bar__label {
  font-size: 0.78rem;
  color: var(--text-muted, #888);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 4px;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--line, rgba(255,255,255,0.1));
  background: transparent;
  color: var(--text-muted, #888);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.filter-pill:hover,
.filter-pill.active {
  background: var(--accent, #e32b2b);
  color: #fff;
  border-color: var(--accent, #e32b2b);
}
.filter-divider {
  width: 1px;
  height: 20px;
  background: var(--line, rgba(255,255,255,0.1));
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .go-top { bottom: 16px; right: 16px; width: 38px; height: 38px; font-size: 0.88rem; }
  .share-modal__btns { flex-direction: column; }
  .search-drop { top: var(--header-h-mobile, 56px); }
}

/* ── Categories / Tags / Pornstars listing grid ──────────────────────── */
.tag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}
.tag-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r2);
  text-decoration: none;
  color: var(--t1);
  font-size: 0.85rem;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  overflow: hidden;
}
.tag-card:hover {
  border-color: var(--red);
  background: rgba(227,43,43,0.04);
  color: var(--red);
}
.tag-card__name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tag-card__count {
  font-size: 0.75rem;
  color: var(--t4);
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .tag-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
}
