/* notices.css — 예고판 상단 「소식」 막대 (v2.7 → v4.6.4 개편). layout.css 토큰 재사용. 아래 --ntc-* 는 어둡게 값(밝게 = theme.css).
   (v4.6.4) 디자인 = 운영자 승인 시안 — PC 는 날짜별 묶음, 모바일(≤767px)은 분류 칩 막대 + 카드. 제목은 둘 다 15.5px 한 줄(넘치면 …).
   소식 줄 · 카드를 누르면 「소식 팝업 카드」(PC = 줄 옆 팝업 .ntc__pop, 모바일 = 아래 시트 .ntc-sheet). 마크업은 js/notices.js. */

:root {
  --ntc-surface2: #202225;
  --ntc-hover: #202226;
  --ntc-faint: #6f6f6f;
  --ntc-border-soft: #2a2a2a;
  --ntc-focus: #4fa89c;                    /* 키보드 포커스 테두리 */
  --ntc-dsoon: #e08a2e;                    /* D-7 이내 — 주황 */
  --ntc-today-bg: #d91c2a;                 /* TODAY — 빨강 바탕 흰 글자 */
  --ntc-today-fg: #ffffff;
  --ntc-lamp-off: #3a1414;                 /* 오늘 소식 없을 때 램프 */
  --ntc-shadow: rgba(0, 0, 0, 0.55);
  --ntc-accent: #b3a6ec;                   /* 고정된 팝업 테두리 · 팝업 링크 */
  --ntc-scrim: rgba(0, 0, 0, 0.55);        /* 모바일 시트 뒤 배경 */
  /* (v4.6.4) 분류 6색 — 아이콘 · 칩 · 분류 이름 */
  --ntc-cat-live: #f27bb5;                 /* 라이브 */
  --ntc-cat-event: #3fc1ad;                /* 행사 */
  --ntc-cat-broadcast: #63a9f5;            /* 방송출연 */
  --ntc-cat-goods: #ad97f5;                /* 음원·굿즈·출판 */
  --ntc-cat-game: #8bd06f;                 /* 게임 */
  --ntc-cat-etc: #a3abbd;                  /* 기타 */
  /* (v4.7.0) 라이브공연 탭 공연별 묶음 */
  --ntc-lg-ink: #1a0d14;                   /* 공연일 타일 · D-day 배지(라이브공연 색 바탕) 위 글자 */
  --ntc-lg-head: rgba(242, 123, 181, 0.07);/* 다가오는 공연 머리 바탕(라이브공연 색을 옅게) */
  --ntc-lg-rows: #141414;                  /* 하위 소식 칸 — 머리보다 어둡게 */
  --ntc-lg-past: #1d1d1d;                  /* 지난 공연 머리 · 타일 */
  --ntc-item-h: 2.2rem;                    /* 접힌 막대 높이 — 모바일 layout.css --m-notice 가 이 높이를 전제로 한다 */
  --ntc-ja: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP",
            -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

#notice.ntc {
  position: relative;               /* 펼친 목록(.ntc__list)의 오버레이 기준 */
  max-width: var(--content-max);
  margin: var(--gap) auto 0;
  padding: 0 var(--page-pad);
}
#notice[hidden] { display: none; }

/* ── 분류 → 색 (모바일 시트는 #notice 밖 body 에 붙으므로 같이) ── */
:is(.ntc, .ntc-sheet) [data-cat] { --c: var(--ntc-cat-etc); }
:is(.ntc, .ntc-sheet) [data-cat="live"]      { --c: var(--ntc-cat-live); }
:is(.ntc, .ntc-sheet) [data-cat="event"]     { --c: var(--ntc-cat-event); }
:is(.ntc, .ntc-sheet) [data-cat="broadcast"] { --c: var(--ntc-cat-broadcast); }
:is(.ntc, .ntc-sheet) [data-cat="goods"]     { --c: var(--ntc-cat-goods); }
:is(.ntc, .ntc-sheet) [data-cat="game"]      { --c: var(--ntc-cat-game); }
:is(.ntc, .ntc-sheet) [data-cat="all"]       { --c: var(--color-text); }

