/*
Theme Name: 찜꽁
Description: 찜만 하지 말고, 꽁으로 주우세요. 스팀 할인 큐레이션 — 차콜 + 옐로우.
Version: 0.2.2
Requires PHP: 8.0
Text Domain: jjim
*/

/* ============================================================
   토큰 — 차콜 + 옐로우 2색 시스템
   ============================================================ */
:root {
  --y: #ffd60a;
  --y-deep: #e0b700;
  --y-soft: rgba(255, 214, 10, .12);

  /* 다크(아카이브) */
  --d-bg: #111112;
  --d-bg-2: #0b0b0c;
  --d-surface: #1a1a1d;
  --d-surface-2: #232327;
  --d-border: #2c2c31;
  --d-border-hi: #43433d;
  --d-text: #f2f2ee;
  --d-dim: #9b9b95;

  /* 라이트(읽기) */
  --l-bg: #ffffff;
  --l-soft: #f6f6f4;
  --l-border: #e6e6e1;
  --l-ink: #17171a;
  --l-dim: #6e6e73;

  /* 티어 색 — 영상 카드(mogrt)와 같은 값. 웹만 노랑 단색이면 브랜드가 따로 논다.
     노랑(--y)은 '액션·강조' 한 가지 역할로 두고, 아래 셋은 **가격대를 읽히게 하는 의미색**이다. */
  --t-coffee: #b98a5e;   /* 카드 원본 6F4E37은 다크 배경에서 안 읽혀 명도만 올림 */
  --t-gukbap: #ff8a72;   /* FF6F57 동일 계열 */
  --t-chicken: #ffd339;

  --r: 12px;
  --shell: 1360px;       /* 아카이브 최대 폭 — 없으면 와이드 모니터에서 끝까지 늘어난다 */

  --sans: "Pretendard Variable", "Pretendard", system-ui, -apple-system, "Segoe UI",
    "Noto Sans KR", "Noto Sans JP", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* 그림자는 순수 검정 대신 배경 색조를 머금게 — 다크에서 검정 그림자는 구멍처럼 보인다 */
  --sh-1: 0 2px 8px rgba(6, 6, 10, .5);
  --sh-2: 0 10px 30px rgba(6, 6, 10, .62), 0 0 0 1px rgba(255, 214, 10, .16);
  --sh-3: 0 14px 38px rgba(6, 6, 10, .7);
}

* { box-sizing: border-box; }

/* 🚨 `hidden` 속성이 CSS에 지는 걸 막는다 (2026-08-02 실사고).
   브라우저 기본 규칙은 `[hidden] { display: none }`인데 **UA 스타일이라 작성자 CSS에 진다** —
   `.jk-card { display: flex }` 하나 때문에 `el.hidden = true`가 통째로 무력화됐다.
   증상이 "JS가 안 도는 것"처럼 보여서 원인을 찾기 어렵다(값은 저장되고 gtag도 나갔는데
   화면만 그대로였다). 실제로 **동의 배너가 안 닫히고, 홈 카드 필터가 아무것도 못 걸렀다.**
   토글하는 요소마다 개별 규칙을 쓰면 또 빠뜨리므로 전역으로 한 번에 막는다. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* 숫자는 자리수가 흔들리면 가격표가 덜컹거린다 */
.jk-card .pr, .jk-card .was, .jk-row .pr, .jk-row .was,
.jk-ep .d, .jk-kicker, .jk-tierchips .n, .jk-nav .n { font-variant-numeric: tabular-nums; }

/* 제목 끝에 한 단어만 떨어지는 것 방지 */
h1, h2, h3, .jk-card .nm, .jk-ep .t { text-wrap: balance; }
p, .jk-card .dsc { text-wrap: pretty; }

/* 키보드 포커스 — 마우스 클릭엔 안 뜨고 탭 이동에만 뜬다 */
:focus-visible {
  outline: 2px solid var(--y);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 본문 바로가기 — 탭을 처음 눌렀을 때만 나타난다 */
.jk-skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--y); color: #17171a; font-weight: 800; font-size: 13px;
  padding: 10px 16px; border-radius: 0 0 10px 10px; text-decoration: none;
  transition: top .18s ease;
}
.jk-skip:focus { top: 0; }

/* ============================================================
   다크 배경 — 도트 그리드 + 흐르는 글로우
   ============================================================ */
.jk-dark {
  background: var(--d-bg);
  color: var(--d-text);
  /* 100vh는 iOS 사파리에서 주소창 접힘에 따라 레이아웃이 튄다 → dvh */
  min-height: 100dvh;
  position: relative;
  isolation: isolate;
  display: flex; flex-direction: column;   /* 푸터를 항상 바닥에 */
}
.jk-dark > .jk-shell,
.jk-dark > .jk-post,
.jk-dark > .jk-nf { flex: 1; }

/* 도트 매트릭스 — 아케이드 픽셀 느낌. 스크롤해도 고정. */
.jk-dark::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 214, 10, .07) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 40%, transparent 100%);
}

/* 천천히 흐르는 옐로우 글로우 2개 */
.jk-dark::after {
  content: "";
  position: fixed; inset: -30%; z-index: -3; pointer-events: none;
  background:
    radial-gradient(38% 30% at 18% 12%, rgba(255, 214, 10, .10), transparent 65%),
    radial-gradient(32% 26% at 84% 32%, rgba(255, 214, 10, .06), transparent 62%);
  animation: jk-drift 34s ease-in-out infinite alternate;
}

