/* ===== AKIVARA.COM — MAIN STYLESHEET ===== */
:root {
  --bg: #0d0d0d;
  --bg-card: #181818;
  --bg-hover: #242424;
  --border: #2a2a2a;
  --accent: #d63fff;
  --accent-2: #ff4081;
  --text: #f0f0f0;
  --text-muted: #888;
  --header-h: 60px;
  --radius: 6px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ===== AGE GATE ===== */
#age-gate {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
#age-gate.hidden { display: none; }

.age-gate-box {
  background: #111;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 48px 40px;
  max-width: 460px;
  width: 90%;
  text-align: center;
}
.age-gate-logo {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
}
.age-gate-box h2 { font-size: 20px; margin-bottom: 10px; }
.age-gate-box p { color: var(--text-muted); font-size: 13px; margin-bottom: 32px; }
.age-gate-box p a { color: var(--accent); text-decoration: underline; }

.btn { display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 32px; border-radius: var(--radius); font-size: 15px;
  font-weight: 600; cursor: pointer; border: none; transition: opacity .15s; }
.btn:hover { opacity: .85; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; width: 100%; margin-bottom: 12px; }
.btn-ghost { background: transparent; color: var(--text-muted);
  border: 1px solid var(--border); width: 100%; }

/* ===== HEADER ===== */
header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(13,13,13,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 20px; gap: 20px;
}
.logo {
  font-size: 22px; font-weight: 800; letter-spacing: 2px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.search-bar {
  flex: 1; max-width: 480px; position: relative;
}
.search-bar input {
  width: 100%; padding: 8px 14px 8px 38px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; color: var(--text); font-size: 14px; outline: none;
  transition: border-color .2s;
}
.search-bar input:focus { border-color: var(--accent); }
.search-bar svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
}
nav { margin-left: auto; display: flex; gap: 4px; }
nav a {
  padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 500;
  color: var(--text-muted); transition: background .15s, color .15s;
}
nav a:hover, nav a.active { background: var(--bg-card); color: var(--text); }
.nav-tag { display: inline-block; background: var(--accent);
  color: #fff; font-size: 10px; border-radius: 4px; padding: 1px 5px;
  vertical-align: middle; margin-left: 4px; }

/* ===== CATEGORY PILLS ===== */
.category-bar {
  display: flex; gap: 8px; padding: 14px 20px;
  overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border);
}
.category-bar::-webkit-scrollbar { display: none; }
.pill {
  flex-shrink: 0; padding: 6px 16px; border-radius: 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 13px; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.pill:hover { background: var(--bg-hover); color: var(--text); }
.pill.active {
  background: var(--accent); border-color: var(--accent);
  color: #fff; font-weight: 600;
}

/* ===== SECTION / PAGE LAYOUT ===== */
.page-wrap { max-width: 1400px; margin: 0 auto; padding: 20px; }

.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-size: 17px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.section-title .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
.see-all { color: var(--accent); font-size: 13px; font-weight: 500; }
.see-all:hover { text-decoration: underline; }

/* ===== VIDEO GRID ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.video-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .2s, border-color .2s;
  cursor: pointer;
}
.video-card:hover { transform: translateY(-3px); border-color: #444; }
.video-card:hover .thumb-overlay { opacity: 1; }

.thumb-wrap { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.thumb-wrap img { width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s; }
.video-card:hover .thumb-wrap img { transform: scale(1.04); }
.thumb-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s;
}
.play-icon { width: 48px; height: 48px; background: rgba(214,63,255,.85);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.play-icon svg { margin-left: 3px; }

.thumb-duration {
  position: absolute; bottom: 6px; right: 6px;
  background: rgba(0,0,0,.8); color: #fff; font-size: 11px;
  padding: 2px 6px; border-radius: 3px; font-weight: 600;
}
.thumb-source {
  position: absolute; top: 6px; left: 6px;
  background: rgba(0,0,0,.75); color: var(--text-muted);
  font-size: 10px; padding: 2px 6px; border-radius: 3px; text-transform: uppercase;
}
.thumb-new {
  position: absolute; top: 6px; right: 6px;
  background: var(--accent); color: #fff;
  font-size: 10px; padding: 2px 6px; border-radius: 3px; font-weight: 700;
}

.card-info { padding: 10px 12px 12px; }
.card-title {
  font-size: 13px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 6px;
}
.card-meta {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-muted); font-size: 11px;
}
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.tag {
  font-size: 10px; padding: 2px 8px; border-radius: 3px;
  background: rgba(214,63,255,.12); color: var(--accent);
  border: 1px solid rgba(214,63,255,.2);
}

/* ===== VIDEO PAGE ===== */
.video-page { max-width: 1200px; margin: 0 auto; padding: 20px; }

.video-player-wrap {
  background: #000; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16/9; margin-bottom: 16px; position: relative;
}
.video-player-wrap iframe {
  width: 100%; height: 100%; border: none;
}

.video-title-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 12px;
}
.video-page-title { font-size: 20px; font-weight: 700; line-height: 1.3; }
.video-actions { display: flex; gap: 8px; flex-shrink: 0; }
.action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 20px; font-size: 13px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer; transition: background .15s;
}
.action-btn:hover { background: var(--bg-hover); color: var(--text); }

