/* ════════════════════════════════════════
   HERO BANNER SLIDER
════════════════════════════════════════ */
.hero-wrapper {
  background: #FFFFFF;
}

.hero-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 44px;
  opacity: 0;
  transition: opacity 0.6s ease;
  background-position: center;
  background-size: cover;
}
.hero-slide.active { opacity: 1; }

.hero-slide__badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 20px;
  color: #fff;
  font-size: 12px;
  margin-bottom: 12px;
  width: fit-content;
  backdrop-filter: blur(4px);
}
.hero-slide__title {
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.hero-slide__sub {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
}

/* 페이지네이션 */
.hero-pagination {
  position: absolute;
  bottom: 8px;
  left: 40px;
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(0,0,0,0.45);
  border-radius: 20px;
  padding: 4px 8px;
  backdrop-filter: blur(4px);
}
.hero-pag-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
  cursor: pointer;
}
.hero-pag-btn:hover { color: #fff; background: rgba(255,255,255,0.15); }
.hero-pag-list { font-size: 13px; margin-left: 2px; }
.hero-pag-text {
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  min-width: 36px;
  text-align: center;
  font-style: normal;
}
.hero-pag-text em {
  font-style: normal;
  color: #fff;
  font-weight: 700;
}

/* ════════════════════════════════════════
   메인 콘텐츠 영역 레이아웃
════════════════════════════════════════ */
.main-content {
  max-width: 1550px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 업데이트 + 게시판 + 위젯 3단 레이아웃 */
.main-grid {
  display: grid;
  grid-template-columns: 440px 1fr 300px;
  gap: 60px;
  padding: 28px 0;
  align-items: start;
}

/* ── 주요 업데이트 (왼쪽) ── */
.update-section { overflow: visible; }
.update-section__top {
  position: relative;
  margin-bottom: 10px;
  overflow: visible;
}
.update-section__info {
  width: 100%;
  position: relative;
  z-index: 1;
}
.update-section__robot {
  position: absolute;
  z-index: 0;
  top: -60px;
  left: 180px;
  clip-path: inset(-200px 80px 90px 30px);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%);
  mask-image:         linear-gradient(to right, transparent 0%, black 30%);
}
.update-section__date {
  font-size: 15px;
  color: #888;
}
.update-section__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
  border-bottom: 1px solid gray;
}
.update-section__contents {
  font-size: 28px;
  color: #555;
  margin-top: 5px;
  margin-bottom: 20px;
}
.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border: 1px solid #ccc;
  border-radius: var(--radius-btn);
  font-size: 12px;
  color: #555;
  transition: all 0.2s;
}
.btn-more:hover { border-color: #999; color: #333; }

.update-banner {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}
.update-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── 공지사항 (왼쪽 하단) ── */
.notice-section { margin-top: 16px; }
.notice-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 3px;
  padding-bottom: 4px;
  border-bottom: 2px solid #c5c5c5;
  display: flex;
  align-items: center;
  gap: 6px;
}
.notice-title a { color: var(--color-orange); font-size: 12px; }
.notice-title a.title-link { color: #000; font-size: inherit; text-decoration: none; }
.notice-list { list-style: none; }
.notice-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 12px;
  color: #444;
  cursor: pointer;
}
.notice-item:hover { color: #111; }
.notice-item:last-child { border-bottom: none; }

/* ── 게시판 위젯 (중앙) ── */
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.board-section { min-width: 0; }
.board-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.board-item {
  display: flex;
  align-items: stretch;
  min-height: 68px;
  padding: 0;
  border-radius: 15px;
  background: #ede9ff;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 3px 6px rgba(0,0,0,0.08);
}
.board-item:hover { background: #e2dbff; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

.board-item__icon {
  width: 64px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--badge-gray);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 12px 4px;
  gap: 4px;
  text-decoration: none;
  border-radius: 15px 0 0 15px;
  cursor: pointer;
}
.board-item__icon::before { content: '📌'; font-size: 22px; }
.board-item__icon--purple { background: var(--badge-purple); }
.board-item__icon--purple::before { content: ''; background-image: url('/static/images/icon/icon_pigeon.png'); background-size: 32px 32px; background-repeat: no-repeat; background-position: center; width: 32px; height: 32px; display: block; }
.board-item__icon--blue { background: var(--badge-blue); }
.board-item__icon--blue::before { content: '🔄'; }
.board-item__icon--green { background: var(--badge-green); }
.board-item__icon--green::before { content: '📖'; }
.board-item__icon--orange { background: var(--badge-orange); }
.board-item__icon--navy   { background: var(--badge-navy); }
.board-item__icon--navy::before { content: ''; background-image: url('/static/images/icon/icon_gold.png'); background-size: 32px 32px; background-repeat: no-repeat; background-position: center; width: 32px; height: 32px; display: block; }
.board-item__icon--orange::before { content: '❓'; }
.board-item__icon--teal { background: var(--badge-teal); }
.board-item__icon--teal::before { content: ''; background-image: url('/static/images/icon/icon_information.png'); background-size: 32px 32px; background-repeat: no-repeat; background-position: center; width: 32px; height: 32px; display: block; }
.board-item__icon--buy { background: var(--badge-teal); }
.board-item__icon--buy::before { content: ''; background-image: url('/static/images/icon/icon_gold.png'); background-size: 32px 32px; background-repeat: no-repeat; background-position: center; width: 32px; height: 32px; display: block; }

.board-item__body { flex: 1; min-width: 0; padding: 10px 12px; position: relative; }
.board-item__title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.board-item__title::after {
  content: '';
  position: absolute;
  inset: 0;
}
.board-item__meta {
  font-size: 13px;
  color: #888;
  display: flex;
  gap: 8px;
  margin-top: 15px;
}
.board-item__likes {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #999;
  flex-shrink: 0;
  min-width: 40px;
  padding: 10px 12px;
  margin-right: 10px;
}
.board-item__likes .thumb { font-size: 20px; }

.board-more-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}
.btn-board-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 18px;
  border: 1px solid #9b8dd4;
  border-radius: 6px;
  font-size: 13px;
  color: #7b6bbf;
  background: rgba(255,255,255,0.7);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-board-more:hover {
  background: #9b8dd4;
  color: #fff;
  border-color: #9b8dd4;
}