@keyframes jk-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2.5%, 3%, 0) scale(1.08); }
  100% { transform: translate3d(-2%, -2.5%, 0) scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  .jk-dark::after { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ============================================================
   공통 헤더
   ============================================================ */
.jk-top {
  position: sticky; top: 0; z-index: 50;
  /* 1fr · 검색 · 1fr — 좌우 칸이 같아야 검색이 화면 정중앙에 선다 */
  display: grid; grid-template-columns: 1fr minmax(0, 460px) 1fr;
  align-items: center; gap: 14px;
  padding: 12px 22px;
  background: rgba(11, 11, 12, .86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--d-border);
}
.jk-logo {
  font-weight: 900; font-size: 19px; letter-spacing: -.02em;
  color: #fff; text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px;
}
.jk-logo span { color: var(--y); }
/* 로고 옆 픽셀 블록 */
.jk-logo::before {
  content: ""; width: 9px; height: 9px; background: var(--y);
  box-shadow: 0 0 0 3px rgba(255, 214, 10, .16);
}
.jk-tag { font-size: 12px; color: var(--d-dim); white-space: nowrap; }
.jk-top-l { justify-self: start; min-width: 0; }
.jk-top-c { min-width: 0; }
.jk-top-r { justify-self: end; min-width: 0; }

.jk-search { position: relative; width: 100%; }

/* 회차 글엔 레일이 없으므로 헤더에 홈 링크를 둔다 (로고를 뺀 자리) */
.jk-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--d-dim); text-decoration: none; font-size: 13px; font-weight: 600;
  padding: 6px 12px 6px 9px; border-radius: 999px;
  border: 1px solid transparent;
  transition: background .14s ease, color .14s ease, border-color .14s ease;
}
.jk-back:hover { background: var(--d-surface); color: var(--d-text); border-color: var(--d-border); }
.jk-search kbd {
  position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 11px; color: #7d7d76;
  background: var(--d-bg-2); border: 1px solid var(--d-border);
  border-radius: 5px; padding: 1px 6px; pointer-events: none;
}
.jk-search input:focus + kbd { opacity: 0; }
.jk-search input {
  width: 100%; padding: 9px 40px 9px 36px;
  background: var(--d-surface-2); color: var(--d-text);
  border: 1px solid var(--d-border); border-radius: 999px;
  font-size: 14px; font-family: inherit; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.jk-search input:focus { border-color: var(--y); box-shadow: 0 0 0 3px var(--y-soft); }
.jk-search input::placeholder { color: #75756f; }
.jk-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); opacity: .5; }

.jk-langs { display: flex; gap: 4px; }
.jk-langs a {
  font-size: 12px; color: var(--d-dim); text-decoration: none;
  padding: 4px 9px; border-radius: 6px;
}
.jk-langs a:hover { background: var(--d-surface-2); color: var(--d-text); }
.jk-langs a.on { background: var(--y); color: #17171a; font-weight: 700; }

/* ============================================================
   아카이브
   ============================================================ */
/* 레일 56 · 콘텐츠 · 딜 패널 320 (OpenSea 3분할) */
.jk-shell {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) 320px; gap: 26px;
  padding: 26px 22px 80px;                 /* 아래를 조금 더 — 광학적으로 대칭보다 안정적 */
  max-width: var(--shell); margin: 0 auto; width: 100%;
}

/* ---- 좌측 아이콘 레일 ---- */
.jk-rail {
  position: sticky; top: 74px; align-self: start;
  display: flex; flex-direction: column; gap: 4px;
}
.jk-rail-i {
  position: relative;
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  color: var(--d-dim); text-decoration: none;
  border: 1px solid transparent;
  transition: background .14s ease, color .14s ease, border-color .14s ease;
}
.jk-rail-i:hover { background: var(--d-surface); color: var(--d-text); }
.jk-rail-i.on {
  background: var(--y-soft); color: var(--y);
  border-color: color-mix(in srgb, var(--y) 34%, transparent);
}
/* 라벨은 호버 툴팁 — 스크린리더엔 항상 읽힌다(숨기지 않고 밀어둔다) */
.jk-rail-lb {
  position: absolute; left: 56px; top: 50%; transform: translateY(-50%) translateX(-6px);
  display: flex; align-items: center; gap: 7px;
  white-space: nowrap; font-size: 12.5px; font-weight: 600;
  background: var(--d-surface-2); color: var(--d-text);
  border: 1px solid var(--d-border); border-radius: 8px;
  padding: 6px 11px; box-shadow: var(--sh-1);
  opacity: 0; pointer-events: none;
  transition: opacity .14s ease, transform .14s ease;
  z-index: 30;
}
.jk-rail-lb i { font-style: normal; font-family: var(--mono); font-size: 11px; opacity: .5; }
.jk-rail-i:hover .jk-rail-lb,
.jk-rail-i:focus-visible .jk-rail-lb { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ---- 우측 딜 랭킹 ---- */
.jk-rank {
  position: sticky; top: 74px; align-self: start;
  border: 1px solid var(--d-border-hi); border-radius: var(--r);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--y) 7%, var(--d-surface)) 0%,
    var(--d-surface) 120px);
  overflow: hidden; box-shadow: var(--sh-1);
}
.jk-rank-hd {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 14px; border-bottom: 1px solid var(--d-border);
}
.jk-rank-hd h2 {
  margin: 0; font-size: 14px; font-weight: 800; letter-spacing: -.02em;
  display: inline-flex; align-items: center; gap: 8px;
}
/* 살아있는 딜이라는 신호 — 조용히 깜빡인다 */
.jk-rank-hd .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, .16);
  animation: jk-pulse 2.4s ease-in-out infinite;
}
@keyframes jk-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .jk-rank-hd .dot { animation: none; } }
.jk-rank-hd .cnt {
  font-family: var(--mono); font-size: 12px; font-weight: 700; color: #17171a;
  background: var(--y); border-radius: 999px; padding: 2px 9px;
}

