/* ========================================================================
   V11 라스베가스 홈 매거진 sections — V1 시안 이식
   scope: #screen-list .mh-* (mh = magazine home prefix, 충돌 방지)
   ======================================================================== */

#homeMagazineRoot {
  /* .list-header 와 #character-list 사이에 끼는 컨테이너 */
  margin-top: 0;
  font-family: 'Noto Sans KR', sans-serif;
}

/* ===== 브라우저 native video 컨트롤 / PIP / 효과버튼 차단 ===== */
#homeMagazineRoot video {
  pointer-events: none;  /* 비디오 자체 탭 차단 (부모 카드 클릭만 유효) */
}
#homeMagazineRoot video::-webkit-media-controls,
#homeMagazineRoot video::-webkit-media-controls-panel,
#homeMagazineRoot video::-webkit-media-controls-play-button,
#homeMagazineRoot video::-webkit-media-controls-start-playback-button,
#homeMagazineRoot video::-webkit-media-controls-overlay-play-button,
#homeMagazineRoot video::-webkit-media-controls-enclosure,
#homeMagazineRoot video::-internal-media-controls-overlay-cast-button {
  display: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  opacity: 0 !important;
}
#homeMagazineRoot video::-webkit-media-text-track-container { display: none !important; }

/* ============================================================ */
/* HERO POOL (V11.5: 5-slide stack + fade rotation)             */
/* ============================================================ */
#homeMagazineRoot .mh-hero-pool {
  position: relative;
  margin: 12px 14px 0;
  height: 56vh; min-height: 420px; max-height: 560px;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
}

/* 슬라이드 6장 stack (모두 같은 위치, opacity 로 표시 제어) */
/* V11.25: visibility 도 함께 토글 → 비활성 슬라이드 paint cost 차단 */
/*         visibility 는 0.8s 페이드 끝난 후 hidden (transition delay)   */
/* V11.25: will-change 는 active 전용 → GPU layer 6개 → 1개로 축소        */
#homeMagazineRoot .mh-hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .8s ease, transform .25s ease, visibility 0s linear .8s;
  cursor: pointer;
  background-color: #1a1410;  /* poster 없을 때 fallback */
}
#homeMagazineRoot .mh-hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
  transition: opacity .8s ease, transform .25s ease, visibility 0s linear 0s;
  will-change: transform, opacity;
}
/* V11.7: 모바일 스와이프 시 가로 스크롤 의도 방지 (브라우저 swipe back 등) */
#homeMagazineRoot .mh-hero-pool {
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

/* Dot indicators (상단 status bar 스타일) */
#homeMagazineRoot .mh-hero-dots {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
#homeMagazineRoot .mh-hero-dot {
  width: 22px; height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.32);
  border: 0; padding: 0; cursor: pointer;
  transition: background-color .25s ease, width .25s ease;
  position: relative;
  overflow: hidden;
}
#homeMagazineRoot .mh-hero-dot.active {
  width: 32px;
  background: rgba(255,255,255,0.18);
}
/* 활성 dot 안에 progress 채워지는 애니메이션 (7초) */
#homeMagazineRoot .mh-hero-dot.active::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--color-accent, #C89B4A);
  transform-origin: left center;
  animation: mhHeroDotProgress 7s linear forwards;
}
@keyframes mhHeroDotProgress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
#homeMagazineRoot .mh-hero-dot:hover {
  background: rgba(255,255,255,0.5);
}

#homeMagazineRoot .mh-hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
#homeMagazineRoot .mh-hero-grad {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(26,20,16,0.25) 0%,
    transparent 35%,
    rgba(26,20,16,0.55) 65%,
    rgba(26,20,16,0.95) 100%);
  pointer-events: none;
}
#homeMagazineRoot .mh-hero-meta {
  position: absolute; left: 22px; right: 22px; bottom: 26px;
  pointer-events: none;
}
#homeMagazineRoot .mh-hero-eyebrow {
  font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--color-accent, #C89B4A);
  margin-bottom: 10px;
  font-weight: 600;
}
#homeMagazineRoot .mh-hero-title {
  font-family: 'Playfair Display', 'Noto Serif KR', serif;
  font-size: 48px; font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 0.95;
  margin: 0 0 6px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
