/* 피드 상세보기 페이지 스타일 */

/* 채널 홈과 동일한 레이아웃을 위한 기본 설정은 channel_home.css에서 처리 */
/* 중복 스타일 제거 - channel_home.css에서 이미 정의됨 */

/* 로딩 애니메이션 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 댓글 입력창 스크롤바 제거 - 모든 브라우저 */
#commentInput {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

#commentInput::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
    width: 0;
    height: 0;
}

/* 피드 상세보기 래퍼 */
.feed-detail-wrapper {
    background: #22313f;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    border: 1px solid #34495E;
}

/* 헤더 */
.feed-detail-header {
    background: rgba(34, 49, 63, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

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

.feed-detail-header h1 {
    font-size: 20px;
    font-weight: 600;
}

/* 광고 배너 섹션 */
.feed-banner-section {
    margin: 20px 0;
    padding: 40px 20px 15px;
    background: rgba(34, 49, 63, 0.5);
    border-radius: 8px;
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-wrap: wrap;
}

/* 스폰서 라벨 */
.sponsor-label {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #5a6c7d; /* #34495e보다 약간 밝은 색 */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    z-index: 1;
}

/* board_ads_01 스타일 - 2개 배너 */
.feed-banner-section.board-ads {
    flex-wrap: wrap;
}

.feed-banner-section.board-ads .banner-item {
    flex: 0 0 calc(50% - 7.5px);
    max-width: 380px;
}

/* search_ad_02 스타일 - 2개 배너 */
.feed-banner-section.search-ads {
    justify-content: center;
    flex-wrap: wrap;
}

.feed-banner-section.search-ads .banner-item {
    flex: 0 0 calc(50% - 7.5px);
    max-width: 250px;
}

/* 배너 아이템 공통 */
.feed-banner-section .banner-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feed-banner-section .banner-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.feed-banner-section .banner-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.feed-banner-section .banner-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 태블릿 반응형 */
@media (max-width: 991px) {
    .feed-banner-section.board-ads .banner-item {
        flex: 0 0 calc(50% - 7.5px);
    }
}

/* 모바일 반응형 */
@media (max-width: 576px) {
    .feed-banner-section {
        padding: 40px 15px 15px;
        margin: 15px 0;
    }
    
    .feed-banner-section.board-ads,
    .feed-banner-section.search-ads {
        flex-direction: column;
        gap: 10px;
    }
    
    .feed-banner-section.board-ads .banner-item,
    .feed-banner-section.search-ads .banner-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* 모바일에서는 380x100 배너도 화면 너비에 맞춤 */
    .feed-banner-section .banner-item img {
        width: 100%;
        height: auto;
    }
}

/* 메인 콘텐츠 */
.feed-main {
    padding: 0;
}

/* 피드 본문 */
.feed-article {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 작성자 정보 */
.feed-author {
    display: flex;
    gap: 12px;
    position: relative;
    align-items: flex-start;
    padding: 16px 25px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: #f64747;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.author-info {
    flex: 1;
}

/* author-name 스타일은 인라인으로 처리됨 */
.author-name {
    margin-bottom: 2px;
}

.author-handle {
    color: #8892a0;
    font-size: 14px;
}

/* 피드 옵션 메뉴 - 피드 상세 페이지 작성자 영역용 */
.feed-detail-wrapper .feed-author .feed-options,
.feed-author .feed-options {
    position: absolute;
    top: 16px;
    right: 16px;
}

/* .feed-option-btn 스타일은 channel_home.css에서 관리 */

.feed-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #2C3E50;
    border-radius: 8px;
    padding: 8px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 100;
    min-width: 120px;
    display: none;
}

.feed-menu.active {
    display: block;
}

.feed-menu a {
    display: block;
    padding: 10px 16px;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 14px;
}

.feed-menu a:hover {
    background: rgba(255,255,255,0.1);
}

/* 피드 내용 */
.feed-content {
    padding: 0 16px 10px 16px;
}

.feed-text {
    font-size: 16px;
    line-height: 1.5;
    word-break: break-word;
    margin-bottom: 16px;
}

/* 미디어 - 개선된 반응형 이미지/비디오 */
.feed-media {
    margin: 16px 0;
    overflow: hidden;
}

.feed-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    display: block;
}

/* hover 효과 강제 제거 */
.feed-image:hover {
    transform: none !important;
    scale: none !important;
}


/* 단일 이미지 */
.feed-media > .feed-image {
    max-height: 600px;
    width: auto !important; /* 원본 비율 유지 */
    max-width: 100%; /* 컨테이너 넘지 않게 */
    margin: 0;
    display: block;
    object-fit: contain;
}

/* 이미지 그리드 - 1줄에 1개씩 세로 배치 */
.image-grid {
    display: flex;
    flex-direction: column; /* 세로 방향으로 변경 */
    gap: 8px; /* 이미지 간격 추가 */
    border-radius: 0;
    overflow: visible;
    width: 100%;
    align-items: flex-start; /* 왼쪽 정렬, 늘어나지 않게 */
}

/* 모든 그리드 타입에서 세로 배치 */
.image-grid.grid-2,
.image-grid.grid-3,
.image-grid.grid-4,
.image-grid.grid-5 {
    display: flex;
    flex-direction: column; /* 세로 방향으로 변경 */
}

.image-grid .feed-image {
    width: auto !important; /* 원본 너비 유지 */
    height: auto !important; /* 원본 높이 유지 */
    max-width: 100%; /* 컨테이너 넘지 않게 */
    max-height: 600px; /* 최대 높이 제한 */
    object-fit: contain; /* 원본 비율 유지 */
    margin: 0;
    display: block;
    border-radius: 12px; /* 각 이미지에 개별 border-radius */
}

/* 모든 이미지에 동일한 border-radius 적용 */
.image-grid .feed-image:first-child,
.image-grid .feed-image:last-child,
.image-grid .feed-image:only-child {
    border-radius: 12px;
}

/* 비디오 */
.feed-video {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    border-radius: 12px;
    background: #000;
    display: block;
}

/* 시간 정보 */
.feed-time {
    margin-top: 25px;
    color: #8892a0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.separator {
    color: #4a5568;
}

/* 피드 통계 */
.feed-stats {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 32px;
}

.feed-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.feed-stats .stat-count {
    font-weight: 600;
    color: #ffffff;
}

.feed-stats .stat-label {
    color: #8892a0;
    font-size: 14px;
}

/* 액션 버튼 */
.feed-actions {
    display: flex;
    justify-content: space-around;
}

.action-btn {
    background: none;
    border: none;
    color: #8892a0;
    font-size: 22px;
    cursor: pointer;
    padding: 12px 24px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn.liked {
    color: #f64747;
}

.action-btn.donation {
    color: #ffd700;
}

.action-btn.donation:hover {
    color: #cfb731;
}

/* 댓글 섹션 */
.comments-section {
    padding: 20px 16px;
}

.comments-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-count {
    color: #8892a0;
    font-size: 16px;
    font-weight: normal;
}

/* 댓글 작성 폼 */
.comment-form {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-input-wrap {
    flex: 1;
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.comment-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 10px 16px;
    color: #ffffff;
    font-size: 14px;
    resize: none;
    min-height: 40px;
    max-height: 120px;
    outline: none;
    transition: all 0.2s;
}

.comment-input:focus {
    border-color: #f64747;
    background: rgba(255, 255, 255, 0.08);
}

.comment-input::placeholder {
    color: #8892a0;
}

.comment-submit {
    background: #f64747;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.comment-submit:hover:not(:disabled) {
    background: #d63636;
    transform: scale(1.05);
}

.comment-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 로그인 안내 */
.comment-login-notice {
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    text-align: center;
    margin-bottom: 24px;
}

.comment-login-notice a {
    color: #f64747;
    text-decoration: none;
    font-weight: 600;
}

.comment-login-notice a:hover {
    text-decoration: underline;
}

/* 댓글 목록 - X(트위터) 스타일 */
.comments-list {
    padding: 0;
}

.comment-item {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
    cursor: pointer;
}

.comment-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* 대댓글 스타일 */
.comment-item.reply {
    padding-left: 58px;
    position: relative;
}

.comment-item.reply::before {
    content: '';
    position: absolute;
    left: 44px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.comment-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.comment-avatar img,
.avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

/* X 스타일 콤팩트 헤더 */
.comment-header-compact {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
    position: relative;
}

.comment-level-icon {
    height: 23px;
    width: auto;
}

.comment-author {
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
}

.comment-member-icon {
    height: 16px;
    width: auto;
}

.comment-dot {
    color: #536471;
    font-size: 12px;
}

.comment-time {
    color: #536471;
    font-size: 13px;
}

/* 더보기 메뉴 */
.comment-more {
    margin-left: auto;
    position: relative;
}

.comment-more-btn {
    background: none;
    border: none;
    color: #536471;
    padding: 4px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
}

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

.comment-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: #1e2632;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    min-width: 120px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 10;
}

.comment-menu.active {
    display: block;
}

.comment-menu a {
    display: block;
    padding: 10px 16px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.comment-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
}

.comment-menu a:first-child {
    border-radius: 8px 8px 0 0;
}

.comment-menu a:last-child {
    border-radius: 0 0 8px 8px;
    color: #ff6b6b;
}


/* 댓글 내용 */
.comment-text {
    font-size: 15px;
    line-height: 1.4;
    color: #e0e0e0 !important;
    word-break: break-word;
    margin-bottom: 8px;
}

/* @멘션 스타일 */
.reply-mention {
    color: #486d92;
    margin-right: 5px;
    font-size: 13px;
}

/* X 스타일 액션 버튼 */
.comment-actions-compact {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 4px;
}

.action-compact {
    background: none;
    border: none;
    color: #536471;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 20px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.action-compact i {
    font-size: 18px;
}

.action-compact span {
    font-size: 13px;
}

.action-compact:hover {
    color: #f64747;
}

.action-compact:hover i {
    transform: scale(1.1);
}

/* 좋아요 버튼 */
.action-compact.liked {
    color: #f64747;
}

/* 댓글 없음 */
.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: #8892a0;
}

.no-comments i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.no-comments p {
    margin: 4px 0;
}

.no-comments .sub {
    font-size: 14px;
    opacity: 0.8;
}

/* 피드 작성 모달 스타일은 feed_write_modal.css에서 관리 */

/* 반응형 */
@media (max-width: 768px) {
    /* 모바일에서는 단일 컬럼 */
    .channel-container {
        grid-template-columns: 1fr;
        padding: 0;
        margin: 0;
        gap: 0;
    }
    
    /* 모바일에서 사이드바 숨김 */
    .channel-sidebar {
        display: none;
    }
    
    .feed-detail-header {
        padding: 10px 12px;
        top: 0; /* 모바일에서는 상단 고정 */
    }
    
    .feed-stats {
        gap: 24px;
    }
    
    .action-btn {
        padding: 10px 20px;
        font-size: 20px;
    }
    
    .comment-item {
        padding: 10px 12px;
    }
    
    .comment-item.reply {
        padding-left: 48px;
    }
    
    .comment-item.reply::before {
        left: 36px;
    }
    
    .comment-avatar {
        width: 40px;
        height: 40px;
    }
    
    .comment-avatar img,
    .avatar-placeholder {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .comment-text {
        font-size: 14px;
    }
    
    .action-compact {
        padding: 2px 8px;
    }
    
    .action-compact i {
        font-size: 16px;
    }
    
    .action-compact span {
        font-size: 12px;
    }
}

/* 태블릿 반응형 */
@media (min-width: 769px) and (max-width: 1024px) {
    .comment-item.reply {
        margin-left: 40px;
    }
}

/* 댓글 이미지 미리보기 스타일 */
.comment-image-preview {
    margin-top: 10px;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.comment-image-preview .preview-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.comment-image-preview .preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-primary);
}

.comment-image-preview .preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-image-preview .remove-preview {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.comment-image-preview .remove-preview:hover {
    background: rgba(0, 0, 0, 0.9);
}

.comment-image-preview .remove-preview i {
    font-size: 14px;
}

/* 댓글 이미지 표시 스타일 */
.comment-images {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.comment-image-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.comment-image-item:hover {
    transform: scale(1.02);
}

.comment-image-item img {
    display: block;
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: cover;
}

/* 피드 이미지 호버 효과 */
.feed-image {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.feed-image:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* 이미지 확대 모달 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
}

.image-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
}

.image-modal-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
}

.image-modal-close:hover {
    color: #fff;
}

/* 피드 태그 스타일 */
.feed-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    align-items: center;
}

/* 태그 스타일 - 기존과 동일하게 변경 */
.feed-tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border: 2px dashed #34495E;
    border-radius: 8px;
    color: rgb(179, 201, 223) !important;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.feed-tag-chip:hover {
    transform: translateY(-2px);
}

/* 카테고리 칩 스타일 - 태그와 동일한 디자인, 색상만 빨간색 */
.feed-category-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 2px dotted #f64747;
    border-radius: 8px;
    color: #f64747 !important;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: default;
}

