/* bdsm.asia — VLNA 0 stylesheet. Dark tube layout, oxblood accent.
   Retune the whole brand from the --accent vars below. */
:root {
  --bg: #0a0a0b;
  --bg-2: #101012;
  --bg-card: #141416;
  --bg-elevated: #1a1a1d;
  --line: #232327;
  --text: #ececec;
  --text-dim: #9a9aa0;
  --accent: #8B0000;        /* oxblood — keep in sync with config/site.js */
  --accent-hover: #B30000;
  --accent-ink: #ffe5e5;    /* readable text on accent */
  --gold: #ffcf5a;
  --radius: 8px;
}
:root[data-theme="light"] {
  --bg: #f5f5f6;
  --bg-2: #ececee;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --line: #dcdce0;
  --text: #17171a;
  --text-dim: #6a6a70;
  --accent-ink: #ffffff;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1360px; margin: 0 auto; padding: 0 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .5rem .85rem; border-radius: var(--radius);
  font-weight: 600; font-size: .9rem; cursor: pointer;
  border: 1px solid transparent; transition: background .18s, transform .18s, border-color .18s;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn--outline { background: transparent; border-color: var(--line); color: var(--text); }
.btn--live {
  background: var(--accent); color: var(--accent-ink); font-weight: 700; letter-spacing: .04em;
}
.btn--live:hover { background: var(--accent-hover); }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: pulse 1.6s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6);} 70% { box-shadow: 0 0 0 7px rgba(255,255,255,0);} 100%{box-shadow:0 0 0 0 rgba(255,255,255,0);} }
.icon-btn { background: transparent; border: 1px solid var(--line); color: var(--text); border-radius: var(--radius); width: 36px; height: 36px; cursor: pointer; font-size: 1.05rem; }

