:root {
  --base: #0B0B0C;
  --s: #161618;
  --s2: #1E1E21;
  --s3: #28282C;
  --stroke: #2A2A2E;
  --paper: #F5F5F4;
  --mute: #9B9BA1;
  --mute2: #6E6E74;
  --ok: #3ECF8E;
  --bad: #F0654E;
  --d3: 0 1px 0 0 rgba(255,255,255,.08) inset, 0 1px 0 0 rgba(255,255,255,.05), 0 20px 40px -16px rgba(0,0,0,.8);
  --d3s: 0 1px 0 0 rgba(255,255,255,.07) inset, 0 10px 20px -10px rgba(0,0,0,.7);
  --in: inset 0 2px 4px rgba(0,0,0,.35), 0 1px 0 rgba(255,255,255,.04);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; padding-top: env(safe-area-inset-top, 0); }
section[id] { scroll-margin-top: 88px; }
body {
  background: var(--base) radial-gradient(ellipse 120% 60% at 50% -10%, rgba(245,245,244,.05), transparent 60%) no-repeat;
  color: var(--paper);
  font: 400 14px/1.6 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  padding-bottom: 140px;
  overflow-x: hidden;
}
::selection { background: var(--paper); color: var(--base); }
.d { font-family: 'Space Grotesk', sans-serif; }
.m { font-family: 'JetBrains Mono', monospace; }
.w { max-width: 768px; margin: 0 auto; padding: 0 20px; }
.gpu { will-change: transform; transform: translateZ(0); }