/* ── 사이드 위젯 (오른쪽) ── */
.side-widget {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: -80px;
  position: relative;
  z-index: 20;
}

.side-banner {
  width: 100%;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #1A1A2E, #2B5FA8);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
}

.side-link {
  margin-top: 20px;
  width: 100%;
  gap: 20px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}


/* ════════════════════════════════════════
   추천 컨텐츠 섹션
════════════════════════════════════════ */
.recommended-section {
  padding: 12px 0;
}
.recommended-section .section {
  max-width: 1600px;
  padding: 10px 20px;
  background-color: #adb2b936;
  border-radius: 16px;
  position: relative;
}
/* 스크롤 없이 5개 고정 표시 */
.recommend-cards-wrap {
  flex: 1;
  min-width: 0;
}
.recommend-slider {
  display: flex;
  gap: 12px;
}
.recommend-card {
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.recommend-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.recommend-card__thumb {
  width: 100%;
  height: 118px;
  overflow: hidden;
  background: #2c3e50;
}
.recommend-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.recommend-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2c3e50, #4a6fa5);
}
.recommend-card__body { padding: 10px 12px; }
.recommend-card__title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recommend-card__meta { font-size: 11px; color: #aaa; }

/* 추천 스트리머+컨텐츠 배치 */
.recommend-row {
  display: flex;
  gap: 0;
  align-items: stretch;
}

/* 스트리머 카드 구분 래퍼 — 구분선 */
.recommend-streamer-wrap {
  display: flex;
  align-items: stretch;
  margin-left: 20px;
  padding-left: 20px;
}

/* 스트리머 카드 */
.recommend-streamer {
  width: 170px;
  flex-shrink: 0;
  background: linear-gradient(160deg, #e91e8c, #7B2FBE);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}
.recommend-streamer:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}
.recommend-streamer__visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 6px;
}
.recommend-streamer__img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.55);
  flex-shrink: 0;
}
.recommend-streamer__nav-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.75);
  font-size: 22px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}
.recommend-streamer__nav-btn:hover { color: #fff; }
.recommend-streamer__nav-spacer {
  width: 22px;
  flex-shrink: 0;
}
.recommend-streamer--hidden { display: none; }
.recommend-streamer__img--placeholder {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}
.recommend-streamer__body {
  background: rgba(0,0,0,0.22);
  padding: 8px 10px;
  text-align: center;
}
.recommend-streamer__name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}
.recommend-streamer__sub {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

/* ════════════════════════════════════════
   신규 의상 / 이미지 / 동영상 레이아웃
════════════════════════════════════════ */
.media-layout {
  display: flex;
  gap: 40px;
  padding: 24px 0;
  align-items: stretch;
}
.media-layout > .costume-section {
  flex: 0 0 360px;
  display: flex;
  flex-direction: column;
}
.media-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.media-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

/* ════════════════════════════════════════
   신규 의상 섹션
════════════════════════════════════════ */
.costume-section {
  background: none;
  padding: 0;
}
.costume-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.costume-main {
  flex: 1;
  min-height: 260px;
  max-height: 450px;
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
}
.costume-main__img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: top;
  display: block;
}
.costume-thumbs {
  display: flex;
  flex-direction: row;
  gap: 8px;
}
.costume-thumb {
  flex: 1;
  height: 48px;
  border-radius: 6px;
  background: rgba(123,47,190,0.1);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  overflow: hidden;
}
.costume-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(1.5);
}
.costume-thumb.active { border-color: var(--color-purple); }

/* ════════════════════════════════════════
   이미지 / 동영상 섹션
════════════════════════════════════════ */
.media-section { padding: 0; }
.media-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.media-card {
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #aaaaaa;
  transition: transform 0.2s;
  box-shadow: var(--shadow-card);
}
.media-card:hover { transform: scale(1.05); }
.media-card__thumb {
  width: 100%;
  aspect-ratio: 1;
  background: #ffffff;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 12px;
  position: relative;
  overflow: hidden;
}
.media-card--video .media-card__thumb {
  aspect-ratio: 16/9;
  background: #2c3e50;
}
.media-card__info {
  padding: 7px 4px;
}
.media-card__title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.media-card__author { font-size: 11px; color: #aaa; }

.video-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* 미디어 카드 링크 스타일 */
a.media-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.media-card__thumb img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #888;
}
.media-card__play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  pointer-events: none;
  transition: background 0.2s;
}
a.media-card:hover .media-card__play-icon {
  background: rgba(220,0,0,0.8);
}

.meta-icon { width: 16px; height: 16px; vertical-align: middle; }
.board-item__likes .meta-icon { width: 32px; height: 32px; }
