/* ===== BINALIN — dark editorial, berry accents ===== */
:root {
  --bg: #000000;         /* HITAM MURNI — nol tint, gak bisa keliatan wine di layar mana pun */
  --surface: #0f0f11;    /* kartu: netral, R≈G≈B */
  --panel: #1a1a1e;      /* admin only: netral */
  --panel-2: #0b0b0d;    /* placeholder thumbnail: netral */
  --berry: #C51F50;      /* Berry — aksi/CTA */
  --pink: #FF477E;       /* Hot Pink — aksen/ikon */
  --blush: #F4E9EC;      /* Soft Blush — teks utama */
  --mut: #a98f99;        /* teks redup */
  --line: rgba(244, 233, 236, 0.12);

  --font-head: 'Bricolage Grotesque', 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-ui: 'Inter', -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;

  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
.ico { display: inline-block; vertical-align: -2px; flex-shrink: 0; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--blush);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

h1, h2, h3, h4 { font-family: var(--font-head); letter-spacing: -0.02em; line-height: 1.15; }

/* ===== header ===== */
.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 11px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 18px;
  color: var(--pink);
}
.logo-word { font-family: var(--font-head); font-weight: 700; font-size: 21px; letter-spacing: -0.03em; color: var(--blush); }
.logo-word em { font-style: normal; color: var(--berry); }

.search { flex: 1; display: flex; gap: 8px; max-width: 480px; }
.search-wrap { position: relative; flex: 1; }
.search input {
  flex: 1; width: 100%; padding: 10px 16px; background: var(--bg);
  border: 1px solid var(--line); border-radius: 999px; color: var(--blush);
  font-family: var(--font-ui); font-size: 14px;
}
.search input::placeholder { color: var(--mut); }
.search input:focus { outline: none; border-color: var(--berry); }

/* search autocomplete dropdown */
.search-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm); overflow: hidden; z-index: 70;
  box-shadow: 0 8px 28px rgba(0,0,0,.5);
}
.search-suggest .ss-item {
  padding: 10px 14px; font-size: 14px; color: var(--blush); cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.search-suggest .ss-item:hover { background: var(--panel); }
.search-suggest .ss-icon { flex-shrink: 0; opacity: .6; }
.search-suggest .ss-history .ss-icon { opacity: .5; }

button, .btn {
  padding: 10px 18px; background: var(--berry); color: #fff;
  border: 0; border-radius: 999px; cursor: pointer; font-weight: 600;
  font-family: var(--font-ui); font-size: 14px;
  transition: background .15s, transform .05s;
}
button:hover { background: var(--pink); }
button:active { transform: scale(.98); }
.adminlink { padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--mut); }
.adminlink:hover { color: var(--blush); background: var(--surface); }

/* ===== category nav ===== */
.cats {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 12px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cats a {
  padding: 7px 16px; border-radius: 999px; background: var(--bg);
  border: 1px solid var(--line); font-size: 13px; color: var(--mut);
  white-space: nowrap;
}
.cats a.on { background: var(--berry); color: #fff; border-color: var(--berry); font-weight: 600; }

/* ===== main ===== */
main { padding: 24px 20px 40px; max-width: 1240px; margin: 0 auto; }

.page-title { font-size: 26px; margin: 0; font-weight: 700; }
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--pink); font-weight: 600; margin: 0 0 4px; }
.empty { color: var(--mut); }
.mut { color: var(--mut); }
.small { font-size: 12px; font-weight: 400; }

