/* === ADV(확장보기) 4분할 갤럭시 레이아웃 - mypage 스타일 통합 === */
/* 커뮤니티보드용 확장보기: 편집/삭제 기능 제외 (읽기 전용) */

.adv-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: linear-gradient(160deg, #1a1a1a 0%, #0d0d0d 50%, #1a1a1a 100%);
  border-radius: 28px;
  padding: 4px;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 3px #111, 0 0 0 5px #000, 0 20px 40px rgba(0, 0, 0, 0.5);
  min-height: auto;
  height: auto;
  position: relative;
  /* ✅ 전체화면 대응: .wrap 요소와 동일한 너비로 정렬 */
  max-width: 1200px;
  margin: 0 auto;
  width: calc(100% - 32px); /* 모바일/창모드에서 좌우 16px 여백 */
}
.adv-container::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 60px;
  width: 4px;
  height: 90px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold) 42%, transparent 42%, transparent 58%, var(--gold) 58%, var(--gold) 100%);
  border-radius: 2px 0 0 2px;
}
.adv-container::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 80px;
  width: 4px;
  height: 60px;
  background: var(--gold);
  border-radius: 0 2px 2px 0;
}

/* 헤드레이어 - 높이 최소화 */
.adv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1px 8px;
  background: #0d0d0d;
  border-bottom: 1px solid var(--gold);
  border-radius: 24px 24px 0 0;
  min-height: 30px;
  position: relative;
  gap: 8px;
}
.adv-head-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.adv-head-left::-webkit-scrollbar { display: none; }
.adv-head-left > * {
  flex-shrink: 0;
  white-space: nowrap;
}
.adv-head-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.adv-head-right > * {
  flex-shrink: 0;
  white-space: nowrap;
}
.adv-select {
  height: 26px;
  padding: 0 4px;
  margin: 0 1px;
  background: #222;
  border: 1px solid #444;
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  min-width: auto;
  max-width: 100px;
}
.adv-select:hover { border-color: var(--gold); }
#advSortDropdown {
  min-width: 75px;
  max-width: 90px;
  padding: 0 6px;
}
.adv-search-input {
  height: 26px;
  padding: 0 8px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #333;
  font-size: 11px;
  min-width: 192px;
  max-width: 240px;
}
.adv-search-input::placeholder { color: #999; }
.adv-search-btn {
  height: 26px;
  padding: 0 12px;
  background: #000;
  border: 1px solid var(--gold);
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  margin-left: 1px;
}
.adv-search-btn:hover {
  background: var(--gold);
  color: #000;
}

/* 분할 버튼 그룹 */
.adv-lens-btns {
  display: flex;
  gap: 4px;
}
.adv-lens-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 4px;
  background: #333;
  border: 1px solid #555;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: all 0.2s;
}
.adv-lens-btn:hover {
  background: #444;
  border-color: var(--gold);
}
.adv-lens-btn.active {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}
.adv-split-icon {
  display: grid;
  gap: 1px;
  width: 12px;
  height: 12px;
}
.adv-split-icon span {
  background: currentColor;
  border-radius: 1px;
}
.adv-split-icon.s2x2 { grid-template: repeat(2, 1fr) / repeat(2, 1fr); }
.adv-split-icon.s2x4 { grid-template: repeat(2, 1fr) / repeat(4, 1fr); }
.adv-split-icon.s4x4 { grid-template: repeat(4, 1fr) / repeat(4, 1fr); }
.adv-lens-btn.active .adv-split-icon span { background: #000; }

/* 노치 - 헤드 위쪽 경계선에 위치 */
.adv-notch {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px;
  background: #0d0d0d;
  border-radius: 0 0 16px 16px;
  border: 2px solid var(--gold);
  border-top: none;
  box-shadow: 0 4px 12px var(--gold-glow);
  top: -2px;
  z-index: 10;
}
.adv-notch::before {
  content: '';
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, #111 20%, var(--gold-dark) 60%, var(--gold) 100%);
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: inset 0 0 4px rgba(0,0,0,0.8);
}
.adv-notch::after {
  content: '';
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px;
}

.adv-title {
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
  margin-right: 3px;
}
.adv-title .count {
  font-size: 13px;
  color: #e0e0e0;
}
.adv-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.adv-close {
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 5px 14px;
  background: #222;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}
.adv-close:hover {
  background: var(--gold);
  color: #000;
}

/* 바디레이어 - 검은색 배경, 실버 내부구분선 */
.adv-body {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  padding: 4px;
  gap: 4px;
  overflow: visible;
  background: #000;
  border-left: 2px solid #000;
  border-right: 2px solid #000;
}

/* 바디 상단 - 65% (633px * 0.65 = 411px) */
.adv-body-top {
  display: flex;
  gap: 4px;
  flex: 0 0 auto;
  height: 411px;
  min-height: 411px;
  max-height: 411px;
}

/* 바디 하단 - 35% (633px * 0.35 = 222px) + 5px 증가 */
.adv-body-bottom {
  display: flex;
  gap: 4px;
  flex: 0 0 auto;
  height: 227px;
  min-height: 227px;
  overflow: visible;
  transition: height 0.3s ease, min-height 0.3s ease;
}
/* 8분할: 2행 */
.adv-body-bottom.rows-2 {
  height: 430px;
  min-height: 430px;
  max-height: none;
}
/* 16분할: 4행 */
.adv-body-bottom.rows-4 {
  height: 860px;
  min-height: 860px;
  max-height: none;
}

/* 미리보기 모듈 (좌상단 65%) - 고정 미디어 프레임 */
.adv-preview-module {
  flex: 0 0 65%;
  background: #0d0d0d;
  border: 1px solid silver;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 361px;
}
.adv-preview-module .adv-media-frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
.adv-preview-module iframe,
.adv-preview-module video,
.adv-preview-module img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}
.adv-preview-module .preview-large {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.adv-preview-module .preview-large img,
.adv-preview-module .preview-large video,
.adv-preview-module .preview-large iframe {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}
/* 문서 카드 스타일 */
.adv-preview-module .u-linkcard {
  position: relative;
  inset: auto;
  width: auto;
  height: auto;
  max-width: 380px;
  min-width: 280px;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.adv-preview-module .u-linkcard.file-card {
  max-width: 320px;
}

/* 댓글 모듈 (우상단 35%) - 다크 테마 */
.adv-comments-module {
  flex: 0 0 35%;
  background: #1a1a1a;
  border: 1px solid silver;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.adv-comments-header {
  padding: 1px 10px;
  background: #0d0d0d;
  border-bottom: 1px solid silver;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.comment-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.adv-comments-header .comment-title {
  display: flex;
  align-items: center;
  gap: 4px;
}
.adv-comments-header .comment-title::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--gold);
  border-radius: 2px;
}
.adv-comments-header .count {
  color: var(--gold);
  font-size: 13px;
}
/* 좋아요 상자 버튼 */
.like-box-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #fff;
  color: #000;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}
.like-box-btn:hover {
  background: #f5f5f5;
  border-color: #aaa;
}
.like-box-btn.liked {
  background: #fff0f0;
  border-color: #ef4444;
}
.like-box-btn.liked .heart {
  color: #ef4444;
}
.like-box-btn .heart {
  color: #999;
}
/* 댓글 탭 버튼 */
.comment-tabs {
  display: flex;
  gap: 3px;
}
.comment-tab {
  padding: 1px 14px;
  background: #333;
  border: 1px solid #555;
  border-radius: 5px;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.comment-tab:hover {
  background: #444;
  color: #fff;
}
.comment-tab.active {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
  font-weight: 600;
}
.adv-comments-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
  background: #1a1a1a;
}
/* 한 행 댓글 스타일 */
.adv-comment-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  background: #222;
  border-radius: 6px;
  margin-bottom: 4px;
  border: 1px solid #333;
}
.adv-comment-item:hover {
  border-color: #555;
}
.adv-comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #000;
  flex-shrink: 0;
}
.adv-comment-content {
  flex: 1;
  min-width: 0;
}
.adv-comment-author {
  font-size: 10px;
  font-weight: 600;
  color: var(--gold);
  flex-shrink: 0;
  white-space: nowrap;
}
.adv-comment-time {
  font-size: 9px;
  color: #aaa;
  flex-shrink: 0;
  white-space: nowrap;
}
.adv-comment-text {
  font-size: 11px;
  color: #fff;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adv-comments-input {
  padding: 6px 8px;
  background: #0d0d0d;
  border-top: 1px solid silver;
  display: flex;
  gap: 4px;
}
.adv-comments-input input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #444;
  transition: all 0.2s ease;
  border-radius: 20px;
  background: #222;
  color: #fff;
  font-size: 12px;
}
.adv-comments-input input::placeholder {
  color: #fff;
  opacity: 0.7;
}
.adv-comments-input input:focus {
  outline: none;
  border-color: var(--gold);
  background: #333;
  box-shadow: 0 0 6px rgba(201, 162, 39, 0.3);
}
.adv-comments-input button {
  padding: 1px 10px;
  background: var(--gold);
  border: none;
  border-radius: 20px;
  color: #000;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.adv-comments-input button:hover {
  background: var(--gold-light);
  transform: scale(1.02);
}
.adv-comments-input button:active {
  transform: scale(0.98);
}

