/* 커뮤니티 페이지 전용 CSS */

/* 앱 커뮤니티 메인: 상단 여백 제거 (common.css의 .app-page .sub-page padding-top override) */
.app-page .sub-page:has(.community-page) {
    padding-top: 0;
}

/* 앱일 때 하단 여백 (하단 네비 가림 방지) */
.app-page .community-page .community-content {
    padding-bottom: 100px;
}

/* 앱일 때 리스트 페이지 상단 패딩 제거 */
.app-page .community-list-page {
    padding-top: 0 !important;
}

/* 앱 커뮤니티 상세: 하단 패딩 (하단 네비 가림 방지) */
.app-page .community-detail-page {
    padding-bottom: 80px;
}


.community-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    min-height: calc(100vh - 295px);
    text-align: left;
}

.community-page .page-wrap {
    padding: 20px;
}

.community-page .community-content {
    width: 100%;
    margin: 0 auto;
    background: #F7F7F7;
    overflow: hidden;
    max-width: 600px;
}

.community-product-entry-banner {
    display: block;
    margin: 15px 0 0;
    border-radius: 14px;
    text-decoration: none;
    overflow: hidden;
}

.community-product-entry-banner__image {
    display: block;
    width: 100%;
    height: auto;
}

/* ============================================
   1단계: 상단 탭 네비게이션
   ============================================ */
.community-tabs {
    display: flex;
    gap: 8px;
    padding: 16px;
}

.tab-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 16px;
    border: 1px solid #E5E5E5;
    border-radius: 20px;
    background: #f5f5f5;
    color: #999;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

.tab-item .tab-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    flex-shrink: 0;
}

.tab-item.active {
    background: #fff;
    border: 1px solid #E5E5E5;
    color: #333;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-content {
    display: none;
    padding: 0 15px 7px;
}

.tab-content.active {
    display: block;
}

 .sub-page .community-page .section-title {
    padding-bottom: 0;
}

/* 모바일 스타일 */
@media screen and (max-width: 939px) {
    .community-page {
        min-height: calc(100vh - 200px);
    }
    
    .community-page .page-wrap {
        padding: 0;
    }

    .community-product-entry-banner {
        margin: 12px 0 0 0;
        border-radius: 12px;
    }

}





/* ============================================
   2단계: 메인 배너 (성향 테스트)
   ============================================ */
.main-banner-section {
    padding: 15px 20px;
    overflow: hidden;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-top:15px;
}

.main-banner-section .section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 18px;
}

.main-banner-swiper {
    width: 100%;
    overflow: visible;
}

.main-banner-swiper .swiper-wrapper {
    display: flex;
}

.main-banner-swiper .swiper-slide {
    width: 295px;
    flex-shrink: 0;
}

.main-banner-swiper .swiper-slide.skeleton-item {
    pointer-events: none;
}

.banner-card.skeleton-banner-card {
    background: #f5f5f5;
    cursor: default;
}

.banner-card.skeleton-banner-card .banner-content {
    width: 100%;
}

.banner-card.skeleton-banner-card .skeleton-banner-title {
    width: 70%;
    height: 22px;
    margin-bottom: 10px;
}

.banner-card.skeleton-banner-card .skeleton-banner-desc {
    width: 55%;
    height: 16px;
}

.banner-card.skeleton-banner-card .skeleton-banner-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.banner-card {
    position: relative;
    width: 100%;
    height: 130px;
    border-radius: 12px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    cursor: pointer;
}

/* .banner-purple 배경은 인라인 스타일로 동적 적용됨 */