#homeMagazineRoot .mh-hero-sub {
  font-size: 12px; color: rgba(232,223,212,0.85);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
#homeMagazineRoot .mh-hero-line {
  font-family: 'Noto Serif KR', serif;
  font-style: italic;
  font-size: 14px; line-height: 1.5;
  color: rgba(232,223,212,0.92);
  max-width: 88%;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
#homeMagazineRoot .mh-hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border: 0; border-radius: 999px;
  background: linear-gradient(135deg, var(--color-sub, #9B2E3F), var(--color-sub-dark, #6E1F2D));
  color: #fff;
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  pointer-events: auto;
  box-shadow:
    0 10px 24px rgba(155,46,63,0.4),
    0 0 0 1px rgba(200,155,74,0.25) inset;
  transition: transform .15s ease;
}
#homeMagazineRoot .mh-hero-cta:active { transform: translateY(1px); }
#homeMagazineRoot .mh-hero-cta .arrow {
  transition: transform .2s ease;
  display: inline-block;
}
#homeMagazineRoot .mh-hero-cta:hover .arrow { transform: translateX(3px); }

/* ============================================================ */
/* Section common                                               */
/* ============================================================ */
#homeMagazineRoot .mh-section { margin: 32px 0 0; }
#homeMagazineRoot .mh-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0 18px 14px;
}
#homeMagazineRoot .mh-section-title {
  font-family: 'Playfair Display', 'Noto Serif KR', serif;
  font-size: 21px; font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--color-text, #E8DFD4);
  margin: 0;
}
#homeMagazineRoot .mh-section-title em {
  font-style: italic;
  color: var(--color-accent-light, #E0B470);
}
#homeMagazineRoot .mh-section-link {
  font-size: 11px;
  color: var(--color-text-muted, #B8A990);
  letter-spacing: 1px;
  cursor: pointer;
}
#homeMagazineRoot .mh-section-link:hover {
  color: var(--color-accent, #C89B4A);
}

#homeMagazineRoot .mh-hscroll {
  display: flex; gap: 10px;
  padding: 0 14px 4px;
  overflow-x: auto;
  /* V11.25: mandatory → proximity. 자유 스크롤 허용, 가까운 카드만 snap.
     모바일 momentum 스크롤 + flick 자연스러움 복원 */
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;  /* V11.25: 가로 스크롤이 페이지 swipe-back 안 됨 */
}
#homeMagazineRoot .mh-hscroll::-webkit-scrollbar { display: none; }
#homeMagazineRoot .mh-hscroll > * {
  scroll-snap-align: start;
  flex: 0 0 auto;
}

/* ============================================================ */
/* 새 컨텐츠 카드                                                */
/* ============================================================ */
#homeMagazineRoot .mh-new-card {
  position: relative;
  width: 156px; aspect-ratio: 3/4;
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-base-soft, #2B2118);
  cursor: pointer;
  color: var(--color-text, #E8DFD4);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  transition: transform .2s ease;
}
#homeMagazineRoot .mh-new-card:active { transform: translateY(-1px); }
#homeMagazineRoot .mh-nc-cov {
  position: absolute; inset: 0;
}
/* V11.20.1: 새 컨텐츠 row 영상 카드 — <video> 가 카드 전체 채움 */
#homeMagazineRoot .mh-nc-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;  /* 카드 클릭 = 부모 <a> 가 처리 */
}
#homeMagazineRoot .mh-nc-grad {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.85));
  pointer-events: none;
}
#homeMagazineRoot .mh-nc-tag {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  color: var(--color-accent, #C89B4A);
  font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
#homeMagazineRoot .mh-nc-tag.video {
  background: var(--color-sub, #9B2E3F);
  color: #fff;
}
#homeMagazineRoot .mh-nc-body {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2;
}
#homeMagazineRoot .mh-nc-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 13.5px; font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.2px;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
#homeMagazineRoot .mh-nc-sub {
  font-size: 10px;
  color: rgba(232,223,212,0.78);
  margin-top: 3px;
  letter-spacing: 0.2px;
}

