/* 홀가분 웹 — 클린 화이트 디자인 시스템. 크림 탈피: 흰 바탕 + 차콜 + 로즈 포인트 */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --ink: #191f28;
  --ink-soft: #333d4b;
  --sub: #4e5968;
  --faint: #8b95a1;
  --line: #f2f4f6;
  --line-strong: #e5e8eb;
  --rose: #e8506e;
  --rose-soft: #fdf0f3;
  --teal: #00a786;
  --teal-soft: #e6f7f3;
  --gold: #b08948;
  --gold-soft: #faf5ec;
  --radius: 16px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; max-width: 100%; }  /* 페이지 전체 가로스크롤 차단 */
body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', 'Apple SD Gothic Neo', sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
/* 표는 컨테이너 안에서만 가로스크롤 (페이지 안 깨짐) */
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; }
.tscroll table { min-width: 680px; }
/* 세그먼트 표: 헤더·숫자 줄바꿈 방지(시즌/시간대 글자깨짐 방지), 셀 위 정렬(시간대 쌓임 대응) */
.tscroll .table th { white-space: nowrap; }
.tscroll .table td { vertical-align: top; }
.tscroll .table td.num { white-space: nowrap; line-height: 1.5; }
.m-hint { display: none; }
@media (max-width: 720px) {
  .tscroll table { font-size: 12.5px; }
  .tscroll .table th, .tscroll .table td { padding: 9px 8px; white-space: nowrap; }
  .m-hint { display: inline; color: var(--rose); font-weight: 600; }
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ── 헤더 ── */
.gnb { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.gnb-in { display: flex; align-items: center; height: 60px; gap: 28px; }
.logo { font-size: 21px; font-weight: 800; letter-spacing: -0.5px; }
.logo em { font-style: normal; color: var(--rose); }
.gnb-menu { display: flex; gap: 22px; font-size: 15px; font-weight: 600; color: var(--sub); }
.gnb-menu a:hover { color: var(--ink); }
.gnb-cta { margin-left: auto; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 700; padding: 9px 18px; border-radius: 10px; }
.gnb-cta:hover { background: #333d4b; }

/* ── 버튼/칩 ── */
.btn { display: inline-block; padding: 14px 28px; border-radius: 12px; font-size: 16px; font-weight: 700; transition: .15s; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #333d4b; transform: translateY(-1px); }
.btn-rose { background: var(--rose); color: #fff; }
.btn-rose:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--ink-soft); background: #fff; }
.chip { display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-size: 14px; font-weight: 600; color: var(--sub); white-space: nowrap; transition: .12s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip-row.sub .chip.on { background: var(--rose); border-color: var(--rose); }

/* ── 배지 ── */
.badge { display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; letter-spacing: .2px; }
.badge-best { background: var(--rose-soft); color: var(--rose); }
.badge-verified { background: var(--teal-soft); color: var(--teal); }
.badge-quote { background: var(--gold-soft); color: var(--gold); }

/* ── 카드/리스트 ── */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.section-title { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; margin-bottom: 6px; }
.section-sub { font-size: 14px; color: var(--faint); margin-bottom: 20px; }

/* 랭킹/검색 행 */
.vrow { display: flex; align-items: center; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); transition: background .12s; }
.vrow:hover { background: var(--bg-soft); }
.vrow .rank { width: 30px; text-align: center; font-size: 19px; font-weight: 800; color: var(--ink); flex: none; }
.vrow .thumb { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; background: var(--bg-soft); flex: none; }
.vrow .thumb.ph { display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--faint); font-size: 17px; }
.vrow .info { flex: 1; min-width: 0; }
.vrow .meta { font-size: 12.5px; color: var(--faint); display: flex; align-items: center; gap: 7px; }
.vrow .name { font-size: 16.5px; font-weight: 700; margin: 3px 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vrow .price { font-size: 13.5px; font-weight: 600; }
.vrow .price b { color: var(--rose); font-weight: 800; }
.vrow .price .hall { color: var(--ink-soft); }
.vrow .none { font-size: 13px; color: var(--faint); }

/* 표 */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12.5px; color: var(--faint); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line-strong); background: var(--bg-soft); }
.table th:first-child { border-radius: 10px 0 0 10px; }
.table th:last-child { border-radius: 0 10px 10px 0; }
.table td { padding: 13px 12px; border-bottom: 1px solid var(--line); }
.table td.num { font-weight: 700; }
.table tr:hover td { background: var(--bg-soft); }

/* 푸터 */
footer { border-top: 1px solid var(--line); margin-top: 80px; padding: 36px 0 60px; font-size: 13px; color: var(--faint); }
footer .f-links { display: flex; gap: 18px; margin-bottom: 14px; font-weight: 600; color: var(--sub); }

/* 스켈레톤/공통 */
.center { text-align: center; padding: 60px 0; color: var(--faint); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line-strong); border-top-color: var(--rose); border-radius: 50%; margin: 40px auto; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
  .gnb-menu { display: none; }
  .vrow .thumb { width: 64px; height: 64px; }
}
