* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #000;
  --fg: #f5f5f7;
  --dim: #8e8e93;
  --line: #1c1c1e;
  color-scheme: dark;  /* 브라우저 기본 UI(자동완성 아이콘·날짜피커·스크롤바)를 다크에 맞게 */
}

html, body { background: var(--bg); }

body {
  color: var(--fg);
  font-family: -apple-system, "Helvetica Neue", "Apple SD Gothic Neo", sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ---------------- 갤러리 ---------------- */
.site-header {
  position: relative;
  text-align: center;
  padding: 44px 20px 28px;
  border-bottom: 1px solid var(--line);
}
/* 로그인 시 — 헤더 좌상단 관리자 이동 링크 (우상단 언어 스위처와 동일 톤) */
.admin-link {
  position: absolute; top: 14px; left: 14px; z-index: 20;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; text-decoration: none;
  color: var(--fg);
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
  padding: 6px 10px; border-radius: 999px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .15s ease, border-color .15s ease;
}
.admin-link:hover { background: rgba(255,255,255,.12); border-color: #3a3a3a; }
.admin-link svg { display: block; opacity: .8; }
/* 비로그인 진입점 — 평소엔 아주 은은하게, 호버 시 또렷하게 */
.login-link { opacity: .35; padding: 6px; }
.login-link:hover { opacity: 1; }
@media (max-width: 600px) {
  .admin-link { top: 10px; left: 10px; padding: 5px 8px; font-size: 11px; }
  .admin-link span { display: none; }
}

.logo {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo span {
  font-weight: 300;
  color: var(--dim);
  margin-left: 6px;
}

.bio {
  margin-top: 9px;
  font-size: 13px;
  color: var(--dim);
}

/* 메뉴 스와이프 시 브라우저의 가로 오버스크롤(페이지 전체가 한박자 늦게
   끌려오는 현상) 차단. 화면 왼쪽 경계의 OS 뒤로가기 엣지 스와이프는
   시스템 제스처라 영향받지 않음(의도대로 유지). */
/* 가로 오버플로 클리핑: 스와이프 애니메이션으로 콘텐츠가 화면 밖에 나가 있는 순간
   가로 스크롤 영역이 생겨 페이지가 옆으로 밀리던(틀어짐) 문제 봉쇄.
   hidden 이 아닌 clip — hidden 은 html+body 조합에서 데스크톱 세로 스크롤을
   꼬이게 할 수 있음(스크롤 컨테이너 생성). clip 은 순수 시각 클리핑. */
html { overscroll-behavior-x: none; overflow-x: hidden; overflow-x: clip; }
body { overflow-x: hidden; overflow-x: clip; }
body.gallery { touch-action: pan-y pinch-zoom; }   /* 중간 영역 가로 팬 = 우리 메뉴 스와이프 전용 */
body.gallery { overscroll-behavior-y: none; }      /* 경계 바운스로 헤더·타이틀까지 출렁이는 것 차단 */
body.player { overscroll-behavior-y: none; }       /* 팝업 스크롤이 페이지 바운스로 새는 것 차단 */
body.gallery .tabs { touch-action: pan-x; }        /* 탭바 자체의 가로 스크롤은 유지 */

/* 상세→목록 복귀 중 로딩 인디케이터 (목록 숨김 동안 중앙 표시) */
.restore-spin { position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 5; }
/* 복귀 중: 스피너는 중앙 1개만 — 하단 feed 스피너·브랜드줄·푸터 숨기고,
   그리드가 비어도 페이지 높이를 유지해 푸터가 위로 튀어오르지 않게 */
body.feed-restoring #feed-more,
body.feed-restoring .brands-line,
body.feed-restoring .site-footer { visibility: hidden; }
body.feed-restoring #grid { min-height: 72vh; }

.tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 12px 16px 8px;
  border-bottom: 1px solid var(--line);
}
.tab-btn {
  background: transparent;
  border: 0;
  color: var(--dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .15s, background .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.tab-btn:hover { color: var(--fg); }
.tab-btn.on {
  color: var(--fg);
  background: rgba(255, 255, 255, .08);
}
.tab-count {
  font-size: 10px;
  font-weight: 500;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 999px;
}
.tab-btn.on .tab-count { color: var(--fg); background: rgba(255,255,255,.12); }

/* 모바일 — 탭이 한 줄로 가로 스크롤, 각 탭은 두 줄 안 깨짐 */
@media (max-width: 600px) {
  .tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px 12px 6px;
    gap: 2px;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 12px;
    padding: 6px 10px;
    gap: 4px;
  }
  .tab-count { padding: 1px 5px; font-size: 9px; }
}

.grid {
  max-width: 935px;
  margin: 0 auto;
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.cell {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  background: #111;
  overflow: hidden;
  text-decoration: none;
  border-radius: 12px;
}

.cell .thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease, filter .35s ease;
}

.cell:hover .thumb {
  transform: scale(1.04);
  filter: brightness(.5);
}

/* 이미지 카드용 페이스북식 모자이크 (셀 안에서 1/2/3/4분할) */
.cell-mosaic {
  width: 100%;
  height: 100%;
  display: grid;
  gap: 2px;
  background: #0a0a0d;
  transition: filter .35s ease;
}
.cell:hover .cell-mosaic { filter: brightness(.55); }
.cell-mosaic .cell-tm-cell {
  position: relative;
  overflow: hidden;
}
.cell-mosaic .cell-tm-cell img,
.cell-mosaic .cell-tm-cell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.cell-mosaic .cell-tm-cell.is-video { background: #000; }
.cell-mosaic .cell-tm-cell .vid-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.65);
  pointer-events: none;
  z-index: 1;
}
.cell:hover .cell-mosaic .cell-tm-cell img { transform: scale(1.03); }
.cell-mosaic .cell-more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.cell-mosaic.count-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.cell-mosaic.count-2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.cell-mosaic.count-3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.cell-mosaic.count-3 .cell-tm-cell:nth-child(1) { grid-row: 1 / span 2; }
.cell-mosaic.count-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }

.cell .badge {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 12px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .7);
}

.cell .langs-badge {
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.55);
  padding: 2px 6px;
  border-radius: 999px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .8);
}

.cell .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 12px 12px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .92));
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.cell:hover .cap { opacity: 1; }

.cell .cap-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  word-break: break-word;
}

.cell .cap-meta {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}
/* 카드 hover — 보유 링크 플랫폼 단색 글리프 */
.cell .cap-links {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-top: 8px;
  color: rgba(255, 255, 255, .9);
}
.cell .cap-link-ico { display: inline-flex; }
.cell .cap-link-ico svg { height: 14px; width: auto; display: block; }

/* 모바일 — 비디오/포토 그리드 2열 라운드 카드 + 캡션 상시 노출 (터치엔 hover 없음) */
@media (max-width: 600px) {
  .site-header { padding: 26px 16px 18px; }
  .logo { font-size: 22px; }
  .bio { margin-top: 7px; font-size: 12px; }

  .grid { grid-template-columns: repeat(2, 1fr); gap: 9px; padding: 9px; }
  .cell { border-radius: 14px; }
  .cell .cap {
    opacity: 1;                 /* 터치 기기: 캡션 항상 보이게 */
    padding: 26px 11px 11px;
    background: linear-gradient(transparent, rgba(0,0,0,.55) 45%, rgba(0,0,0,.9));
  }
  .cell .cap-title { font-size: 12.5px; }
  .cell .cap-links { gap: 7px; margin-top: 7px; }
  .cell .cap-link-ico svg { height: 13px; }
}

.brands-line {
  text-align: center;
  color: #5a5a5e;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 28px 20px 4px;
  line-height: 1.8;
}

/* ---- 브랜드(협업) 탭: 신뢰 수치 + 로고 월 + 협업 제안 CTA ---- */
.grid.brand-mode {
  display: block;
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 16px 44px;
}
.brand-hero { text-align: center; padding: 16px 4px 22px; }
.brand-hero-title { font-size: 23px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; }
.brand-hero-sub { font-size: 13px; color: var(--dim); line-height: 1.6; margin: 0 auto; max-width: 460px; }

/* 신뢰 수치 */
.brand-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 4px 0 26px; max-width: 460px; margin-left: auto; margin-right: auto; }
.brand-stat {
  background: #0e0e14; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 8px; text-align: center;
}
.bs-num { display: block; font-size: 27px; font-weight: 800; letter-spacing: -.02em; color: var(--fg); line-height: 1; }
.bs-label { display: block; font-size: 11px; color: var(--dim); margin-top: 6px; }