/* ============================================================ */
/* LIVE row                                                     */
/* ============================================================ */
#homeMagazineRoot .mh-live-card {
  width: 122px;
  text-decoration: none;
  color: var(--color-text, #E8DFD4);
  cursor: pointer;
}
#homeMagazineRoot .mh-live-frame {
  position: relative;
  aspect-ratio: 9/14;
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-base-soft, #2B2118);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
#homeMagazineRoot .mh-live-frame video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
#homeMagazineRoot .mh-live-dot {
  position: absolute; top: 8px; left: 8px;
  display: flex; align-items: center; gap: 4px;
  padding: 3px 8px 3px 6px;
  border-radius: 4px;
  background: var(--color-sub, #9B2E3F);
  color: #fff;
  font-size: 9px; font-weight: 800; letter-spacing: 1.5px;
}
#homeMagazineRoot .mh-live-dot span {
  width: 5px; height: 5px; border-radius: 50%;
  background: #fff;
  animation: mhLivePulse 1.4s infinite;
}
@keyframes mhLivePulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}
#homeMagazineRoot .mh-live-name {
  margin-top: 8px;
  font-family: 'Noto Serif KR', serif;
  font-size: 14px; font-weight: 600;
}
#homeMagazineRoot .mh-live-sub {
  font-size: 11px;
  color: var(--color-text-muted, #B8A990);
  margin-top: 1px;
}

/* ============================================================ */
/* 카테고리 chips                                                */
/* ============================================================ */
#homeMagazineRoot .mh-cat-row {
  display: flex; gap: 8px;
  padding: 0 14px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
#homeMagazineRoot .mh-cat-row::-webkit-scrollbar { display: none; }
#homeMagazineRoot .mh-cat-chip {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid var(--color-base-border, #604D34);
  border-radius: 999px;
  background: var(--color-base-soft, #2B2118);
  color: var(--color-text-muted, #B8A990);
  font-size: 12px; font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s ease;
}
#homeMagazineRoot .mh-cat-chip:hover,
#homeMagazineRoot .mh-cat-chip.active {
  border-color: var(--color-accent, #C89B4A);
  color: var(--color-accent, #C89B4A);
  background: rgba(200,155,74,0.08);
}

/* ============================================================ */
/* 매거진과 기존 카드 그리드 사이 spacing                        */
/* ============================================================ */
#homeMagazineRoot + #character-list {
  margin-top: 40px;
}

/* ============================================================ */
/* 내 캐릭터 — 2-col thumbnail grid (V11.1)                     */
/* ============================================================ */
#screen-list .my-section {
  margin: 32px 14px 0;
  padding: 0;
  display: block !important;
  gap: 0;
}
#screen-list .my-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px;
}
#screen-list .my-section-title {
  font-family: 'Playfair Display', 'Noto Serif KR', serif;
  font-size: 19px; font-weight: 600;
  color: var(--color-text, #E8DFD4);
  letter-spacing: -0.3px;
}
#screen-list .my-section-count {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 12px;
  color: var(--color-accent, #C89B4A);
  letter-spacing: 1px;
  margin-left: 4px;
  font-weight: 600;
}
#screen-list .my-section-link {
  background: transparent;
  border: 0;
  padding: 4px 2px;
  color: var(--color-text-muted, #B8A990);
  font-size: 11px;
  letter-spacing: 1px;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
}
#screen-list .my-section-link:hover {
  color: var(--color-accent, #C89B4A);
}

/* 2-col grid */
#screen-list .my-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 !important;
}

/* 카드 내부 — 썸네일 스타일 강제 (기존 .character-card 의 wide layout 오버라이드) */
#screen-list .my-grid > .character-card {
  position: relative;
  aspect-ratio: 4/5;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: var(--color-base-soft, #2B2118);
  border: 0 !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  display: block !important;
  flex-direction: unset !important;
  height: auto !important;
  min-height: 0 !important;
}
#screen-list .my-grid > .character-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(200,155,74,0.3);
}
#screen-list .my-grid > .character-card .card-photo {
  position: absolute !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  flex: none !important;
  display: block !important;
}
#screen-list .my-grid > .character-card .card-photo img,
#screen-list .my-grid > .character-card .card-photo .card-photo-placeholder {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  position: absolute !important;
  inset: 0 !important;
  margin: 0 !important;
}
#screen-list .my-grid > .character-card .card-photo-placeholder {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4a3525, #2a1f15);
  color: var(--color-accent, #C89B4A);
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
}
#screen-list .my-grid > .character-card .card-overlay {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px !important;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.88) 95%);
  pointer-events: none;
}
#screen-list .my-grid > .character-card .card-name-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
#screen-list .my-grid > .character-card .card-name {
  font-family: 'Noto Serif KR', serif;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}
