:root {
  --bg: #0d0d12;
  --panel: #17171f;
  --panel-2: #20202b;
  --line: #2b2b38;
  --text: #f1f1f5;
  --muted: #9a9aab;
  --accent: #e11d74;
  --accent-2: #ff4f9a;
  --radius: 10px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2 { line-height: 1.25; margin: 0; }
h1 { font-size: 1.45rem; }
h2 { font-size: 1.2rem; }
code { background: var(--panel-2); padding: .1em .35em; border-radius: 4px; font-size: .9em; }
.wrap { width: min(1440px, 100% - 32px); margin-inline: auto; }
.small { font-size: .82rem; color: var(--muted); }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 200; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* header */
.site-header { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.head-row { display: flex; align-items: center; gap: 16px; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; flex: none; }
.brand:hover { text-decoration: none; }
.search { display: flex; flex: 1; max-width: 560px; margin-left: auto; }
.search input {
  flex: 1; min-width: 0; padding: 9px 14px; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-right: 0; border-radius: 999px 0 0 999px;
}
.search button {
  padding: 9px 18px; font: inherit; font-weight: 600; color: #fff; cursor: pointer;
  background: var(--accent); border: 1px solid var(--accent); border-radius: 0 999px 999px 0;
}
.search button:hover { background: var(--accent-2); }
.main-nav { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { color: var(--muted); font-weight: 600; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.main-nav a:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.main-nav a[aria-current] { color: #fff; background: var(--accent); }

/* layout */
main { padding-block: 20px 40px; min-height: 60vh; }
section { margin-top: 32px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head a { font-weight: 600; font-size: .9rem; white-space: nowrap; }
.count { color: var(--muted); font-size: .9rem; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }

/* video grid */
.grid { display: grid; gap: 18px 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card { color: var(--text); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card:hover { text-decoration: none; }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--panel-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.card:hover .thumb img { transform: scale(1.04); }
.dur, .hd { position: absolute; bottom: 6px; padding: 1px 6px; border-radius: 4px; font-size: .75rem; font-weight: 700; line-height: 1.5; }
.dur { right: 6px; background: rgba(0, 0, 0, .78); color: #fff; }
.hd { left: 6px; background: var(--accent); color: #fff; }
.ct { font-weight: 600; font-size: .92rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.card:hover .ct { color: var(--accent-2); }
.meta { color: var(--muted); font-size: .8rem; }
.cats { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.cat .ct { text-align: center; font-size: 1rem; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.catbar { margin: 0; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.chip { background: var(--panel-2); border: 1px solid var(--line); color: var(--text); padding: 5px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.chip:hover { border-color: var(--accent); color: #fff; text-decoration: none; }
.chip.ghost { background: transparent; color: var(--muted); font-weight: 500; }

/* pager */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.pager a, .pager span { min-width: 40px; text-align: center; padding: 8px 14px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); color: var(--text); font-weight: 600; }
.pager a:hover { border-color: var(--accent); text-decoration: none; }
.pager span[aria-current] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 999px; background: var(--accent); border: 1px solid var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); text-decoration: none; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--muted); background: var(--panel-2); }

[hidden] { display: none !important; }

/* watch page */
.watch { max-width: 1180px; margin-inline: auto; }
.watch h1 { margin-bottom: 14px; overflow-wrap: anywhere; }
.player { position: relative; aspect-ratio: 16 / 9; width: 100%; max-height: 72vh; background: #000; border-radius: var(--radius); overflow: hidden; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.bigplay { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; background: transparent; border: 0; cursor: pointer; padding: 0; }
.bigplay svg { width: clamp(64px, 12vw, 96px); height: auto; transition: transform .15s ease; }
.bigplay:hover svg { transform: scale(1.08); }
.ad-ui { position: absolute; inset: 0; pointer-events: none; }
.ad-ui > * { pointer-events: auto; position: absolute; font-size: .82rem; font-weight: 700; border-radius: 6px; }
.ad-label { top: 10px; left: 10px; padding: 3px 9px; background: rgba(0, 0, 0, .7); color: #ffd84d; letter-spacing: .02em; }
.ad-visit { top: 10px; right: 10px; padding: 6px 12px; background: rgba(0, 0, 0, .7); color: #fff; border: 1px solid rgba(255, 255, 255, .5); }
.ad-visit:hover { background: #000; text-decoration: none; }
.ad-skip { right: 10px; bottom: 14px; padding: 9px 16px; background: rgba(0, 0, 0, .78); color: #fff; border: 1px solid rgba(255, 255, 255, .6); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.ad-skip:disabled { cursor: default; color: #bbb; border-color: rgba(255, 255, 255, .25); }
.upnext { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; text-align: center; background: rgba(8, 8, 12, .88); }
.upnext p { margin: 0; }
.upnext-label { color: var(--muted); font-weight: 600; }
.upnext-title { font-size: 1.15rem; font-weight: 700; max-width: 640px; overflow-wrap: anywhere; }
.upnext-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.stats a { color: var(--text); font-weight: 700; }
.channel-intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; color: #d5d5de; }
.channel-intro p { margin: 0; max-width: 760px; }
.pager .gap { border: 0; background: transparent; min-width: 0; padding-inline: 2px; color: var(--muted); }
.watch-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.stats { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; color: var(--muted); font-size: .92rem; }
.stats span:first-child { color: var(--text); font-weight: 700; }
.credit { color: var(--muted); font-size: .88rem; margin: 10px 0 0; }

/* text pages */
.prose { max-width: 760px; margin-inline: auto; }
.prose h1 { margin-bottom: 16px; }
.prose h2 { margin: 28px 0 8px; font-size: 1.1rem; }
.prose p, .prose li { color: #d5d5de; }
.prose ul { padding-left: 1.2em; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--panel); padding-block: 24px; color: var(--muted); font-size: .88rem; }
.site-footer p { margin: 0 0 10px; max-width: 900px; }
.site-footer strong { color: var(--text); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.site-footer nav a { color: var(--text); }

/* age gate: opaque, covers everything until the visitor confirms */
.agegate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: var(--bg); overflow: auto; }
.age-ok .agegate { display: none; }
html:not(.age-ok):has(.agegate) body { overflow: hidden; }
html:not(.age-ok):has(.agegate) :is(.site-header, main, .site-footer) { visibility: hidden; }
.agegate-box { max-width: 520px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 32px 28px; }
.agegate-box svg { width: 48px; height: 48px; margin: 0 auto 12px; display: block; }
.agegate-box h2 { font-size: 1.5rem; margin-bottom: 10px; }
.agegate-box p { color: #d5d5de; margin: 0 0 18px; }
.agegate-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 18px; }
.agegate-box .small { margin: 0; color: var(--muted); }

@media (max-width: 640px) {
  .wrap { width: calc(100% - 20px); }
  .brand span { display: none; }
  .search button { padding-inline: 12px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px 8px; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 1.2rem; }
  .ct { font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .thumb img { transition: none; }
  .card:hover .thumb img { transform: none; }
}

/* banner ads, pop-up and cookie bar */
.ad-slot { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 18px 0; }
.ad-slot:empty { display: none; }
.ad-tag { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ad-frame { border: 0; max-width: 100%; background: transparent; display: block; }
.adpop { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .78); }
.adpop-box { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 16px; max-width: 100%; }
.adpop-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 10px; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.adpop-close { background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 8px 14px; font: inherit; font-weight: 600; letter-spacing: 0; text-transform: none; cursor: pointer; }
.adpop-close:disabled { background: #3a3a46; color: #b9b9c6; cursor: default; }
.adpop-slot { display: grid; place-items: center; min-width: 300px; min-height: 250px; }
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; max-width: 900px; margin: 0 auto; padding: 14px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }
.consent p { margin: 0; flex: 1 1 320px; font-size: .9rem; color: #d5d5de; }
.consent-actions { display: flex; gap: 10px; }
html:not(.age-ok) :is(.consent, .adpop) { display: none; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; }

/* floating video ad box */
.vslider { position: fixed; right: 12px; bottom: 12px; z-index: 70; width: 320px; max-width: 62vw; background: #000; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 8px 30px rgba(0, 0, 0, .6); }
.vslider-bar { display: flex; align-items: center; gap: 2px; padding: 2px 4px 2px 10px; background: var(--panel); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vslider-bar span { flex: 1; }
.vslider-bar button { background: none; border: 0; color: #fff; font-size: .95rem; line-height: 1; padding: 6px 8px; cursor: pointer; }
.vslider video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; cursor: pointer; }
html:not(.age-ok) .vslider { display: none; }
@media (max-width: 600px) { .vslider { width: 200px; } }

/* ad network zones placed directly in the page: the box has the banner's size from the start, so nothing jumps */
.ad-direct { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 300px; max-width: 100%; min-height: 276px; margin: 18px auto; overflow: hidden; } /* label 16 + gap 4 + banner 250 (the network's box is 256 high) */
.ad-direct.ad-h100 { min-height: 126px; }
.ad-direct .ad-tag { height: 16px; line-height: 16px; }
.ad-mobileTop { display: none; margin: 10px auto 0; }
@media (max-width: 640px) { .ad-mobileTop { display: flex; } }
html:not(.age-ok) .ad-direct { visibility: hidden; }

/* sister sites: cards among the related videos, menu in the footer */
.net-card .meta { color: var(--accent-2); font-weight: 600; }
.site-footer .network-nav span { color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; align-self: center; }
.watch-info { margin-top: 0; }

/* colours of this site (config.json -> theme) */
:root { --accent: #e11d74; --accent-2: #ff4f9a; }
