/* 팬 컨텐츠 — 스튜디오 미리보기와 동일 구조 (풀스크린) */
.fan-corner {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #0a0a0a;
  color: #eee;
  display: flex;
  flex-direction: column;
}

.fan-corner .fc-inner { font-size: 13px; }

.fan-corner .fc-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px var(--pad-x, 14px) 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fan-corner .fc-back-chat {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin: -4px 0 -4px -4px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #eee;
  font-size: 18px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.fan-corner .fc-topbar .fc-brand { margin-right: auto; }

.fan-corner .fc-brand {
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: 11px;
  color: #e50914;
}

.fan-corner .fc-creator { font-size: 13px; color: #aaa; }

.fan-corner .fc-home {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-height: 0;
}

/* ── 메인 고정 히어로 (강조형 · 자동 슬라이드) ── */
.fan-corner .fc-hero-wrap {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #111;
  flex-shrink: 0;
  width: 100%;
}

.fan-corner .fc-hero-wrap[data-hero-carousel] {
  touch-action: pan-x pan-y;
}

.fan-corner .fc-hero-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  touch-action: pan-x pan-y;
}

.fan-corner .fc-hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #1a1218 center/cover no-repeat;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
  cursor: pointer;
  z-index: 0;
}

.fan-corner .fc-hero-slide.on {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
  position: absolute;
  inset: 0;
  min-height: 0;
}

.fan-corner .fc-hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, transparent 55%),
    linear-gradient(to top, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.72) 38%, rgba(0, 0, 0, 0.15) 68%, transparent 100%);
}

.fan-corner .fc-hero-body {
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
  padding: 0 var(--pad-x, 14px) 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  text-align: left;
  flex-shrink: 0;
}

.fan-corner .fc-hero-copy {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: block;
  text-align: left;
}

.fan-corner .fc-hero-text {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 0;
  margin: 0;
  text-align: left;
}

.fan-corner .fc-hero-badge {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(229, 9, 20, 0.9);
  color: #fff;
  margin: 0 0 2px;
  align-self: flex-start;
}

.fan-corner .fc-hero-badge--banner { background: rgba(100, 149, 237, 0.9); }

.fan-corner .fc-hero-title {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  color: #fff;
  font-size: clamp(18px, 5.5vw, 24px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: left;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.85);
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  -webkit-box-pack: start;
  max-height: none;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.fan-corner .fc-hero-desc {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  font-size: clamp(11px, 3.2vw, 13px);
  line-height: 1.45;
  color: #ececec;
  text-align: left;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  overflow: hidden;
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  word-break: keep-all;
  overflow-wrap: normal;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}

.fan-corner .fc-hero-title.fc-editable,
.fan-corner .fc-hero-desc.fc-editable {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.fan-corner .fc-hero-cta {
  flex-shrink: 0;
  margin-top: 2px;
  min-height: 38px;
  padding: 0 18px;
  border: none;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.fan-corner .fc-hero-cta:active { transform: scale(0.97); }

.fan-corner .fc-hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 0 4px;
  background: #0a0a0a;
}

.fan-corner .fc-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.fan-corner .fc-hero-dot.on {
  background: #e50914;
  transform: scale(1.2);
}

.fan-corner .fc-hero--empty {
  aspect-ratio: 16 / 9;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 13px;
  padding: 24px;
  text-align: center;
}

.fan-corner .fc-hero-wrap--empty {
  margin: 0;
  overflow: hidden;
}

.fan-corner button.fc-hero-wrap--empty {
  border: none;
  padding: 0;
  margin: 0;
  width: 100%;
  cursor: pointer;
  font: inherit;
  color: inherit;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}

.fan-corner .fc-hero-viewport--empty {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(145deg, rgba(26, 26, 31, 0.95), rgba(18, 18, 22, 0.98));
  border: 1px dashed rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.fan-corner .fc-hero-viewport--empty::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 28% 22%, rgba(229, 9, 20, 0.1), transparent 52%),
    radial-gradient(circle at 72% 78%, rgba(255, 255, 255, 0.05), transparent 48%);
  filter: blur(18px);
  opacity: 0.85;
  pointer-events: none;
}

.fan-corner .fc-slot-empty-icon {
  position: relative;
  z-index: 1;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  color: rgba(255, 255, 255, 0.34);
}

.fan-corner .fc-slot-empty-label {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.42);
}

