/* catalog.css — 리스트 뷰·히어로·통계 바·트레일러·페이즈 섹션·그리드·카드 */
  /* ── LIST VIEW (전면 개편) ── */
  body.list-mode .poster-grid {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }

  /* 컬럼 헤더 행 - 각 poster-grid 앞에 JS로 삽입됨 */
  .list-col-header {
    display: none;
  }
  body.list-mode .list-col-header {
    display: grid;
    grid-template-columns: 36px 1fr 56px 70px 78px 78px 64px;
    align-items: center;
    gap: 0.8rem;
    padding: 0.45rem 1rem;
    margin-bottom: 0.3rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--muted);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
  }
  .list-col-header span:nth-child(3),
  .list-col-header span:nth-child(4),
  .list-col-header span:nth-child(5),
  .list-col-header span:nth-child(6) { text-align: center; }
  .list-col-header span:last-child { text-align: right; }

  body.list-mode .poster-card {
    border-radius: 7px;
    padding: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
  }
  body.list-mode .poster-card:nth-child(even) {
    background: #171717;
  }
  body.list-mode .poster-card:hover {
    transform: translateX(3px);
    box-shadow: -3px 0 0 var(--gold), 0 4px 14px rgba(0,0,0,0.4);
    border-color: var(--gold);
    z-index: 1;
  }

  /* 원본 그리드용 요소는 리스트 모드에서 전부 숨김 (TOP4-10/11위 이하 랭킹 카드 포함) */
  body.list-mode .poster-img-wrap,
  body.list-mode .card-info {
    display: none;
  }
  /* 랭킹의 4위 이하 행(.rank-card)은 그 자체가 이미 한 줄짜리 목록이라
     리스트 모드에서 따로 바꾸지 않는다. 여기에 규칙을 다시 넣으면 순위 행의
     grid 배치가 display:block 으로 덮여 깨진다. */

  /* JS가 삽입하는 list-row가 실제 표시 내용 */
  .list-row { display: none; }
  body.list-mode .list-row {
    display: grid;
    grid-template-columns: 36px 1fr 56px 70px 78px 78px 64px;
    align-items: center;
    gap: 0.8rem;
    padding: 0.55rem 1rem;
  }
  .list-icon-col {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
  }
  .list-title-col { min-width: 0; }
  .list-title-col .list-title {
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .list-title-col .list-en-title {
    font-size: 0.66rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .list-year-col {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
  }
  .list-type-col { text-align: center; }
  .list-type-col .type-badge {
    position: static;
    display: inline-block;
    font-size: 0.56rem;
    padding: 0.22rem 0.5rem;
  }
  .list-score-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    padding: 0.2rem 0;
    border-radius: 5px;
    background: rgba(255,255,255,0.03);
  }
  .list-score-col .rt-tomato { font-size: 0.7rem; }
  .list-score-col .rt-pct, .list-score-col .audience-pct { font-size: 0.72rem; font-weight: 700; }
  .list-total-col {
    text-align: right;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.95rem;
    color: var(--gold);
    letter-spacing: 0.03em;
  }
  body.list-mode .rt-pct, body.list-mode .audience-pct { font-size: 0.75rem; }

  /* TOP3 포디움은 리스트 모드에서도 그리드 그대로 유지 */
  body.list-mode .podium-grid {
    display: grid;
  }
  body.list-mode .podium-card {
    flex-direction: column;
  }


  /* 어벤져스 트레일러 영화 선택 화면은 리스트 모드와 무관하게 항상 그리드 유지 */
  body.list-mode #trailerMovieSelect {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
  }
  body.list-mode #trailerMovieSelect .poster-card {
    border-radius: 6px;
    padding: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: none;
  }
  body.list-mode #trailerMovieSelect .poster-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0,0,0,0.6);
  }
  body.list-mode #trailerMovieSelect .poster-img-wrap,
  body.list-mode #trailerMovieSelect .card-info {
    display: block;
  }

  /* ── HERO ── */
  .hero {
    position: relative;
    border-bottom: 1px solid var(--border);
    padding: 3.5rem 2rem 3rem;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(232,0,28,0.08) 0%, transparent 70%);
    overflow: hidden;
  }
  .hero-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 480px;
    height: 480px;
    transform: translate(-50%, -50%);
    color: var(--red);
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
  }
  .hero-watermark svg { width: 100%; height: 100%; }
  .hero-eyebrow,
  .hero-title {
    position: relative;
    z-index: 1;
  }
  .hero-eyebrow {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    color: var(--red);
    margin-bottom: 0.75rem;
  }
  .hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.8rem, 6vw, 5rem);
    letter-spacing: 0.06em;
    line-height: 1;
    margin-bottom: 1rem;
  }
  .hero-title span { color: var(--gold); }

  /* 히어로 타이틀 1회 글리치 (페이지 로드 시) */
  .hero-title.hero-glitch::before,
  .hero-title.hero-glitch::after {
    content: 'THE COMPLETE MCU ARCHIVE';
    position: absolute;
    inset: 0;
    overflow: hidden;
    white-space: nowrap;
  }
  .hero-title.hero-glitch::before {
    color: #00e0ff;
    transform: translate(-4px, -1px);
    clip-path: inset(10% 0 60% 0);
    animation: heroGlitchA 0.5s steps(4, end) 1;
  }
  .hero-title.hero-glitch::after {
    color: #ff2bd6;
    transform: translate(4px, 1px);
    clip-path: inset(55% 0 15% 0);
    animation: heroGlitchB 0.5s steps(4, end) 1;
  }
  @keyframes heroGlitchA {
    0%, 100% { opacity: 0; }
    20% { opacity: 0.8; }
    45% { opacity: 0.3; }
    70% { opacity: 0.7; }
  }
  @keyframes heroGlitchB {
    0%, 100% { opacity: 0; }
    30% { opacity: 0.75; }
    55% { opacity: 0; }
    80% { opacity: 0.6; }
  }
  /* ── CATALOG DASHBOARD: 빠른 기능 / 숫자 통계 / 아카이브 기능 분리 ── */
  .stats-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem clamp(1rem, 3vw, 2.5rem) 1.7rem;
    border-bottom: 1px solid var(--border);
  }
  .stats-actions {
    width: min(1280px, 100%);
    display: flex;
    align-items: stretch;
    gap: 0.9rem;
  }
  .stats-actions .view-toggle {
    align-self: stretch;
    margin-top: 0;
    padding: 0.38rem;
    border-color: rgba(255,255,255,0.09);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012)), #0e0f11;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.045), 0 8px 20px rgba(0,0,0,0.16);
  }
  .stats-actions .view-toggle-btn {
    min-width: 42px;
    border-radius: 10px;
  }
  .stats-actions .view-toggle-btn.active {
    background: linear-gradient(145deg, #f20a2b, #ac0019);
    box-shadow: 0 5px 14px rgba(185,0,25,0.25);
  }
  .trigger-group {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.48rem;
    padding: 0.42rem;
    border: 1px solid rgba(255,255,255,0.075);
    border-radius: 16px;
    background: rgba(6,7,8,0.62);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
  }
  .trigger-group .ranking-trigger-btn {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    margin-top: 0;
    padding: 0.52rem 0.46rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    line-height: 1.25;
    white-space: normal;
    text-align: center;
  }
  .stats-summary {
    width: min(1040px, 100%);
    display: grid;
    grid-template-columns: minmax(150px, 0.55fr) 1px minmax(0, 2fr);
    align-items: stretch;
    gap: clamp(1rem, 2.8vw, 2.4rem);
    padding: 1.05rem 1.35rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(0,0,0,0.24);
  }
  .stats-divider {
    width: 1px;
    height: 72%;
    align-self: end;
    background: var(--border);
  }
  .stat-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .stat-total-col { align-items: center; text-align: center; }
  .stat-total-col .stat-group-label { text-align: center; }
  .stat-total-col .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
  }
  .stat-mcu-col { align-items: stretch; }
  .stat-mcu-col .stat-group-label { text-align: center; }
  .stat-mcu-col .stat-group {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .stat-group {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  .stat-group-label {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    color: var(--gold);
    text-transform: uppercase;
    white-space: nowrap;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.6rem;
  }
  .stat { text-align: center; }
  .archive-feature-panel {
    width: min(920px, 100%);
    padding: 1rem 1.1rem 1.1rem;
    border: 1px solid rgba(201,168,76,0.24);
    border-radius: 12px;
    background: rgba(201,168,76,0.035);
  }
  .archive-feature-label {
    margin-bottom: 0.75rem;
    color: var(--gold);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-align: center;
  }
  .archive-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
  }
  .archive-feature-btn {
    min-width: 0;
    min-height: 64px;
    padding: 0.7rem 0.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(0,0,0,0.36);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    line-height: 1.3;
    text-align: center;
    transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
  }
  .archive-feature-btn .icon {
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 auto;
    color: var(--red);
  }
  .archive-feature-btn:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    background: rgba(201,168,76,0.08);
    color: var(--gold);
  }
  .archive-feature-btn.active { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,0.1); }

  /* ── STATS (원형 글로시 차트) ── */
  .stats-charts-wrap {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.8rem;
    margin-top: 1.8rem;
  }
  .stats-chart-card {
    flex: 1;
    min-width: 320px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.8rem 1.6rem 1.6rem;
    position: relative;
  }
  .stats-chart-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 10px 10px 0 0;
    background: linear-gradient(90deg, var(--red), var(--gold), var(--red));
    background-size: 200% 100%;
    animation: mcuTrimShift 6s linear infinite;
    pointer-events: none;
  }
  @keyframes mcuTrimShift {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
  }
  .stats-chart-title {
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    color: var(--text);
    margin: 0 0 0.3rem;
  }
  .stats-chart-sub {
    font-size: 0.74rem;
    color: var(--muted);
    margin-bottom: 1.2rem;
  }
  .stats-chart-legend {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.4rem;
    font-size: 0.74rem;
    color: var(--muted);
  }
  .legend-item { display: flex; align-items: center; gap: 0.4rem; }
  .legend-swatch { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
  .legend-swatch.legend-rt { background: #f4f4f4; box-shadow: inset -2px -2px 3px rgba(0,0,0,0.4), inset 2px 2px 3px rgba(255,255,255,0.4); }
  .legend-swatch.legend-aud { background: linear-gradient(135deg, var(--red), var(--gold)); }

  /* 게이지(평균 평점) 카드 */
  .gauge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.8rem 1.2rem;
    margin-top: 0.4rem;
  }
  .gauge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 0.65rem 0.45rem;
    background: transparent;
    color: inherit;
    font: inherit;
    appearance: none;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), filter 0.4s;
    transform-style: preserve-3d;
  }
  .gauge-item:hover {
    transform: perspective(700px) rotateX(8deg) rotateY(-8deg) scale(1.07) translateY(-4px);
    filter: drop-shadow(0 16px 20px rgba(0,0,0,0.55));
    z-index: 5;
  }
  .gauge-item.selected {
    border-color: color-mix(in srgb, var(--gold) 64%, transparent);
    background: linear-gradient(145deg, rgba(201,168,76,0.12), rgba(232,0,28,0.04));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.025), 0 0 24px rgba(201,168,76,0.1);
  }
  .gauge-item:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
  }
  .gauge-phase-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.06em;
    color: var(--text);
    margin-bottom: 0.5rem;
  }
  .gauge-ring {
    fill: none;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.9s cubic-bezier(0.22,1,0.36,1);
  }
  .gauge-center-num { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 26px; letter-spacing: 0.02em; fill: var(--text); }
  .gauge-center-label { font-family: 'Bebas Neue', sans-serif; font-size: 10px; fill: var(--muted); letter-spacing: 0.1em; }
  .gauge-readout {
    margin-top: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    width: 100%;
    max-width: 130px;
  }
  .gauge-readout-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--muted);
  }
  .gauge-readout-row b { margin-left: auto; color: var(--text); font-weight: 700; }
  .gauge-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: inset -1px -1px 2px rgba(0,0,0,0.4), inset 1px 1px 2px rgba(255,255,255,0.35);
  }

  /* 도넛(작품 수) 카드 */
  .donut-wrap {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
  }
  .donut-svg-wrap {
    flex-shrink: 0;
    overflow: visible;
  }
  .donut-segment {
    cursor: pointer;
    transition: filter 0.3s ease;
  }
  .donut-segment circle {
    fill: none;
  }
  .donut-segment:hover,
  .donut-segment.legend-active {
    filter: drop-shadow(0 0 9px rgba(255,255,255,0.5)) brightness(1.18);
  }
  .donut-center-num { font-family: 'Bebas Neue', sans-serif; font-weight: 400; letter-spacing: 0.02em; fill: var(--text); }
  .donut-center-label { font-family: 'Bebas Neue', sans-serif; fill: var(--gold); letter-spacing: 0.1em; }
  .donut-legend {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
  }
  .donut-legend-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    color: var(--muted);
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    margin: 0 -0.6rem;
    border-radius: 6px;
    border-left: 3px solid transparent;
    transition: transform 0.25s ease, color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  }
  .donut-legend-item:hover {
    color: var(--text);
    background-color: color-mix(in srgb, var(--lc, var(--gold)) 14%, transparent);
    border-left-color: var(--lc, var(--gold));
    transform: translateX(5px);
  }
  .donut-legend-swatch {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: inset -2px -2px 3px rgba(0,0,0,0.35), inset 2px 2px 3px rgba(255,255,255,0.3);
  }
  .donut-legend-count { margin-left: auto; font-weight: 700; color: var(--text); }

  /* 페이즈 평균 평점 차트에서 펼치는 작품 목록 */
  .phase-work-panel {
    --phase-accent: var(--gold);
    width: 100%;
    margin-top: 1.5rem;
    padding: 1.35rem;
    border: 1px solid color-mix(in srgb, var(--phase-accent) 48%, var(--border));
    border-radius: 12px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--phase-accent) 8%, #111), #0b0b0b 48%, #101010);
    box-shadow: 0 18px 45px rgba(0,0,0,0.28), inset 4px 0 0 var(--phase-accent);
    scroll-margin-top: 5rem;
  }
  .phase-work-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.09);
  }
  .phase-work-kicker {
    display: block;
    margin-bottom: 0.35rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    color: var(--phase-accent);
  }
  .phase-work-panel h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text);
  }
  .phase-work-panel-head p {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.78rem;
  }
  .phase-work-close {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 999px;
    background: rgba(0,0,0,0.35);
    color: var(--muted);
    font: inherit;
    font-size: 0.76rem;
    cursor: pointer;
  }
  .phase-work-close span:first-child { font-size: 1.2rem; line-height: 1; }
  .phase-work-close:hover,
  .phase-work-close:focus-visible { border-color: var(--phase-accent); color: var(--text); outline: none; }
  .phase-work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
  }
  .phase-work-item {
    position: relative;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) 18px;
    gap: 0.85rem;
    align-items: center;
    min-width: 0;
    padding: 0.65rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    background: rgba(8,8,8,0.72);
    color: inherit;
    text-align: left;
    font: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
  }
  .phase-work-item:hover,
  .phase-work-item:focus-visible {
    border-color: color-mix(in srgb, var(--phase-accent) 68%, white 5%);
    background: color-mix(in srgb, var(--phase-accent) 8%, #0b0b0b);
    transform: translateY(-2px);
    outline: none;
  }
  .phase-work-thumb {
    position: relative;
    display: block;
    width: 68px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 7px;
    background: #050505;
    border: 1px solid rgba(255,255,255,0.1);
  }
  .phase-work-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .phase-work-thumb img.is-logo { object-fit: contain; padding: 0.35rem; }
  .phase-work-thumb-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    color: color-mix(in srgb, var(--phase-accent) 72%, #777);
  }
  .phase-work-thumb-placeholder[hidden] { display: none; }
  .phase-work-thumb-placeholder .icon { width: 1.25rem; height: 1.25rem; }
  .phase-work-thumb-placeholder small { font-size: 0.48rem; letter-spacing: 0.08em; }
  .phase-work-copy { display: flex; min-width: 0; flex-direction: column; gap: 0.2rem; }
  .phase-work-type { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.12em; color: var(--phase-accent); }
  .phase-work-copy strong { overflow: hidden; color: var(--text); font-size: 0.86rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
  .phase-work-en { overflow: hidden; color: var(--muted); font-size: 0.66rem; text-overflow: ellipsis; white-space: nowrap; }
  .phase-work-meta { color: #777; font-size: 0.63rem; letter-spacing: 0.04em; }
  .phase-work-scores { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.3rem; color: #8b8b8b; font-size: 0.66rem; }
  .phase-work-scores b { color: var(--text); }
  .phase-work-open { color: var(--phase-accent); font-size: 1.5rem; line-height: 1; }

  @media (max-width: 768px) {
    .stats-charts-wrap { flex-direction: column; }
    .donut-wrap { flex-direction: column; align-items: flex-start; }
    .phase-work-panel { padding: 1rem; }
    .phase-work-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
  }

  /* ── AVENGERS TRAILERS ── */
  .trailer-back-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 0.5rem 1.1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    margin-bottom: 1.2rem;
    transition: border-color 0.2s, color 0.2s;
  }
  .trailer-back-btn:hover {
    border-color: var(--red);
    color: var(--text);
  }
  .trailer-movie-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    color: var(--text);
    margin-bottom: 1.2rem;
  }
  .trailer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.4rem;
  }
  .trailer-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  }
  .trailer-card:hover {
    border-color: var(--red);
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.5);
  }
  .trailer-thumb-wrap {
    position: relative;
    aspect-ratio: 16/9;
    background: #111;
    overflow: hidden;
  }
  .trailer-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .trailer-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }
  .trailer-play-icon svg {
    width: 56px;
    height: 56px;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.6));
  }
  .trailer-card-label {
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 600;
  }
  .trailer-player-wrap {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
  }
  .trailer-player-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }
  .stat-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--red);
    line-height: 1;
  }
  .stat-label {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--muted);
    text-transform: uppercase;
    margin-top: 0.2rem;
  }

  /* ── MAIN ── */
  main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
  }

  /* ── PHASE SECTION ── */
  .phase-section { margin-bottom: 4rem; }
  .phase-section.hidden { display: none; }
  .hidden { display: none !important; }

  .phase-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
  }
  .phase-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.1em;
  }
  .phase-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
    color: #fff;
  }
  .phase-count {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.08em;
  }

  /* 페이즈별 색상 */
  .phase-1 .phase-title { color: var(--phase1); }
  .phase-1 .phase-badge { background: var(--phase1); }
  .phase-2 .phase-title { color: var(--phase2); }
  .phase-2 .phase-badge { background: var(--phase2); }
  .phase-3 .phase-title { color: var(--phase3); }
  .phase-3 .phase-badge { background: var(--phase3); }
  .phase-4 .phase-title { color: var(--phase4); }
  .phase-4 .phase-badge { background: var(--phase4); }
  .phase-5 .phase-title { color: var(--phase5); }
  .phase-5 .phase-badge { background: var(--phase5); }
  .phase-6 .phase-title { color: var(--phase6); }
  .phase-6 .phase-badge { background: var(--phase6); }
  .phase-7 .phase-title { color: var(--phase7); }
  .phase-7 .phase-badge { background: var(--phase7); color: #071507; }
  .phase-tbd .phase-title { color: #AAB4C2; }
  .phase-tbd .phase-badge { background: #3A424D; color: #E5EAF0; }

  /* ── GRID ── */
  .poster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
  }

  /* ── CARD ── */
  .poster-card {
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border);
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    position: relative;
  }
  /* 이미지 로드 성공 표시는 정적인 테두리로만 유지한다. 반복 발광은 PC·모바일 모두 제거. */
  .poster-card.img-ok {
    border-color: rgba(201,168,76,0.36);
    transition: transform 0.25s;
  }
  .poster-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--gold);
    box-shadow: 0 12px 32px rgba(0,0,0,0.6);
    z-index: 10;
  }
  .poster-card.card-hidden { display: none; }

  /* Phase / 카테고리별 호버 림 라이트 */
  .poster-card[data-phase="1"]:hover { border-color: #E8001C; box-shadow: 0 12px 32px rgba(0,0,0,0.6), 0 0 22px rgba(232,0,28,0.45); }
  .poster-card[data-phase="2"]:hover { border-color: #FF7A1A; box-shadow: 0 12px 32px rgba(0,0,0,0.6), 0 0 22px rgba(255,122,26,0.45); }
  .poster-card[data-phase="3"]:hover { border-color: #C9A84C; box-shadow: 0 12px 32px rgba(0,0,0,0.6), 0 0 22px rgba(201,168,76,0.45); }
  .poster-card[data-phase="4"]:hover { border-color: #8E5BFF; box-shadow: 0 12px 32px rgba(0,0,0,0.6), 0 0 22px rgba(142,91,255,0.45); }
  .poster-card[data-phase="5"]:hover { border-color: #2BD6FF; box-shadow: 0 12px 32px rgba(0,0,0,0.6), 0 0 22px rgba(43,214,255,0.45); }
  .poster-card[data-phase="6"]:hover { border-color: #FF2B9D; box-shadow: 0 12px 32px rgba(0,0,0,0.6), 0 0 22px rgba(255,43,157,0.45); }
  .poster-card[data-phase="7"]:hover { border-color: #76E06E; box-shadow: 0 12px 32px rgba(0,0,0,0.6), 0 0 22px rgba(118,224,110,0.45); }
  .poster-card[data-phase="tbd"]:hover { border-color: #AAB4C2; box-shadow: 0 12px 32px rgba(0,0,0,0.6), 0 0 22px rgba(170,180,194,0.38); }
  .poster-card[data-phase="defenders"]:hover { border-color: #D32F2F; box-shadow: 0 12px 32px rgba(0,0,0,0.6), 0 0 22px rgba(211,47,47,0.45); }
  .poster-card[data-phase="television"]:hover { border-color: #3F51B5; box-shadow: 0 12px 32px rgba(0,0,0,0.6), 0 0 22px rgba(63,81,181,0.45); }
  .poster-card[data-phase="xmen"]:hover { border-color: #4A6FE3; box-shadow: 0 12px 32px rgba(0,0,0,0.6), 0 0 22px rgba(74,111,227,0.45); }
  .poster-card[data-phase="sony"]:hover { border-color: #E8001C; box-shadow: 0 12px 32px rgba(0,0,0,0.6), 0 0 22px rgba(232,0,28,0.4); }
  .poster-card[data-phase="other"]:hover { border-color: #9a9a9a; box-shadow: 0 12px 32px rgba(0,0,0,0.6), 0 0 18px rgba(255,255,255,0.18); }

  .poster-img-wrap {
    aspect-ratio: 2/3;
    overflow: hidden;
    position: relative;
    background: #1a1a1a;
  }
  .poster-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s;
  }
  /* 메인 포스터 파일이 없을 때만 타이틀 로고를 임시 표시한다. 포스터가 생기면 자동으로 일반 cover 표시로 돌아간다. */
  .poster-img-wrap.logo-fallback {
    background: #000;
  }
  .poster-img-wrap.logo-fallback img {
    object-fit: contain;
    padding: 0.75rem;
    box-sizing: border-box;
  }
  .poster-fallback-badge {
    display: none;
    position: absolute;
    right: 0.45rem;
    bottom: 0.45rem;
    z-index: 3;
    padding: 0.25rem 0.42rem;
    border: 1px solid rgba(201,168,76,0.5);
    border-radius: 4px;
    background: rgba(0,0,0,0.82);
    color: var(--gold);
    font-size: 0.48rem;
    font-weight: 700;
    letter-spacing: 0.06em;
  }
  .poster-img-wrap.logo-fallback .poster-fallback-badge,
  .poster-img-wrap.poster-missing-all .poster-fallback-badge { display: block; }
  /* 로고 앨범 카드는 로고 전체가 잘리지 않게 contain으로 표시 */
  .logo-img-wrap {
    background: #000;
  }
  .logo-img-wrap img {
    object-fit: contain;
    padding: 1.1rem;
    box-sizing: border-box;
  }
  /* 포스터 없을 때 플레이스홀더 — 이미지 로드가 실패한 모든 카드에 공통 적용됨(미개봉 여부와 무관).
     img의 onerror로만 노출되므로: 이미지를 채우면 사라지고, 나중에 다시 빼면(파일 삭제/경로 무효화) 재로드 시 다시 나타남 */
  .poster-placeholder {
    position: absolute;
    inset: 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    color: rgba(201,168,76,0.55);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    padding: 0.5rem;
    background:
      radial-gradient(1.2px 1.2px at 18% 22%, rgba(255,255,255,0.95) 0%, transparent 100%),
      radial-gradient(1px 1px at 82% 15%, rgba(255,255,255,0.75) 0%, transparent 100%),
      radial-gradient(1.4px 1.4px at 62% 78%, rgba(201,168,76,0.9) 0%, transparent 100%),
      radial-gradient(1px 1px at 12% 68%, rgba(255,255,255,0.6) 0%, transparent 100%),
      radial-gradient(1.2px 1.2px at 90% 60%, rgba(201,168,76,0.7) 0%, transparent 100%),
      radial-gradient(1px 1px at 40% 40%, rgba(255,255,255,0.5) 0%, transparent 100%),
      radial-gradient(1px 1px at 32% 90%, rgba(255,255,255,0.55) 0%, transparent 100%),
      repeating-linear-gradient(135deg, rgba(201,168,76,0.05) 0 10px, transparent 10px 20px),
      #141414;
    animation: slotStarsTwinkle 4s ease-in-out infinite;
    border: 1px dashed rgba(201,168,76,0.32);
    border-radius: 6px;
    overflow: hidden;
  }
  @keyframes slotStarsTwinkle {
    0%, 100% { background-color: #141414; }
    50% { background-color: #17140d; }
  }
  .poster-placeholder::before {
    content: "빈 자리";
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    max-width: calc(100% - 1rem);
    box-sizing: border-box;
    font-size: 0.5rem;
    letter-spacing: 0.08em;
    color: var(--gold);
    background: rgba(20,20,20,0.75);
    border: 1px solid rgba(201,168,76,0.4);
    padding: 0.16rem 0.45rem;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 2;
  }
  .icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.15em;
    flex-shrink: 0;
  }
  .placeholder-icon {
    font-size: 1.9rem;
    opacity: 0.55;
    margin-top: 0.2rem;
    filter: grayscale(0.4);
    animation: placeholderBreathe 2.6s ease-in-out infinite;
    position: relative;
    z-index: 2;
  }
  @keyframes placeholderBreathe {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.75; transform: scale(1.06); }
  }
  /* 실제 빈 슬롯이 화면에 보일 때 JS가 0.5초 동안만 붙이는 스파크 버스트 */
  .poster-placeholder.glitch-burst {
    animation: slotStarsTwinkle 4s ease-in-out infinite, boxGlitchShift 0.5s steps(8,end);
  }
  .poster-placeholder.glitch-burst .placeholder-icon {
    animation: placeholderBreathe 2.6s ease-in-out infinite, iconGlitchShake 0.5s steps(8,end);
  }
  .poster-placeholder.glitch-burst::before {
    animation: textGlitchRGB 0.5s steps(8,end);
  }
  @keyframes iconGlitchShake {
    0%, 100% { transform: translate(0,0); }
    12% { transform: translate(-2px, 1px); }
    25% { transform: translate(2px, -1px); }
    37% { transform: translate(-1px, 0); }
    50% { transform: translate(1px, 1px); }
    62% { transform: translate(-2px, 0); }
    75% { transform: translate(1px, -1px); }
    87% { transform: translate(-1px, 1px); }
  }
  @keyframes textGlitchRGB {
    0%, 100% { text-shadow: none; transform: translateX(0); }
    12% { text-shadow: -3px 0 rgba(0,224,255,1), 3px 0 rgba(255,43,214,0.95); transform: translateX(-2px); }
    25% { text-shadow: 3px 0 rgba(0,224,255,1), -3px 0 rgba(255,43,214,0.95); transform: translateX(2px); }
    37% { text-shadow: -2px 0 rgba(0,224,255,0.9), 2px 0 rgba(255,43,214,0.85); transform: translateX(0); }
    50% { text-shadow: 2px 0 rgba(0,224,255,0.9), -2px 0 rgba(255,43,214,0.85); transform: translateX(-1px); }
    62% { text-shadow: -3px 0 rgba(0,224,255,1), 3px 0 rgba(255,43,214,0.95); transform: translateX(1px); }
    75% { text-shadow: none; transform: translateX(0); }
    87% { text-shadow: 2px 0 rgba(0,224,255,0.8), -2px 0 rgba(255,43,214,0.8); transform: translateX(-1px); }
  }

  .type-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.45rem;
    border-radius: 3px;
    text-transform: uppercase;
  }
  .type-movie   { background: rgba(232,0,28,0.85); color: #fff; }
  .type-series  { background: rgba(0,188,212,0.85); color: #fff; }
  .type-animation { background: rgba(123,104,238,0.85); color: #fff; }
  .type-special { background: rgba(201,168,76,0.85); color: #000; }

  .card-info {
    padding: 0.6rem 0.65rem 0.7rem;
  }
  .card-title {
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .card-title mark.search-hl {
    background: var(--gold);
    color: #1a1500;
    border-radius: 2px;
    padding: 0 1px;
  }
  .card-year {
    font-size: 0.67rem;
    color: var(--muted);
    font-weight: 300;
  }