/* ── 아이콘 ── */
.ntc__ic {
  flex: none; width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.ntc__ic--fill { fill: currentColor; stroke: none; }
.ntc__cat {
  display: inline-grid; place-items: center; flex: none;
  width: 24px; height: 24px; border-radius: 7px;
  color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent);
}
.ntc__cat--lg { width: 36px; height: 36px; border-radius: 10px; }
.ntc__cat--lg .ntc__ic { width: 20px; height: 20px; }

/* ── 막대 ── */
.ntc__bar {
  display: flex;
  align-items: stretch;
  height: var(--ntc-item-h);
  overflow: hidden;
  background: var(--color-bg-secondary);
  border: 1px solid var(--ntc-border-soft);
  border-radius: 6px;
}
/* 펼쳐도 막대 자체는 한 줄 그대로 — 아래 예고 영역을 밀지 않는다. 전체 목록은 .ntc__list 가 오버레이로 뜬다. */
.ntc.is-open .ntc__bar { border-bottom: 1px solid var(--ntc-border-soft); border-radius: 6px 6px 0 0; }

.ntc__tag {
  flex: none;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0 0.75rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--color-text-muted);
  border-right: 1px solid var(--ntc-border-soft);
}
.ntc.is-open .ntc__tag { color: var(--color-text); border-right: none; }
.ntc__lamp {
  flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ntc-lamp-off);
}
.ntc.has-today .ntc__lamp {
  background: var(--color-live);
  animation: ntc-lamp 2.4s ease-in-out infinite;
}
@keyframes ntc-lamp {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px 1px color-mix(in srgb, var(--color-live) 60%, transparent); }
  50%      { opacity: 0.22; box-shadow: 0 0 0 0 transparent; }
}
.ntc__all { font-weight: 400; letter-spacing: 0; color: var(--color-text-muted); margin-left: 0.35rem; }
.ntc__all[hidden] { display: none; }

/* (v4.7.5) 「소식」 글자는 모바일처럼 PC 에서도 숨긴다 — 램프 · 분류 칩이 그 자리를 대신한다 */
.ntc__label { display: none; }

/* (v4.7.5) 접힌 막대의 분류 칩(PC · 모바일 공통) — 움직이지 않음, 누르면 그 분류로 펼침.
   PC = [램프] [분류 칩] [요약] [5초 티커] [▾] [테마], 모바일 = [램프] [분류 칩] [▾] [테마] */
.ntc__chipbar {
  flex: none; display: flex; align-items: center; gap: 4px; padding: 0 6px;
  border-right: 1px solid var(--ntc-border-soft);
}
.ntc.is-open .ntc__chipbar { visibility: hidden; }
.ntc__cchip {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 3px; height: 26px; padding: 0 6px;
  border: 0; border-radius: 999px; cursor: pointer;
  color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent);
  font: inherit; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.ntc__cchip:hover { background: color-mix(in srgb, var(--c) 26%, transparent); }
.ntc__cchip .ntc__ic { width: 14px; height: 14px; }
.ntc__cchip:focus-visible { outline: 2px solid var(--ntc-focus); outline-offset: -2px; }
/* (v4.7.5) 오늘 들어온 소식이 있는 분류 = 칩 오른쪽 위에 겹친 빨간 점(움직이지 않음). 칩 폭을 늘리지 않으려고 겹쳐 둔다 —
   모바일 390px 에서 칩 6개가 막대에 다 들어간다. 테두리 = 막대 바탕색이라 칩과 떨어져 보인다 */
.ntc__cdot {
  position: absolute; top: 1px; right: 0; width: 7px; height: 7px; border-radius: 50%;
  background: #e5384a; box-shadow: 0 0 0 1.5px var(--color-bg-secondary); pointer-events: none;
}

/* PC 막대 왼쪽 요약 「오늘 n · 7일 안 n」 */
.ntc__sum {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 0 12px; font-size: 12.5px; color: var(--color-text-muted); white-space: nowrap;
  border-right: 1px solid var(--ntc-border-soft);
}
.ntc__sum b { color: var(--color-text); font-variant-numeric: tabular-nums; }
.ntc.is-open .ntc__sum { display: none; }