#screen-list .my-grid > .character-card .card-age {
  font-size: 11px;
  color: var(--color-text-muted, #B8A990);
  font-weight: 400;
}
#screen-list .my-grid > .character-card .card-relation {
  font-size: 11px;
  color: var(--color-text-muted, #B8A990);
  margin-top: 2px;
  margin-bottom: 4px;
}
#screen-list .my-grid > .character-card .card-last-msg,
#screen-list .my-grid > .character-card .card-status {
  font-size: 11px;
  color: rgba(232,223,212,0.7);
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
  line-height: 1.4;
}
/* V11.34 [A안]: aff-label + cutoff 공유 bottom row — absolute 위치 충돌 제거 */
/*               두 pill 사이즈/패딩/폰트/높이 통일 — 시각 일관성 ↑ */
#screen-list .my-grid > .character-card .card-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  /* 부모 overlay 가 pointer-events: none 이지만 cutoff 버튼은 pointer-events:auto 로 받음 */
  pointer-events: none;
}
/* 통일 pill 사이즈: 높이 ~24px, padding 5px 10px, font-size 11px */
#screen-list .my-grid > .character-card .card-aff-label-only {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  height: 24px;
  box-sizing: border-box;
  border-radius: 999px;
  background: rgba(155,46,63,0.28);
  border: 1px solid rgba(155,46,63,0.5);
  color: #ffb5c2;
  font-size: 11px;
  font-weight: 600;
  /* 텍스트 길이 가변 — 안전 cap (50% 이하). cutoff 가 항상 보이도록. */
  max-width: 55%;
  min-width: 0;
  white-space: nowrap;
}
#screen-list .my-grid > .character-card .card-aff-label-only .card-heart {
  color: #ffb5c2;
  flex-shrink: 0;
}
#screen-list .my-grid > .character-card .card-aff-label-only .card-aff-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
#screen-list .my-grid > .character-card .card-unread-badge {
  top: 8px !important; right: 8px !important;
  left: auto !important;
}

/* my-grid 안의 cutoff 칩 — absolute 해제 → bottom-row 안 inline */
#screen-list .my-grid > .character-card .card-cutoff {
  position: static !important;
  right: auto !important;
  bottom: auto !important;
  height: 24px;
  padding: 4px 10px 4px 9px !important;
  font-size: 11px !important;
  pointer-events: auto;
  flex-shrink: 0;
}
#screen-list .my-grid > .character-card .card-cutoff .cco-ic {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
}

/* "+ 새 사람" simple create slot — 그리드 마지막 슬롯 (V11.1) */
#screen-list .my-grid > .my-create-slot {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-base-soft, #2B2118), var(--color-base-raised, #362A1E));
  border: 1px dashed rgba(200,155,74,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
#screen-list .my-grid > .my-create-slot:hover {
  border-color: var(--color-accent, #C89B4A);
  background: linear-gradient(135deg, rgba(200,155,74,0.08), rgba(155,46,63,0.04));
}
#screen-list .my-grid > .my-create-slot:active {
  transform: scale(0.97);
}
#screen-list .my-grid > .my-create-slot .my-create-plus {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: 36px;
  color: var(--color-accent, #C89B4A);
  line-height: 1;
  margin-bottom: 8px;
}
#screen-list .my-grid > .my-create-slot .my-create-label {
  font-family: 'Noto Serif KR', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text, #E8DFD4);
  margin-bottom: 6px;
}
#screen-list .my-grid > .my-create-slot .my-create-sub {
  font-size: 10.5px;
  color: var(--color-text-muted, #B8A990);
  line-height: 1.5;
}

/* "전체 N →" hint 강조 (4명+ 있을 때) */
#screen-list .my-section-link.has-more {
  color: var(--color-accent, #C89B4A);
  font-weight: 600;
}