.video-meta-row {
  display: flex; align-items: center; gap: 16px;
  color: var(--text-muted); font-size: 13px;
  padding: 12px 0; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); margin-bottom: 16px;
}
.video-meta-row a { color: var(--accent); }
.video-meta-row a:hover { text-decoration: underline; }

.video-description {
  font-size: 13px; color: var(--text-muted); line-height: 1.7;
  margin-bottom: 20px;
}
.video-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }

/* Ad unit placeholder */
.ad-unit {
  background: var(--bg-card); border: 1px dashed var(--border);
  border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; color: var(--text-muted); font-size: 12px;
  margin-bottom: 20px;
}
.ad-unit-banner { height: 90px; }
.ad-unit-rect { height: 250px; }

/* Affiliate banner */
.affiliate-strip {
  background: linear-gradient(135deg, rgba(214,63,255,.08), rgba(255,64,129,.08));
  border: 1px solid rgba(214,63,255,.2);
  border-radius: var(--radius); padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 28px; flex-wrap: wrap;
}
.affiliate-strip p { font-size: 14px; font-weight: 600; }
.affiliate-strip span { color: var(--text-muted); font-size: 12px; display: block; }
.btn-affiliate {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; padding: 9px 22px; border-radius: 20px;
  font-weight: 700; font-size: 13px; flex-shrink: 0;
  transition: opacity .15s;
}
.btn-affiliate:hover { opacity: .85; }

/* Related videos */
.related-title { font-size: 16px; font-weight: 700; margin-bottom: 14px; }

/* ===== CATEGORY PAGE ===== */
.cat-hero {
  background: linear-gradient(135deg, rgba(214,63,255,.1), rgba(255,64,129,.08));
  border-bottom: 1px solid var(--border);
  padding: 32px 20px;
}
.cat-hero-inner { max-width: 1400px; margin: 0 auto; }
.cat-hero h1 { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.cat-hero p { color: var(--text-muted); font-size: 14px; max-width: 600px; }
.cat-hero .count { color: var(--accent); font-weight: 600; }

.sort-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap;
}
.sort-row label { color: var(--text-muted); font-size: 13px; }
.sort-select {
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); padding: 6px 12px; border-radius: var(--radius);
  font-size: 13px; cursor: pointer; outline: none;
}

/* ===== LEGAL PAGES ===== */
.legal-page { max-width: 780px; margin: 0 auto; padding: 40px 20px 60px; }
.legal-page h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.legal-page .updated { color: var(--text-muted); font-size: 13px; margin-bottom: 32px; }
.legal-page h2 { font-size: 17px; font-weight: 700; margin: 28px 0 10px;
  color: var(--accent); }
.legal-page p { color: var(--text-muted); line-height: 1.8; margin-bottom: 14px; font-size: 14px; }
.legal-page ul { color: var(--text-muted); padding-left: 20px; margin-bottom: 14px; }
.legal-page ul li { margin-bottom: 6px; font-size: 14px; line-height: 1.7; }
.legal-page a { color: var(--accent); text-decoration: underline; }

/* ===== FOOTER ===== */
footer {
  background: #0a0a0a; border-top: 1px solid var(--border);
  padding: 40px 20px 24px; margin-top: 60px;
}
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-logo {
  font-size: 20px; font-weight: 800; letter-spacing: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 8px;
}
.footer-tagline { color: var(--text-muted); font-size: 13px; margin-bottom: 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 28px; }
.footer-links a { color: var(--text-muted); font-size: 13px; }
.footer-links a:hover { color: var(--text); }
.footer-warning {
  background: rgba(255,64,129,.06); border: 1px solid rgba(255,64,129,.15);
  border-radius: var(--radius); padding: 12px 16px; margin-bottom: 24px;
  font-size: 12px; color: var(--text-muted); line-height: 1.7;
}
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  padding-top: 20px; border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: 12px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center; padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state svg { margin: 0 auto 16px; opacity: .3; }
.empty-state h3 { font-size: 18px; margin-bottom: 8px; color: var(--text); }

/* ===== PAGINATION ===== */
.pagination {
  display: flex; justify-content: center; gap: 6px;
  margin: 32px 0;
}
.page-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer; font-size: 13px; font-weight: 600;
  transition: background .15s, color .15s;
}
.page-btn:hover { background: var(--bg-hover); color: var(--text); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #222; border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 20px; font-size: 13px; color: var(--text);
  opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 500;
}
.toast.show { opacity: 1; }

/* ===== TAG CLOUD ===== */
.tag-cloud {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 16px 0; margin-bottom: 16px;
}
.tag-link {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); text-decoration: none;
  font-size: 13px; font-weight: 500;
  transition: background .15s, border-color .15s, transform .1s;
}
.tag-link:hover { background: var(--bg-hover); border-color: var(--accent); transform: translateY(-1px); }
.tag-link .tag-count { color: var(--text-muted); font-size: 11px; font-weight: 400; }
.tag-link.tag-sm { font-size: 12px; padding: 4px 10px; }
.tag-link.tag-md { font-size: 13px; }
.tag-link.tag-lg { font-size: 14px; padding: 8px 14px; }
.tag-link.tag-xl { font-size: 16px; padding: 10px 16px; font-weight: 600; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  nav { display: none; }
  .search-bar { max-width: none; flex: 1; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .card-title { font-size: 12px; }
  .video-page-title { font-size: 16px; }
  .video-title-row { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .video-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .age-gate-box { padding: 32px 24px; }
}