.ntc__ticker { position: relative; flex: 1; min-width: 0; overflow: hidden; }
.ntc__empty {
  display: flex; align-items: center; height: 100%;
  padding: 0 0.8rem;
  font-size: 0.75rem; color: var(--ntc-faint);
}
.ntc.is-empty .ntc__tgl { color: var(--color-border); cursor: default; }
.ntc.is-empty .ntc__tgl:hover { color: var(--color-border); background: transparent; }
.ntc__track { display: block; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.ntc.is-open .ntc__ticker { display: none; }

/* PC 티커 한 줄: [D-day] [분류 아이콘] [제목] [날짜 (요일) 시각] */
.ntc__trow {
  display: grid; grid-template-columns: auto 24px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  height: var(--ntc-item-h); padding: 0 12px;
}
.ntc__trow .ntc__ttl { font-size: 14.5px; cursor: pointer; }   /* 누르면 목록을 펼치고 그 소식 팝업을 고정 */
.ntc__trow .ntc__ttl[data-pin]:hover { text-decoration: underline; text-underline-offset: 3px; }
.ntc__when { font-size: 12.5px; color: var(--color-text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

.ntc__tgl {
  flex: none; width: 2.9rem;
  display: grid; place-items: center;
  font: inherit; font-size: 1.35rem; line-height: 1;
  color: var(--color-text-muted);
  background: transparent; border: none; border-left: 1px solid var(--ntc-border-soft);
  cursor: pointer;
}
.ntc__tgl:hover { color: var(--color-text); background: var(--ntc-surface2); }
.ntc__tgl:focus-visible { outline: 2px solid var(--ntc-focus); outline-offset: -2px; }
.ntc.is-open .ntc__tgl { margin-left: auto; }

/* ── D-day 배지: TODAY = 빨강 바탕 흰 글자, D-7 이내 = 주황, 그 밖 = 회색 ── */
.ntc__dd {
  display: inline-block; flex: none; font-size: 12px; font-weight: 700; line-height: 1.35;
  font-variant-numeric: tabular-nums; white-space: nowrap; text-align: center;
  padding: 2px 7px; border-radius: 4px;
}
.ntc__dd.d-today { background: var(--ntc-today-bg); color: var(--ntc-today-fg); }
.ntc__dd.d-soon  { color: var(--ntc-dsoon); background: color-mix(in srgb, var(--ntc-dsoon) 12%, transparent);
                   box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ntc-dsoon) 55%, transparent); }
.ntc__dd.d-far   { color: var(--color-text-muted); box-shadow: inset 0 0 0 1px var(--color-border); }
.ntc__dd.d-none  { color: var(--color-text-muted); }
.ntc__dd.d-past  { color: var(--color-text-faint); box-shadow: inset 0 0 0 1px var(--color-border); }   /* (v4.7.1) 팝업 — 기간 지난 묶음 하위 소식 */

/* ── 제목 · 출처 ── */
.ntc__ttl {
  display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  color: var(--color-text); text-decoration: none; word-break: keep-all; overflow-wrap: anywhere;
}
.ntc__ttl:lang(ja) { font-family: var(--ntc-ja); }
.ntc__ttl:focus-visible { outline: 2px solid var(--ntc-focus); outline-offset: 2px; border-radius: 2px; }

/* 소식 줄 · 카드 = 팝업(시트)을 여는 버튼 */
.ntc__gi, .ntc__card { cursor: pointer; }
.ntc__gi:hover, .ntc__gi.is-on, .ntc__card:hover { background: var(--ntc-hover); }
.ntc__gi:focus-visible, .ntc__card:focus-visible { outline: 2px solid var(--ntc-focus); outline-offset: -2px; }

.ntc__src {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--color-text-muted); text-decoration: none; white-space: nowrap;
}
.ntc__src .ntc__ic { width: 13px; height: 13px; }
a.ntc__src:hover { color: var(--color-text); }
.ntc__src:focus-visible { outline: 2px solid var(--ntc-focus); outline-offset: 2px; border-radius: 2px; }

/* ── 펼친 목록 — 오버레이. 아래 예고 영역 위에 떠서 레이아웃을 안 민다.
   순서 = 행사 배너(.ntc__banners) → 분류 줄(.ntc__hd, 스크롤해도 위에 붙음) → 소식(.ntc__body).
   max-height 는 JS(applyListHeight)가 실측 px 로 넣어 스르륵 슬라이드. ── */
