/* 2026-11-08: beranda — tiap bagian punya bentuk sendiri biar gak monoton */
.hm-sec { margin-top: 26px; }
.hm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hm-head .section-title { margin-bottom: 0; }
.hm-more { color: var(--accent); font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.hm-more:hover { text-decoration: underline; }
.hm-count { color: var(--muted); font-size: 13px; font-weight: 600; }
.rs-row, .t10, .rl-grid { scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rs-row::-webkit-scrollbar, .t10::-webkit-scrollbar, .rl-grid::-webkit-scrollbar { display: none; }
.rs-cov, .t10-cov, .tr-cov, .rl-cov { position: relative; overflow: hidden; background: #1a1e27; }
.rs-cov img, .t10-cov img, .tr-cov img, .rl-cov img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }

/* Lanjutkan baca: kartu lebar + progress */
.rs-row { display: flex; gap: 12px; overflow-x: auto; padding: 12px 2px 6px; scroll-snap-type: x proximity; }
.rs-card { flex: 0 0 290px; scroll-snap-align: start; display: flex; gap: 12px; padding: 10px; border-radius: 14px; text-decoration: none; color: var(--ink);
  background: linear-gradient(135deg, rgba(255,122,61,.10), rgba(255,255,255,.02) 55%); border: 1px solid var(--line); transition: border-color .15s ease, transform .15s ease; }
.rs-card:hover { border-color: rgba(255,122,61,.55); transform: translateY(-2px); }
.rs-cov { flex: 0 0 68px; height: 96px; border-radius: 9px; }
.rs-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rs-title { font-weight: 700; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rs-meta { margin-top: auto; font-size: 12.5px; color: var(--muted); }
.rs-meta b { color: var(--ink); font-weight: 700; }
.rs-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); margin: 6px 0 8px; overflow: hidden; }
.rs-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #ff9a5c, var(--accent)); }
.rs-go { align-self: flex-start; display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.rs-go svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.rs-card:hover .rs-go svg { transform: translateX(3px); }

/* Paling banyak dibaca: top 10 bernomor besar */
.t10 { list-style: none; margin: 0; padding: 14px 2px 4px; display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; counter-reset: none; }
.t10 li { flex: 0 0 auto; scroll-snap-align: start; }
.t10-card { position: relative; display: grid; grid-template-columns: 54px 120px; grid-template-rows: auto auto auto; text-decoration: none; color: var(--ink); }
.t10 li:nth-child(n+10) .t10-card { grid-template-columns: 84px 120px; }
.t10-n { grid-column: 1; grid-row: 1; align-self: end; justify-self: end; margin-right: -14px; z-index: 0;
  font: 900 112px/0.8 Inter, system-ui, sans-serif; letter-spacing: -0.08em; color: var(--bg);
  -webkit-text-stroke: 2.5px rgba(255,122,61,.85); paint-order: stroke fill; user-select: none; }
.t10-cov { grid-column: 2; grid-row: 1; z-index: 1; width: 120px; height: 170px; border-radius: 10px; box-shadow: -6px 6px 18px rgba(0,0,0,.45); }
.t10-card:hover .t10-cov img { transform: scale(1.06); }
.t10-t { grid-column: 2; margin-top: 8px; font-size: 13px; font-weight: 700; line-height: 1.3; width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t10-s { grid-column: 2; font-size: 12px; color: var(--muted); }
.t10-card:hover .t10-t { color: #fff; }

/* Paling dibaca minggu ini: daftar tren + batang view */
.tr-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); grid-auto-flow: column; grid-template-rows: repeat(5, auto); column-gap: 18px; }
.tr-list li { min-width: 0; }
.tr-row { display: flex; min-width: 0; align-items: center; gap: 12px; padding: 9px 6px; border-radius: 12px; text-decoration: none; color: var(--ink); transition: background .15s ease; }
.tr-row:hover { background: rgba(255,255,255,.035); }
.tr-n { flex: 0 0 26px; text-align: center; font: 900 20px Inter, sans-serif; color: var(--muted); }
.tr-list li:nth-child(-n+3) .tr-n { color: var(--accent); }
.tr-cov { flex: 0 0 52px; height: 74px; border-radius: 8px; }
.tr-b { flex: 1; min-width: 0; }
.tr-t { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-g { font-size: 12px; color: var(--muted); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-bar { height: 5px; border-radius: 5px; background: rgba(255,255,255,.06); margin-top: 8px; overflow: hidden; }
.tr-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, rgba(255,122,61,.55), var(--accent)); }
.tr-v { flex: 0 0 auto; text-align: right; font-weight: 800; font-size: 14px; line-height: 1.1; }
.tr-v small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.tr-more { display: none; }

/* Rilis hari ini: grid 2 baris digeser */
.rl-grid { display: grid; grid-auto-flow: column; grid-template-rows: auto; grid-auto-columns: 128px; gap: 14px 12px; overflow-x: auto; padding: 12px 2px 4px; scroll-snap-type: x proximity; }
.rl-card { scroll-snap-align: start; text-decoration: none; color: var(--ink); min-width: 0; }
.rl-cov { height: 180px; border-radius: 10px; }
.rl-card:hover .rl-cov img { transform: scale(1.06); }
.rl-ch { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 7px; background: var(--accent); color: #1a0d05; font-size: 11.5px; font-weight: 800; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.rl-t { margin-top: 7px; font-size: 12.5px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rl-time { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.rl-time i { width: 6px; height: 6px; border-radius: 50%; background: #5ee39a; box-shadow: 0 0 0 3px rgba(94,227,154,.15); }

@media (max-width: 720px) {
  .rs-card { flex-basis: 82%; }
  .t10-card { grid-template-columns: 40px 104px; }
  .t10 li:nth-child(n+10) .t10-card { grid-template-columns: 66px 104px; }
  .t10-n { font-size: 92px; }
  .t10-cov { width: 104px; height: 148px; } .t10-t { width: 104px; }
  .tr-list { grid-template-columns: minmax(0,1fr); grid-auto-flow: row; grid-template-rows: none; }
  .tr-list:not(.all) li:nth-child(n+6) { display: none; }
  .tr-more { display: block; width: 100%; margin-top: 6px; min-height: 42px; border-radius: 10px; border: 1px solid var(--line); background: none; color: var(--ink); font: 600 14px Inter, sans-serif; cursor: pointer; }
  .rl-grid { grid-auto-columns: 108px; } .rl-cov { height: 152px; }
}
@media (prefers-reduced-motion: reduce) { .rs-card, .rs-cov img, .t10-cov img, .tr-cov img, .rl-cov img, .rs-go svg { transition: none; } }

/* panah geser + drag mouse */
.hm-tools { display: inline-flex; align-items: center; gap: 8px; }
.hm-arr { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--ink);
  display: inline-grid; place-items: center; cursor: pointer; padding: 0; transition: border-color .15s ease, background .15s ease; }
.hm-arr svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hm-arr:hover:not(:disabled) { border-color: var(--accent); background: rgba(255,122,61,.12); }
.hm-arr:disabled { opacity: .35; cursor: default; }
.hm-arr[hidden] { display: none; }
@media (hover: none) { .hm-arr { display: none; } }
[data-hscroll] { cursor: grab; }
[data-hscroll].dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
[data-hscroll].dragging a { pointer-events: none; }

/* ═══ 2026-11-08: hero, kartu 3 chapter, badge, header genre ═══ */
.hero { position: relative; height: 340px; border-radius: 20px; overflow: hidden; background: #13161d; margin-top: 14px; isolation: isolate; }
.hero-s { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.hero-s.on { opacity: 1; visibility: visible; transition: opacity .7s ease; }
.hero-s::before { content: ""; position: absolute; inset: -30px; background: var(--bg) center/cover; filter: blur(24px) saturate(1.25) brightness(.5); transform: scale(1.1); }
.hero-s::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,13,18,.94) 0%, rgba(11,13,18,.6) 55%, rgba(11,13,18,.22)); }
.hero-in { position: relative; z-index: 1; height: 100%; display: flex; align-items: center; gap: 28px; padding: 0 36px; }
.hero-cov { flex: 0 0 auto; display: block; width: 190px; height: 268px; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.55); background: #1a1e27; }
.hero-cov img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.hero-cov:hover img { transform: scale(1.04); }
.hero-txt { max-width: 580px; min-width: 0; }
.hero-g { color: #ffb380; font-size: 13px; font-weight: 700; }
.hero h2 { margin: 6px 0 10px; font-size: 32px; line-height: 1.12; letter-spacing: -.02em; }
.hero h2 a { color: #fff; text-decoration: none; }
.hero p { margin: 0 0 18px; color: #c5ccd8; font-size: 14.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-b { display: flex; gap: 10px; flex-wrap: wrap; }
.hb { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 700; font-size: 14.5px; text-decoration: none; color: #e8ecf1; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.07); transition: background .15s ease, transform .15s ease; }
.hb:hover { background: rgba(255,255,255,.14); }
.hb.pri { background: linear-gradient(135deg, #ff8a4c, #ff6a1f); color: #1a0d05; border: 0; }
.hb.pri:hover { transform: translateY(-1px); filter: brightness(1.06); }
.hero-dots { position: absolute; z-index: 2; right: 22px; bottom: 18px; display: flex; gap: 6px; }
.hd { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: rgba(255,255,255,.35); cursor: pointer; transition: width .25s ease, background .25s ease; }
.hd.on { width: 24px; background: var(--accent); }
.hd:focus-visible, .hb:focus-visible { outline: 2px solid #ffb380; outline-offset: 2px; }

.uc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.uc { display: flex; gap: 12px; padding: 10px; border-radius: 14px; background: var(--panel, #13161d); border: 1px solid var(--line, #242834); min-width: 0; transition: border-color .15s ease; }
.uc:hover { border-color: rgba(255,122,61,.4); }
.uc-cov { position: relative; flex: 0 0 92px; height: 130px; border-radius: 10px; overflow: hidden; background: #1a1e27; display: block; }
.uc-cov img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.uc-cov:hover img { transform: scale(1.05); }
.uc-b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.uc h3 { margin: 2px 0 8px; font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.uc h3 a { color: var(--ink); text-decoration: none; } .uc h3 a:hover { color: #fff; }
.uc-chs { display: flex; flex-direction: column; gap: 5px; margin-top: auto; }
.uc-ch { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 8px; background: rgba(255,255,255,.045); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 600; transition: background .15s ease; }
.uc-ch:hover { background: rgba(255,255,255,.09); }
.uc-ch:first-child { background: rgba(255,122,61,.14); color: #ffb380; }
.uc-ch:first-child:hover { background: rgba(255,122,61,.24); }
.uc-ch span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-ch time { flex: 0 0 auto; color: var(--muted); font-weight: 500; font-size: 12px; }
.uc-none { color: var(--muted); font-size: 12.5px; }

.card .cover { position: relative; }
.bd-row { position: absolute; left: 6px; bottom: 6px; display: flex; gap: 4px; z-index: 2; pointer-events: none; }
.bd { padding: 1px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.bd-new { background: var(--accent); color: #1a0d05; }
.bd-end { background: #2e7dd7; color: #fff; }
.bd-flag { position: absolute; right: 6px; top: 5px; z-index: 2; font-size: 15px; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.7)); pointer-events: none; }

.gh { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 30px; margin: 14px 0 16px; border-radius: 20px; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, hsl(var(--gh) 85% 58%) 0%, hsl(var(--gh) 70% 36%) 45%, hsl(var(--gh) 55% 12%) 100%); }
.gh-k { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.78); }
.gh h2 { margin: 2px 0 2px; font-size: 40px; line-height: 1.05; letter-spacing: -.03em; color: #fff; }
.gh p { margin: 0 0 16px; color: rgba(255,255,255,.85); font-weight: 600; }
.gh-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.gh-tabs a { padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff; background: rgba(0,0,0,.25); text-decoration: none; }
.gh-tabs a:hover { background: rgba(0,0,0,.4); }
.gh-tabs a.on { background: #fff; color: hsl(var(--gh) 70% 32%); }
html.f-adult .gh-tabs .kk-a, html.f-bl .gh-tabs .kk-b { display: none; }
.gh-cov { display: flex; padding-right: 8px; flex: 0 0 auto; }
.gh-cov img { width: 84px; height: 120px; object-fit: cover; border-radius: 10px; margin-left: -26px; box-shadow: -6px 6px 16px rgba(0,0,0,.4); transform: rotate(-6deg); border: 2px solid rgba(255,255,255,.18); background: #1a1e27; }
.gh-cov img:nth-child(even) { transform: rotate(5deg) translateY(10px); }

@media (max-width: 720px) {
  .hero { height: 430px; }
  .hero-in { flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 14px; padding: 22px 20px 46px; }
  .hero-cov { width: 108px; height: 152px; }
  .hero h2 { font-size: 23px; } .hero p { -webkit-line-clamp: 2; font-size: 14px; margin-bottom: 14px; }
  .hero-s::after { background: linear-gradient(0deg, rgba(11,13,18,.96) 0%, rgba(11,13,18,.7) 55%, rgba(11,13,18,.3)); }
  .hero-dots { left: 20px; right: auto; bottom: 18px; }
  .uc-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .gh { flex-direction: column; align-items: flex-start; padding: 22px 20px; }
  .gh h2 { font-size: 32px; }
  .gh-cov { padding-left: 26px; } .gh-cov img { width: 60px; height: 86px; }
}
@media (prefers-reduced-motion: reduce) { .hero-s, .hero-s.on { transition: none; } }

.topbar.topbar-gh { display: none !important; }
.gh-back { position: absolute; top: 16px; right: 22px; z-index: 1; color: rgba(255,255,255,.85); font-size: 13px; font-weight: 600; text-decoration: none; }
.gh-back:hover { color: #fff; text-decoration: underline; }
@media (max-width: 720px) {
  .uc { padding: 8px; gap: 10px; }
  .uc-cov { flex-basis: 74px; height: 104px; }
  .uc h3 { font-size: 14px; margin-bottom: 6px; }
  .uc-ch:nth-child(3) { display: none; }
  .gh-back { top: 14px; right: 16px; }
}

/* chapter yg udah dibaca: dicoret + redup + centang */
.uc-ch.read { background: rgba(255,255,255,.025); color: var(--muted); }
.uc-ch.read:first-child { background: rgba(255,255,255,.025); color: var(--muted); }
.uc-ch.read span { text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: rgba(154,163,178,.7); }
.uc-ch.read span::after { content: " ✓"; text-decoration: none; display: inline-block; margin-left: 4px; color: #5ee39a; font-size: 11px; }
.uc-ch.read time { opacity: .7; }
html[data-theme="light"] .uc-ch.read, html[data-theme="light"] .uc-ch.read:first-child { background: rgba(16,24,40,.03); }
html[data-theme="light"] .uc-ch.read span::after { color: #16a34a; }

/* ═══ 2026-11-08: hasil pencarian ═══ */
.sr-count { color: var(--muted); font-size: 14px; margin: 6px 0 12px; }
.sr-count b { color: var(--ink); }
.sr-list { display: flex; flex-direction: column; gap: 8px; }
.sr-row { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 14px; background: var(--panel, #13161d); border: 1px solid var(--line, #242834);
  text-decoration: none !important; color: var(--ink); transition: border-color .15s ease, background .15s ease; }
.sr-row:hover { border-color: rgba(255,122,61,.45); }
.sr-cov { position: relative; flex: 0 0 68px; height: 96px; border-radius: 9px; overflow: hidden; background: #1a1e27; display: block; }
.sr-cov img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sr-cov .bd-row { left: 4px; bottom: 4px; } .sr-cov .bd { font-size: 9.5px; padding: 0 5px; } .sr-cov .bd-flag { font-size: 13px; right: 4px; top: 3px; }
.sr-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sr-t { font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.sr-t mark, .sr-alt mark { background: rgba(255,122,61,.22); color: inherit; border-radius: 3px; padding: 0 2px; }
.sr-alt { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--muted); }
.sr-meta span + span::before { content: "·"; margin-right: 10px; opacity: .6; }
.sr-on { color: #7fd49b; } .sr-end { color: #8ab4ff; }
.sr-g { display: flex; flex-wrap: wrap; gap: 5px; }
.sr-g i { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); }
.sr-go { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sr-row:hover .sr-go { stroke: var(--accent); }
.sr-empty { text-align: center; padding: 34px 16px 10px; }
.sr-empty h2 { margin: 0 0 6px; font-size: 21px; }
.sr-empty p { margin: 0 auto 16px; max-width: 46ch; color: var(--muted); font-size: 14.5px; }
.sr-sug { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.sr-sug span { color: var(--muted); font-size: 13.5px; }
.sr-sug a { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,122,61,.45); color: #ffb380; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.sr-sug a:hover { background: rgba(255,122,61,.12); }
.sr-pop { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; margin-top: 12px; }
.sr-pc { text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.3; }
.sr-pc > span:last-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; }
.sr-pcv { position: relative; display: block; aspect-ratio: 5 / 7; border-radius: 10px; overflow: hidden; background: #1a1e27; }
.sr-pcv img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 720px) {
  .sr-row { gap: 12px; padding: 8px; } .sr-cov { flex-basis: 60px; height: 84px; }
  .sr-t { font-size: 14.5px; } .sr-go { display: none; }
  .sr-pop { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}
html[data-theme="light"] .sr-g i { background: rgba(16,24,40,.06); }
html[data-theme="light"] .sr-on { color: #15803d; } html[data-theme="light"] .sr-end { color: #2563eb; }
html[data-theme="light"] .sr-sug a { color: #d9541a; }

/* ═══ 2026-11-08: tombol Genre (daftar semua genre) ═══ */
.sort-pills { position: relative; }
.gpick { display: inline-block; position: static; }
.gpick > summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; user-select: none; }
.gpick > summary::-webkit-details-marker { display: none; }
.gpick > summary svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.gpick[open] > summary { color: var(--ink); border-color: rgba(255,122,61,.55); background: rgba(255,122,61,.12); }
.gpick[open] > summary svg { transform: rotate(180deg); }
.gpick-panel { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40; max-width: 760px; padding: 14px; border-radius: 16px;
  background: var(--panel, #13161d); border: 1px solid var(--line, #242834); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.gpick-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.gpick-top input { flex: 1; min-width: 0; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line, #242834); background: rgba(255,255,255,.04); color: var(--ink); font: inherit; font-size: 14px; }
.gpick-top input:focus { outline: none; border-color: rgba(255,122,61,.6); }
.gpick-n { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.gpick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; max-height: min(60vh, 420px); overflow-y: auto; padding-right: 2px; }
.gp { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.035);
  color: var(--ink); text-decoration: none !important; font-size: 13.5px; font-weight: 600; transition: background .12s ease, color .12s ease; }
.gp small { color: var(--muted); font-size: 11.5px; font-weight: 500; }
.gp:hover, .gp:focus-visible { background: rgba(255,122,61,.14); color: #ffb380; }
html.f-adult .gp.kk-a, html.f-bl .gp.kk-b { display: none !important; }
.gpick-empty { margin: 8px 2px 0; color: var(--muted); font-size: 13.5px; }
@media (max-width: 720px) {
  .gpick-panel { position: fixed; left: 12px; right: 12px; top: auto; bottom: calc(76px + env(safe-area-inset-bottom)); max-width: none; max-height: 70vh; display: flex; flex-direction: column; }
  .gpick-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; flex: 1; }
}
html[data-theme="light"] .gpick-panel { box-shadow: 0 18px 40px rgba(16,24,40,.16); }
html[data-theme="light"] .gp { background: rgba(16,24,40,.04); }
html[data-theme="light"] .gp:hover { color: #d9541a; }
html[data-theme="light"] .gpick-top input { background: #fff; }

.gpick-x { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line, #242834); background: rgba(255,255,255,.04); color: var(--ink);
  display: inline-grid; place-items: center; cursor: pointer; padding: 0; transition: background .15s ease, border-color .15s ease; }
.gpick-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.gpick-x:hover { background: rgba(255,122,61,.14); border-color: rgba(255,122,61,.5); }
.gpick-x:focus-visible { outline: 2px solid #ffb380; outline-offset: 2px; }
html[data-theme="light"] .gpick-x { background: #fff; }

/* 2026-11-08: tinggi panel genre TETAP (gak ngecil pas ngetik); di HP nempel di atas, aman dari keyboard */
.gpick-list { height: min(60vh, 420px); max-height: none; align-content: start; }
@media (max-width: 720px) {
  .gpick-panel { position: fixed; left: 12px; right: 12px; top: calc(62px + env(safe-area-inset-top)); bottom: auto;
    height: min(68dvh, 560px); max-height: none; display: flex; flex-direction: column; }
  .gpick-list { height: auto; flex: 1 1 auto; min-height: 0; }
}
