:root {
  --bg: #0E1013; --panel: #15181D; --panel-2: #1C2027; --line: #262B34; --line-2: #2C313A;
  --text: #ECEEF1; --text-2: #B4BAC4; --text-3: #8C929E; --accent: #D4F25C; --accent-ink: #0E1013;
  --sans: 'Gothic A1', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); }
a { color: var(--accent); }
a:hover { color: #E6FF8A; }
button { font: inherit; cursor: pointer; }
.mono { font-family: var(--mono); }
.dim { color: var(--text-3); font-size: 13px; }
.accent { color: var(--accent); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 48px 16px 96px; display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 720px) { .wrap { padding: 56px 24px 104px; gap: 36px; } }

.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid #23272F; }
.intro { display: flex; flex-direction: column; gap: 14px; flex: 999 1 480px; }
h1 { margin: 0; font-size: clamp(38px, 6vw, 56px); line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; }
.lede { margin: 0; font-size: 17px; line-height: 1.7; color: var(--text-2); max-width: 580px; }
.stats { display: flex; gap: 24px; font-size: 14px; color: var(--text-3); }
.stats b { color: var(--text); font-weight: 500; }

.controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); color: #C4C9D2; font-size: 14px; }
.pill[aria-pressed="true"] { border-color: var(--accent); background: #1F2416; color: var(--accent); font-weight: 700; }
.seg-row { display: flex; flex-wrap: wrap; gap: 10px; }
.seg { display: flex; padding: 4px; gap: 4px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); }
.seg button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: #9AA0AC; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.seg button[aria-pressed="true"] { background: #2A303A; color: var(--text); font-weight: 700; }
.seg svg { width: 16px; height: 16px; }

.note { color: var(--text-3); font-size: 15px; }
.note.err { color: #FFB4A8; }

/* 공통 표지 */
.cover { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.cover img.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.glyph { position: absolute; line-height: 1; font-weight: 900; letter-spacing: -0.06em; transition: transform .4s ease; pointer-events: none; }
.lift { transition: transform .25s ease, border-color .25s ease; }
.lift:hover { transform: translateY(-6px); border-color: #4A515E; }
.lift:hover .glyph { transform: scale(1.06) rotate(-3deg); }
@media (prefers-reduced-motion: reduce) { .lift, .glyph { transition: none; } .lift:hover { transform: none; } .lift:hover .glyph { transform: none; } }

/* 대표 작업 */
.feat { display: flex; flex-wrap: wrap; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); margin-bottom: 24px; }
.feat .cover { flex: 999 1 520px; min-height: 340px; padding: 28px; justify-content: space-between; }
.feat .glyph { right: -24px; bottom: -80px; font-size: 360px; }
.feat .kicker { position: relative; font-family: var(--mono); font-size: 13px; opacity: .85; }
.feat .title { position: relative; display: flex; flex-direction: column; gap: 10px; }
.feat .title strong { font-size: clamp(40px, 6vw, 64px); line-height: 1; font-weight: 900; letter-spacing: -0.03em; }
.feat .title span { font-size: 18px; font-weight: 500; opacity: .92; }
.feat .body { flex: 1 1 320px; padding: 28px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.feat .body p { margin: 0; font-size: 16px; line-height: 1.75; color: #C4C9D2; }

/* 펼쳐 보기 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 24px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.card .cover { aspect-ratio: 16 / 10; padding: 20px 22px; }
.card .glyph { right: -16px; top: -36px; font-size: 220px; }
.card .cat { position: absolute; left: 22px; top: 18px; font-family: var(--mono); font-size: 12px; opacity: .85; }
.card .name { position: relative; font-size: 30px; line-height: 1.12; font-weight: 900; letter-spacing: -0.03em; max-width: 85%; }
.card .open { position: absolute; right: 14px; bottom: 14px; }
.card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.hook { font-size: 17px; font-weight: 700; line-height: 1.45; color: var(--text); margin: 0; }
.desc { margin: 0; font-size: 14px; line-height: 1.65; color: #A8AEB9; flex: 1; }
.tech { font-family: var(--mono); font-size: 12px; color: #7D8390; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: 12px; color: #C4C9D2; background: #22262E; border-radius: 999px; padding: 4px 10px; display: inline-flex; align-items: center; gap: 4px; }
.badge.live { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.badge.out { background: transparent; border: 1px solid #3A404B; padding: 3px 10px; }
.badge.b-private { background: #3A1E22; color: #FFB4A8; }
.badge.b-screen { background: #2B2A1A; color: #E8D98A; }
.badge svg { width: 12px; height: 12px; }

.icon-btn { width: 44px; height: 44px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.icon-btn svg { width: 18px; height: 18px; }
.btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-size: 14px; font-weight: 700; }
.btn:hover { color: var(--accent-ink); filter: brightness(1.05); }

/* 나만 보는 정보 */
.private { border-top: 1px dashed var(--line-2); padding-top: 12px; display: grid; grid-template-columns: 64px 1fr; gap: 6px 10px; font-size: 12.5px; color: var(--text-2); }
.private dt { color: var(--text-3); font-family: var(--mono); }
.private dd { margin: 0; overflow-wrap: anywhere; }
.private .memo { color: #E8D98A; }

/* 목록 */
.list { display: flex; flex-direction: column; border-top: 1px solid #1E2229; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 20px 0; border-bottom: 1px solid #1E2229; }
.row .num { font-family: var(--mono); font-size: 13px; color: #6E7480; width: 28px; }
.row .thumb { width: 112px; height: 70px; border-radius: 10px; position: relative; overflow: hidden; flex: none; }
.row .thumb .glyph { right: -6px; top: -18px; font-size: 92px; }
.row .main { flex: 999 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.row .main .t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.row h2 { margin: 0; font-size: 19px; font-weight: 700; }
.row .c { font-size: 13px; color: var(--text-3); }
.row .main p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-2); }
.row .side { flex: 1 0 200px; display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex-wrap: wrap; }
.row .private { flex-basis: 100%; margin-left: 52px; }
@media (max-width: 640px) { .row .private { margin-left: 0; } .row .num { display: none; } }
.lock { width: 44px; height: 44px; border-radius: 999px; border: 1px dashed #3A404B; color: var(--text-3); display: inline-flex; align-items: center; justify-content: center; }
.lock svg { width: 16px; height: 16px; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--text-3); }

.top-side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.logout { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--panel); color: #C4C9D2; font-size: 13px; text-decoration: none;
  display: inline-flex; align-items: center; }
.logout:hover { border-color: #FFB4A8; color: #FFB4A8; }