.banner-pink {
    background: linear-gradient(135deg, #EC4899 0%, #F472B6 50%, #FBCFE8 100%);
}

.banner-content {
    flex: 1;
    z-index: 1;
}

.banner-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: initial;
    width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.banner-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.4;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.banner-icon {
    position: relative;
    z-index: 1;
    font-size: 32px;
    opacity: 0.9;
    min-width: 56px;
}

.banner-icon .banner-icon-image {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.ico-star {
    display: inline-block;
    font-style: normal;
}

/* ============================================
   3단계: 지금 뜨는 Well-being 섹션
   ============================================ */
.trending-section {
    padding: 20px 30px;
    background-color: #fff;
    margin: 0 -15px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.ico-flame {
    font-size: 18px;
    display: inline-block;
    font-style: normal;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.trending-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trending-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-empty {
    padding: 18px 0;
    text-align: center;
    font-size: 14px;
    color: #999;
}

.item-number {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff527e;
    font-size: 24px;
    font-weight: 700;
}

.item-content {
    flex: 1;
    min-width: 0;
}

.item-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.item-meta {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.meta-nickname {
    color: #666;
    padding-right: 21px;
    position: relative;
}

.meta-nickname::before {
    content: "";
    position: absolute;
    width: 1px;
    height: 100%;
    background-color: #9E9E9E;
    right: 10px;
}

.meta-date {
    color: #999;
}

.meta-date:empty {
    display: none;
}

.item-meta.has-date .meta-nickname::before {
    display: none;
}

.item-meta.has-date .meta-date {
    padding-right: 0;
    position: static;
}

.item-meta.has-date .meta-date::before {
    display: none;
}

.community-list-page .item-meta {
    width: 100%;
}

.community-list-page .item-meta .meta-stats {
    margin-left: auto;
}

.community-list-page .meta-nickname::before {
    display: none;
}

.community-list-page .meta-separator {
    color: #999;
}

.meta-stats {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ico-heart,
.ico-comment {
    width: 11px;
    height: 11px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 2px;
}

.like-count,
.comment-count {
    font-size: 12px;
    color: #999;
}

/* 핫랭킹 리스트의 좋아요 아이콘과 텍스트 색상 */
.trending-item .ico-heart {
    filter: brightness(0) saturate(100%) invert(27%) sepia(95%) saturate(5000%) hue-rotate(320deg) brightness(100%) contrast(100%);
}

.trending-item .like-count {
    color: #FF527E;
}

.trending-item .like-count + img {
    margin-left: 10px;
}
/* ============================================
   4단계: W. Toon 지식 섹션
   ============================================ */
.knowledge-section {
    padding: 15px 20px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-top:16px;
    background: linear-gradient(179deg, rgba(0, 0, 0, 0.00) 90.28%, rgba(0, 0, 0, 0.06) 99.42%), #FFF;
}

.knowledge-section .knowledge-title {
    color: #434343;
}

.knowledge-section .knowledge-title .knowledge-title-accent {
    color: #ff527e;
}

.knowledge-section .knowledge-title strong {
    color: #434343;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ico-arrow-right {
    font-size: 18px;
    color: #999;
    display: inline-block;
    font-style: normal;
    cursor: pointer;
    margin-left: auto;
    transition: color 0.2s;
}

.ico-arrow-right:hover {
    color: #333;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
}

.btn-more:hover {
    opacity: 0.7;
}

.secret-title + .btn-more {
    padding-right: 19px;
}

.btn-more-text {
    font-size: 12px;
    color: #9E9E9E;
    font-weight: 400;
}

.btn-more-icon {
    width: 11px;
    height: 11px;
    display: inline-block;
}

.knowledge-list-main {
    display: flex;
    flex-direction: column;
}

.knowledge-list-more {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.knowledge-list-more img {
    display: block;
}

.knowledge-section .section-header{
    margin-bottom: 20px;
}

.knowledge-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-radius: 10px;
    cursor: pointer;
    gap:10px;
}
.knowledge-list-item:first-child{
    padding-top: 0;
}
.knowledge-list-content {
    flex: 1 1 auto;
    min-width: 0;
}

.knowledge-list-title {
    font-size: 18px;
    font-weight: 700;
    color: #434343;
    margin: 0 0 10px 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.knowledge-list-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 10px 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.knowledge-list-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #9a9a9a;
}

.knowledge-list-like,
.knowledge-list-comment {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.knowledge-list-icon {
    width: 11px;
    height: 11px;
    display: inline-block;
}

.knowledge-list-like .knowledge-list-count {
    color: #FF527E;
}

.knowledge-list-sep {
    color: #d2d2d2;
}

.knowledge-list-image {
    width: 78px;
    height: 67px;
    flex: 0 0 78px;
    border-radius: 10px;
    overflow: hidden;
    background: #e5e5e5;
}

.knowledge-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.skeleton-knowledge-title {
    width: 70%;
    height: 16px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-knowledge-subtitle {
    width: 90%;
    height: 12px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-knowledge-meta {
    width: 50%;
    height: 10px;
    border-radius: 4px;
}

.skeleton-knowledge-image {
    width: 78px;
    height: 67px;
    border-radius: 10px;
}

.knowledge-swiper {
    width: 100%;
    overflow: visible;
}

.knowledge-swiper .swiper-wrapper {
    display: flex;
}

.knowledge-swiper .swiper-slide {
    width: 309px;
    flex-shrink: 0;
}

.knowledge-card {
    position: relative;
    width: 100%;
    height: 188px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    cursor: pointer;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 17px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-label {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 82, 126, 0.9);
    color: #fff;
    border-radius: 5px;
    font-size: 12x;
    font-weight: 600;
    align-self: flex-start;
}

.card-icon {
    text-align: center;
    margin: 8px 0;
}

.ico-stack {
    font-size: 40px;
    display: inline-block;
    font-style: normal;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-top: 5px;
}

.card-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.4;
}

.card-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin: 4px 0 8px 0;
    line-height: 1.4;
}

.knowledge-card.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.loading-spinner {
    color: #999;
    font-size: 14px;
}

/* ============================================
   지식 리스트 페이지 (카드 형태)
   ============================================ */
.knowledge-list-section {
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.knowledge-list-card {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    cursor: pointer;
}

.knowledge-list-card.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.knowledge-list-card .card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.knowledge-list-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.knowledge-list-card .card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 17px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.knowledge-list-card .card-label {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 82, 126, 0.9);
    color: #fff;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    align-self: flex-start;
}

.knowledge-list-card .card-label.knowledge {
    background: rgba(255, 82, 126, 0.9);
}

.knowledge-list-card .card-label.health {
    background: rgba(139, 92, 246, 0.9);
}

.knowledge-list-card .card-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-top: 5px;
}

.knowledge-list-card .card-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin: 4px 0 8px 0;
    line-height: 1.4;
}

.knowledge-list-card .card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}
.knowledge-list-card .card-meta-stats {
    display: flex;
    align-items: center;
    gap: 8px;
}
.knowledge-list-card .card-meta-like,
.knowledge-list-card .card-meta-comment {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.knowledge-list-card .card-meta-like span {
    color: #fff;
}
.knowledge-list-card .card-meta-like .card-meta-icon {
    filter: brightness(0) invert(1);
}
.knowledge-list-card .card-meta-icon {
    width: 11px;
    height: 11px;
}

/* 모바일 반응형 */
@media screen and (max-width: 939px) {

}

/* ============================================
   5단계: W. 쉿! 크릿 섹션
   ============================================ */
.secret-section {
    padding: 25px 15px;
    position: relative;
    margin-top: 15px;
}

.secret-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(  90deg,  #FFD6E3 0%,  #F6D9F2 45%,  #E6CFFF 100%);
    z-index: 0;
    pointer-events: none;
}

.secret-section .section-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.secret-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    padding-left: 18px;
}

.secret-title-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid #ED326A;
    border-radius: 50%;
    background: transparent;
    color: #ED326A;
    font-size: 16px;
    font-weight: 700;
}

.secret-title strong {
    color: #434343;
    font-weight: 700;
}

/* 헤더 메뉴 19 밸런스 스타일 (원형 배지 + 밸런스) */
.header .main-menu .menu-list .menu-item-polls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.header .main-menu .menu-list .menu-item-polls .secret-title-num {
    width: 22px;
    height: 22px;
    font-size: 13px;
}

.header .main-menu .menu-list .menu-item-polls strong {
    font-weight: 600;
    color: inherit;
}

.header .main-menu .menu-list li.active .menu-item-polls .secret-title-num {
    border-color: #ff527e;
    color: #ff527e;
}

/* 헤더 메뉴 쇼핑 + event 뱃지 (라운지 /community/landing/smile_makers) */
.header .main-menu .menu-list .menu-item-shopping {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.header .main-menu .menu-list li.active .menu-item-shopping {
    color: #ff527e !important;
}

.header .main-menu .menu-list .menu-item-shopping-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 18px;
    padding: 0 5px;
    border-radius: 8px;
    background: #ff527e;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-transform: lowercase;
    vertical-align: middle;
}



.secret-swiper {
    width: 100%;
    overflow: visible;
}

.secret-swiper .swiper-wrapper {
    display: flex;
}

.secret-swiper .swiper-slide {
    width: 309px;
    flex-shrink: 0;
}

.balance-game-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 30px;
    min-height: 240px;
    cursor: pointer;
}

.balance-game-card.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.balance-game-card.voting {
    pointer-events: none;
    opacity: 0.7;
}

/* W. 쉿! 크릿 메인 카드: 베스트 댓글(아이콘 + 한줄 말줄임) */
.balance-game-card .best-comment-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    cursor: pointer;
}

.balance-game-card .best-comment-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    opacity: 0.8;
}

.balance-game-card .best-comment-text {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.balance-game-card .best-comment-row.is-empty .best-comment-text {
    color: #999;
}

.game-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 18px;
}

.game-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.game-header .game-share-btn {
    flex: 0 0 auto;
}

.game-label {
    display: inline-block;
    padding: 6px 12px;
    background: #8B5CF6;
    color: #fff;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
}

.game-participants {
    font-size: 12px;
    color: #999;
}
.game-participants-num {
    color: #FF527E;
}

.game-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 17px;
}

.game-stats {
    display: flex;
    gap: 12px;
    align-items: center;
}

.game-stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #999;
}

.game-stat-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.8;
}

/* 19 밸런스 메인: 좋아요 아이콘/텍스트 색상 */
.secret-section .game-stat-like,
.secret-section .game-stat-like .game-like-count {
    color: #FF527E;
}
.secret-section .game-stat-like .game-stat-icon {
    filter: invert(48%) sepia(79%) saturate(2388%) hue-rotate(320deg) brightness(101%) contrast(101%);
}