/* ============================================================ */
/* #screen-my-characters — 전체보기 페이지 (V11.2)              */
/* ============================================================ */
#screen-my-characters {
  background: var(--color-base, #1A1410);
  color: var(--color-text, #E8DFD4);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-family: 'Noto Sans KR', sans-serif;
  padding-bottom: 120px;
}

.my-chars-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: calc(env(safe-area-inset-top) + 10px);
  padding-bottom: 14px;
  padding-left: 12px; padding-right: 16px;
  background: rgba(26,20,16,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(200,155,74,0.12);
}
.my-chars-back {
  /* V11.29 [A11Y]: 38→44 */
  width: 44px; height: 44px;
  min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; padding: 0; border-radius: 50%;
  background: transparent;
  color: var(--color-text, #E8DFD4);
  cursor: pointer;
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 300;
  line-height: 1;
}
.my-chars-back:hover { background: rgba(255,255,255,0.06); }
.my-chars-title-block {
  text-align: center;
  flex: 1;
}
.my-chars-eyebrow {
  font-family: 'Playfair Display', 'Noto Serif KR', serif;
  font-size: 17px; font-weight: 600;
  color: var(--color-text, #E8DFD4);
  letter-spacing: -0.3px;
}
.my-chars-count {
  font-size: 10.5px;
  color: var(--color-text-muted, #B8A990);
  margin-top: 2px;
  letter-spacing: 0.5px;
}
.my-chars-count span {
  color: var(--color-accent, #C89B4A);
  font-weight: 700;
  margin-right: 2px;
}

/* List */
.my-chars-list {
  padding: 18px 14px 0;
  display: flex; flex-direction: column; gap: 16px;
}

/* ============================================================ */
/* V11.4: 본섭 #screen-list .character-card 규칙을 그대로 복제
   (production /var/www/mangsang/client/css/style.css 라인 884-1015)
   — #screen-my-characters scope 에 1:1 미러링                  */
/* ============================================================ */
#screen-my-characters .character-card {
  background: var(--color-base-raised) !important;
  border: 1px solid var(--color-base-border) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.45) !important;
  border-radius: var(--radius-xl) !important;
  overflow: hidden;
  aspect-ratio: 4/5;
  max-height: 540px;
  position: relative;
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base),
              border-color var(--dur-base);
}
#screen-my-characters .character-card:hover {
  transform: scale(1.02) translateY(-2px);
  border-color: rgba(200,155,74,0.4) !important;
  box-shadow: 0 10px 34px rgba(0,0,0,0.55),
              0 0 22px rgba(200,155,74,0.12) !important;
}
#screen-my-characters .character-card:active { transform: scale(0.98); }

#screen-my-characters .character-card .card-photo {
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    var(--color-sub-dark) 0%,
    var(--color-base-raised2) 45%,
    var(--color-base) 100%) !important;
}
#screen-my-characters .character-card .card-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

#screen-my-characters .card-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif) !important;
  font-size: 120px !important;
  font-weight: 700 !important;
  color: var(--color-text) !important;
  background: linear-gradient(160deg,
    var(--color-sub) 0%,
    var(--color-sub-dark) 50%,
    var(--color-base) 100%) !important;
  opacity: 0.92;
  text-shadow: 0 4px 24px rgba(0,0,0,0.5);
  letter-spacing: var(--tracking-tighter);
}

/* 카드 하단 overlay (이름·관계·메시지) */
#screen-my-characters .card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--space-5) var(--space-5) var(--space-4);
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(0,0,0,0.45) 30%,
    rgba(0,0,0,0.85) 100%) !important;
  color: var(--color-text);
  display: flex; flex-direction: column; gap: 4px;
}
#screen-my-characters .card-name-row {
  display: flex; align-items: baseline; gap: var(--space-2);
}
#screen-my-characters .card-name {
  font-family: var(--font-serif) !important;
  font-size: var(--text-xl) !important;
  font-weight: 600 !important;
  color: var(--color-text) !important;
  letter-spacing: var(--tracking-tight);
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
#screen-my-characters .card-age {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text-muted) !important;
  font-weight: 400;
}
#screen-my-characters .card-relation {
  font-family: var(--font-sans);
  font-size: var(--text-xs) !important;
  color: var(--color-accent) !important;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-top: 2px;
}
#screen-my-characters .card-last-msg {
  font-family: var(--font-serif) !important;
  font-style: italic !important;
  font-size: var(--text-sm) !important;
  color: var(--color-text-muted) !important;
  margin-top: var(--space-2);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
