/* Shared tube template. Layout and look follow fuq.com: black page, charcoal header, 16:9 cards,
   translucent badges, accent colour only on the logo. --accent is set per site in base.html. */
:root {
  --bg: #000; --layer: #18181b; --layer2: #27272a; --layer3: #3f3f46;
  --text: #e4e4e7; --dim: #a1a1aa; --dimmer: #71717a;
  --good: #4ade80; --bad: #fb923c; --gate: #15803d;
  --badge: rgba(39, 39, 42, .82); --radius: 4px; --gap: 8px;
  --font: -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.4 var(--font); min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
.dim { color: var(--dim); } .small { font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 22px; height: 22px; flex: none; } .ic-sm { width: 15px; height: 15px; flex: none; } .ic-xs { width: 12px; height: 12px; flex: none; }

/* ---------- header ---------- */
.hdr { background: var(--layer); border-bottom: 1px solid #000; }
.hdr-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; max-width: 2200px; margin: 0 auto; }
.logo { font: 900 30px/1 var(--font); letter-spacing: -.02em; color: var(--accent); white-space: nowrap; }
.desk-nav { display: flex; gap: 4px; margin-left: 12px; }
.nav-item { display: flex; align-items: center; gap: 6px; padding: 8px 10px; font-size: 17px; color: #d4d4d8; border-radius: var(--radius); }
.nav-item:hover { color: #fff; }
/* Native-style sponsored nav links */
.nl { color: #fff; font-weight: 700; white-space: nowrap; }
.nl:hover { color: var(--accent); }
.nl-badge { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 99px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; vertical-align: 2px; }
.nl-more, .nl-drawer { color: #fff !important; font-weight: 700; }
.nl-mobile { padding: 6px 8px; font-size: 14px; }
.search { margin-left: auto; display: flex; flex: 0 1 560px; min-width: 0; border: 1px solid var(--layer3); border-radius: 999px; overflow: hidden; background: #000; }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font: 16px var(--font); padding: 10px 18px; }
.search input::placeholder { color: var(--dimmer); }
.search button { padding: 0 16px; border-left: 1px solid var(--layer3); display: flex; align-items: center; color: var(--dim); }
.hdr-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--dim); border-radius: var(--radius); }
.hdr-icon:hover { color: #fff; }

/* dropdowns */
.dd { position: relative; }
.dd-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 50; min-width: 200px; max-height: 70vh; overflow: auto;
  background: var(--layer); border: 1px solid var(--layer2); border-radius: 6px; padding: 6px 0; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.dd-menu.right { left: auto; right: 0; }
.dd.open > .dd-menu { display: block; }
.dd-menu a, .dd-menu .toggle { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 14px; white-space: nowrap; color: #d4d4d8; }
.dd-menu a:hover { background: var(--layer2); color: #fff; }
.dd-menu a.sel { color: var(--accent); font-weight: 600; }
.dd-menu.cols { columns: 3; min-width: 600px; column-gap: 0; }
.dd-menu.cols a { break-inside: avoid; }
.dd-menu .all { color: var(--accent); }
.toggle input { accent-color: var(--accent); }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.6); }
.drawer-panel { width: min(82vw, 320px); height: 100%; overflow: auto; background: var(--layer); padding: 12px 0; }
.drawer-panel a { display: block; padding: 9px 18px; font-size: 16px; }
.drawer-panel h4 { margin: 14px 18px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--dimmer); }
.drawer-panel .all { color: var(--accent); }

/* ---------- main ---------- */
.main { padding: 16px 16px 32px; max-width: 2200px; margin: 0 auto; }
.sec-title { font-size: 26px; font-weight: 700; margin: 8px 0 20px; }
.list-head h1 { font-size: 28px; font-weight: 700; margin: 6px 0 14px; }
.list-head .count { font-size: 20px; font-weight: 400; color: var(--dim); }

/* toolbar: filters + sort */
.toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.fbtn, .btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--layer); border-radius: 6px; color: #d4d4d8; }
.fbtn.on { color: var(--accent); }
.fbtn:hover, .btn:hover { background: var(--layer2); }
.sort { margin-left: auto; }
.sort-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 4px; color: #d4d4d8; font-size: 15px; }

/* ---------- grid + cards ---------- */
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); padding: 4px 0 24px; }
.large-thumbs .grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card { position: relative; min-width: 0; }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--layer); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: filter .2s; }
.meta-badges { position: absolute; inset: auto 4px 4px 4px; display: flex; justify-content: space-between; align-items: flex-end; gap: 4px; pointer-events: none; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 5px; border-radius: var(--radius); background: var(--badge); color: #fafafa; font-size: 13px; white-space: nowrap; }
.badge.rate.good { color: var(--good); } .badge.rate.bad { color: var(--bad); }
.badge.dur { margin-left: auto; } .badge b { font-style: italic; }
.card-body { display: flex; align-items: flex-start; gap: 4px; margin-top: 6px; }
.card-body .title { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-body .title:hover { color: #fff; text-decoration: underline; }
.dots { color: var(--dim); padding: 1px 2px; } .dots .ic { width: 18px; height: 18px; }
.card-sub { display: flex; justify-content: space-between; gap: 8px; margin-top: 2px; font-size: 13px; color: var(--dim); }
.card-sub .src { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-sub a.src:hover { color: #fff; }
.card-sub .when { white-space: nowrap; }

/* fuq-style "rate it" overlay shown when you come back to a card you clicked */
.rate-overlay { position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 16 / 9; display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.55); border-radius: var(--radius); z-index: 5; }
.card.rating-active .rate-overlay { display: flex; }
.rate-overlay button { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; transition: transform .1s; }
.rate-overlay button:hover { transform: scale(1.2); border-radius: var(--radius); z-index: 1; }
.rate-up { background: #bbf7d0; color: #166534; border-radius: var(--radius) 0 0 var(--radius); }
.rate-down { background: #fecdd3; color: #9f1239; }
.rate-none { background: #e4e4e7; color: #3f3f46; border-radius: 0 var(--radius) var(--radius) 0; }

/* sponsored card */
.bn-thumb { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--layer2), #000); }
.bn-text { padding: 16px; text-align: center; font-size: 18px; font-weight: 800; color: var(--accent); }

/* tiles (categories / pornstars) */
.tile h3 { margin-top: 6px; font-size: 18px; font-weight: 700; padding: 0 4px; }
.tile:hover h3 { color: #fff; text-decoration: underline; }

/* A-Z lists */
.az { margin-top: 28px; }
.az h3 { font-size: 20px; margin-bottom: 12px; }
.az-cols { columns: 6 180px; column-gap: 16px; }
.az-cols a { display: block; padding: 3px 0; break-inside: avoid; color: #d4d4d8; }
.az-cols a:hover { color: #fff; text-decoration: underline; }

/* chips */
.chips-sec { margin-top: 24px; } .chips-sec h2 { font-size: 20px; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.chips-label { color: var(--dim); margin-right: 4px; }
.chip { padding: 5px 10px; border-radius: 999px; background: var(--layer); color: #d4d4d8; font-size: 13px; }
.chip:hover { background: var(--layer2); color: #fff; }
.chip.strong { color: #fff; font-weight: 600; }

/* pagination */
.pagination { display: flex; flex-direction: column; gap: 8px; align-items: center; margin: 8px 0 16px; }
.pages { display: flex; gap: 4px; }
.pbtn { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 6px; background: var(--layer); font-size: 15px; }
.pbtn:hover { background: var(--layer2); }
.pbtn.sel { background: var(--layer3); color: #fff; font-weight: 700; }
.pbtn.prim { background: var(--accent); color: #000; }
.empty, .notfound { padding: 40px 0; text-align: center; } .notfound h1 { font-size: 28px; margin-bottom: 8px; } .notfound .chips { justify-content: center; margin-top: 16px; }

/* ---------- watch page ---------- */
.watch-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.watch-side { display: none; }
@media (min-width: 1200px) {
  .watch-layout { grid-template-columns: minmax(0, 1fr) 360px; }
  .watch-side { display: block; }
  .side-dup { display: none; }
}
.watch { min-width: 0; max-width: min(100%, calc((100vh - 210px) * 16 / 9)); }
.watch-side .side-title { font-size: 16px; margin: 12px 0 10px; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; }
.side-list { display: grid; gap: 14px; }
.side-bn { display: block; border-radius: var(--radius); overflow: hidden; background: var(--layer); text-align: center; }
.side-bn img { width: 100%; height: auto; }
.side-bn span { display: block; padding: 40px 16px; font-size: 20px; font-weight: 800; color: var(--accent); }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-bn { display: block; margin-top: 8px; border-radius: var(--radius); overflow: hidden; background: var(--layer); text-align: center; }
.player-bn img { margin: 0 auto; max-height: 120px; width: auto; }
.player-bn span { display: block; padding: 14px; font-weight: 800; color: var(--accent); }
.watch-info h1 { font-size: 22px; margin: 14px 0 10px; }
.watch-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.votes { display: flex; border-radius: 6px; overflow: hidden; }
.vbtn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--layer); }
.vbtn:hover { background: var(--layer2); } .vbtn.up span { color: var(--good); font-weight: 600; }
.vbtn.voted { background: var(--layer3); } .vbtn.up.voted { color: var(--good); } .vbtn.down.voted { color: var(--bad); }
.stats { display: flex; gap: 14px; flex-wrap: wrap; }
.watch-bar .dd { margin-left: auto; }

/* ---------- footer ---------- */
.ftr { border-top: 1px solid var(--layer2); padding: 24px 16px 32px; max-width: 2200px; margin: 0 auto; }
.ftr h2 { font-size: 18px; margin-bottom: 8px; }
.seo-copy { color: var(--dim); max-width: 900px; }
.ftr-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 20px 0; }
.ftr-cols h3 { font-size: 15px; margin-bottom: 8px; }
.ftr-cols a { display: block; padding: 3px 0; color: var(--dim); } .ftr-cols a:hover { color: #fff; }

/* legal */
.legal { max-width: 800px; } .legal h1 { font-size: 28px; margin: 8px 0 16px; } .legal h2 { font-size: 18px; margin: 20px 0 6px; }
.legal p, .legal li { color: #d4d4d8; line-height: 1.6; } .legal a { color: var(--accent); }

/* ---------- age gate ---------- */
.gate { display: none; }
.gated .gate[open] { display: flex; }
.gate { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 24px 8px; border: 0;
  background: transparent; color: var(--text); align-items: flex-start; justify-content: center; overflow: auto; z-index: 1000; }
.gate::backdrop { background: rgba(0,0,0,.55); }
.gate-box { width: 100%; max-width: 500px; background: #0a0a0a; border-radius: var(--radius); padding: 20px; box-shadow: 0 25px 50px rgba(0,0,0,.6); }
.gate h2 { font-size: 26px; font-weight: 800; display: flow-root; }
.gate-badge { float: left; width: 64px; height: 64px; margin: 0 14px 10px 0; border-radius: 50%; background: #b91c1c; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; }
.gate-body { margin: 10px 0 16px; font-size: 14px; line-height: 1.55; max-height: 52vh; overflow: auto; }
.gate-body a { text-decoration: underline; }
.gate-enter { width: 100%; padding: 10px; border-radius: var(--radius); background: var(--gate); color: #fff; font-size: 20px; line-height: 1.3; border: 2px solid #4ade8033; }
.gate-enter:hover { background: #166534; }
.gate-terms { text-align: center; margin: 12px 0 0; } .gate-terms a { color: #facc15; text-decoration: underline; }
.gated .thumb img, .gated .player { filter: blur(20px); }
.gated body { overflow: hidden; }

/* ---------- responsive ---------- */
.only-mobile { display: none !important; }
@media (max-width: 900px) {
  .only-desktop { display: none !important; }
  .only-mobile { display: inline-flex !important; }
  .hdr-row { flex-wrap: wrap; padding: 8px 12px; gap: 6px; }
  .logo { font-size: 28px; margin-right: auto; }
  .search { order: 5; flex: 1 1 100%; margin: 6px 0 4px; }
  .hdr-row:has(.nl-mobile) .logo { font-size: 23px; }
  .nl-mobile { font-size: 14px; padding: 4px 2px; color: var(--accent); }
  .nl-mobile .nl-badge { display: none; }
  .main { padding: 12px 12px 24px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 8px; }
  .large-thumbs .grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .card-body .title { font-size: 14px; }
  .card-sub { font-size: 12px; }
  .badge { font-size: 12px; }
  .filters { display: none; position: absolute; left: 12px; right: 12px; margin-top: 52px; z-index: 40; padding: 10px; background: var(--layer); border-radius: 6px; }
  .filters.open { display: flex; }
  .toolbar { position: relative; }
  .list-head h1 { font-size: 24px; }
  .dd-menu.cols { columns: 1; min-width: 220px; }
  .tile h3 { font-size: 15px; }
  .watch-info h1 { font-size: 18px; }
  .main:has(.watch) { padding-left: 0; padding-right: 0; }
  .watch-info, .main:has(.watch) > .sec-title, .main:has(.watch) > .grid { padding-left: 12px; padding-right: 12px; }
  .player { border-radius: 0; }
}
