/* ========================================================================
   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;
}

/* ============================================================ */
/* V12.x: HERO PAIR SLOT (씬 탭 hero-mode iframe 임베드)
 *   - hero 슬라이드 자체가 iframe — 씬 탭의 hero-frame 그대로 사용
 *   - 마크업/JS/스타일 중복 없음
 * ============================================================ */
#homeMagazineRoot .mh-hero-slide.mh-hero-pair {
  background: #1a0e14;
  cursor: default;
}
#homeMagazineRoot .mh-hero-pair .mhp-iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; display: block;
  background: transparent;
}

/* V12.x [옵션 A]: iframe 안 영상 재생 중 → hero 슬라이드를 부모 풀스크린 */
body.mh-hero-pair-fs #homeMagazineRoot .mh-hero-pool,
body.mh-hero-pair-fs #homeMagazineRoot .mh-hero-slide.mh-hero-pair.active {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  z-index: 9998 !important;
  background: #000;
}
body.mh-hero-pair-fs .bottom-tab-bar,
body.mh-hero-pair-fs #bottomTabBar {
  display: none !important;
}
/* 풀스크린 동안 hero dots 숨김 (영상 위에 떠 있으면 거슬림) */
body.mh-hero-pair-fs #homeMagazineRoot .mh-hero-dots {
  display: none !important;
}

/* V12.x: 옛 mh-scene-overlay 룰 폐기 (iframe 임베드 방식으로 전환) */

/* ============================================================ */
/* V12.x: 씬 단편 매대 (홈 — 오늘의 한 컷)
 *   씬 탭 .short-* 디자인과 동일. 정적 썸네일 + 가격 칩 + 시청수.
 * ============================================================ */
#homeMagazineRoot .mh-shorts-section { margin-top: 32px; }
#homeMagazineRoot .mh-section-more {
  color: var(--color-text-mute, rgba(232,223,212,0.6));
  font-size: 12.5px;
  cursor: pointer;
  text-decoration: none;
}
#homeMagazineRoot .mh-section-more:hover { color: var(--color-accent, #C89B4A); }
#homeMagazineRoot .mh-shorts-row {
  display: flex; gap: 12px;
  overflow-x: auto;
  padding: 0 18px 4px;
}
#homeMagazineRoot .mh-shorts-row::-webkit-scrollbar { display: none; }
#homeMagazineRoot .mh-short {
  /* V12.x: 2장 + peek 구조 — 카드 width 를 viewport 기반으로 산출
     viewport 의 약 43% → 2.3 장 fit, 3번째 살짝 peek */
  flex: none;
  width: calc((100vw - 60px) / 2.3);
  min-width: 140px;
  max-width: 200px;
  cursor: pointer;
  text-decoration: none; color: inherit;
}
#homeMagazineRoot .mh-short-thumb {
  width: 100%; aspect-ratio: 9/16; border-radius: 13px;
  position: relative; overflow: hidden; margin-bottom: 9px;
  background-color: #1a0e14;
  background-size: cover; background-position: center;
}
#homeMagazineRoot .mh-short-len {
  position: absolute; top: 7px; right: 7px;
  font-size: 10.5px; color: #fff;
  background: rgba(0,0,0,0.65);
  padding: 3px 8px; border-radius: 7px;
  border: 1px solid rgba(232,223,212,0.18);
}
#homeMagazineRoot .mh-short-len::before {
  content: '▶ '; color: var(--color-accent, #C89B4A); font-size: 9px;
}
#homeMagazineRoot .mh-short-price {
  position: absolute; bottom: 8px; left: 8px;
  background: linear-gradient(135deg, rgba(200,169,106,0.95), rgba(167,136,80,0.95));
  color: #1a0e14; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  display: inline-flex; align-items: center; gap: 3px;
}
#homeMagazineRoot .mh-short.owned .mh-short-price {
  background: rgba(0,0,0,0.65); color: #fff;
  border: 1px solid rgba(200,169,106,0.45);
  box-shadow: none;
}
#homeMagazineRoot .mh-short.owned .mh-short-price::before {
  content: '✓ '; color: rgba(232,223,212,0.85);
}
#homeMagazineRoot .mh-short-grad {
  position: absolute; left: 0; right: 0; bottom: 0; height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  pointer-events: none;
}
#homeMagazineRoot .mh-short-name {
  color: var(--color-text, #E8DFD4);
  font-size: 13.5px;
  font-family: 'Noto Serif KR', serif;
  line-height: 1.35;
  margin-bottom: 3px;
  letter-spacing: -0.2px;
  font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#homeMagazineRoot .mh-short-meta {
  color: var(--color-text-mute, rgba(232,223,212,0.5));
  font-size: 11px;
}

/* ============================================================ */
/* V12.x [옵션 C]: 영상 카드 첫 프레임 paint 페이드 인
 *   data flow: <video> loadeddata/playing → .media-ready 추가 → opacity 0→1
 *   카드 background-image (프로필 사진) → video 첫 프레임 자연스럽게 cross-fade
 * ============================================================ */
#homeMagazineRoot .mh-live-frame video,
#homeMagazineRoot .mh-nc-video {
  opacity: 0;
  transition: opacity 0.12s ease;
}
#homeMagazineRoot .mh-live-frame video.media-ready,
#homeMagazineRoot .mh-nc-video.media-ready {
  opacity: 1;
}
/* 라이브 탭 영상 피드도 동일 처리 */
.video-feed-item .vf-player {
  opacity: 0;
  transition: opacity 0.12s ease;
}
.video-feed-item .vf-player.media-ready {
  opacity: 1;
}