/* 로고 월 */
.brand-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.brand-tile {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px;
  aspect-ratio: 3 / 2;
  background: #0e0e14; border: 1px solid var(--line); border-radius: 12px;
  text-decoration: none; color: var(--fg); overflow: hidden; cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
}
.brand-tile:hover { border-color: rgba(255,255,255,.22); background: #14141c; transform: translateY(-2px); }
/* 로고 박스 = 타일 안을 채우되, 이미지는 원본 비율 그대로(contain) — 정사각/가로형 모두 안 찌그러짐 */
.brand-tile-logo {
  display: flex; align-items: center; justify-content: center;
  width: 100%; flex: 1 1 auto; min-height: 0;
  padding: 20px 22px; box-sizing: border-box;
}
.brand-logo-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
/* 어드민 로고 관리 — 타일 우상단 버튼 + 하단 크기 슬라이더 (마우스 오버 시에만) */
.brand-admin {
  position: absolute; top: 7px; right: 7px; z-index: 3;
  display: flex; gap: 5px;
  opacity: 0; pointer-events: none; transition: opacity .15s;
}
.brand-tile:hover .brand-admin { opacity: 1; pointer-events: auto; }
.brand-logo-up, .brand-logo-del {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; padding: 0; border-radius: 7px;
  background: rgba(14,14,20,.72); color: #f4f4f8;
  border: 1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.brand-logo-up svg, .brand-logo-del svg { width: 14px; height: 14px; display: block; }
.brand-logo-up:hover { background: #4a90ff; border-color: #4a90ff; color: #fff; }
.brand-logo-del:hover { background: #e0436b; border-color: #e0436b; color: #fff; }
.brand-scale-wrap {
  position: absolute; left: 16px; right: 16px; bottom: 9px; z-index: 3;
  display: flex; align-items: center;
  padding: 5px 9px; border-radius: 9px;
  background: rgba(14,14,20,.72); border: 1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .15s;
}
.brand-tile:hover .brand-scale-wrap { opacity: 1; pointer-events: auto; }
.brand-scale {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; margin: 0; border-radius: 99px;
  background: rgba(255,255,255,.22); cursor: pointer; outline: none;
}
.brand-scale::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 2px solid #4a90ff; cursor: grab;
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.brand-scale::-webkit-slider-thumb:active { cursor: grabbing; }
.brand-scale::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 2px solid #4a90ff; cursor: grab;
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.brand-scale::-moz-range-track { height: 4px; border-radius: 99px; background: rgba(255,255,255,.22); }
.brand-wordmark { font-size: 17px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #e9e9ee; text-align: center; line-height: 1.15; word-break: keep-all; }
.brand-tile-count { font-size: 11px; color: var(--dim); letter-spacing: .02em; }

/* 협업 제안 CTA */
.brand-cta {
  margin-top: 30px; text-align: center;
  background: linear-gradient(160deg, #15151d, #0c0c11);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 32px 22px;
}
.brand-cta-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.brand-cta-text { font-size: 13px; color: var(--dim); line-height: 1.65; margin: 0 auto 18px; max-width: 380px; }
/* 협업 제안 폼 */
.brand-form { max-width: 460px; margin: 0 auto; text-align: left; }
.bf-row { display: flex; gap: 8px; margin-bottom: 8px; }
.bf-row input { flex: 1 1 0; min-width: 0; }
.brand-form input, .brand-form textarea {
  width: 100%; box-sizing: border-box;
  background: #111; color: var(--fg);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; font: inherit; font-size: 13px;
}
.brand-form textarea { resize: vertical; line-height: 1.55; min-height: 84px; }
.brand-form input:focus, .brand-form textarea:focus { outline: none; border-color: #4a90ff; }
.bf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }  /* 허니팟 — 사람 눈엔 안 보임 */
.bf-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.bf-status { font-size: 12px; color: var(--dim); margin-right: auto; text-align: left; }
.bf-status.err { color: #ff7676; }
.bf-send {
  background: #fff; color: #000; font-weight: 700; font-size: 14px;
  border: 0; border-radius: 999px; padding: 11px 28px; cursor: pointer; transition: opacity .15s;
}
.bf-send:hover { opacity: .9; }
.bf-send:disabled { opacity: .5; cursor: default; }
.bf-mail { display: block; margin-top: 14px; font-size: 12px; color: var(--dim); text-decoration: none; }
.bf-mail:hover { color: var(--fg); }
.bf-done { font-size: 15px; color: #4ade80; font-weight: 600; padding: 14px 0; text-align: center; }

@media (max-width: 600px) {
  .grid.brand-mode { padding: 6px 12px 34px; }
  .brand-stats { gap: 8px; }
  .bs-num { font-size: 22px; }
  .brand-wall { grid-template-columns: repeat(2, 1fr); }
  .bf-row { flex-direction: column; gap: 8px; }
}

/* ---- Timeline 탭: 페북/링크드인식 세로 피드 ---- */
.grid.timeline-mode {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 640px;
  margin: 0 auto;
  padding: 12px 12px 24px;
}
/* 연도 구분 헤더 — 스크롤 시 상단 고정 */
.tl-year {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 -4px;
  padding: 9px 2px;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}
.tl-year-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--fg);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .08);
  padding: 3px 12px;
  border-radius: 999px;
}
.tl-year-line {
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
}
.tl-post {
  background: #14141a;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.tl-post:hover {
  border-color: rgba(255, 255, 255, .14);
}
.tl-post:hover .tl-open { color: var(--fg); }
.tl-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 18px 11px;
}
/* 소셜 피드식 아바타 (모노그램) */
.tl-avatar {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #3a3a40;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  overflow: hidden;
}
.tl-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 비공개/일부공개 뱃지 (로그인 어드민 미리보기) */
.vis-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 1px 7px;
  border-radius: 999px;
  margin-left: 7px;
  vertical-align: middle;
}
.vis-badge.unlisted { background: rgba(255,184,74,.18); color: #ffb84a; }
.vis-badge.hidden { background: rgba(255,107,107,.18); color: #ff6b6b; }
/* 그리드 카드 위에 얹힐 땐 좌상단 오버레이 */
.cell .vis-badge {
  position: absolute;
  top: 8px; left: 8px;
  margin-left: 0;
  z-index: 3;
  backdrop-filter: blur(4px);
}
.tl-head-info { flex: 1 1 auto; min-width: 0; }
.tl-author {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.tl-author span {
  font-weight: 300;
  color: var(--dim);
  margin-left: 4px;
}
.tl-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--dim);
  margin-top: 2px;
}
.tl-meta > * + *::before {
  content: "·";
  margin-right: 7px;
  color: rgba(255,255,255,.25);
}
.tl-brand {
  color: rgba(255, 255, 255, .85);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
/* 포스트 우상단 공유 버튼 — 미니멀 (배경 없이 얇은 아이콘만) */
.tl-share, .tl-edit {
  flex: 0 0 auto;
  align-self: flex-start;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  color: var(--dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .6;
  transition: opacity .15s, color .15s;
  margin: -2px 0 0 0;
}
.tl-share { margin-right: -4px; }
.tl-edit:hover { opacity: 1; color: #4a90ff; }
.tl-share:hover { opacity: 1; color: var(--fg); }
.tl-share svg, .tl-edit svg { pointer-events: none; }

/* ── 타임라인 인라인 편집 — 어드민 카드와 동일한 컴팩트 스타일 ── */
.tl-post.tl-editing {
  border: 1px solid rgba(74,144,255,.4);
  box-shadow: 0 0 0 1px rgba(74,144,255,.1);
  padding: 14px 16px 16px;
  cursor: default;
}
.tle-head {
  font-size: 12px; font-weight: 700; color: #4a90ff;
  margin-bottom: 10px;
}
.tle-head span { color: var(--dim); font-weight: 400; font-size: 11px; }
.tle-label {
  display: block; font-size: 10px; color: var(--dim);
  margin: 9px 0 3px; text-transform: uppercase; letter-spacing: .05em;
}
.tle-title, .tle-desc {
  width: 100%; box-sizing: border-box;
  background: #111; color: var(--fg);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 7px 9px; font: inherit; font-size: 13px;
}
.tle-desc { resize: vertical; line-height: 1.55; min-height: 150px; }
.tle-title:focus, .tle-desc:focus { outline: none; border-color: #4a90ff; }
.tle-hidden { display: none !important; }

/* 언어 탭 (컴팩트) — 채워진 언어는 점 색, 빈 언어는 빈 점 + 흐리게 */
.tle-langtabs { display: flex; gap: 3px; margin-bottom: 2px; }
.tle-lt {
  display: inline-flex; align-items: center; gap: 5px;
  background: transparent; color: var(--dim);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 3px 10px; font: inherit; font-size: 11px; cursor: pointer;
  transition: color .12s, background .12s, border-color .12s;
}
.tle-lt:hover { color: var(--fg); }
.tle-lt.on { background: rgba(74,144,255,.14); color: #4a90ff; border-color: rgba(74,144,255,.4); font-weight: 600; }
.tle-lt-dot { width: 5px; height: 5px; border-radius: 999px; background: #4a90ff; flex: 0 0 auto; box-sizing: border-box; }
.tle-lt.tle-empty { color: #5a5a60; }
.tle-lt.tle-empty .tle-lt-dot { background: transparent; border: 1px solid #4a4a50; }
.tle-lt.tle-empty.on { color: #4a90ff; }

/* 메타/링크 그리드 */
.tle-grid { display: grid; gap: 7px 8px; margin-top: 7px; }
.tle-meta3 { grid-template-columns: repeat(3, 1fr); }
.tle-brandrow { grid-template-columns: 1.6fr auto auto; align-items: end; }
.tle-links { grid-template-columns: 1fr 1fr; }
/* 인라인 편집기 — 링크 URL 목록 (자동 인식) */
.tle-links-list { display: flex; flex-direction: column; gap: 6px; }
.tle-link-row { display: flex; align-items: center; gap: 8px; }
.tle-link-row .tle-link {
  flex: 1 1 auto; min-width: 0;
  background: #111; color: var(--fg); border: 1px solid var(--line);
  border-radius: 6px; padding: 7px 9px; font: inherit; font-size: 12px;
}
.tle-link-row .tle-link:focus { outline: none; border-color: #4a90ff; }
.tle-link-badge { flex: 0 0 auto; font-size: 11px; color: var(--dim); min-width: 56px; }
.tle-link-del {
  flex: 0 0 auto; width: 28px; height: 30px;
  background: transparent; border: 1px solid var(--line); color: var(--dim);
  border-radius: 6px; cursor: pointer; font-size: 15px; line-height: 1;
}
.tle-link-del:hover { color: #e0436b; border-color: #e0436b; }
.tle-link-add {
  align-self: flex-start; margin-top: 6px;
  background: transparent; border: 1px solid var(--line); color: var(--fg);
  border-radius: 6px; padding: 5px 11px; font: inherit; font-size: 12px; cursor: pointer;
}
.tle-link-add:hover { border-color: #4a90ff; color: #fff; }
.tle-field {
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
  font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: .04em;
}
.tle-field input, .tle-field select {
  width: 100%; box-sizing: border-box;
  background: #111; color: var(--fg); color-scheme: dark;
  border: 1px solid var(--line); border-radius: 6px;
  padding: 6px 8px; font: inherit; font-size: 12px; text-transform: none; letter-spacing: 0;
}
.tle-field input:focus, .tle-field select:focus { outline: none; border-color: #4a90ff; }
.tle-check {
  display: flex; align-items: center; gap: 5px; height: 30px;
  font-size: 11px; color: var(--fg); white-space: nowrap; cursor: pointer;
}
.tle-check input { accent-color: #4a90ff; }

/* 사진 — 어드민과 동일 (정사각 셀 그리드 · hover 삭제 · + 추가 · 드래그 순서변경) */
.tle-images {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 6px; padding: 6px; margin-top: 4px;
  border: 1px solid var(--line); border-radius: 6px; background: #0f0f10;
}
.tle-img {
  position: relative; aspect-ratio: 1; background: #111;
  border-radius: 4px; overflow: hidden; cursor: grab;
  transition: opacity .15s, outline .15s;
}
.tle-img:active { cursor: grabbing; }
.tle-img.dragging { opacity: .4; }
.tle-img.over { outline: 2px solid #4a90ff; outline-offset: -2px; }
.tle-img img, .tle-img video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.tle-img .vid-badge {
  position: absolute; top: 3px; left: 3px; font-size: 9px;
  background: rgba(0,0,0,.6); color: #fff; border-radius: 3px; padding: 0 3px; pointer-events: none;
}
.tle-del {
  position: absolute; top: 3px; right: 3px;
  width: 18px; height: 18px; border-radius: 999px;
  background: rgba(0,0,0,.7); color: #fff; border: 0;
  font-size: 12px; line-height: 1; cursor: pointer; display: none;
}
.tle-img:hover .tle-del { display: flex; align-items: center; justify-content: center; }
.tle-add {
  aspect-ratio: 1; width: 100%; box-sizing: border-box; align-self: start;
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed #3a3a3a; border-radius: 4px;
  background: transparent; color: var(--dim); font-size: 20px; line-height: 1; cursor: pointer;
  transition: color .15s, border-color .15s;
}
.tle-add:hover { color: var(--fg); border-color: #4a90ff; }
.tle-noimg { grid-column: 1 / -1; color: var(--dim); font-size: 11px; text-align: center; padding: 14px 0; }
.tle-upstatus { font-size: 11px; color: var(--dim); margin-top: 6px; min-height: 14px; }

@media (max-width: 600px) {
  .tle-meta3 { grid-template-columns: 1fr 1fr; }
  .tle-brandrow { grid-template-columns: 1fr; align-items: stretch; }
  .tle-links { grid-template-columns: 1fr; }
  .tle-check { height: auto; padding: 2px 0; }
}

.tle-actions {
  display: flex; align-items: center; gap: 8px;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
}
.tle-actions button {
  border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 22px; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
  transition: opacity .15s, border-color .15s, background .15s;
}
.tle-cancel { background: #1c1c1e; color: var(--fg); }
.tle-cancel:hover { border-color: #3a3a3a; }
.tle-save { background: #fff; color: #000; font-weight: 700; border-color: #fff; }
.tle-save:hover { opacity: .9; }
.tle-status { font-size: 12px; color: var(--dim); margin-right: auto; }  /* 상태는 왼쪽, 버튼은 오른쪽 */
/* 공유 토스트 (갤러리 공용) */
.g-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(10px);
  background: rgba(20, 20, 26, .96);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 999px;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.g-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.tl-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 18px 6px;
  line-height: 1.35;
  word-break: keep-all;
}
.tl-text {
  margin: 2px 18px 12px;
  font-size: 13px;
  line-height: 1.62;
  color: rgba(255, 255, 255, .82);
  white-space: pre-line;
  word-break: keep-all;
  /* 6줄까지 미리보기 — 넘어가면 잘림. 카드 클릭하면 상세에서 전체. */
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
}
.tl-text::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 40%;
  height: 1.6em;
  background: linear-gradient(90deg, transparent, #14141a 75%);
  pointer-events: none;
}
.tl-text-link,
.tl-text-link:visited,
.tl-text-link:active,
.desc-link,
.desc-link:visited,
.desc-link:active {
  color: #4a90ff;
  text-decoration: none;
  word-break: break-all;
  border-bottom: 1px solid rgba(74, 144, 255, .25);
  transition: border-color .15s, color .15s;
}
.tl-text-link:hover,
.desc-link:hover {
  color: #6aa9ff;
  border-bottom-color: rgba(106, 169, 255, .65);
}

/* 플레이어 사이드의 OG 카드 (info-og) */
.info-og:empty { display: none; }
.info-og {
  margin: 10px 0 0;
}
.og-card {
  display: flex;
  background: #14141a;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, background .15s;
}
.og-card:hover { border-color: rgba(255,255,255,.18); background: #1a1a22; }
.og-card-img {
  flex-shrink: 0;
  width: 90px;
  background: #1a1a22 center/cover no-repeat;
}
.og-card-body {
  flex: 1; min-width: 0;
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.og-card-host {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.og-card-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.og-card-desc {
  font-size: 10px;
  color: rgba(255,255,255,.6);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
/* OG 미리보기 카드 — 본문과 미디어 사이. 빈 슬롯은 자리 안 차지 */
.tl-og:empty { display: none; }
.tl-og:not(:empty) { margin: 14px 18px 16px; }  /* 이미지 아래 맨 끝 — 위 간격 확보 */
@media (max-width: 600px) {
  .tl-og:not(:empty) { margin: 12px 14px 14px; }
}
.tl-og-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #0e0e14;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, background .15s;
}
.tl-og-card:hover {
  border-color: rgba(255,255,255,.18);
  background: #14141c;
}
.tl-og-img {
  flex-shrink: 0;
  width: 100px;
  background: #1a1a22 center/cover no-repeat;
}
@media (max-width: 600px) {
  .tl-og-img { width: 80px; }
  .tl-og { margin: 0 14px 12px; }
}
.tl-og-body {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.tl-og-host {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}
.tl-og-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.tl-og-desc {
  font-size: 11px;
  color: rgba(255,255,255,.65);
  line-height: 1.4;
  margin-top: 2px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tl-mosaic {
  display: grid;
  gap: 2px;
  background: #0a0a0d;
}
.tl-mosaic .cell-tm-cell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #0a0a0d;
}
.tl-mosaic .cell-tm-cell img,
.tl-mosaic .cell-tm-cell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tl-mosaic .cell-tm-cell .vid-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .7);
  pointer-events: none;
}
.tl-mosaic .cell-tm-cell .cell-more {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}
.tl-mosaic.count-1 .cell-tm-cell { aspect-ratio: auto; max-height: 70vh; }
.tl-mosaic.count-1 .cell-tm-cell img,
.tl-mosaic.count-1 .cell-tm-cell video { object-fit: contain; background: #000; }
.tl-mosaic.count-1 { grid-template-columns: 1fr; }
.tl-mosaic.count-2 { grid-template-columns: 1fr 1fr; }
/* 3장 이상: 항상 한 줄 (3등분 / 4등분, 빈 칸 없이 균등) */
.tl-mosaic.count-3 { grid-template-columns: 1fr 1fr 1fr; }
.tl-mosaic.count-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }

.tl-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 18px 12px;  /* 본문 바로 아래 — 좌측 정렬, 가벼운 간격 */
}
.tl-links {
  display: inline-flex;
  gap: 6px;
}
.tl-link {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--fg);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s;
}
.tl-link:hover { background: rgba(74, 144, 255, .25); color: #4a90ff; }
.tl-open {
  font-size: 12px;
  font-weight: 600;
  color: var(--dim);
  text-decoration: none;
  transition: color .15s;
}
.tl-open:hover { color: var(--fg); }

@media (max-width: 600px) {
  .grid.timeline-mode { padding: 8px 6px 20px; gap: 12px; }
  .tl-head, .tl-foot { padding-left: 14px; padding-right: 14px; }
  .tl-text { margin-left: 14px; margin-right: 14px; font-size: 13px; }
}

/* ---- About 탭: 단일 컬럼 페이지 ---- */
.grid.about-mode {
  display: block;
  padding: 0;
  max-width: 720px;
  margin: 0 auto;
}
.about-page {
  padding: 24px 20px 40px;
  color: var(--fg);
}
.about-section {
  margin: 0 0 44px;
}
.about-section:last-child { margin-bottom: 0; }

.about-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 14px;
}

.about-headline {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  line-height: 1.05;
}
.about-headline span {
  font-weight: 300;
  color: var(--dim);
  letter-spacing: 0.01em;
}

.about-text {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,.85);
  margin: 0;
  word-break: keep-all;
}

/* 채널 카드 */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (max-width: 480px) {
  .channel-grid { grid-template-columns: 1fr; }
}

/* About — 멤버(부부) 프로필 */
.member-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 600px) { .member-grid { grid-template-columns: 1fr; } }
.member-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0c0c0e;
}
.member-avatar {
  flex: 0 0 auto;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #3a3a40;
  color: #fff; font-weight: 800; font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.member-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.member-info { min-width: 0; flex: 1 1 auto; }
.member-name { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.member-bio { font-size: 13px; color: var(--dim); margin-top: 4px; line-height: 1.5; }
.member-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.member-link {
  font-size: 11px; font-weight: 600;
  color: var(--ch-color, #aaa);
  border: 1px solid color-mix(in srgb, var(--ch-color, #888) 40%, transparent);
  padding: 3px 9px; border-radius: 999px;
  text-decoration: none;
  transition: background .15s;
}
.member-link:hover { background: color-mix(in srgb, var(--ch-color, #888) 15%, transparent); }
.channel-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #14141a;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, transform .2s, background .2s;
}
.channel-card:hover {
  border-color: var(--ch-color);
  transform: translateY(-2px);
  background: #181820;
}
.channel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ch-color);
  flex-shrink: 0;
  box-shadow: 0 0 12px var(--ch-color);
}
.channel-info { flex: 1; min-width: 0; }
.channel-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.channel-handle {
  font-size: 11px;
  color: var(--dim);
  margin-top: 2px;
  letter-spacing: 0.02em;
}
.channel-arrow {
  font-size: 16px;
  color: var(--dim);
  transition: transform .2s, color .2s;
}
.channel-card:hover .channel-arrow {
  color: var(--ch-color);
  transform: translate(2px, -2px);
}

/* 협업 contact */
.contact-note {
  margin-bottom: 14px !important;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #14141a;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
}
.contact-email {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-email:hover { color: #4a90ff; }
.contact-copy {
  background: rgba(255,255,255,.06);
  border: none;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  font-size: 14px;
  color: var(--dim);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s, color .2s;
}
.contact-copy:hover { background: rgba(255,255,255,.12); color: var(--fg); }
.contact-copy.copied {
  width: auto;
  padding: 0 10px;
  background: rgba(74,144,255,.15);
  color: #4a90ff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* 활성 브랜드 필터 chip (탭 아래) */
.brand-chip {
  max-width: 935px;
  margin: 0 auto 4px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.brand-chip[hidden] { display: none; }
.brand-chip-label {
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand-chip-name {
  color: var(--fg);
  font-weight: 700;
  padding: 3px 10px;
  background: rgba(255,255,255,.10);
  border-radius: 999px;
}
.brand-chip-x {
  width: 22px;
  height: 22px;
  border: none;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  color: var(--fg);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.brand-chip-x:hover { background: rgba(255,255,255,.18); }

.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--dim);
  padding: 90px 20px;
  line-height: 1.8;
  font-size: 14px;
}

/* 무한스크롤 — 하단 로딩 센티넬 */
.feed-more {
  display: flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 14px 0;
}
.feed-more[hidden] { display: none; }
.feed-spin {
  display: block;   /* span 이 inline 이면 width/height 무시 → 단독 사용 시 찌그러짐 방지 */
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.18);
  border-top-color: rgba(255,255,255,.7);
  animation: feed-spin .7s linear infinite;
}
@keyframes feed-spin { to { transform: rotate(360deg); } }

.site-footer {
  text-align: center;
  padding: 34px;
  font-size: 12px;
  color: #48484a;
}

/* ---------------- 언어 전환 (지구본 드롭다운) ---------------- */
.lang {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;
}

/* 트리거 — 🌐 현재언어 ▾ */
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  color: var(--fg);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lang-trigger:hover { background: rgba(255, 255, 255, .12); border-color: #3a3a3a; }
.lang-globe { font-size: 13px; line-height: 1; }
.lang-cur { letter-spacing: -0.01em; }
.lang-caret {
  font-size: 9px;
  color: var(--dim);
  transition: transform .2s ease;
}
.lang-dd.open .lang-caret { transform: rotate(180deg); }

/* 드롭다운 메뉴 */
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 130px;
  background: #0d0d0f;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  z-index: 21;
}
.lang-menu[hidden] { display: none; }

.lang-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--dim);
  padding: 8px 10px;
  border-radius: 7px;
  text-align: left;
  transition: background .12s ease, color .12s ease;
}
.lang-opt:hover { background: rgba(255, 255, 255, .07); color: var(--fg); }
.lang-opt.on { color: var(--fg); font-weight: 700; }
.lang-check {
  width: 12px;
  flex: 0 0 auto;
  color: #4a90ff;
  font-size: 11px;
}
.lang-opt-name { flex: 1 1 auto; }
/* (영상 variant 없는 언어 표시 "텍스트" 뱃지·dim 제거 — 모든 언어 동일하게) */

@media (max-width: 720px) {
  .lang { top: 10px; right: 10px; }
  .lang-trigger { font-size: 11px; padding: 5px 9px; }
}

/* ---------------- 플레이어 ---------------- */
/* ---------------- 플레이어 (공통) ---------------- */
body.player {
  display: grid;
  grid-template-columns: 1fr 380px;
  height: 100vh;
  overflow: hidden;
}

.back {
  position: absolute;
  top: 16px;
  left: 18px;
  z-index: 5;
  color: var(--fg);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  opacity: .85;
}
.back:hover { opacity: 1; }
.chrome-peek { display: none; }   /* 정보 복귀 핸들 — 모바일에서 정보 숨겼을 때만 노출 */
.info-more { display: none; }     /* 상세보기+FAQ 버튼 행 — 모바일에서만 (데스크톱은 인라인) */

.stage-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  background: #000;
}

.stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 12px 12px;
}

.stage video {
  height: 100%;
  width: auto;
  max-width: 100%;
  aspect-ratio: 9 / 16;  /* layout shift 방지 — 영상 전환 시 비율 고정 */
  background: #000;
  border-radius: 10px;
  object-fit: contain;
}

.img-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.img-stage[hidden] { display: none; }

/* 페이스북식 그리드 — 이미지 개수에 따라 레이아웃 변화 */
.img-grid {
  display: grid;
  gap: 4px;
  max-width: 100%;
  max-height: 100%;
  width: min(720px, 100%);
  aspect-ratio: 1 / 1;
}
.img-grid.count-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; aspect-ratio: 9 / 16; }
.img-grid.count-2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; aspect-ratio: 16 / 9; }
.img-grid.count-3 {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.img-grid.count-3 .img-grid-cell:nth-child(1) { grid-row: 1 / span 2; }
.img-grid.count-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }

.img-grid-cell {
  position: relative;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: opacity .15s;
}
.img-grid-cell:hover { opacity: .85; }

/* 스틸컷 스트립 (플레이어 정보 패널) — 클릭 시 라이트박스 */
.info-stills {
  display: flex; gap: 6px; margin-top: 12px;
  overflow-x: auto; padding-bottom: 2px;
  scrollbar-width: none;
}
.info-stills::-webkit-scrollbar { display: none; }
.still-thumb {
  flex: 0 0 auto; width: 56px; height: 56px;
  border-radius: 8px; overflow: hidden; padding: 0;
  border: 1px solid rgba(255,255,255,.14);
  background: #111; cursor: pointer;
  transition: border-color .15s, transform .1s;
}
.still-thumb:hover { border-color: rgba(255,255,255,.45); transform: scale(1.04); }
.still-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 700px) {
  .info-stills { gap: 5px; margin-top: 10px; }
  .still-thumb { width: 46px; height: 46px; border-radius: 7px; }
}
.img-grid-cell img,
.img-grid-cell video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.img-grid-cell.is-video { background: #000; }
.img-grid-cell .vid-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.7);
  pointer-events: none;
}
.img-more {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  pointer-events: none;
}

/* Lightbox 풀스크린 오버레이 */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .94);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
body.lb-active { overflow: hidden; }

.lb-img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
}
.lb-img[hidden] { display: none; }
.lb-video { background: #000; }
/* 젠 모드 — 이미지 탭으로 컨트롤(X·화살표·페이징) 숨김/복귀 (이미지만 크게) */
.lb-close, .lb-nav, .lb-dots, .lb-dl { transition: opacity .18s ease; }
.lightbox.zen .lb-close,
.lightbox.zen .lb-nav,
.lightbox.zen .lb-dl,
.lightbox.zen .lb-dots { opacity: 0; pointer-events: none; }

.lb-close {
  position: absolute;
  z-index: 5;   /* transform 된 이미지(스와이프 애니)가 위에 그려져 X가 가려지던 버그 방지 */
  top: 18px; right: 22px;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, opacity .18s ease;
}
.lb-close:hover { background: rgba(255,255,255,.2); }

/* 라이트박스 다운로드 — 원본 화질 저장 (좌상단) */
.lb-dl {
  position: absolute; top: 14px; left: 14px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 0; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 5;
}
.lb-dl:hover { background: rgba(255,255,255,.2); }
.lb-dl svg { display: block; }

.lb-nav {
  position: absolute;
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);
  width: 50px; height: 50px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-nav.prev { left: 24px; }
.lb-nav.next { right: 24px; }

.lb-dots {
  position: absolute;
  z-index: 5;
  left: 0; right: 0; bottom: 28px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.lb-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  padding: 0;
  transition: background .15s, transform .15s;
}
.lb-dot.on { background: #fff; transform: scale(1.3); }

.msg {
  position: absolute;
  color: var(--dim);
  font-size: 14px;
}

/* 카드 좌우 화살표 버튼 — 휠/키보드/스와이프로 이동하므로 숨김 (요소·핸들러는 유지) */
.nav {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, opacity .2s ease;
  align-items: center;
  justify-content: center;
}
.nav:hover:not(:disabled) { background: rgba(255, 255, 255, .22); }
.nav:disabled { opacity: .15; cursor: default; }
/* 화면 좌우 끝쪽 — 영상과 충분히 거리 */
.nav.prev { left: 24px; }
.nav.next { right: 24px; }

/* ---------------- PC: 우측 사이드 패널 ---------------- */
.info-panel {
  background: #050505;
  border-left: 1px solid var(--line);
  overflow-y: auto;
  padding: 60px 28px 28px;
}
.info-inner { display: flex; flex-direction: column; gap: 14px; }

.info-brand-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.info-brand {
  color: #4a90ff;
  font-weight: 600;
}
.info-brand:empty { display: none; }
.info-date {
  font-variant-numeric: tabular-nums;
}
/* 헤더 우측 공유(링크복사) 아이콘 — 콘텐츠 헤더에 붙는 공유 액션 */
.brand-share {
  margin-left: auto; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  color: var(--fg); cursor: pointer;
  transition: border-color .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.brand-share:hover { border-color: #3a3a3a; background: #111; }
.brand-share svg { opacity: .85; }

.info-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.info-title:empty::before {
  content: "(제목 없음)";
  color: var(--dim);
  font-weight: 400;
}

.info-desc {
  font-size: 14px;
  line-height: 1.65;
  color: #c7c7cc;
  white-space: pre-wrap;
  word-break: break-word;
}
.info-desc:empty { display: none; }

.info-links {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 4px;
}
.info-links:empty { display: none; }

/* 소셜 아이콘 + 링크복사 를 한 줄로 (아이콘 왼쪽, 복사 오른쪽) */
.info-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.info-actions .info-links { margin-top: 0; }
.info-actions .share-btn { margin-top: 0; margin-left: auto; align-self: center; }

/* 플랫폼 링크 — 브랜드색 아이콘 칩 (텍스트 대신 로고) */
.ext-icon {
  width: 38px; height: 38px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: #fff; text-decoration: none;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.ext-icon svg { width: 20px; height: 20px; display: block; }
.ext-icon:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.ext-icon .xhs-mark { font-size: 9px; font-weight: 800; letter-spacing: -.5px; line-height: 1; }
.ext-instagram { background: radial-gradient(circle at 28% 110%, #fdf497 0%, #fd5949 45%, #d6249f 62%, #285aeb 92%); }
.ext-youtube { background: #ff0000; }
.ext-xiaohongshu { background: #ff2442; }
.ext-bilibili { background: #00a1d6; }
.ext-other { background: #3a3a44; }  /* 자동 인식 안 되는 일반 링크 */
/* 타임라인 카드 안에서는 살짝 작게 */
.tl-links .ext-icon { width: 30px; height: 30px; }
.tl-links .ext-icon svg { width: 16px; height: 16px; }
.tl-links .ext-icon .xhs-mark { font-size: 7.5px; }

.share-btn {
  align-self: flex-start;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg);
  border-radius: 999px;
  padding: 7px 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.share-btn:hover { border-color: #3a3a3a; background: #111; }
.share-btn svg { opacity: .85; }

.share-toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(255,255,255,.95);
  color: #000;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}
.share-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------------- FAQ (자주 묻는 질문) — 정보 패널 ---------------- */
.info-faq {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.info-faq[hidden] { display: none; }
/* 모바일 트리거 — 데스크톱은 숨김. 시트는 데스크톱 사이드바에 인라인 상시 노출 */
.faq-trigger { display: none; }
.faq-sheet { display: block; }
.faq-sheet[hidden] { display: block; }
.faq-panel-head { margin-bottom: 6px; }
.faq-panel-title {
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--dim);
}
.faq-panel-close { display: none; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,.06); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: transparent;
  border: none;
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  text-align: left;
  padding: 11px 2px;
  cursor: pointer;
}
.faq-q:hover { color: #fff; }
.faq-q-text { min-width: 0; }
/* 질문 목록: 항목 구분선 + 우측 화살표 (누르면 상세 팝업) */
.faq-list .faq-q { border-bottom: 1px solid rgba(255,255,255,.06); }
.faq-list .faq-q:last-child { border-bottom: none; }
/* 질문 더 보기 — 목록 맨 아래, 남은 개수 표시 */
.faq-more {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--dim);
  font: inherit;
  font-size: 13px;
  text-align: center;
  padding: 10px 2px 6px;
  cursor: pointer;
}
.faq-more:hover { color: var(--fg); }
.faq-q-chev { flex: none; color: var(--dim); font-size: 19px; line-height: 1; padding-left: 8px; }
.faq-ico {
  flex: none;
  width: 18px;
  text-align: center;
  color: var(--dim);
  font-size: 15px;
  line-height: 1;
}
.faq-body {
  padding: 0 2px 14px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--dim);
  white-space: pre-wrap;
  word-break: break-word;
}
.faq-body[hidden] { display: none; }
.faq-link {
  display: block;          /* 답변 텍스트 아래 줄로 분리 (텍스트와 안 붙게) */
  margin-top: 10px;
  color: #6fb1ff;
  font-size: 13px;
  text-decoration: none;
  word-break: break-all;
}
.faq-link:hover { text-decoration: underline; }
/* FAQ 답변 이미지 */
.faq-img {
  display: block;
  margin-top: 10px;
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
}
/* 본문 끝 — 이 질문 링크 복사 (박스 없이 은은한 텍스트) */
.faq-copy {
  display: flex; width: fit-content;
  align-items: center; gap: 5px;
  margin-top: 14px; padding: 0;
  background: none; border: none;
  color: var(--dim); cursor: pointer;
  font: inherit; font-size: 12px;
  transition: color .15s;
}
.faq-copy svg { flex: none; width: 13px; height: 13px; }
.faq-copy:hover { color: #6fb1ff; }
@keyframes faqSheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* '상세보기' 버튼 — 데스크톱은 숨김(전체 답변 인라인), 모바일 시트에서만 노출 */
.faq-detail {
  display: none; align-items: center; justify-content: center; gap: 5px;
  padding: 8px 16px;
  background: rgba(111, 177, 255, .13);
  border: 1px solid rgba(111, 177, 255, .4); border-radius: 8px;
  color: #6fb1ff; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600;
}
.faq-detail:hover { background: rgba(111, 177, 255, .22); }
/* 상세보기 + 링크복사 를 가로 한 줄로 */
.faq-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.faq-actions .faq-copy { margin-top: 0; }

/* 상세 팝업 (바텀시트) — 영상 위로 올라와 대부분 가림. FAQ 시트보다 위(z) */
.faq-modal {
  position: fixed; inset: 0; z-index: 210;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, .72);
  transition: opacity .24s ease;   /* 닫힐 때 배경 페이드아웃 (시트는 JS가 아래로 슬라이드) */
}
.faq-modal[hidden] { display: none; }
.faq-modal.closing { opacity: 0; }
.faq-modal-sheet {
  position: relative;
  width: 100%; max-width: 560px;
  max-height: 90vh; max-height: 90dvh;   /* 내용에 맞게(auto), 길면 여기서 멈추고 스크롤 */
  overflow-y: auto;
  overscroll-behavior: contain;   /* 시트 끝에서 스크롤이 밖(카드/페이지)으로 체이닝되는 것 차단 */
  background: #101012;
  border: 1px solid var(--line);
  border-radius: 18px 18px 0 0;
  padding: 26px 20px calc(28px + env(safe-area-inset-bottom));
  animation: faqSheetUp .24s ease;
}
.faq-modal-close {
  /* 제목(padding-top 26px + 17px×1.4 첫 줄)의 세로 중심(≈38px)에 X 중심을 맞춤 */
  position: absolute; top: 21px; right: 14px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--dim);
  font-size: 26px; line-height: 1; cursor: pointer;
}
.faq-modal-close:hover { color: var(--fg); }
.faq-modal-q {
  margin: 0 34px 16px 0;
  font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--fg);
}
.faq-modal-a {
  font-size: 14px; line-height: 1.75; color: #c7c7cc;
  white-space: pre-wrap; word-break: break-word;
}
.faq-modal-img {
  display: block; margin-top: 14px;
  max-width: 100%; border-radius: 10px; border: 1px solid var(--line);
}
.faq-modal-link {
  display: block; margin-top: 14px;               /* 답변/이미지 아래 별도 줄 */
  color: #6fb1ff; font-size: 14px; text-decoration: none; word-break: break-all;
}
.faq-modal-link:hover { text-decoration: underline; }
/* 링크복사 — 답변과 분리해 맨 아래 우측 */
.faq-modal-foot {
  display: flex; justify-content: flex-end;
  margin-top: 24px; padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.faq-modal-copy {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 15px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--fg); cursor: pointer; font: inherit; font-size: 12.5px;
}
.faq-modal-copy svg { flex: none; width: 13px; height: 13px; }
.faq-modal-copy:hover { border-color: #3a3a3a; }

/* '채널' 팝업 — 소셜/외부 링크 한 줄씩 (아이콘 + 이름 + ↗) */
.links-modal-list { display: flex; flex-direction: column; }
.links-modal-row {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  text-decoration: none; color: var(--fg);
}
.links-modal-row:last-child { border-bottom: none; }
.links-modal-row .ext-icon { width: 40px; height: 40px; }
.links-modal-row:hover .ext-icon { transform: none; }   /* 행 전체가 타깃이라 아이콘 개별 호버 이동 끔 */
.links-modal-name { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; }
.links-modal-go { flex: none; color: var(--dim); font-size: 16px; }
.links-modal-row:hover .links-modal-go { color: var(--fg); }
/* 딥링크로 들어온 질문 — 질문 텍스트만 형광펜식 강조 (블록 강조 X) */
.faq-target .faq-q-text {
  background: rgba(120,170,255,.30);
  color: #fff;
  border-radius: 3px;
  padding: 1px 5px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------------- 모바일 (좁은 화면): 영상 상단 + 정보/FAQ 스크롤 ---------------- */
@media (max-width: 900px) {
  /* 상세는 스크롤 없음 — 스와이프로 다음/이전 영상 (틱톡식) */
  body.player {
    display: block;
    position: relative;
    height: 100vh;
    height: 100svh;
    height: var(--app-h, 100svh);   /* JS 실측 뷰포트 — 기기/브라우저 주소창·네비바 위로 하단 오게 */
    min-height: 0;                   /* 전역 body{min-height:100vh} 무력화 — 이게 body를 큰 뷰포트로
                                        늘려 info-panel(bottom:0)이 보이는 영역 밖에서 시작하던 진짜 원인 */
    overflow: hidden;
  }
  .stage-wrap { height: 100vh; height: 100svh; height: var(--app-h, 100svh); }
  /* 하단에 여백 확보 → 영상 컨트롤(스크러버)이 주소창 위로 확실히 */
  .stage { height: 100%; padding: 52px 6px calc(34px + env(safe-area-inset-bottom)); }
  .stage video {
    height: 100%;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
  }
  .img-stage { height: 100%; padding: 52px 8px 8px; }
  /* 여러 장 그리드(타임라인 상세): 하단 정보 오버레이 영역을 비워두고
     그 위 공간 기준으로 배치 + 세로(3:4)로 키워 위 공백 밸런스 맞춤.
     단일 이미지(9:16)는 영상처럼 꽉 차므로 제외(.multi 아님). */
  .img-stage.multi { padding-bottom: 200px; }
  .img-stage.multi .img-grid { aspect-ratio: 3 / 4; }

  /* 정보 = 영상 위 하단 오버레이. 빈 영역 터치는 영상 스와이프로 통과 */
  .info-panel {
    position: absolute;
    left: 0; right: 0; bottom: 0;   /* body가 실측 높이(--app-h)로 잡히므로 bottom:0 = 보이는 영역 바닥 */
    border-left: none;
    background: linear-gradient(transparent, rgba(0,0,0,.5) 26%, rgba(0,0,0,.92));
    padding: 46px 16px calc(16px + env(safe-area-inset-bottom));
    pointer-events: none;
    transition: transform .28s ease, opacity .24s ease;
  }
  /* 영상 탭 → 정보 아래로 숨김(영상 컨트롤 노출). ∧ 핸들로 복귀 */
  body.player.chrome-hidden .info-panel {
    transform: translateY(112%); opacity: 0; pointer-events: none;
  }
  .chrome-peek {
    position: fixed; left: 50%; z-index: 30;
    bottom: calc(64px + env(safe-area-inset-bottom));
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    background: rgba(0, 0, 0, .5);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px;
    color: #fff; cursor: pointer;
    opacity: 0; transform: translateX(-50%) translateY(8px);
    transition: opacity .24s ease, transform .24s ease;
    -webkit-tap-highlight-color: transparent;
  }
  body.player.chrome-hidden .chrome-peek {
    display: flex; opacity: 1; transform: translateX(-50%) translateY(0);
  }
  .info-inner { gap: 9px; }
  .info-inner > * { pointer-events: auto; }   /* 버튼·링크·트리거만 터치 (빈 곳은 스와이프) */
  .info-title {
    font-size: 17px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .info-desc {
    font-size: 12px; color: #d0d0d4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  /* 상세보기 + 자주 묻는 질문 을 나란히 (같은 파란 버튼 톤) */
  .info-more { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 2px; }
  /* 모바일: 인라인 OG 카드 대신 '링크' 버튼 → 팝업 (#info-og 만 — 팝업 안 .info-og 는 유지) */
  #info-og { display: none; }
  .info-more-btn:not([hidden]) {
    display: inline-flex; align-items: center; gap: 6px;
    height: 32px; padding: 0 14px; box-sizing: border-box;   /* 고정 높이 → 상세보기·FAQ 동일 */
    background: rgba(111, 177, 255, .13);
    border: 1px solid rgba(111, 177, 255, .4); border-radius: 8px;
    color: #6fb1ff; font: inherit; font-size: 12px; font-weight: 600;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .info-more-btn:active { filter: brightness(1.18); }
  /* FAQ·채널·링크 버튼은 상세보기(파랑)와 색 구분 — 중립 화이트 톤 (한 줄로 통일) */
  .info-more-btn.faq-btn,
  .info-more-btn.links-btn,
  .info-more-btn.og-btn {
    color: #ececf0;
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .3);
  }
  .info-more-btn.faq-btn .info-more-n,
  .info-more-btn.links-btn .info-more-n { background: rgba(255, 255, 255, .22); }
  /* 모바일: 소셜은 '채널' 팝업으로 이동, 링크복사는 헤더(브랜드 줄)로 이동 → .info-actions 숨김 */
  .info-actions { display: none; }
  .info-more-n {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 17px; height: 17px; padding: 0 5px;
    background: rgba(111, 177, 255, .25); border-radius: 999px;
    font-size: 10.5px; font-weight: 700; line-height: 1;
  }
  .info-more-n:empty { display: none; }
  .ext-link { padding: 6px 10px; font-size: 11px; }
  .share-toast { bottom: calc(40px + env(safe-area-inset-bottom)); pointer-events: none; }

  /* FAQ: 모바일은 시트가 fixed 오버레이라 인라인 컨테이너가 레이아웃에 끼면 안 됨.
     display:contents로 박스 제거 → FAQ 유무와 무관하게 소셜/링크복사 바닥 간격 동일. */
  .info-faq { display: contents; }
  /* 시트 안 답변은 3줄 미리보기 — 전체는 '상세보기' 팝업으로 */
  .faq-a {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .faq-detail { display: inline-flex; }   /* 모바일 시트: 상세보기 노출 (답변 있으면 항상) */
  .faq-trigger {
    display: inline-flex; align-items: center; gap: 7px;
    align-self: flex-start;
    padding: 8px 14px;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
    color: #fff; font: inherit; font-size: 12.5px; font-weight: 600;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .faq-trigger-n {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px;
    background: rgba(255,255,255,.22); border-radius: 999px;
    font-size: 11px; font-weight: 700; line-height: 1;
  }
  .faq-trigger-ico {
    width: 7px; height: 7px; flex: none; margin-left: 1px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: translateY(2px) rotate(-135deg);   /* 위로 튀어나오니 위쪽 화살표 */
  }

  .faq-sheet {
    position: fixed; inset: 0; z-index: 200;
    display: flex; align-items: flex-end; justify-content: center;
    background: rgba(0,0,0,.6);
    transition: opacity .24s ease;
  }
  .faq-sheet[hidden] { display: none; }
  .faq-sheet.closing { opacity: 0; }
  .faq-panel {
    width: 100%; max-width: 560px;
    max-height: 66vh; max-height: 66dvh;
    overflow-y: auto;
    background: #101012; border: 1px solid var(--line);
    border-radius: 18px 18px 0 0;
    padding: 0 18px calc(20px + env(safe-area-inset-bottom));
    animation: faqSheetUp .22s ease;
  }
  .faq-panel-head {
    position: sticky; top: 0; z-index: 1;
    display: flex; align-items: center; justify-content: space-between;
    background: #101012;
    margin-bottom: 6px; padding: 16px 0 12px;
    border-bottom: 1px solid var(--line);
  }
  .faq-panel-title {
    font-size: 14px; font-weight: 700;
    text-transform: none; letter-spacing: 0; color: var(--fg);
  }
  .faq-panel-close {
    display: block; flex: none;
    width: 34px; height: 34px; margin-right: -6px;
    background: none; border: none; color: var(--dim);
    font-size: 26px; line-height: 1; cursor: pointer;
  }

  /* 모바일은 화살표 숨김 — 스와이프로 처리 */
  .nav { display: none; }
}

@media (max-width: 600px) {
  .site-header { padding: 32px 16px 22px; }
}

/* ---- Thread 탭: 메타 Threads식 플랫 피드 (카드 박스 없음) ---- */
.grid.thread-mode {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 620px;
  margin: 0 auto;
  padding: 4px 16px 24px;
}
.grid.thread-mode .tl-year {
  border-bottom: 0;
}
.th-post {
  display: flex;
  gap: 12px;
  padding: 16px 2px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  cursor: pointer;
}
.th-post:last-child { border-bottom: none; }
/* 어드민 인라인 편집기(tl-post.tl-editing)가 끼어들 땐 카드 그대로 */
.grid.thread-mode .tl-post.tl-editing { margin: 12px 0; cursor: default; }
.th-rail {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.th-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #3a3a40;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  overflow: hidden;
}
.th-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.th-line {
  flex: 1 1 auto;
  width: 2px;
  min-height: 10px;
  margin-top: 8px;
  border-radius: 1px;
  background: rgba(255, 255, 255, .09);
}
.th-body { flex: 1 1 auto; min-width: 0; }
.th-head { display: flex; align-items: center; gap: 8px; min-height: 24px; }
.th-author {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
  white-space: nowrap;
}
.th-meta {
  display: flex;
  align-items: baseline;
  font-size: 12px;
  color: var(--dim);
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.th-meta > * + *::before { content: "·"; margin: 0 6px; }
.th-brand { font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.th-sp { flex: 1 1 auto; }
.th-head .tl-edit, .th-head .tl-share { align-self: center; margin: 0; }
.th-text {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .86);
  white-space: pre-line;
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* 미디어 캐러셀 — 원비율 가로 스크롤 (Threads식) */
.th-carousel {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.th-carousel::-webkit-scrollbar { display: none; }
.th-media {
  position: relative;
  flex: 0 0 auto;
  height: 250px;
  min-width: 140px;  /* 이미지 로딩 전 세로줄로 접히는 플래시 방지 */
  border-radius: 12px;
  overflow: hidden;
  background: #101014;
  border: 1px solid rgba(255, 255, 255, .05);
  scroll-snap-align: start;
}
.th-media img, .th-media video {
  height: 100%;
  width: auto;
  min-width: 100%;
  max-width: 420px;
  object-fit: cover;
  display: block;
}
.th-media .vid-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 26px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .7);
  pointer-events: none;
}
/* 1장짜리 — 잘림 없이 원비율 그대로, 세로만 제한 */
.th-carousel.th-single { overflow: visible; }
.th-carousel.th-single .th-media { height: auto; min-width: 140px; min-height: 140px; max-height: 460px; max-width: 100%; }
.th-carousel.th-single .th-media img,
.th-carousel.th-single .th-media video {
  height: auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
  max-height: 460px;
  object-fit: contain;
}
.th-foot { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.th-links { display: inline-flex; gap: 6px; }
/* 본문이 잘렸을 때만 나오는 인라인 '더 보기' — Threads식으로 본문 바로 아래 */
.th-more {
  display: inline-block;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dim);
  transition: color .15s;
}
.th-more[hidden] { display: none; }
.th-post:hover .th-more { color: var(--fg); }
/* OG 카드 — 타임라인 것 재사용하되 카드 여백 제거 */
.th-body .tl-og:not(:empty) { margin: 12px 0 0; }
@media (max-width: 600px) {
  .grid.thread-mode { padding: 2px 12px 20px; }
  .th-post { gap: 10px; padding: 14px 0 12px; }
  .th-avatar { width: 34px; height: 34px; font-size: 14px; }
  .th-media { height: 200px; }
  .th-media img, .th-media video { max-width: 320px; }
  .th-carousel.th-single .th-media,
  .th-carousel.th-single .th-media img,
  .th-carousel.th-single .th-media video { max-height: 380px; }
  .th-text { font-size: 13px; }
  .th-body .tl-og:not(:empty) { margin: 10px 0 0; }
}

/* ---- 이미지(스레드) 상세 — 좌측 세로 스택 + 우측 작성자 헤더 ---- */
/* 스테이지 안에서 이미지 전체를 원비율 세로 스택으로, 넘치면 좌측만 스크롤 */
.img-stage {
  overflow-y: auto;
  scrollbar-width: none;
}
.img-stage::-webkit-scrollbar { display: none; }
.img-grid.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(560px, 100%);
  aspect-ratio: auto;
  max-height: none;
  margin: auto;   /* 짧으면 세로 중앙, 넘치면 위부터 (flex overflow + auto margin) */
}
.img-grid.stack .img-grid-cell { border-radius: 12px; }
.img-grid.stack .img-grid-cell img,
.img-grid.stack .img-grid-cell video {
  width: 100%;
  height: auto;
  object-fit: contain;
}
/* 작성자 헤더 — 이미지 카드에서 제목 대신 (피드 th-head 와 동일 톤) */
.info-author { display: flex; align-items: center; gap: 10px; }
.info-author[hidden] { display: none; }
.info-title[hidden] { display: none; }  /* 모바일 -webkit-box 강제보다 우선 */
.ia-avatar {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
  user-select: none;
}
.ia-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ia-name { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
@media (max-width: 700px) {
  /* 구 모자이크용 3:4 비율 강제 해제 (규칙 특이도가 .stack 보다 높아 명시 오버라이드) */
  .img-stage.multi .img-grid.stack { aspect-ratio: auto; }
  .ia-avatar { width: 32px; height: 32px; font-size: 14px; }
  .ia-name { font-size: 14px; }
}

/* ---- 스레드 상세 (이미지 카드) — 한 컬럼 페이지, 영상 카드는 기존 2단 ---- */
body.player.thread-detail {
  display: block;
  height: auto;
  min-height: 100vh;
  overflow-y: auto;
}
body.player.thread-detail .stage-wrap,
body.player.thread-detail .info-panel { display: none; }
/* 백링크 — 페이지가 스크롤되므로 고정 + 배경 캡슐 */
body.player.thread-detail .back {
  position: fixed;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .1);
}
.thread-page { max-width: 640px; margin: 0 auto; padding: 68px 16px 48px; }
.thread-page[hidden] { display: none; }
.tp-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.tp-head .ia-avatar { width: 42px; height: 42px; font-size: 17px; }
.tp-head-info { flex: 1 1 auto; min-width: 0; }
.tp-author { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.tp-meta {
  display: flex;
  align-items: baseline;
  font-size: 12px;
  color: var(--dim);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
}
.tp-dot { margin: 0 6px; }
.tp-brand { font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.tp-head .tp-share { align-self: center; }
.tp-text {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .88);
  white-space: pre-line;
  word-break: keep-all;
}
/* 캐러셀 — 피드와 같은 클래스(th-*)를 상세용으로 키움 */
.tp-carousel { margin-top: 14px; }
.tp-carousel .th-media { height: 420px; cursor: zoom-in; }
.tp-carousel .th-media img,
.tp-carousel .th-media video { max-width: 560px; }
.tp-carousel.th-single .th-media {
  height: auto;
  max-height: 74vh;
}
.tp-carousel.th-single .th-media img,
.tp-carousel.th-single .th-media video { max-height: 74vh; }
.tp-links { display: flex; gap: 8px; margin-top: 16px; }
.tp-og:not(:empty) { margin-top: 14px; }
@media (max-width: 600px) {
  .thread-page { padding: 60px 12px 40px; }
  .tp-head .ia-avatar { width: 38px; height: 38px; font-size: 15px; }
  .tp-text { font-size: 14px; }
  .tp-carousel .th-media { height: 300px; }
  .tp-carousel .th-media img,
  .tp-carousel .th-media video { max-width: 320px; }
  .tp-carousel.th-single .th-media,
  .tp-carousel.th-single .th-media img,
  .tp-carousel.th-single .th-media video { max-height: 64vh; }
}

/* ---- 스레드 상세 캐러셀 — 데스크톱 좌우 화살표 (호버 노출) ---- */
.tp-car-wrap { position: relative; margin-top: 14px; }
.tp-car-wrap .tp-carousel { margin-top: 0; }
.tp-car-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 22px;
  line-height: 1;
  padding: 0 0 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .15s, background .15s;
  z-index: 2;
}
.tp-car-nav.prev { left: 10px; }
.tp-car-nav.next { right: 10px; }
.tp-car-wrap:hover .tp-car-nav { opacity: 1; }
.tp-car-nav:hover { background: rgba(0, 0, 0, .78); }
.tp-car-nav.off { opacity: 0 !important; pointer-events: none; }
/* 터치 기기 — 화살표 숨김 (스와이프가 기본) */
@media (hover: none) { .tp-car-nav { display: none; } }

/* ================================================================
   v109 — editorial reset
   A quiet, product-led visual system inspired by modern AI tools.
   ================================================================ */
:root {
  --bg: #f7f7f4;
  --fg: #181817;
  --dim: #73716b;
  --line: #dfded8;
  --paper: #ffffff;
  --soft: #efeee9;
  --accent: #1f5eff;
  color-scheme: light;
}

html, body { background: var(--bg); }
body {
  color: var(--fg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  letter-spacing: -.01em;
}

/* Gallery masthead */
.site-header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 78px 32px 48px;
  text-align: left;
  border: 0;
}
.header-kicker {
  margin-bottom: 22px;
  color: var(--dim);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.logo {
  max-width: 780px;
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 590;
  line-height: .92;
  letter-spacing: -.065em;
}
.logo span {
  display: block;
  margin: 6px 0 0;
  color: #aaa8a0;
  font-weight: 420;
}
.bio {
  max-width: 550px;
  margin-top: 28px;
  color: #5d5b56;
  font-size: 15px;
  line-height: 1.7;
}
.header-rule {
  width: 100%;
  height: 1px;
  margin-top: 44px;
  background: var(--line);
}
.site-header .lang { top: 24px; right: 32px; }
.admin-link {
  top: 24px; left: 32px;
  color: var(--fg);
  background: rgba(247,247,244,.82);
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(24,24,23,.04);
}
.admin-link:hover { background: #fff; border-color: #c8c6bf; }

/* Navigation */
.tabs {
  position: sticky;
  top: 0;
  z-index: 15;
  justify-content: flex-start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 32px;
  gap: 22px;
  background: rgba(247,247,244,.88);
  border: 0;
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.tab-btn {
  padding: 8px 0;
  border-radius: 0;
  color: #8a8881;
  font-size: 13px;
  font-weight: 520;
  letter-spacing: -.01em;
}
.tab-btn:hover { color: var(--fg); }
.tab-btn.on {
  color: var(--fg);
  background: transparent;
  box-shadow: inset 0 -1px 0 var(--fg);
}
.tab-count,
.tab-btn.on .tab-count {
  min-width: 20px;
  padding: 1px 5px;
  color: var(--dim);
  background: var(--soft);
  text-align: center;
}

/* Work grid */
.grid {
  max-width: 1180px;
  padding: 32px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.cell {
  aspect-ratio: 4 / 5;
  border-radius: 5px;
  background: #e9e8e3;
  box-shadow: 0 0 0 1px rgba(24,24,23,.07);
}
.cell .thumb { transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .3s; }
.cell:hover .thumb { transform: scale(1.025); filter: brightness(.72); }
.cell .cap {
  padding: 58px 18px 18px;
  background: linear-gradient(transparent, rgba(0,0,0,.74));
}
.cell .cap-title { font-size: 15px; font-weight: 590; letter-spacing: -.02em; }
.cell .cap-meta { color: rgba(255,255,255,.68); }
.cell .badge, .cell .langs-badge { top: 12px; }
.cell .badge { right: 14px; }
.cell .langs-badge {
  left: 14px;
  padding: 4px 7px;
  border-radius: 4px;
  background: rgba(0,0,0,.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.brands-line, .site-footer { color: var(--dim); }
.site-footer {
  max-width: 1116px;
  margin: 36px auto 0;
  padding: 24px 0 42px;
  border-top: 1px solid var(--line);
  text-align: left;
}

/* Shared quiet controls */
.lang-trigger {
  color: var(--fg);
  background: rgba(247,247,244,.82);
  border-color: var(--line);
  border-radius: 7px;
  box-shadow: 0 1px 2px rgba(24,24,23,.04);
}
.lang-trigger:hover { background: #fff; border-color: #c8c6bf; }
.lang-menu {
  background: rgba(255,255,255,.96);
  border-color: var(--line);
  box-shadow: 0 16px 44px rgba(24,24,23,.12);
}
.lang-opt { color: var(--dim); }
.lang-opt:hover { color: var(--fg); background: var(--soft); }
.brand-chip {
  color: var(--fg);
  background: var(--paper);
  border-color: var(--line);
  box-shadow: 0 4px 18px rgba(24,24,23,.06);
}
.brand-chip-x:hover { background: var(--soft); }
.feed-spin { border-color: #d4d2cb; border-top-color: var(--fg); }

/* Brand and About pages */
.grid.brand-mode, .grid.about-mode { max-width: 1040px; }
.brand-hero, .about-page { text-align: left; }
.brand-hero { padding: 36px 0 30px; }
.brand-hero-title, .about-headline {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 560;
  line-height: 1.02;
  letter-spacing: -.05em;
}
.brand-hero-sub, .about-text { margin-left: 0; }
.brand-stat, .brand-tile, .brand-cta, .member-card, .channel-card, .about-section {
  background: var(--paper);
  border-color: var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(24,24,23,.025);
}
.brand-tile:hover, .channel-card:hover {
  background: var(--paper);
  border-color: #aaa8a0;
  transform: translateY(-2px);
}
.brand-wordmark, .bs-num, .member-name, .channel-name { color: var(--fg); }
.brand-form input, .brand-form textarea {
  color: var(--fg);
  background: var(--bg);
  border-color: var(--line);
}
.bf-send { background: var(--fg); color: #fff; }
.contact-copy:hover { color: var(--fg); background: var(--soft); }

/* Timeline / threads */
.grid.timeline-mode, .grid.thread-mode { max-width: 760px; }
.tl-year {
  background: rgba(247, 247, 244, .92);
  border-bottom: 1px solid rgba(223, 222, 216, .72);
}
.tl-year-label {
  color: #65635d;
  background: #efeee9;
  border-color: #dfded8;
  font-weight: 650;
}
.tl-year-line { background: #d7d5ce; }
.tl-post {
  background: var(--paper);
  border-color: var(--line);
  border-radius: 8px;
}
.tl-post:hover { border-color: #bbb9b2; background: var(--paper); }
.tl-title, .tl-author, .th-name, .tp-author { color: var(--fg); }
.tl-text, .th-text, .tp-text { color: #3e3d39; }
.grid.thread-mode {
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 48px;
}
.th-post {
  padding: 22px 2px 26px;
  border-bottom: 0;
}
.th-post + .th-post { margin-top: 4px; }
.th-head { margin-bottom: 2px; }
.th-text { margin-top: 7px; line-height: 1.68; }
.th-carousel { margin-top: 14px; }
.th-foot { margin-top: 13px; }
.th-media, .img-grid.stack .img-grid-cell { border-radius: 6px; }
.og-card, .tl-og-card {
  color: var(--fg);
  background: var(--bg);
  border-color: var(--line);
}
.og-card:hover, .tl-og-card:hover { background: var(--soft); border-color: #c8c6bf; }

/* Detail page — media stays cinematic, information becomes paper-like */
body.player {
  background: #11110f;
  color: #f7f7f4;
}
body.player .back {
  color: rgba(255,255,255,.72);
  font-weight: 520;
}
.stage { background: #090909; }
.stage video, .img-stage { background: #090909; }
.info-panel {
  background: #f7f7f4;
  border-color: #deddd7;
  color: #181817;
}
.info-title { color: #181817; letter-spacing: -.035em; }
.info-desc, .info-date, .info-brand, .info-more-btn { color: #65635d; }
.info-brand { color: #181817; }
.info-links a, .info-more-btn {
  background: #fff;
  border-color: #deddd7;
}
.info-links a:hover, .info-more-btn:hover { background: #efeee9; }
.brand-share { color: #65635d; border-color: #deddd7; background: #fff; }
body.player.thread-detail { background: var(--bg); color: var(--fg); }
body.player.thread-detail .back {
  color: var(--fg);
  background: rgba(247,247,244,.88);
  border-color: var(--line);
}

/* Admin surfaces inherit the same neutral palette. */
body.admin, body.login { background: var(--bg); color: var(--fg); }
body.login .login-card,
body.admin .row {
  background: var(--paper);
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(24,24,23,.04);
}

@media (max-width: 760px) {
  .site-header { padding: 64px 20px 32px; }
  .site-header .lang { top: 16px; right: 16px; }
  .admin-link { top: 16px; left: 16px; }
  .header-kicker { margin-bottom: 18px; }
  .logo { font-size: clamp(42px, 14vw, 64px); }
  .bio { margin-top: 22px; font-size: 14px; }
  .header-rule { margin-top: 32px; }
  .tabs { padding: 10px 20px; gap: 20px; }
  .grid { padding: 20px; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell { border-radius: 4px; }
  .cell .cap { padding: 46px 12px 12px; }
  .site-footer { margin: 24px 20px 0; padding-bottom: 32px; }
}

@media (max-width: 430px) {
  .site-header { padding-top: 58px; }
  .grid { padding: 12px; gap: 6px; }
  .cell .cap-title { font-size: 13px; }
  .cell .cap-meta { font-size: 10px; }
  .grid.thread-mode {
    gap: 8px;
    padding: 10px 16px 36px;
  }
  .th-post { padding: 20px 0 24px; }
}

/* v112 — public light/dark theme */
.site-controls {
  position: absolute;
  top: 24px;
  right: 32px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-controls .lang {
  position: relative;
  top: auto !important;
  right: auto !important;
}
.site-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  height: 34px;
  padding: 0 10px;
  color: var(--fg);
  background: rgba(247,247,244,.82);
  border: 1px solid var(--line);
  border-radius: 7px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(24,24,23,.04);
}
.site-controls .lang-trigger { min-height: 34px; box-sizing: border-box; }
.theme-icon {
  display: block;
  width: 15px;
  color: currentColor;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}
.theme-text {
  color: currentColor;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0;
}
.site-theme-toggle:hover { background: var(--paper); }
.brand-tile.preserve-dark-logo { background: #0e0f12; }
.brand-tile.preserve-dark-logo:hover { background: #15171b; }

html[data-site-theme="dark"] {
  --bg: #0d0e10;
  --fg: #f4f4f2;
  --dim: #989993;
  --line: #2b2d31;
  --paper: #15171a;
  --soft: #202328;
  --accent: #78a3ff;
  color-scheme: dark;
}
html[data-site-theme="dark"] .bio,
html[data-site-theme="dark"] .brand-hero-sub,
html[data-site-theme="dark"] .about-text { color: #b6b7b2; }
html[data-site-theme="dark"] .logo span { color: #777973; }
html[data-site-theme="dark"] .tabs {
  background: rgba(13,14,16,.88);
  border-color: var(--line);
}
html[data-site-theme="dark"] .tab-btn { color: #8f918c; }
html[data-site-theme="dark"] .lang-trigger,
html[data-site-theme="dark"] .admin-link,
html[data-site-theme="dark"] .site-theme-toggle {
  color: var(--fg);
  background: rgba(13,14,16,.82);
  border-color: var(--line);
  box-shadow: none;
}
html[data-site-theme="dark"] .lang-trigger:hover,
html[data-site-theme="dark"] .admin-link:hover,
html[data-site-theme="dark"] .site-theme-toggle:hover { background: var(--soft); }
html[data-site-theme="dark"] .lang-menu {
  background: rgba(21,23,26,.97);
  border-color: var(--line);
  box-shadow: 0 16px 44px rgba(0,0,0,.34);
}
html[data-site-theme="dark"] .brand-stat,
html[data-site-theme="dark"] .brand-tile,
html[data-site-theme="dark"] .brand-cta,
html[data-site-theme="dark"] .member-card,
html[data-site-theme="dark"] .channel-card,
html[data-site-theme="dark"] .about-section,
html[data-site-theme="dark"] .tl-post {
  background: var(--paper);
  border-color: var(--line);
  box-shadow: none;
}
html[data-site-theme="dark"] .brand-tile:hover,
html[data-site-theme="dark"] .channel-card:hover,
html[data-site-theme="dark"] .tl-post:hover {
  background: #1a1c20;
  border-color: #494c52;
}
html[data-site-theme="dark"] .brand-form input,
html[data-site-theme="dark"] .brand-form textarea,
html[data-site-theme="dark"] .og-card,
html[data-site-theme="dark"] .tl-og-card {
  color: var(--fg);
  background: var(--bg);
  border-color: var(--line);
}
html[data-site-theme="dark"] .bf-send { color: #101114; background: var(--fg); }
html[data-site-theme="dark"] .tl-year {
  background: rgba(13,14,16,.92);
  border-color: var(--line);
}
html[data-site-theme="dark"] .tl-year-label {
  color: #b8b9b4;
  background: var(--soft);
  border-color: var(--line);
}
html[data-site-theme="dark"] .tl-year-line { background: var(--line); }
html[data-site-theme="dark"] .tl-text,
html[data-site-theme="dark"] .th-text,
html[data-site-theme="dark"] .tp-text { color: #d0d1cd; }
html[data-site-theme="dark"] body.player .info-panel {
  color: var(--fg);
  background: var(--paper);
  border-color: var(--line);
}
html[data-site-theme="dark"] body.player .info-title,
html[data-site-theme="dark"] body.player .info-brand { color: var(--fg); }
html[data-site-theme="dark"] body.player .info-desc,
html[data-site-theme="dark"] body.player .info-date,
html[data-site-theme="dark"] body.player .info-more-btn { color: var(--dim); }
html[data-site-theme="dark"] body.player .info-links a,
html[data-site-theme="dark"] body.player .info-more-btn,
html[data-site-theme="dark"] body.player .brand-share {
  color: var(--fg);
  background: var(--soft);
  border-color: var(--line);
}
html[data-site-theme="dark"] body.player.thread-detail .back {
  color: var(--fg);
  background: rgba(13,14,16,.88);
  border-color: var(--line);
}

/* v115 — About editorial layout */
.grid.about-mode { max-width: 960px; }
.about-page { padding: 24px 32px 72px; }
.about-page .about-section { margin: 0; }
.about-page .about-bio {
  padding: 58px 0 54px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}
.about-bio .about-label { margin-bottom: 22px; }
.about-bio .about-headline { margin-bottom: 28px; }
.about-bio .about-text {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.75;
}
.about-page .about-members,
.about-page .about-channels {
  padding: 42px 0 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.about-page .about-label {
  margin-bottom: 18px;
  color: color-mix(in srgb, var(--fg) 66%, transparent);
}
.about-page .member-grid { gap: 14px; }
.about-page .member-card {
  min-height: 112px;
  padding: 22px;
  align-items: center;
  border-radius: 10px;
}
.about-page .member-avatar { width: 68px; height: 68px; }
.about-page .member-name { font-size: 18px; }
.about-page .member-bio { margin-top: 6px; line-height: 1.6; }
.about-page .member-bio,
.about-page .channel-handle {
  color: color-mix(in srgb, var(--fg) 68%, transparent);
}
.about-page .channel-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.about-page .channel-card {
  min-height: 72px;
  padding: 15px 16px;
  border-radius: 10px;
}
.about-page .channel-card:hover { border-color: var(--ch-color); }
.about-page .channel-dot {
  width: 8px;
  height: 8px;
  box-shadow: none;
}
.about-page .about-contact {
  margin-top: 52px;
  padding: 34px;
  color: #fff;
  background: #1f5eff;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
}
.about-contact .about-label,
.about-contact .about-text,
.about-contact .contact-email { color: #fff !important; }
.about-contact .about-label { opacity: .72; }
.about-contact .contact-note {
  max-width: 620px;
  font-size: 16px;
}
.about-contact .contact-row {
  margin-top: 20px;
  padding: 10px 12px 10px 16px;
  background: rgba(0,0,0,.14);
  border-color: rgba(255,255,255,.22);
}
.about-contact .contact-copy {
  color: #fff;
  background: rgba(255,255,255,.14);
}
.about-contact .contact-copy:hover { background: rgba(255,255,255,.24); }
html[data-site-theme="dark"] .about-page .about-bio,
html[data-site-theme="dark"] .about-page .about-members,
html[data-site-theme="dark"] .about-page .about-channels {
  background: transparent;
  border-color: var(--line);
}
html[data-site-theme="dark"] .about-page .about-label {
  color: color-mix(in srgb, var(--fg) 72%, transparent);
}

@media (max-width: 760px) {
  .about-page { padding: 8px 20px 52px; }
  .about-page .about-bio { padding: 42px 0 40px; }
  .about-bio .about-text { font-size: 15px; }
  .about-page .about-members,
  .about-page .about-channels { padding-top: 34px; }
  .about-page .channel-grid { grid-template-columns: 1fr 1fr; }
  .about-page .about-contact { margin-top: 40px; padding: 26px 22px; }
}
@media (max-width: 520px) {
  .about-page { padding-inline: 16px; }
  .about-page .member-grid,
  .about-page .channel-grid { grid-template-columns: 1fr; }
  .about-page .member-card { min-height: 0; padding: 18px; }
  .about-page .member-avatar { width: 58px; height: 58px; }
}

/* v118 — About complete redesign */
.grid.about-mode { max-width: 1080px; }
.about-page { padding: 10px 32px 88px; }
.about-page .about-bio {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--line);
}
.about-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 54px;
}
.about-hero-top .about-label { margin: 0; }
.about-hero-mark {
  color: var(--fg);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: -.02em;
}
.about-hero-mark span { color: var(--dim); font-weight: 520; }
.about-hero-statement {
  max-width: 940px;
  margin: 0;
  color: var(--fg);
  font-size: clamp(44px, 7vw, 82px);
  font-weight: 590;
  line-height: .98;
  letter-spacing: -.06em;
}
.about-hero-statement span {
  color: color-mix(in srgb, var(--fg) 42%, transparent);
  font-weight: 430;
}
.about-hero-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr);
  gap: 64px;
  align-items: end;
  margin-top: 52px;
}
.about-hero-bottom .about-text {
  max-width: 650px;
  font-size: 16px;
  line-height: 1.8;
}
.about-fields {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.about-fields span {
  padding: 10px 0;
  color: color-mix(in srgb, var(--fg) 70%, transparent);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.about-page .about-members,
.about-page .about-channels { padding-top: 68px; }
.about-section-head {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  margin-bottom: 28px;
}
.about-section-head .about-label { margin: 0; }
.about-section-head h3 {
  max-width: 620px;
  margin: 0;
  color: var(--fg);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 560;
  line-height: 1.1;
  letter-spacing: -.04em;
}
.about-page .member-grid { gap: 1px; background: var(--line); }
.about-page .member-card {
  min-height: 210px;
  padding: 30px;
  align-items: flex-start;
  background: var(--paper);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.about-page .member-avatar {
  width: 82px;
  height: 82px;
}
.about-page .member-info { align-self: stretch; display: flex; flex-direction: column; }
.about-page .member-name {
  margin-top: 2px;
  font-size: 22px;
  letter-spacing: -.03em;
}
.about-page .member-bio { max-width: 320px; font-size: 13px; }
.about-page .member-links { margin-top: auto; padding-top: 18px; }
.about-page .member-link {
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid currentColor;
}
.about-page .channel-grid {
  display: block;
  border-top: 1px solid var(--line);
}
.about-page .channel-card {
  display: grid;
  grid-template-columns: 36px 12px minmax(0, 1fr) 28px;
  gap: 12px;
  min-height: 0;
  padding: 18px 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  transform: none;
}
.about-page .channel-card:hover {
  color: var(--fg);
  background: var(--soft);
  border-color: var(--line);
  transform: none;
}
.channel-index {
  text-align: left;
  color: color-mix(in srgb, var(--fg) 38%, transparent);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .08em;
}
.about-page .channel-dot { align-self: center; }
.about-page .channel-info {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.about-page .channel-name { min-width: 110px; font-size: 16px; }
.about-page .channel-handle { margin: 0; }
.about-page .channel-arrow {
  width: 28px;
  text-align: right;
}
.about-page .about-contact {
  position: relative;
  margin-top: 76px;
  padding: 52px;
  overflow: hidden;
  border-radius: 0;
}
.about-page .about-contact::after {
  content: "↗";
  position: absolute;
  top: 18px;
  right: 28px;
  color: rgba(255,255,255,.18);
  font-size: 88px;
  font-weight: 300;
  line-height: 1;
}
.about-contact-title {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 560;
  line-height: 1.04;
  letter-spacing: -.045em;
}
.about-contact .contact-note { position: relative; z-index: 1; }
.about-contact .contact-row {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin-top: 28px;
}
html[data-site-theme="dark"] .about-page .member-card,
html[data-site-theme="dark"] .about-page .channel-card {
  background: var(--paper);
}
html[data-site-theme="dark"] .about-page .channel-card:hover {
  background: var(--soft);
}

@media (max-width: 760px) {
  .about-page { padding: 0 20px 60px; }
  .about-page .about-bio { padding: 52px 0 46px; }
  .about-hero-top { margin-bottom: 38px; }
  .about-hero-statement { font-size: clamp(40px, 12vw, 62px); }
  .about-hero-bottom { grid-template-columns: 1fr; gap: 32px; margin-top: 36px; }
  .about-page .about-members,
  .about-page .about-channels { padding-top: 50px; }
  .about-section-head { grid-template-columns: 1fr; gap: 8px; }
  .about-section-head .about-label { margin: 0; }
  .about-page .member-grid { grid-template-columns: 1fr; }
  .about-page .member-card { min-height: 180px; }
  .about-page .about-contact { margin-top: 58px; padding: 36px 28px; }
}
@media (max-width: 520px) {
  .about-page { padding-inline: 16px; }
  .about-hero-top { align-items: flex-start; }
  .about-hero-mark { text-align: right; }
  .about-page .member-card { min-height: 0; padding: 22px; }
  .about-page .member-avatar { width: 64px; height: 64px; }
  .about-page .channel-card {
    grid-template-columns: 30px 10px minmax(0, 1fr) 24px;
    gap: 10px;
    padding: 16px 8px;
  }
  .about-page .channel-info { display: block; }
  .about-page .channel-name { min-width: 0; }
  .about-page .channel-handle { margin-top: 3px; font-size: 10px; }
  .about-page .about-contact { padding: 30px 22px; }
  .about-page .about-contact::after { font-size: 64px; right: 14px; }
}

/* v121 — discovery, selected work, trust and admin logo variants */
.about-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

/* v122 — public account entry */
.site-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  box-sizing: border-box;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--dim);
  font-size: 11px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.site-signin:hover,
.site-signin:focus-visible {
  color: var(--fg);
  border-color: var(--dim);
}

.footer-legal { display: inline-flex; gap: 10px; margin-left: 12px; }
.footer-legal a { color: inherit; text-decoration: none; opacity: .62; }
.footer-legal a:hover { opacity: 1; }
.about-trust > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}
.about-trust > div:first-child { padding-left: 0; }
.about-trust > div:last-child { border-right: 0; }
.about-trust strong {
  color: var(--fg);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 570;
  line-height: 1;
  letter-spacing: -.045em;
}
.about-trust span {
  color: color-mix(in srgb, var(--fg) 58%, transparent);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.about-page .about-selected { padding-top: 68px; }
.about-selected-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.about-work {
  min-width: 0;
  color: var(--fg);
  text-decoration: none;
}
.about-work-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--soft);
}
.about-work-media > .thumb,
.about-work-media > .cell-mosaic {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-work-media .cell-mosaic { position: absolute; inset: 0; }
.about-work-media img,
.about-work-media video { transition: transform .35s ease; }
.about-work:hover .about-work-media img,
.about-work:hover .about-work-media video { transform: scale(1.025); }
.about-work-index {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 6px;
  color: #fff;
  background: rgba(0,0,0,.54);
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
}
.about-work-meta {
  min-height: 15px;
  margin-top: 12px;
  color: color-mix(in srgb, var(--fg) 55%, transparent);
  font-size: 10px;
  letter-spacing: .02em;
}
.about-work-title {
  margin-top: 5px;
  overflow: hidden;
  color: var(--fg);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.about-selected-loading {
  aspect-ratio: 4 / 3;
  background: linear-gradient(100deg, var(--soft) 20%, var(--paper) 40%, var(--soft) 60%);
  background-size: 200% 100%;
  animation: about-loading 1.2s linear infinite;
}
@keyframes about-loading { to { background-position: -200% 0; } }
.about-proposal-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-top: 18px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.7);
}
.about-proposal-link::after { content: " ↗"; }

.brand-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 220px);
  gap: 10px;
  margin: 0 0 18px;
}
.brand-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  color: var(--dim);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.brand-search-wrap input {
  min-width: 0;
  width: 100%;
  padding: 0;
  color: var(--fg);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 13px;
}
#brand-category-filter {
  min-height: 42px;
  padding: 0 32px 0 12px;
  color: var(--fg);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
}
.brand-search-wrap:focus-within,
#brand-category-filter:focus {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}
.brand-no-results {
  grid-column: 1 / -1;
  padding: 72px 20px;
  color: var(--dim);
  text-align: center;
  font-size: 13px;
}
.brand-cta { scroll-margin-top: 72px; }
.brand-admin { gap: 4px; }
.brand-logo-up {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .02em;
}
.brand-logo-up.tone-dark { background: rgba(14,14,20,.82); color: #fff; }
.brand-logo-up.tone-light { background: rgba(255,255,255,.9); color: #202226; }

.site-theme-toggle:focus-visible,
.lang-trigger:focus-visible,
.tab-btn:focus-visible,
.brand-tile:focus-visible,
.channel-card:focus-visible,
.about-work:focus-visible,
.about-proposal-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .about-trust > div { padding: 22px 14px; }
  .about-trust > div:first-child { padding-left: 0; }
  .about-selected-grid { grid-template-columns: 1fr 1fr; }
  .about-work:last-child { display: none; }
  .brand-tools { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .about-trust { grid-template-columns: 1fr; }
  .about-trust > div,
  .about-trust > div:first-child {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .about-trust > div:last-child { border-bottom: 0; }
  .about-trust strong { font-size: 30px; }
  .about-selected-grid { grid-template-columns: 1fr; }
  .about-work:last-child { display: block; }
  .brand-tools { margin-inline: 0; }
}

@media (max-width: 760px) {
  .site-controls { top: 16px; right: 16px; }
}