.fan-corner .fc-slot-empty-hint {
  position: relative;
  z-index: 1;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.28);
}

.fan-corner button.fc-hero-wrap--empty:hover .fc-hero-viewport--empty,
.fan-corner button.fc-hero-wrap--empty:focus-visible .fc-hero-viewport--empty {
  border-color: rgba(229, 9, 20, 0.45);
  background: linear-gradient(145deg, rgba(36, 20, 24, 0.98), rgba(22, 18, 20, 0.98));
}

.fan-corner .fc-grid-cell--empty {
  cursor: default;
  pointer-events: none;
}

.fan-corner button.fc-grid-cell--empty {
  cursor: pointer;
  pointer-events: auto;
}

.fan-corner .fc-grid-thumb--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  opacity: 0.82;
}

.fan-corner .fc-grid-cell--empty .fc-slot-empty-icon {
  font-size: 20px;
}

.fan-corner .fc-grid-cell--empty .fc-slot-empty-label {
  font-size: 10px;
}

.fan-corner button.fc-grid-cell--empty:hover .fc-grid-thumb--empty,
.fan-corner button.fc-grid-cell--empty:focus-visible .fc-grid-thumb--empty {
  border-color: rgba(229, 9, 20, 0.42);
  background: rgba(229, 9, 20, 0.07);
  opacity: 1;
}

/* ── 섹션 행 (미리보기 sp-row 동일) ── */
.fan-corner .fc-rows {
  padding: 12px var(--pad-x, 14px) calc(16px + var(--safe-b, 0px));
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 0 0 auto;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

.fan-corner .fc-row {
  min-width: 0;
  max-width: 100%;
}

.fan-corner .fc-row-head { margin-bottom: 8px; }

.fan-corner .fc-row-head-text {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.fan-corner .fc-row-title {
  display: block;
  width: 100%;
  max-width: 100%;
  font-size: 15px;
  font-weight: 800;
  margin: 0;
  padding: 0;
  line-height: 1.25;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fan-corner .fc-row-sub {
  display: block;
  width: 100%;
  max-width: 100%;
  font-size: 11px;
  color: #888;
  margin: 0;
  padding: 0;
  line-height: 1.3;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fan-corner .fc-grid-wrap {
  min-width: 0;
  max-width: 100%;
}

/* ── 홈 · 폴더별 가로 슬라이드 ── */
.fan-corner .fc-track {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
  touch-action: pan-x;
}

.fan-corner .fc-track::-webkit-scrollbar { display: none; width: 0; height: 0; }

.fan-corner .fc-track .fc-grid-cell {
  flex: 0 0 calc((100% - 9px) / 4);
  min-width: calc((100% - 9px) / 4);
  scroll-snap-align: start;
}

.fan-corner .fc-track--empty,
.fan-corner .fc-track--static {
  overflow-x: hidden;
  touch-action: pan-y;
  scroll-snap-type: none;
  min-height: auto;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  background: transparent;
}

/* ── 인스타 3열 그리드 · 4:5 (전체 보기) ── */
.fan-corner .fc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  width: 100%;
  min-width: 0;
}

.fan-corner .fc-grid--detail {
  padding: 10px var(--pad-x, 14px) calc(16px + var(--safe-b, 0px));
}

.fan-corner .fc-grid-cell {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  min-width: 0;
  text-align: left;
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.fan-corner .fc-grid-cell:active .fc-grid-thumb {
  transform: scale(0.98);
  opacity: 0.92;
}

.fan-corner .fc-grid-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  background: #222 center/cover no-repeat;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s, opacity 0.15s;
}

.fan-corner .fc-grid-cell--lock .fc-grid-thumb { opacity: 0.82; }

.fan-corner .fc-grid-cell--main .fc-grid-thumb {
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.75);
}

.fan-corner .fc-grid-lock {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 13px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
  z-index: 2;
}

.fan-corner .fc-grid-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 2px;
  pointer-events: none;
}

.fan-corner .fc-grid-main-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 2;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(229, 9, 20, 0.92);
  color: #fff;
  pointer-events: none;
}

.fan-corner .fc-grid-drag {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 3;
  font-size: 9px;
  line-height: 1;
  padding: 3px 4px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.7);
  cursor: grab;
  user-select: none;
  letter-spacing: -1px;
}