/* breadcrumb + deskripsi kategori */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mut); margin: 8px 0 0; }
.breadcrumb a { color: var(--pink); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { opacity: .5; }
.cat-desc { color: var(--blush); font-size: 14px; line-height: 1.6; margin: 10px 0 0; max-width: 720px; opacity: .9; }

/* ===== video grid & cards ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.card {
  display: block; background: var(--surface); position: relative;
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  transition: transform .12s, border-color .12s;
}
.card:hover { border-color: var(--berry); transform: translateY(-2px); }
.thumb { position: relative; aspect-ratio: 16/9; background: var(--panel-2); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb img.thumb-img { position: absolute; inset: 0; }
.thumb video.preview {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .18s; pointer-events: none;
}
/* preview aktif (class .playing di-toggle JS saat hover desktop / hold mobile) */
.thumb.playing video.preview { opacity: 1; }
.thumb.playing img.thumb-img { opacity: 0; }
.nothumb { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--pink); }
.nothumb .ico { width: 34px; height: 34px; opacity: .7; }
.dur {
  position: absolute; right: 8px; bottom: 8px; background: rgba(16,9,13,.82);
  padding: 2px 7px; border-radius: 6px; font-size: 12px; font-weight: 500;
}
.meta { padding: 12px 14px 14px; }
.meta .t { font-family: var(--font-head); font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--blush); }
.meta .s { color: var(--mut); font-size: 12px; margin-top: 3px; }

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: var(--berry); color: #fff;
}
.badge.pink { background: var(--pink); color: var(--bg); }

