/* ==========================================================================
   VelvetX — Adult (18+) Video Site Template
   Pure HTML/CSS/JS · Responsive · Dark theme
   Edit the tokens in :root to rebrand the whole site.
   ========================================================================== */

:root {
  --bg: #0d0d10;
  --surface: #16161b;
  --surface-2: #1f1f26;
  --surface-3: #2b2b35;
  --border: #26262f;
  --text: #f1f1f4;
  --text-2: #b4b4bf;
  --muted: #80808c;
  --accent: #ff2d75;
  --accent-hover: #ff5590;
  --accent-soft: rgba(255, 45, 117, .14);
  --success: #2ecc71;
  --gold: #f5b301;

  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 64px;
  --container: 1440px;
  --gutter: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  color-scheme: dark;
}

@media (min-width: 768px)  { :root { --gutter: 24px; } }
@media (min-width: 1280px) { :root { --gutter: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 20px; height: 20px; flex: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 8px; }
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px;
  font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: background .15s, transform .1s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: rgba(255, 255, 255, .1); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); }
.btn-lg { height: 48px; padding: 0 26px; font-size: 15px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 50%; color: var(--text); transition: background .15s;
}
.icon-btn:hover { background: var(--surface-2); }

.select {
  appearance: none; -webkit-appearance: none;
  height: 38px; padding: 0 34px 0 12px;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4b4bf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 13.5px; color: var(--text); cursor: pointer;
}
.select:hover { border-color: var(--surface-3); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 13, 16, .88);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { position: relative; display: flex; align-items: center; gap: 8px; height: var(--header-h); }

.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 21px; letter-spacing: -.02em; flex: none; }
.logo-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: #fff; }
.logo-mark .icon { width: 15px; height: 15px; margin-left: 2px; }

.main-nav { display: none; gap: 2px; margin-left: 20px; }
.main-nav a { padding: 8px 14px; border-radius: 999px; color: var(--text-2); font-weight: 500; font-size: 14px; transition: .15s; }
.main-nav a:hover { color: var(--text); background: var(--surface-2); }
.main-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

.header-search { display: none; flex: 1; max-width: 520px; margin-left: auto; align-items: center; gap: 8px; }
.search-form {
  display: flex; align-items: center; width: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; overflow: hidden;
  transition: border-color .15s;
}
.search-form:focus-within { border-color: var(--accent); }
.search-form input { flex: 1; min-width: 0; height: 40px; background: none; border: 0; outline: 0; padding: 0 18px; font-size: 14px; }
.search-form input::placeholder { color: var(--muted); }
.search-form input::-webkit-search-cancel-button { display: none; }
.search-form button { display: grid; place-items: center; width: 52px; height: 40px; background: var(--surface-2); color: var(--text-2); border-left: 1px solid var(--border); }
.search-form button:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }

/* mobile search overlay */
.site-header.search-open .header-search {
  display: flex; position: absolute; inset: 0; max-width: none; margin: 0;
  padding-inline: var(--gutter); background: var(--bg); z-index: 2;
}

@media (max-width: 479px) {
  .btn-signin { width: 40px; padding: 0; }
  .btn-signin span { display: none; }
}
@media (min-width: 768px) {
  .header-search { display: flex; }
  .header-actions { margin-left: 8px; }
  .search-toggle, .search-close { display: none; }
}
@media (min-width: 1100px) {
  .main-nav { display: flex; }
  .menu-btn { display: none; }
}

/* ---------- Drawer (mobile nav) ---------- */
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 70;
  width: min(300px, 85vw); padding: 12px 12px 24px; overflow-y: auto;
  background: var(--surface); border-right: 1px solid var(--border);
  transform: translateX(-100%); visibility: hidden;
  transition: transform .25s ease, visibility .25s;
}
.overlay {
  position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .6);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
body.drawer-open { overflow: hidden; }
body.drawer-open .drawer { transform: none; visibility: visible; }
body.drawer-open .overlay { opacity: 1; visibility: visible; }