/* 1위 — 크게. 목록만 늘어놓으면 눈에 안 띈다 */
.jk-rank-top {
  display: block; position: relative; text-decoration: none; color: inherit;
  margin: 10px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--d-border);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.jk-rank-top:hover { transform: translateY(-2px); border-color: var(--y); box-shadow: var(--sh-2); }
.jk-rank-top img { width: 100%; aspect-ratio: 460/215; object-fit: cover; display: block; }
.jk-rank-top .badge {
  position: absolute; left: 9px; top: 9px;
  background: var(--y); color: #17171a; font-family: var(--mono);
  font-size: 15px; font-weight: 900; letter-spacing: -.02em;
  padding: 3px 9px; border-radius: 6px; box-shadow: var(--sh-1);
}
.jk-rank-top .meta { display: block; padding: 10px 12px 12px; background: var(--d-surface-2); }
.jk-rank-top .kick {
  display: block; font-size: 10px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--y); margin-bottom: 4px;
}
.jk-rank-top .nm { display: block; font-size: 14px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.jk-rank-top .pr { display: flex; align-items: baseline; gap: 7px; font-family: var(--mono); }
.jk-rank-top .pr s { font-size: 11.5px; color: #6d6d67; }
.jk-rank-top .pr b { font-size: 16px; font-weight: 800; color: var(--y); }
.jk-rank-list { list-style: none; margin: 0; padding: 5px; }
.jk-rank-list a {
  display: grid; grid-template-columns: 16px 44px minmax(0, 1fr) auto;
  align-items: center; gap: 9px;
  padding: 7px 8px; border-radius: 9px;
  text-decoration: none; color: var(--d-text);
  transition: background .13s ease;
}
.jk-rank-list a:hover { background: var(--d-surface-2); }
.jk-rank-list .rk {
  font-family: var(--mono); font-size: 11px; color: #63635d; text-align: right;
  font-variant-numeric: tabular-nums;
}
.jk-rank-list img { width: 44px; height: 21px; object-fit: cover; border-radius: 4px; background: var(--d-bg-2); }
.jk-rank-list .nm {
  font-size: 12.5px; font-weight: 500; line-height: 1.3; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 할인율 막대 — 숫자만 보는 것보다 순위가 한눈에 읽힌다 */
.jk-rank-list .bar {
  display: block; height: 3px; margin-top: 5px; border-radius: 2px;
  background: var(--d-border);
}
.jk-rank-list .bar i {
  display: block; height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--y) 55%, transparent), var(--y));
}
.jk-rank-list .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.jk-rank-list .num b { display: block; font-size: 12px; font-weight: 700; color: var(--d-text); }
.jk-rank-list .num i { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--y); }
/* 할인 강도에 따라 밝기만 낮춘다 (색 추가 없음) */
.jk-rank-list a[data-tier="b50"] .num i { color: color-mix(in srgb, var(--y) 72%, var(--d-dim)); }
.jk-rank-list a[data-tier="b0"]  .num i { color: var(--d-dim); }

.jk-side { position: sticky; top: 74px; align-self: start; }
.jk-side h3 {
  margin: 0 0 10px; font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--d-dim); font-weight: 700;
  display: flex; align-items: center; gap: 7px;
}
.jk-side h3::before { content: ""; width: 6px; height: 6px; background: var(--y); }

/* 좌측 카테고리 메뉴 */
.jk-nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 26px; }
.jk-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; border-radius: 9px;
  color: var(--d-dim); text-decoration: none; font-size: 14px;
  border-left: 3px solid transparent;
  transition: background .13s ease, color .13s ease, border-color .13s ease;
}
.jk-nav a:hover { background: var(--d-surface); color: var(--d-text); }
.jk-nav a.on { background: var(--d-surface); color: var(--d-text); font-weight: 800; border-left-color: var(--y); }
.jk-nav a .n { font-size: 11px; opacity: .5; font-family: var(--mono); }

/* 그리드 헤더 + 가격대 칩 */
.jk-gridhead {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-bottom: 18px;
}
.jk-gridhead h1 { margin: 0; }
.jk-gridhead .jk-lede { margin: 2px 0 0; }

.jk-tierchips { display: flex; gap: 6px; flex-wrap: wrap; }
.jk-tierchips button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border: 1px solid var(--d-border); border-radius: 999px;
  background: var(--d-surface); color: var(--d-dim);
  font: inherit; font-size: 13px; cursor: pointer;
  transition: background .13s ease, color .13s ease, border-color .13s ease;
}
.jk-tierchips button:hover { border-color: var(--d-border-hi); color: var(--d-text); }
.jk-tierchips button.on { background: var(--y); border-color: var(--y); color: #17171a; font-weight: 800; }
.jk-tierchips button .n { font-size: 11px; opacity: .5; font-family: var(--mono); }
.jk-tierchips button.on .n { opacity: .65; }

.jk-main h1 {
  margin: 2px 0 6px;
  font-size: clamp(28px, 3.2vw, 38px);   /* 아카이브 제목이 카드 이름과 비슷한 크기라 위계가 없었다 */
  font-weight: 800; letter-spacing: -.035em; line-height: 1.16;
}
.jk-lede { margin: 0 0 26px; color: var(--d-dim); font-size: 14.5px; max-width: 62ch; }

.jk-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
}