#screen-my-characters .card-status {
  color: var(--color-text-muted) !important;
  font-style: italic;
}
/* V11.34: my-characters 전체보기 페이지도 동일 — bottom row 공유 + 통일 사이즈 */
#screen-my-characters .card-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: var(--space-2);
  pointer-events: none;
}
#screen-my-characters .card-aff-label-only {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  height: 24px;
  box-sizing: border-box;
  border-radius: 999px;
  background: rgba(155,46,63,0.28);
  border: 1px solid rgba(155,46,63,0.5);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: #ffb5c2 !important;
  letter-spacing: var(--tracking-wide);
  max-width: 55%;
  min-width: 0;
  white-space: nowrap;
}
#screen-my-characters .card-aff-label-only .card-aff-text {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
#screen-my-characters .card-heart {
  color: #ffb5c2 !important;
  font-size: 12px;
  flex-shrink: 0;
}
#screen-my-characters .card-cutoff {
  position: static !important;
  right: auto !important;
  bottom: auto !important;
  height: 24px;
  padding: 4px 10px 4px 9px !important;
  font-size: 11px !important;
  pointer-events: auto;
  flex-shrink: 0;
}
#screen-my-characters .card-cutoff .cco-ic {
  width: 10px; height: 10px; flex: 0 0 10px;
}
#screen-my-characters .card-unread-badge {
  position: absolute;
  top: var(--space-3); right: var(--space-3);
  background: var(--color-sub) !important;
  color: var(--color-text) !important;
  min-width: 22px; height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--glow-sub), 0 2px 8px rgba(0,0,0,0.5);
  animation: list-unread-pulse 2.2s ease-in-out infinite;
}
/* @keyframes list-unread-pulse 는 본섭 style.css 에 이미 정의됨 — 재정의 불필요 */