.game-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.game-question {
    font-size: 20px;
    min-height: 56px;
    font-weight: 700;
    color: #434343;
    margin: 0;
    line-height: 1.4;
    text-align: center;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.game-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-item.selected .option-text {
    font-weight: 700;
    color: #333;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* 밸런스: 선택 옵션 하이라이트 (프로그레스 색상에 맞춤) */
.balance-game-card .option-item:not(.option-button) {
    border: 1px solid #E5E5E5;
    border-radius: 10px;
    padding: 12px;
    background: transparent;
}

.balance-game-card .option-item.selected {
    border-radius: 10px;
    padding: 12px;
}

.balance-game-card .option-item.selected.selected-red {
    border: 1px solid rgba(255, 46, 99, 0.35);
    background: rgba(255, 46, 99, 0.08);
}

.balance-game-card .option-item.selected.selected-purple {
    border: 1px solid rgba(147, 51, 234, 0.35);
    background: rgba(147, 51, 234, 0.08);
}

.option-item.option-button {
    cursor: pointer;
    padding: 12px;
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    transition: all 0.2s;
    background-color: #F9FAFB;
    text-align: center;
    min-height: 89px;
    display: flex;
    justify-content: center;
}

.option-item.option-button:hover {
    border-color: #8B5CF6;
    background: #f5f3ff;
}

.option-item.option-button:active {
    transform: scale(0.98);
}

/* 선택된 상태일 때 버튼 스타일 제거 (텍스트와 프로세스바만 표시) */
.option-item.selected.option-button {
    padding: 0;
    border: none;
    background-color: transparent;
    cursor: default;
    text-align: left;
}

.option-item.selected.option-button:hover {
    border-color: transparent;
    background: transparent;
    transform: none;
}

.option-item.selected.option-button:active {
    transform: none;
}

.option-text-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.option-text {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    word-break: keep-all;
    overflow-wrap: break-word;
    line-height: normal;
    min-height: 39px;
}

.option-progress {
    position: relative;
    width: 100%;
    height: 8px;
    background: #F3F4F6;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-bar.progress-red {
    background: #FF2E63;
}

.progress-bar.progress-purple {
    background: #9333EA;
}

.progress-blue {
    background: #3B82F6;
}

.progress-green {
    background: #10B981;
}

.progress-percent {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-left: 8px;
}

/* PC 스타일 */
@media screen and (min-width: 940px) {
    .community-page .page-wrap {
        padding: 0;
    }
    
    .community-content {
        max-width: 600px;
    }
}

/* ============================================
   성향 테스트 팝업 스타일 (독립 시스템)
   ============================================ */
.pop.personality-test-pop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 700;
    display: none;
    transform: translate(0,0);
    max-width: none;
    border-radius: 0;
    max-height: none;
    background-color: rgba(0, 0, 0, 0);
}

.personality-dimmed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
}

.personality-pop-area {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 350px;
    width: 90%;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    z-index: 10002;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 풀스크린 모드 (리스트 페이지에서만) */
.personality-pop-area.personality-pop-fullscreen {
    top: 0;
    left: 50%;
    transform: translate(-50%, 0%);
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    max-width: 600px;
    overflow-y: auto;
    align-items: flex-start;
}

/* 풀스크린 모드에서 dimmed 투명도 조정 (선택사항) */
.personality-test-fullscreen .personality-dimmed {
    background: rgba(0, 0, 0, 0.8);
}

/* basicPopup 알림이 성향/공유 팝업 위에 보이도록 (예: 링크가 클립보드에 복사되었습니다) */
.dimmed.dimmed-above-personality {
    z-index: 10005 !important;
}
#alertPop.alert-above-personality {
    z-index: 10006 !important;
}

.personality-pop-area.personality-pop-fullscreen .question-number {
    margin-top: 30%;
}

.personality-pop-close {
    position: absolute;
    top: 52px;
    right: 30px;
    width: 23px;
    height: 23px;
    /* fallback: mask 미지원 브라우저는 기존 방식(필터로 흰색화) */
    background: transparent url("../images/common/btn_test_icon.svg") no-repeat center;
    background-size: 23px 23px;
    border: none;
    font-size: 0;
    color: transparent;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    line-height: 1;
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    filter: brightness(0) saturate(100%) invert(100%);
}

/* mask 지원 브라우저: 아이콘 모양(원본) 그대로 두고 색상은 background-color로 제어 */
@supports ((-webkit-mask: url("../images/common/btn_test_icon.svg")) or (mask: url("../images/common/btn_test_icon.svg"))) {
    .personality-pop-close {
        background: transparent;
        filter: none;
    }
    .personality-pop-close::before {
        content: "";
        display: block;
        width: 26px;
        height: 26px;
        background-color: gray;
        -webkit-mask: url("../images/common/btn_test_icon.svg") no-repeat center;
        -webkit-mask-size: 23px 23px;
        mask: url("../images/common/btn_test_icon.svg") no-repeat center;
        mask-size: 26px 26px;
    }
}

.personality-pop-close:hover {
    color: #333;
}

.personality-content-wrapper {
    position: relative;
    min-height: 300px;
}

/* 풀스크린 모드에서 콘텐츠 영역 (svh = 툴바 포함 보이는 영역, AOS 가로스크롤 방지) */
.personality-pop-fullscreen .personality-content-wrapper {
    min-height: 100svh;
    min-height: 100dvh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.personality-step {
    padding: 27px 30px 42px 30px;
    text-align: center;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    min-height: 350px;
}

/* 풀스크린 모드에서 step 패딩 조정 */
.personality-pop-fullscreen .personality-step {
    padding: 17px 30px;
    min-height: calc(100vh - 80px);
    width: calc(100% - 30px);
    justify-content: flex-start;
    background: transparent;
}
.personality-pop-fullscreen .personality-step.personality-result {
    justify-content: flex-start;
    width: 100%;
    min-height: 100svh;
    min-height: 100dvh;
    min-height: 100vh;
    max-height: none;
    padding-bottom: 0;
    padding-top: 60px;
}

.community-detail-page .ql-editor{
    height: auto;
    overflow-y: visible;
    padding:0;
}

.personality-pop-fullscreen .personality-step.personality-question {
    background: #fff;
    border-radius: 10px;
}



/* 시작 화면 */
.personality-pop-fullscreen .personality-intro {
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 350px;
}


.personality-pop-fullscreen .personality-loading {
justify-content: center;
}

.personality-icon {
    margin-bottom: 20px;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.personality-icon img {
    width: 56px;
    height: 56px;
}

.personality-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #fff;
}

.personality-desc {
    font-size: 16px;
    margin: 0 0 30px 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.70);
    word-break: keep-all;
    overflow-wrap: break-word;
}

.btn-start-test {
    width: 100%;
    padding: 9px;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 6px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}



/* 질문 화면 */
.personality-question {
    background: #fff;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: flex-start;
}

.progress-bar-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 94%;
}

.progress-bar-track {
    flex: 1;
    height: 10px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar-wrap .progress-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-step-text {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
}

.progress-step-text .progress-total {
    color: #999;
}

.question-number {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    width: 100%;
    margin-top:40px;
}

.question-text {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 30px 0;
    line-height: 1.5;
    width: 100%;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top:5vh;
}

.answer-btn {
    width: 100%;
    padding: 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    word-break: keep-all;
    overflow-wrap: break-word;
    min-height: 70px;
    text-align: center;
}

.answer-btn:hover {
    border-color: #8B5CF6;
    background: #f5f3ff;
}

/* 로딩 화면 */
.personality-loading {
    background: #fff;
}

.loading-icon {
    width: 89px;
    height: 84px;
    margin: 0 auto 20px auto;
    background: transparent url("../images/common/test_loading_icon.svg") no-repeat center;
    background-size: 89px 84px;
    line-height: 0;
    animation: personalityPulse 1.5s ease-in-out infinite;
}

@keyframes personalityPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.loading-text {
    font-size: 22px;
    color: #434343;
    margin: 0;
}

/* 결과 화면 */
.personality-result {
    position: relative;
    background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 50%, #C4B5FD 100%);
    color: #fff;
}

.result-label {
    display: inline-block;
    background: #ef4444;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 30px;
}

.result-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #fff;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.result-desc {
    font-size: 16px;
    margin: 0 0 30px 0;
    opacity: 0.9;
    line-height: 1.6;
    color: #fff;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.result-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
    flex-direction: column;

}
.wplay-result-page .result-buttons {
    padding:0 15px;
}

.result-buttons .btn-share{
    height: 50px;
}