.fan-corner .fc-grid-drag:active { cursor: grabbing; }

.fan-corner .fc-grid-caption {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.25;
  color: #aaa;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 1px;
}

.fan-corner .fc-grid-cell.dragging { opacity: 0.45; }

.fan-corner .fc-grid-cell.drag-over .fc-grid-thumb {
  outline: 2px dashed rgba(229, 9, 20, 0.75);
  outline-offset: 1px;
}

.fan-corner .fc-empty {
  font-size: 12px;
  color: #666;
  padding: 8px 0;
}

/* ── 스튜디오 미리보기 배지 ── */
.fan-corner .fc-studio-badge {
  margin: 0;
  padding: 6px var(--pad-x, 14px);
  font-size: 10px;
  color: #888;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.fan-corner .fc-editable {
  outline: none;
  cursor: text;
  border-radius: 3px;
  position: relative;
  z-index: 2;
}

#studio-fan-chrome-mount .fan-corner .fc-editable:focus,
#studio-fan-chrome-mount .fan-corner .fc-editable.fc-editing {
  outline: 2px solid rgba(229, 9, 20, 0.65);
  outline-offset: 2px;
}

#studio-fan-chrome-mount .fan-corner .fc-grid-drag {
  opacity: 1;
  z-index: 3;
}

.fan-corner .fc-editable:focus,
.fan-corner .fc-editable.fc-editing {
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.fan-corner .fc-editable--empty:empty::before {
  content: attr(data-placeholder);
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.fan-corner .fc-row-tab { display: inline; }
.fan-corner .fc-row-count { color: #888; }

/* ── 섹션 헤더 · 액션 ── */
.fan-corner .fc-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.fan-corner .fc-row-head-text { flex: 1; min-width: 0; max-width: 100%; overflow: hidden; }

.fan-corner .fc-row-actions {
  display: flex;
  flex-shrink: 0;
  gap: 6px;
  align-items: center;
}

.fan-corner .fc-row-manage,
.fan-corner .fc-row-more {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #ccc;
  font-size: 10px;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.fan-corner .fc-row-more {
  color: #e50914;
  background: rgba(229, 9, 20, 0.12);
}

.fan-corner .fc-row-manage:active,
.fan-corner .fc-row-more:active { transform: scale(0.96); }

/* ── 홈 ↔ 상세 슬라이드 ── */
.fan-corner .fc-stage {
  position: relative;
  overflow: hidden;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.fan-corner .fc-stage--detail {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}

.fan-corner .fc-page {
  width: 100%;
  transition: transform 0.32s ease, opacity 0.32s ease;
}

.fan-corner .fc-page-home {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
}

.fan-corner .fc-page-detail {
  position: absolute;
  inset: 0;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  background: #0a0a0a;
}

.fan-corner .fc-stage--detail .fc-page-home {
  display: none;
}

.fan-corner .fc-stage--detail .fc-page-detail {
  position: absolute;
  inset: 0;
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* ── 상세(전체 보기) ── */
.fan-corner .fc-detail {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: #0a0a0a;
}

.fan-corner .fc-detail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: calc(8px + var(--safe-t, 0px)) var(--pad-x, 14px) 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0a0a;
  position: sticky;
  top: 0;
  z-index: 5;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.fan-corner .fc-detail-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 44px;
  min-height: 44px;
  margin: 0 0 0 -6px;
  padding: 0 12px 0 8px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: inherit;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.fan-corner .fc-detail-back-chevron {
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
}

.fan-corner .fc-detail-back-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.fan-corner .fc-detail-back:active {
  transform: scale(0.97);
  background: rgba(255, 255, 255, 0.16);
}

.fan-corner .fc-detail-head-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.fan-corner .fc-detail-head-meta strong {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
  padding: 0;
  line-height: 1.25;
  width: 100%;
  text-align: left;
}

.fan-corner .fc-detail-head-meta small {
  font-size: 11px;
  color: #888;
  margin: 0;
  padding: 0;
  line-height: 1.3;
  width: 100%;
  text-align: left;
}

.fan-corner .fc-detail-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}

.fan-corner .fc-detail-pinned,
.fan-corner .fc-detail-rest,
.fan-corner .fc-list-row { display: none !important; }