.ntc__list {
  position: absolute; top: 100%; left: var(--page-pad); right: var(--page-pad);
  z-index: 42;   /* (v4.6.4) PC 플레이어 도크(40) 위 — 30 이면 펼친 목록이 도크의 YouTube 화면 밑으로 들어갔다. 플로팅 프레임(45) · 푸터(50) 아래 */
  max-height: 0; overflow: hidden;
  opacity: 0; visibility: hidden;
  border: 1px solid var(--ntc-border-soft); border-top: none;
  border-radius: 0 0 6px 6px; background: var(--color-bg-secondary);
  box-shadow: 0 14px 32px var(--ntc-shadow);
  font-size: 14px; line-height: 1.45;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s ease,
              visibility 0s linear 0.3s;
}
.ntc.is-open .ntc__list {
  overflow-y: auto;
  opacity: 1; visibility: visible;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s ease;
}

.ntc__hd {
  position: sticky; top: 0; z-index: 5;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
  padding: 10px 14px;
  background: var(--color-bg-secondary);
  border-bottom: 1px solid var(--ntc-border-soft);
}
.ntc__none { padding: 36px 16px; text-align: center; color: var(--color-text-muted); }

/* 언어 전환 [한글 | 원문] */
.ntc__seg {
  flex: none; margin-left: auto; display: inline-flex; padding: 2px; white-space: nowrap;
  border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-bg);
}
.ntc__seg button {
  border: 0; background: transparent; color: var(--color-text-muted); cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; padding: 4px 13px; border-radius: 999px;
}
.ntc__seg button:hover { color: var(--color-text); }
.ntc__seg button[aria-pressed="true"] { background: var(--color-raised); color: var(--color-text); box-shadow: inset 0 0 0 1px var(--color-raised-edge); }
.ntc__seg button:focus-visible { outline: 2px solid var(--ntc-focus); outline-offset: 1px; }

