:root {
  --bg: #0d0d12;
  --bg-soft: #16161f;
  --card: #1c1c28;
  --text: #ececf1;
  --muted: #9a9ab0;
  --accent: #ff2e63;
  --accent-2: #ff6b9d;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.45;
}

a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--bg-soft);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #24243200;
}
.logo { font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.logo span { color: var(--accent); }
.search { margin-left: auto; display: flex; gap: 8px; }
.search input {
  background: var(--card);
  border: 1px solid #2c2c3a;
  color: var(--text);
  border-radius: 999px;
  padding: 9px 16px;
  min-width: 200px;
  outline: none;
}
.search input:focus { border-color: var(--accent); }
.search button {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 700;
  cursor: pointer;
}
.search button:hover { background: var(--accent-2); }

/* Kategori nav */
.cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid #22222e;
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cats a {
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 14px;
}
.cats a:hover, .cats a.active { background: var(--accent); color: #fff; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 20px 16px 60px; }
.page-title { font-size: 22px; margin: 8px 0 18px; }
.section-title { font-size: 18px; margin: 34px 0 14px; }

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; }
.card:hover .card-thumb img { transform: scale(1.05); }
.card-thumb {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  background: #000;
  overflow: hidden;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; display: block; }
.badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(0,0,0,.78);
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 5px;
}
.card-title {
  display: block;
  padding: 10px 12px 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  max-height: 3.9em;
  overflow: hidden;
}
.card-meta {
  padding: 0 12px 12px;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.dot { opacity: .6; }

/* Video sayfasi */
.video-page { max-width: 1000px; margin: 0 auto; }
.player { background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; }
.player video, .player iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-title { font-size: 20px; margin: 18px 0 8px; }
.video-meta { color: var(--muted); font-size: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.video-meta a { color: var(--accent-2); }
.video-source { font-size: 14px; }
.video-source a { color: var(--muted); border-bottom: 1px dotted var(--muted); }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 30px 0; }
.pagination a, .pagination .disabled, .page-info {
  padding: 8px 16px; border-radius: 8px; background: var(--card); font-size: 14px;
}
.pagination a:hover { background: var(--accent); color: #fff; }
.pagination .disabled { color: var(--muted); opacity: .5; }

.empty { background: var(--bg-soft); padding: 24px; border-radius: var(--radius); color: var(--muted); }
.empty code { background: #000; padding: 2px 6px; border-radius: 5px; color: var(--accent-2); }

.notfound { text-align: center; padding: 80px 20px; }
.notfound h1 { font-size: 64px; margin: 0; color: var(--accent); }
.btn { display: inline-block; margin-top: 16px; background: var(--accent); color: #fff; padding: 10px 22px; border-radius: 999px; font-weight: 700; }

.site-footer { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px; border-top: 1px solid #22222e; }
.footer-links { margin: 0 0 6px; }
.footer-links a { color: var(--accent-2); }
.ghost { background: transparent; border: 1px solid #2c2c3a; color: var(--text); }

/* Yas kapisi */
.agegate { position: fixed; inset: 0; z-index: 100; background: rgba(5,5,8,.92); display: flex; align-items: center; justify-content: center; padding: 20px; }
.agegate[hidden] { display: none; }
.agegate-box { background: var(--card); border: 1px solid #2c2c3a; border-radius: 14px; padding: 26px; max-width: 360px; text-align: center; }
.agegate-box h2 { margin: 0 0 10px; font-size: 40px; color: var(--accent); }
.agegate-box p { color: var(--muted); margin: 0 0 18px; }
.agegate-btns { display: flex; gap: 10px; justify-content: center; }
.agegate-btns .btn { cursor: pointer; border: 0; }

/* Yasal sayfa */
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: 22px; }
.legal p { color: var(--muted); line-height: 1.7; }

/* Canli tarama ilerlemesi */
.prog { background: var(--bg-soft); border: 1px solid #2c2c3a; border-radius: 10px; padding: 10px 12px; margin: 12px 0; }
.prog-head { display: flex; gap: 16px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.prog-page { margin: 8px 0; font-size: 13px; color: var(--accent-2); }
.prog-log { max-height: 180px; overflow: auto; font-size: 12px; color: var(--muted); background: #000; padding: 8px; border-radius: 8px; margin: 0; white-space: pre-wrap; }
.prog[hidden] { display: none; }

/* Kalite modu + aciklama */
.player { position: relative; }
.qbox { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 6px; z-index: 5; }
.qbox select, .qbox button { background: rgba(0,0,0,.75); color: #fff; border: 1px solid #444; border-radius: 6px; padding: 4px 8px; font-size: 12px; cursor: pointer; }
.qbox button.on { background: var(--accent); border-color: var(--accent); }
.video-desc { color: var(--muted); line-height: 1.6; margin: 10px 0 4px; }

/* Gecis reklami + story (dikey) oynatici */
.adgate { position: fixed; inset: 0; z-index: 200; background: rgba(5,5,8,.94); display: flex; align-items: center; justify-content: center; padding: 18px; }
.adgate-box { max-width: 420px; text-align: center; }
.adgate-box .ad-media { max-width: 100%; max-height: 70vh; border-radius: 12px; display: block; margin: 0 auto; }
.adgate-box .btn { margin-top: 14px; cursor: pointer; border: 0; }
.player.vertical { aspect-ratio: 9 / 16; max-width: 440px; margin: 0 auto; }
.player.vertical video, .player.vertical iframe { object-fit: contain; }
.appbtn { display: inline-block; margin: 12px 0; }
.ad-label { display: inline-block; margin: 10px 0 6px; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: #9aa; }
.ad-lock { color: var(--muted); font-size: 13px; margin: 10px 0 6px; }
.ad-install { display: block; background: #0f9d58; color: #fff; font-weight: 800; padding: 12px; border-radius: 10px; margin: 6px 0; }
.ad-install:hover { background: #0c8a4c; }

@media (max-width: 600px) {
  .search input { min-width: 0; width: 100%; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .card-title { font-size: 13px; }
}
