/* ============================================================
   IndoBokeps - Neubrutalism
   Ciri: border hitam tebal, bayangan keras, warna mentereng,
   tipografi tebal huruf besar, tanpa gradien.
   ============================================================ */

:root {
    --ink: #0a0a0a;
    --paper: #fff7e1;
    --card: #ffffff;
    --yellow: #ffde00;
    --pink: #ff5d8f;
    --teal: #00e0c6;
    --purple: #8b5cf6;
    --orange: #ff6b35;
    --blue: #4d7cff;
    --muted: #4a4a4a;

    --border: 3px solid var(--ink);
    --border-thin: 2px solid var(--ink);
    --shadow: 5px 5px 0 var(--ink);
    --shadow-lg: 8px 8px 0 var(--ink);
    --shadow-sm: 3px 3px 0 var(--ink);
    --radius: 0;

    --font: "Segoe UI", Roboto, "Helvetica Neue", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        linear-gradient(rgba(0,0,0,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,.055) 1px, transparent 1px);
    background-size: 26px 26px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 18px; }
.muted { color: var(--muted); font-size: 13px; }

/* ---------------- Skip link ---------------- */
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 200;
    background: var(--yellow); border: var(--border); padding: 10px 16px; font-weight: 800;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------------- Tombol ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: inherit; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
    font-size: 13px; padding: 11px 18px; cursor: pointer;
    background: var(--yellow); color: var(--ink);
    border: var(--border); box-shadow: var(--shadow-sm);
    transition: transform .08s ease, box-shadow .08s ease;
    text-decoration: none;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--ghost { background: var(--card); }
.btn--yes { background: var(--teal); }
.btn--no { background: var(--pink); }
.btn--search { background: var(--ink); color: var(--yellow); }
.btn--search:hover { box-shadow: 5px 5px 0 var(--purple); }