/* ── PC 분류 칩 (둥근 칩) ── */
.ntc__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ntc__chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--color-border); background: transparent;
  color: var(--color-text); font: inherit; font-size: 13.5px; cursor: pointer;
}
.ntc__chip .ntc__ic { color: var(--c); }
.ntc__chip .n { color: var(--color-text-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ntc__chip:hover { background: var(--ntc-hover); }
.ntc__chip[aria-selected="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); font-weight: 700; }
.ntc__chip[data-cat="all"][aria-selected="true"] { background: var(--color-raised); border-color: var(--color-raised-edge); }
.ntc__chip:focus-visible { outline: 2px solid var(--ntc-focus); outline-offset: 2px; }

/* ── PC 날짜별 묶음: [날짜 칸 「10/24 (토) TODAY」] [소식 줄: 시각 · 분류 아이콘 · 제목(두 줄까지) / 분류 이름 · 이날까지 · X 핸들] ── */
.ntc__grp { display: grid; grid-template-columns: 172px minmax(0, 1fr); }
.ntc__grp + .ntc__grp { border-top: 1px solid var(--ntc-border-soft); }
.ntc__gdate {
  display: flex; align-items: center; gap: 6px; align-self: start;
  padding: 11px 14px 0 16px;
  position: sticky; top: var(--ntc-hd-h, 0px);
}
.ntc__gdate .d { font-size: 17px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ntc__gdate .d.is-none { font-size: 14px; color: var(--color-text-muted); }
.ntc__gdate .w { font-size: 13px; color: var(--color-text-muted); }
.ntc__gdate .ntc__dd { margin-left: auto; }
.ntc__gitems { display: grid; border-left: 1px solid var(--ntc-border-soft); }
.ntc__gi { display: grid; grid-template-columns: 58px 26px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 16px; min-width: 0; }
.ntc__gi .ntc__cat { width: 26px; height: 26px; }
.ntc__gi + .ntc__gi { border-top: 1px dashed var(--ntc-border-soft); }
.ntc__time { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; padding-top: 1px; }
.ntc__time.is-none { color: var(--color-text-muted); font-weight: 400; }
.ntc__gbody { min-width: 0; display: grid; gap: 3px; }
.ntc__gi .ntc__ttl { font-size: 15.5px; font-weight: 600; line-height: 22px; }   /* 한 줄 — 넘치면 … (전체 제목은 팝업 카드) */
.ntc__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--color-text-muted); }
.ntc__cn { color: var(--c); font-weight: 700; }
.ntc__until {
  font-size: 12px; font-weight: 700; padding: 0 6px; border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--color-border); color: var(--color-text-muted);
}

/* ── 모바일 ≤767px — 시안 ③: 접힌 막대 = 분류별 건수 칩, 펼침 = 밑줄 탭 7칸 + 카드 1열 ── */
/* ── (v4.7.0) 라이브공연 탭 — 공연별 묶음. 머리 = [공연일 타일] [공연 이름 / 소식 n건] [D-day] [›], 하위 소식 = 들여 쓴 어두운 칸의 작은 줄 ── */
.ntc__seg--lv + .ntc__seg { margin-left: 0; }
.ntc__lname {
  font-size: 12px; font-weight: 700; color: var(--ntc-cat-live); white-space: nowrap;
  padding: 0 7px; border-radius: 5px; background: color-mix(in srgb, var(--ntc-cat-live) 12%, transparent);
}
.ntc__lgs { display: grid; gap: 10px; padding: 12px; }
.ntc__lg {
  border: 1px solid color-mix(in srgb, var(--ntc-cat-live) 40%, transparent);
  border-radius: 12px; overflow: hidden; background: var(--color-bg-secondary);
}
.ntc__lg.is-past, .ntc__lg.is-other { border-color: var(--ntc-border-soft); }
.ntc__lghd {
  width: 100%; display: flex; align-items: center; gap: 16px; padding: 14px 16px;
  border: 0; background: var(--ntc-lg-head); color: var(--color-text); font: inherit; text-align: left; cursor: pointer;
}
.ntc__lg.is-past .ntc__lghd, .ntc__lg.is-other .ntc__lghd { background: var(--ntc-lg-past); }
.ntc__lghd:hover { filter: brightness(1.08); }
.ntc__lghd:focus-visible { outline: 2px solid var(--ntc-focus); outline-offset: -2px; }
.ntc__lgtile {
  flex: none; width: 58px; height: 62px; border-radius: 10px; box-sizing: border-box;
  display: grid; place-content: center; justify-items: center; line-height: 1.1;
  background: var(--ntc-cat-live); color: var(--ntc-lg-ink);
}
.ntc__lgtile .m, .ntc__lgtile .w { font-size: 11px; font-weight: 700; opacity: 0.85; }
.ntc__lgtile .d { font-size: 23px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ntc__lgtile.is-tbd { background: transparent; border: 1.5px dashed var(--ntc-cat-live); color: var(--ntc-cat-live); }
.ntc__lgtile.is-tbd .d { font-size: 17px; }
.ntc__lgtile.is-icon { background: transparent; border: 1.5px solid var(--ntc-border-soft); color: var(--color-text-muted); }
.ntc__lgtile.is-icon .ntc__ic { width: 22px; height: 22px; }
.ntc__lg.is-past .ntc__lgtile { background: var(--color-raised); color: var(--color-text-muted); }
.ntc__lgtx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ntc__lgname {
  font-family: var(--ntc-ja); font-size: 20px; font-weight: 800; letter-spacing: 0.01em; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ntc__lg.is-past .ntc__lgname, .ntc__lg.is-other .ntc__lgname { font-size: 17px; color: var(--color-text-muted); }
.ntc__lg.is-other .ntc__lgname { font-family: inherit; }
.ntc__lgsub { font-size: 12.5px; color: var(--color-text-muted); }
.ntc__lgdd {
  flex: none; font-size: 13px; font-weight: 800; padding: 3px 11px; border-radius: 999px; white-space: nowrap;
  background: var(--ntc-cat-live); color: var(--ntc-lg-ink); font-variant-numeric: tabular-nums;
}
.ntc__lg.is-tbd .ntc__lgdd { background: transparent; color: var(--ntc-cat-live); box-shadow: inset 0 0 0 1px var(--ntc-cat-live); }
.ntc__lg.is-past .ntc__lgdd { background: var(--color-raised); color: var(--color-text-muted); }
.ntc__lgchev { flex: none; font-size: 22px; line-height: 1; color: var(--color-text-muted); transition: transform 0.15s; }
.ntc__lghd[aria-expanded="true"] .ntc__lgchev { transform: rotate(90deg); }
.ntc__lgrows { display: grid; padding: 4px 0 8px; background: var(--ntc-lg-rows); border-top: 1px solid var(--ntc-border-soft); }
.ntc__lgrows[hidden] { display: none; }
.ntc__lrow.ntc__gi {
  grid-template-columns: 10px 92px 46px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 7px 16px 7px 40px; font-size: 13.5px;
}
.ntc__lgrows .ntc__gi + .ntc__gi { border-top: 0; }
.ntc__lrow .ntc__ttl { font-size: 14px; font-weight: 500; line-height: 20px; }
.ntc__ldot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-text-faint); justify-self: center; }
.ntc__ldate { color: var(--color-text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ntc__ltime { color: var(--ntc-faint); font-variant-numeric: tabular-nums; }
.ntc__lchips { display: inline-flex; gap: 6px; }
.ntc__lchip {
  font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; white-space: nowrap;
  color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent);
}
/* (v4.7.1) 기간 지난 하위 소식 — 묶음이 내려갈 때까지 남되 글자를 어둡게(밝게 테마에선 옅게) */
.ntc__lrow.is-past .ntc__ttl, .ntc__lrow.is-past .ntc__ldate, .ntc__lrow.is-past .ntc__ltime,
.ntc__lrow.is-past .ntc__meta { color: var(--color-text-faint); }
.ntc__lrow.is-past .ntc__ttl { font-weight: 400; }
.ntc__lrow.is-past .ntc__ldot { background: transparent; box-shadow: inset 0 0 0 1px var(--color-text-faint); }
.ntc__lrow.is-past .ntc__lchip { color: var(--color-text-faint); background: color-mix(in srgb, var(--color-text-faint) 14%, transparent); }
@media (prefers-reduced-motion: reduce) { .ntc__lgchev { transition: none; } }

@media (max-width: 767px) {
  #notice.ntc { padding: 0 var(--m-pad, 1rem); margin-top: var(--gap); }
  .ntc__list { left: var(--m-pad, 1rem); right: var(--m-pad, 1rem); }

  /* 모바일 접힌 막대 = 분류 칩만 — 남는 폭을 다 쓰고, 칩이 많아 넘치면 가로로 밀어 본다 */
  .ntc__chipbar { flex: 1; min-width: 0; border-right: none; overflow-x: auto; scrollbar-width: none; }
  .ntc__chipbar::-webkit-scrollbar { display: none; }

  /* 펼친 머리: 「전체 n건」 + 언어 전환 / 밑줄 탭 7칸 */
  .ntc__hd { padding: 8px 12px 0; row-gap: 4px; }
  .ntc__hd2 { display: flex; align-items: center; gap: 12px; width: 100%; }
  .ntc__count { font-size: 13px; color: var(--color-text-muted); }
  .ntc__utabs { width: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin-bottom: -1px; }   /* 0건 분류는 숨기므로 칸 수가 바뀐다 — 남은 칸이 폭을 나눠 쓴다 */
  .ntc__utab {
    display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 8px; min-width: 0;
    border: 0; border-bottom: 3px solid transparent; background: transparent; cursor: pointer;
    color: var(--color-text-muted); font: inherit; font-size: 12.5px;
  }
  .ntc__utab .ntc__ic { width: 18px; height: 18px; color: var(--c); }
  .ntc__utab .all { font-size: 13px; font-weight: 700; line-height: 18px; }
  .ntc__utab .n { font-variant-numeric: tabular-nums; }
  .ntc__utab:hover { color: var(--color-text); }
  .ntc__utab[aria-selected="true"] { color: var(--color-text); font-weight: 700; border-bottom-color: var(--c); }
  .ntc__utab:focus-visible { outline: 2px solid var(--ntc-focus); outline-offset: -2px; }

  /* 카드 1열: [분류 아이콘 36px] [제목 한 줄 / D-day · 분류 이름 · 날짜(요일) · 시각] — 제목 15.5px 한 줄, 넘치면 … */
  .ntc__cards { display: grid; grid-template-columns: minmax(0, 1fr); }
  .ntc__card {
    display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: start;
    padding: 11px 12px; border-bottom: 1px solid var(--ntc-border-soft); min-width: 0;
  }
  .ntc__card:last-child { border-bottom: 0; }
  .ntc__cbody { min-width: 0; display: grid; gap: 2px; }
  .ntc__card .ntc__ttl { font-size: 15.5px; font-weight: 600; line-height: 22px; }
  .ntc__card .ntc__meta { flex-wrap: nowrap; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .ntc__card .ntc__dd { font-size: 12px; padding: 1px 6px; }

  /* (v4.7.0) 라이브공연 탭 공연별 묶음 — 모바일 */
  .ntc__hd.has-lv .ntc__hd2 { flex-wrap: wrap; row-gap: 6px; }
  .ntc__lgs { gap: 8px; padding: 10px; }
  .ntc__lghd { gap: 10px; padding: 11px 12px; min-height: 44px; }
  .ntc__lgtile { width: 46px; height: 50px; border-radius: 9px; }
  .ntc__lgtile .w { display: none; }
  .ntc__lgtile .d { font-size: 18px; }
  .ntc__lgtile.is-tbd .d { font-size: 14px; }
  .ntc__lgname { font-size: 16.5px; }
  .ntc__lg.is-past .ntc__lgname, .ntc__lg.is-other .ntc__lgname { font-size: 15px; }
  .ntc__lgdd { font-size: 11.5px; padding: 2px 9px; }
  .ntc__lrow.ntc__card {
    grid-template-columns: 8px minmax(0, 1fr); gap: 10px; padding: 8px 12px 8px 20px; border-bottom: 0;
  }
  .ntc__lrow.ntc__card .ntc__ldot { margin-top: 7px; align-self: start; }
  .ntc__lrow.ntc__card .ntc__ttl { font-size: 14px; }
  .ntc__lrow.ntc__card .ntc__meta { font-size: 12px; }
}

/* ── 소식 팝업 카드 — PC 팝업(.ntc__pop) · 모바일 시트(.ntc-sheet) 공용 내용 ── */
.ntc-card__hd { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 10px 8px 0 14px; }
.ntc-card__cn { font-size: 13px; font-weight: 700; color: var(--c); white-space: nowrap; }
.ntc-card__when, .ntc-card__h { font-size: 13px; color: var(--color-text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ntc-card__h { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ntc-card__sp { flex: 1; }
.ntc-card__x {
  flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px;
  border: 0; background: transparent; color: var(--color-text-muted); font: inherit; font-size: 16px; cursor: pointer;
}
.ntc-card__x:hover { background: var(--ntc-hover); color: var(--color-text); }
.ntc-card__x:focus-visible { outline: 2px solid var(--ntc-focus); outline-offset: -2px; }
.ntc-card__tt { margin: 6px 14px 0; font-size: 17px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; word-break: keep-all; color: var(--color-text); }
.ntc-card__tt:lang(ja) { font-family: var(--ntc-ja); }
.ntc-card__cols { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 12px; align-items: start; padding: 10px 14px 12px; }
.ntc-card__cols.no-x { grid-template-columns: minmax(0, 1fr); }
.ntc-card__body {
  margin: 0; font-size: 14px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--color-text);
}   /* 높이 제한 없음 — 팝업(.ntc__pop-in) · 시트 하나만 스크롤한다(스크롤 칸이 겹치지 않게) */
.ntc-card__body.is-note { color: var(--color-text-muted); }
.ntc-card__cols .lane__thread__xcard { width: 100%; min-width: 260px; }   /* X 카드는 250px 미만이면 안 그려진다(tweets.css 실측) */
.ntc-card__links { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0 14px 14px; font-size: 13px; }
.ntc-card__links a { color: var(--ntc-accent); text-decoration: none; }
.ntc-card__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ntc-card__links a:focus-visible { outline: 2px solid var(--ntc-focus); outline-offset: 2px; border-radius: 2px; }

/* PC 팝업 — #notice 안 · 펼친 목록(42) 위. 위치 · 최대 높이(--pop-max) · 꼬리 위치(--tail-x)는 JS(_popPlace) */
.ntc__pop {
  position: absolute; z-index: 43; left: 0; top: 0;
  width: min(600px, calc(100% - 16px));
  background: var(--color-bg-secondary); color: var(--color-text);
  border: 1px solid var(--color-border); border-radius: 12px;
  box-shadow: 0 16px 36px var(--ntc-shadow);
  font-size: 14px; line-height: 1.5;
  opacity: 0; visibility: hidden; transform: translateY(4px); pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
}
.ntc__pop.up { transform: translateY(-4px); }
.ntc__pop.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity 0.16s ease, transform 0.16s ease; }
.ntc__pop.is-pinned { border-color: var(--ntc-accent); }
.ntc__pop-in { max-height: var(--pop-max, 560px); overflow-y: auto; border-radius: inherit; }
.ntc__pop::before {   /* 꼬리 — 소식 제목 쪽을 가리킨다 */
  content: ""; position: absolute; top: -7px; left: var(--tail-x, 40px); width: 12px; height: 12px;
  background: var(--color-bg-secondary); border-left: 1px solid var(--color-border); border-top: 1px solid var(--color-border);
  transform: rotate(45deg);
}
.ntc__pop.up::before { top: auto; bottom: -7px; transform: rotate(225deg); }
.ntc__pop.is-pinned::before { border-color: var(--ntc-accent); }

/* 모바일 시트 — body 에 붙음. 배경 900 · 시트 901(트윗 시트와 같은 층) */
.ntc-scrim {
  position: fixed; inset: 0; z-index: 900; background: var(--ntc-scrim);
  opacity: 0; pointer-events: none; transition: opacity 0.24s ease;
}
.ntc-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 901;
  max-height: 85vh; max-height: 85dvh; display: flex; flex-direction: column; overflow: hidden;
  background: var(--color-bg-secondary); color: var(--color-text);
  border-radius: 16px 16px 0 0; box-shadow: 0 -10px 30px var(--ntc-shadow);
  font-size: 14px; line-height: 1.5;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transform: translateY(102%); visibility: hidden;
  transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.26s;
}
body.ntc-sheet-open { overflow: hidden; }
body.ntc-sheet-open .ntc-scrim { opacity: 1; pointer-events: auto; }
body.ntc-sheet-open .ntc-sheet { transform: none; visibility: visible; transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1); }
/* 손잡이 줄 — 시트 맨 위에 고정(내용만 .ntc-sheet__in 에서 스크롤). 아래로 끌면 닫힌다(js/sheetdrag.js):
   닫힘 선을 넘으면 .is-armed(막대가 길어지고 강조색), 놓으면 닫힘 · 덜 끌었으면 .is-spring 으로 튕겨 돌아감 */
.ntc-sheet__grabz {
  flex: none; height: 22px; display: grid; place-items: center; cursor: grab; touch-action: none;
  border-radius: 16px 16px 0 0; transition: box-shadow 0.2s;
}
.ntc-sheet.is-dragging .ntc-sheet__grabz { cursor: grabbing; }
.ntc-sheet.is-scrolled .ntc-sheet__grabz { box-shadow: 0 1px 0 var(--color-border); }
.ntc-sheet__grab { width: 40px; height: 4px; border-radius: 2px; background: var(--color-border); transition: width 0.22s cubic-bezier(0.25, 1.55, 0.45, 1), height 0.18s, background 0.18s; }
.ntc-sheet.is-armed .ntc-sheet__grab { width: 58px; height: 5px; background: var(--ntc-accent); }
.ntc-sheet__in { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
body.ntc-sheet-open .ntc-sheet.is-dragging { transition: none; }
body.ntc-sheet-open .ntc-sheet.is-spring { transition: transform 0.44s cubic-bezier(0.25, 1.55, 0.45, 1); }
.ntc-sheet .ntc-card__cols { grid-template-columns: minmax(0, 1fr); }

@media (prefers-reduced-motion: reduce) {
  .ntc__pop, .ntc__pop.is-open, .ntc__pop.up { transition: none; transform: none; }
  .ntc-scrim, .ntc-sheet, body.ntc-sheet-open .ntc-sheet { transition: none; }
  .ntc__track { transition: none; }
  .ntc.has-today .ntc__lamp { animation: none; opacity: 1; }
  .ntc__list, .ntc.is-open .ntc__list { transition: opacity 0.15s ease; }
}