.jk-card {
  background: var(--d-surface); border: 1px solid var(--d-border);
  border-radius: var(--r); overflow: hidden; text-decoration: none;
  display: flex; flex-direction: column; position: relative;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.jk-card:hover {
  transform: translateY(-4px);
  border-color: var(--y);
  box-shadow: var(--sh-2);
}
/* 눌렀을 때 물리적 반응 — 없으면 클릭이 먹었는지 알 수 없다 */
.jk-card:active { transform: translateY(-1px) scale(.995); }
.jk-card .thumb { position: relative; aspect-ratio: 460/215; background: var(--d-bg-2); overflow: hidden; }
.jk-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.jk-card:hover .thumb img { transform: scale(1.045); }
.jk-card .off {
  position: absolute; left: 9px; top: 9px;
  background: var(--y); color: #17171a; font-weight: 900; font-size: 12px;
  padding: 3px 8px; border-radius: 5px; font-family: var(--mono);
  letter-spacing: -.01em;
}
.jk-card .body { padding: 12px 13px 14px; display: flex; flex-direction: column; flex: 1; }
.jk-card .nm { font-weight: 700; font-size: 14.5px; line-height: 1.35; margin-bottom: 6px; }
.jk-card .dsc {
  font-size: 12.5px; color: var(--d-dim); line-height: 1.5; margin-bottom: 11px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.jk-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.jk-card .pr { font-family: var(--mono); font-weight: 800; font-size: 15px; color: var(--y); }
.jk-card .was { font-family: var(--mono); font-size: 11.5px; color: #6d6d67; text-decoration: line-through; }

/* ---- 필터: 플랫폼 · 장르 · 정렬 ---- */
.jk-filters { display: flex; flex-direction: column; gap: 8px; margin: -8px 0 22px; }
.jk-fgroup { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.jk-fgroup button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--d-border); background: var(--d-surface);
  color: var(--d-dim); font: inherit; font-size: 12.5px; font-weight: 600;
  cursor: pointer;
  transition: background .13s ease, color .13s ease, border-color .13s ease;
}
.jk-fgroup button:hover { border-color: var(--d-border-hi); color: var(--d-text); }
.jk-fgroup button.on { background: var(--y); border-color: var(--y); color: #17171a; font-weight: 800; }
.jk-fgroup button .n { font-family: var(--mono); font-size: 10.5px; opacity: .5; }
.jk-fgroup button.on .n { opacity: .6; }
/* 장르는 보조 축이라 한 톤 낮춰 플랫폼과 위계를 만든다 */
.jk-fgenre button { font-size: 12px; padding: 5px 11px; }
.jk-fgenre button.on { background: var(--y-soft); border-color: var(--y); color: var(--y); }

.jk-sort button {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--d-border); background: var(--d-surface);
  color: var(--d-text); font: inherit; font-size: 12.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: border-color .13s ease, background .13s ease;
}
.jk-sort button:hover { border-color: var(--d-border-hi); background: var(--d-surface-2); }
.jk-sort button svg { color: var(--y); transition: transform .18s ease; }
.jk-sort button[data-dir="asc"] svg { transform: rotate(180deg); }

.jk-chip, .jk-tierchip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  background: var(--d-surface-2); color: var(--d-dim);
  border: 1px solid var(--d-border);
}

/* 할인 강도 — 색을 늘리지 않고 **한 색의 농도**로 표현한다.
   80%+ 는 꽉 찬 노랑, 50~79%는 테두리만, 50% 미만은 무채색. 눈으로 순서가 읽힌다. */
.jk-tierchips button[data-tier="b80"].on { background: var(--y); border-color: var(--y); color: #17171a; }
.jk-tierchips button[data-tier="b50"].on {
  background: var(--y-soft); border-color: var(--y); color: var(--y);
}
.jk-tierchips button[data-tier="b0"].on {
  background: var(--d-surface-2); border-color: var(--d-border-hi); color: var(--d-text);
}

.jk-empty { padding: 60px 0; text-align: center; color: var(--d-dim); }

/* ---- 할인 종료 (end_iso < 오늘 → 자동) ---- */
.jk-card.is-expired .thumb img { filter: grayscale(1) brightness(.55); }
.jk-card.is-expired .nm,
.jk-card.is-expired .dsc { color: #6f6f6a; }
.jk-card.is-expired .pr { color: #85857e; }
.jk-card.is-expired .jk-chip { opacity: .5; }
.jk-card.is-expired:hover {
  border-color: var(--d-border-hi);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .4);
}
.jk-card.is-expired:hover .thumb img { filter: grayscale(.7) brightness(.72); transform: none; }
.jk-card .ended {
  position: absolute; left: 9px; top: 9px;
  background: rgba(0, 0, 0, .78); color: #c9c9c2;
  border: 1px solid #4a4a44;
  font-weight: 700; font-size: 11.5px; letter-spacing: .02em;
  padding: 3px 8px; border-radius: 5px;
}

/* ---- 가로 스크롤 공통 ----
   윈도우 크롬 기본 스크롤바는 다크 배경 위에서 흰 막대 + 화살표 버튼으로 튄다.
   얇고 어둡게 바꾸고, 손대기 전엔 거의 안 보이게 둔다. */
.jk-xscroll {
  scrollbar-width: thin;                                  /* 파이어폭스 */
  scrollbar-color: var(--d-border-hi) transparent;
}
.jk-xscroll::-webkit-scrollbar { height: 6px; }
.jk-xscroll::-webkit-scrollbar-track { background: transparent; }
.jk-xscroll::-webkit-scrollbar-thumb {
  background: var(--d-border); border-radius: 99px;
  transition: background .15s ease;
}
.jk-xscroll:hover::-webkit-scrollbar-thumb { background: var(--d-border-hi); }
.jk-xscroll::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--y) 55%, var(--d-border-hi)); }
/* 크롬은 가로 스크롤바 양끝에 화살표 버튼을 그린다 — 이게 제일 촌스럽다 */
.jk-xscroll::-webkit-scrollbar-button { display: none; width: 0; height: 0; }