/* ---------- top bar (accent) ---------- */
.topbar { background: var(--accent); border-bottom: 1px solid rgba(0,0,0,.35); position: sticky; top: 0; z-index: 40; }
.topbar__inner { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { font-family: "Bebas Neue", Impact, sans-serif; font-size: 1.7rem; letter-spacing: .5px; line-height: 1; color: var(--accent-ink); }
.brand__a { font-weight: 800; }
.brand__b { opacity: .8; }
.topbar__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.topbar .icon-btn { border-color: rgba(255,255,255,.35); color: var(--accent-ink); }

.search { flex: 1 1 auto; max-width: 640px; display: flex; align-items: stretch; background: rgba(0,0,0,.28); border-radius: var(--radius); overflow: hidden; }
.search__scope { background: rgba(0,0,0,.25); color: var(--accent-ink); border: 0; padding: 0 .6rem; font-size: .85rem; cursor: pointer; }
.search__scope option { color: #111; }
.search__input { flex: 1; background: transparent; border: 0; color: #fff; padding: .6rem .7rem; outline: none; font-size: .95rem; }
.search__input::placeholder { color: rgba(255,255,255,.7); }
.search__btn { background: rgba(0,0,0,.2); border: 0; color: var(--accent-ink); padding: 0 .8rem; cursor: pointer; display: grid; place-items: center; }
.search__btn:hover { background: rgba(0,0,0,.4); }

/* ---------- secondary nav (dark) ---------- */
.subnav { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.subnav__inner { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; padding: 8px 16px; }
.subnav__group { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-dim); padding: 0 4px 0 10px; }
.subnav__group:first-child { padding-left: 0; }
.subnav__link { font-size: .84rem; color: var(--text); padding: 3px 8px; border-radius: 5px; white-space: nowrap; transition: background .15s, color .15s; }
.subnav__link:hover { background: var(--bg-elevated); color: var(--accent-hover); }
.subnav__link.is-active { background: var(--accent); color: var(--accent-ink); }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: 220px 1fr; gap: 22px; padding-top: 18px; padding-bottom: 40px; }
.main__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.main__h1 { font-size: 1.35rem; margin: 0; font-weight: 700; }
.sorttabs { display: flex; flex-wrap: wrap; gap: 4px; }
.sorttabs__tab { font-size: .8rem; color: var(--text-dim); padding: 4px 9px; border-radius: 6px; }
.sorttabs__tab:hover { color: var(--text); background: var(--bg-elevated); }
.sorttabs__tab.is-active { color: var(--accent-ink); background: var(--accent); }

/* ---------- sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 18px; }
.side-block__title { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); margin: 0 0 8px; }
.side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.side-list a { display: block; padding: 4px 8px; border-radius: 5px; font-size: .86rem; color: var(--text); }
.side-list a:hover { background: var(--bg-elevated); color: var(--accent-hover); }
.side-list--counts li { display: flex; justify-content: space-between; padding: 4px 8px; font-size: .86rem; color: var(--text-dim); }
.side-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.side-tags a { display: inline-block; padding: 3px 8px; font-size: .78rem; background: var(--bg-card); border: 1px solid var(--line); border-radius: 20px; color: var(--text-dim); }
.side-tags a:hover { border-color: var(--accent); color: var(--accent-hover); }

/* ---------- video grid ---------- */
.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px 14px; align-items: start; }
.card { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card__thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--bg-card); }
.card__ph { position: absolute; inset: 0; background: linear-gradient(135deg, #1b1416 0%, #241014 55%, #0e0d0f 100%); }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.card__res { position: absolute; top: 6px; left: 6px; font-size: .66rem; font-weight: 700; background: var(--accent); color: var(--accent-ink); padding: 1px 6px; border-radius: 4px; letter-spacing: .03em; }
.card__dur { position: absolute; bottom: 6px; right: 6px; font-size: .7rem; background: rgba(0,0,0,.8); color: #fff; padding: 1px 6px; border-radius: 4px; }
.card__title { font-size: .85rem; line-height: 1.3; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__title:hover { color: var(--accent-hover); }
.card__meta { display: flex; justify-content: space-between; font-size: .74rem; color: var(--text-dim); }
.card__rate { color: var(--gold); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 30px; padding: 26px 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; }
.footer__links a { font-size: .84rem; color: var(--text-dim); }
.footer__links a:hover { color: var(--accent-hover); }
.footer__disclaimer { font-size: .78rem; color: var(--text-dim); max-width: 900px; }
.footer__rta { color: var(--text); font-family: monospace; }
.footer__copy { font-size: .78rem; color: var(--text-dim); margin-bottom: 0; }

/* ---------- age gate ---------- */
.age-gate { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 20px; }
.age-gate[hidden] { display: none; }
.age-gate__box { max-width: 440px; background: var(--bg-elevated); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 12px; padding: 26px; text-align: center; }
.age-gate__box h2 { margin: 0 0 10px; }
.age-gate__buttons { display: flex; gap: 10px; justify-content: center; margin: 18px 0 8px; }
.age-gate__rta { font-size: .72rem; color: var(--text-dim); margin: 0; }

/* ---------- blog ---------- */
.blog-wrap { padding-top: 22px; padding-bottom: 46px; max-width: 860px; }
.blog-list { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.blog-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--bg-card); }
.blog-card__title { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.blog-card__title:hover { color: var(--accent-hover); }
.blog-card__desc { color: var(--text-dim); font-size: .9rem; margin: 6px 0 10px; }
.blog-card__meta { display: flex; justify-content: space-between; font-size: .8rem; color: var(--text-dim); }
.blog-card__meta a { color: var(--accent-hover); }

.article__crumb { font-size: .82rem; color: var(--text-dim); }
.article__crumb a { color: var(--accent-hover); }
.article__title { font-size: 1.7rem; margin: 8px 0 4px; line-height: 1.2; }
.article__date { font-size: .8rem; color: var(--text-dim); margin: 0 0 18px; }
.article__body { font-size: 1rem; line-height: 1.7; }
.article__body h2 { font-size: 1.2rem; margin: 26px 0 8px; }
.article__body p { margin: 0 0 14px; color: var(--text); }
.article__body a { color: var(--accent-hover); text-decoration: underline; }
.article__cta { margin-top: 26px; }

/* ---------- legal pages ---------- */
.legal { max-width: 820px; padding-top: 26px; padding-bottom: 50px; }
.legal h1 { font-size: 1.6rem; margin: 0 0 4px; }
.legal h2 { font-size: 1.05rem; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--text-dim); font-size: .92rem; line-height: 1.6; }
.legal a { color: var(--accent-hover); }
.legal ul { padding-left: 20px; }
.legal__updated { font-size: .8rem; color: var(--text-dim); margin-bottom: 20px; }
.legal code { background: var(--bg-elevated); padding: 1px 5px; border-radius: 4px; font-size: .85em; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 80px 20px; }
.notfound h1 { font-size: 4rem; margin: 0; color: var(--accent); font-family: "Bebas Neue", Impact, sans-serif; }

/* ---------- intro / SSR text ---------- */
.intro { color: var(--text-dim); font-size: .9rem; max-width: 900px; margin: 0 0 18px; }
.intro a { color: var(--accent-hover); }
.intro__count { color: var(--text); margin-left: 4px; }
.empty { color: var(--text-dim); padding: 24px 0; }

/* ---------- home sections ---------- */
.home-sec { margin-bottom: 30px; }
.home-sec__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.section-title { font-size: 1.05rem; margin: 0; font-weight: 700; }
.section-title a:hover { color: var(--accent-hover); }
.home-sec__more { font-size: .82rem; color: var(--accent-hover); white-space: nowrap; }

/* ---------- pagination ---------- */
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0 8px; }
.pager__link { padding: 6px 11px; border: 1px solid var(--line); border-radius: 6px; font-size: .85rem; color: var(--text); }
.pager__link:hover { border-color: var(--accent); color: var(--accent-hover); }
.pager__link.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- video page ---------- */
.video-wrap { padding-top: 18px; }
.video-main { max-width: 960px; margin: 0 auto; }
.video-title { font-size: 1.25rem; margin: 0 0 12px; }
.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; }
.video-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--text-dim); font-size: .85rem; margin: 14px 0; }
.video-tags { margin: 12px 0 6px; }
.related { padding-bottom: 40px; }
.related .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* ---------- monetization CTA (VLNA 3) ---------- */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0; padding: 14px 18px; border-radius: var(--radius); font-weight: 700; }
.cta--kink { background: var(--accent); color: var(--accent-ink); }
.cta--kink:hover { background: var(--accent-hover); }
.cta--alt { background: var(--bg-elevated); color: var(--text); border: 1px solid var(--accent); }
.cta__arrow { font-size: 1.2rem; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .related .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .related .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .related .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search__scope { display: none; }
  .brand { font-size: 1.4rem; }
}

/* ---------- ad slots (Adsterra) ---------- */
.ad-slot { display: flex; justify-content: center; align-items: center; margin: 16px auto; overflow: hidden; }
.ad-slot--leaderboard { max-width: 728px; min-height: 90px; }
.ad-slot--rectangle { max-width: 300px; min-height: 250px; }
.ad-slot--skyscraper { max-width: 160px; min-height: 600px; margin: 0 auto; }
.ad-slot--banner468 { max-width: 468px; min-height: 60px; }
.ad-slot--native { display: block; min-height: 0; }
/* 728x90 is a desktop format — hide below tablet so it never causes horizontal scroll */
@media (max-width: 767px) { .ad-slot--leaderboard { display: none; } }
/* skyscraper only makes sense while the sidebar sits beside content */
@media (max-width: 860px) { .ad-slot--skyscraper { display: none; } }
/* 468x60 overflows narrow phones */
@media (max-width: 519px) { .ad-slot--banner468 { display: none; } }