/* ---------------- Age gate ---------------- */
.age-gate {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(10, 10, 10, .82);
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
body.age-ok .age-gate { display: none; }
.age-gate__box {
    background: var(--card); border: var(--border); box-shadow: var(--shadow-lg);
    max-width: 440px; padding: 30px 26px; text-align: center;
}
.age-gate__badge {
    display: inline-grid; place-items: center; width: 76px; height: 76px;
    background: var(--pink); border: var(--border); box-shadow: var(--shadow-sm);
    font-size: 30px; font-weight: 900; margin-bottom: 16px; transform: rotate(-4deg);
}
.age-gate__box h2 { font-size: 24px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.age-gate__box p { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.age-gate__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------------- Header ---------------- */
.site-header { background: var(--card); border-bottom: var(--border); position: relative; z-index: 50; }
.site-header__inner { display: flex; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo__mark {
    display: grid; place-items: center; width: 42px; height: 42px;
    background: var(--yellow); border: var(--border); box-shadow: var(--shadow-sm);
    font-weight: 900; font-size: 18px; transform: rotate(-3deg);
}
.logo__text { font-weight: 900; font-size: 22px; letter-spacing: -.5px; text-transform: uppercase; }

.search { display: flex; gap: 0; margin-left: auto; flex: 1; max-width: 460px; }
.search input {
    flex: 1; min-width: 0; font: inherit; font-size: 14px; padding: 11px 14px;
    background: var(--card); border: var(--border); border-right: none; outline: none;
}
.search input:focus { background: #fffbe8; box-shadow: inset 0 0 0 2px var(--yellow); }
.search .btn { box-shadow: none; border-left: none; }
.search .btn:hover { transform: none; box-shadow: none; background: var(--purple); color: #fff; }

.nav-toggle {
    display: none; font: inherit; font-size: 22px; line-height: 1;
    background: var(--teal); border: var(--border); box-shadow: var(--shadow-sm);
    padding: 8px 14px; cursor: pointer;
}

/* ---------------- Nav ---------------- */
.site-nav { background: var(--yellow); border-bottom: var(--border); }
.site-nav__inner { display: flex; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.nav-list { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; }
.nav-list a {
    display: block; text-decoration: none; font-weight: 700; font-size: 13px;
    text-transform: uppercase; letter-spacing: .4px; padding: 7px 12px;
    background: var(--card); border: var(--border-thin); box-shadow: var(--shadow-sm);
    transition: transform .08s ease, box-shadow .08s ease;
}
.nav-list a:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); background: var(--pink); }
.nav-list a.is-active { background: var(--ink); color: var(--yellow); }

.lang-switch { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang-switch__label { font-weight: 800; font-size: 12px; text-transform: uppercase; }
.lang-switch__select {
    font: inherit; font-size: 13px; font-weight: 700; padding: 7px 10px;
    background: var(--card); border: var(--border-thin); box-shadow: var(--shadow-sm); cursor: pointer;
}

/* ---------------- Slot iklan ---------------- */
.ad-slot {
    max-width: 1204px; margin: 22px auto; padding: 12px;
    background: var(--card); border: var(--border); box-shadow: var(--shadow);
    text-align: center; position: relative;
}
.ad-label {
    position: absolute; top: -13px; left: 14px;
    background: var(--purple); color: #fff; font-size: 10px; font-weight: 800;
    letter-spacing: 1px; text-transform: uppercase; padding: 3px 9px;
    border: var(--border-thin); box-shadow: var(--shadow-sm);
}
.ad-slot img { margin: 0 auto; }
/* Pengaman: jangan biarkan reset global mengganggu iframe/gambar iklan */
.ad-inner { line-height: 0; }
.ad-inner iframe,
.ad-inner ins,
.ad-inner > a > img { display: block; margin-left: auto; margin-right: auto; border: 0; max-width: 100%; }
.grid__ad { grid-column: 1 / -1; }
.grid__ad .ad-slot { margin: 6px 0; }

/* ---------------- Layout utama ---------------- */
.main { padding-top: 26px; padding-bottom: 30px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
.layout--video { grid-template-columns: minmax(0, 1fr) 300px; }
.content { min-width: 0; }

/* ---------------- Judul halaman ---------------- */
.page-head { margin-bottom: 20px; }
.page-title {
    font-size: clamp(24px, 4vw, 38px); font-weight: 900; text-transform: uppercase;
    letter-spacing: -1px; line-height: 1.05; display: inline-block;
}
.page-title--video { font-size: clamp(20px, 3vw, 30px); }
.page-sub { margin-top: 8px; color: var(--muted); font-size: 14px; max-width: 70ch; }
.count-pill {
    display: inline-block; margin-top: 12px; margin-left: 8px;
    background: var(--teal); border: var(--border-thin); box-shadow: var(--shadow-sm);
    font-weight: 800; font-size: 12px; padding: 5px 12px; text-transform: uppercase;
}
.sort-form { margin-top: 14px; }
.sort-form label { font-weight: 800; font-size: 12px; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.sort-form select {
    font: inherit; font-size: 13px; font-weight: 700; padding: 8px 10px;
    background: var(--card); border: var(--border-thin); box-shadow: var(--shadow-sm); cursor: pointer;
}

.notice, .empty, .panel {
    background: var(--card); border: var(--border); box-shadow: var(--shadow);
    padding: 18px; margin: 16px 0;
}
.notice { background: #fff2b8; font-weight: 700; }
.empty { text-align: center; font-weight: 800; text-transform: uppercase; }

/* ---------------- Grid & kartu ---------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 18px; }

.card {
    background: var(--card); border: var(--border); box-shadow: var(--shadow);
    transition: transform .1s ease, box-shadow .1s ease;
    overflow: hidden;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); }
.card__link { text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.card__thumb { position: relative; border-bottom: var(--border); aspect-ratio: 3 / 4; background: #eee; overflow: hidden; }
.card__img { width: 100%; height: 100%; object-fit: cover; }
.card__badge {
    position: absolute; font-size: 11px; font-weight: 800; padding: 3px 8px;
    border: var(--border-thin); text-transform: uppercase;
}
.card__badge--q { top: 8px; left: 8px; background: var(--yellow); }
.card__badge--t { bottom: 8px; right: 8px; background: var(--ink); color: var(--yellow); }
.card__body { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 6px; }
.card__code {
    align-self: flex-start; font-size: 11px; font-weight: 900; letter-spacing: .5px;
    background: var(--pink); border: var(--border-thin); padding: 2px 7px; text-transform: uppercase;
}
.card__title {
    font-size: 13.5px; font-weight: 700; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------------- Pagination ---------------- */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; justify-content: center; }
.page-btn {
    text-decoration: none; font-weight: 800; font-size: 14px; padding: 9px 14px;
    background: var(--card); border: var(--border); box-shadow: var(--shadow-sm);
    transition: transform .08s ease, box-shadow .08s ease;
}
.page-btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); background: var(--teal); }
.page-btn.is-active { background: var(--ink); color: var(--yellow); }
.page-gap { align-self: center; font-weight: 900; }

/* ---------------- Sidebar ---------------- */
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 16px; }
.sidebar .ad-slot { margin: 0; max-width: none; }
.panel { margin: 0; }
.panel__title {
    font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: .5px;
    margin-bottom: 14px; padding-bottom: 10px; border-bottom: var(--border);
}
.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-block; text-decoration: none; font-size: 12px; font-weight: 800;
    text-transform: uppercase; padding: 6px 11px;
    background: var(--paper); border: var(--border-thin); box-shadow: var(--shadow-sm);
    transition: transform .08s ease;
}
.chip:hover { transform: translate(-2px, -2px); background: var(--yellow); }
.chip.is-active { background: var(--ink); color: var(--yellow); }

/* ---------------- Video detail ---------------- */
.breadcrumb { font-size: 12px; font-weight: 700; text-transform: uppercase; margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumb a { text-decoration: none; border-bottom: 2px solid var(--ink); }
.breadcrumb a:hover { background: var(--yellow); }
.breadcrumb__sep { opacity: .5; }

.video-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.tag {
    font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .5px;
    padding: 4px 10px; border: var(--border-thin); background: var(--teal); box-shadow: var(--shadow-sm);
}
.tag--code { background: var(--pink); }

.player { border: var(--border); box-shadow: var(--shadow-lg); background: #000; }
.player__frame { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.player__poster { width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.player__iframe { width: 100%; height: 100%; border: 0; display: block; }
.player__play {
    position: absolute; inset: 0; margin: auto; width: max-content; height: max-content;
    display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
    font: inherit; font-weight: 900; text-transform: uppercase; font-size: 15px;
    padding: 16px 24px; background: var(--yellow); border: var(--border); box-shadow: var(--shadow);
    transition: transform .08s ease, box-shadow .08s ease;
}
.player__play:hover { transform: translate(-3px, -3px) scale(1.03); box-shadow: var(--shadow-lg); background: var(--pink); }
.player__play-icon { font-size: 20px; }
.player__frame--empty { display: grid; place-items: center; }
.player__note { position: absolute; bottom: 12px; left: 12px; right: 12px; background: var(--yellow); border: var(--border-thin); font-weight: 800; font-size: 13px; padding: 8px 12px; text-align: center; }

.video-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.video-desc { font-size: 14px; line-height: 1.7; }

.facts { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.facts__row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: start; }
.facts__row dt { font-weight: 900; font-size: 12px; text-transform: uppercase; }
.facts__row dd { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }

.related { margin-top: 34px; }
.section-title {
    font-size: 20px; font-weight: 900; text-transform: uppercase; letter-spacing: -.5px;
    margin-bottom: 18px; padding-bottom: 12px; border-bottom: var(--border);
}

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ink); color: #fff; border-top: var(--border); margin-top: 30px; }
.site-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding-top: 34px; padding-bottom: 26px; }
.site-footer__col p { font-size: 13px; margin-top: 12px; }
.logo--footer .logo__text { color: #fff; }
.site-footer__title { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; color: var(--yellow); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { text-decoration: none; font-size: 13px; font-weight: 600; }
.footer-links a:hover { color: var(--yellow); }
.site-footer .muted { color: #a4a4a4; }
.site-footer__bottom { padding-top: 18px; padding-bottom: 26px; border-top: var(--border-thin); }
.disclaimer { font-size: 12px; color: #cfcfcf; max-width: 80ch; margin-bottom: 10px; }
.disclaimer strong { color: var(--yellow); }

/* ---------------- To top ---------------- */
.to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 90; text-decoration: none;
    width: 48px; height: 48px; display: grid; place-items: center; font-size: 22px; font-weight: 900;
    background: var(--yellow); border: var(--border); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .08s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); background: var(--pink); }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
    .layout, .layout--video { grid-template-columns: minmax(0, 1fr); }
    .sidebar { position: static; }
    .site-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .site-header__inner { flex-wrap: wrap; }
    .search { order: 3; max-width: none; width: 100%; margin-left: 0; }
    .nav-toggle { display: block; margin-left: auto; }
    .site-nav { display: none; }
    .site-nav.is-open { display: block; }
    .nav-list { width: 100%; }
    .lang-switch { margin-left: 0; width: 100%; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
    .facts__row { grid-template-columns: 1fr; gap: 6px; }
    .site-footer__inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}