.btn-share,
.btn-retry {
    flex: 50%;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-share .btn-icon,
.btn-retry .btn-icon {
    width: 17px;
    height: 19px;
    display: inline-block;
    vertical-align: middle;
}

.btn-share {
    background: #3B0992;
    color: #fff;
    border-color: #3B0992;
}

.btn-share:hover {
    background: #2d0770;
}

.btn-retry {
    background: transparent;
    color: #fff;
    border-color: #fff;
    min-height: 50px;
}

.btn-retry:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   커뮤니티 리스트 페이지 스타일
   ============================================ */
.community-list-page {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: #F7F7F7;
    min-height: calc(100vh - 295px);
    padding: 0;
}

.community-list-page .page-wrap {
    padding: 0 16px 80px;
    max-width: 600px;
    margin: 0 auto;
}







.list-section {
    padding: 12px 0 0;
    margin-bottom: 0;
}


.list-item {
    padding: 20px 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 14px;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.list-item.best-item, .list-item.hot-item{
    padding: 15px 20px;
}

.list-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.list-item:last-child {
    border-bottom: none;
}

.item-label {
    display: inline-block;
    padding: 0;
    border-radius: 0;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.hot-label {
    background: transparent;
    color: #ff527e;
}

.best-label {
    background: transparent;
    color: #8B5CF6;
}

.item-category {
    display: inline-block;
    padding: 6px 15px;
    background: #eeeeee;
    color: #434343;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Hot/Best 상단 고정 영역 (흰색 배경) */
.hot-best-wrap {
    background: #fff;
    padding: 10px 0 4px;
}

.hot-best-inner {
    padding: 0 16px;
}

.hot-best-wrap .list-section {
    padding: 12px 0 0;
}

.hot-best-wrap .list-item {
    background: #f7f7f7;
    box-shadow: none;
    border: none;
    margin-bottom: 12px;
}

.hot-best-wrap .list-item:hover {
    transform: none;
    box-shadow: none;
}

.hot-best-wrap .item-title {
    font-size: 15px;
}

/* 일반 리스트 영역 (회색 배경) */
.normal-list-wrap {
    background: #F7F7F7;
    padding: 4px 0 80px;
}

.normal-list-inner {
    padding: 0 16px;
}

.normal-list-wrap .list-section {
    padding: 16px 0 0;
}

.normal-list-wrap .list-item {
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.normal-list-wrap .item-category {
    background: #ededed;
}

.hot-best-wrap .item-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.hot-best-wrap .item-label {
    margin-bottom: 0;
    flex-shrink: 0;
}

.hot-best-wrap .item-title {
    margin: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.list-item .item-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.list-item.hot-item .item-title,.list-item.best-item .item-title{
    -webkit-line-clamp: 1;
}

.list-item .item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 12px;
    color: #999;
}

.list-item .meta-nickname {
    color: #666;
    padding-right: 0;
}

.list-item .meta-stats {
    display: flex;
    align-items: center;
    gap: 3px;
}

.list-item .ico-heart,
.list-item .ico-comment {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 2px;
}

.list-item .like-count,
.list-item .comment-count {
    font-size: 12px;
    color: #999;
}

/* ============================================
   커뮤니티 상세 페이지
   ============================================ */
.community-detail-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding-top: 20px;
}

.community-detail-page .page-wrap {
    padding: 0 16px;
    margin: 0 auto;
}

.trending-section .section-title{
    padding-bottom: 0;
}


/* PC 스타일 */
@media screen and (min-width: 940px) {
    .community-detail-page .page-wrap {
        max-width: 600px;
        padding: 20px 16px 0 16px;
        border-top: 1px solid #ccc;
        border-left: 1px solid #ccc;
        border-right: 1px solid #ccc;
    }
}

/* (구) 플로팅 댓글 입력창 대응용 풋터 여백은 제거
 * - 댓글 입력창을 마크업 내부로 이동(인라인)하면서 불필요해짐
 */

.detail-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-home {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 50%;
    color: #333;
    text-decoration: none;
    font-weight: 700;
}

.btn-menu-toggle {
    background: transparent;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    padding: 0;
}

.detail-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 16px;
}

.detail-nav .btn-back {
    font-size: 20px;
    color: #333;
    text-decoration: none;
}

.btn-share {
    background: #333333;
    border: 2px solid #333333;
    font-size: 18px;
    color: #fff;
    min-height: 50px;
    cursor: pointer;
    padding: 0;
}

.detail-category {
    display: inline-block;
    padding: 6px 12px;
    background: #ededed;
    color: #444;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.detail-category.knowledge {
    background: #FF527E;
    color: #fff;
}

.detail-content {
    margin-bottom: 20px;
}

.detail-content-actions {
    display: flex;
    justify-content: flex-end;
    margin: -6px 0 14px;
}

.detail-delete-btn {
    border: none;
    background: transparent;
    color: #b0b0b0;
    font-size: 14px;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
}

.detail-top-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 15px;
}

.detail-btn-back {
    width: 32px;
    height: 32px;
    display: inline-block;
    background: url("../images/common/btn_view_back.png") no-repeat center;
    background-size: 24px 24px;
}

.detail-btn-share {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent url("../images/common/icon_share_community.svg") no-repeat center;
    background-size: 22px 22px;
    padding: 0;
    cursor: pointer;
}

.detail-separator {
    height: 10px;
    background: #e9e9e9;
    margin: 18px -15px 12px -15px;
}


.detail-separator.type02{
    margin: 18px -15px 0px -15px;
}

.detail-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.content-text {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word; /* 긴 단어나 숫자 줄바꿈 */
    overflow-wrap: break-word; /* 추가 보완 */
}

.detail-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 10px;
    border-bottom: none;
    margin-bottom: 0;
    border-top: 1px solid #E5E5E5;
}

.author-profile {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-date {
    color: #999;
    font-size: 12px;
}

.author-date:empty {
    display: none;
}

.author-date:before {
    content: "|";
    margin-right: 6px;
    color: #b0b0b0;
}

.profile-img,
.profile-img-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e0e0;
}

.profile-img {
    object-fit: cover;
}

.author-nickname {
    font-size: 14px;
    color: #9b9b9b;
    font-weight: 400;
}

.author-email-link {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
    text-decoration: none;
}

.author-email-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.author-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #9b9b9b;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 상단 좋아요/댓글 수는 읽기 전용 — 클릭/커서 이벤트 없음 */
.author-stats .stat-item.stat-like {
    cursor: default;
    pointer-events: none;
}
.author-stats .stat-item.stat-comment {
    cursor: default;
}

.stat-like-btn {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    color: inherit;
}

.stat-like-btn.liked {
    opacity: 1;
    color: #ff527e;
}

.stat-like-btn.liked .stat-icon {
    filter: brightness(0) saturate(100%) invert(27%) sepia(95%) saturate(1352%) hue-rotate(315deg) brightness(101%) contrast(101%);
}

.stat-like-btn:not(.liked) {
    opacity: 0.9;
}

.stat-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
}

.stat-item.like-item {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.stat-item.like-item.liked .ico-heart {
    color: #ff527e;
}

.detail-action-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.action-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    background: #fff;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.action-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
}

.action-btn.liked {
    border-color: #ff527e;
    color: #ff527e;
}

.action-btn.liked .action-icon {
    filter: brightness(0) saturate(100%) invert(27%) sepia(95%) saturate(5000%) hue-rotate(320deg) brightness(100%) contrast(100%);
}

.stat-item .ico-heart,
.stat-item .ico-comment {
    font-size: 14px;
    display: inline-block;
    font-style: normal;
}

.detail-event-area {
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
}

.event-ads-swiper {
    width: 100%;
    overflow: visible; /* 옆에 살짝 보이도록 */
}

.event-ads-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.event-ads-swiper .swiper-slide {
    width: 319px; /* 고정 너비 */
    flex-shrink: 0;
    height: 90px; /* 고정 높이 */
    margin-right: 12px; /* spaceBetween과 함께 사용 */
}