/* Empty state */
.mcp-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--color-text-muted, #B8A990);
}
.mcp-empty-orn {
  font-size: 24px;
  color: var(--color-accent, #C89B4A);
  margin-bottom: 16px;
  letter-spacing: 4px;
}
.mcp-empty-text {
  font-family: 'Playfair Display', 'Noto Serif KR', serif;
  font-size: 18px;
  color: var(--color-text, #E8DFD4);
  margin: 0 0 6px;
  letter-spacing: -0.2px;
}
.mcp-empty-sub {
  font-size: 12px;
  color: var(--color-text-muted, #B8A990);
}

/* Create CTA (페이지 하단 sticky-ish) */
.my-chars-create-cta {
  position: fixed; left: 16px; right: 16px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 30;
  height: 52px;
  border: 0; border-radius: 14px;
  background: linear-gradient(135deg, var(--color-accent, #C89B4A), #A57A30);
  color: #1A1410;
  font-size: 15px; font-weight: 800; letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(200,155,74,0.35), 0 0 0 1px rgba(255,255,255,0.1) inset;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-family: 'Noto Sans KR', sans-serif;
}
.my-chars-create-cta:active { transform: translateY(1px); }
.my-chars-create-cta .mccc-plus {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 300;
  line-height: 1;
}

/* Display rules — show only when screen active */
#screen-my-characters { display: none; }
#screen-my-characters.active { display: block; }

/* Toast (이미 cutoff.css 에 있지만 안전망 — 없으면 fallback) */
.ms-toast:not([style]) { /* cutoff.css 가 우선 */ }

/* ============================================================ */
/* V11.33: Scroll perf — content-visibility + scroll-aware blur */
/* ============================================================ */

/* content-visibility: auto — viewport 밖 섹션 렌더링 skip (browser native) */
/* contain-intrinsic-size 로 layout shift 방지 (대략 평균 높이) */
#homeMagazineRoot .mh-section {
  content-visibility: auto;
  contain-intrinsic-size: 0 360px;
}
/* Hero 는 항상 viewport 진입 영역이라 content-visibility 없이 (paint 즉시) */
#homeMagazineRoot .mh-hero-pool {
  content-visibility: visible;
}

/* scroll 중 backdrop-filter 비활성 (GPU 부담 ↓) — body[data-scrolling="1"] */
body[data-scrolling="1"] #homeMagazineRoot .mh-hero-dots,
body[data-scrolling="1"] .list-header,
body[data-scrolling="1"] .input-bar,
body[data-scrolling="1"] .bottom-tab-bar {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ============================================================
   After10 Phase 1 — Photo Hero Slider (영상 대신 사진)
   Phase 2 영상 제작 후 망상앱 Hero/Live row 복원
============================================================ */

.m-hero-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 70vh;
  overflow: hidden;
  background: var(--color-base, #1a1108);
}

.m-hero-photo-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0;
  transition: opacity 600ms ease;
  pointer-events: none;
}

.m-hero-photo-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.m-hero-photo-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(10, 5, 16, 0) 0%,
    rgba(10, 5, 16, 0.25) 40%,
    rgba(10, 5, 16, 0.85) 80%,
    rgba(10, 5, 16, 0.96) 100%);
}

.m-hero-photo-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 22px 38px;
  color: var(--color-text, #E8DFD4);
  text-align: left;
}

.m-hero-photo-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(200, 155, 74, 0.18);
  color: var(--color-accent-light, #E2BA6B);
  border: 1px solid rgba(200, 155, 74, 0.32);
  margin-bottom: 10px;
}

.m-hero-photo-name {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.m-hero-photo-age {
  font-size: 18px;
  font-weight: 400;
  color: var(--color-text-muted, #B8A990);
  letter-spacing: 0;
}

.m-hero-photo-teaser {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-style: italic;
  font-size: 16px;
  color: var(--color-text, #E8DFD4);
  margin: 6px 0 18px;
  line-height: 1.45;
  opacity: 0.92;
}

.m-hero-photo-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans, sans-serif);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--color-accent, #C89B4A);
  color: #1a0e08;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(200, 155, 74, 0.32);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.m-hero-photo-cta:active {
  transform: scale(0.97);
}

.m-hero-photo-cta:hover {
  background: var(--color-accent-light, #E2BA6B);
  box-shadow: 0 6px 22px rgba(200, 155, 74, 0.42);
}

.m-hero-photo-dots {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 5;
}

.m-hero-photo-dot {
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease;
}

.m-hero-photo-dot.active {
  background: var(--color-accent, #C89B4A);
}

/* ============================================================
   After10 2.0 — 이번 주 추천 (3명 고정) + 지금 접속 중 (4명 랜덤)
============================================================ */

.m-section {
  padding: 28px 18px 8px;
}

.m-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.m-section-title {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text, #E8DFD4);
  letter-spacing: -0.01em;
}

.m-section-sub {
  font-size: 11px;
  color: var(--color-text-muted, #B8A990);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ===== 이번 주 추천 (3 카드, 가로 그리드) ===== */
.m-rec-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.m-rec-card {
  cursor: pointer;
  transition: transform 0.15s ease;
}

.m-rec-card:active {
  transform: scale(0.98);
}

.m-rec-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center top;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(200, 155, 74, 0.18);
}

.m-rec-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(10, 5, 16, 0) 50%,
    rgba(10, 5, 16, 0.78) 100%);
}

.m-rec-curate {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-style: italic;
  font-size: 11px;
  color: var(--color-accent-light, #E2BA6B);
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  line-height: 1.2;
}

.m-rec-body {
  margin-top: 8px;
  padding: 0 2px;
}

.m-rec-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text, #E8DFD4);
  margin-bottom: 3px;
}

.m-rec-age {
  font-size: 11px;
  font-weight: 400;
  color: var(--color-text-muted, #B8A990);
}

.m-rec-teaser {
  font-size: 11px;
  color: var(--color-text-muted, #B8A990);
}

/* ===== 지금 접속 중 (4 카드, 가로 스크롤) ===== */
.m-live-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.m-live-card {
  cursor: pointer;
  transition: transform 0.15s ease;
}

.m-live-card:active {
  transform: scale(0.97);
}

.m-live-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center top;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(155, 46, 63, 0.22);
}

.m-live-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(10, 5, 16, 0) 55%,
    rgba(10, 5, 16, 0.82) 100%);
}

.m-live-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.85);
  color: #fff;
  z-index: 2;
}

.m-live-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: m-live-pulse-anim 1.4s ease-in-out infinite;
}

@keyframes m-live-pulse-anim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.m-live-name-overlay {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text, #E8DFD4);
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}