/* 회차 스트립 */
.jk-eps {
  display: flex; gap: 12px; overflow-x: auto;
  padding-bottom: 10px; margin-bottom: 34px;
  scroll-snap-type: x proximity;                          /* 카드 단위로 붙어 선다 */
  /* 오른쪽 끝을 흐리게 — "더 있다"는 신호. 스크롤 끝나면 자연스럽게 사라진다 */
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 46px), transparent 100%);
          mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 46px), transparent 100%);
}
.jk-eps > .jk-ep { scroll-snap-align: start; }
.jk-ep {
  flex: 0 0 268px; background: var(--d-surface); border: 1px solid var(--d-border);
  border-radius: var(--r); overflow: hidden; text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.jk-ep:hover { border-color: var(--y); transform: translateY(-3px); }
.jk-ep img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--d-bg-2); }
.jk-ep .t { padding: 11px 13px 13px; font-size: 13.5px; font-weight: 700; line-height: 1.4; }
.jk-ep .d { padding: 0 13px 12px; font-size: 11.5px; color: var(--d-dim); font-family: var(--mono); }

/* ============================================================
   회차 글 (다크 리딩) — 아카이브와 같은 배경 위에서 읽는다
   ============================================================ */
.jk-post { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; max-width: 1180px; margin: 0 auto; padding: 34px 24px 80px; }

.jk-hd { margin-bottom: 26px; }
.jk-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--d-surface-2); color: var(--y);
  border: 1px solid var(--d-border);
  font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
  margin-bottom: 13px; font-family: var(--mono);
}
.jk-hd h1 { margin: 0 0 12px; font-size: clamp(25px, 3.6vw, 34px); font-weight: 900; letter-spacing: -.028em; line-height: 1.24; color: var(--d-text); }
.jk-hd h1::after {
  content: ""; display: block; width: 46px; height: 5px;
  background: var(--y); margin-top: 14px; border-radius: 2px;
}
.jk-hd p { margin: 0; color: var(--d-dim); font-size: 15.5px; }

