/* /somssii(솜씨 작품 모음)·/ktv(KTV 쇼츠) — site.css 토큰(라이트·다크)을 그대로 쓴다. 2026-10-28 */
.sm-hero { min-height: 0; background: linear-gradient(135deg, #17392f, #1f5c4a 55%, #2f7d5b); color: #fff; }
.sm-hero .hero-in { padding-top: 40px; padding-bottom: 48px; }
.kt-hero { background: linear-gradient(135deg, #10233b, #1b3f66 55%, #2b7bb9); }
.sm-hero .lead { max-width: 760px; margin: 10px 0 0; font-size: 16px; opacity: .92; }
.sm-hero .lead b { font-weight: 700; }
.sm .sec { margin-top: -18px; position: relative; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 대시보드 */
.sm-tiles { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.sm-tiles li { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sm-tiles b { font-size: 26px; font-weight: 800; line-height: 1.15; color: var(--ink); font-variant-numeric: tabular-nums; }
.sm-tiles li.big b { color: var(--brand); font-size: 32px; }
.sm-tiles li.sm b { font-size: 20px; padding: 4px 0 2px; white-space: nowrap; }
.sm-tiles span { font-size: 14px; color: var(--muted); font-weight: 600; }
.sm-tiles small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.sm-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px 28px; }
.sm-charts figure, .kt-weeks { margin: 0; min-width: 0; }
.sm-charts figcaption, .kt-weeks figcaption { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.sm-charts figcaption small, .kt-weeks figcaption small { color: var(--muted); font-weight: 500; }
.sm-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sm-bars li { display: grid; grid-template-columns: minmax(84px, 9em) 1fr 3.2em; align-items: center; gap: 8px; font-size: 13px; }
.sm-bars .l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.sm-bars .l a { text-decoration: none; }
.sm-bars .l a:hover { text-decoration: underline; }
.sm-bars .b { height: 12px; background: color-mix(in srgb, var(--line) 55%, transparent); border-radius: 4px; overflow: hidden; }
.sm-bars .b i { display: block; height: 100%; background: var(--brand); border-radius: 0 4px 4px 0; }
.sm-bars .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.sm-bars li:hover .b i { filter: brightness(1.12); }
.kt-weeks { margin-top: 20px; }
.kt-weeks ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-end; gap: 6px; height: 150px; }
.kt-weeks li { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; text-align: center; font-size: 12px; }
.kt-weeks li i { display: block; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 3px; }
.kt-weeks li .v { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; margin-bottom: 2px; }
.kt-weeks li .l { color: var(--muted); margin-top: 4px; border-top: 1px solid var(--line); padding-top: 3px; }

/* 거르기 */
.sm-filter { position: sticky; top: 61px; z-index: 900; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); padding: 10px 0 8px; margin: 6px 0 12px; border-bottom: 1px solid var(--line); }
.sm-filter .chips { margin-bottom: 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.sm-filter .chip { flex: none; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.chip small { color: var(--muted); font-weight: 600; }
.chip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chip.on small { color: inherit; opacity: .85; }
.sm-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sm-sel { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.sm-sel select, .sm-q input { font: inherit; font-size: 14px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); max-width: 210px; }
.sm-q { flex: 1 1 200px; }
.sm-q input { width: 100%; max-width: none; }
#sm-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) { .sm-filter { top: 0; position: static; } .sm-sel select { max-width: 150px; } }

/* 장르·카드 */
.sm-genre { margin: 26px 0 8px; scroll-margin-top: 150px; }
.sm-gh h2 { margin: 0; font-size: 24px; }
.sm-gh h2 small, .sm-subh small { color: var(--muted); font-weight: 600; font-size: 15px; }
.sm-gh p { margin: 4px 0 10px; color: var(--muted); }
.sm-subh { margin: 18px 0 10px; font-size: 17px; }
.sm-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.sm-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); min-width: 0; }
.sm-card .ph { position: relative; aspect-ratio: 16 / 10; background: var(--chip); overflow: hidden; }
.sm-card .ph.vert { aspect-ratio: 4 / 5; }
.sm-card .ph a, .sm-card .ph .sm-hit { display: block; width: 100%; height: 100%; border: 0; padding: 0; background: none; cursor: pointer; }
.sm-card .ph img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .2s ease; }
.sm-card:hover .ph img { transform: scale(1.03); }
.sm-card .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.sm-card .badge { position: absolute; left: 10px; top: 10px; display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: var(--brand); box-shadow: 0 1px 4px rgba(0,0,0,.2); max-width: calc(100% - 64px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-b-site { background: var(--t12); } .sm-b-web { background: var(--t28); } .sm-b-brand { background: var(--t14); }
.sm-b-ad { background: var(--t15); } .sm-b-shorts { background: var(--t38); } .sm-b-design { background: var(--t25); }
.kt-dec { background: #1b3f66; } .kt-kind { top: 36px !important; background: var(--t25); }
.sm-play { position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.62); color: #fff; font-size: 16px; cursor: pointer; }
.sm-play:hover, .sm-play:focus-visible { background: var(--accent); }
.kt-post { position: absolute; right: 8px; top: 8px; display: flex; gap: 4px; }
.kt-post i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: #fff; }
.kt-post .yt { background: #e62117; } .kt-post .clip { background: #03c75a; }
.sm-card .bd { padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.sm-card .cl { margin: 0; font-size: 12px; color: var(--brand); font-weight: 600; display: flex; gap: 6px; justify-content: space-between; }
.sm-card .cl .mn { color: var(--muted); font-weight: 500; text-decoration: none; white-space: nowrap; }
.sm-card .cl .mn:hover { text-decoration: underline; }
.sm-card h3 { margin: 0; font-size: 15px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sm-card .ds, .sm-card .ag { margin: 0; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sm-card .acts { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sm-card .acts:first-of-type { margin-top: auto; padding-top: 6px; }
.sm-card .acts a, .sm-pbtn { font: inherit; font-size: 12px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); text-decoration: none; cursor: pointer; }
.sm-card .acts a:hover, .sm-pbtn:hover { border-color: var(--brand); color: var(--brand); }
.kt-acts .sm-pbtn { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.kt-acts .sm-pbtn + .sm-pbtn { background: var(--bg); color: var(--ink); border-color: var(--line); }
.kt-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.kt-card .ph.vert { aspect-ratio: 9 / 14; }
.sm-hide { display: none !important; }
.sm-empty { text-align: center; color: var(--muted); padding: 40px 0; }
.sm-note { color: var(--muted); font-size: 13px; margin: 28px 0 40px; }

/* 영상 창 */
.sm-dlg { border: 0; padding: 0; border-radius: 16px; background: #0b0f0d; color: #fff; width: min(92vw, 960px); max-height: 92vh; }
.sm-dlg.vert { width: min(92vw, 440px); }
.sm-dlg::backdrop { background: rgba(0,0,0,.72); }
.sm-dlg-h { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.sm-dlg-h b { flex: 1; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-dlg-h button { font: inherit; font-size: 12px; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.sm-dlg-h button.on { background: #fff; color: #0b0f0d; }
.sm-dlg-h .sm-x { border: 0; font-size: 18px; padding: 2px 8px; }
.sm-dlg video { display: block; width: 100%; max-height: calc(92vh - 56px); background: #000; }
.chip small { font-size: 12px; }
@media (max-width: 640px) {
  .sm-dash { padding: 16px; }
  .sm-tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .sm-tiles b { font-size: 22px; } .sm-tiles li.big b { font-size: 26px; }
  .sm-bars li { font-size: 13px; min-height: 28px; }
  .sm-bars .l a { display: inline-block; padding: 5px 0; }
  .chip { padding: 8px 13px; }
  .sm-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kt-grid { grid-template-columns: 1fr 1fr; }
  .sm-card .bd { padding: 9px 10px 11px; }
  .sm-card h3 { font-size: 14px; }
  .sm-card .acts a, .sm-pbtn { padding: 7px 10px; }
  .kt-weeks ol { gap: 4px; }
}

/* 솜씨 분류·쪽 번호(2026-10-28 «솜씨도 카테고리화 + 페이징») */
.sm-hero .eyebrow a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.45); }
.sm-hero h1 small { font-size: .5em; font-weight: 700; opacity: .85; margin-left: 6px; }
.sm-gtabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin: 22px 0 6px; }
.sm-gtabs a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px 12px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border: 2px solid transparent; --gc: var(--brand); }
.sm-gtabs a svg { width: 30px; height: 30px; color: var(--gc); }
.sm-gtabs a b { font-size: 14px; font-weight: 700; white-space: nowrap; }
.sm-gtabs a small { font-size: 12px; color: var(--muted); font-weight: 600; }
.sm-gtabs a:hover { border-color: color-mix(in srgb, var(--gc) 45%, transparent); }
.sm-gtabs a.on { border-color: var(--gc); background: color-mix(in srgb, var(--gc) 10%, var(--surface)); }
.sm-gt-site { --gc: var(--t12); } .sm-gt-web { --gc: var(--t28); } .sm-gt-brand { --gc: var(--t14); }
.sm-gt-ad { --gc: var(--t15); } .sm-gt-shorts { --gc: var(--t38); } .sm-gt-design { --gc: var(--t25); }
.sm-gh { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sm-gh h2 { display: flex; align-items: center; gap: 10px; }
.sm-gi { width: 38px; height: 38px; border-radius: 11px; display: inline-grid; place-items: center; background: color-mix(in srgb, var(--gc) 14%, transparent); color: var(--gc); flex: none; }
.sm-gi svg { width: 24px; height: 24px; }
.sm-more { flex: none; font-weight: 700; color: var(--brand); text-decoration: none; padding: 8px 4px; }
.sm-more:hover { text-decoration: underline; }
.sm-gd { margin: 4px 0 6px; color: var(--muted); }
.sm-subs { margin-bottom: 8px; }
.sm-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 4px; }
.sm-go { font: inherit; font-size: 14px; font-weight: 700; padding: 8px 16px; border-radius: 10px; border: 0; background: var(--brand); color: var(--brand-ink); cursor: pointer; }
.sm-count { color: var(--muted); font-size: 14px; margin: 10px 0 14px; }
.sm-count b { color: var(--ink); }
.sm-count a { color: var(--muted); text-decoration: none; padding: 4px 6px; }
@media (max-width: 900px) { .sm-gtabs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .sm-gtabs { display: flex; overflow-x: auto; gap: 8px; margin: 18px -16px 6px; padding: 2px 16px 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .sm-gtabs::-webkit-scrollbar { display: none; }
  .sm-gtabs a { flex: none; min-width: 92px; scroll-snap-align: start; padding: 12px 8px 10px; }
  .sm-gtabs a svg { width: 26px; height: 26px; }
  .sm-gh h2 { font-size: 20px; }
  .sm-gi { width: 32px; height: 32px; } .sm-gi svg { width: 20px; height: 20px; }
  .sm-bar .sm-q { flex: 1 1 60%; }
}