/* ===== watch page ===== */
.watch-wrap { display: block; }
.player {
  display: block; width: 100%; aspect-ratio: 16/9; max-height: 76vh;
  margin: 0 auto; background: #000; border-radius: var(--r-lg); border: 0;
}
.vtitle { font-size: 24px; margin: 16px 0 6px; font-weight: 700; }
.vinfo { color: var(--mut); font-size: 13px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.tags a { color: var(--pink); font-size: 13px; padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.tags a:hover { border-color: var(--pink); }
.desc { color: var(--mut); font-size: 14px; line-height: 1.6; white-space: pre-wrap; }

.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; margin-top: 30px; }
.related h3 { grid-column: 1 / -1; margin: 0; font-size: 20px; font-weight: 700; }
.related .card.small { display: block; }
.card.small .thumb { width: 100%; aspect-ratio: 16/9; }

/* ===== filter / sort / tag ===== */
.list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.sorttabs { display: flex; gap: 6px; flex-wrap: wrap; }
.sorttabs a { padding: 7px 15px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--mut); }
.sorttabs a.on { background: var(--berry); color: #fff; border-color: var(--berry); font-weight: 600; }
.durfilter { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.durfilter a { padding: 5px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; color: var(--mut); }
.durfilter a.on { background: var(--pink); color: var(--bg); border-color: var(--pink); font-weight: 600; }
.tagcloud { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.tagcloud a { font-size: 13px; color: var(--pink); padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }

/* ===== filter dropdown ===== */
.filterbox { position: relative; }
.filterbox:not([open]) .filter-panel { display: none; }
.filter-toggle {
  list-style: none;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--blush);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
  white-space: nowrap;
}
.filter-toggle::-webkit-details-marker { display: none; }
.filter-toggle::marker { content: ""; }
.filter-toggle:hover { border-color: var(--berry); }
.filterbox[open] .filter-toggle { background: var(--berry); color: #fff; border-color: var(--berry); }
.filter-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  z-index: 60;
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 10px 32px rgba(0,0,0,.55);
}
.filter-panel .fgroup { display: flex; flex-direction: column; gap: 6px; }
.filter-panel .flabel { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.filter-panel .durfilter, .filter-panel .tagcloud { margin-bottom: 0; }

.loadmore-wrap { text-align: center; margin: 26px 0; }
#loadMore { padding: 11px 28px; }

.reportbtn {
  background: transparent; border: 1px solid var(--line); color: var(--mut);
  padding: 4px 12px; font-size: 12px; border-radius: 999px; margin-left: 4px;
}
.reportbtn:hover { color: var(--pink); border-color: var(--pink); background: transparent; }

/* like / dislike + actions row */
.vactions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.votebar { display: flex; gap: 8px; margin: 0; }
.vote-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--line); color: var(--blush);
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  cursor: pointer;
}
.vote-btn:hover { border-color: var(--pink); background: var(--surface); }
.vote-btn.on.like { background: var(--berry); color: #fff; border-color: var(--berry); }
.vote-btn.on.dislike { background: var(--panel); color: #fff; border-color: var(--panel); }
.vactions .reportbtn { margin-left: 0; padding: 7px 14px; }

/* ===== ads ===== */
.adslot { display: flex; justify-content: center; align-items: center; background: transparent; min-height: 0; max-width: 100%; overflow: hidden; }
.ad-header { margin-bottom: 0; }
.ad-above-player { margin: 0 0 12px; min-height: 90px; }
.ad-below-player { margin: 14px 0 0; min-height: 90px; }
.ad-sidebar { grid-column: 1 / -1; margin-bottom: 0; min-height: 90px; }
.adslot iframe, .adslot ins, .adslot img { max-width: 100%; }
/* responsive: leaderboard 728x90 cuma desktop, 300x250 cuma mobile */
.ad-desk { display: flex; }
.ad-mob { display: none; }
@media (max-width: 720px) {
  .ad-desk { display: none; }
  .ad-mob { display: flex; }
}

/* ===== favorite button ===== */
.fav-btn { position: absolute; top: 8px; left: 8px; background: rgba(16,9,13,.6); border: 1px solid var(--line); color: var(--blush); width: 32px; height: 32px; border-radius: 50%; font-size: 16px; cursor: pointer; line-height: 1; z-index: 3; padding: 0; }
.fav-btn:hover { background: rgba(16,9,13,.85); border-color: var(--pink); }
.fav-btn.big { position: static; width: auto; height: auto; padding: 7px 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.fav-btn.big span { font-size: 13px; font-weight: 600; }
.fav-btn.big.on { color: var(--pink); border-color: var(--pink); }
.fav-btn.big .ico { width: 18px; height: 18px; }

/* ===== share / upnext ===== */
.sharepop { position: fixed; inset: 0; background: rgba(16,9,13,.7); display: flex; align-items: center; justify-content: center; z-index: 90; backdrop-filter: blur(4px); }
.sharepop[hidden] { display: none; }
.sharepop-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; width: 92%; max-width: 300px; display: flex; flex-direction: column; gap: 8px; }
.sharepop-box h4 { margin: 0 0 6px; font-size: 17px; }
.share-opt { background: var(--bg); border: 1px solid var(--line); color: var(--blush); padding: 11px; border-radius: var(--r-sm); cursor: pointer; text-align: left; font-size: 14px; }
.share-opt:hover { border-color: var(--berry); }
.share-opt.close { color: var(--mut); text-align: center; }

#upnext { position: fixed; right: 16px; bottom: 16px; background: var(--panel-2); border: 1px solid var(--berry); border-radius: var(--r-md); padding: 14px 16px; z-index: 95; max-width: 320px; box-shadow: 0 8px 28px rgba(0,0,0,.5); }
.upnext-inner strong { display: block; margin-top: 2px; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 280px; }
.upnext-actions { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.upnext-go { background: var(--berry); color: #fff; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }

/* ===== admin ===== */
.admin { max-width: 940px; }
.upform { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.upform label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--mut); }
.upform input[type=text], .upform input[type=file], .upform textarea, .login input,
.filterbar input[type=text], .filterbar select, .modal-box input, .modal-box textarea {
  padding: 11px 14px; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-sm); color: var(--blush); font-family: var(--font-ui); font-size: 14px;
}
.upform input:focus, .upform textarea:focus, .filterbar input:focus, .modal-box input:focus { outline: none; border-color: var(--berry); }
.hint { color: var(--mut); font-size: 12px; }
.progress { height: 8px; background: var(--panel-2); border-radius: 999px; overflow: hidden; }
#bar { height: 100%; width: 0; background: var(--berry); transition: width .2s; }
#status { font-size: 13px; color: var(--mut); }

.vlist { width: 100%; border-collapse: collapse; font-size: 13px; }
.vlist th, .vlist td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.vlist th { color: var(--mut); font-weight: 600; }
.del { background: var(--panel-2); padding: 6px 12px; font-size: 12px; }
.tk { background: var(--panel); padding: 6px 12px; font-size: 12px; }
.restore { background: #1e7a3c; padding: 6px 12px; font-size: 12px; }
.edit { background: #2a3a5a; padding: 6px 12px; font-size: 12px; }
.actions { display: flex; gap: 6px; white-space: nowrap; }
.badge.active { background: #14381f; color: #4ade80; }
.badge.takedown { background: #3a1414; color: #ff6b6b; }
.badge.origin { margin-left: 4px; font-size: 10px; padding: 2px 8px; }
.badge.origin.jav { background: #3a1414; color: #ff6b6b; }
.badge.origin.lokal { background: #14381f; color: #4ade80; }
.row-takedown { opacity: .55; }
.reason { font-size: 11px; color: #ff9b9b; margin-top: 3px; }
.filterbar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.filterbar input[type=text] { flex: 1; min-width: 200px; }
.filterbar .reset { align-self: center; color: var(--mut); font-size: 13px; }

.modal { position: fixed; inset: 0; background: rgba(16,9,13,.75); display: flex; align-items: center; justify-content: center; z-index: 100; backdrop-filter: blur(4px); }
.modal[hidden] { display: none; }
.modal-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; width: 92%; max-width: 480px; }
.modal-box h3 { margin: 0 0 16px; font-size: 20px; }
.modal-box form { display: flex; flex-direction: column; gap: 12px; }
.modal-box label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--mut); }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; }
.modal-actions button[type=button] { background: var(--panel-2); }

/* ===== login ===== */
.err { color: var(--pink); }
.login { max-width: 380px; }
.login form { display: flex; flex-direction: column; gap: 10px; }

/* ===== tombol primary (CTA) ===== */
.primary {
  background: var(--berry); color: #fff; border: none;
  padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: var(--font-ui);
}
.primary:hover { background: var(--pink); }
.primary:disabled { opacity: .6; cursor: not-allowed; }

/* ===== user chip (header) ===== */
.userchip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--blush); background: var(--surface); border: 1px solid var(--line);
  max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.userchip .ico { color: var(--pink); }

/* notifikasi bell */
.notif-wrap { position: relative; }
.notif-bell { position: relative; background: transparent; border: none; color: var(--blush); cursor: pointer; padding: 6px; border-radius: 999px; display: inline-flex; align-items: center; }
.notif-bell:hover { color: var(--pink); background: var(--surface); }
.notif-badge { position: absolute; top: -2px; right: -2px; background: var(--berry); color: #fff; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.notif-dd { position: absolute; top: calc(100% + 8px); right: 0; width: 320px; max-width: 88vw; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; z-index: 80; box-shadow: 0 8px 28px rgba(0,0,0,.5); max-height: 420px; overflow-y: auto; }
.notif-item { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--blush); text-decoration: none; }
.notif-item:hover { background: var(--panel); }
.notif-item.unread { background: rgba(197,31,80,.08); }
.notif-item:last-child { border-bottom: none; }
.notif-line { font-size: 13px; line-height: 1.4; }
.notif-line strong { color: var(--pink); }
.notif-snippet { font-size: 12px; color: var(--mut); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-time { font-size: 11px; color: var(--mut); margin-top: 4px; }
.notif-empty { padding: 20px; text-align: center; color: var(--mut); font-size: 13px; }

/* ===== auth page ===== */
.auth { max-width: 420px; padding-top: 40px; }
.auth-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px;
}
.auth-tabs { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.auth-tab {
  flex: 1; background: transparent; border: none; color: var(--mut);
  padding: 10px; font-size: 15px; font-weight: 600; cursor: pointer;
  border-bottom: 2px solid transparent; font-family: var(--font-ui);
}
.auth-tab.on { color: var(--blush); border-bottom-color: var(--pink); }
.auth-form { display: flex; flex-direction: column; gap: 6px; }
.auth-form label { font-size: 13px; color: var(--mut); margin-top: 8px; }
.auth-form input {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 11px 14px; color: var(--blush); font-size: 14px; font-family: var(--font-ui);
}
.auth-form input:focus { outline: none; border-color: var(--berry); }
.auth-form .primary { margin-top: 16px; }
.auth-note { color: var(--mut); font-size: 12px; margin: 16px 0 0; line-height: 1.5; }

/* ===== download notice ===== */
.dl-notice {
  background: var(--surface); border: 1px solid var(--berry);
  border-radius: var(--r-sm); padding: 10px 14px; font-size: 13px; color: var(--blush);
  margin: 10px 0 0; line-height: 1.5;
}
.dl-notice a { color: var(--pink); font-weight: 600; }

/* ===== komentar ===== */
.comments { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.comments-title { display: flex; align-items: center; gap: 8px; font-size: 18px; margin: 0 0 14px; }
.comments-title .ico { color: var(--pink); }
.comment-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.comment-form textarea {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 14px; color: var(--blush); font-size: 14px; font-family: var(--font-ui);
  min-height: 80px; resize: vertical; line-height: 1.5;
}
.comment-form textarea:focus { outline: none; border-color: var(--berry); }
.comment-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.comment-login { color: var(--mut); font-size: 14px; padding: 14px 0; }
.comment-login a { color: var(--pink); font-weight: 600; }
.comment-list { display: flex; flex-direction: column; gap: 14px; }
.comment { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.comment:last-child { border-bottom: none; }
.comment-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.comment-user { font-weight: 700; font-size: 14px; color: var(--pink); }
.comment-time { font-size: 11px; }
.comment-body { margin: 0; font-size: 14px; color: var(--blush); line-height: 1.6; word-wrap: break-word; }

/* comment actions + nested replies */
.comment-actions { display: flex; gap: 10px; margin-top: 8px; align-items: center; }
.reply-btn, .replies-toggle {
  background: transparent; border: none; color: var(--mut); font-size: 12px; font-weight: 600;
  cursor: pointer; padding: 0; font-family: var(--font-ui);
}
.reply-btn:hover, .replies-toggle:hover { color: var(--pink); }
.replies { margin-top: 10px; padding-left: 14px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.replies .comment { border-bottom: none; padding-bottom: 0; }
.reply-form { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.reply-form textarea {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 10px 12px; color: var(--blush); font-size: 13px; font-family: var(--font-ui);
  min-height: 56px; resize: vertical; line-height: 1.5;
}
.reply-form textarea:focus { outline: none; border-color: var(--berry); }
.reply-form-actions { display: flex; gap: 8px; }
.reply-form-actions button {
  padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: var(--font-ui);
}
.reply-send { background: var(--berry); color: #fff; border: none; }
.reply-send:hover { background: var(--pink); }
.reply-cancel { background: transparent; border: 1px solid var(--line); color: var(--mut); }
.reply-cancel:hover { color: var(--blush); }

/* ===== age gate 18+ ===== */
.agegate {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.96);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.agegate-box {
  max-width: 420px; width: 100%; text-align: center;
  background: var(--surface); border: 1px solid var(--berry);
  border-radius: var(--r-lg); padding: 36px 28px;
}
.agegate-logo {
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 16px;
  background: var(--pink); color: #000; font-weight: 800; font-size: 26px;
  font-family: var(--font-head); display: flex; align-items: center; justify-content: center;
}
.agegate-title { margin: 0 0 10px; font-size: 24px; font-weight: 700; }
.agegate-desc { color: var(--blush); font-size: 14px; line-height: 1.6; margin: 0 0 24px; }
.agegate-desc a { color: var(--pink); }
.agegate-actions { display: flex; flex-direction: column; gap: 12px; }
.agegate-exit { color: var(--mut); font-size: 13px; }
.agegate-exit:hover { color: var(--blush); }
.no-scroll { overflow: hidden; }

/* ===== legal pages ===== */
.legal { max-width: 720px; padding-top: 32px; }
.legal-body { color: var(--blush); font-size: 14px; line-height: 1.8; margin-top: 16px; }

/* ===== footer ===== */
footer { text-align: center; color: var(--mut); font-size: 12px; padding: 34px 20px; border-top: 1px solid var(--line); }
footer .brand { color: var(--pink); font-family: var(--font-head); font-weight: 700; }
footer .tagline { color: var(--blush); font-family: var(--font-head); font-style: italic; font-weight: 500; letter-spacing: .01em; }
.legal-links { margin-top: 10px; font-size: 12px; }
.legal-links a { color: var(--mut); }
.legal-links a:hover { color: var(--pink); }

/* ===== RESPONSIVE (mobile-first) ===== */
@media (max-width: 720px) {
  /* header: 2 baris — logo + nav dulu, search full-width di bawah */
  .topbar {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
    row-gap: 10px;
  }
  .logo { flex: 1; }
  .logo-word { font-size: 18px; }
  .logo-mark { width: 32px; height: 32px; font-size: 16px; border-radius: 9px; }
  .adminlink { padding: 6px 11px; font-size: 12px; }
  .search {
    order: 10;                 /* turun ke baris kedua */
    flex-basis: 100%;
    max-width: none;
    width: 100%;
  }
  .search input { font-size: 15px; padding: 11px 15px; } /* font 16px+ anti zoom iOS */

  main { padding: 18px 14px 32px; }
  .page-title { font-size: 22px; }

  /* grid 2 kolom di layar sempit */
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card { border-radius: 12px; }
  .meta { padding: 10px 11px 12px; }
  .meta .t { font-size: 13px; }
  .meta .s { font-size: 11px; }
  .dur { font-size: 11px; }

  .related { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .related { margin-top: 22px; }

  .vtitle { font-size: 20px; }
  .player { border-radius: 12px; }

  .list-head { align-items: flex-start; }
  .sorttabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .sorttabs::-webkit-scrollbar { display: none; }
  .sorttabs a { flex-shrink: 0; }
  /* di dalam dropdown filter: balikin ke wrap (bukan scroll horizontal) */
  .filter-panel .sorttabs { width: auto; overflow: visible; flex-wrap: wrap; }
  .filter-panel { width: 280px; }

  /* ===== admin table -> card layout ===== */
  .vlist, .vlist tbody, .vlist tr, .vlist td { display: block; width: 100%; }
  .vlist thead { display: none; }
  .vlist tr {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 14px;
    margin-bottom: 12px;
  }
  .vlist td {
    border: 0;
    padding: 4px 0;
    display: flex;
    align-items: baseline;
    gap: 10px;
  }
  .vlist td::before {
    content: attr(data-label);
    flex: 0 0 64px;
    color: var(--mut);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
  }
  .vlist td[data-label="Judul"]::before { display: none; }
  .vlist td[data-label="Judul"] { display: block; padding-bottom: 8px; }
  .vlist td[data-label="Judul"] a { font-family: var(--font-head); font-weight: 600; font-size: 15px; }
  .vlist td.actions { flex-wrap: wrap; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 6px; }
  .vlist td.actions::before { display: none; }
  .vlist .actions { flex-wrap: wrap; }
  .vlist .del, .vlist .tk, .vlist .restore, .vlist .edit { padding: 7px 13px; font-size: 13px; }
  .row-takedown { opacity: .8; }

  .filterbar input[type=text] { min-width: 0; }
  .filterbar { gap: 6px; }
  .upform { padding: 16px; }

  /* modal & share pop lebih ramping */
  .modal-box { padding: 18px; }
  .sharepop-box { padding: 18px; }

  #upnext { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* layar sangat sempit */
@media (max-width: 380px) {
  .grid, .related { grid-template-columns: 1fr 1fr; gap: 10px; }
  .logo-word { font-size: 16px; }
  .adminlink { padding: 5px 9px; font-size: 11px; }
}