/* 게시물 그리드 모듈 (좌하단 65%) */
.adv-grid-module {
  flex: 0 0 65%;
  background: #1a1a1a;
  border: 1px solid silver;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.adv-grid-header {
  padding: 8px 12px;
  background: #0d0d0d;
  border-bottom: 1px solid var(--gold);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}
.adv-grid-content {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 222px;
  gap: 1px;
  align-items: start;
  align-content: start;
}
/* 8분할: 4x2 그리드 */
.adv-grid-content.grid-4x2 {
  grid-template-rows: repeat(2, 210px);
  overflow-y: auto;
}
/* 16분할: 4x4 그리드 */
.adv-grid-content.grid-4x4 {
  grid-template-rows: repeat(4, 210px);
  overflow-y: auto;
}

/* 미니 카드 스타일 */
.adv-mini-card {
  flex: 0 0 160px;
  min-width: 160px;
  height: 120px;
  min-height: 120px;
  background: #222;
  border: 1px solid #444;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.adv-mini-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.3);
}
.adv-mini-card.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-glow);
}
.adv-mini-thumb {
  flex: 0 0 60%;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.adv-mini-thumb img,
.adv-mini-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.adv-mini-thumb .placeholder {
  font-size: 20px;
  color: #555;
}
.adv-mini-info {
  flex: 1;
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #1a1a1a;
}
.adv-mini-title {
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.adv-mini-author-time {
  font-size: 8px;
  color: #888;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adv-mini-stats {
  font-size: 8px;
  color: #666;
  display: flex;
  gap: 4px;
  align-items: center;
}
.adv-mini-stats .heart {
  color: #ef4444;
}

/* 확장보기 게시물 카드 (gpCardTemplate) */
.adv-grid-content .gp-card {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  height: 220px;
  min-height: 220px;
  max-height: 220px;
  background: #1e293b;
  border-radius: 6px;
  border: 1px solid #333;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.adv-grid-content .gp-card:hover {
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(201,162,39,0.3);
}
.adv-grid-content .gp-card.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-glow);
}
/* 미디어 표시부 65% */
.adv-grid-content .gp-card .thumb {
  flex: 0 0 65%;
  min-height: 65%;
  max-height: 65%;
  padding: 1px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  overflow: hidden;
}
.adv-grid-content .gp-card .thumb img,
.adv-grid-content .gp-card .thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 내용부 35% */
.adv-grid-content .gp-card .info {
  flex: 0 0 35%;
  max-height: 35%;
  padding: 1px 3px;
  gap: 0;
  overflow: hidden;
}
.adv-grid-content .gp-card .info-top {
  flex: 0 0 50%;
}
.adv-grid-content .gp-card .dock-thumb {
  display: none;
}
.adv-grid-content .gp-card .title-stack {
  flex: 1;
  overflow: hidden;
  max-width: 100%;
  position: relative;
}
/* 제목 - 12px, 한 줄 ellipsis */
.adv-grid-content .gp-card .title-line {
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 20px);
}
.adv-grid-content .gp-card .title-line.line1,
.adv-grid-content .gp-card .title-line.line2 {
  display: block;
  width: 100%;
}
/* 3행 */
.adv-grid-content .gp-card .info-row3 {
  flex: 0 0 auto;
}
.adv-grid-content .gp-card .nickname,
.adv-grid-content .gp-card .file-pill {
  font-size: 10px;
}
/* 4행 - 조회수/좋아요/댓글 */
.adv-grid-content .gp-card .info-row4 {
  flex: 0 0 auto;
  margin-top: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.adv-grid-content .gp-card .info-row4 .stat {
  font-size: 9px;
  color: #aaa;
  flex-shrink: 0;
}
.adv-grid-content .gp-card .stat-item {
  font-size: 10px;
}
.adv-grid-content .gp-card .action-buttons {
  display: flex;
  gap: 4px;
  align-items: center;
}
/* 좋아요/댓글 버튼 - 상자 스타일 */
.adv-grid-content .gp-card .action-buttons .action-btn {
  font-size: 9px;
  padding: 1px 4px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #fff;
  color: #000;
  cursor: pointer;
  line-height: 1.2;
}
.adv-grid-content .gp-card .action-buttons .like-btn .heart {
  color: #ff6b6b;
}
/* 좋아요 버튼 - 하트 10px + 카운트 */
.adv-grid-content .gp-card .action-buttons .like-btn {
  font-size: 9px;
  padding: 1px 3px;
  line-height: 1;
}
.adv-grid-content .gp-card .action-buttons .like-btn .heart {
  font-size: 10px;
  display: inline;
  margin-right: 1px;
}
.adv-grid-content .gp-card .action-buttons .like-btn .like-text {
  display: none;
}
.adv-grid-content .gp-card .action-buttons .like-btn .like-count {
  font-size: 9px;
}
.adv-grid-content .gp-card .action-buttons .add-comment-btn {
  display: none;
}
.adv-grid-content .gp-card .card-controls {
  opacity: 0;
}
.adv-grid-content .gp-card:hover .card-controls {
  opacity: 1;
}
.adv-grid-content .gp-card .ctrl-btn {
  width: 16px;
  height: 16px;
  font-size: 10px;
}
.adv-grid-content .gp-card .ctrl-check {
  width: 12px;
  height: 12px;
}

/* 추천 게시물 모듈 (우하단 35%) - ✅ 임무3/4: 높이 최대화 */
.adv-recommend-module {
  flex: 0 0 35%;
  background: #1a1a1a;
  border: 1px solid silver;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1px; /* ✅ 외부 패딩 최소화 */
}
.adv-recommend-header {
  padding: 4px 12px; /* ✅ 8px → 4px 상하 패딩 축소 */
  background: #0d0d0d;
  border-bottom: 1px solid var(--gold);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}
.adv-recommend-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1px;
  margin: 1px;
  display: flex;
  flex-direction: column;
  gap: 1px; /* ✅ 4px → 1px 간격 최소화 */
}
/* 스크롤바 스타일 */
.adv-recommend-list::-webkit-scrollbar {
  width: 4px;
}
.adv-recommend-list::-webkit-scrollbar-track {
  background: #000;
}
.adv-recommend-list::-webkit-scrollbar-thumb {
  background: silver;
  border-radius: 2px;
}
.adv-recommend-list::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}
.adv-recommend-item {
  display: flex;
  gap: 2px; /* ✅ 4px → 2px 간격 축소 */
  cursor: pointer;
  padding: 0; /* ✅ 1px → 0 패딩 제거 */
  margin-bottom: 0;
  border-radius: 4px;
  transition: background 0.2s;
  background: #222;
  width: 100%;
  box-sizing: border-box;
}
.adv-recommend-item:hover {
  background: #333;
}
.adv-recommend-thumb {
  flex: 0 0 35%;
  /* ✅ aspect-ratio 제거 → 부모 높이에 맞춤 (세로 100%) */
  align-self: stretch; /* 부모 높이에 맞게 늘림 */
  min-height: 80px; /* 최소 높이 보장 */
  background: #111;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.adv-recommend-thumb img,
.adv-recommend-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.adv-recommend-thumb .placeholder {
  font-size: 14px;
  color: #555;
}
.adv-recommend-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 4px 6px; /* ✅ 패딩 살짝 증가 (여유공간) */
  overflow: hidden;
  min-height: 80px; /* ✅ 내용부 최소 높이 → 표시부도 동일하게 늘어남 */
}
/* 제목 (2줄) */
.adv-recommend-title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  min-height: 32px;
  display: flex;
  align-items: flex-start;
  position: relative;
}
.adv-recommend-title .title-text {
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 작성자 */
.adv-recommend-author {
  font-size: 10px;
  color: #fff;
  display: flex;
  gap: 4px;
  align-items: center;
}
.adv-recommend-author .file-name {
  color: #ccc;
  font-size: 9px;
}
.adv-recommend-author .menu-btn {
  margin-left: auto;
  font-size: 11px;
  cursor: pointer;
  color: #fff;
}
.adv-recommend-author .menu-btn:hover {
  color: var(--gold);
}
/* 통계 - 4행 */
.adv-recommend-stats {
  font-size: 10px;
  color: #fff;
  display: flex;
  gap: 4px;
  align-items: center;
}
.adv-recommend-stats .stat-item {
  display: flex;
  align-items: center;
  gap: 2px;
}
.adv-recommend-stats .heart {
  color: #ef4444;
}
/* ✅ 4행 우측 그룹 (좋아요하트 + 댓글수) */
.adv-recommend-stats .stats-right {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
}
/* 좋아요/댓글 상자 스타일 */
.adv-recommend-stats .box-btn {
  background: #fff;
  color: #000;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 0px 3px;
  font-size: 9px;
}

/* 바텀 레이어 */
.adv-bottom-layer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1px 4px;
  background: #0d0d0d;
  border-top: 1px solid var(--gold);
  border-radius: 0 0 24px 24px;
  min-height: 22px;
  max-height: 22px;
  position: relative;
}
/* 바텀 네비게이터 */
.adv-pager-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #e2e8f0;
  font-size: 11px;
  position: absolute;
  left: 0;
  width: 65%;
  top: 50%;
  transform: translateY(-50%);
  padding-left: 10px;
  padding-right: 10px;
  box-sizing: border-box;
}
.adv-pager-bottom .pg-btn {
  padding: 1px 5px;
  background: #333;
  border: 1px solid #555;
  border-radius: 3px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 11px;
  line-height: 1.2;
}
.adv-pager-bottom .pg-btn:hover:not(.disabled) { background: #444; }
.adv-pager-bottom .pg-btn.disabled { opacity: 0.4; cursor: not-allowed; }
.adv-pager-bottom .pg-current {
  background: var(--gold);
  color: #000;
  font-weight: 700;
  border-color: var(--gold);
}
.adv-loadmore-btn {
  padding: 6px 14px;
  background: #222;
  border: 1px solid var(--gold);
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.adv-loadmore-btn:hover {
  background: var(--gold);
  color: #000;
}
.adv-bottom-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.adv-bottom-indicator {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px;
}
/* 날짜/시간 표시 */
.adv-datetime {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  background: #000;
  border: 1px solid var(--gold);
  border-radius: 4px;
  padding: 2px 8px;
}
.adv-datetime .clock-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.adv-datetime .clock-icon svg {
  width: 14px;
  height: 14px;
}
.adv-datetime .datetime-text {
  font-size: 10px;
  color: #fff;
  font-family: 'Consolas', monospace;
  white-space: nowrap;
}

/* 반응형 */
@media (max-width: 1000px) {
  .adv-body-top, .adv-body-bottom {
    flex-direction: column;
    flex: none;
    height: auto;
    min-height: auto;
    max-height: none;
  }
  .adv-preview-module, .adv-comments-module,
  .adv-grid-module, .adv-recommend-module {
    flex: none;
    width: 100%;
    min-height: 180px;
  }
}
@media (max-width: 680px) {
  .adv-container {
    border-radius: 16px;
    min-height: auto;
  }
  .adv-head {
    border-radius: 12px 12px 0 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }
  .adv-head::-webkit-scrollbar { display: none; }
  .adv-bottom-layer {
    border-radius: 0 0 12px 12px;
  }
  .adv-mini-card {
    flex: 0 0 130px;
    min-width: 130px;
  }
}

/* === 커뮤니티보드 전용 확장보기 카드 스타일 (.adv-gp-card) === */
/* community-board.html의 gpCardTemplate 호환 - 4행 구조 */
.adv-gp-card {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  height: 220px;
  min-height: 220px;
  max-height: 220px;
  background: #1e293b;
  border-radius: 6px;
  border: 1px solid #333;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}
.adv-gp-card:hover {
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(201,162,39,0.3);
}
.adv-gp-card.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-glow);
}
/* 썸네일 영역 60% */
.adv-gp-card .gpc-thumb {
  flex: 0 0 60%;
  min-height: 60%;
  max-height: 60%;
  padding: 1px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  overflow: hidden;
}
.adv-gp-card .gpc-thumb img,
.adv-gp-card .gpc-thumb video,
.adv-gp-card .gpc-thumb iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.adv-gp-card .gpc-thumb.empty {
  font-size: 32px;
  color: #555;
}
/* 정보 영역 40% - 4행 구조 */
.adv-gp-card .gpc-info {
  flex: 0 0 40%;
  max-height: 40%;
  padding: 3px 5px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1px;
  overflow: hidden;
  background: #1e293b;
}
/* ✅ 1행/2행: 제목 스택 (50%) */
.adv-gp-card .gpc-title-stack {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  overflow: hidden;
}
.adv-gp-card .gpc-line1 {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adv-gp-card .gpc-line2 {
  font-size: 10px;
  font-weight: 400;
  color: #bbb;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 12px;
}
/* ✅ 3행: 게시자 + 파일명 + 게시시간 (25%) */
.adv-gp-card .gpc-row3 {
  flex: 0 0 25%;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: #999;
  overflow: hidden;
}
.adv-gp-card .gpc-nickname {
  color: var(--gold);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60px;
}
.adv-gp-card .gpc-file-pill {
  background: #333;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 8px;
  color: #aaa;
  white-space: nowrap;
  max-width: 50px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adv-gp-card .gpc-time {
  color: #777;
  white-space: nowrap;
  margin-left: auto;
}
/* ✅ 4행: 조회수 + 좋아요 + 댓글 (25%) */
.adv-gp-card .gpc-row4 {
  flex: 0 0 25%;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: #888;
}
.adv-gp-card .gpc-views {
  display: flex;
  align-items: center;
  gap: 2px;
}
.adv-gp-card .gpc-row4 .like-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: #888;
  font-size: 9px;
  cursor: pointer;
  padding: 1px 3px;
  border-radius: 3px;
  transition: all 0.2s;
}
.adv-gp-card .gpc-row4 .like-btn:hover {
  background: rgba(239,68,68,0.1);
}
.adv-gp-card .gpc-row4 .like-btn.liked {
  color: #ef4444;
}
.adv-gp-card .gpc-row4 .like-btn .heart {
  font-size: 10px;
}
.adv-gp-card .gpc-row4 .like-btn.liked .heart {
  color: #ef4444;
}
/* ✅ 3행: +댓글 버튼 (흰색바탕/검은글씨) */
.adv-gp-card .gpc-add-comment-btn {
  background: #fff;
  color: #000;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 9px;
  padding: 1px 4px;
  margin: 0 1px;
  cursor: pointer;
  white-space: nowrap;
}
.adv-gp-card .gpc-add-comment-btn:hover {
  background: #f0f0f0;
}
/* ✅ 3행: 삼선메뉴 버튼 */
.adv-gp-card .gpc-menu-btn {
  background: transparent;
  border: none;
  font-size: 10px;
  color: #888;
  cursor: pointer;
  padding: 1px 3px;
  margin-left: auto;
}
.adv-gp-card .gpc-menu-btn:hover {
  color: #fff;
}
/* ✅ 4행 오른쪽 그룹 (하트수 + 댓글수) */
.adv-gp-card .gpc-row4-right {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.adv-gp-card .gpc-comments {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* 그리드 컨텐츠 내 .adv-gp-card 배치 */
.adv-grid-content .adv-gp-card {
  height: 220px;
  min-height: 220px;
  max-height: 220px;
}
/* 확장보기 게시물 카드 좋아요 하트만 표시 (숫자는 표시) */
.adv-grid-content .like-btn .like-text {
  display: none;
}