/* 게임 행 */
.jk-row { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 17px; padding: 22px 0; border-top: 1px solid var(--d-border); scroll-margin-top: 78px; }
.jk-row:first-of-type { border-top: 0; }
.jk-row > .ph { border-radius: 9px; overflow: hidden; border: 1px solid var(--d-border); aspect-ratio: 460/215; background: var(--d-bg-2); }
.jk-row .rt { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px; margin-bottom: 7px; }
/* h2 태그라 브라우저 기본 마진이 붙는다 — 가격과 베이스라인이 어긋나므로 0으로 */
.jk-row .rt .nm { margin: 0; font-size: 18.5px; font-weight: 800; letter-spacing: -.015em; color: var(--d-text); }
/* 다크에선 형광펜 대신 옐로우 글자 (마커는 어두운 배경에서 지저분해진다) */
.jk-row .rt .pr { font-family: var(--mono); font-size: 18px; font-weight: 900; color: var(--y); }
.jk-row .rt .was { font-family: var(--mono); font-size: 13px; color: #6d6d67; text-decoration: line-through; }
.jk-row .rt .off { font-family: var(--mono); font-size: 12px; font-weight: 900; color: #17171a; background: var(--y); padding: 2px 7px; border-radius: 5px; }
/* 본문은 카드 설명보다 한 톤 밝게 — 길게 읽는 텍스트라 대비를 올린다 */
.jk-row .dsc { margin: 0 0 9px; font-size: 15px; color: #c2c2bb; line-height: 1.7; }
.jk-row .vd {
  margin: 0 0 11px; padding: 9px 13px; background: var(--d-surface);
  border-left: 3px solid var(--y); border-radius: 0 8px 8px 0;
  font-size: 14.5px; color: var(--d-text);
}
.jk-row .meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; font-size: 12.5px; color: var(--d-dim); }
.jk-tierchip {
  display: inline-flex; align-items: center; font-size: 12px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px;
  background: var(--d-surface-2); border: 1px solid var(--d-border); color: var(--d-dim);
}

/* 끝난 딜은 낮춰서 표시 — 숨기지는 않는다(기록이므로) */
.jk-row.is-expired > .ph img { filter: grayscale(1) brightness(.5); }
.jk-row.is-expired .rt .nm { color: #75756f; }
.jk-row.is-expired .rt .pr { color: #75756f; text-decoration: line-through; }
.jk-row.is-expired .dsc { color: #7a7a74; }
.jk-row .ended {
  font-family: var(--mono); font-size: 11.5px; font-weight: 700;
  color: #b9b9b2; background: rgba(0, 0, 0, .5);
  border: 1px solid #4a4a44; padding: 2px 8px; border-radius: 5px;
}

/* 이 장면 보기 */
.jk-seek {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--d-surface-2); color: var(--d-text);
  border: 1px solid var(--d-border); border-radius: 999px;
  padding: 7px 15px; font: inherit; font-size: 13.5px; font-weight: 700;
  cursor: pointer; transition: background .14s ease, color .14s ease, border-color .14s ease;
}
.jk-seek svg { color: var(--y); transition: color .14s ease; }
.jk-seek:hover { background: var(--y); border-color: var(--y); color: #17171a; }
.jk-seek:hover svg { color: #17171a; }
.jk-seek .t { font-family: var(--mono); font-size: 12px; opacity: .7; }
.jk-seek[data-playing="1"] { background: var(--y); border-color: var(--y); color: #17171a; }
.jk-seek[data-playing="1"] svg { color: #17171a; }

/* 사이드: 플레이어 + 광고 */
.jk-aside { position: relative; }
.jk-sticky { position: sticky; top: 78px; }
.jk-player { border-radius: var(--r); overflow: hidden; background: #000; aspect-ratio: 16/9; box-shadow: 0 12px 34px rgba(0, 0, 0, .55); }
.jk-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.jk-nowplay { margin: 10px 2px 0; font-size: 13px; color: var(--d-dim); min-height: 20px; }
.jk-nowplay b { color: var(--y); }

/* 광고 슬롯
   - 코드가 없으면 애초에 렌더되지 않는다(jjim_ad) → 방문자에겐 빈 상자가 안 보인다
   - min-height를 미리 잡아 광고 로드 전후로 본문이 밀리지 않게 한다(CLS 방어)
   - 본문과 광고의 경계가 모호하면 애드센스 정책 위반 → 위아래 여백을 넉넉히 */
.jk-ad { margin: 30px 0; min-height: 280px; }
.jk-ad[data-ad="sidebar"] { min-height: 250px; margin: 20px 0 0; }

/* 관리자 전용 자리 표시 */
.jk-ad.is-empty {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: repeating-linear-gradient(45deg, #16161a 0 10px, #1b1b20 10px 20px);
  border: 1px dashed var(--d-border); border-radius: var(--r);
  color: #5c5c56; font-size: 12px; letter-spacing: .1em; font-family: var(--mono);
}
.jk-ad.is-empty small { letter-spacing: 0; opacity: .7; }

.jk-note { margin: 30px 0 0; padding-top: 18px; border-top: 1px solid var(--d-border); font-size: 12.5px; color: #7a7a74; line-height: 1.6; }

/* ============================================================
   푸터 — 유튜브에서 온 사람이 글 하나 읽고 갈 데가 없으면 안 된다
   ============================================================ */
.jk-foot {
  margin-top: auto;
  border-top: 1px solid var(--d-border);
  background: rgba(8, 8, 10, .6);
  backdrop-filter: blur(6px);
}
.jk-foot-in {
  max-width: var(--shell); margin: 0 auto;
  padding: 46px 22px 54px;
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 34px;
}
.jk-foot-brand .jk-logo { font-size: 18px; }
.jk-foot-brand p { margin: 11px 0 16px; color: var(--d-dim); font-size: 13.5px; max-width: 34ch; }

.jk-yt {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--d-border); background: var(--d-surface);
  color: var(--d-text); text-decoration: none; font-size: 13px; font-weight: 600;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.jk-yt svg { color: #ff3d3d; }
.jk-yt:hover { background: var(--d-surface-2); border-color: var(--d-border-hi); transform: translateY(-1px); }
.jk-yt:active { transform: translateY(0); }

.jk-foot-nav { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.jk-foot-nav h4 {
  margin: 0 0 3px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--d-dim); font-weight: 700;
}
.jk-foot-nav a {
  color: var(--d-dim); text-decoration: none; font-size: 13.5px;
  transition: color .14s ease;
}
.jk-foot-nav a:hover { color: var(--y); }

.jk-foot-meta .jk-langs { margin-bottom: 14px; }
.jk-foot-legal { margin: 0 0 7px; font-size: 12px; color: #77776f; line-height: 1.6; }
.jk-foot-copy { margin: 14px 0 0; font-size: 12px; color: #62625c; }
.jk-foot-copy a { color: var(--d-dim); }
.jk-foot-copy a:hover { color: var(--y); }

/* ============================================================
   게임 개별 페이지
   ============================================================ */
.jk-game { max-width: 820px; margin: 0 auto; padding: 34px 24px 80px; }

/* 히어로 — 포스터를 배경으로 한 번 더 깔아 빈 공간을 채운다 */
.jk-g-hd {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 340px minmax(0, 1fr);
  gap: 28px; align-items: center;
  padding: 26px 28px; margin-bottom: 30px;
  border: 1px solid var(--d-border); border-radius: 16px;
  overflow: hidden;
}
.jk-g-hd::before {
  content: ""; position: absolute; inset: -20%; z-index: -2;
  background-image: var(--jk-bg); background-size: cover; background-position: center;
  filter: blur(38px) saturate(1.25); opacity: .5;
}
/* 배경 위에 어둠을 덮어 글자 대비를 확보 — 없으면 밝은 포스터에서 제목이 안 읽힌다 */
.jk-g-hd::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg,
    rgba(12, 12, 15, .93) 0%, rgba(12, 12, 15, .86) 46%, rgba(12, 12, 15, .74) 100%);
}
.jk-g-poster img {
  width: 100%; aspect-ratio: 460/215; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--d-border-hi);
  box-shadow: var(--sh-3);
}
/* 태그 왼쪽 · 구매 버튼 오른쪽 (히어로 우측 상단) */
.jk-g-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 11px; }
.jk-g-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.jk-chip.ghost { background: transparent; }
.jk-g-hd h1 {
  margin: 0 0 10px; font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 800; letter-spacing: -.035em; line-height: 1.2;
}
.jk-g-lede { margin: 0 0 16px; color: var(--d-dim); font-size: 15px; }

/* 가격 줄 — 최종가가 주인공이다.
   baseline 정렬은 글자 크기가 크게 다르면 오히려 어긋나 보인다 → center 정렬 후 광학 보정. */
.jk-g-price {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 12px; margin-bottom: 4px; font-family: var(--mono);
}
.jk-g-price .off {
  background: var(--y); color: #17171a; font-weight: 900; font-size: 15px;
  padding: 5px 10px; border-radius: 7px; line-height: 1;
  box-shadow: 0 0 0 1px rgba(255, 214, 10, .28), 0 4px 14px rgba(255, 214, 10, .14);
}
.jk-g-price s { color: #77776f; font-size: 15px; text-decoration-thickness: 1px; }
.jk-g-price b {
  font-size: clamp(34px, 4.4vw, 46px); font-weight: 900; color: var(--y);
  letter-spacing: -.045em; line-height: .95;
  /* 큰 숫자는 좌측 사이드베어링이 커 보인다 — 살짝 당겨 앞 요소와 간격을 맞춘다 */
  margin-left: -2px;
  text-shadow: 0 0 34px rgba(255, 214, 10, .22);
}
.jk-g-price.is-expired b { color: #85857e; text-shadow: none; }
.jk-g-price .ended {
  font-size: 11.5px; font-weight: 700; color: #b9b9b2;
  background: rgba(0, 0, 0, .5); border: 1px solid #4a4a44;
  padding: 3px 9px; border-radius: 5px;
}
.jk-g-buy { font-size: 13.5px; padding: 9px 18px; flex: 0 0 auto; white-space: nowrap; }

/* 섹션 — 제목 옆으로 선을 끌어 단락을 확실히 끊는다 */
.jk-g-sec { margin: 40px 0; }
.jk-g-sec h2 {
  margin: 0 0 16px; font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--d-dim);
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
}
.jk-g-sec h2::before { content: ""; width: 6px; height: 6px; background: var(--y); flex: 0 0 auto; }
.jk-g-sec h2::after {
  content: ""; flex: 1 1 auto; height: 1px;
  background: linear-gradient(90deg, var(--d-border), transparent);
}

.jk-g-video { border-radius: var(--r); overflow: hidden; background: #000; aspect-ratio: 16/9; box-shadow: var(--sh-3); }
.jk-g-video iframe { width: 100%; height: 100%; border: 0; display: block; }

.jk-g-verdict {
  margin: 0 0 8px; padding: 14px 18px;
  background: var(--d-surface); border-left: 3px solid var(--y);
  border-radius: 0 10px 10px 0; font-size: 16px; font-weight: 600; color: var(--d-text);
}

/* 본문 — 길게 읽는 곳이라 폭·행간을 따로 잡는다 */
.jk-g-body p { margin: 0 0 16px; font-size: 16px; line-height: 1.85; color: #d2d2cb; max-width: 68ch; }
.jk-g-body p:last-child { margin-bottom: 0; }

.jk-g-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.jk-g-shots a { display: block; border-radius: 9px; overflow: hidden; border: 1px solid var(--d-border); transition: border-color .15s ease, transform .15s ease; }
.jk-g-shots a:hover { border-color: var(--y); transform: translateY(-2px); }
.jk-g-shots img {
  width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; display: block;
}

/* 스펙 스트립 — 라벨 위, 값 아래. 가로로 나열해 폭을 채우고 높이를 줄인다 */
.jk-g-spec {
  margin: 0 0 34px; display: grid; gap: 1px;
  /* auto-fit — 신작은 가격·마감이 없어 2칸만 나온다. 4열로 고정하면 나머지가 빈 칸으로 남아 깨져 보인다 */
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  background: var(--d-border); border: 1px solid var(--d-border);
  border-radius: 12px; overflow: hidden;
}
.jk-g-spec > div {
  position: relative; background: var(--d-surface);
  padding: 15px 17px 16px; min-width: 0;
  transition: background .15s ease;
}
.jk-g-spec > div:hover { background: var(--d-surface-2); }
/* 각 칸 위에 얇은 강조선 — 평평한 표에 리듬을 준다 */
.jk-g-spec > div::before {
  content: ""; position: absolute; left: 17px; right: 17px; top: 0;
  height: 2px; background: var(--d-border-hi); border-radius: 0 0 2px 2px;
}
.jk-g-spec dt {
  color: #8a8a83; font-size: 10px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 7px;
}
.jk-g-spec dd {
  margin: 0; font-size: 15px; font-weight: 700; color: var(--d-text);
  letter-spacing: -.01em; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis;
}
/* 마감·가격은 숫자라 고정폭이 읽기 좋다 */
.jk-g-spec .is-num dd { font-family: var(--mono); font-size: 13.5px; font-weight: 800; }
/* 가격 칸만 노랑으로 — 이 표에서 제일 먼저 봐야 할 값 */
.jk-g-spec .is-price::before { background: var(--y); }
.jk-g-spec .is-price dd { color: var(--y); }
.jk-g-spec .is-price dd s { color: #6d6d67; font-weight: 500; margin-right: 5px; }
/* 마감 임박·종료는 붉게 */
.jk-g-spec .is-end::before { background: #ff8a72; }
.jk-g-spec .is-end dd { color: #ff8a72; }

/* 기종 배지 — 나온 기종은 다 적고, 이번 할인이 걸린 것만 살린다 */
.jk-plats { display: flex; flex-wrap: wrap; gap: 4px; }
.jk-plats span {
  font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: -.01em;
  padding: 3px 7px; border-radius: 5px;
  color: #6f6f68; background: var(--d-bg-2); border: 1px solid var(--d-border);
}
.jk-plats span.on {
  color: #17171a; background: var(--y); border-color: var(--y);
  box-shadow: 0 0 0 1px rgba(255, 214, 10, .3);
}
@media (max-width: 720px) { .jk-g-spec { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); } }

.jk-g-back {
  display: flex; flex-direction: column; gap: 3px;
  margin: 34px 0 0; padding: 15px 18px;
  background: var(--d-surface); border: 1px solid var(--d-border);
  border-radius: var(--r); text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.jk-g-back:hover { border-color: var(--y); transform: translateY(-2px); }
.jk-g-back span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--d-dim); font-weight: 700; }
.jk-g-back b { font-size: 14.5px; font-weight: 700; color: var(--d-text); }

@media (max-width: 720px) {
  .jk-g-hd { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 18px; }
  .jk-game { padding: 22px 16px 60px; }
  .jk-g-shots { grid-template-columns: minmax(0, 1fr); }
  /* 좁은 화면에선 버튼이 태그 옆에 끼면 둘 다 눌린다 → 아래로 내려 폭을 다 준다 */
  .jk-g-top { flex-direction: column; align-items: stretch; }
  .jk-g-buy { text-align: center; justify-content: center; }
}

/* ============================================================
   쿠키 동의 바 — 광고가 아니라 통계용이므로 크게 만들지 않는다
   ============================================================ */
.jk-consent {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  z-index: 90; width: min(680px, calc(100vw - 28px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 13px 16px;
  background: rgba(20, 20, 24, .96); backdrop-filter: blur(10px);
  border: 1px solid var(--d-border-hi); border-radius: 14px;
  box-shadow: var(--sh-3);
}
.jk-consent p { margin: 0; font-size: 13px; color: var(--d-text); flex: 1 1 320px; }
.jk-consent > div { display: flex; gap: 8px; }
.jk-consent .jk-btn { padding: 8px 18px; font-size: 13px; }
.jk-consent .ghost {
  padding: 8px 16px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600;
  background: transparent; color: var(--d-dim);
  border: 1px solid var(--d-border); cursor: pointer;
  transition: color .14s ease, border-color .14s ease;
}
.jk-consent .ghost:hover { color: var(--d-text); border-color: var(--d-border-hi); }
@media (max-width: 520px) {
  .jk-consent { flex-direction: column; align-items: stretch; }
  .jk-consent > div { justify-content: flex-end; }
}

/* ============================================================
   404
   ============================================================ */
.jk-nf { max-width: 720px; margin: 0 auto; padding: 90px 22px 80px; text-align: center; }
.jk-nf-code {
  margin: 0; font-family: var(--mono); font-size: 13px; font-weight: 700;
  letter-spacing: .3em; color: var(--y); opacity: .8;
}
.jk-nf h1 { margin: 12px 0 10px; font-size: clamp(28px, 5vw, 42px); font-weight: 800; letter-spacing: -.03em; }
.jk-nf-sub { margin: 0 auto 26px; color: var(--d-dim); font-size: 15px; max-width: 46ch; }
/* 회차 스트립은 원래 가로 스크롤이지만, 404에선 3장이 컨테이너를 넘쳐 잘렸다
   → 여기서만 남는 폭을 나눠 갖게 한다(스크롤바 없음). */
/* 404에선 스크롤하지 않으므로 페이드도 끈다 (안 끄면 마지막 카드가 괜히 흐려진다) */
.jk-nf-eps {
  margin-top: 46px; overflow: visible;
  -webkit-mask-image: none; mask-image: none;
}
.jk-nf-eps .jk-ep { flex: 1 1 0; min-width: 0; }
.jk-nf-eps .jk-ep .t {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 620px) {
  .jk-nf-eps { flex-direction: column; }
  .jk-nf-eps .jk-ep { flex: 0 0 auto; }
}

.jk-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 22px; border-radius: 999px;
  background: var(--y); color: #17171a; font-weight: 800; font-size: 14px;
  text-decoration: none; border: 0;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.jk-btn:hover { background: var(--y-deep); transform: translateY(-2px); box-shadow: var(--sh-1); }
.jk-btn:active { transform: translateY(0); }

/* ============================================================
   반응형
   ============================================================ */
@media (max-width: 900px) {
  .jk-foot-in { grid-template-columns: 1fr 1fr; gap: 30px; }
  .jk-foot-meta { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .jk-foot-in { grid-template-columns: 1fr; padding: 36px 16px 44px; }
}
@media (max-width: 1080px) {
  .jk-post { grid-template-columns: 1fr; gap: 26px; }
  .jk-aside { order: -1; }
  .jk-sticky { position: sticky; top: 60px; z-index: 40; background: var(--d-bg); padding-bottom: 8px; }
  /* 모바일에선 플레이어가 상단 고정이라 사이드 광고를 띄우면 겹친다 → 숨김 */
  .jk-ad[data-ad="sidebar"] { display: none; }
}
/* 딜 패널이 좁아지면 이름이 다 잘려 쓸모가 없다 → 본문 아래로 내린다 */
@media (max-width: 1200px) {
  .jk-shell { grid-template-columns: 56px minmax(0, 1fr); }
  .jk-rank { grid-column: 2; position: static; margin-top: 8px; }
}
@media (max-width: 860px) {
  /* ⚠ `1fr`은 최소폭이 auto라 내용이 넓으면 트랙이 화면을 넘는다(가로 스크롤 발생)
     → minmax(0, 1fr) 이어야 카드 그리드가 화면 안에서 접힌다 */
  .jk-shell { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 18px; }
  .jk-rank { grid-column: 1; }
  /* 레일은 가로 스크롤 바 형태로 눕힌다 */
  .jk-rail {
    position: static; flex-direction: row; gap: 6px;
    overflow-x: auto; padding-bottom: 4px;
  }
  .jk-rail-i { flex: 0 0 auto; width: 42px; height: 42px; }
  .jk-rail-lb { display: none; }
  .jk-side { position: static; }
  .jk-filters { flex-direction: row; flex-wrap: wrap; margin-bottom: 8px; }
  .jk-filters button { padding: 7px 13px; }
  .jk-tag { display: none; }
}
@media (max-width: 700px) {
  .jk-row { grid-template-columns: minmax(0, 1fr); }
  .jk-search { flex: 1 1 auto; min-width: 0; }
  .jk-top { gap: 10px; padding: 10px 14px; }
  .jk-post { grid-template-columns: minmax(0, 1fr); padding: 22px 16px 60px; }
  /* 헤더에 4개 언어를 다 넣으면 줄바꿈으로 무너진다 → 푸터의 스위처로 넘긴다 */
  .jk-top .jk-langs { display: none; }
  .jk-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .jk-card .nm { font-size: 13.5px; }
  .jk-card .dsc { -webkit-line-clamp: 3; }
}