.feed-category-chip i {
    font-size: 14px;
    line-height: 1;
}

.feed-category-chip:hover {
    transform: translateY(-2px);
}

/* ========== 이미지 뷰어 모달 ========== */
.image-viewer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

.image-viewer-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.image-viewer-container {
    position: relative;
    max-width: 95%;
    max-height: 95vh;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 툴바 */
.image-viewer-toolbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.viewer-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s;
}

.viewer-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.viewer-btn.close-btn {
    background: rgba(246, 71, 71, 0.3);
}

.viewer-btn.close-btn:hover {
    background: rgba(246, 71, 71, 0.5);
}

/* 이미지 컨테이너 */
.image-viewer-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 60px 20px 20px;
}

.viewer-image {
    max-width: 100%;
    max-height: calc(100vh - 100px);
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: grab;
    user-select: none;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.viewer-image.grabbing {
    cursor: grabbing;
}

/* 줌 컨트롤 */
.zoom-controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    z-index: 10002;
}

.zoom-level {
    color: #fff;
    font-size: 14px;
    min-width: 60px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 네비게이션 (여러 이미지일 때) */
.viewer-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.viewer-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.viewer-nav.prev {
    left: 20px;
}

.viewer-nav.next {
    right: 20px;
}

.viewer-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* 이미지 정보 */
.image-info {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    z-index: 10002;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .image-viewer-toolbar {
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .viewer-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .zoom-controls {
        bottom: 10px;
    }
    
    .viewer-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .viewer-nav.prev {
        left: 10px;
    }
    
    .viewer-nav.next {
        right: 10px;
    }
    
    .image-viewer-content {
        padding: 50px 10px 60px;
    }
}

/* 미디어 반응형 추가 */
@media (max-width: 576px) {
    /* 모바일에서도 세로 배치 유지 */
    .image-grid {
        gap: 6px; /* 모바일에서는 간격 줄이기 */
        display: flex;
        flex-direction: column; /* 세로 방향 유지 */
        overflow: visible;
        align-items: flex-start; /* 왼쪽 정렬, 늘어나지 않게 */
    }
    
    .image-grid .feed-image {
        width: auto !important;
        height: auto !important;
        max-width: 100%;
        max-height: 400px; /* 모바일에서는 높이 더 줄이기 */
        object-fit: contain;
    }
    
    /* 단일 이미지 최대 높이 조정 */
    .feed-media > .feed-image {
        max-height: 400px;
    }
    
    /* 비디오 최대 높이 조정 */
    .feed-video {
        max-height: 400px;
    }
}
/* 멘션과 해시태그 스타일 - 놀쟈 채널 */
.mention-link {
    color: #fefad4 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: color 0.3s;
}

.mention-link:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

.hashtag-link {
    color: #F64747 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: color 0.3s;
}

.hashtag-link:hover {
    color: #ff8080 !important;
    text-decoration: underline !important;
}