.event-ad-item {
    width: 319px; /* 고정 너비 */
    height: 90px; /* 고정 높이 */
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #ffc0cb; /* 핑크색 배경 (이미지 없을 때) */
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-ad-item:hover {
    transform: scale(1.02);
}

.event-ad-image {
    width: 319px; /* 고정 너비 */
    height: 90px; /* 고정 높이 */
    display: block;
    object-fit: cover;
}

.event-image {
    width: 100%;
    height: auto;
    display: block;
}

.event-image-placeholder {
    padding: 40px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.detail-comments {
    margin-bottom: 20px;
}

.comment-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 35px;
    display: block;
}

.empty-message {
    font-size: 16px;
    color: #666;
    margin: 0 0 8px 0;
    font-weight: 500;
}

.empty-submessage {
    font-size: 14px;
    color: #999;
    margin: 0;
}

.comment-item {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-profile {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-profile .profile-img,
.comment-profile .profile-img-placeholder {
    width: 28px;
    height: 28px;
}

.comment-nickname {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 내 댓글(익명/실닉 모두): 나에게만 닉네임 핑크 */
.comment-item.is-mine .comment-nickname {
    color: #ff527e;
}

.comment-more-wrapper {
    position: relative;
}

.btn-comment-more {
    background: transparent;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

.comment-more-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 80px;
    margin-top: 4px;
    overflow: hidden;
}

.menu-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: transparent;
    text-align: left;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background 0.2s;
}

.menu-item:hover {
    background: #f5f5f5;
}

.menu-item.menu-delete {
    color: #ff4444;
}

.comment-reply {
    padding-left: 16px;
    margin-left: 0;
}

.comment-content {
    margin-bottom: 8px;
}

.comment-text {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    margin: 0;
    padding-left: 36px;
}

.comment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 36px;
}

.comment-reply-input {
    margin: 8px 0 0 36px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.comment-reply-input .reply-input {
    flex: 1;
    min-width: 0;
    height: 34px;
    border-radius: 16px;
    border: 1px solid #e0e0e0;
    padding: 0 12px;
    font-size: 13px;
}

.comment-reply-input .reply-submit {
    height: 34px;
    border-radius: 16px;
    border: none;
    background: #e0e0e0;
    color: #555;
    padding: 0 12px;
    font-size: 12px;
    cursor: pointer;
}

.comment-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #999;
}

.comment-stats .ico-heart,
.comment-stats .ico-comment {
    font-size: 14px;
    display: inline-block;
    font-style: normal;
}

.comment-like-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #999;
    font-size: 12px;
}

.comment-like-btn:hover {
    opacity: 0.7;
}

.comment-like-btn.liked {
    color: #ff527e;
}

.comment-like-btn.liked .ico-heart {
    filter: brightness(0) saturate(100%) invert(27%) sepia(95%) saturate(1352%) hue-rotate(315deg) brightness(101%) contrast(101%);
}

.comment-edit-input {
    margin-top: 8px;
}

.edit-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    min-height: 60px;
}

.edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

.btn-edit-cancel,
.btn-edit-save {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    border: none;
}

.btn-edit-cancel {
    background: #f5f5f5;
    color: #666;
}

.btn-edit-save {
    background: #ff527e;
    color: #fff;
}

.btn-reply {
    background: transparent;
    border: none;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    padding: 0;
}

.detail-post-nav {
    display: flex;
    justify-content: space-between;
    padding: 16px 0 0 0;
    border-top: 1px solid #ddd;
}

.nav-item {
    flex: 1;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    color: #434343;
    text-decoration: none;
    padding: 8px;
}

.nav-item:hover {
    color: #333;
}

.detail-comment-input {
    position: relative;
    background: #fff;
    padding: 12px 0px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1;
    width: 100%;
    min-width: 0;
}

/* 앱 전용 bottom 보정 제거 (인라인 입력창으로 변경됨) */

.detail-comment-input-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 8px 12px;
    gap: 8px;
}

.btn-attach {
    background: transparent;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.comment-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    font-size: 14px;
    padding: 0;
    background: transparent;
    color: #333;
}

.comment-input::placeholder {
    color: #999;
}

.input-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-send {
    background: #ccc;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    color: #fff;
    cursor: pointer;
    padding: 0;
    width: 31px;
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
    line-height: 1;
}

.btn-send:hover {
    background: #bbb;
}

.btn-send:active {
    background: #aaa;
}

.anonymous-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

.anonymous-checkbox-input {
    display: none;
}

.anonymous-checkbox-custom {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.anonymous-checkbox-input:checked + .anonymous-checkbox-custom {
    border-color: #ccc;
    background: #fff;
}

.anonymous-checkbox-input:checked + .anonymous-checkbox-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff527e;
}

.anonymous-checkbox-text {
    font-size: 12px;
    color: #666;
    transition: color 0.2s;
}

.anonymous-checkbox-input:checked ~ .anonymous-checkbox-text {
    color: #666;
    font-weight: normal;
}

/* 대댓글 체크박스 스타일 */
.reply-anonymous-checkbox-input {
    display: none;
}

.reply-anonymous-checkbox-input:checked + .anonymous-checkbox-custom {
    border-color: #ccc;
    background: #fff;
}

.reply-anonymous-checkbox-input:checked + .anonymous-checkbox-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff527e;
}

/* disabled 상태 스타일 */
.anonymous-checkbox-input:disabled + .anonymous-checkbox-custom,
.reply-anonymous-checkbox-input:disabled + .anonymous-checkbox-custom {
    opacity: 0.5;
    cursor: not-allowed;
}

.anonymous-checkbox-input:disabled ~ .anonymous-checkbox-text,
.reply-anonymous-checkbox-input:disabled ~ .anonymous-checkbox-text {
    opacity: 0.7;
}

.anonymous-checkbox-label:has(.anonymous-checkbox-input:disabled),
.anonymous-checkbox-label:has(.reply-anonymous-checkbox-input:disabled),
.reply-anonymous-checkbox:has(.reply-anonymous-checkbox-input:disabled) {
    cursor: not-allowed;
    opacity: 0.7;
}

/* 닉네임 필요 안내 모달 */
body.nickname-modal-open {
    overflow: hidden;
}