/* HEADER */
header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(11,11,12,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hb { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.logo {
  display: flex; align-items: center; gap: 10px;
  background: none; border: 0; color: var(--paper);
  font: 600 18px 'Space Grotesk';
  letter-spacing: -.01em; cursor: pointer;
}
.sq {
  width: 40px; height: 40px; border-radius: 16px;
  background: var(--s2); display: grid; place-items: center;
  box-shadow: var(--d3s); border: 0; color: var(--paper);
  cursor: pointer; flex: none;
}
.sq:active { background: var(--s3); }
.bur { position: relative; width: 18px; height: 18px; display: block; }
.bur i {
  position: absolute; left: 0; top: 8px;
  width: 18px; height: 2px; border-radius: 2px;
  background: currentColor;
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.bur i:first-child { transform: translateY(-4px); }
.bur i:last-child { transform: translateY(4px); }
#mb.open .bur i:first-child { transform: rotate(45deg); }
#mb.open .bur i:last-child { transform: rotate(-45deg); }
#mb { transition: background .25s, transform .15s; }
#mb:active { transform: scale(.94); }
#mb.open { background: var(--s3); }
.mw {
  position: absolute; top: 100%; left: 50%;
  width: 100%; max-width: 768px;
  transform: translateX(-50%);
  padding: 0 20px;
  display: grid; grid-template-rows: 0fr;
  opacity: 0; visibility: hidden;
  transition: grid-template-rows .5s cubic-bezier(.16,1,.3,1), opacity .3s ease, visibility 0s linear .5s;
}
.mw.open {
  grid-template-rows: 1fr; opacity: 1; visibility: visible;
  transition: grid-template-rows .5s cubic-bezier(.16,1,.3,1), opacity .3s ease, visibility 0s;
}
.mw > div { overflow: hidden; min-height: 0; }
.mw nav {
  margin-bottom: 14px;
  background: var(--s); border-radius: 20px; padding: 8px;
  box-shadow: var(--d3s);
  border: 1px solid rgba(255,255,255,.06);
  display: flex; flex-direction: column; gap: 4px;
  transform: translateY(-10px);
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.mw.open nav { transform: none; }
.mw small {
  display: block; padding: 8px 12px 4px;
  font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--mute2);
}
.mw a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 14px;
  color: var(--paper); text-decoration: none;
  opacity: 0; transform: translateY(-6px);
  transition: opacity .3s, transform .4s cubic-bezier(.16,1,.3,1), background .2s;
}
.mw.open a { opacity: 1; transform: none; }
.mw.open a:nth-of-type(1) { transition-delay: .06s; }
.mw.open a:nth-of-type(2) { transition-delay: .12s; }
.mw a:active { background: var(--s3); }
.mw a b { display: block; font: 600 14px 'Space Grotesk'; }
.mw a span span { display: block; font-size: 12px; color: var(--mute); }
.mw a > svg:last-child { margin-left: auto; color: var(--mute2); }

@keyframes up {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* HERO */
.hero { padding: 34px 0 26px; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--s2); border-radius: 99px;
  padding: 6px 14px; font-size: 12px; color: var(--mute);
  box-shadow: var(--d3s);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); display: inline-block; }
.hero h1 {
  font: 700 clamp(32px, 8vw, 48px)/1.08 'Space Grotesk';
  letter-spacing: -.03em; margin: 18px 0 12px;
}
.hero p { color: var(--mute); max-width: 520px; margin: 0 auto; font-size: 14.5px; }

/* CARD */
.card {
  background: var(--s); border-radius: 28px; padding: 24px;
  box-shadow: var(--d3);
  border: 1px solid rgba(255,255,255,.07);
}
.row { display: flex; align-items: center; gap: 14px; }
.ic {
  width: 48px; height: 48px; border-radius: 16px;
  background: var(--s2); display: grid; place-items: center; flex: none;
}
.card h2, .card h3 { font: 600 15px 'Space Grotesk'; }
.sub {
  color: var(--mute); font-size: 12px;
  display: flex; align-items: center; gap: 6px; margin-top: 2px;
}
.field {
  display: flex; align-items: center; gap: 10px;
  margin-top: 20px; background: var(--base);
  border-radius: 18px; padding: 10px;
  box-shadow: var(--in); border: 1px solid #232326;
}
.field:focus-within { border-color: #4a4a50; }
.field input {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: 0;
  color: var(--paper);
  font: 500 14px 'JetBrains Mono', monospace;
  padding: 12px 8px;
}
.field input::placeholder { color: var(--mute2); }
.ib {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--s2); border: 0; color: var(--paper);
  display: grid; place-items: center;
  box-shadow: var(--d3s); cursor: pointer; flex: none;
  position: relative; z-index: 1;
  transition: transform .3s cubic-bezier(.16,1,.3,1),
              background-color .4s, color .4s,
              opacity .3s, margin .55s cubic-bezier(.16,1,.3,1);
}
.ib:active { transform: scale(.95); }
#cl, #kcl { z-index: 0; }
.ib.hid { margin-right: -54px; opacity: 0; pointer-events: none; }
.go {
  width: 100%; margin-top: 14px;
  height: 50px; border: 0; border-radius: 99px;
  background: var(--paper); color: var(--base);
  font: 600 15px 'Space Grotesk'; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: var(--d3s);
  transition: transform .3s cubic-bezier(.16,1,.3,1),
              background-color .4s, color .4s, box-shadow .25s;
}
.go:active { transform: scale(.98); }
.go:disabled { opacity: .55; cursor: wait; }

@keyframes pd { 50% { opacity: .35; transform: scale(.85); } }
.live { animation: pd 1.8s ease-in-out infinite; }

/* SECTION TITLE */
.stitle { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.stitle b { font: 600 15px 'Space Grotesk'; }
.badge {
  min-width: 20px; height: 20px; border-radius: 99px;
  background: var(--s2); display: inline-grid; place-items: center;
  padding: 0 6px; font-size: 11px; font-weight: 500;
}

/* VIDEO */
.vid { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 22px; }
.frame {
  aspect-ratio: var(--ar, 9/16);
  max-height: 520px; width: 100%;
  border-radius: 20px; overflow: hidden;
  background: #000 center/cover no-repeat;
  box-shadow: var(--d3s);
  border: 1px solid var(--stroke);
  position: relative;
  isolation: isolate;
}
.frame iframe,
.frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.frame iframe {
  z-index: 3;
  pointer-events: auto;
}
.frame video.pv {
  z-index: 1;
  object-fit: contain;
  background: #000;
}
.pctl {
  position: absolute; left: 10px; right: 10px; bottom: 12px;
  display: flex; justify-content: space-between;
  pointer-events: none;
  z-index: 4;
}
.pbtn {
  pointer-events: auto;
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(11,11,12,.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--paper); display: grid; place-items: center; cursor: pointer;
}
.pbtn:active { transform: scale(.92); }
.pbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: rgba(255,255,255,.15);
  pointer-events: none;
  z-index: 4;
}
.pbar b { display: block; height: 100%; width: 0; background: var(--ok); }
.pimg {
  position: absolute; inset: 0;
  display: block; text-decoration: none; color: var(--paper);
  background: #000 center/cover no-repeat;
  z-index: 2;
}
.pimg span {
  position: absolute; top: 10px; right: 10px;
  display: flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(11,11,12,.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font: 600 12px 'Space Grotesk';
}
.pif {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; background: #000;
  display: block;
  pointer-events: auto;
  z-index: 3;
}
.pnone {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: 8px;
  color: var(--paper); text-decoration: none;
  background: rgba(11,11,12,.45);
  font: 600 13px 'Space Grotesk';
  z-index: 2;
}
.desc { color: rgba(245,245,244,.88); overflow-wrap: anywhere; font-size: 14px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.stat {
  background: var(--base); border-radius: 16px;
  padding: 12px 14px; box-shadow: var(--in);
  border: 1px solid #232326; min-width: 0;
}
.stat small {
  display: block; font-size: 10.5px; letter-spacing: .08em;
  color: var(--mute2); text-transform: uppercase;
}
.stat b {
  font: 600 17px 'Space Grotesk'; display: block; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.acc { display: flex; align-items: center; gap: 8px; }
.acc img {
  width: 22px; height: 22px; border-radius: 50%;
  object-fit: cover; flex: none;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--s2); color: var(--mute);
  border-radius: 99px; padding: 5px 12px;
  font-size: 12px; font-weight: 500; text-decoration: none;
}
.chip.hi { background: var(--paper); color: var(--base); }

/* PRESET LIST */
.pre { display: flex; gap: 14px; margin-top: 12px; }
.pre:first-of-type { margin-top: 0; }
.th {
  width: 84px; height: 84px; border-radius: 16px;
  background: var(--s2) center/cover no-repeat; flex: none;
  display: grid; place-items: center;
  color: var(--mute); font: 600 13px 'JetBrains Mono';
  box-shadow: var(--d3s);
}
.pb { min-width: 0; flex: 1; }
.pb h3 { font-size: 15.5px; overflow-wrap: anywhere; }
.pb .m {
  font-size: 12px; color: var(--mute);
  word-break: break-all; margin: 6px 0 12px; line-height: 1.5;
}
.who { font-size: 12px; color: var(--mute2); margin-top: 2px; }
.act { display: flex; gap: 8px; flex-wrap: wrap; }
.btn {
  height: 40px; padding: 0 18px; border-radius: 99px; border: 0;
  font: 600 13px 'Space Grotesk'; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  text-decoration: none; box-shadow: var(--d3s);
  transition: transform .3s cubic-bezier(.16,1,.3,1),
              background-color .4s, color .4s, box-shadow .25s, opacity .3s;
}
.btn:active { transform: scale(.96); }
.btn.p { background: var(--paper); color: var(--base); }
.btn.o { background: var(--s2); color: var(--paper); }
.btn[data-s=ok] { background: var(--ok); color: var(--base); }
.btn[data-s=err] { background: var(--bad); color: var(--base); }

/* EMPTY STATE */
.empty {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; text-align: center; padding: 48px 24px;
}
.empty .ic { width: 56px; height: 56px; color: var(--mute); flex: none; }
.empty h3 { font: 600 15px 'Space Grotesk'; color: var(--paper); }
.empty p { color: var(--mute); max-width: 280px; font-size: 13px; margin: 0; }
.err { color: var(--bad); }

/* INFO GRID */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fi {
  background: var(--s); border-radius: 22px; padding: 18px;
  box-shadow: var(--d3s);
  border: 1px solid rgba(255,255,255,.06);
}
.fi .ic { width: 38px; height: 38px; border-radius: 12px; margin-bottom: 12px; }
.fi h3 { font: 600 14px 'Space Grotesk'; }
.fi p { color: var(--mute); font-size: 12.5px; margin-top: 4px; }
.foot {
  text-align: center; color: var(--mute2);
  font-size: 12px; padding: 34px 0 40px;
}

/* BOTTOM NAV */
.bn {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0));
  pointer-events: none;
}
.bn > div {
  max-width: 768px; margin: 0 auto;
  display: flex; background: rgba(22,22,24,.95);
  border-radius: 26px; padding: 8px;
  box-shadow: var(--d3s);
  border: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative; pointer-events: auto;
}
.bn a {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  padding: 10px 0; border-radius: 14px;
  color: var(--mute2); text-decoration: none;
  font-size: 11px; font-weight: 500;
  transition: .2s; position: relative; z-index: 1;
}
.bn a.on { background: none; color: var(--paper); }
.ind {
  position: absolute; top: 8px; bottom: 8px; left: 8px;
  width: calc((100% - 16px)/3);
  background: var(--s2); border-radius: 14px;
  box-shadow: var(--d3s);
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.bn a svg { transition: transform .45s cubic-bezier(.16,1,.3,1); }
.bn a.on svg { transform: translateY(-2px) scale(1.12); }

/* TOAST */
.ts {
  position: fixed; inset: 12px 0 auto; z-index: 50;
  display: flex; flex-direction: column; gap: 8px;
  align-items: center; padding: 0 16px; pointer-events: none;
}
.t {
  max-width: 380px; width: 100%;
  background: var(--s2); border-radius: 16px;
  padding: 12px 16px; box-shadow: var(--d3);
  border: 1px solid rgba(255,255,255,.08);
  display: flex; gap: 10px; align-items: center;
  animation: up .45s cubic-bezier(.16,1,.3,1);
  font-weight: 500;
}
.t i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.t.e i { background: var(--bad); }

[hidden] { display: none !important; }

/* RESPONSIVE */
@media (max-width: 640px) {
  .vid { grid-template-columns: 1fr; }
  .frame { max-width: 260px; margin: 0 auto; }
  .grid { grid-template-columns: 1fr; }
  .pre { flex-direction: column; }
  .th { width: 100%; height: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .rvL, .rvR, .rvU { opacity: 1; transform: none; transition: none; }
}

/* BUTTON BASE */
.go, .ib, .btn, .chip, .sq, .logo {
  transition: transform .3s cubic-bezier(.16,1,.3,1),
              background-color .4s, color .4s,
              box-shadow .25s, opacity .3s;
}
.go:active, .btn:active, .chip:active, .ib:active { transform: scale(.94); }
.logo:active .sq { transform: scale(.9) rotate(-10deg); }

/* MORPHING ICONS + LABELS */
.mi { position: relative; display: inline-block; width: 18px; height: 18px; flex: none; }
.go .mi { width: 20px; height: 20px; }
.mi > svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transform: scale(.3) rotate(-120deg);
  transition: opacity .25s, transform .55s cubic-bezier(.16,1,.3,1);
}
[data-s=idle] .mi > [data-st=idle],
[data-s=busy] .mi > [data-st=busy],
[data-s=ok]   .mi > [data-st=ok],
[data-s=err]  .mi > [data-st=err] { opacity: 1; transform: none; }

.lbs { display: inline-grid; justify-items: center; }
.lbs > span {
  grid-area: 1/1; opacity: 0;
  transform: translateY(10px); filter: blur(3px);
  transition: opacity .3s, transform .5s cubic-bezier(.16,1,.3,1), filter .3s;
  white-space: nowrap;
}
[data-s=idle] .lbs > [data-st=idle],
[data-s=busy] .lbs > [data-st=busy],
[data-s=ok]   .lbs > [data-st=ok],
[data-s=err]  .lbs > [data-st=err] { opacity: 1; transform: none; filter: none; }

.go { gap: 10px; }
.go[data-s=busy] { pointer-events: none; }
.go[data-s=ok], .btn[data-s=ok] { background: var(--ok); color: var(--base); }
.go[data-s=err] { background: var(--bad); color: var(--base); }
.ib[data-s=ok] { color: var(--ok); }
.ib[data-s=err] { color: var(--bad); }
[data-s=hid] .mi > [data-st=hid] { opacity: 1; transform: none; }

.mi > [data-st=busy] use {
  transform-origin: 12px 12px;
  animation: scan 1.1s ease-in-out infinite;
}
@keyframes scan {
  0%, 100% { transform: translate(-2px,-1px) rotate(-10deg); }
  50%      { transform: translate(2px,1px) rotate(10deg); }
}
@keyframes sh { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.field.sh { animation: sh .4s; }

.arr { transition: transform .3s cubic-bezier(.16,1,.3,1); }
.btn:hover .arr, .btn:active .arr { transform: translate(2px, -2px); }

/* YOUTUBE 16:9 */
.vid.yt { grid-template-columns: 1fr; }
.vid.yt .frame {
  aspect-ratio: 16/9;
  max-width: none;
  max-height: none;
  margin: 0;
}

/* REVEAL ANIMATIONS */
.rvL, .rvR {
  opacity: 0; will-change: transform, opacity;
  transition: opacity .8s cubic-bezier(.16,1,.3,1),
              transform 1s cubic-bezier(.16,1,.3,1);
}
.rvL { transform: translate3d(-60px, 0, 0); }
.rvR { transform: translate3d(60px, 0, 0); }
.rvU {
  opacity: 0; transform: translate3d(0, 40px, 0);
  will-change: transform, opacity;
  transition: opacity .8s cubic-bezier(.16,1,.3,1),
              transform 1s cubic-bezier(.16,1,.3,1);
}
.rv-show { opacity: 1; transform: translate3d(0, 0, 0); }

/* TOMBOL "Cari ulang" DAN "Kembali ke list" */
#refresh, #backToList {
  background: var(--s2);
  color: var(--paper);
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
#refresh:active, #backToList:active { transform: scale(.94); }

/* ==========================================================
   MODE TABS (URL / KEYWORD)
   ========================================================== */
.mode-tabs {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: var(--base);
  border-radius: 16px;
  box-shadow: var(--in);
  border: 1px solid #232326;
  margin-bottom: 24px;
  position: relative;
}
.mode-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border: 0;
  background: none;
  color: var(--mute);
  font: 600 13px 'Space Grotesk';
  cursor: pointer;
  border-radius: 12px;
  transition: transform .3s cubic-bezier(.16,1,.3,1),
              background-color .35s, color .35s, box-shadow .3s;
  position: relative;
  z-index: 1;
}
.mode-tab:active { transform: scale(.96); }
.mode-tab.on {
  background: var(--s2);
  color: var(--paper);
  box-shadow: var(--d3s);
}
.mode-tab svg {
  flex: none;
  opacity: .85;
  transition: opacity .3s;
}
.mode-tab.on svg { opacity: 1; }

/* Panel spacing */
#panel-keyword,
#panel-url { margin-top: 0; }

/* Heading "Url nya" / "Judul lagu" gak ada margin-top berlebih */
#panel-url > .row:first-child,
#panel-keyword > .row:first-child { margin-top: 0; }

/* ==========================================================
   KEYWORD LIST — hasil pencarian video
   ========================================================== */
.kw-list {
  display: grid;
  gap: 10px;
}
.kw-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--s);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  cursor: pointer;
  transition: transform .2s cubic-bezier(.16,1,.3,1),
              border-color .25s, background-color .25s;
}
.kw-item:active { transform: scale(.985); background: var(--s2); }
.kw-item:hover { border-color: var(--s3); }

.kw-thumb {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--s2) center/cover no-repeat;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--mute);
  font-size: 22px;
  box-shadow: var(--d3s);
  border: 1px solid var(--stroke);
}
.kw-info {
  flex: 1;
  min-width: 0;
}
.kw-handle {
  font-size: 12px;
  color: var(--mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.kw-title {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--paper);
  margin-top: 3px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.kw-open {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 0;
  background: var(--s2);
  color: var(--paper);
  display: grid;
  place-items: center;
  box-shadow: var(--d3s);
  cursor: pointer;
  transition: transform .2s cubic-bezier(.16,1,.3,1),
              background-color .3s, color .3s;
}
.kw-open:active { transform: scale(.92); }
.kw-open[data-s=ok] { background: var(--ok); color: var(--base); }
.kw-open[data-s=err] { background: var(--bad); color: var(--base); }

/* Responsive — mobile */
@media (max-width: 640px) {
  .kw-thumb { width: 56px; height: 56px; border-radius: 12px; }
  .kw-title { font-size: 13px; -webkit-line-clamp: 2; }
  .kw-open { width: 38px; height: 38px; }
  .mode-tab { padding: 10px 10px; font-size: 12.5px; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .kw-item, .kw-open, .mode-tab { transition: none; }
}