* { box-sizing: border-box; margin: 0; padding: 0; }
:root { --on-accent:#fff; --font-head:inherit; --radius:6px; --ratio:16/9; --tt:none; --bg:#0c0d10; --panel:#15171e; --line:#232731; --line2:#2a2e3b; --text:#fff; --soft:#cbd5e1; --mute:#828a99; --accent:#ff0055; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.45; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrapper { max-width: 1100px; margin: 0 auto; padding: 0 15px 20px; display: flex; flex-direction: column; gap: 22px; }

/* header: logo + search, then nav */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--panel); border-bottom: 1px solid var(--line); }
.site-header .inner { max-width: 1100px; margin: 0 auto; padding: 0 15px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; }
.logo { font-size: 1.25rem; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
.search { display: flex; flex: 1; max-width: 360px; }
.search input { flex: 1; min-width: 0; background: var(--bg); color: var(--text); border: 1px solid var(--line2); border-right: 0; border-radius: 999px 0 0 999px; padding: 8px 14px; font: inherit; font-size: .85rem; }
.search button { background: var(--accent); color: var(--on-accent); border: 0; border-radius: 0 999px 999px 0; padding: 8px 16px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.nav { display: flex; gap: 4px; align-items: center; padding-bottom: 10px; font-size: .85rem; color: var(--soft); position: relative; flex-wrap: wrap; }
.nav > a, .nav summary { padding: 5px 12px; border-radius: 999px; cursor: pointer; list-style: none; }
.nav > a:hover, .nav summary:hover, .nav details[open] summary { background: var(--line); color: #fff; }
.nav summary::-webkit-details-marker { display: none; }
.cats { position: relative; }
.cat-menu { position: absolute; top: 110%; left: 0; z-index: 30; width: min(560px, 92vw); max-height: 55vh; overflow: auto; background: var(--panel); border: 1px solid var(--line2); border-radius: var(--radius); padding: 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 2px; box-shadow: 0 12px 30px rgba(0,0,0,.6); }
.cat-menu a { padding: 6px 8px; border-radius: 4px; font-size: .8rem; color: var(--soft); }
.cat-menu a:hover { background: var(--line); color: var(--accent); }

/* ad slots (reserve space so the layout does not jump) */
.ad { background: var(--panel); border: 1px dashed var(--line2); color: #7c8598; font-size: .72rem; letter-spacing: .5px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: var(--radius); width: 100%; overflow: hidden; }
.ad small { opacity: .7; margin-top: 2px; }
.ad-top, .ad-banner { min-height: 90px; margin-top: 18px; }
.ad-banner { margin-top: 0; }
.ad-infeed { min-height: 120px; }

/* sections + grid */
.section-title { font-size: 1rem; font-weight: 700; color: var(--soft); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ''; width: 4px; height: 1em; background: var(--accent); border-radius: 2px; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.state { color: var(--mute); font-size: .85rem; padding: 10px 0; grid-column: 1 / -1; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s; }
.card:hover, .card:focus-visible { transform: translateY(-3px); border-color: var(--accent); outline: none; }
.thumb-box { position: relative; background: #000; aspect-ratio: var(--ratio); overflow: hidden; }
.thumb-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.play-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.3); display: flex; align-items: center; justify-content: center; opacity: .9; transition: opacity .2s; z-index: 2; pointer-events: none; }
.card:hover .play-overlay, .card:focus-visible .play-overlay { opacity: 0; }
.play-btn-icon { width: 40px; height: 40px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.6); }
.play-btn-icon::after { content: ''; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 10px solid var(--on-accent); margin-left: 2px; }
.duration { position: absolute; bottom: 6px; right: 6px; background: rgba(0,0,0,.85); font-size: .7rem; padding: 2px 6px; border-radius: 4px; font-weight: 600; z-index: 3; }
.card-info { padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.card-title { font-size: .8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { display: flex; justify-content: space-between; font-size: .7rem; color: var(--mute); }
.more { display: block; margin: 14px auto 0; background: var(--panel); color: var(--soft); border: 1px solid var(--line2); border-radius: 999px; padding: 9px 26px; font: inherit; font-size: .85rem; cursor: pointer; }
.more:hover { border-color: var(--accent); color: #fff; }

/* watch page */
.player-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.player-wrapper { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; background: #000; }
.player-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-info { padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 8px; }
.video-title { font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.video-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8rem; color: var(--mute); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags a { background: var(--bg); border: 1px solid var(--line2); border-radius: 999px; padding: 2px 10px; font-size: .72rem; color: var(--soft); }
.tags a:hover { border-color: var(--accent); color: #fff; }
.src-link { font-size: .78rem; color: var(--accent); }

/* info / warning + footer */
.info-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; font-size: .8rem; color: var(--mute); display: flex; flex-direction: column; gap: 6px; }
.info-box h2 { font-size: .9rem; color: var(--soft); }
.info-box.warn { border-color: #4a2030; }
.info-box.warn h2 { color: var(--accent); }
footer { background: var(--panel); border-top: 1px solid var(--line); margin-top: 6px; }
footer .inner { max-width: 1100px; margin: 0 auto; padding: 18px 15px; display: flex; flex-direction: column; gap: 8px; font-size: .75rem; color: var(--mute); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot-links a:hover { color: var(--accent); }

@media (max-width: 800px) { .video-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
@media (max-width: 520px) {
  .bar { flex-wrap: wrap; } .search { max-width: none; order: 3; flex-basis: 100%; }
  .play-btn-icon { width: 32px; height: 32px; } .card-info { padding: 8px; }
  .video-title { font-size: 1rem; }
}

/* ===== shared network UI ===== */
.logo, .section-title, .video-title { font-family: var(--font-head); }
.logo, .section-title { text-transform: var(--tt); }
.netbar { background: var(--bg); border-bottom: 1px solid var(--line); font-size: .7rem; }
.netbar .inner { display: flex; gap: 4px 14px; flex-wrap: wrap; align-items: center; padding-top: 5px; padding-bottom: 5px; color: var(--mute); }
.netbar a { color: var(--soft); }
.netbar a:hover { color: var(--accent); }
.netbar a.on { color: var(--accent); font-weight: 700; }
.foot-net { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.foot-net a:hover { color: var(--accent); }
.site-tag { position: absolute; top: 6px; right: 6px; z-index: 3; background: var(--accent); color: var(--on-accent); font-size: .62rem; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; border: 1px solid var(--accent); border-radius: var(--radius); background: linear-gradient(100deg, var(--panel), var(--bg)); }
.cta[hidden] { display: none; }
.cta div { display: flex; flex-direction: column; gap: 2px; font-size: .82rem; color: var(--soft); }
.cta strong { font-family: var(--font-head); font-size: 1.05rem; color: #fff; text-transform: var(--tt); }
.cta .btn { background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: .85rem; padding: 9px 20px; border-radius: 999px; white-space: nowrap; }
.agegate { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center; padding: 20px; }
.agegate div { background: var(--panel); border: 1px solid var(--accent); border-radius: var(--radius); padding: 28px; max-width: 420px; text-align: center; display: flex; flex-direction: column; gap: 12px; }
.agegate h2 { font-family: var(--font-head); color: var(--accent); }
.agegate p { font-size: .85rem; color: var(--soft); }
.agegate .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.agegate button, .agegate a { font: inherit; font-weight: 700; font-size: .85rem; padding: 9px 20px; border-radius: 999px; border: 1px solid var(--line2); background: var(--bg); color: var(--soft); cursor: pointer; }
.agegate button { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
@media (max-width: 520px) { .cta { flex-direction: column; align-items: flex-start; } }

/* ===== THEME: LeakHub Amateur — raw / underground: acid lime, monospace, hard edges, 4:3 thumbs ===== */
:root[data-theme="leakhub"] { --bg:#0a0c08; --panel:#11140d; --line:#262c1b; --line2:#343c22; --soft:#d9e2c3; --mute:#8b9577; --accent:#c6ff00; --on-accent:#0a0c08; --font-head: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; --radius:2px; --ratio:4/3; --tt:uppercase; }
[data-theme="leakhub"] .card { border-width: 2px; }
[data-theme="leakhub"] .card-title { font-family: var(--font-head); font-size: .74rem; }
[data-theme="leakhub"] .section-title::before { width: 14px; height: 3px; }
[data-theme="leakhub"] .search input, [data-theme="leakhub"] .search button { border-radius: 2px; }
[data-theme="leakhub"] .nav > a, [data-theme="leakhub"] .nav summary, [data-theme="leakhub"] .more, [data-theme="leakhub"] .cta .btn, [data-theme="leakhub"] .tags a { border-radius: 2px; }
[data-theme="leakhub"] .duration { background: var(--accent); color: var(--on-accent); border-radius: 0; }
[data-theme="leakhub"] .site-header { border-bottom: 2px solid var(--accent); }

/* ===== THEME: VipUltra — luxury paysite: black + gold, serif headings, gold rules ===== */
:root[data-theme="vipultra"] { --bg:#07080d; --panel:#0f111a; --line:#23263a; --line2:#34385a; --soft:#e8e2cf; --mute:#8d8a7c; --accent:#d4af37; --on-accent:#1a1400; --font-head: Georgia, "Times New Roman", serif; --radius:3px; --tt:none; }
[data-theme="vipultra"] .card { border-top: 2px solid var(--accent); }
[data-theme="vipultra"] .section-title { font-size: 1.25rem; font-weight: 600; letter-spacing: .5px; border-bottom: 1px solid var(--line2); padding-bottom: 8px; }
[data-theme="vipultra"] .section-title::before { display: none; }
[data-theme="vipultra"] .logo { font-size: 1.5rem; letter-spacing: 2px; font-weight: 600; }
[data-theme="vipultra"] .bar { justify-content: space-between; }
[data-theme="vipultra"] .cta { padding: 24px 26px; background: radial-gradient(circle at 15% 0%, #2a2208, var(--bg) 70%); }
[data-theme="vipultra"] .cta strong { font-size: 1.4rem; color: var(--accent); }
[data-theme="vipultra"] .play-btn-icon { background: transparent; border: 2px solid var(--accent); }
[data-theme="vipultra"] .play-btn-icon::after { border-left-color: var(--accent); }
[data-theme="vipultra"] .site-header { border-bottom: 1px solid var(--accent); }

/* ===== THEME: LivePulse Cams — neon: violet + cyan, glow, big rounded corners ===== */
:root[data-theme="livepulse"] { --bg:#0a0618; --panel:#150d2e; --line:#2a1b52; --line2:#3d2878; --soft:#dcd3ff; --mute:#8f85b8; --accent:#00e5ff; --on-accent:#001418; --radius:16px; --tt:none; }
[data-theme="livepulse"] body { background: radial-gradient(1200px 500px at 80% -10%, #2a1260 0%, transparent 60%), var(--bg); }
[data-theme="livepulse"] .card:hover, [data-theme="livepulse"] .card:focus-visible { box-shadow: 0 0 22px rgba(0,229,255,.35); }
[data-theme="livepulse"] .thumb-box::before { content: "● CAM CLIP"; position: absolute; top: 8px; left: 8px; z-index: 3; background: linear-gradient(90deg, #b537ff, #ff2d9b); color: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .6px; padding: 2px 8px; border-radius: 999px; }
[data-theme="livepulse"] .logo { background: linear-gradient(90deg, #00e5ff, #b537ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="livepulse"] .section-title::before { background: linear-gradient(#00e5ff, #b537ff); width: 5px; }
[data-theme="livepulse"] .cta { border-color: #b537ff; box-shadow: 0 0 26px rgba(181,55,255,.3); background: linear-gradient(100deg, #26104f, #0e0724); }
[data-theme="livepulse"] .cta .btn { background: linear-gradient(90deg, #00e5ff, #b537ff); color: #fff; }
[data-theme="livepulse"] .play-btn-icon { box-shadow: 0 0 18px var(--accent); }
[data-theme="livepulse"] .site-header { border-bottom: 1px solid #3d2878; box-shadow: 0 6px 24px rgba(181,55,255,.15); }

/* ===== THEME: Cyberpunk Desire — hazard yellow + red on black, cut corners, scanlines, glitch logo ===== */
:root[data-theme="cyberpunk"] { --bg:#0b0b0d; --panel:#141416; --line:#2b2b30; --line2:#3d3d45; --soft:#e6e6d0; --mute:#8c8c7a; --accent:#fcee0a; --on-accent:#0b0b0d; --font-head: "Arial Narrow", "Roboto Condensed", Impact, "Helvetica Neue", sans-serif; --radius:0px; --ratio:16/9; --tt:uppercase; }
[data-theme="cyberpunk"] body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px); }
[data-theme="cyberpunk"] .card, [data-theme="cyberpunk"] .player-box, [data-theme="cyberpunk"] .info-box, [data-theme="cyberpunk"] .cta { clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)); }
[data-theme="cyberpunk"] .card:hover, [data-theme="cyberpunk"] .card:focus-visible { border-color: #ff003c; transform: translate(-2px, -3px); }
[data-theme="cyberpunk"] .logo { font-size: 1.45rem; letter-spacing: 2px; text-shadow: 2px 0 #ff003c, -2px 0 #00f0ff; }
[data-theme="cyberpunk"] .section-title { letter-spacing: 1.5px; color: var(--accent); }
[data-theme="cyberpunk"] .section-title::before { width: 18px; height: 6px; background: #ff003c; border-radius: 0; transform: skewX(-30deg); }
[data-theme="cyberpunk"] .card-title { text-transform: uppercase; letter-spacing: .4px; font-family: var(--font-head); }
[data-theme="cyberpunk"] .duration { background: #ff003c; color: #fff; border-radius: 0; }
[data-theme="cyberpunk"] .search input, [data-theme="cyberpunk"] .search button, [data-theme="cyberpunk"] .nav > a, [data-theme="cyberpunk"] .nav summary, [data-theme="cyberpunk"] .more, [data-theme="cyberpunk"] .cta .btn, [data-theme="cyberpunk"] .tags a { border-radius: 0; }
[data-theme="cyberpunk"] .search button, [data-theme="cyberpunk"] .cta .btn { text-transform: uppercase; letter-spacing: 1px; }
[data-theme="cyberpunk"] .play-btn-icon { border-radius: 0; clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%); }
[data-theme="cyberpunk"] .cta { border-color: #ff003c; background: linear-gradient(100deg, #1c1c04, var(--bg)); }
[data-theme="cyberpunk"] .site-header { border-bottom: 3px solid var(--accent); }
[data-theme="cyberpunk"] .ad { border-color: #ff003c; }