.nickname-required-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nickname-required-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.nickname-required-modal-content {
    position: relative;
    width: 90%;
    max-width: 320px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.nickname-required-modal .nickname-required-modal-body {
    padding: 32px 24px 24px;
    text-align: center;
}

.nickname-required-modal .nickname-required-message {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.nickname-required-modal .nickname-required-submessage {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.nickname-required-modal .nickname-required-input-wrap {
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
}

.nickname-required-modal .nickname-required-input,
.nickname-required-modal input.nickname-required-input {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 12px 14px;
    margin: 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.nickname-required-modal .nickname-required-input:focus,
.nickname-required-modal input.nickname-required-input:focus {
    outline: none;
    border-color: #ff527e;
}

.nickname-required-modal .nickname-required-modal-footer {
    padding: 0 24px 24px;
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.nickname-required-modal .nickname-required-btn-cancel,
.nickname-required-modal .nickname-required-btn-confirm {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 16px;
    margin: 0;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    -webkit-appearance: none;
    appearance: none;
    background-color: #eee;
    color: #333;
}

.nickname-required-modal .nickname-required-btn-cancel:hover {
    background: #e0e0e0;
}

.nickname-required-modal .nickname-required-btn-confirm {
    background: #ff527e;
    color: #fff;
}

.nickname-required-modal .nickname-required-btn-confirm:hover:not(:disabled) {
    background: #e6456a;
}

.nickname-required-modal .nickname-required-btn-confirm:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* 레거시: 단일 확인 버튼용 (호환) */
.nickname-required-modal .nickname-required-btn-close {
    width: 100%;
    padding: 14px;
    background: #ff527e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.nickname-required-modal .nickname-required-btn-close:hover {
    background: #e6456a;
}

.nickname-required-modal .nickname-required-btn-close:active {
    background: #d43d5f;
}

/* ============================================
   커뮤니티 리스트(trending) 전용: 플로팅 글쓰기 버튼
   ============================================ */
.community-floating-write {
    position: fixed;
    right: 18px;
    bottom: 95px;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.community-floating-write img {
    width: 58px;
    height: 58px;
    display: block;
}

#alertPop.pop{
    z-index: 1000 !important;
}

@media screen and (min-width: 940px) {
    .community-floating-write {
        right:16vw;
        bottom: 95px;
    }
}

/* ============================================
   공유 팝업
   ============================================ */
.share-dimmed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.share-pop {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 340px;
    width: calc(100% - 40px);
    background: #fff;
    border-radius: 8px;
    z-index: 301;
}

.share-pop .pop-title {
    padding: 20px 20px 16px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.share-content {
    padding: 24px 20px;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.share-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.share-btn:hover {
    background: #eeeeee;
}

.share-btn:active {
    background: #e0e0e0;
}

/* 카카오톡 버튼도 다른 버튼과 동일한 스타일 (배경/테두리 통일) */
.share-btn-kakao {
    background: #f5f5f5;
    border-color: #e0e0e0;
}

.share-btn-kakao:hover {
    background: #eeeeee;
}

.share-btn-kakao .share-label {
    color: #333;
}

.share-icon-kakao {
    background: #333;
    color: #f5f5f5;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-icon {
    width: 24px;
    height: 24px;
    font-size: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.share-label {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.share-pop-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 15px;
    height: 15px;
    background: url(../images/common/btn_close_gray.png) no-repeat center;
    background-size: contain;
    opacity: 0.7;
    font-size: 0;
    z-index: 120;
    cursor: pointer;
}

/* 모바일 환경 */
@media screen and (max-width: 939px) {
    .share-pop {
        width: calc(100% - 32px);
        max-width: none;
    }
}

/* ============================================
   성향 테스트 결과 페이지 (공유용)
   ============================================ */
.wplay-result-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    min-height: calc(100vh - 295px);
}

.wplay-result-page .page-wrap {
    max-width: 600px;
    margin: 0 auto;
}

.result-container {
    text-align: center;
    padding: 40px 24px;
    height: 600px;
    position: relative;
}

.wplay-result-page .result-container{
    padding: 32px 20px 0 20px;
}

.result-anytoon-logo {
    position: absolute;
    top: 10px;
    right: 20px;
    width: 42px;
    height: 22px;
    display: block;
}

.result-popup-logo {
    position: absolute;
    top: 10px;
    width: 42px;
    height: 22px;
    display: block;
    object-fit: contain;
}
.result-popup-logo-left {
    left: auto;
    right: 20px;
    top: 52px;
}

/* 모달과 동일한 스타일 적용 */
.result-container.personality-result {
    color: #fff;
}

.result-recommend-section {
    margin-top: auto;
    background: #3b3b3b;
    padding: 20px;
    width: 100vw;
    box-sizing: border-box;
    border-radius: 0;
    max-width: 600px;
}

.result-recommend-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-recommend-list {
    display: flex;
    gap: 12px;
}

.result-recommend-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    flex: 1 1 0;
    min-width: 0;
}

.result-recommend-thumb {
    width: 96px;
    height: 96px;
    flex: 0 0 96px;
    border-radius: 5px;
    overflow: hidden;
    background: #e5e5e5;
}

.result-recommend-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.result-recommend-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

@media screen and (max-width: 939px) {
    .result-recommend-list {
        display: flex;
    }
}

/* 결과 이미지: 원형 썸네일 (180x180) */
.result-image-wrap {
    display: flex;
    justify-content: center;
    margin: 0 0 30px 0;
}

.result-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.15);
}


.result-buttons {
    display: flex;
    gap: 15px;
    width: 100%;
    margin: 0 30px 30px 30px;

}

.result-container .btn-share,
.result-container .btn-retry {
    flex: 50%;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 50px;
}

.result-container .btn-share .btn-icon,
.result-container .btn-retry .btn-icon {
    width: 17px;
    height: 19px;
    display: inline-block;
    vertical-align: middle;
}

.result-container .btn-share {
    background: #3B0992;
    color: #fff;
    border-color: #3B0992;
}

.result-container .btn-share:hover {
    background: #2d0770;
}

.result-container .btn-retry {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.result-container .btn-retry:hover {
    background: rgba(255, 255, 255, 0.1);
}

.result-actions .btn-retry:hover {
    background: #f5f5f5;
}

.result-actions .btn-retry:active {
    background: #eeeeee;
}

.wplay-result-page .result-container.personality-result {
    height: auto;
}

.wplay-result-page .result-image-wrap{
    margin-top:70px;
}


/* 모바일 환경 */
@media screen and (max-width: 939px) {
    .wplay-result-page {
        min-height: calc(100vh - 200px);
    }
    
    .result-container {
        padding: 32px 20px;
    }
    
    .result-code {
        font-size: 36px;
    }

    .result-actions {
        flex-direction: column;
    }
    
    .result-actions .btn-share,
    .result-actions .btn-retry {
        width: 100%;
    }
}

/* ============================================
   스켈레톤 UI 스타일
   ============================================ */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

.skeleton-item {
    pointer-events: none;
    cursor: default;
}

.skeleton-item:hover {
    transform: none;
    box-shadow: none;
}

/* Hot/Best 스켈레톤 */
.skeleton-hot-item,
.skeleton-best-item {
    padding: 15px 20px;
    background: #f7f7f7;
    border-radius: 10px;
    margin-bottom: 14px;
}

.skeleton-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.skeleton-label {
    width: 40px;
    height: 20px;
}

.skeleton-title {
    flex: 1;
    height: 18px;
    max-width: 80%;
}

.skeleton-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.skeleton-nickname {
    width: 60px;
    height: 14px;
}

.skeleton-stats {
    display: flex;
    align-items: center;
    gap: 8px;
}

.skeleton-stat {
    width: 30px;
    height: 14px;
}

/* 일반 리스트 스켈레톤 */
.skeleton-normal-item {
    padding: 20px 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 14px;
}

.skeleton-category {
    width: 50px;
    height: 24px;
    margin-bottom: 8px;
    border-radius: 6px;
}

.skeleton-normal-title {
    width: 100%;
    height: 20px;
    margin-bottom: 12px;
}

.skeleton-normal-title:last-of-type {
    width: 70%;
    margin-bottom: 8px;
}

/* 지식 카드 스켈레톤 */
.skeleton-knowledge-card {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.skeleton-knowledge-bg {
    width: 100%;
    height: 100%;
}

.skeleton-knowledge-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
}

.skeleton-knowledge-label {
    width: 40px;
    height: 20px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-knowledge-title {
    width: 80%;
    height: 24px;
    margin-bottom: 8px;
}

.skeleton-knowledge-subtitle {
    width: 60%;
    height: 16px;
}

/* 투표 카드 스켈레톤 */
.skeleton-balance-card {
    position: relative;
    width: 100%;
    min-height: 300px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.skeleton-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.skeleton-game-label {
    width: 100px;
    height: 20px;
}

.skeleton-game-participants {
    width: 80px;
    height: 16px;
}

.skeleton-game-question {
    width: 100%;
    height: 24px;
    margin-bottom: 8px;
}

.skeleton-game-question:last-of-type {
    width: 70%;
    margin-bottom: 24px;
}

.skeleton-option-item {
    margin-bottom: 12px;
}

.skeleton-option-text {
    width: 100%;
    height: 18px;
    margin-bottom: 8px;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.skeleton-option-progress {
    width: 100%;
    height: 8px;
    border-radius: 4px;
}

/* 지식 카드 스와이퍼 스켈레톤 */
.skeleton-knowledge-swiper-card {
    position: relative;
    width: 280px;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.skeleton-knowledge-swiper-bg {
    width: 100%;
    height: 100%;
}

.skeleton-knowledge-swiper-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
}

.skeleton-knowledge-swiper-label {
    width: 40px;
    height: 18px;
    margin-bottom: 6px;
    border-radius: 4px;
}

.skeleton-knowledge-swiper-title {
    width: 90%;
    height: 20px;
    margin-bottom: 6px;
}

.skeleton-knowledge-swiper-desc {
    width: 70%;
    height: 14px;
}

/* ============================================
   무한 스크롤 로딩 및 종료 메시지
   ============================================ */
.infinite-loading {
    width: 100%;
    padding: 20px;
    text-align: center;
    background: #fff;
}

.infinite-loading .loading-spinner {
    color: #999;
    font-size: 14px;
    display: inline-block;
}

.infinite-end {
    width: 100%;
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
    background: #f7f7f7;
    border-radius: 8px;
    margin-top: 10px;
}

/* ============================================
   시크릿 투표 리스트 페이지
   ============================================ */
.polls-list-section {
    width: 100%;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.polls-list-card {
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.polls-list-card:hover {
    transform: translateY(-2px);
}

.polls-list-card .option-item.option-button:hover {
   background: #F9FAFB;
    border: 1px solid #E5E5E5;
}
.polls-list-card:hover .balance-game-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 시크릿 투표 리스트: 리스트에서도 투표 가능 */
.polls-list-card .game-options {
    pointer-events: auto;
}

.polls-list-card .balance-game-card {
    width: 100%;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.community-sub-title {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 50px;
    background: #fff;
    border-bottom: 1px solid #ddd;
    z-index: 210; /* common.css header(200) 보다 위 */
}

.community-sub-title .community-sub-title-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.community-sub-title .community-sub-title-back {
    display: inline-block;
    height: 50px;
    line-height: 50px;
    padding-left: 20px;
    background: url(../images/common/btn_prev.png) left 0 center no-repeat;
    background-size: 6px;
    font-size: 17px;
    font-weight: 400;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.community-sub-title + .community-list-page,
.community-sub-title + .community-detail-page,
.community-sub-title + .community-write-page,
.community-sub-title + .wplay-result-page {
    padding-top: 50px;
}

/* 지식 상세 로딩 스켈레톤 */
.knowledge-detail-skeleton {
    padding: 16px 0 8px;
}

.knowledge-detail-skeleton .skeleton-line {
    height: 18px;
    margin-bottom: 10px;
}

.knowledge-detail-skeleton .skeleton-line.title {
    height: 24px;
    margin-bottom: 12px;
    width: 92%;
}

.knowledge-detail-skeleton .skeleton-line.title.short {
    width: 65%;
}

.knowledge-detail-skeleton .skeleton-line.body {
    height: 14px;
    margin-bottom: 8px;
    width: 100%;
}

.knowledge-detail-skeleton .skeleton-line.body.short {
    width: 78%;
}

.knowledge-detail-skeleton .skeleton-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.knowledge-detail-skeleton .skeleton-chip {
    width: 44px;
    height: 20px;
    border-radius: 6px;
}

.knowledge-detail-skeleton .skeleton-author {
    width: 120px;
    height: 14px;
}

.polls-list-card.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
}

.polls-list-card.loading .loading-spinner {
    color: #999;
    font-size: 14px;
}

/* 스켈레톤 UI */
.polls-list-card.skeleton-item {
    pointer-events: none;
}

.skeleton-polls-card .balance-game-card {
    background: #f5f5f5;
    min-height: 240px;
}

.skeleton-game-header {
    width: 100%;
    height: 30px;
    margin-bottom: 30px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.skeleton-game-question {
    width: 80%;
    height: 24px;
    margin: 0 auto 30px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.skeleton-game-options {
    width: 100%;
    height: 100px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 모바일 반응형 */
@media screen and (max-width: 939px) {
    .polls-list-section {
        padding: 15px 10px;
        gap: 15px;
    }
    
    .polls-list-card .balance-game-card {
        padding: 18px 25px;
        min-height: 220px;
    }
    
    .polls-list-card .game-question {
        font-size: 18px;
    }
}

/* ============================================
   성향테스트 타이틀 (메인 배너 섹션용)
   ============================================ */
.personality-test-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.personality-test-title .title-accent {
    color: #ff527e;
}

/* ============================================
   성향테스트 리스트 페이지
   ============================================ */
.personality-list-section {
    padding: 20px 0px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.personality-list-card {
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.personality-list-card .banner-title{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: initial;
    width: 100%;
}

.personality-list-card .banner-desc{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: initial;
    width: 100%;
}

.personality-list-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.personality-list-card .banner-card {
    width: 100%;
    height: 130px;
    border-radius: 12px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

/* 스켈레톤 UI */
.personality-list-card.skeleton-item {
    cursor: default;
}

.personality-list-card.skeleton-item .banner-card {
    position: relative;
    background: #f5f5f5;
}

.skeleton-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.skeleton-banner-title {
    width: 60%;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-banner-desc {
    width: 40%;
    height: 14px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* ============================================
   성향테스트 리스트 페이지 - list-style 덮어쓰기
   ============================================ */
.personality-list-section.list-style .personality-list-card:hover {
    transform: none;
    box-shadow: none;
}

.personality-list-section.list-style .personality-list-card .banner-card {
    height: 130px;
    padding: 20px 30px;
    border-radius: 12px;
}

/* ============================================
   라운지 이용 동의 팝업 (동의 전 전용 페이지)
   ============================================ */
.community-agreement-page {
    position: relative;
    min-height: 50vh;
}

.lounge-agreement-popup-wrap {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.lounge-agreement-dimmed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 299;
}

.lounge-agreement-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 360px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 300;
    padding: 24px;
}

.lounge-agreement-pop-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 약관 본문을 팝업 안에 바로 넣는 레이아웃 */
.lounge-agreement-pop-inner--terms-inline {
    gap: 16px;
    max-height: 75vh;
}
.lounge-agreement-pop-inner--terms-inline .lounge-agreement-terms-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 14px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #eee;
}
.lounge-agreement-pop-inner--terms-inline .lounge-agreement-terms-body .lounge-terms-document {
    font-size: 12px;
    line-height: 1.55;
}
.lounge-agreement-pop-inner--terms-inline .lounge-agreement-terms-body .lounge-terms-doc-title {
    font-size: 14px;
    margin-bottom: 10px;
}
.lounge-agreement-pop-inner--terms-inline .lounge-agreement-terms-body > h3,
.lounge-agreement-pop-inner--terms-inline .lounge-agreement-terms-body h3 {
    font-size: 14px;
    margin-bottom: 10px;
}
.lounge-agreement-pop-inner--terms-inline .lounge-agreement-terms-body {
    font-size: 12px;
    line-height: 1.55;
}
.lounge-agreement-pop-inner--terms-inline .lounge-agreement-actions {
    flex-shrink: 0;
}

.lounge-agreement-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0;
    text-align: center;
    line-height: 1.4;
}

.lounge-agreement-all-row {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 12px 14px;
}

.lounge-agreement-check-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
}

.lounge-agreement-check-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.lounge-agreement-check-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    flex-shrink: 0;
    background: #fff;
}

.lounge-agreement-check-input:checked + .lounge-agreement-check-custom {
    border-color: #ff527e;
    background: #ff527e;
    color: #fff;
}

.lounge-agreement-check-input:checked + .lounge-agreement-check-custom::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 3px;
}

.lounge-agreement-check-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.lounge-agreement-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lounge-agreement-item {
    border-bottom: 1px solid #eee;
}

.lounge-agreement-item:last-child {
    border-bottom: none;
}

.lounge-agreement-item-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    cursor: pointer;
    margin: 0;
}

.lounge-agreement-item-text {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.lounge-agreement-chevron {
    color: #b0b0b0;
    font-size: 12px;
}

.lounge-agreement-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.lounge-agreement-btn-agree {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: #ff527e;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.lounge-agreement-btn-agree:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.lounge-agreement-btn-disagree {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    color: #666;
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}

/* 커뮤니티 이용약관 전문 보기 레이어 */
.lounge-terms-layer {
    position: fixed;
    inset: 0;
    z-index: 301;
}
.lounge-terms-layer-dimmed {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}
.lounge-terms-layer-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    max-width: 400px;
    max-height: 85vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}
.lounge-terms-layer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    -webkit-overflow-scrolling: touch;
}
.lounge-terms-layer-actions {
    flex-shrink: 0;
    padding: 12px 20px 20px;
}
.lounge-terms-layer-actions .lounge-agreement-btn-agree {
    width: 100%;
}
.lounge-terms-document {
    font-size: 13px;
    color: #444;
    line-height: 1.6;
}
.lounge-terms-document .lounge-terms-doc-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #222;
}
.lounge-terms-document p {
    margin: 0 0 14px;
}
.lounge-terms-document strong {
    color: #222;
}
/* 라운지 이용약관 본문이 .content-text 스타일로 포함될 때 (agree.jsp 탭 / 동의 팝업) */
.lounge-agreement-terms-body > h3,
.lounge-agreement-terms-body h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #222;
}
.lounge-agreement-terms-body p.title {
    font-size: 13px;
    font-weight: 500;
    color: #434343;
    margin: 0 0 2px;
}
.lounge-agreement-terms-body {
    font-size: 13px;
    line-height: 1.6;
    color: #444;
}
.lounge-agreement-terms-trigger {
    margin-left: auto;
    padding: 4px 10px;
    font-size: 13px;
    color: #666;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
}
.lounge-agreement-terms-trigger:hover {
    color: #333;
    border-color: #999;
}

/* 스마일메이커스 라운지 랜딩 (/community/landing/smile_makers) — community-page 병용 시 상단 여백 고정 */
.smile-makers-page.community-page {
    max-width: 600px;
    margin-top: 0;
    margin-right: auto;
    margin-bottom: 0;
    margin-left: auto;
    background: #fff;
}

/* 라운지 롱폼 랜딩 (/community/landing/lounge_product) — landing14.png 뷰포트 하단 플로팅 → /community/landing/smile_makers */

.lounge-product-entry.lounge-product-entry--with-pick-float {
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
}
.lounge-landing-pick-float {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: 600px;
    z-index: 85;
    overflow: hidden;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.2);
    line-height: 0;
    -webkit-tap-highlight-color: transparent;
}
.lounge-landing-pick-float__img {
    display: block;
    width: 100%;
    height: auto;
}
/* JS 도킹: 풋터와 겹칠 때만 top 고정으로 풋터 바로 위에 멈춤 */
.lounge-landing-pick-float.lounge-landing-pick-float--dock {
    bottom: auto !important;
}
.app-page .lounge-landing-pick-float {
    bottom: calc(60px + env(safe-area-inset-bottom, 0px));
}
.smile-makers-hero {
    line-height: 0;
}
.smile-makers-hero__img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
}

/* /community/landing/smile_makers — 좌·우·하단 #FBCDDB 스트라이프(동일 두께), 중앙 흰 영역 + list 그리드 */
.smile-makers-product-band {
    --smile-side-stripe-color: #FBCDDB;
    --smile-side-stripe-width: 12px;
    background-color: var(--smile-side-stripe-color);
    padding: 0 var(--smile-side-stripe-width) var(--smile-side-stripe-width);
    box-sizing: border-box;
    width: 100%;
}

.smile-makers-product-band__inner {
    background-color: #fff;
    padding: 20px 14px 32px;
    box-sizing: border-box;
}

.smile-makers-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    gap: 20px 14px;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* 마지막 줄: 시안 기준 아티스트(6)·발레리나(5) 좌우 반대 (DOM 순서는 5→6) */
.smile-makers-card-grid > :nth-child(5) {
    grid-column: 2;
    grid-row: 3;
}

.smile-makers-card-grid > :nth-child(6) {
    grid-column: 1;
    grid-row: 3;
}

.smile-makers-card {
    display: block;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    line-height: 0;
    border-radius: 12px;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.smile-makers-card:focus-visible {
    outline: 2px solid #ff527e;
    outline-offset: 3px;
    border-radius: 12px;
}

.smile-makers-card__img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
}

.smile-makers-card--soldout {
    cursor: default;
}

.smile-makers-card--soldout .smile-makers-card__img {
    filter: saturate(0.55) brightness(0.94);
}

/* lounge_product.jsp — 스마일 컷 블루 그리드 (롱폼 랜딩) */
.lounge-product-entry-product-area--smile {
    background: #479BFB;
    padding: 16px 12px 24px;
    box-sizing: border-box;
}
.lounge-product-entry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 10px;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.lounge-product-entry-grid .lounge-product-entry-product-link img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    vertical-align: middle;
}
.lounge-product-entry-grid .lounge-product-entry-product-link {
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
}
.lounge-product-entry-product-link {
    position: relative;
    display: block;
}
.lounge-product-entry-link-block {
    position: absolute;
    inset: 0;
    z-index: 4;
    cursor: default;
    background: transparent;
}

/* 커뮤니티: wellbeing 탭(.tab-content)과 동일 좌우 15px — 탭 밖에 두는 섹션 래퍼 */
.community-wellbeing-horizontal-inset {
    padding: 30px 15px 40px 15px;
    box-sizing: border-box;
}

/* ============================================
   6단계: 스마일 메이커스 미니 그리드 (커뮤니티 메인, 19 밸런스 하단)
   바깥 회색 여백: .community-wellbeing-horizontal-inset (탭과 동일 패딩)
   흰 카드(.smile-makers-showcase-section)의 padding: 썰툰 .knowledge-section 과 동일 (15px 20px)
   ============================================ */
.smile-makers-showcase-section {
    margin-top: 16px;
    padding: 15px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.smile-makers-showcase-section__header.section-header {
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
}

.smile-makers-showcase-section__title.section-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    /* .knowledge-list-title 과 동일 */
    font-size: 18px;
    font-weight: 700;
    color: #434343;
    line-height: 1.3;
    margin: 0;
}

.smile-makers-showcase-section__emoji {
    font-size: 1.125em;
    line-height: 1;
}

.smile-makers-showcase-section__title-accent {
    color: #ff527e;
    font-size: 20px;
}

.smile-makers-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 10px;
    margin: 0;
    padding: 0;
}

.smile-makers-showcase-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    -webkit-tap-highlight-color: transparent;
}

.smile-makers-showcase-card:focus-visible {
    outline: 2px solid #ff527e;
    outline-offset: 3px;
    border-radius: 8px;
}

.smile-makers-showcase-card__media {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    background: #ebebeb;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.smile-makers-showcase-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.smile-makers-showcase-card__name {
    font-size: 18px;
    font-weight: 700;
    color: #434343;
    margin: 0 0 4px;
    line-height: 1.25;
    display: block;
    width: 100%;
}

.smile-makers-showcase-card__desc {
    font-size: 15px;
    font-weight: 400;
    color: #999;
    margin: 0;
    line-height: 1.35;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

@media screen and (max-width: 939px) {
    .smile-makers-showcase-grid {
        gap: 20px 8px;
    }
}