.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 12px; }
.drawer-title { padding: 18px 12px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.drawer-nav a {
  display: flex; align-items: center; gap: 14px; padding: 10px 12px;
  border-radius: var(--radius-sm); color: var(--text-2); font-weight: 500; font-size: 14.5px;
}
.drawer-nav a:hover, .drawer-nav a[aria-current="page"] { background: var(--surface-2); color: var(--text); }
.drawer-nav a[aria-current="page"] .icon { color: var(--accent); }

/* ---------- Sections ---------- */
main { display: block; padding-bottom: 24px; }
.section { margin-top: 40px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-title { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.section-title::before { content: ""; width: 4px; height: 20px; border-radius: 2px; background: var(--accent); }
.section-link { display: inline-flex; align-items: center; gap: 2px; flex: none; color: var(--text-2); font-size: 14px; font-weight: 500; }
.section-link:hover { color: var(--accent); }
.section-link .icon { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; display: flex; align-items: flex-end;
  min-height: clamp(400px, 46vw, 560px); margin-top: 20px;
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, #3a1a2a, #0d0d10 65%);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(13, 13, 16, .96) 0%, rgba(13, 13, 16, .5) 45%, rgba(13, 13, 16, .05) 100%),
    linear-gradient(to right, rgba(13, 13, 16, .8), transparent 70%);
}
.hero-content { position: relative; z-index: 1; max-width: 660px; padding: 28px 20px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.hero .quality-tag { background: var(--gold); color: #111; }
.hero-tag .icon { width: 14px; height: 14px; }
.hero-title { margin: 14px 0 10px; font-size: clamp(28px, 4.6vw, 54px); line-height: 1.08; font-weight: 800; letter-spacing: -.025em; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--text-2); font-size: 14px; }
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.hero-desc {
  max-width: 560px; margin-top: 12px; color: var(--text-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
@media (min-width: 768px) { .hero-content { padding: 48px; } }

/* ---------- Chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-block: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; flex: none; height: 36px; padding: 0 16px;
  border-radius: 999px; background: var(--surface-2); color: var(--text-2);
  font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .15s, color .15s;
}
.chip:hover { background: var(--surface-3); color: var(--text); }
.chip.active, .chip[aria-current="page"], .chip[aria-pressed="true"] { background: var(--text); color: var(--bg); }

/* ---------- Badges / quality ---------- */
.badge {
  position: absolute; z-index: 1; padding: 4px 6px; border-radius: 4px;
  font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: .02em;
  background: rgba(0, 0, 0, .8); color: #fff;
}
.badge-time { right: 6px; bottom: 6px; }
.badge-q { left: 6px; top: 6px; background: var(--accent); }
.badge-q.is-4k { background: var(--gold); color: #111; }
.quality-tag { padding: 2px 8px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; }

/* ---------- Video grid & card ---------- */
.video-grid { display: grid; gap: 20px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) {
  .video-grid { gap: 28px 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
/* Home rows: keep exactly 2 full rows at every breakpoint */
@media (min-width: 640px) and (max-width: 1023px) { .video-grid--clamp > :nth-child(n+7) { display: none; } }
@media (min-width: 1024px) and (max-width: 1399px) { .video-grid--clamp > :nth-child(n+9) { display: none; } }
@media (min-width: 640px) and (max-width: 1023px) { .video-grid--clamp { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) and (max-width: 1399px) { .video-grid--clamp { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .video-grid--clamp { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.card { min-width: 0; }
.thumb {
  position: relative; display: block; aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm); overflow: hidden;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .thumb img, .mini-card:hover .thumb img { transform: scale(1.05); }
.thumb-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0, 0, 0, .25); opacity: 0; transition: opacity .2s;
}
.thumb-play span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 45, 117, .92); color: #fff; }
.thumb-play .icon { width: 20px; height: 20px; margin-left: 3px; }
.card:hover .thumb-play { opacity: 1; }
@media (hover: none) { .thumb-play { display: none; } }

.card-body { padding-top: 10px; }
.card-title {
  font-size: 14.5px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-title a:hover { color: var(--accent); }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.card-meta .icon { width: 14px; height: 14px; }
.rating { color: var(--success); }
@media (max-width: 639px) {
  .card-title { font-size: 13.5px; }
  .card-meta { font-size: 12px; gap: 2px 10px; }
}

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px)  { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .cat-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.cat-tile {
  position: relative; display: flex; align-items: flex-end; aspect-ratio: 16 / 10; padding: 12px;
  border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2);
}
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, .1)); }
.cat-tile:hover img { transform: scale(1.08); }
.cat-tile-text { position: relative; z-index: 1; }
.cat-tile strong { display: block; font-size: 15px; }
.cat-tile small { color: var(--text-2); font-size: 12px; }

/* ---------- SEO text block ---------- */
.seo-text {
  margin-top: 48px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text-2); font-size: 14px;
}
.seo-text h2 { margin-bottom: 10px; color: var(--text); font-size: 18px; }
.seo-text p + p { margin-top: 10px; }

/* ---------- Breadcrumb / page head ---------- */
.breadcrumb {
  display: flex; align-items: center; gap: 6px; padding-top: 18px; margin-bottom: 14px;
  font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb li:last-child { min-width: 0; }
.breadcrumb li:last-child span { overflow: hidden; text-overflow: ellipsis; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .icon { width: 14px; height: 14px; }
.breadcrumb [aria-current] { color: var(--text-2); }

.page-head { margin-bottom: 20px; }
.page-title { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.page-sub { margin-top: 6px; color: var(--muted); font-size: 14px; max-width: 760px; }

/* ---------- Watch page ---------- */
.watch {
  display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "player" "info" "side" "comments";
}
@media (min-width: 1100px) {
  .watch {
    column-gap: 28px;
    grid-template-columns: minmax(0, 1fr) 380px;
    grid-template-rows: auto auto auto 1fr;
    grid-template-areas: "player side" "info side" "comments side" ". side";
  }
}
.watch-player { grid-area: player; }
.watch-info { grid-area: info; min-width: 0; }
.watch-side { grid-area: side; min-width: 0; }
.watch-comments { grid-area: comments; min-width: 0; }

.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
@media (max-width: 767px) {
  .player { margin-inline: calc(-1 * var(--gutter)); border-radius: 0; }
}

.watch-title { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.watch-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; }
.watch-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--text-2); font-size: 14px; }
.watch-stats span { display: inline-flex; align-items: center; gap: 6px; }
.watch-stats .icon { width: 16px; height: 16px; color: var(--muted); }
.watch-actions { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.watch-actions::-webkit-scrollbar { display: none; }
.action-btn {
  display: inline-flex; align-items: center; gap: 8px; flex: none; height: 38px; padding: 0 14px;
  border-radius: 999px; background: var(--surface-2); font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background .15s, color .15s;
}
.action-btn:hover { background: var(--surface-3); }
.action-btn[aria-pressed="true"] { color: var(--accent); }
.action-btn .icon { width: 18px; height: 18px; }
.like-group { display: inline-flex; flex: none; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.like-group .action-btn { border-radius: 0; background: none; }
.like-group .action-btn:hover { background: var(--surface-3); }
.like-group .action-btn + .action-btn { border-left: 1px solid var(--surface-3); }
@media (max-width: 767px) {
  .watch-bar { flex-direction: column; align-items: stretch; }
}

.desc { margin-top: 16px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.desc-body { position: relative; max-height: 110px; overflow: hidden; color: var(--text-2); font-size: 14.5px; }
.desc-body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 48px; background: linear-gradient(transparent, var(--surface)); }
.desc.open .desc-body { max-height: none; }
.desc.open .desc-body::after { display: none; }
.desc-body p + p { margin-top: 10px; }
.info-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin-top: 14px; font-size: 14px; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; color: var(--text); }
.info-list a { color: var(--accent); }
.info-list a:hover { text-decoration: underline; }
.desc-toggle { margin-top: 10px; font-size: 14px; font-weight: 600; }
.desc-toggle:hover { color: var(--accent); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px;
  background: var(--surface-2); color: var(--text-2); font-size: 13px; transition: .15s;
}
.tag::before { content: "#"; margin-right: 2px; color: var(--muted); }
.tag:hover { background: var(--surface-3); color: var(--text); }

.side-title { margin-bottom: 14px; font-size: 16px; font-weight: 700; }
.mini-list { display: grid; gap: 12px; }
@media (min-width: 640px) and (max-width: 1099px) { .mini-list { grid-template-columns: 1fr 1fr; gap: 16px; } }
.mini-card { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 12px; align-items: start; }
.mini-card .card-title { font-size: 14px; }
.mini-card .card-meta { flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 4px; }
@media (max-width: 479px) { .mini-card { grid-template-columns: 140px minmax(0, 1fr); } }

/* comments */
.comments-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.comments-head h2 { font-size: 18px; font-weight: 700; }
.avatar {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface-3); color: #fff; font-weight: 700; font-size: 15px;
}
.comment-form { display: flex; gap: 12px; margin-bottom: 28px; }
.comment-form-body { flex: 1; min-width: 0; }
.comment-form textarea {
  display: block; width: 100%; min-height: 44px; padding: 10px 0; resize: vertical;
  background: transparent; border: 0; border-bottom: 1px solid var(--surface-3); outline: 0; font-size: 14.5px;
}
.comment-form textarea:focus { border-color: var(--accent); }
.comment-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.comment { display: flex; gap: 12px; }
.comment + .comment { margin-top: 22px; }
.comment-main { min-width: 0; }
.comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 13px; }
.comment-head strong { font-size: 14px; }
.comment-head time { color: var(--muted); }
.comment p { margin-top: 4px; color: var(--text-2); font-size: 14.5px; overflow-wrap: anywhere; }
.comment-actions { display: flex; gap: 16px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.comment-actions button { display: inline-flex; align-items: center; gap: 6px; }
.comment-actions button:hover { color: var(--text); }
.comment-actions .icon { width: 15px; height: 15px; }

/* ---------- Browse (category / search) ---------- */
.browse { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .browse { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; } }

.cat-nav-title { display: none; }
.cat-nav ul { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.cat-nav ul::-webkit-scrollbar { display: none; }
.cat-nav a {
  display: inline-flex; align-items: center; gap: 8px; flex: none; height: 36px; padding: 0 16px;
  border-radius: 999px; background: var(--surface-2); color: var(--text-2);
  font-size: 14px; font-weight: 500; white-space: nowrap; transition: .15s;
}
.cat-nav a:hover { background: var(--surface-3); color: var(--text); }
.cat-nav a[aria-current="page"] { background: var(--text); color: var(--bg); }
.cat-nav small { display: none; color: var(--muted); font-size: 12px; }
@media (min-width: 1024px) {
  .cat-nav { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; }
  .cat-nav-title { display: block; margin-bottom: 10px; padding-left: 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .cat-nav ul { flex-direction: column; gap: 2px; overflow: visible; }
  .cat-nav a { display: flex; justify-content: space-between; height: auto; padding: 9px 12px; border-radius: var(--radius-sm); background: none; }
  .cat-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
  .cat-nav a[aria-current="page"] small { color: var(--accent); }
  .cat-nav small { display: inline; }
}

.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.filters { display: flex; gap: 8px; }
@media (max-width: 767px) {
  .toolbar .chips { width: 100%; }
  .filters { width: 100%; }
  .filters .select { flex: 1; min-width: 0; }
}

.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 40px; }
.page-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text-2); font-size: 14px; font-weight: 600; transition: .15s;
}
.page-link:hover { background: var(--surface-3); color: var(--text); }
.page-link[aria-current="page"] { background: var(--accent); color: #fff; }
.page-link.is-disabled { opacity: .4; pointer-events: none; }
.page-link .icon { width: 16px; height: 16px; }
.page-gap { padding: 0 4px; color: var(--muted); }
@media (max-width: 479px) {
  .page-link.hide-sm { display: none; }
  .page-link span { display: none; }
}

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 56px; padding: 40px 0 24px; border-top: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 14px; }
.footer-grid { display: grid; gap: 32px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { max-width: 340px; margin-top: 12px; color: var(--muted); }
.footer-col h4 { margin-bottom: 12px; color: var(--text); font-size: 14px; }
.footer-col li + li { margin-top: 8px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px;
}
.footer-bottom label { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom .icon { width: 16px; height: 16px; }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr repeat(3, 1fr); }
  .footer-brand { grid-column: auto; }
}

/* ---------- Floating UI ---------- */
.back-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .4);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .2s;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90;
  padding: 10px 18px; border-radius: 999px; background: var(--text); color: var(--bg);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  opacity: 0; visibility: hidden; transform: translate(-50%, 20px); transition: .2s;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; display: none;
  max-width: 440px; padding: 16px 18px; border: 1px solid var(--surface-3); border-radius: var(--radius);
  background: var(--surface-2); box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
.cookie.show { display: block; }
.cookie p { color: var(--text-2); font-size: 13.5px; }
.cookie a { color: var(--text); text-decoration: underline; }
.cookie-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Adult (18+) edition
   ========================================================================== */

/* ---------- Age gate ---------- */
.age-gate {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; overflow-y: auto;
  background: rgba(5, 5, 7, .94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.age-ok .age-gate { display: none; }
html:not(.age-ok) body { overflow: hidden; }
.age-gate-box {
  width: 100%; max-width: 520px; padding: 32px 22px; text-align: center;
  border: 1px solid var(--surface-3); border-radius: 16px; background: var(--surface);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.age-gate .logo { justify-content: center; }
.age-badge {
  display: grid; place-items: center; width: 68px; height: 68px; margin: 22px auto 14px;
  border: 3px solid var(--accent); border-radius: 50%; color: var(--accent); font-size: 22px; font-weight: 800;
}
.age-gate h2 { margin-bottom: 10px; font-size: 22px; }
.age-gate p { color: var(--text-2); font-size: 14px; }
.age-gate-actions { display: grid; gap: 10px; margin-top: 24px; }
.age-gate-actions .btn { white-space: normal; }
.age-gate .age-gate-note { margin-top: 18px; color: var(--muted); font-size: 12.5px; }
.age-gate-note a { color: var(--text); text-decoration: underline; }
@media (min-width: 560px) { .age-gate-box { padding: 40px; } }

/* ---------- Section head with sort tabs ---------- */
.section-head--tabs { flex-wrap: wrap; }
.section-head--tabs .chips { margin-right: auto; }
.chips--sm .chip { height: 32px; padding: 0 14px; font-size: 13px; }
@media (max-width: 767px) {
  .section-head--tabs .chips { order: 3; width: 100%; margin-right: 0; }
}

/* Dense tube grid: 4 full rows at every breakpoint */
@media (max-width: 639px) { .video-grid--clamp4 > :nth-child(n+11) { display: none; } }
@media (min-width: 640px) and (max-width: 1023px) {
  .video-grid--clamp4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .video-grid--clamp4 > :nth-child(n+13) { display: none; }
}
@media (min-width: 1024px) and (max-width: 1399px) {
  .video-grid--clamp4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .video-grid--clamp4 > :nth-child(n+17) { display: none; }
}
@media (min-width: 1400px) { .video-grid--clamp4 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---------- Compliance footer ---------- */
.footer-legal {
  display: flex; align-items: flex-start; gap: 14px; margin-top: 28px; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--muted); font-size: 12.5px;
}
.footer-legal a { color: var(--text-2); text-decoration: underline; }
.rta-badge {
  display: grid; place-items: center; flex: none; width: 52px; height: 26px;
  border: 1.5px solid var(--muted); border-radius: 4px; color: var(--text-2);
  font-size: 12px; font-weight: 800; letter-spacing: .08em;
}

/* ---------- Category icons ---------- */
.chip .icon { width: 16px; height: 16px; margin-right: 7px; opacity: .85; }

.drawer-nav .cat-link { gap: 12px; padding: 6px 12px; }
.drawer-nav .cat-ico {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px;
  border-radius: 10px; background: var(--surface-2); color: var(--accent);
  transition: background .15s, color .15s;
}
.drawer-nav .cat-ico .icon { width: 18px; height: 18px; }
.drawer-nav .cat-link:hover .cat-ico { background: var(--accent); color: #fff; }
.drawer-nav .cat-link small { margin-left: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }

.cat-label { display: inline-flex; align-items: center; gap: 8px; }
.cat-nav .cat-label .icon { width: 16px; height: 16px; opacity: .85; }
@media (min-width: 1024px) {
  .cat-nav .cat-label { gap: 10px; }
  .cat-nav .cat-label .icon { width: 18px; height: 18px; color: var(--muted); opacity: 1; }
  .cat-nav a:hover .cat-label .icon, .cat-nav a[aria-current="page"] .cat-label .icon { color: var(--accent); }
}
body.drawer-open .cookie { display: none; }

/* ---------- Imported-content pages ---------- */
[hidden] { display: none !important; }
/* The Eporner embed draws a 50px title bar over the top of the video. It lives in a cross-origin
   iframe, so the iframe is made taller and shifted up to crop the bar off. The embed centres the
   video vertically, so the extra height keeps the whole video visible and leaves a strip for its controls. */
.player { --embed-bar: 50px; aspect-ratio: auto; }
.player::before { content: ""; display: block; padding-top: calc(56.25% + var(--embed-bar)); }
.player iframe { position: absolute; left: 0; top: calc(-1 * var(--embed-bar)); width: 100%; height: calc(100% + var(--embed-bar)); border: 0; }
.empty-state { padding: 48px 16px; text-align: center; color: var(--muted); font-size: 15px; }
.info-list .icon { width: 13px; height: 13px; vertical-align: -1px; }

.cat-tile-ico { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-bottom: 8px; border-radius: 9px; background: var(--accent); color: #fff; }
.cat-tile-ico .icon { width: 17px; height: 17px; }
.cat-grid--lg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px)  { .cat-grid--lg { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cat-grid--lg { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .cat-grid--lg { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
